/* kevmomc.net design system. One file for every page.
 *
 * Colours use light-dark(), so each token is written once for both themes.
 * Tiers: any element with data-tier="1|2|3" re-points --accent, --accent-2, --grad, --wdth and --wght.
 *   I  Iron       KevmoMC   calm: theme-coloured surfaces, one accent, no motion
 *   II Diamond    Kevmo2MC  deep space: dark heroes, starfield, diamond-cyan gradient, gentle reveals
 *   III Netherite Kevmo3MC  endgame: always dark, drifting nebula, gold-to-amethyst gradient, widest type
 * Each step up adds one thing: a body to the emblem, width to the wordmark, depth to the background.
 */

@font-face {
  font-family: "Mona Sans";
  src: url("/assets/fonts/mona-sans-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
}

/* Library title art (ticket 032): each featured pack's name in its own face. Self-hosted, latin only, OFL. */
@font-face { font-family: "Cinzel"; src: url("/assets/fonts/cinzel-latin.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Black Ops One"; src: url("/assets/fonts/blackopsone-latin.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Rubik Dirt"; src: url("/assets/fonts/rubikdirt-cavehorror.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Grenze Gotisch"; src: url("/assets/fonts/grenzegotisch-latin.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "VT323"; src: url("/assets/fonts/vt323-latin.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Lilita One"; src: url("/assets/fonts/lilitaone-latin.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Marcellus SC"; src: url("/assets/fonts/marcellussc-latin.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-latin.woff2") format("woff2"); font-weight: 800 900; font-display: swap; }
@font-face { font-family: "Metal Mania"; src: url("/assets/fonts/metalmania-latin.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Uncial Antiqua"; src: url("/assets/fonts/uncialantiqua-latin.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Luckiest Guy"; src: url("/assets/fonts/luckiestguy-latin.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Bungee"; src: url("/assets/fonts/bungee-latin.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Russo One"; src: url("/assets/fonts/russoone-latin.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Audiowide"; src: url("/assets/fonts/audiowide-latin.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Cormorant SC"; src: url("/assets/fonts/cormorantsc-latin.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Special Elite"; src: url("/assets/fonts/specialelite-latin.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Rubik Wet Paint"; src: url("/assets/fonts/rubikwetpaint-latin.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Michroma"; src: url("/assets/fonts/michroma-latin.woff2") format("woff2"); font-display: swap; }
/* The house serif (Fraunces, variable 400-700 with optical sizes, OFL): section headings, the Library's numbers.
   Pack names keep their own faces; this is the voice of the site around them. */
@font-face { font-family: "Kevmo Serif"; src: url("/assets/fonts/kevmoserif-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  color-scheme: light dark;
  --bg:        light-dark(#f6f7f9, #0a0c11);
  --surface:   light-dark(#ffffff, #11141b);
  --surface-2: light-dark(#eef0f4, #181c25);
  --text:      light-dark(#11141a, #e8ebf1);
  --muted:     light-dark(#535b6a, #9aa2b1);
  --faint:     light-dark(#666d79, #7b849a);
  --line:      light-dark(#e3e6eb, #222735);
  --ok:        light-dark(#17935a, #3ccf8b);
  --warn:      light-dark(#b7791f, #f0b429);
  --sleep:     light-dark(#6870c4, #a4abff);
  --bad:       light-dark(#c2413a, #ff7b72);
  --void: #07090f;
  --shadow: 0 1px 2px light-dark(rgb(16 20 30 / .05), rgb(0 0 0 / .35)), 0 10px 30px light-dark(rgb(16 20 30 / .06), rgb(0 0 0 / .25));
  --radius: 16px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --display: "Mona Sans", var(--sans);
  --serif: "Kevmo Serif", Georgia, "Times New Roman", serif;
  --gold: light-dark(#a8792a, #e2c08a);
  /* film grain for the dark rooms (Library, pack pages, the home's Library band): an SVG noise tile, no image file */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  /* network default = tier I colours */
  --accent:   light-dark(#3a5bd9, #8fa6ff);
  --accent-2: light-dark(#d9762b, #f2a65a);
  --accent-ink: light-dark(#ffffff, #0a0c11);
  --grad: linear-gradient(120deg, light-dark(#3a5bd9, #8fa6ff), light-dark(#7086ec, #c3cfff));
  --wdth: 100%;
  --wght: 720;
  --h-wdth: 100%;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"]  { color-scheme: dark; }

[data-tier="1"] {
  --accent:   light-dark(#3a5bd9, #8fa6ff);
  --accent-2: light-dark(#d9762b, #f2a65a);
  --accent-ink: light-dark(#ffffff, #0a0c11);
  --grad: linear-gradient(120deg, light-dark(#3a5bd9, #8fa6ff), light-dark(#7086ec, #c3cfff));
  --wdth: 100%; --wght: 700; --h-wdth: 100%;
}
[data-tier="2"] {
  --accent:   light-dark(#0a8790, #5ee6dc);
  --accent-2: light-dark(#4a5be8, #8b9bff);
  --accent-ink: light-dark(#ffffff, #03161a);
  --grad: linear-gradient(110deg, light-dark(#0fa3ad, #5ee6dc), light-dark(#4a5be8, #8b9bff));
  --wdth: 112%; --wght: 790; --h-wdth: 106%;
}
[data-tier="3"] {
  --accent:   light-dark(#7a4ae0, #b794ff);
  --accent-2: light-dark(#a87a0c, #f0c35a);
  --accent-ink: #0b0612;
  --grad: linear-gradient(105deg, #f0c35a, #e070c8 50%, #9b6bff);
  --wdth: 125%; --wght: 870; --h-wdth: 112%;
}
/* tier III pages are dark, always */
html[data-tier="3"] { color-scheme: dark; --bg: #07060b; --surface: #100d17; --surface-2: #17131f; --line: #261f33; }
/* DeceasedCraft: a third-party pack hosted on the network, not a step on the ladder ("dc", ticket 025).
   Toxic green with a rust second colour; its hero is dark and smoky. */
[data-tier="dc"] {
  --accent:   light-dark(#3d8a1c, #9be15d);
  --accent-2: light-dark(#b0521d, #f08a4b);
  --accent-ink: light-dark(#ffffff, #0b1206);
  --grad: linear-gradient(110deg, light-dark(#4f9e2a, #9be15d), light-dark(#8a8f1f, #d7e86a));
  --wdth: 104%; --wght: 820; --h-wdth: 102%;
}
/* Prominence II: the second third-party pack ("p2", ticket 026). Its own volcanic, ashen look: ember orange and
   Hastur gold, with the Void's violet as the second colour; its hero is dark ash with a glow at the bottom. */
[data-tier="p2"] {
  --accent:   light-dark(#b8520f, #ff9a4a);
  --accent-2: light-dark(#6b3fc4, #b48cff);
  --accent-ink: light-dark(#ffffff, #160903);
  --grad: linear-gradient(110deg, light-dark(#c2410c, #ff8a3d), light-dark(#a07a06, #f6c945));
  --wdth: 108%; --wght: 820; --h-wdth: 104%;
}
/* Atmos: a single-player roguelike map ("at", no server). Its clockwork underworld: electric blue crystal light
   with hot copper as the second colour; its hero is dark iron with the crystal's glow. */
[data-tier="at"] {
  --accent:   light-dark(#0b72c9, #4cbcff);
  --accent-2: light-dark(#b0521d, #f0965a);
  --accent-ink: light-dark(#ffffff, #03121f);
  --grad: linear-gradient(110deg, light-dark(#0b72c9, #4cbcff), light-dark(#b0521d, #f0965a));
  --wdth: 106%; --wght: 840; --h-wdth: 104%;
}
/* COBBLEVERSE: a Pokémon adventure ("cv", ticket 029). The pack's own wordmark colours: sky aqua with sun gold as
   the second colour; its hero is a dusk sky over a valley. */
[data-tier="cv"] {
  --accent:   light-dark(#0a7fb0, #4fd2ff);
  --accent-2: light-dark(#a86a00, #ffcc33);
  --accent-ink: light-dark(#ffffff, #021620);
  --grad: linear-gradient(110deg, light-dark(#0a7fb0, #4fd2ff), light-dark(#a86a00, #ffcc33));
  --wdth: 108%; --wght: 840; --h-wdth: 104%;
}
/* FTB Skies 2: Aero ("sa", ticket 034): open sky blue with airship brass as the second colour; its hero is a
   high, bright sky. */
[data-tier="sa"] {
  --accent:   light-dark(#1f6fc4, #7cc0f6);
  --accent-2: light-dark(#9a6a1c, #f2c46a);
  --accent-ink: light-dark(#ffffff, #04121f);
  --grad: linear-gradient(110deg, light-dark(#1f6fc4, #7cc0f6), light-dark(#9a6a1c, #f2c46a));
  --wdth: 106%; --wght: 840; --h-wdth: 104%;
}
/* Isle of Berk ("ib", ticket 036): the icy teal of its title art with dragon-fire amber as the second colour; its
   hero is a cold northern sea at dusk. */
[data-tier="ib"] {
  --accent:   light-dark(#0f7f8f, #5fc8d8);
  --accent-2: light-dark(#a85a12, #ffad5a);
  --accent-ink: light-dark(#ffffff, #03161a);
  --grad: linear-gradient(110deg, light-dark(#0f7f8f, #5fc8d8), light-dark(#a85a12, #ffad5a));
  --wdth: 106%; --wght: 840; --h-wdth: 104%;
}
/* Society: Sunlit Valley ("sv", ticket 036): harvest honey gold with field green as the second colour; its hero is a
   warm evening over the farm. */
[data-tier="sv"] {
  --accent:   light-dark(#9a6a00, #f6c453);
  --accent-2: light-dark(#3f7a1e, #8fd05a);
  --accent-ink: light-dark(#ffffff, #1a1204);
  --grad: linear-gradient(110deg, light-dark(#9a6a00, #f6c453), light-dark(#3f7a1e, #8fd05a));
  --wdth: 106%; --wght: 840; --h-wdth: 104%;
}
/* Exosphere ("ex", ticket 042): Beyond Mines' indigo-to-rose, the edge of space over a sea of clouds; its hero is
   that sky at sunset. Distinct from Aero's golden-hour blue. */
[data-tier="ex"] {
  --accent:   light-dark(#5148b8, #a59cff);
  --accent-2: light-dark(#a8505e, #f0b4bc);
  --accent-ink: light-dark(#ffffff, #0c0a24);
  --grad: linear-gradient(110deg, light-dark(#5148b8, #a59cff), light-dark(#a8505e, #f0b4bc));
  --wdth: 106%; --wght: 840; --h-wdth: 104%;
}
/* The Halloween Library packs (ticket 030). Cave Horror Project ("ch"): jack-o'-lantern orange with candle gold. */
[data-tier="ch"] {
  --accent:   light-dark(#b8500a, #ff8a1f);
  --accent-2: light-dark(#8a5a00, #ffd27a);
  --accent-ink: light-dark(#ffffff, #1a0a02);
  --grad: linear-gradient(110deg, light-dark(#b8500a, #ff8a1f), light-dark(#8a5a00, #ffd27a));
  --wdth: 106%; --wght: 860; --h-wdth: 104%;
}
/* Vampires Strike Back ("vs"): blood red with a pale moon. */
[data-tier="vs"] {
  --accent:   light-dark(#b3192a, #ff4a5a);
  --accent-2: light-dark(#7a2a3a, #ffc2c2);
  --accent-ink: light-dark(#ffffff, #1a0206);
  --grad: linear-gradient(110deg, light-dark(#b3192a, #ff4a5a), light-dark(#7a2a3a, #ffc2c2));
  --wdth: 104%; --wght: 820; --h-wdth: 102%;
}
/* Into the Backrooms ("br"): Level 0 yellow and fluorescent white. */
[data-tier="br"] {
  --accent:   light-dark(#8a7a1a, #e6d36b);
  --accent-2: light-dark(#6e6532, #fffbe0);
  --accent-ink: light-dark(#ffffff, #14120a);
  --grad: linear-gradient(110deg, light-dark(#8a7a1a, #e6d36b), light-dark(#6e6532, #fffbe0));
  --wdth: 100%; --wght: 760; --h-wdth: 100%;
}
/* Hypnophobia ("hy", ticket 040): dream lilac with the lit door's warm white as the second colour. */
[data-tier="hy"] {
  --accent:   light-dark(#6e4a9e, #c8a8e0);
  --accent-2: light-dark(#7a5a3a, #fff2c8);
  --accent-ink: light-dark(#ffffff, #140a1c);
  --grad: linear-gradient(110deg, light-dark(#6e4a9e, #c8a8e0), light-dark(#7a5a3a, #fff2c8));
  --wdth: 100%; --wght: 760; --h-wdth: 100%;
}
/* Biohazard: Project Genesis ("bh", ticket 041): the gas mask's red lenses with the logo's toxic green as the second colour. */
[data-tier="bh"] {
  --accent:   light-dark(#b8261e, #ff5a44);
  --accent-2: light-dark(#4a7a1a, #9be15d);
  --accent-ink: light-dark(#ffffff, #160604);
  --grad: linear-gradient(110deg, light-dark(#b8261e, #ff5a44), light-dark(#4a7a1a, #9be15d));
  --wdth: 104%; --wght: 820; --h-wdth: 102%;
}
/* Lucky Block Challenge ("lb", ticket 035): Lucky Block yellow with a party pink as the second colour. */
[data-tier="lb"] {
  --accent:   light-dark(#9a6b00, #ffd23f);
  --accent-2: light-dark(#b8326b, #ff7ab0);
  --accent-ink: light-dark(#ffffff, #1b1405);
  --grad: linear-gradient(110deg, light-dark(#9a6b00, #ffd23f), light-dark(#b8326b, #ff7ab0));
  --wdth: 104%; --wght: 820; --h-wdth: 102%;
}

/* Lucky World Invasion ("li", coming soon): the invasion's eclipse red-orange with Lucky Block gold as the second colour. */
[data-tier="li"] {
  --accent:   light-dark(#b8361a, #ff7a4a);
  --accent-2: light-dark(#9a6b00, #ffd23f);
  --accent-ink: light-dark(#ffffff, #1a0604);
  --grad: linear-gradient(110deg, light-dark(#b8361a, #ff7a4a), light-dark(#9a6b00, #ffd23f));
  --wdth: 104%; --wght: 820; --h-wdth: 102%;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
p a, dd a, li a, .prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img, svg { display: block; }
code {
  font: .88em var(--mono); background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 6px; padding: .05em .4em; overflow-wrap: anywhere;
}
kbd {
  font: 600 .85em var(--mono); background: var(--surface-2); border: 1px solid var(--line);
  border-bottom-width: 2px; border-radius: 7px; padding: 2px 8px; white-space: nowrap;
}
h1, h2, h3 { font-family: var(--display); font-stretch: var(--h-wdth); letter-spacing: -.02em; line-height: 1.1; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.eyebrow {
  font: 650 11.5px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--faint);
}
/* Section headings speak in the house serif; wordmarks and pack titles keep their own faces. */
.section-head h2, .shelf-head h2, .lib-head h2, .hook-card h2 {
  font-family: var(--serif); font-stretch: normal; font-weight: 560; letter-spacing: -.012em; line-height: 1.05;
}
.lead { color: var(--muted); font-size: 1.125rem; max-width: 62ch; margin: 0; }

/* ---------- wordmark + emblem ---------- */
.wordmark {
  font-family: var(--display); font-stretch: var(--wdth); font-weight: var(--wght);
  letter-spacing: -.035em; line-height: .95; white-space: nowrap;
}
.wordmark b { font-weight: inherit; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark[data-tier="3"] { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }
.emblem { width: 22px; height: 22px; flex: none; overflow: visible; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; font-weight: 700; letter-spacing: -.01em; }
.brand .emblem { width: 24px; height: 24px; }
.brand-name { font-family: var(--display); font-size: 17px; }
.tld { color: var(--faint); font-weight: 500; }
.env-chip {
  font: 700 10px/1 var(--mono); letter-spacing: .1em; padding: 4px 6px; border-radius: 5px;
  color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 50%, transparent);
}
.sitenav { display: flex; align-items: center; gap: 2px; }
.sitenav a {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  color: var(--muted); font-size: 14px; font-weight: 550; white-space: nowrap;
  transition: background .15s, color .15s;
}
.sitenav a:hover { color: var(--text); background: var(--surface-2); }
.sitenav a[aria-current] { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
.sitenav .emblem { width: 18px; height: 18px; }
/* Hover life in the top bar and footer: KevmoMC's planet tilts, Kevmo2MC's moon makes one orbit, the Library's
   back poster fans out. All from the SVG itself, nothing loaded; off with reduced motion. */
.sitenav a .emblem, .footer-head .emblem, .lib-name .emblem { overflow: visible; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.sitenav a[data-tier="1"]:hover .emblem { transform: rotate(-16deg) scale(1.12); }
.emblem .moon { transform-box: view-box; transform-origin: 14.5px 17.5px; }
.sitenav a[data-tier="2"]:hover .moon { animation: orbit-once 1.1s cubic-bezier(.45, 0, .2, 1); }
@keyframes orbit-once { to { transform: rotate(360deg); } }
.emblem .poster-back, .emblem .poster-front { transform-box: view-box; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.emblem .poster-back { transform-origin: 11px 27px; }
.emblem .poster-front { transform-origin: 20px 27px; }
a:hover > .emblem .poster-back, .lib-door:hover .poster-back { transform: rotate(-22deg) translateX(-1.5px); }
a:hover > .emblem .poster-front, .lib-door:hover .poster-front { transform: rotate(7deg) translate(1px, -1.5px); }
.sitenav .short { display: none; }
.nav-sep { width: 1px; height: 20px; background: var(--line); margin: 0 6px; }
/* Status in the top bar: a dot that is green when any server is up, and the player count when anyone is on */
.nav-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.nav-status[data-state="online"] .dot { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
.nav-status[data-state="asleep"] .dot { background: var(--sleep); }
@media (max-width: 760px) {
  .sitenav .label { display: none; }
  .sitenav .short { display: inline; font-weight: 700; }
  .sitenav a { padding: 8px; }
  .nav-sep { margin: 0 2px; }
  .sitenav .text-link { padding: 7px 10px; }
  .sitenav a[data-tier]:not(:has(.short)) .label { display: inline; font-weight: 700; }   /* Kevmo2MC keeps its name */
  /* phones: words, not icons, so every tab says where it goes (OG, Kevmo2MC, Library) */
  .sitenav a > .emblem { display: none; }
  .sitenav a[href="/library"] .label { display: inline; font-weight: 700; }
  .sitenav a { padding: 8px 10px; }
}
/* phones: the crowned K alone is the way home, so the four tabs always fit (Status with "12 online" included) */
@media (max-width: 560px) {
  .brand-name { display: none; }
  .env-chip { display: none; }
}
@media (max-width: 440px) {
  .topbar-inner { gap: 6px; }
  .sitenav { gap: 0; }
  .nav-sep { display: none; }
  .sitenav a, .sitenav .text-link { padding: 7px 6px; font-size: 13px; }
}
@media (max-width: 360px) { .nav-status .status-word { display: none; } }   /* "12 online" → "12" beside the green dot */

/* pack sub-navigation */
.subnav { border-bottom: 1px solid var(--line); background: var(--bg); }
.subnav-inner { display: flex; align-items: center; gap: 24px; height: 52px; }
.subnav-pack { display: flex; align-items: center; gap: 10px; flex: none; }
.subnav-crumb { display: flex; align-items: center; gap: 10px; margin-right: -12px; color: var(--muted); font-size: 14px; font-weight: 550; flex: none; }
.subnav-crumb:hover { color: var(--text); }
.subnav-crumb span { color: var(--faint); font-size: 18px; line-height: 1; }
.subnav-links.more { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
.subnav-pack .wordmark { font-size: 19px; }
.subnav-links { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
.subnav-links::-webkit-scrollbar { display: none; }
.subnav-links a {
  position: relative; padding: 14px 12px; color: var(--muted); font-size: 14px; font-weight: 550; white-space: nowrap;
}
.subnav-links a:hover { color: var(--text); }
.subnav-links a[aria-current]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--grad);
}
.subnav-links a[aria-current] { color: var(--text); }
@media (max-width: 560px) { .subnav-pack .wordmark, .subnav-crumb { display: none; } .subnav-inner { gap: 8px; } }

/* ---------- buttons, chips, status ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: 600 14.5px var(--sans); cursor: pointer; white-space: nowrap;
  transition: border-color .15s, background .15s, transform .15s, filter .15s;
}
.btn:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
[data-tier="3"] .btn.primary, .btn.primary[data-tier="3"] { background: var(--grad); color: #0b0612; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(2px); }
.address .mono { font: 500 14px var(--mono); }
.address .copy { font: 600 11px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--faint); border-left: 1px solid var(--line); padding-left: 10px; }
.address.copied .copy { color: var(--ok); }
/* small phones: the longest address (deceasedcraft.kevmomc.net) still fits on one line */
@media (max-width: 400px) { .btn.address { padding: 0 12px; gap: 8px; } .address .mono { font-size: 12.5px; } }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 9px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap;
}
.chip.live { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.chip.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.building { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.chip.planned { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: transparent; }

.status {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: 14px; font-weight: 550; color: var(--muted);
}
.status.small { height: 30px; padding: 0 12px; font-size: 13px; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.status[data-state="online"] { color: var(--text); }
.status[data-state="online"] .dot { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.status[data-state="starting"] .dot { background: var(--warn); animation: pulse 1.2s ease-in-out infinite; }
.status[data-state="asleep"] .dot { background: var(--sleep); }
@keyframes pulse { 50% { opacity: .3; } }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.panel h3 { margin: 0 0 16px; font-size: 1.05rem; }

/* ---------- sections ---------- */
.section { padding-top: 72px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.section-head h2 { margin: 6px 0 0; font-size: clamp(1.6rem, 3.4vw, 2.25rem); font-weight: 760; letter-spacing: -.03em; }
.section-head .lead { font-size: 1rem; }
.more { color: var(--accent); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
html[data-tier="1"] .reveal { opacity: 1; transform: none; }

/* ---------- heroes: the ladder made visible ---------- */
.hero { position: relative; overflow: hidden; padding: 80px 0 72px; isolation: isolate; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.35fr .65fr; } }
.hero .eyebrow { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.hero .hero-title { margin: 18px 0 16px; font-size: clamp(3.1rem, 10.5vw, 7rem); }
.hero .hero-title .wordmark { display: inline-block; }
@media (max-width: 360px) { .hero .hero-title { font-size: 2.6rem; } }   /* the live pack's wordmark fits a 320px screen */
.hero-tagline { margin: 0; max-width: 56ch; font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); }
.hero .row { margin-top: 32px; }
.hero-art { display: grid; place-items: center; }
.hero-art .emblem { width: min(100%, 300px); height: auto; aspect-ratio: 1; }
/* A server's icon (core.js serverIcon): the hero art on a pack's own page, and on Play pages beside the address */
.server-icon { margin: 0; display: grid; justify-items: center; gap: 14px; }
.server-icon img {
  width: min(100%, 280px); height: auto; aspect-ratio: 1; border-radius: 24px;
  box-shadow: 0 0 0 1px #ffffff1f, 0 30px 70px -24px color-mix(in srgb, var(--accent) 55%, #000), 0 12px 30px -12px #000a;
}
.server-icon figcaption { font: 650 11px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); text-align: center; }
.hero.compact .server-icon img { width: min(100%, 210px); border-radius: 20px; }
@media (max-width: 899px) { .hero.compact .server-icon { display: none; } }
@media (min-width: 900px) { .hero.compact .hero-grid:has(.server-icon) { grid-template-columns: 1.35fr .65fr; } }
/* Kevmo2MC's overview hero: the new world from orbit on the right, the words on dark space on the left */
body[data-pack="kevmo2mc"] .hero[data-tier="2"]:not(.compact) {
  background:
    linear-gradient(90deg, #07090f 0%, #07090fe6 32%, #07090f40 62%, transparent 80%),
    linear-gradient(0deg, #07090f 0%, transparent 25%),
    url("/assets/img/kevmo2mc-hero.webp") right center / auto 100% no-repeat,
    #07090f;
}
body[data-pack="kevmo2mc"] .hero[data-tier="2"]:not(.compact) .hero-art { visibility: hidden; }
@media (max-width: 899px) {
  body[data-pack="kevmo2mc"] .hero[data-tier="2"]:not(.compact) {
    background: linear-gradient(0deg, #07090f 35%, #07090fb3 70%, #07090f66), url("/assets/img/kevmo2mc-hero.webp") 70% 0 / auto 60% no-repeat, #07090f;
  }
}
@media (max-width: 899px) { .hero-art { display: none; } }
.hero.compact { padding: 48px 0 40px; }
.hero.compact h1, .hero.compact .hero-title { font-size: clamp(2.4rem, 6vw, 3.75rem); margin: 12px 0 10px; }

/* home: a hub. Two cards first (live now, next release), the Library band, then one line of server status. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* The home masthead: always dark. The art (21:9, 1024 px) is drawn at its own height on the right, never upscaled;
   the band's colour is the art's own sky (#070c12), so its left edge melts into it. The hub cards overlap the bottom. */
.masthead {
  --mh: 400px; --emblem-w: 150px; color-scheme: dark; color: #e8ebf1; height: var(--mh); position: relative; isolation: isolate;
  background:
    linear-gradient(90deg, #070c12 0, #070c12 calc(100% - var(--mh) * 2.38), transparent calc(100% - var(--mh) * 2.38 + 280px)),
    url("/assets/img/home-masthead.webp") right top / auto 100% no-repeat,
    #070c12;
}
.masthead::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grain); background-size: 160px; opacity: .05; }
/* the K is a tight transparent cutout (img/kevmo-emblem-k.webp, 401x480), so it stands as tall as the headline block */
.masthead-inner { display: flex; align-items: center; gap: 26px; padding-top: 38px; }
.masthead-emblem { width: var(--emblem-w); height: auto; flex: none; filter: drop-shadow(0 12px 28px #000a); }
.masthead h1 .nowrap { white-space: nowrap; }
.masthead h1 { margin: 8px 0 0; max-width: 15ch; font: 560 clamp(2rem, 4.2vw, 3.1rem)/1.05 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.masthead + .hub { margin-top: -132px; position: relative; }
/* Who's on right now (home.js playingNow): under the headline, the first thing anyone sees */
.playing-now { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 18px; padding-left: calc(var(--emblem-w) + 26px); }
.playing-now[hidden] { display: none; }
.pn-head { display: inline-flex; align-items: center; gap: 9px; margin-right: 4px; font: 650 14px var(--sans); color: #e8ebf1d0; }
.pn-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sleep); flex: none; }
.playing-now[data-state="awake"] .pn-head .dot { background: var(--ok); }
.playing-now[data-state="playing"] .pn-head { font-size: 15.5px; color: #fff; }
.playing-now[data-state="playing"] .pn-head .dot { background: var(--ok); animation: live-ping 1.8s ease-out infinite; }
@keyframes live-ping {
  from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 70%, transparent); }
  to { box-shadow: 0 0 0 10px transparent; }
}
.pn-server {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px;
  background: #ffffff12; border: 1px solid #ffffff24; backdrop-filter: blur(8px); color: #fff; font-size: 13.5px;
  transition: border-color .2s, background .2s;
}
.pn-server:has(.pn-faces) { padding-left: 6px; border-color: color-mix(in srgb, var(--ok) 55%, transparent); background: color-mix(in srgb, var(--ok) 12%, #ffffff08); }
.pn-server:hover { border-color: var(--ok); background: #ffffff1c; }
.pn-server strong { font-weight: 650; }
.pn-server small { font-size: 12.5px; color: #ffffffa6; }
.pn-faces { display: flex; }
.pn-faces img { width: 28px; height: 28px; border-radius: 7px; image-rendering: pixelated; box-shadow: 0 0 0 2px #070c12; background: #161a22; }
.pn-faces img + img { margin-left: -8px; }
.pn-note { font-size: 14px; color: #ffffff8c; }
.pn-more { font-size: 13px; font-weight: 650; color: #e2c08a; margin-left: 4px; text-shadow: 0 1px 10px #000, 0 0 2px #000; }
.pn-head, .pn-note { text-shadow: 0 1px 10px #000; }
.pn-more:hover { color: #fff; }
@media (max-width: 720px) {
  .masthead {
    --mh: 380px;
    background: linear-gradient(180deg, #070c12 30%, #070c1200 62%), url("/assets/img/home-masthead.webp") 72% bottom / auto 62% no-repeat, #070c12;
  }
  .masthead { --emblem-w: 76px; }
  .masthead-inner { padding-top: 28px; gap: 16px; }
  .masthead h1 { font-size: 1.75rem; }   /* three lines beside the K, "self-hosted" kept whole */
  .masthead + .hub { margin-top: -96px; }
  /* the live row can wrap to a few lines here, so the band grows with it */
  .masthead { height: auto; min-height: var(--mh); padding-bottom: 120px; }
  .playing-now { padding-left: 0; margin-top: 20px; }
}
.hub { display: grid; gap: 16px; padding-top: 32px; padding-bottom: 40px; }
@media (min-width: 900px) { .hub { grid-template-columns: 1fr 1fr; } }
.hub-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px;
  border-radius: 20px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); overflow: hidden;
}
.hub-card .eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font: 13px var(--mono); color: var(--muted); }
.hub-card h2 { margin: 0; font-size: clamp(2.4rem, 5.4vw, 3.6rem); line-height: 1; }
.hub-card h2 a:hover { filter: brightness(1.12); }
.hub-line { margin: 0; color: var(--muted); max-width: 52ch; }
.hub-card .row { gap: 8px; }
.hub-card .btn { height: 40px; padding: 0 15px; font-size: 14px; }
.hub-card .launch { margin: 0; padding: 10px 14px; }
.hub-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.hub-links a { color: var(--muted); font-size: 14px; font-weight: 550; }
.hub-links a:hover { color: var(--accent); }
.hub-live {
  background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--accent) 22%, transparent) 1px, transparent 0) 0 0 / 22px 22px,
    var(--surface);
}
.hub-next {
  color-scheme: dark; color: var(--text); border-color: #1d2433;
  background:
    radial-gradient(1px 1px at 20% 30%, #fff8 50%, transparent 51%), radial-gradient(1px 1px at 70% 20%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 45% 70%, #fff5 50%, transparent 51%), radial-gradient(1px 1px at 85% 55%, #fff7 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 12%, #fff6 50%, transparent 51%), radial-gradient(1px 1px at 8% 82%, #fff5 50%, transparent 51%),
    radial-gradient(70% 60% at 100% 100%, #4a5be840, transparent 70%), radial-gradient(50% 40% at 80% 0%, #5ee6dc1f, transparent 70%),
    var(--void);
}
/* the new world rising in the corner of the next-release card (the Kevmo2MC hero art, dimmed under the text) */
.hub-next {
  background:
    linear-gradient(100deg, var(--void) 30%, #07090fcc 55%, #07090f66 100%),
    url("/assets/img/kevmo2mc-hero.webp") 78% 30% / cover no-repeat,
    var(--void);
}
.hub-latest {
  display: flex; flex-direction: column; gap: 4px; margin-top: auto; padding: 12px 14px; border-radius: 12px;
  border: 1px solid #ffffff1a; background: #ffffff08; transition: border-color .15s;
}
.hub-latest:hover { border-color: var(--accent); }
.hub-latest strong { font-weight: 650; }

/* the open mod votes (home), right under the two cards: one slim band, the ask and a tile per vote */
/* no padding of its own: the cards' 40px above, the Library band's 56px margin below */
.votes-band {
  display: grid; gap: 14px; align-items: center; padding: 14px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
@media (min-width: 1000px) { .votes-band { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 640px) and (max-width: 999px) { .votes-band { grid-template-columns: 1fr 1fr; } .votes-head { grid-column: 1 / -1; } }
.votes-head { padding: 6px 10px; }
.votes-head .eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.votes-head h2 { margin: 0 0 6px; font: 560 24px/1.15 var(--serif); letter-spacing: -.01em; }
.votes-head p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.vote-card {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; padding: 8px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.vote-card:hover, .vote-card:focus-visible { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 14px 30px -18px var(--accent); }
.vote-shots { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; height: 84px; border-radius: 9px; overflow: hidden; }
.vote-shots img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vote-shots img:first-child { grid-row: span 2; }
.vote-body { min-width: 0; padding-right: 6px; }
.vote-body h3 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 3px; font-size: 1.05rem; letter-spacing: -.01em; }
.vote-go { margin-left: auto; display: inline-flex; gap: 6px; font-size: 13px; font-weight: 700; color: var(--accent); }
.vote-go .arrow { transition: translate .2s; }
.vote-card:hover .vote-go .arrow { translate: 3px 0; }
.vote-body p { margin: 0; font-size: 13px; line-height: 1.35; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vote-count { margin-top: 5px; font: 500 11.5px var(--mono); color: var(--muted); }

/* the Library on the home page: three featured packs (library.json "featured") and the door to /library; always dark */
.home-library {
  color-scheme: dark; color: var(--text); padding: 64px 0 72px; margin-top: 56px;
  --bg: #07080b; --surface: #0f1117; --surface-2: #161a22; --line: #1f2430; background: var(--bg);
}
.lib-head { margin-bottom: 26px; }
.lib-head .eyebrow { margin-bottom: 10px; color: #e2c08a; }
.lib-h2 { display: inline-flex; align-items: center; gap: .3em; color: inherit; }
.lib-h2 .emblem { width: .72em; height: .72em; overflow: visible; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.lib-h2:hover { color: #fff; }
.lib-head h2 { margin: 0; font-size: clamp(36px, 5vw, 60px); }
.home-library { background: var(--grain) repeat, var(--bg); background-size: 160px, auto; background-blend-mode: soft-light; }
.lib-head .lead { max-width: 52ch; }
.lib-features { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .lib-features { grid-template-columns: 1fr; } }
.lib-feature {
  --tint: var(--accent);
  position: relative; isolation: isolate; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 18px; container-type: inline-size;
  background: #0b0d12; color: #fff; box-shadow: 0 0 0 1px #ffffff14, 0 30px 60px -30px #000;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s;
}
@media (max-width: 900px) { .lib-feature { aspect-ratio: 5 / 4; } }
@media (max-width: 560px) { .lib-feature { aspect-ratio: 4 / 5; } }
.lib-feature-art { position: absolute; inset: 0; z-index: -2; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.lib-feature::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, #05060a 0%, #05060ae6 30%, #05060a33 60%, transparent 75%);
}
.lib-feature:hover, .lib-feature:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--tint) 70%, transparent), 0 36px 70px -26px color-mix(in srgb, var(--tint) 55%, transparent);
}
.lib-feature:hover .lib-feature-art, .lib-feature:focus-visible .lib-feature-art { transform: scale(1.05); }
.lib-feature .status { background: #000b; backdrop-filter: blur(6px); height: 28px; font-size: 12px; }
.lib-feature-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; }
.lib-feature-title {
  margin: 12px 0 10px; font-family: var(--display); font-stretch: 112%; font-weight: 860;
  font-size: min(calc(clamp(30px, 3.4vw, 46px) * var(--art, 1)), var(--art-max, 999px)); letter-spacing: -.035em; line-height: 1; text-wrap: balance;
}
.lib-feature-line {
  margin: 12px 0 0; font-size: 14.5px; line-height: 1.5; color: #e8ebf1d0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.lib-feature-tags { margin: 12px 0 0; font-size: 14.5px; line-height: 1.5; color: #e8ebf1d0; }
.lib-feature-go { display: inline-flex; gap: 8px; margin-top: 16px; font-weight: 650; font-size: 14px; color: var(--tint); }

/* the door to /library: how many packs, and every scene on a running reel of film. A frame + its gap is 56px, four
   sprocket holes, so the reel loops seamlessly at -50% (it holds the frames twice) */
.lib-door {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; margin-top: 20px;
  padding: 20px 24px; border-radius: 18px; background: var(--surface); box-shadow: 0 0 0 1px #ffffff14;
  color: var(--text); transition: box-shadow .2s;
}
.lib-door:hover, .lib-door:focus-visible { box-shadow: 0 0 0 1px var(--accent), 0 20px 50px -25px var(--accent); }
.lib-door-text { display: grid; gap: 4px; }
.lib-door-text strong { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 560; font-size: 26px; letter-spacing: -.01em; }
.lib-door-text .emblem { width: 30px; height: 30px; overflow: visible; }
.lib-door-text span { font: 500 12.5px var(--mono); color: var(--muted); }
.lib-door-strip {
  overflow: hidden; min-width: 0;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.lib-door-reel {
  --perf: repeating-linear-gradient(90deg, transparent 0 4px, #ffffff2e 4px 9px, transparent 9px 14px);
  display: flex; gap: 6px; width: max-content; padding: 13px 6px 13px 0; background: #030406;
  background-image: var(--perf), var(--perf); background-size: 100% 4px; background-repeat: no-repeat;
  background-position: 0 4px, 0 calc(100% - 4px);
  animation: reel calc(var(--frames) * 3.2s) linear infinite;
}
@keyframes reel { to { transform: translateX(-50%); } }
.lib-door-thumb {
  flex: 0 0 50px; aspect-ratio: 2 / 3; border-radius: 3px; overflow: hidden;
  filter: brightness(.72) saturate(.85); transition: filter .4s;
}
.lib-door:hover .lib-door-thumb, .lib-door:focus-visible .lib-door-thumb { filter: none; }
.lib-door .btn { height: 44px; }
@media (max-width: 720px) {
  .lib-door { grid-template-columns: 1fr; gap: 14px; }
  .lib-door-strip { margin: 0 -24px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
  .lib-door .btn { justify-self: start; }
}
.shelf-head .more { margin-left: auto; }
.shelf-arrows { display: flex; gap: 8px; margin-left: auto; }
.shelf-arrows[hidden] { display: none; }
.shelf-arrow {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); font-size: 16px; cursor: pointer; transition: border-color .15s, opacity .15s;
}
.shelf-arrow:hover:not(:disabled) { border-color: var(--accent); }
.shelf-arrow:disabled { opacity: .35; cursor: default; }
@media (hover: none) { .shelf-arrows { display: none; } }

/* one line of server status (home), the whole strip opens /status */
.status-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 18px 22px; transition: border-color .15s; }
.status-strip:hover { border-color: var(--accent); }
.strip-head { display: flex; flex-direction: column; gap: 2px; }
.strip-count { font: 12.5px var(--mono); color: var(--muted); }
.strip-list { display: flex; flex-wrap: wrap; gap: 6px 16px; flex: 1; }
.strip-server { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--muted); }
.strip-server .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.strip-server[data-state="online"] { color: var(--text); }
.strip-server[data-state="online"] .dot { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); }
.strip-server[data-state="starting"] .dot { background: var(--warn); }
.strip-server[data-state="asleep"] .dot { background: var(--sleep); }

/* I · Iron: the page itself, a faint dot grid, nothing moves */
.hero[data-tier="1"] {
  background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--text) 13%, transparent) 1px, transparent 0) 0 0 / 24px 24px,
    linear-gradient(var(--bg), var(--bg));
  border-bottom: 1px solid var(--line);
}
.hero[data-tier="1"]::after {   /* fade the dots out toward the text */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 90% at 15% 40%, var(--bg) 30%, transparent 75%);
}
.hero[data-tier="1"] .hero-art .emblem { filter: drop-shadow(0 20px 40px color-mix(in srgb, var(--accent) 25%, transparent)); }

/* DeceasedCraft: a dark, hazy city sky in both themes, green fallout glow top right, embers bottom left */
.hero[data-tier="dc"] {
  color-scheme: dark; color: var(--text);
  background:
    radial-gradient(50% 70% at 85% 0%, #9be15d26 0%, transparent 70%),
    radial-gradient(45% 60% at 5% 110%, #f08a4b1f 0%, transparent 70%),
    linear-gradient(180deg, #0c100a, #080a07);
  border-bottom: 1px solid #1c2417;
}
.hero[data-tier="dc"] .hero-art .emblem { filter: drop-shadow(0 0 40px #9be15d40); }

/* Prominence II: dark ash in both themes, lava glow rising from the bottom, the Void's violet top right */
.hero[data-tier="p2"] {
  color-scheme: dark; color: var(--text);
  background:
    radial-gradient(60% 70% at 30% 115%, #ff7a2a33 0%, transparent 70%),
    radial-gradient(40% 55% at 90% -5%, #9b6bff26 0%, transparent 70%),
    linear-gradient(180deg, #0f0b0a, #090706);
  border-bottom: 1px solid #2a1c16;
}
.hero[data-tier="p2"] .hero-art .emblem { filter: drop-shadow(0 0 40px #ff8a3d45); }

/* Atmos: dark iron in both themes, the crystal's blue glow in the middle, copper heat from the bottom */
.hero[data-tier="at"] {
  color-scheme: dark; color: var(--text);
  background:
    radial-gradient(45% 65% at 70% 30%, #2fa8ff2e 0%, transparent 70%),
    radial-gradient(55% 60% at 20% 115%, #e8894a29 0%, transparent 70%),
    linear-gradient(180deg, #0b0a0c, #070608);
  border-bottom: 1px solid #1f1c22;
}
.hero[data-tier="at"] .hero-art .emblem { filter: drop-shadow(0 0 40px #2fa8ff45); }

/* COBBLEVERSE: a night-blue sky in both themes, aqua high up, sunset gold from the bottom */
.hero[data-tier="cv"] {
  color-scheme: dark; color: var(--text);
  background:
    radial-gradient(45% 65% at 75% 25%, #4fd2ff2b 0%, transparent 70%),
    radial-gradient(60% 60% at 25% 115%, #ffcc3329 0%, transparent 70%),
    linear-gradient(180deg, #08111a, #060a10);
  border-bottom: 1px solid #16232f;
}
.hero[data-tier="cv"] .hero-art .emblem { filter: drop-shadow(0 0 40px #4fd2ff45); }

/* FTB Skies 2: Aero: a deep sky in both themes, blue high up, brass sunlight from the side */
.hero[data-tier="sa"] {
  color-scheme: dark; color: var(--text);
  background:
    radial-gradient(45% 65% at 75% 25%, #7cc0f62b 0%, transparent 70%),
    radial-gradient(60% 60% at 15% 110%, #f2c46a24 0%, transparent 70%),
    linear-gradient(180deg, #0a1626, #070d16);
  border-bottom: 1px solid #172638;
}
.hero[data-tier="sa"] .hero-art .emblem { filter: drop-shadow(0 0 40px #7cc0f645); }

/* Isle of Berk: a cold sea in both themes, teal sky above, dragon-fire glow low on the horizon */
.hero[data-tier="ib"] {
  color-scheme: dark; color: var(--text);
  background:
    radial-gradient(45% 65% at 75% 25%, #5fc8d82b 0%, transparent 70%),
    radial-gradient(60% 60% at 20% 115%, #ffad5a24 0%, transparent 70%),
    linear-gradient(180deg, #07141a, #050d11);
  border-bottom: 1px solid #143038;
}
.hero[data-tier="ib"] .hero-art .emblem { filter: drop-shadow(0 0 40px #5fc8d845); }

/* Society: Sunlit Valley: a warm evening in both themes, low sun gold, fields green at the foot */
.hero[data-tier="sv"] {
  color-scheme: dark; color: var(--text);
  background:
    radial-gradient(45% 65% at 75% 25%, #f6c4532e 0%, transparent 70%),
    radial-gradient(60% 60% at 20% 115%, #8fd05a1f 0%, transparent 70%),
    linear-gradient(180deg, #141008, #0c0a05);
  border-bottom: 1px solid #2e2612;
}
.hero[data-tier="sv"] .hero-art .emblem { filter: drop-shadow(0 0 40px #f6c45345); }

/* Exosphere: the edge of space in both themes, indigo above, rose low where the sun has set */
.hero[data-tier="ex"] {
  color-scheme: dark; color: var(--text);
  background:
    radial-gradient(45% 65% at 75% 20%, #a59cff2b 0%, transparent 70%),
    radial-gradient(60% 60% at 20% 115%, #f0b4bc24 0%, transparent 70%),
    linear-gradient(180deg, #0c0b22, #07061a);
  border-bottom: 1px solid #221e48;
}
.hero[data-tier="ex"] .hero-art .emblem { filter: drop-shadow(0 0 40px #a59cff45); }

/* The Halloween packs (ticket 030): dark in both themes, each lit by its own colour */
.hero[data-tier="ch"], .hero[data-tier="vs"], .hero[data-tier="br"], .hero[data-tier="hy"] { color-scheme: dark; color: var(--text); }
.hero[data-tier="ch"] {
  background:
    radial-gradient(45% 65% at 75% 25%, #ff8a1f2b 0%, transparent 70%),
    radial-gradient(60% 60% at 25% 115%, #ffd27a1f 0%, transparent 70%),
    linear-gradient(180deg, #0d0807, #070404);
  border-bottom: 1px solid #2a1810;
}
.hero[data-tier="vs"] {
  background:
    radial-gradient(45% 65% at 70% 25%, #ff4a5a2e 0%, transparent 70%),
    radial-gradient(55% 60% at 20% 115%, #ffc2c21a 0%, transparent 70%),
    linear-gradient(180deg, #0d0407, #060203);
  border-bottom: 1px solid #2a0c14;
}
.hero[data-tier="br"] {
  background:
    radial-gradient(50% 60% at 50% 0%, #fffbe024 0%, transparent 70%),
    radial-gradient(60% 60% at 50% 115%, #e6d36b1f 0%, transparent 70%),
    linear-gradient(180deg, #14120a, #0a0905);
  border-bottom: 1px solid #2c2812;
}
.hero[data-tier="ch"] .hero-art .emblem { filter: drop-shadow(0 0 40px #ff8a1f45); }
.hero[data-tier="vs"] .hero-art .emblem { filter: drop-shadow(0 0 40px #ff4a5a45); }
.hero[data-tier="br"] .hero-art .emblem { filter: drop-shadow(0 0 40px #e6d36b45); }
.hero[data-tier="hy"] {
  background:
    radial-gradient(45% 60% at 60% 10%, #efe6f422 0%, transparent 70%),
    radial-gradient(60% 60% at 30% 115%, #c8a8e024 0%, transparent 70%),
    linear-gradient(180deg, #140a1c, #0a0612);
  border-bottom: 1px solid #2a1838;
}
.hero[data-tier="hy"] .hero-art .emblem { filter: drop-shadow(0 0 40px #c8a8e045); }
/* Biohazard: dark in both themes, a dust sun from above, the bunker's green light from below */
.hero[data-tier="bh"] { color-scheme: dark; color: var(--text); }
.hero[data-tier="bh"] {
  background:
    radial-gradient(45% 65% at 72% 22%, #ff7a4a2b 0%, transparent 70%),
    radial-gradient(55% 60% at 30% 115%, #8fd43a1c 0%, transparent 70%),
    linear-gradient(180deg, #0d0f0c, #070806);
  border-bottom: 1px solid #22281c;
}
.hero[data-tier="bh"] .hero-art .emblem { filter: drop-shadow(0 0 40px #ff5a4445); }

/* Lucky Block Challenge: a warm night, Lucky Block gold from above, party pink from below */
.hero[data-tier="lb"] {
  color-scheme: dark; color: var(--text);
  background:
    radial-gradient(45% 65% at 75% 20%, #ffd23f2e 0%, transparent 70%),
    radial-gradient(55% 60% at 20% 115%, #ff7ab01f 0%, transparent 70%),
    linear-gradient(180deg, #14100a, #0a0805);
  border-bottom: 1px solid #2e2612;
}
.hero[data-tier="lb"] .hero-art .emblem { filter: drop-shadow(0 0 40px #ffd23f45); }

/* II · Diamond: deep space in both themes */
.hero[data-tier="2"], .hero[data-tier="3"], .space { color-scheme: dark; color: var(--text); }
.hero[data-tier="2"] {
  background:
    radial-gradient(1px 1px at 12% 22%, #fff9 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 68%, #fff6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 41% 14%, #fffa 50%, transparent 51%),
    radial-gradient(1px 1px at 57% 82%, #fff5 50%, transparent 51%),
    radial-gradient(1px 1px at 66% 34%, #fff7 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 79% 58%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 18%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 76%, #fff5 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 88%, #fff4 50%, transparent 51%),
    radial-gradient(1px 1px at 48% 46%, #fff4 50%, transparent 51%),
    radial-gradient(55% 80% at 88% 105%, #4a5be850 0%, transparent 70%),
    radial-gradient(40% 60% at 72% -10%, #5ee6dc26 0%, transparent 70%),
    var(--void);
  border-bottom: 1px solid #1b2130;
}
.hero[data-tier="2"] .hero-art .emblem { filter: drop-shadow(0 0 40px #5ee6dc40); }

/* III · Netherite: a nebula that drifts, gold hairline at the bottom */
.hero[data-tier="3"] {
  background:
    radial-gradient(1px 1px at 8% 18%, #fffb 50%, transparent 51%),
    radial-gradient(1px 1px at 18% 72%, #fff7 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 33% 30%, #fffc 50%, transparent 51%),
    radial-gradient(1px 1px at 46% 86%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 12%, #fff8 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 71% 64%, #fffb 50%, transparent 51%),
    radial-gradient(1px 1px at 83% 26%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 91% 84%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 4% 52%, #fff5 50%, transparent 51%),
    radial-gradient(1px 1px at 62% 48%, #fff5 50%, transparent 51%),
    radial-gradient(1px 1px at 38% 58%, #fff4 50%, transparent 51%),
    radial-gradient(1px 1px at 76% 6%, #fff6 50%, transparent 51%),
    #050409;
}
.hero[data-tier="3"]::before {
  content: ""; position: absolute; inset: -25%; z-index: -1;
  background:
    radial-gradient(32% 42% at 68% 42%, #9b6bff4d, transparent 70%),
    radial-gradient(28% 36% at 82% 70%, #e070c838, transparent 70%),
    radial-gradient(24% 30% at 58% 22%, #f0c35a2a, transparent 70%),
    radial-gradient(40% 50% at 15% 95%, #6b3fd422, transparent 70%);
  animation: drift 28s ease-in-out infinite alternate;
  will-change: transform;
}
.hero[data-tier="3"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, #f0c35a99, #e070c899, #9b6bff99, transparent);
}
.hero[data-tier="3"] .hero-art .emblem { filter: drop-shadow(0 0 50px #f0c35a38); }
@keyframes drift { to { transform: translate3d(-5%, 4%, 0) rotate(7deg) scale(1.1); } }

/* launch countdown (tier II hero) */
.launch {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  margin-top: 32px; padding: 14px 18px; width: fit-content; max-width: 100%;
  border: 1px solid #ffffff1f; border-radius: var(--radius); background: #ffffff0b;
}
.countdown {
  font: 700 13px/1 var(--mono); letter-spacing: .04em; padding: 9px 12px; border-radius: 999px;
  background: var(--grad); color: var(--accent-ink);
}
.launch-date { font-weight: 650; }
.launch-note { font-size: 13px; color: var(--muted); }

/* ---------- home: the ladder ---------- */
.ladder { display: grid; gap: 16px; align-items: end; }
@media (min-width: 900px) { .ladder { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 26px; border-radius: 20px; overflow: hidden; isolation: isolate;
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
@media (min-width: 900px) { .step { min-height: calc(360px + var(--rise) * 64px); } }
.step:hover { transform: translateY(-4px); }
.step .emblem { width: 56px; height: 56px; }
.step-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.step .wordmark { font-size: clamp(2rem, 3.4vw, 2.6rem); margin-top: auto; }
.step-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font: 13px var(--mono); color: var(--muted); }
.step-meta strong { color: var(--text); font-family: var(--display); font-size: 1.35rem; font-weight: 750; letter-spacing: -.02em; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.step-go { font-weight: 650; font-size: 14.5px; color: var(--accent); display: flex; align-items: center; gap: 6px; }
.step[data-tier="2"] {
  color-scheme: dark; color: var(--text); border-color: #1d2433;
  background:
    radial-gradient(1px 1px at 20% 30%, #fff8 50%, transparent 51%), radial-gradient(1px 1px at 70% 20%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 45% 70%, #fff5 50%, transparent 51%), radial-gradient(1px 1px at 85% 55%, #fff7 50%, transparent 51%),
    radial-gradient(70% 60% at 100% 100%, #4a5be840, transparent 70%), radial-gradient(50% 40% at 80% 0%, #5ee6dc1f, transparent 70%),
    var(--void);
}
.step[data-tier="3"] {
  color-scheme: dark; color: var(--text); border: 1px solid transparent;
  background:
    radial-gradient(1px 1px at 15% 25%, #fffa 50%, transparent 51%), radial-gradient(1px 1px at 60% 15%, #fff7 50%, transparent 51%),
    radial-gradient(1px 1px at 35% 65%, #fff6 50%, transparent 51%), radial-gradient(1px 1px at 80% 45%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 85%, #fff5 50%, transparent 51%),
    radial-gradient(60% 50% at 85% 20%, #9b6bff40, transparent 70%), radial-gradient(50% 40% at 20% 100%, #e070c830, transparent 70%),
    radial-gradient(30% 25% at 70% 60%, #f0c35a1c, transparent 70%),
    linear-gradient(#060409, #060409) padding-box,
    linear-gradient(160deg, #f0c35a88, #e070c855 40%, #9b6bff66) border-box;
}
.step[data-tier="3"]:hover { box-shadow: 0 20px 60px -20px #9b6bff66; }
.step[data-tier="2"]:hover { box-shadow: 0 20px 60px -20px #5ee6dc55; }
.ladder-floor { margin-top: 14px; display: grid; gap: 16px; font: 12px var(--mono); color: var(--faint); }
@media (min-width: 900px) { .ladder-floor { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 899px) { .ladder-floor { display: none; } }
.ladder-floor span { border-top: 1px solid var(--line); padding-top: 10px; }

/* ten pillars (home) */
.tenlist { list-style: none; margin: 0; padding: 0; counter-reset: ten; display: grid; gap: 0 40px; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .tenlist { grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(5, auto); } }
.tenlist li { counter-increment: ten; display: grid; grid-template-columns: 34px 1fr; align-content: start; gap: 2px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tenlist li::before { content: counter(ten, decimal-leading-zero); grid-row: span 2; font: 600 12px/1.9 var(--mono); color: var(--accent); }
.tenlist strong { font-weight: 650; }
.tenlist span { color: var(--muted); font-size: 15px; }

/* ---------- servers (home) ---------- */
.servers { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.server-card { display: flex; flex-direction: column; gap: 14px; }
.server-card .status { align-self: flex-start; }
.server-card h3 { margin: 4px 0 0; font-size: 1.4rem; }
.server-card p { margin: 0; color: var(--muted); font-size: 15px; }
.server-card .row { gap: 8px; }
.server-card .btn { height: 38px; padding: 0 14px; font-size: 13.5px; }
.players { display: flex; flex-wrap: wrap; gap: 8px; }
.players:empty { display: none; }
.player {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 14px;
}
a.player:hover { border-color: var(--accent); }
.player img { width: 24px; height: 24px; border-radius: 6px; image-rendering: pixelated; background: var(--surface-2); }
.player .where { color: var(--faint); }

/* ---------- updates (home + roadmap) ---------- */
.updates { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.update-card { display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--accent); transition: transform .2s; }
.update-card:hover { transform: translateY(-2px); }
.update-card strong { font-family: var(--display); font-size: 1.15rem; letter-spacing: -.015em; line-height: 1.25; }
.update-card p { margin: 0; color: var(--muted); font-size: 15px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font: 12.5px var(--mono); color: var(--faint); }

/* ---------- overview: story, pillars, stats ---------- */
.story { display: grid; gap: 0; }
.chapter-row { display: grid; gap: 8px 48px; padding: 36px 0; border-top: 1px solid var(--line); }
.chapter-row:first-child { border-top: 0; padding-top: 8px; }
@media (min-width: 860px) { .chapter-row { grid-template-columns: 300px 1fr; } }
.chapter-row h3 { margin: 8px 0 0; font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 720; }
.chapter-row .kicker { font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.prose { color: var(--muted); font-size: 1.075rem; max-width: 64ch; }
.prose p { margin: 0 0 12px; }
.prose strong { color: var(--text); }
@media (min-width: 860px) { .chapter-row .prose { padding-top: 26px; } }

.pillars { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); counter-reset: pillar; }
.pillar {
  counter-increment: pillar; position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 22px 22px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.pillar::before { content: counter(pillar, decimal-leading-zero); font: 600 12px var(--mono); color: var(--accent); }
.pillar-text { display: contents; }
.pillar h3 { margin: 0; font-size: 1.15rem; font-weight: 700; }
.pillar p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
/* Pillars with art: a dark band exactly the art's backdrop (#0a0e17), no card boxes, so each chunk floats on the
   page itself. Three across; a last pillar left alone on its row becomes the wide finale (Kevmo2MC: Leaving). */
.pillar-band {
  color-scheme: dark; color: var(--text); margin-top: 72px; padding: 72px 0 64px;
  --bg: #0a0e17; --surface: #0a0e17; --surface-2: #131a28; --line: #1c2434; background: var(--bg);
}
.pillars.with-art { gap: 8px 28px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .pillars.with-art { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .pillars.with-art { grid-template-columns: repeat(3, 1fr); } }
.with-art .pillar { padding: 0 0 26px; background: none; border: 0; gap: 0; }
.with-art .pillar::before { order: 1; margin: -6px 0 6px; font: 500 15px/1 var(--serif); color: var(--accent); }
.with-art .pillar-text { display: flex; flex-direction: column; gap: 8px; order: 2; }
.with-art .pillar h3 { font: 560 1.45rem/1.1 var(--serif); letter-spacing: -.01em; }
.pillar-art {
  width: 100%; height: auto; aspect-ratio: 1024 / 572; order: 0;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent); mask-image: radial-gradient(closest-side, #000 72%, transparent);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.with-art .pillar:hover .pillar-art { transform: translateY(-6px) scale(1.03); }
@media (min-width: 980px) {
  .with-art .pillar:last-child:nth-child(3n + 1) {
    grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; column-gap: 40px; align-items: center; padding-top: 12px;
  }
  .with-art .pillar:last-child:nth-child(3n + 1) .pillar-art { grid-row: 1 / span 2; }
  .with-art .pillar:last-child:nth-child(3n + 1)::before { align-self: end; margin: 0; }
  .with-art .pillar:last-child:nth-child(3n + 1) .pillar-text { align-self: start; max-width: 44ch; }
  .with-art .pillar:last-child:nth-child(3n + 1) h3 { font-size: 2.2rem; }
}
.pillar .mods { font: 12px var(--mono); color: var(--faint); }
html[data-tier="2"] .pillar, html[data-tier="3"] .pillar { border-color: color-mix(in srgb, var(--accent) 16%, var(--line)); }
html[data-tier="3"] .pillar { background: linear-gradient(180deg, #ffffff06, transparent), var(--surface); }

.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.stat { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.stat-value {
  font-family: var(--display); font-stretch: var(--wdth); font-size: clamp(2.4rem, 5vw, 3.25rem); font-weight: 800;
  letter-spacing: -.04em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { margin-top: 10px; font-weight: 650; }
.stat-detail { margin-top: 4px; font: 12px var(--mono); color: var(--faint); }
.fine { margin: 14px 0 0; color: var(--faint); font-size: 14px; max-width: 72ch; }

.facts { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: minmax(110px, 200px) 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 650; }
.facts dd { margin: 0; color: var(--muted); }
@media (max-width: 480px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }

.explore { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.explore a {
  display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, transform .2s;
}
.explore a:hover { border-color: var(--accent); transform: translateY(-2px); }
.explore strong { font-family: var(--display); font-size: 1.2rem; display: flex; justify-content: space-between; }
.explore span { color: var(--muted); font-size: 14.5px; }

.quick-links a { border-color: color-mix(in srgb, var(--accent) 25%, var(--line)); }   /* pro.js: a Library pack's own links */
/* a live pack's overview: its server in the hero, and the Play band that closes the case */
.hero-status { margin-top: 22px; gap: 8px; }
.play-band { display: grid; gap: 20px; align-items: center; padding: 32px; border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.play-band h2 { margin: 6px 0 8px; font: 560 clamp(28px, 3.4vw, 40px)/1.1 var(--serif); letter-spacing: -.015em; }
.play-band .lead { margin: 0; max-width: 52ch; }
.play-band .row { gap: 10px; }
@media (min-width: 900px) { .play-band { grid-template-columns: 1fr auto; padding: 36px 40px; } }
.soon-band .facts { margin-top: 20px; max-width: 760px; }
.soon-band .fine { margin: 16px 0 0; }
@media (min-width: 900px) { .soon-band { align-items: end; } }

/* ---------- play ---------- */
.play-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .play-grid { grid-template-columns: 1.15fr .85fr; align-items: start; } }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 16px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 30px 1fr; gap: 14px; color: var(--muted); }
.steps li::before {
  content: counter(step); width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface-2)); color: var(--text); font: 650 13px var(--mono);
}
.steps strong { color: var(--text); }
.notes { margin: 0; display: grid; gap: 14px; }
.notes div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; font-size: 15px; }
.notes dt { font-weight: 650; }
.notes dd { margin: 0; color: var(--muted); }
@media (max-width: 480px) { .notes div { grid-template-columns: 1fr; gap: 2px; } }

/* memory meter: a 16 GB PC, what Minecraft gets, where each tier sits */
.meter { margin: 6px 0 20px; }
.meter-bar { position: relative; height: 14px; border-radius: 999px; background: var(--surface-2); overflow: visible; }
.meter-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: var(--grad); }
.meter-mark { position: absolute; top: -6px; bottom: -6px; width: 2px; margin-left: -1px; background: var(--text); border-radius: 2px; opacity: .55; }
.meter-ticks { position: relative; height: 34px; margin-top: 8px; font: 11.5px var(--mono); color: var(--faint); }
.meter-ticks span { position: absolute; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; white-space: nowrap; }
.meter-ticks span .emblem { width: 14px; height: 14px; }
.meter-ticks span.here { color: var(--text); font-weight: 700; }
.meter-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--muted); }

.faq { display: grid; gap: 8px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 600 18px/1 var(--mono); color: var(--faint); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 18px 16px; color: var(--muted); }

.empty {
  display: grid; justify-items: center; text-align: center; gap: 14px;
  padding: 64px 24px; border: 1px dashed color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: 20px;
}
.empty .emblem { width: 72px; height: 72px; }
.empty p { margin: 0; max-width: 46ch; color: var(--muted); }

/* ---------- worlds (live maps) ---------- */
.server-block + .server-block { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }
.server-block h2 { margin: 8px 0 6px; font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 760; }
.server-block .tagline { margin: 0; color: var(--muted); max-width: 52ch; }
.server-block .row { margin-top: 20px; }
.server-block .players { margin-top: 14px; }
/* A BlueMap (3D, one world) embedded whole instead of world cards (servers.json "map_kind": "bluemap") */
.map-embed { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.map-embed iframe { display: block; width: 100%; height: min(72vh, 720px); min-height: 420px; border: 0; }
.map-poster {
  display: grid; place-content: center; justify-items: center; gap: 12px; padding: 32px 20px; text-align: center;
  min-height: 240px; color: #e8ebf1;
  background: radial-gradient(ellipse at 50% 40%, #1b2433 0%, #07080b 70%),
    repeating-linear-gradient(0deg, #ffffff08 0 1px, transparent 1px 48px), repeating-linear-gradient(90deg, #ffffff08 0 1px, transparent 1px 48px);
  background-blend-mode: screen;
}
.map-poster p { margin: 0; max-width: 42ch; color: #b7bfcc; }
.map-poster .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.group-label { margin: 32px 0 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.world {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease;
}
.world:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.thumb {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background:
    radial-gradient(1px 1px at 20% 30%, #fff8 50%, transparent 51%), radial-gradient(1px 1px at 70% 60%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 45% 80%, #fff5 50%, transparent 51%), radial-gradient(1px 1px at 85% 20%, #fff7 50%, transparent 51%),
    var(--void);
}
.square { position: absolute; left: 0; width: 100%; aspect-ratio: 1; top: 50%; transform: translateY(-50%); transition: transform .5s ease; }
.square img { position: absolute; image-rendering: pixelated; opacity: 0; transition: opacity .4s ease; }
.square img.loaded { opacity: 1; }
.world:hover .square { transform: translateY(-50%) scale(1.03); }
.dot-player {
  position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 5px;
  border: 2px solid #fff; background: #222; box-shadow: 0 1px 4px rgb(0 0 0 / .5); image-rendering: pixelated;
}
.badge {
  position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 999px; background: rgb(10 12 17 / .72); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font: 600 12px var(--sans);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3ccf8b; }
.badge[hidden] { display: none; }
.uncharted { position: absolute; inset: 0; display: none; place-items: center; color: #ffffff70; font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.thumb.empty .uncharted { display: grid; }
.world-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.world-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 650; }
.world-title .arrow { color: var(--faint); transition: transform .2s, color .2s; }
.world:hover .arrow { color: var(--accent); transform: translate(2px, -2px); }
.world .facts-line { display: flex; flex-wrap: wrap; gap: 4px 12px; font: 12px var(--mono); color: var(--faint); }
.blurb { margin: 2px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .world-body { padding: 10px 12px 12px; gap: 4px; }
  .world-title { font-size: 15px; }
  .world .facts-line { font-size: 11px; gap: 2px 8px; }
  .blurb { font-size: 13px; }
}

/* ---------- mods ---------- */
.toc { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 2px 24px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.toc a { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; color: var(--muted); font-weight: 550; text-decoration: none; }
.toc a:hover { color: var(--text); }
.toc .num { font: 600 12px var(--mono); color: var(--accent); }
.mod-find { display: block; width: 100%; max-width: 360px; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.mod-find:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.mod-none { color: var(--muted); padding: 40px 0; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.key { font: 600 12px/1 var(--mono); padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--surface); }
.key-l { border-color: var(--accent); color: var(--accent); }
.key-m { background: var(--surface-2); }
.key-s { border-style: dashed; }
.chapter { padding-top: 56px; padding-bottom: 8px; border-top: 1px solid var(--line); margin-top: 48px; }
.chapter-head { display: flex; flex-direction: column; gap: 6px; }
.chapter-head h2 { margin: 6px 0 0; font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 760; letter-spacing: -.03em; }
.chapter-head .lead { font-size: 1.15rem; }
.mod-grid { display: grid; gap: 12px; margin-top: 28px; grid-template-columns: repeat(6, 1fr); grid-auto-flow: dense; }
.mod { border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--line); background: var(--surface); }
.mod h3 { margin: 0 0 6px; font-family: var(--sans); font-stretch: normal; font-size: 1rem; letter-spacing: -.01em; }
.mod p { margin: 0; color: var(--muted); font-size: .93rem; }
.mod-l { grid-column: span 6; padding: 28px; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow); }
.mod-l h3 { font-family: var(--display); font-stretch: var(--h-wdth); font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.025em; margin-bottom: 10px; }
.mod-l p { font-size: 1.05rem; max-width: 66ch; color: var(--text); }
.mod-m { grid-column: span 3; background: var(--surface-2); border-color: transparent; }
.mod-s { grid-column: span 2; padding: 12px 14px; border-style: dashed; background: transparent; }
.mod-s h3 { font-size: .9rem; }
.mod-s p { font-size: .84rem; }
@media (max-width: 800px) { .mod-m { grid-column: span 6; } .mod-s { grid-column: span 3; } }
@media (max-width: 520px) { .mod-s { grid-column: span 6; } .mod-l { padding: 20px; } }

/* ---------- guide ---------- */
.cmds { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.cmd { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 16px 18px; }
.cmd-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.cmd code { font-size: .95rem; color: var(--accent); background: none; border: 0; padding: 0; }
.cmd p { margin: 0; }
.cmd .tip { margin-top: 8px; color: var(--muted); font-size: .9rem; }
.copy-mini {
  font: 600 11px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
  background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; cursor: pointer; flex: none;
}
.copy-mini:hover { color: var(--text); background: var(--surface-2); }
.note { margin: 16px 0 0; padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 10px 10px 0; color: var(--muted); }
.keysets { display: grid; gap: 28px; margin-top: 24px; }
.keyset h3 { margin: 0; font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.keys { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); margin: 10px 0 0; }
.keys > div { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 14px 16px; }
.keys dt, .keys dd { margin: 0; }
.keys dd { color: var(--muted); font-size: .93rem; }
.good { margin: 20px 0 0; padding-left: 1.2rem; color: var(--muted); max-width: 64ch; }
.good li { margin: 6px 0; }

/* ---------- roadmap ---------- */
.plan { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.plan li { display: grid; grid-template-columns: 130px 1fr; gap: 4px 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.plan-when { font: 600 13px/1.8 var(--mono); color: var(--accent); }
.plan strong { display: flex; align-items: center; gap: 8px; }
.plan strong .emblem { width: 18px; height: 18px; }
.plan p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 560px) { .plan li { grid-template-columns: 1fr; } }
.acts { margin-top: 28px; }
.acts ol { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: act; }
.acts li { counter-increment: act; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 550; }
.acts li::before { content: counter(act); font: 600 12px var(--mono); color: var(--accent); }
.acts li.extra { border-style: dashed; color: var(--muted); }
.acts li.extra::before { content: "+"; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filter {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: 600 13.5px var(--sans); cursor: pointer;
}
.filter .emblem { width: 16px; height: 16px; }
.filter[aria-pressed="true"] { color: var(--text); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.phases { list-style: none; margin: 0; padding: 0; }
.phase { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding-bottom: 20px; }
.phase:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 26px; bottom: -2px; width: 2px; background: var(--line); }
.phase-done:not(:last-child)::before { background: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.phase-mark { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); }
.phase-done .phase-mark { background: var(--accent); border-color: var(--accent); }
.phase-done .phase-mark::after {
  content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px;
  border: solid var(--accent-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.phase-active .phase-mark { border-color: var(--warn); box-shadow: 0 0 0 5px color-mix(in srgb, var(--warn) 20%, transparent); }
.phase-active .phase-mark::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--warn); animation: pulse 1.4s ease-in-out infinite; }
.phase-body { padding-top: 3px; }
.phase-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.phase-state { font: 12px var(--mono); color: var(--faint); }
.phase-active .phase-state { color: var(--warn); }
.phase-body p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.phase-next strong { color: var(--muted); font-weight: 600; }
.progress { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; font: 13px var(--mono); color: var(--muted); }
.bar { flex: 1; max-width: 360px; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: var(--grad); }

.feed { display: grid; gap: 16px; }
.feed > *, .updates > *, .play-grid > * { min-width: 0; }   /* wide result tables scroll inside their box */
.post { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); scroll-margin-top: 84px; border-left: 3px solid var(--accent); }
.post:target { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 50%, transparent), var(--shadow); }
.post h3 { margin: 10px 0 8px; font-size: 1.4rem; font-weight: 720; }
.post h3 a:hover { color: var(--accent); }
.post-body { color: var(--muted); max-width: 74ch; }
.post-body p { margin: 0 0 10px; }
.post-body strong { color: var(--text); }
.post-body ul { margin: 0 0 10px; padding-left: 20px; }
.post-body li { margin: 4px 0; }
.result { margin: 20px 0 0; }
.result figcaption { font-weight: 650; font-size: 14px; margin-bottom: 8px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.result table { width: 100%; border-collapse: collapse; font-size: 14px; }
.result th, .result td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.result tbody tr:last-child > * { border-bottom: 0; }
.result thead th { font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); background: var(--surface-2); }
.result tbody th { font-weight: 500; }
.result .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.delta { font-weight: 700; }
.delta.good { color: var(--ok); margin: 0; padding: 0; }   /* not the "Good to know" list (.good) */
.delta.bad { color: var(--bad); }
.delta.same { color: var(--faint); }
.result-note { margin: 8px 0 0; color: var(--faint); font-size: 14px; }
.result tr.base > * { background: var(--surface-2); }
.result-plain { margin: 10px 0 0; font-size: 15px; }
.result-plain b { font-weight: 650; }
.post[hidden] { display: none; }

/* ---------- footer ---------- */
/* the home ends on the dark Library band: the footer follows it directly */
main:has(> .home-library:last-child) + .site-footer { margin-top: 0; }
.site-footer { margin-top: 96px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface-2) 45%, var(--bg)); }
.footer-grid { display: grid; gap: 32px; padding: 48px 0 32px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr repeat(4, 1fr); } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-brand { grid-column: auto; } }
.footer-brand p { margin: 12px 0 0; color: var(--muted); font-size: 14px; max-width: 30ch; }
.footer-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.footer-head .emblem { width: 16px; height: 16px; }
a.footer-head { color: var(--text); text-decoration: none; }
a.footer-head:hover { color: var(--accent); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-col a { color: var(--muted); font-size: 14px; text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 18px 0 36px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }

/* ---------- phones ---------- */
@media (max-width: 560px) {
  .hero { padding: 52px 0 44px; }
  .section { padding-top: 52px; }
  .hero .row > .btn { flex: 1 1 auto; }
  .panel { padding: 20px; }
  .post { padding: 18px; }
  .result th, .result td { padding: 8px 9px; }
  .step { padding: 22px; }
  /* thumb-sized taps: footer links and the pack icon in the sub-nav were ~22px tall */
  .footer-col ul { gap: 0; }
  .footer-col a, a.footer-head { display: inline-flex; padding: 5px 0; }
  .footer-head { margin-bottom: 4px; }
  .subnav-pack { min-width: 32px; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- the library (/library): other creators' packs, shown like a film library ----------
   Always dark. A billboard for the featured live pack (its scene full-bleed, the page fading up out of it), then
   shelves of 2:3 posters. Scenes are SVG drawn in views/library.js; on the billboard their sparks rise and the
   Atmos gears turn (never with reduced motion). A poster's colour is --tint: its tier's accent, or its own. */
body[data-view="library"] { --bg: #07080b; --surface: #0f1117; --surface-2: #161a22; --line: #1f2430; }
.poster, .billboard { --tint: var(--accent); }
/* Grain over the dark rooms: one fixed layer, under the top bar, never catching clicks */
body[data-view="library"]::after, body:has(.pro-hero)::after {
  content: ""; position: fixed; inset: 0; z-index: 15; pointer-events: none;
  background: var(--grain); background-size: 160px; opacity: .05;
}
/* One frame for every poster and featured card, so different art reads as one collection: a hairline inset,
   and the catalogue number (library.json "no", given when a pack opens; coming-soon titles have none) */
.poster::before, .lib-feature::before {
  content: ""; position: absolute; inset: 7px; z-index: 1; pointer-events: none; border-radius: 9px;
  border: 1px solid #ffffff1c; transition: border-color .4s;
}
a.poster:hover::before, .lib-feature:hover::before { border-color: color-mix(in srgb, var(--tint) 55%, transparent); }
.lib-feature::before { border-radius: 13px; inset: 9px; }
.cat-no {
  position: absolute; top: 15px; right: 17px; z-index: 2;
  font: 500 15px/1 var(--serif); letter-spacing: .02em; color: #ffffffb8; text-shadow: 0 1px 8px #000;
}
.cat-no b { font-weight: 500; font-size: 10.5px; letter-spacing: .14em; margin-right: 3px; color: #ffffff80; }
/* A sleeping server is the normal state (joining wakes it): posters only say so when one is up or waking */
.poster .status:not([data-state="online"]):not([data-state="starting"]),
.lib-feature .status:not([data-state="online"]):not([data-state="starting"]) { display: none; }
.scene { width: 100%; height: 100%; }

.billboard {
  position: relative; isolation: isolate; overflow: hidden; color-scheme: dark; color: var(--text);
  min-height: clamp(560px, 82vh, 760px); display: flex; align-items: flex-end; background: #06070a;
}
.bb-art { position: absolute; inset: 0; z-index: -2; }
.bb-art .scene { animation: bb-in 1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes bb-in { from { opacity: 0; transform: scale(1.05); } }
.billboard::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, #06070ae0 0%, #06070a99 34%, #06070a1a 66%, transparent 85%),
    linear-gradient(0deg, var(--bg) 0%, #07080bb0 22%, transparent 50%),
    linear-gradient(180deg, #06070a99 0%, transparent 22%);
}
.bb-wrap { position: relative; padding-top: 28px; padding-bottom: 40px; }
.lib-name {
  position: absolute; top: 28px; display: flex; align-items: center; gap: 10px; margin: 0;
  font: 650 12px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: #ffffffcc;
}
.lib-name .emblem { width: 22px; height: 22px; }
.bb-body { padding-top: 120px; max-width: 920px; }
.bb-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.bb-kicker .eyebrow { color: var(--tint); }
.bb-title {
  font-family: var(--display); font-stretch: 112%; font-weight: 860; font-size: min(calc(clamp(40px, 8.5vw, 108px) * var(--art, 1)), var(--art-max, 999px));
  letter-spacing: -.045em; line-height: .9; margin: 0 0 18px; text-shadow: 0 6px 50px #000c; text-wrap: balance;
}
.bb-meta { font: 600 13px/1.5 var(--mono); letter-spacing: .03em; color: #ffffffb0; margin-bottom: 14px; }
.bb-line, .bb-meta { max-width: 600px; }
.bb-line { font-size: 1.125rem; color: #e8ebf1e0; margin: 0 0 26px; max-width: 54ch; text-shadow: 0 2px 20px #000; }
.billboard .status { background: #000a; backdrop-filter: blur(8px); }
.billboard .address { background: #0009; backdrop-filter: blur(8px); border-color: #ffffff22; }
.bb-actions { margin-top: 12px; }
.bb-actions .btn:not(.primary) { background: #ffffff14; border-color: #ffffff26; backdrop-filter: blur(8px); }
.bb-kicker .ribbon { position: static; }
/* What the tabs hold: the season (library.json "shelves") or Featured */
.bb-programme { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 44px; max-width: 920px; }
.bb-programme strong { font: 560 22px/1.1 var(--serif); color: #fff; }
.bb-programme span { font-size: 14px; color: #ffffffa8; }
.bb-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.bb-tab {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 10px; border-radius: 999px;
  border: 1px solid #ffffff22; background: #0009; backdrop-filter: blur(8px); color: #ffffffb8;
  font: 600 13.5px var(--sans); cursor: pointer; transition: color .15s, border-color .15s, box-shadow .15s;
}
.bb-tab:hover { color: #fff; border-color: #ffffff55; }
.bb-tab[aria-pressed="true"] { color: #fff; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), 0 0 24px -6px var(--accent); }
.bb-tab .emblem { width: 22px; height: 22px; }


.shelf { padding-top: 56px; }
.shelf-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; margin-bottom: 18px; }
.shelf-head h2 { margin: 0; font-size: clamp(28px, 3.4vw, 38px); }
.shelf-head p { margin: 0; color: var(--muted); }
.shelf-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 250px; gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none;
  margin: 0 -16px; padding: 10px 16px 30px;
}
.shelf-row::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .shelf-row { margin: 0 -32px; padding: 10px 32px 30px; scroll-padding: 0 32px; } }
@media (max-width: 560px) { .shelf-row { grid-auto-columns: 70%; gap: 14px; } }
/* The collection: one catalogue entry per live pack, staggered (cover outside, words inside), the empty side holding
   the pack's number in outline. What's inside is a row of tags; the ones Kevmo2MC shares are lit in its teal. */
.collection { padding-top: 40px; }
.collection .section-head { display: block; }
.collection .section-head .lead { display: grid; gap: 14px; justify-items: start; max-width: 64ch; margin-top: 14px; }
.collection-how { font-size: 13.5px; line-height: 1.5; color: var(--faint); }
.vols { display: grid; gap: clamp(44px, 5.5vw, 72px); margin-top: 48px; }
.vol {
  position: relative; display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 44px; align-items: center;
  width: min(100%, 820px); color: var(--text); --tint: var(--accent);
}
.vol:nth-child(even) { margin-left: auto; grid-template-columns: minmax(0, 1fr) 196px; }
.vol:nth-child(even) .vol-cover { order: 2; }
.vol-cover {
  position: relative; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: #0b0d12;
  box-shadow: 0 0 0 1px #ffffff14, 0 34px 60px -30px #000;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s;
}
.vol-cover::after { content: ""; position: absolute; inset: 7px; border: 1px solid #ffffff1c; border-radius: 8px; transition: border-color .4s; }
.vol-cover .scene { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.vol:hover .vol-cover, .vol:focus-visible .vol-cover {
  transform: translateY(-6px) rotate(-1.2deg);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--tint) 60%, transparent), 0 34px 60px -26px color-mix(in srgb, var(--tint) 55%, transparent);
}
.vol:nth-child(even):hover .vol-cover, .vol:nth-child(even):focus-visible .vol-cover { transform: translateY(-6px) rotate(1.2deg); }
.vol:hover .vol-cover::after { border-color: color-mix(in srgb, var(--tint) 55%, transparent); }
.vol:hover .vol-cover .scene { transform: scale(1.05); }
.vol-mark {
  position: absolute; top: 50%; left: calc(100% + 40px); translate: 0 -50%; pointer-events: none;
  font: 400 clamp(110px, 11vw, 168px)/1 var(--serif); letter-spacing: -.02em; color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--tint) 30%, transparent); transition: -webkit-text-stroke-color .4s;
}
.vol:nth-child(even) .vol-mark { left: auto; right: calc(100% + 40px); }
.vol:hover .vol-mark { -webkit-text-stroke-color: color-mix(in srgb, var(--tint) 70%, transparent); }
@media (max-width: 1180px) { .vol-mark { display: none; } }
.vol-info { container-type: inline-size; min-width: 0; }
.vol-kicker {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 14px;
  font: 650 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--tint);
}
.vol-no { font: 500 16px/1 var(--serif); letter-spacing: .02em; color: #fff; }
.vol-no b { font-weight: 500; font-size: 10.5px; letter-spacing: .14em; margin-right: 3px; color: #ffffff80; }
.vol-tag { padding: 5px 8px; border-radius: 6px; border: 1px solid #ffffff26; color: #ffffffb8; font-size: 10px; }
.vol-kicker .status { height: 26px; font-size: 11.5px; letter-spacing: 0; text-transform: none; }
.vol-kicker .status:not([data-state="online"]):not([data-state="starting"]) { display: none; }
.vol-title {
  margin: 0 0 10px; font-family: var(--display); font-stretch: 112%; font-weight: 850; letter-spacing: -.035em; line-height: .95;
  font-size: min(calc(min(clamp(30px, 4vw, 50px), 11cqi) * var(--art, 1)), var(--art-max, 999px)); text-wrap: balance;
}
.vol-meta { font: 500 12px/1.5 var(--mono); color: #ffffff8c; margin-bottom: 14px; }
.vol-line { margin: 0 0 18px; max-width: 60ch; font-size: 15.5px; line-height: 1.55; color: #e8ebf1d0; }
.vol-inside { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.strand {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 8px;
  background: #ffffff0a; box-shadow: inset 0 0 0 1px #ffffff17; font: 600 13px/1.2 var(--sans); color: #ffffffe0;
}
.strand small { font-weight: 500; font-size: 12px; color: #ffffff80; }
.strand[data-shared] {
  --k2: #5ee6dc; color: #e2fdfa;
  background: color-mix(in srgb, var(--k2) 11%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--k2) 42%, transparent);
}
.strand[data-shared] small { color: color-mix(in srgb, var(--k2) 75%, #fff); }
.strand .emblem { width: 14px; height: 14px; flex: none; }
.vol-go { display: inline-flex; gap: 8px; margin-top: 22px; font-weight: 650; font-size: 14px; color: var(--tint); }
.vol-go .arrow { transition: translate .3s; }
.vol:hover .vol-go .arrow { translate: 4px 0; }
@media (max-width: 760px) {
  .vol, .vol:nth-child(even) { grid-template-columns: 104px minmax(0, 1fr); gap: 18px; align-items: start; margin-left: 0; width: 100%; }
  .vol:nth-child(even) .vol-cover { order: 0; }
  .vol-line { font-size: 14px; }
  .strand { padding: 6px 9px; font-size: 12px; }
  .strand small { display: none; }
}

.poster {
  position: relative; isolation: isolate; display: block; aspect-ratio: 2 / 3; overflow: hidden; container-type: inline-size;
  border-radius: 14px; background: #0b0d12; scroll-snap-align: start; color: #fff;
  box-shadow: 0 0 0 1px #ffffff14, 0 24px 48px -24px #000;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s;
}
.poster-art { position: absolute; inset: 0; z-index: -2; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.poster::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, #05060a 0%, #05060ae0 26%, #05060a40 56%, transparent 72%);
}
a.poster:hover, a.poster:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--tint) 70%, transparent), 0 30px 60px -22px color-mix(in srgb, var(--tint) 60%, transparent);
}
a.poster:hover .poster-art, a.poster:focus-visible .poster-art { transform: scale(1.06); }
.poster-top { position: absolute; top: 12px; left: 12px; right: 64px; display: flex; }
.poster .status { background: #000b; backdrop-filter: blur(6px); height: 28px; font-size: 12px; }
.ribbon {
  position: absolute; top: 12px; left: 12px; padding: 6px 9px; border-radius: 6px;
  font: 700 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--tint); background: #000b; border: 1px solid color-mix(in srgb, var(--tint) 45%, transparent); backdrop-filter: blur(6px);
}
.poster.soon .poster-art { filter: saturate(.8) brightness(.85); }
.poster-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; }
.poster-genre {
  display: flex; align-items: center; gap: 8px;
  font: 650 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--tint);
}
.poster-genre .emblem { width: 16px; height: 16px; }
.poster-title {
  margin: 10px 0 8px; font-family: var(--display); font-stretch: 112%; font-weight: 850;
  font-size: min(calc(min(28px, 12.5cqi) * var(--art, 1)), var(--art-max, 999px)); letter-spacing: -.035em; line-height: 1;
}
.poster-meta { font: 500 11.5px/1.5 var(--mono); color: #ffffff9c; }
.poster-by { font-size: 12.5px; color: #ffffff80; margin-top: 2px; }
.poster-line {
  margin: 0; font-size: 13.5px; line-height: 1.45; color: #e8ebf1d0;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; max-height: 0; opacity: 0; transition: max-height .4s ease, opacity .3s ease, margin .4s ease;
}
.poster:hover .poster-line, .poster:focus-visible .poster-line { max-height: 8em; opacity: 1; margin-top: 10px; }
@media (hover: none) { .poster-line { max-height: none; opacity: 1; margin-top: 10px; } }
/* Title art: [data-art="<scene>"] on a pack's title (billboard, poster, featured card, pack page). The face and
   colour are the pack's; size stays the slot's, times --art, and never past --art-max (a one-word title that must fit
   its card: cqi = the poster or card width, or the screen on a billboard). The fill is a gradient, so shadows are drop-shadow
   filters (a text-shadow would show through the transparent letters). Packs without a rule keep Mona Sans. */
[data-art="p2"], [data-art="dc"], [data-art="caveshorror"], [data-art="vampires"], [data-art="backrooms"],
[data-art="cobbleverse"], [data-art="atmos"], [data-art="homestead"], [data-art="rlcraft"], [data-art="berk"],
[data-art="sunlitvalley"], [data-art="skiesaero"], [data-art="drehmal"], [data-art="luckyinvasion"], [data-art="luckyblock"], [data-art="minestrike"], [data-art="hypnophobia"], [data-art="biohazard"], [data-art="exosphere"] {
  font-stretch: normal; font-weight: 400; letter-spacing: 0; text-shadow: none;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-art="p2"] {
  --art: .86; font-family: "Cinzel", var(--display); font-weight: 900; letter-spacing: .01em;
  background-image: linear-gradient(180deg, #fff7dc 15%, #f3cd6c 55%, #c1872f 92%);
  filter: drop-shadow(0 2px 0 #3b2406) drop-shadow(0 10px 30px #000d);
}
[data-art="dc"] {
  --art: .9; --art-max: 10cqi; font-family: "Black Ops One", var(--display);
  background-image: linear-gradient(180deg, #f4f8ea 30%, #b6e07a 100%);
  filter: drop-shadow(0 0 22px #8fdc4a38) drop-shadow(0 8px 26px #000d);
}
[data-art="caveshorror"] {
  --art: .9; font-family: "Rubik Dirt", var(--display);
  background-image: linear-gradient(180deg, #f7ecd6 35%, #f0a454 100%);
  filter: drop-shadow(0 0 20px #ff8a3a40) drop-shadow(0 8px 26px #000d);
}
[data-art="vampires"] {
  --art: .95; font-family: "Grenze Gotisch", var(--display); font-weight: 800;
  background-image: linear-gradient(180deg, #fff1ef 20%, #ff7070 70%, #f04a50 100%);
  filter: drop-shadow(0 0 20px #e5484d40) drop-shadow(0 8px 26px #000d);
}
[data-art="backrooms"] {
  --art: 1.12; font-family: "VT323", var(--mono); letter-spacing: .02em; line-height: .85;
  background-image: linear-gradient(180deg, #fbf3c4 30%, #e9cf55 100%);
  filter: drop-shadow(0 0 16px #f2d65a40) drop-shadow(0 6px 22px #000d);
}
[data-art="cobbleverse"] {
  --art: .95; font-family: "Lilita One", var(--display); letter-spacing: .01em;
  background-image: linear-gradient(180deg, #fffbe0 20%, #ffd23f 90%);
  filter: drop-shadow(0 3px 0 #2c5fd6) drop-shadow(0 8px 24px #000d);
}
[data-art="atmos"] {
  --art: 1; font-family: "Marcellus SC", var(--display); letter-spacing: .04em;
  background-image: linear-gradient(180deg, #f2f9ff 25%, #7cc4ff 100%);
  filter: drop-shadow(0 0 20px #3d9bff45) drop-shadow(0 8px 26px #000d);
}
[data-art="homestead"] {
  --art: .95; font-family: "Fraunces", var(--display); font-weight: 900; letter-spacing: -.01em;
  background-image: linear-gradient(180deg, #fff6e6 25%, #f2b36b 100%);
  filter: drop-shadow(0 6px 22px #000d);
}
[data-art="rlcraft"] {
  --art: 1.05; font-family: "Metal Mania", var(--display);
  background-image: linear-gradient(180deg, #fff0e8 25%, #ff7a45 75%, #ea4a2c 100%);
  filter: drop-shadow(0 0 18px #ff5a3040) drop-shadow(0 8px 26px #000d);
}
[data-art="berk"] {
  --art: .95; font-family: "Uncial Antiqua", var(--display);
  background-image: linear-gradient(180deg, #f0fdff 25%, #5fc8d8 100%);
  filter: drop-shadow(0 0 18px #5fc8d840) drop-shadow(0 8px 26px #000d);
}
[data-art="sunlitvalley"] {
  --art: .9; font-family: "Fraunces", var(--display); font-weight: 900; letter-spacing: -.01em;
  background-image: linear-gradient(180deg, #fffaf0 25%, #f6c453 100%);
  filter: drop-shadow(0 3px 0 #7a4a24) drop-shadow(0 8px 22px #000c);
}
[data-art="skiesaero"] {
  --art: .85; font-family: "Audiowide", var(--display); letter-spacing: .01em;
  background-image: linear-gradient(180deg, #ffffff 30%, #9fd2ff 100%);
  filter: drop-shadow(0 2px 0 #2a5a9a) drop-shadow(0 8px 24px #000c);
}
[data-art="exosphere"] {
  --art: .74; font-family: "Michroma", var(--display); letter-spacing: .04em;
  background-image: linear-gradient(180deg, #ffffff 28%, #d8d4ff 60%, #f0b4bc 100%);
  filter: drop-shadow(0 2px 0 #3a3286) drop-shadow(0 8px 24px #000c);
}
[data-art="drehmal"] {
  --art: 1.05; font-family: "Cormorant SC", var(--display); font-weight: 700; letter-spacing: .06em;
  background-image: linear-gradient(180deg, #fff4e0 25%, #f0b060 100%);
  filter: drop-shadow(0 0 18px #ff8a3a40) drop-shadow(0 8px 26px #000d);
}
[data-art="luckyblock"] {
  --art: .9; font-family: "Luckiest Guy", var(--display); letter-spacing: .02em;
  background-image: linear-gradient(180deg, #fffbe0 20%, #ffd23f 90%);
  filter: drop-shadow(0 3px 0 #b07a08) drop-shadow(0 8px 24px #000d);
}
[data-art="luckyinvasion"] {
  --art: .74; font-family: "Bungee", var(--display); letter-spacing: .01em; line-height: 1.04;
  background-image: linear-gradient(180deg, #fff4e0 22%, #ff9a5a 68%, #e8452a 100%);
  filter: drop-shadow(0 3px 0 #5a1208) drop-shadow(0 8px 24px #000d);
}
[data-art="minestrike"] {
  --art: .95; font-family: "Russo One", var(--display); letter-spacing: .01em;
  background-image: linear-gradient(180deg, #ffffff 30%, #ffb460 100%);
  filter: drop-shadow(0 2px 0 #7a3a10) drop-shadow(0 8px 24px #000d);
}
[data-art="hypnophobia"] {
  --art: .9; font-family: "Special Elite", var(--display); letter-spacing: .04em;
  background-image: linear-gradient(180deg, #ffffff 25%, #d8b8f0 100%);
  filter: drop-shadow(0 0 18px #b88ae040) drop-shadow(0 8px 26px #000d);
}
[data-art="biohazard"] {
  --art: .92; font-family: "Rubik Wet Paint", var(--display); letter-spacing: .01em;
  background-image: linear-gradient(180deg, #e8ffc8 18%, #9be15d 58%, #4f8a1e 96%);
  filter: drop-shadow(0 2px 0 #1a2a0c) drop-shadow(0 8px 26px #000d);
}
.lib-note { margin: 24px 0 0; color: var(--faint); font-size: 14px; max-width: 70ch; }

.scene.moving .scene-sparks circle { animation: spark var(--t) linear infinite; animation-delay: var(--d); }
@keyframes spark { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: var(--o); } 100% { transform: translateY(-90px); opacity: 0; } }
/* Prominence II: the volcano's lava and Vaaz's lights land behind a billboard's title and tagline: dim them there */
.bb-art .scene-p2 .p2-lava { opacity: .4; }
.scene.moving .scene-spin { transform-box: fill-box; transform-origin: center; animation: spin 80s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Exosphere: the near hot-air balloon rises and sinks a little */
.scene.moving .scene-bob { animation: bob 7s ease-in-out infinite alternate; }
@keyframes bob { from { transform: translateY(-5px); } to { transform: translateY(5px); } }
/* Into the Backrooms: the camcorder's REC dot blinks and one ceiling panel flickers */
.bb-art .scene-backrooms .scene-hud { display: none; }
.scene.moving .scene-blink { animation: rec-blink 1.4s steps(1) infinite; }
.scene.moving .scene-flicker { animation: flicker 6s steps(1) infinite; }
@keyframes rec-blink { 50% { opacity: 0; } }
@keyframes flicker { 0%, 58%, 100% { opacity: .25; } 60% { opacity: .9; } 61% { opacity: .2; } 62% { opacity: .85; } 66% { opacity: .3; } 67% { opacity: .95; } 69% { opacity: .25; } }

/* ---------- library pack pages (views/pro.js): film-page layout on the pack's scene ----------
   Same billboard as /library, a click-to-load trailer, the memory picker, the creator's numbers. Always dark. */
html[data-theme="dark"] body:has(.pro-hero), body[data-view="library"] { --bg: #07080b; --surface: #0f1117; --surface-2: #161a22; --line: #1f2430; }
.pro-hero { min-height: clamp(500px, 68vh, 660px); }
.pro-hero .bb-body { padding-top: 64px; }
.pro-hero .lib-name { color: #ffffffb0; transition: color .15s; }
.pro-hero .lib-name:hover { color: #fff; }
.mini-play { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

.pro-trailer { padding-top: 24px; }
/* What sets a Library pack apart (pro.hook): one card straight under the hero, lit in the pack's colours */
.pro-hook { padding-top: 32px; }
.hook-card {
  display: grid; gap: 28px; padding: clamp(22px, 4vw, 40px); border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  background:
    radial-gradient(70% 120% at 0% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(60% 100% at 100% 100%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 70%),
    var(--surface);
}
@media (min-width: 900px) { .hook-card { grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; } }
.hook-text h2 { margin: 6px 0 12px; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hook-text .lead { margin: 0; max-width: none; }
.hook-points { margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.hook-points div { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: color-mix(in srgb, var(--text) 4%, transparent); }
.hook-points dt { font: 650 12px/1.9 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.hook-points dd { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.yt-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px #ffffff14, 0 40px 80px -30px color-mix(in srgb, var(--accent) 45%, transparent);
}
.yt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
button.yt { cursor: pointer; background: #000 center / cover no-repeat; padding: 0; }
button.yt::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, #0000 0%, #0006 70%); transition: opacity .2s; }
button.yt:hover::after { opacity: .5; }
.yt-play {
  position: absolute; left: 50%; top: 50%; z-index: 1; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 25%, transparent), 0 20px 50px #000a;
  transition: transform .2s cubic-bezier(.2, .7, .2, 1);
}
.yt-play::after { content: ""; position: absolute; left: 34px; top: 26px; border-left: 24px solid var(--accent-ink); border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
button.yt:hover .yt-play { transform: scale(1.08); }
.yt-len { position: absolute; right: 14px; bottom: 14px; z-index: 1; font: 600 12px var(--mono); color: #fff; background: #000b; padding: 5px 8px; border-radius: 6px; }
.yt-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; margin-top: 14px; color: var(--muted); font-size: 14.5px; }
.yt-caption strong { color: var(--text); font-weight: 600; }
.yt-caption a { color: var(--accent); }
@media (max-width: 560px) { .yt-frame { border-radius: 12px; } .yt-play { transform: scale(.75); } button.yt:hover .yt-play { transform: scale(.8); } }

/* Cinematic trailer (pro.trailer "cinematic": true): the heavy packs get a wide screening band past the page width,
   a breathing glow in the pack's colours, hairline edges like a projector frame and a slow light sweep. */
.pro-trailer.cine { position: relative; padding: 56px 0 64px; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, transparent, #000c 16%, #000c 84%, transparent); }
.cine-glow { position: absolute; inset: -20% -10%; z-index: -1; pointer-events: none; filter: blur(24px);
  background:
    radial-gradient(42% 50% at 50% 55%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%),
    radial-gradient(28% 40% at 16% 62%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 70%),
    radial-gradient(28% 40% at 84% 38%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 70%);
  animation: cine-breathe 9s ease-in-out infinite alternate; }
@keyframes cine-breathe { from { opacity: .6; transform: scale(1); } to { opacity: 1; transform: scale(1.06); } }
.cine-stage { width: min(1440px, 100% - 32px); margin: 0 auto; }
.cine-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-bottom: 14px; }
.cine-head .eyebrow { color: var(--accent); }
.cine-tag { font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cine .yt-frame { border-radius: 6px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), 0 0 110px -10px color-mix(in srgb, var(--accent) 55%, transparent), 0 60px 120px -40px #000; }
.cine .yt-frame::before, .cine .yt-frame::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 80%, #fff), transparent); }
.cine .yt-frame::before { top: 0; }
.cine .yt-frame::after { bottom: 0; }
.cine button.yt::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, #ffffff17 50%, transparent 65%) 120% 0 / 250% 100% no-repeat;
  animation: cine-sweep 7s ease-in-out infinite; }
@keyframes cine-sweep { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) { .cine-glow, .cine button.yt::before { animation: none; } }
@media (max-width: 560px) { .pro-trailer.cine { padding: 32px 0 40px; } .cine .yt-frame { border-radius: 4px; } }
/* IMAX ("imax": true): the whole 16:9 picture, sized to fill the screen's height (less the heading and caption) and
   never wider than the screen; a deeper black band and a bigger glow, like a dark auditorium around the screen. */
.cine.imax { scroll-margin-top: -56px; padding: 72px 0 84px; background: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); }
.cine.imax .cine-stage { width: min(100% - 24px, (100vh - 190px) * 16 / 9); }
.cine.imax .yt-frame { aspect-ratio: 16 / 9; border-radius: 4px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent), 0 0 160px -10px color-mix(in srgb, var(--accent) 60%, transparent), 0 80px 160px -40px #000; }
.cine.imax .cine-glow { inset: -10% -20%; }
@media (max-width: 560px) { .cine.imax .cine-stage { width: 100%; } .cine.imax .yt-frame { border-radius: 0; } .cine.imax .cine-head, .cine.imax .yt-caption { padding: 0 16px; } }

.ram-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.ram-opt {
  display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.ram-opt.pick {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%), var(--surface);
  box-shadow: 0 30px 60px -34px color-mix(in srgb, var(--accent) 70%, transparent);
}
.ram-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; }
.ram-label { font: 650 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.ram-opt.pick .ram-label { color: var(--accent); }
.ram-gb { font-family: var(--display); font-stretch: 112%; font-weight: 850; font-size: 56px; line-height: 1; letter-spacing: -.04em; margin-top: 6px; }
.ram-gb span { font-size: 22px; font-weight: 700; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.ram-pc { font: 500 13px var(--mono); color: var(--muted); }
.ram-opt p { margin: 8px 0 12px; color: var(--muted); font-size: 14.5px; flex: 1; }
.ram-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ram-actions .btn { height: 40px; padding: 0 14px; font-size: 14px; }
.ram-copy { color: var(--muted); }

.steps-row { list-style: none; counter-reset: step; margin: 28px 0 14px; padding: 0; display: grid; gap: 14px 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.steps-row li { counter-increment: step; position: relative; padding-top: 34px; color: var(--muted); font-size: 14.5px; }
.steps-row li::before {
  content: counter(step); position: absolute; top: 0; left: 0; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font: 700 12px var(--mono); color: var(--accent-ink); background: var(--accent);
}
.steps-row strong { color: var(--text); }

.callout {
  margin: 0 0 24px; padding: 14px 18px; border-radius: 12px; font-size: 15px; color: var(--text);
  border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 9%, transparent);
}
.callout strong { color: var(--warn); }
.official { display: grid; gap: 32px; }
@media (min-width: 900px) { .official { grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; } }
.official blockquote {
  margin: 0 0 16px; font-family: var(--display); font-stretch: 110%; font-weight: 750; font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -.02em; line-height: 1.15; color: var(--accent);
}
.official .lead { max-width: none; }
.features { margin: 24px 0 0; display: grid; border-top: 1px solid var(--line); }
.features div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.features dt { font: 650 12px/1.9 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.features dd { margin: 0; color: var(--muted); font-size: 15px; }
.hl:last-child:nth-child(odd) { grid-column: span 2; }
.highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.hl { background: var(--surface); padding: 20px; }
.hl-n { font-family: var(--display); font-stretch: 112%; font-weight: 850; font-size: clamp(34px, 4vw, 46px); line-height: 1; letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hl-label { font-weight: 650; margin-top: 8px; }
.hl-detail { color: var(--faint); font-size: 13.5px; margin-top: 2px; }

.credits { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.credits li { display: flex; flex-direction: column; padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); min-width: 150px; }
.credits strong { font-size: 15px; }
.credits span { color: var(--faint); font-size: 13px; }
.get-sub { margin: 40px 0 6px; font-size: 1.3rem; }
.get-sub-lead { font-size: 1rem; margin-bottom: 18px; }
.ram-mb { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.ram-mb code { font-size: 15px; padding: 4px 8px; color: var(--text); }
.ram-warn { margin: -4px 0 12px !important; padding: 8px 12px; border-radius: 10px; font-size: 13.5px !important; color: var(--text) !important; border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 9%, transparent); }
.ram-opt p:has(+ .ram-warn) { flex: 1; }

/* ---------- /prism: install Prism and import a pack, a video and the steps side by side ---------- */
.prism-grid { display: grid; gap: 24px 48px; align-items: start; }
@media (min-width: 900px) { .prism-grid { grid-template-columns: 1.15fr 1fr; } }
.prism-step h2 { margin: 6px 0 12px; font-size: clamp(1.6rem, 3.4vw, 2.25rem); font-weight: 760; letter-spacing: -.03em; }
.prism-step .fine { margin: 0 0 18px; }
.prism-step .steps { margin-bottom: 22px; }
.prism-step .yt-play { transform: scale(.8); }
.prism-pack { display: inline-flex; align-items: center; gap: 10px; }
.prism-pack .emblem { width: 22px; height: 22px; }
/* the link from every Play page's install steps */
.prism-help {
  display: flex; align-items: center; gap: 12px; margin-top: 22px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: 14.5px; transition: border-color .15s;
}
.prism-help:hover { border-color: var(--accent); }
.prism-help strong { color: var(--text); }
.prism-help .mini-play { flex: none; }

/* ---------- party controls (/<pack>/party, ticket 035: Lucky Block Challenge) ---------- */
.party-now { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start; padding: 22px 24px;
  border-left: 5px solid var(--accent); }
.party-now h2 { margin: 2px 0 6px; font-size: clamp(24px, 4vw, 34px); }
.party-now p { margin: 0 0 12px; color: var(--muted); max-width: 60ch; }
.party-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.party-chips .chip { text-transform: none; letter-spacing: 0; }
.party-pending { margin-top: 14px; padding: 10px 14px; border-radius: 10px; font-weight: 650;
  background: color-mix(in srgb, var(--accent-2) 18%, transparent); }
.party-lock { padding: 16px 20px; border: 1px dashed var(--line); border-radius: 14px; background: var(--surface-2, transparent); }
.party-lock p { margin: 0; }
.party-who { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; color: var(--muted); font-size: 14px; }
.party-who input { font: inherit; color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; width: 190px; }
.party-msg { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); }
.party-msg[data-t="err"] { color: #ff8a80; border-color: #ff8a8055; }
.party-h { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 26px 0 10px; }
.party-h span { text-transform: none; letter-spacing: 0; font-weight: 400; }
.party-maps { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.party-map { font: inherit; color: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 6px;
  padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface, transparent); }
.party-map strong { font-size: 17px; }
.party-map small { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.party-map .go { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 13.5px; color: var(--accent); }
.party-map[aria-current="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.party-map[aria-current="true"] .go::after { content: " · playing now"; color: var(--muted); font-weight: 400; }
.party-map:hover:not(:disabled) { border-color: var(--accent); }
.party-set { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.party-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.party-seg button { font: inherit; font-size: 14px; color: var(--text); background: transparent; border: 0; padding: 7px 13px; cursor: pointer; }
.party-seg button + button { border-left: 1px solid var(--line); }
.party-seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.party button:disabled, .party .btn:disabled { cursor: not-allowed; opacity: .5; }
.party-seg button[aria-pressed="true"]:disabled { opacity: .85; }
.party-reset { color: #ff8a80; border-color: #ff8a8055; }
.party-steps { margin: 0; padding-left: 22px; max-width: 72ch; }
.party-steps li { margin: 0 0 12px; }
.party-cmd { font-family: var(--mono, ui-monospace, monospace); }
@media (max-width: 640px) { .party-now { grid-template-columns: 1fr; } .party-set { flex-direction: column; align-items: flex-start; } }
.party [hidden], .party-pending[hidden] { display: none !important; }
.steps .prism-help { margin-top: 10px; text-decoration: none; }

/* Kevmo2MC overview: what to do before launch (overview.js nowBand) */
.now { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.now-card {
  display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.now-card h3 { margin: 0; font-family: var(--display); font-size: 1.2rem; }
.now-card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.now-card .now-latest { color: var(--text); }
.now-latest span { display: block; color: var(--muted); font-size: 12.5px; }
.now-links { margin-top: auto; padding-top: 4px; display: flex; flex-wrap: wrap; gap: 6px 16px; }

/* Progress + roadmap posts: the takeaway first, the full post and its tables folded (roadmap.js post) */
.post-summary { margin: 0 0 12px; font-size: 1.05rem; color: var(--text); max-width: 70ch; }
.post-more { margin-top: 6px; }
.post-more > summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14.5px; width: fit-content; padding: 4px 0; }
.post-more > summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-more[open] > summary { margin-bottom: 10px; }
.post-more .post-more { margin-top: 10px; }
/* /roadmap: the one line to Kevmo2MC's Progress page */
.roadmap-k2 { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; padding: 22px 26px; border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.roadmap-k2 strong { display: block; margin-top: 4px; font-size: 1.1rem; }
.roadmap-k2:hover { border-color: var(--accent); }
.collection-key { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 16px; max-width: 900px; }
.collection-key .collection-how { flex: 1 1 380px; }
.vol { scroll-margin-top: 90px; }
@media (max-width: 560px) {
  .billboard { min-height: 0; }
  .bb-body { padding-top: 64px; }
  .bb-programme { margin-top: 32px; }
  .bb-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 14px -16px 0; padding: 0 16px 6px; }
  .bb-tabs::-webkit-scrollbar { display: none; }
  .bb-tab { flex: none; }
  /* Hypnophobia's eye-white, Aero's airship, Lucky Block's burst and Atmos's crystal land behind the tagline on a phone: dim the scene there */
  .bb-art .scene-hypnophobia, .bb-art .scene-skiesaero, .bb-art .scene-luckyinvasion, .bb-art .scene-luckyblock, .bb-art .scene-atmos, .bb-art .scene-backrooms, .bb-art .scene-biohazard, .bb-art .scene-exosphere { opacity: .5; }
}
.party-reset-row { margin-top: 16px; align-items: center; }
.party-reset-row .fine { margin: 0; }
#now .party-lock, #now .party-who { margin-top: 14px; }
.party-top .btn[hidden] { display: none; }
@media (max-width: 640px) { .party-reset-row .party-reset { width: 100%; } .party-map { padding: 14px 16px; } }

/* /status (step 15): one row per server: name + kind of game, state + who's on, the way in. */
.st-key { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--muted); font-size: 14.5px; }
.st-key li { display: block; }
.st-key .dot { display: inline-block; margin-right: 7px; vertical-align: 1px; }
.st-key strong { color: var(--text); font-weight: 650; }
.st-key .dot, .st-row[data-state="next"] .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--sleep); }
.st-key [data-state="online"] .dot { background: var(--ok); }
.st-fine { margin: 10px 0 0; color: var(--faint); font-size: 14px; max-width: 70ch; }
.st-group { padding-top: 36px; padding-bottom: 0; }
.st-group:last-child { padding-bottom: 72px; }
.st-board { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.st-row {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto; align-items: center; gap: 10px 20px;
  padding: 14px 18px; border-top: 1px solid var(--line);
}
.st-row:first-child { border-top: 0; }
.st-row[data-state="online"] { background: color-mix(in srgb, var(--ok) 6%, var(--surface)); }
.st-name { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 650; font-size: 16px; line-height: 1.25; min-width: 0; }
.st-name:hover > span { text-decoration: underline; text-underline-offset: 3px; }
.st-name small { display: block; font-weight: 500; font-size: 13px; color: var(--faint); }
.st-state { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.st-row[data-state="next"] .status { color: var(--muted); }
.st-row[data-state="next"] .dot { background: var(--accent); }
.st-go { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.st-go .btn { text-decoration: none; height: 36px; padding: 0 14px; font-size: 13.5px; }
.st-row .player { font-size: 13.5px; }
@media (max-width: 860px) {
  .st-row { grid-template-columns: minmax(0, 1fr) auto; }
  .st-state { grid-column: 1 / -1; grid-row: 2; }
  .st-go { grid-column: 2; grid-row: 1; }
  .st-address { display: none; }
}

/* The Vault: the quiet way in at the end of /library, and its page */
.vault-door-wrap { padding-top: 32px; padding-bottom: 48px; }
.vault-door {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 16px 0;
  border-top: 1px solid #ffffff14; color: var(--muted);
}
.vault-door strong { font-family: var(--serif); font-weight: 560; font-size: 19px; color: var(--text); }
.vault-door span:not(.arrow) { font-size: 14px; }
.vault-door:hover strong, .vault-door:focus-visible strong { color: var(--accent); }
.vault-back { display: inline-block; margin-bottom: 14px; font-size: 13.5px; color: var(--muted); }

.vault-head { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 26px); margin-bottom: 12px; }
.vault-head .emblem, .vault-head > svg { flex: none; width: clamp(64px, 10vw, 104px); height: clamp(64px, 10vw, 104px); overflow: visible; filter: drop-shadow(0 8px 28px #f2c14e40); }
.hero.compact h1.vault-title {
  margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(3.2rem, 10vw, 6.25rem); line-height: 1; letter-spacing: -.02em;
  background: linear-gradient(180deg, #fff0b3, #f2c14e 55%, #c98a1c); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .08em;
}
.vault-wheel { transform-box: fill-box; transform-origin: center; animation: vault-turn 1.6s cubic-bezier(.3, .7, .2, 1) both; }
@keyframes vault-turn { from { transform: rotate(-200deg); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .vault-wheel { animation: none; } }
