/* Raven Network — built from the logo: chunky extruded pixel blocks, black outlines, crown gold, network purple.
   Gold is only for paying or joining. Purple is the brand surface. Key objects are extruded blocks; everything else stays flat and quiet.
   Compat: tints are literal rgba()/hex (no color-mix(): iOS 15–16.1 drop the whole declaration). Meaning never depends on :has(). */

/* Metric-matched local fallbacks so the Google Fonts swap barely moves text (CLS).
   Archivo is drawn expanded (font-stretch 112–125%) and Arial has no width axis, so its fallback is scaled up to match line length. */
@font-face { font-family: "Archivo Fallback"; font-weight: 100 599; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica"); size-adjust: 112%; ascent-override: 78%; descent-override: 19%; line-gap-override: 0%; }
@font-face { font-family: "Archivo Fallback"; font-weight: 600 1000; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold"), local("Helvetica Bold"); size-adjust: 112%; ascent-override: 78%; descent-override: 19%; line-gap-override: 0%; }
@font-face { font-family: "Hanken Grotesk Fallback"; font-weight: 100 599; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica"); size-adjust: 98%; ascent-override: 102%; descent-override: 31%; line-gap-override: 0%; }
@font-face { font-family: "Hanken Grotesk Fallback"; font-weight: 600 1000; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold"), local("Helvetica Bold"); size-adjust: 98%; ascent-override: 102%; descent-override: 31%; line-gap-override: 0%; }

:root {
  color-scheme: dark;
  --ink: #0D0B14;
  --ink-2: #16112A;
  --ink-3: #1F1838;
  --line: #382C5C;
  --line-2: #54447F;
  --field-line: #736A8E;
  --fg: #EEEAF6;
  --fg-2: #C2B9D5;
  --muted: #9E95B5;
  --purple: #8A4BFF;
  --purple-2: #A07EFF;
  --purple-3: #E6DCFF;
  --purple-deep: #5B21E0;
  --gold: #FFD23F;
  --gold-hi: #FFE07A;
  --gold-side: #A87500;
  --magenta: #FF4FD8;
  --cyan: #4DE3FF;
  --live: #3DF58F;
  --warn: #FFBC5E;
  --danger: #FF6B81;
  --energy: linear-gradient(100deg, #A07EFF 0%, #FF4FD8 55%, #FFD23F 100%);
  /* launch-palette-3: sampled from the server's own emoji set (electric violet, flame orange, warm gold, red-orange).
     Deep violets and red-orange are for fills, borders, stripes and glows only, never for small text on the dark page. */
  --violet-electric: #7818F0;
  --violet-electric-2: #6018D8;
  --violet-deep: #300078;
  --violet-night: #180048;
  --flame: #8A4BFF;
  --flame-hi: #E8B200;
  --flame-mid: #A07EFF;
  --gold-warm: #F0C018;
  --gold-amber: #E8B200;
  --ember: #7818F0;
  --ember-deep: #5B21E0;
  --grad-flame: linear-gradient(100deg, #FFE07A 0%, #FFD23F 45%, #FF4FD8 100%);
  --grad-raven: linear-gradient(90deg, #A07EFF 0%, #7818F0 30%, #FF4FD8 70%, #FFD23F 100%);
  --edge: #000;
  --sheen: linear-gradient(100deg, #8F6BFF, #A07EFF 35%, #E6DCFF 55%, #A07EFF 75%, #8F6BFF);
  /* RAVEN+ only (config colour "sheen"): gold to magenta, never the purple RAVEN uses (#A07EFF). #FFD23F 12.4:1 and #FF4FD8 6.6:1 on --ink. */
  --plus: linear-gradient(100deg, #FFE07A 0%, #FFD23F 38%, #FF4FD8 100%);

  /* section worlds */
  --bg-a: #0D0B14;
  --bg-b: #110F19;
  --store-1: #1A0F36;
  --store-2: #160D2D;
  --store-3: #120B23;
  --pat-dirt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' shape-rendering='crispEdges'%3E%3Crect width='64' height='64' fill='%233B2A1E'/%3E%3Cpath fill='%234A3526' d='M8 0h4v4h-4zM12 0h4v4h-4zM40 0h4v4h-4zM48 0h4v4h-4zM8 4h4v4h-4zM20 4h4v4h-4zM48 4h4v4h-4zM60 4h4v4h-4zM0 8h4v4h-4zM8 8h4v4h-4zM52 8h4v4h-4zM20 12h4v4h-4zM36 12h4v4h-4zM40 12h4v4h-4zM44 12h4v4h-4zM56 12h4v4h-4zM60 12h4v4h-4zM8 16h4v4h-4zM16 16h4v4h-4zM24 16h4v4h-4zM40 16h4v4h-4zM8 20h4v4h-4zM12 20h4v4h-4zM16 20h4v4h-4zM20 20h4v4h-4zM32 20h4v4h-4zM44 20h4v4h-4zM56 20h4v4h-4zM36 24h4v4h-4zM0 28h4v4h-4zM24 28h4v4h-4zM28 28h4v4h-4zM60 28h4v4h-4zM0 32h4v4h-4zM16 32h4v4h-4zM24 32h4v4h-4zM28 32h4v4h-4zM32 32h4v4h-4zM40 32h4v4h-4zM28 36h4v4h-4zM32 36h4v4h-4zM36 36h4v4h-4zM40 36h4v4h-4zM44 36h4v4h-4zM8 40h4v4h-4zM24 40h4v4h-4zM48 40h4v4h-4zM0 44h4v4h-4zM8 44h4v4h-4zM32 44h4v4h-4zM40 44h4v4h-4zM4 48h4v4h-4zM20 48h4v4h-4zM32 48h4v4h-4zM36 48h4v4h-4zM48 48h4v4h-4zM56 48h4v4h-4zM60 48h4v4h-4zM4 52h4v4h-4zM24 52h4v4h-4zM28 52h4v4h-4zM4 56h4v4h-4zM12 56h4v4h-4zM28 56h4v4h-4zM36 56h4v4h-4zM0 60h4v4h-4zM4 60h4v4h-4zM8 60h4v4h-4zM12 60h4v4h-4zM32 60h4v4h-4zM44 60h4v4h-4z'/%3E%3Cpath fill='%232E2117' d='M28 0h4v4h-4zM56 0h4v4h-4zM0 4h4v4h-4zM16 4h4v4h-4zM56 4h4v4h-4zM40 8h4v4h-4zM56 8h4v4h-4zM4 12h4v4h-4zM24 12h4v4h-4zM0 16h4v4h-4zM32 16h4v4h-4zM52 16h4v4h-4zM52 20h4v4h-4zM8 24h4v4h-4zM16 24h4v4h-4zM20 24h4v4h-4zM44 24h4v4h-4zM56 24h4v4h-4zM12 28h4v4h-4zM16 28h4v4h-4zM32 28h4v4h-4zM0 36h4v4h-4zM16 36h4v4h-4zM20 36h4v4h-4zM52 36h4v4h-4zM56 36h4v4h-4zM16 40h4v4h-4zM4 44h4v4h-4zM44 44h4v4h-4zM56 44h4v4h-4zM0 52h4v4h-4zM16 52h4v4h-4zM32 52h4v4h-4zM52 52h4v4h-4zM20 56h4v4h-4zM52 56h4v4h-4zM56 56h4v4h-4zM16 60h4v4h-4z'/%3E%3Cpath fill='%235A4130' d='M28 4h4v4h-4zM44 4h4v4h-4zM48 8h4v4h-4zM60 16h4v4h-4zM0 24h4v4h-4zM28 24h4v4h-4zM48 24h4v4h-4zM44 28h4v4h-4zM48 28h4v4h-4zM8 36h4v4h-4zM12 44h4v4h-4zM28 44h4v4h-4zM48 44h4v4h-4zM8 48h4v4h-4zM24 48h4v4h-4zM0 56h4v4h-4zM16 56h4v4h-4zM32 56h4v4h-4z'/%3E%3Cpath fill='%23241A12' d='M32 4h4v4h-4zM4 8h4v4h-4zM40 20h4v4h-4zM20 28h4v4h-4zM24 56h4v4h-4z'/%3E%3C/svg%3E");
  --pat-field: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' shape-rendering='crispEdges'%3E%3Cg fill='%23A07EFF'%3E%3Cpath fill-opacity='0.07' d='M28 76h4v4h-4zM44 56h4v4h-4zM80 68h4v4h-4zM24 84h4v4h-4zM72 32h4v4h-4zM24 4h4v4h-4z'/%3E%3Cpath fill-opacity='0.12' d='M4 16h4v4h-4zM80 68h4v4h-4zM12 56h4v4h-4zM8 32h4v4h-4zM72 72h4v4h-4z'/%3E%3Cpath fill-opacity='0.18' d='M48 88h4v4h-4zM44 68h4v4h-4zM84 16h4v4h-4zM56 76h4v4h-4zM64 12h4v4h-4z'/%3E%3C/g%3E%3C/svg%3E");
  --f-display: "Archivo", "Archivo Fallback", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Hanken Grotesk", "Hanken Grotesk Fallback", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --f-pixel: "Pixelify Sans", var(--f-mono);

  --r-xs: 4px; --r-sm: 6px; --r-md: 10px;
  --wrap: 1180px;
  --nav-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --press: cubic-bezier(.3, 0, .2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
html:has(.buybar:not([hidden])) { scroll-padding-bottom: 80px; }
body { margin: 0; background: var(--ink); color: var(--fg); font: 400 1rem/1.6 var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink); }
body.has-buybar { padding-bottom: 72px; }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-stretch: 112%; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 1rem + 1.6vw, 2.25rem); line-height: 1.08; font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--purple-2); outline-offset: 2px; border-radius: var(--r-xs); }
::selection { background: rgba(138, 75, 255, .5); }
[aria-disabled="true"] { opacity: .55; cursor: progress; }
.px { image-rendering: pixelated; display: block; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.skip { position: absolute; left: 16px; top: -60px; background: var(--fg); color: var(--ink); padding: 8px 12px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { top: 12px; }

/* utilities used in page markup */
.stack { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.stack--xl { gap: clamp(48px, 6vw, 72px); }
.h2--sm { font-size: clamp(1.3rem, 1rem + .8vw, 1.6rem); }
.ta-r { text-align: right !important; }
/* a phrase that moves to the next line whole, so headlines break between sentences ("Two modes on day one. | More on the way.") */
.ib { display: inline-block; }

/* eyebrow: mono label with a pixel bullet */
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; column-gap: 22px; row-gap: 4px; font: 500 .75rem/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--purple-2);
  padding-left: 4px; margin-left: -4px; clip-path: inset(-20px -20px -20px 1px); overflow-wrap: anywhere; }
.eyebrow:not(:has(.dot))::before { content: ""; width: 6px; height: 6px; margin-right: -14px; background: currentColor; box-shadow: 2px 2px 0 var(--purple-deep); flex: none; }
.eyebrow > .dot { margin-right: -14px; }
/* separators: the "·" element is hidden and a pixel is drawn in the gap before the next item instead.
   An item that wraps to a new line carries its pixel past the clipped left edge, so a separator never dangles at a line end or start. */
.eyebrow > .sep, .eyebrow > .eyebrow__sep { display: none; }
.eyebrow > .sep + *, .eyebrow > .eyebrow__sep + * { position: relative; }
.eyebrow > .sep + *::before, .eyebrow > .eyebrow__sep + *::before { content: ""; position: absolute; left: -13px; top: 50%; width: 4px; height: 4px; margin-top: -2px; background: var(--line-2); }
.sep { color: var(--line-2); }
.dot { width: 7px; height: 7px; background: var(--muted); flex: none; }
.dot--live { position: relative; background: var(--live); --ring: rgba(82, 235, 140, .18); }
/* the halo blinks by opacity on a pseudo-element: no repaint per frame */
.dot--live::after { content: ""; position: absolute; inset: -3px; border: 3px solid var(--ring); animation: blink 2.4s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: 0; } }
html:not(.is-live) .dot--live { background: var(--gold); --ring: rgba(255, 210, 63, .18); }

/* sheen: static everywhere (the RavenPass level-100 block adds a transform-only shimmer) */
.sheen-text { background: var(--sheen); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
/* RAVEN+ look: gradient text, gradient bars and a crown mark (app.js CROWN, icons.mjs crownMark). The name is always written out. */
.plus-text { background: var(--plus); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plus-bg { background: var(--plus); }
.crown { display: inline-block; width: 1.15em; height: .86em; margin-right: .22em; vertical-align: -.06em; overflow: visible; }
@media (forced-colors: active) { .plus-text { background: none; color: CanvasText; } .plus-bg { background: CanvasText; } }

/* ---------- buttons: the block system ---------- */
/* labels stay on one line wherever they fit; with very large text a button wraps instead of running off the screen */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: var(--r-sm); font: 700 .95rem/1.1 var(--f-body); text-decoration: none; cursor: pointer; border: 1px solid transparent; background: none; color: var(--fg); transition: background .15s, border-color .15s, color .15s, transform .12s var(--press), box-shadow .12s var(--press); flex-shrink: 0; text-align: center; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: .875rem; }
.btn--block { width: 100%; }
.btn--line { border-color: var(--line-2); background: rgba(13, 11, 20, .4); }
.btn--line:hover { border-color: var(--purple-2); background: var(--ink-2); }
.btn--ghost:hover { background: var(--ink-2); }

/* gold block: pay / join only */
.btn--primary, .pack--hl .btn {
  background: var(--gold); color: #1A1300; border: 2px solid var(--edge);
  box-shadow: inset 0 2px 0 var(--gold-hi), inset 0 -3px 0 #E8B200, 0 4px 0 var(--gold-side), 0 4px 0 2px var(--edge);
  margin-bottom: 6px; text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}
.btn--primary:hover, .pack--hl .btn:hover { background: #FFDA55; transform: translateY(-2px); box-shadow: inset 0 2px 0 var(--gold-hi), inset 0 -3px 0 #E8B200, 0 6px 0 var(--gold-side), 0 6px 0 2px var(--edge); }
.btn--primary:active, .pack--hl .btn:active { transform: translateY(4px); box-shadow: inset 0 2px 0 var(--gold-hi), inset 0 -3px 0 #E8B200, 0 0 0 var(--gold-side), 0 0 0 2px var(--edge); }
.btn--primary:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: 0 4px 0 #3A3350, 0 4px 0 2px var(--edge); background: var(--ink-3); color: var(--muted); text-shadow: none; }

/* purple block: the brand action when nothing is being paid for (e.g. open a ticket) */
.btn--brand { background: var(--purple); color: #fff; border: 2px solid var(--edge); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .22), 0 4px 0 var(--purple-deep), 0 4px 0 2px var(--edge); margin-bottom: 6px; }
.btn--brand:hover { background: #9659FF; transform: translateY(-2px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .22), 0 6px 0 var(--purple-deep), 0 6px 0 2px var(--edge); }
.btn--brand:active { transform: translateY(4px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .22), 0 0 0 var(--purple-deep), 0 0 0 2px var(--edge); }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--fg-2); font: 500 .9rem/1.4 var(--f-body); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); cursor: pointer; justify-self: start; }
.link-btn:hover { color: var(--fg); text-decoration-color: var(--purple-2); }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm); border: 1px solid var(--line); background: none; color: var(--fg-2); cursor: pointer; padding: 0; transition: color .15s, border-color .15s, background .15s; }
.icon-btn:hover { color: var(--fg); border-color: var(--line-2); background: var(--ink-2); }

/* ---------- nav ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(13, 11, 20, .84); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.is-scrolled, .nav.is-open { border-bottom-color: var(--line); }
/* large text: the bar grows and wraps instead of running off the screen */
.nav__in { min-height: var(--nav-h); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 1 auto; min-width: 0; }
.brand__logo { flex: none; width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .6)); }
.brand__word { min-width: 0; font: 800 1.02rem/1 var(--f-display); font-stretch: 125%; letter-spacing: .12em; }
.brand__word b { color: var(--purple-2); font-weight: 800; }
.nav__links { display: flex; gap: 2px; margin-left: 8px; }
.nav__links a { position: relative; padding: 8px 12px; border-radius: var(--r-sm); color: var(--fg-2); text-decoration: none; font-weight: 500; font-size: .925rem; }
.nav__links a:hover { color: var(--fg); background: var(--ink-2); }
.nav__links a[aria-current="page"] { color: var(--fg); }
.nav__links a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; background: var(--purple-2); box-shadow: 0 2px 0 var(--purple-deep); }
.nav__actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav__actions .icon-btn svg { width: 18px; height: 18px; }
.nav__discord svg { color: var(--purple-2); }
.basket-btn { position: relative; }
.basket-btn__count { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: var(--r-xs); border: 1.5px solid var(--edge); background: var(--gold); color: #1A1300; font: 700 .6875rem/1 var(--f-mono); }
#menuBtn .ico-close { display: none; }
#menuBtn[aria-expanded="true"] .ico-menu { display: none; }
#menuBtn[aria-expanded="true"] .ico-close { display: block; }
.nav__menu-btn { display: none !important; }

.mnav { border-top: 1px solid var(--line); padding-block: 8px 16px; max-height: calc(100vh - var(--nav-h)); max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; overscroll-behavior: contain; }
.mnav a { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.mnav a[aria-current="page"] { color: var(--purple-2); }
.mnav__ip { margin-top: 16px; }
/* nav breakpoints in em: a larger default font size switches to the menu sooner */
@media (max-width: 60em) { .nav__links { display: none; } .nav__menu-btn { display: grid !important; } }
@media (max-width: 30em) { .nav__in { column-gap: 12px; } .nav__discord { display: none; } .brand__word { font-size: .92rem; letter-spacing: .1em; } }
@media (max-width: 359px) { .brand__word { font-size: .7rem; letter-spacing: .03em; } }
/* the word wraps to two lines before it can push the bar off screen; only the narrowest phones drop it */
@media (max-width: 300px) { .brand__word { display: none; } }

/* ---------- IP field (Minecraft text-field: black well, light frame) ---------- */
.ip { display: inline-flex; align-items: center; gap: 14px; min-height: 60px; padding: 0 8px 0 18px; border-radius: var(--r-sm); border: 2px solid var(--line-2); background: #08070C; color: var(--fg); cursor: pointer; font: inherit; max-width: 100%; min-width: 0; transition: border-color .15s; }
.ip:hover { border-color: var(--purple-2); }
.ip__label { font: 500 .75rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
/* the IP is never cut off: if it truly can't fit (tiny screen, huge text) it wraps */
.ip__value { flex: 1 1 auto; font: 500 1rem/1.15 var(--f-mono); overflow-wrap: anywhere; min-width: 0; text-align: left; }
.ip__action { min-height: 38px; padding: 0 16px; margin-bottom: 4px; border-radius: var(--r-sm); background: var(--gold); color: #1A1300; border: 2px solid var(--edge); display: grid; place-items: center; font: 700 .875rem/1 var(--f-body); flex: none; box-shadow: inset 0 2px 0 var(--gold-hi), 0 3px 0 var(--gold-side), 0 3px 0 2px var(--edge); transition: transform .12s var(--press), box-shadow .12s var(--press), background .15s; }
.ip:hover .ip__action { transform: translateY(-1px); box-shadow: inset 0 2px 0 var(--gold-hi), 0 4px 0 var(--gold-side), 0 4px 0 2px var(--edge); }
.ip:active .ip__action { transform: translateY(3px); box-shadow: inset 0 2px 0 var(--gold-hi), 0 0 0 var(--gold-side), 0 0 0 2px var(--edge); }
.ip.is-copied .ip__action { background: var(--live); box-shadow: 0 3px 0 #1B7A3F, 0 3px 0 2px var(--edge); }
.ip--compact { min-height: 50px; padding-left: 14px; }
.ip--compact .ip__action { min-height: 32px; }
.ip--quiet { border-width: 1px; background: var(--ink-2); }
.ip--quiet .ip__action, .ip--quiet:hover .ip__action, .ip--quiet:active .ip__action { background: var(--ink-3); color: var(--fg); border: 1px solid var(--line-2); box-shadow: none; transform: none; margin: 0; }
.ip--quiet:hover .ip__action { background: var(--ink-2); border-color: var(--purple-2); }
.ip--quiet.is-copied .ip__action { background: var(--live); color: #04210F; }

/* copy "pop": a few gold pixels rise from the button (app.js adds .pop) */
[data-copy-ip] { position: relative; }
/* an IP in running text moves to the next line whole; it only breaks inside when it can't fit on a line at all */
[data-ip] { overflow-wrap: anywhere; }
[data-copy-ip].pop::after {
  content: ""; position: absolute; top: 2px; right: 40px; width: 4px; height: 4px; pointer-events: none; z-index: 3;
  box-shadow: -14px 2px 0 var(--gold), -6px -2px 0 var(--gold-hi), 1px 3px 0 var(--gold), 8px -3px 0 var(--gold-hi), 15px 1px 0 var(--gold), -20px -4px 0 var(--gold-hi);
  animation: pop .42s cubic-bezier(.2, .6, .3, 1) forwards;
}
@keyframes pop { from { transform: translateY(0); opacity: 1; } 60% { opacity: 1; } to { transform: translateY(-22px); opacity: 0; } }

/* ---------- section rhythm: alternating worlds + pixel-dither seams ---------- */
.section { padding-block: clamp(56px, 6.5vw, 88px); position: relative; }
.section--flush { padding-top: clamp(28px, 3.5vw, 48px); }
main > section:nth-of-type(even) { background: var(--bg-b); }
main > section + section, .footer { position: relative; }
main > section + section::before, .footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 16px; pointer-events: none; z-index: 0;
  --prev: var(--bg-a);
  background:
    linear-gradient(90deg, var(--prev) 50%, transparent 0) 0 0 / 16px 8px repeat-x,
    linear-gradient(90deg, transparent 8px, var(--prev) 0 16px, transparent 0) 0 8px / 32px 8px repeat-x;
}
main > section:nth-of-type(odd)::before { --prev: var(--bg-b); }
main > section > .wrap { position: relative; z-index: 1; }

/* store world: purple is a real surface here */
.section--store { background: var(--pat-field) 0 0 / 96px 96px, linear-gradient(180deg, var(--store-1), var(--store-2)) !important; }
.section--store + .section--store { background: var(--pat-field) 48px 32px / 96px 96px, linear-gradient(180deg, var(--store-2), var(--store-3)) !important; padding-top: clamp(24px, 4vw, 48px); }
.section--store + .section--store::before { display: none; }
.section--store:has(+ .section--store) { padding-bottom: clamp(48px, 6vw, 72px); }
.section--store + section:not(.section--store)::before { --prev: var(--store-3); }

.section__head { display: grid; gap: 12px; margin-bottom: clamp(28px, 3vw, 36px); max-width: 760px; }
.section__head > p:not(.eyebrow) { color: var(--fg-2); }
.section__head--split { gap: 16px; max-width: none; }
.section__head--split > div { display: grid; gap: 12px; }
@media (min-width: 860px) { .section__head--split { grid-template-columns: 1fr auto; align-items: end; } }
.section__head--flush { margin: 0; }
.section__note { color: var(--fg-2); max-width: 44ch; }

.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; max-width: 100%; padding: 3px 9px; border-radius: var(--r-xs); border: 1px solid var(--line-2); font: 500 .75rem/1.1 var(--f-mono); color: var(--fg-2); }
.chip--live { border-color: rgba(82, 235, 140, .4); color: var(--live); }
.chip--live::before { content: ""; width: 6px; height: 6px; background: currentColor; }
.chip--pre { border-color: rgba(255, 210, 63, .45); color: var(--gold); background: rgba(255, 210, 63, .07); }
.chip--pre::before { content: ""; width: 6px; height: 6px; background: currentColor; box-shadow: 1px 1px 0 var(--gold-side); }
.chip--gold { border-color: rgba(160, 126, 255, .55); color: var(--purple-3); background: rgba(138, 75, 255, .14); }

/* ---------- home hero ---------- */
.hero { padding-block: clamp(28px, 4vw, 56px) clamp(48px, 5vw, 72px); position: relative; overflow: hidden; }
/* purple glow: phones light the top right corner; from 760px it is centred on the logo (.hero__mark::before), so it never drifts on wide screens */
.hero::before { content: ""; position: absolute; inset: -30% -25% auto 40%; height: 820px; pointer-events: none; background: radial-gradient(closest-side, rgba(138, 75, 255, .28), transparent 72%); }
.hero__grid { display: grid; gap: 40px; align-items: center; position: relative; z-index: 1; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); gap: 56px; } }
@media (min-width: 760px) {
  .hero::before { content: none; }
  .hero__mark::before { content: ""; position: absolute; left: 50%; top: 50%; z-index: -1; width: calc(var(--logo) * 2.7); height: calc(var(--logo) * 2.2); margin: calc(var(--logo) * -1.1) 0 0 calc(var(--logo) * -1.35); pointer-events: none; background: radial-gradient(closest-side, rgba(138, 75, 255, .28), transparent 72%); }
}
.hero__copy { display: grid; gap: 24px; min-width: 0; grid-template-columns: minmax(0, 1fr); container-type: inline-size; }
.hero__title { font-size: clamp(2.6rem, 1rem + 5.4vw, 5.6rem); font-size: clamp(2.6rem, min(1rem + 5.4vw, 10.6cqi), 5.6rem); line-height: .92; font-weight: 900; font-stretch: 120%; letter-spacing: -.03em; }
.hero__title-soft { display: block; color: var(--fg); }
.hero__title em { font-style: normal; color: var(--gold); text-shadow: 0 1px 0 #3D2A00, 0 3px 0 rgba(0, 0, 0, .35); }
.hero__lede { font-size: 1.125rem; color: var(--fg-2); max-width: 50ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__art { display: grid; justify-items: center; min-width: 0; position: relative; --logo: 340px; }
@media (min-width: 1200px) { .hero__art { --logo: 380px; } }
@media (min-width: 980px) and (max-width: 1199px) { .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 40px; } .hero__art { --logo: 300px; } .hero .ip__label, .phero__in--split .ip__label { display: none; } }
.hero__art::before { content: ""; position: absolute; top: calc(var(--logo) - 46px); left: calc(50% - var(--logo) * .35); width: calc(var(--logo) * .7); height: 36px; background: radial-gradient(closest-side, rgba(0, 0, 0, .75), transparent); filter: blur(2px); animation: floor 7s ease-in-out infinite; pointer-events: none; }
.hero__mark { position: relative; z-index: 1; display: block; width: var(--logo); margin-bottom: -12px; animation: float 7s ease-in-out infinite; }
.hero__logo { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 24px 40px rgba(75, 31, 184, .45)); }
/* eye glint: a gold pixel sparkle over the raven's eye every ~9s */
.hero__glint { position: absolute; left: 75.4%; top: 30.6%; width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #FFF4C2; opacity: 0; pointer-events: none;
  box-shadow: 0 -6px 0 -1.5px var(--gold), 0 6px 0 -1.5px var(--gold), -6px 0 0 -1.5px var(--gold), 6px 0 0 -1.5px var(--gold), 0 0 10px 2px rgba(255, 210, 63, .7);
  animation: glint 9s steps(1, end) 2s infinite; }
@keyframes glint { 0%, 93.5%, 100% { opacity: 0; transform: scale(.5); } 94.5% { opacity: .8; transform: scale(.8); } 95.5% { opacity: 1; transform: scale(1); } 97% { opacity: .5; transform: scale(.7); } }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes floor { 50% { transform: scaleX(.86); opacity: .7; } }
@media (max-width: 979px) {
  .hero { padding-top: 12px; }
  .hero__copy { gap: 18px; }
  .hero__lede { font-size: 1.04rem; }
  .hero__glint { display: none; }
  .hero__logo { filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .55)) drop-shadow(0 10px 34px rgba(138, 75, 255, .6)); }
}
@media (max-width: 759px) {
  /* phone: logo leads the copy, server card follows it */
  .hero__grid { gap: 28px; }
  .hero__art { display: contents; }
  .hero__art::before { display: none; }
  .hero__mark { order: -1; justify-self: start; width: min(56vw, 220px); margin: 0 0 -22px -4%; animation: none; }
  .hero__art .serverlist { max-width: 560px; justify-self: start; }
}
@media (min-width: 760px) and (max-width: 979px) {
  /* tablet: copy left, a smaller logo + server card right (no empty right half, no logo hanging off the edge) */
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 28px; align-items: start; }
  .hero__art { --logo: 220px; padding-top: 8px; }
  .hero__art::before { display: none; }
  .hero__mark { animation: none; }
  .hero .ip__label { display: none; }
  .hero__art .serverlist__entry { margin: 8px; gap: 10px; }
  .hero__art .serverlist__icon { width: 48px; height: 48px; }
  .hero__art .join { padding-inline: 14px; }
  .hero__art .join__row { grid-template-columns: minmax(5.5em, auto) minmax(0, 1fr); gap: 10px; }
}
@media (max-width: 640px) { .join__row:nth-child(-n+2) { display: none; } .join { padding-block: 0 4px; } }

/* join helper */
.joinhelp { display: grid; gap: 10px; padding: 14px 16px; border-radius: var(--r-md); background: rgba(20, 17, 29, .8); border: 1px solid var(--line); max-width: 560px; }
.joinhelp__tabs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.joinhelp__q { font: 500 .75rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 2px; }
.joinhelp__tab { min-height: 32px; padding: 0 14px; border-radius: var(--r-sm); border: 2px solid var(--edge); background: var(--ink-3); color: var(--fg-2); font: 700 .85rem/1 var(--f-body); cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); transition: transform .12s var(--press), box-shadow .12s var(--press), background .15s, color .15s; }
.joinhelp__tab:hover { color: var(--fg); transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 2px 0 #2A2340, 0 2px 0 2px var(--edge); }
.joinhelp__tab[aria-pressed="true"], .joinhelp__tab[aria-pressed="true"]:hover { background: var(--purple); color: #fff; transform: none; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2); cursor: default; }
.joinhelp__steps { color: var(--fg-2); font-size: .95rem; line-height: 1.7; }
.joinhelp__steps .mono { color: var(--fg); background: #08070C; border: 1px solid var(--line); border-radius: var(--r-xs); padding: 1px 6px; font-size: .88em; display: inline-block; max-width: 100%; overflow-wrap: anywhere; line-height: 1.4; }
.joinhelp__copy { min-height: 32px; padding: 0 10px; margin-left: 4px; border-radius: var(--r-xs); border: 1px solid var(--line-2); background: var(--ink-3); color: var(--fg); font: 600 .8rem/1 var(--f-body); cursor: pointer; vertical-align: middle; }
.joinhelp__copy:hover { border-color: var(--purple-2); }

/* launch card: the launch time as plain HTML (no ticking), a Discord button, and an IP box once the servers are live.
   The pre/live halves swap through data-when (head boot style + app.js), so it reads right without JavaScript too. */
.launchcard { position: relative; max-width: 560px; min-width: 0; padding: 20px; border-radius: var(--r-md); border: 2px solid transparent;
  background: linear-gradient(135deg, #2A1670, #1A0F36) padding-box, linear-gradient(100deg, #A07EFF, #FF4FD8 50%, #FFD23F) border-box;
  box-shadow: 0 0 0 4px rgba(160, 126, 255, .14), 0 18px 46px -20px rgba(255, 79, 216, .6); transition: box-shadow .15s; }
.launchcard:hover { box-shadow: 0 0 0 4px rgba(255, 79, 216, .22), 0 20px 54px -16px rgba(255, 79, 216, .75); }
.launchcard__state { display: grid; gap: 12px; justify-items: start; min-width: 0; }
.launchcard__eyebrow { font: 500 .75rem/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #FFE07A; }
.launchcard__title { font: 900 clamp(1.4rem, 1rem + 1.6vw, 2rem)/1.15 var(--f-display); font-stretch: 112%; letter-spacing: -.01em; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .55); overflow-wrap: anywhere; }
.launchcard__title time { color: #FFE07A; }
.launchcard__btn { max-width: 100%; white-space: normal; min-height: 52px; padding-inline: 22px; font-size: 1rem; }
.launchcard__members { font-size: .92rem; color: #E6DCFF; }
.launchcard__members .mono { color: #fff; font-weight: 600; }
.launchcard__ip { width: 100%; }
@media (max-width: 420px) { .launchcard { padding: 16px; } .launchcard__btn { width: 100%; padding-inline: 16px; } }
@media (max-width: 360px) { .launchcard { padding: 14px 12px; } .launchcard__ip .ip__value { font-size: .8rem; } }

/* server-list card, framed like Minecraft's multiplayer screen */
.serverlist { display: grid; width: 100%; border: 2px solid var(--edge); border-radius: var(--r-md); background: linear-gradient(rgba(10, 8, 14, .78), rgba(10, 8, 14, .86)), var(--pat-dirt) 0 0 / 64px 64px; overflow: hidden; min-width: 0; position: relative; z-index: 2; box-shadow: 0 6px 0 #07060A, 0 6px 0 2px var(--edge), 0 30px 60px -20px rgba(0, 0, 0, .7); }
.serverlist__entry { display: flex; gap: 14px; margin: 12px; padding: 10px; background: rgba(0, 0, 0, .72); outline: 2px solid #B8B8B8; outline-offset: -2px; image-rendering: pixelated; }
.serverlist__icon { width: 64px; height: 64px; flex: none; background: #000; object-fit: contain; padding: 4px; }
.serverlist__body { min-width: 0; flex: 1; display: grid; gap: 1px; align-content: start; }
.serverlist__top { display: flex; justify-content: space-between; align-items: center; gap: 4px 12px; flex-wrap: wrap; margin-bottom: 2px; }
.serverlist__name { font: 500 1rem/1.3 var(--f-pixel); white-space: nowrap; text-shadow: 2px 2px 0 #3F3F3F; }
.serverlist__name .motd-gold { text-shadow: 2px 2px 0 #3F2A00; } .serverlist__name .motd-purple { text-shadow: 2px 2px 0 #2A1540; }
.serverlist__meta { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; color: #AAAAAA; font: 500 .8rem/1.25 var(--f-pixel); text-shadow: 2px 2px 0 #2A2A2A; }
.serverlist__meta .ping { flex: none; }
.serverlist__meta .mono { font-family: var(--f-pixel); }
.ping { display: inline-flex; align-items: flex-end; gap: 1px; height: 14px; }
.ping i { width: 3px; background: var(--live); box-shadow: 1px 1px 0 #0B3A1C; }
.ping i:nth-child(1) { height: 4px; } .ping i:nth-child(2) { height: 6px; } .ping i:nth-child(3) { height: 8px; } .ping i:nth-child(4) { height: 11px; } .ping i:nth-child(5) { height: 14px; }
.ping.is-off i { position: relative; background: #3A3350; box-shadow: none; }
/* "pinging…" sweep: opacity on a pseudo-element (compositor only) */
.ping.is-off i::after { content: ""; position: absolute; inset: 0; background: var(--purple-2); opacity: 0; animation: pinging 1.5s steps(1) infinite; }
.ping.is-off i:nth-child(2)::after { animation-delay: .15s; } .ping.is-off i:nth-child(3)::after { animation-delay: .3s; } .ping.is-off i:nth-child(4)::after { animation-delay: .45s; } .ping.is-off i:nth-child(5)::after { animation-delay: .6s; }
@keyframes pinging { 0%, 40% { opacity: 1; } 41%, 100% { opacity: 0; } }
.serverlist__motd { font: 500 .85rem/1.45 var(--f-pixel); color: #AAAAAA; overflow-wrap: anywhere; text-shadow: 2px 2px 0 #2A2A2A; }
.motd-gold { color: #FFAA00; white-space: nowrap; } .motd-purple { color: #B98CFF; } .motd-white { color: #FFFFFF; } .motd-gray { color: #8A8A8A; }
.join { margin: 0; padding: 0 22px 10px; display: grid; }
.join__row { display: grid; grid-template-columns: minmax(6.5em, auto) minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); align-items: baseline; }
.join__row:last-child { border-bottom: 0; }
.join dt { font: 500 .75rem/1.6 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.join dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-size: .95rem; }
.join dd a { text-decoration: none; } .join dd a:hover { text-decoration: underline; text-decoration-color: var(--purple-2); }
@media (max-width: 480px) { .serverlist__top { column-gap: 8px; } .serverlist__name { font-size: .92rem; } .serverlist__meta { font-size: .72rem; gap: 6px; } .serverlist__entry { margin: 8px; gap: 12px; } .serverlist__icon { width: 52px; height: 52px; } .join { padding-inline: 16px; } .join__row { grid-template-columns: minmax(5.5em, auto) minmax(0, 1fr); } }

/* ---------- sub-page hero ---------- */
.phero { padding-block: clamp(32px, 4.5vw, 64px) clamp(36px, 4vw, 56px); position: relative; overflow: hidden; }
.phero::before { content: ""; position: absolute; inset: -60% 30% auto -10%; height: 560px; pointer-events: none; background: radial-gradient(closest-side, rgba(138, 75, 255, .2), transparent 72%); }
.phero__in { position: relative; z-index: 1; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.phero__copy { display: grid; gap: 16px; min-width: 0; align-content: start; }
.phero h1 { font-size: clamp(min(2.4rem, 10vw), 1rem + 4.4vw, 4.4rem); line-height: .95; font-weight: 900; font-stretch: 120%; letter-spacing: -.03em; }
.phero p.lede { color: var(--fg-2); font-size: 1.1rem; max-width: 60ch; }
.phero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; align-items: center; }
.phero__icon { display: block; width: fit-content; margin-bottom: 4px; filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, .9)) drop-shadow(0 0 28px rgba(138, 75, 255, .45)); }
.phero__icon .px { width: 84px; height: 84px; }
/* the facts sit on the same baseline as the hero CTA instead of floating mid-column */
@media (min-width: 980px) { .phero__in--split { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 56px; align-items: end; } .phero__icon .px { width: 112px; height: 112px; } }

/* ---------- modes ---------- */
.modes { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.modes--next { margin-top: 12px; }
.mode { display: grid; gap: 12px; align-content: start; padding: 24px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--ink-2); min-width: 0; text-decoration: none; position: relative; overflow: hidden; transition: border-color .2s, transform .2s var(--ease); }
a.mode:hover { border-color: var(--purple-2); transform: translateY(-3px); }
.mode h3 { font-size: 1.35rem; }
.mode p { color: var(--fg-2); font-size: .95rem; }
.mode__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mode__region { font: 500 .75rem/1 var(--f-mono); color: var(--muted); letter-spacing: .06em; }
.mode__more { margin-top: 4px; font-weight: 700; font-size: .92rem; color: var(--purple-2); }
a.mode:hover .mode__more span { display: inline-block; transform: translateX(3px); transition: transform .2s var(--ease); }
.mode__soon { margin-top: 4px; font-size: .9rem; color: var(--muted); }
.mode__icon { display: block; flex: none; filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, .85)); }
.mode__icon .px { width: 56px; height: 56px; }
.modes--main .mode { padding: 0 28px 28px; gap: 14px; }
.modes--main .mode h3 { font-size: 1.6rem; }
/* banner: a block-art header stands in for screenshots */
.mode__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 -28px 6px; padding: 24px 28px 20px; min-height: 148px; border-bottom: 1px solid var(--line); background: var(--pat-field) 0 0 / 96px 96px, radial-gradient(120% 140% at 0% 100%, rgba(138, 75, 255, .3), transparent 60%), linear-gradient(180deg, #19132B, #15111F); }
.modes--main .mode:nth-child(2) .mode__row { background: var(--pat-field) 40px 20px / 96px 96px, radial-gradient(120% 140% at 0% 100%, rgba(255, 210, 63, .14), transparent 60%), linear-gradient(180deg, #18142A, #15111F); }
.mode__row .mode__icon .px { width: 84px; height: 84px; }
.mode__row .mode__top { justify-content: flex-end; align-self: flex-start; }
.mode__shot { width: calc(100% + 56px); max-width: none; margin: 0 -28px; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border-bottom: 1px solid var(--line); display: block; }
.mode__shot + .mode__row { min-height: 0; background: none; padding-top: 16px; }
.mode--compact { grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px 20px; background: transparent; border-style: dashed; }
.mode--compact .mode__icon { opacity: .9; }
.mode--compact .mode__icon .px { width: 42px; height: 42px; }
.mode--compact .mode__top { margin: 0 0 4px; }
.mode--compact h3 { font-size: 1.1rem; }
.mode--compact p { font-size: .9rem; }
@media (max-width: 480px) { .modes--main .mode { padding: 0 20px 22px; } .mode__row { margin-inline: -20px; padding: 18px 20px 16px; min-height: 124px; } .mode__row .mode__icon .px { width: 70px; height: 70px; } }

/* "Played in August?" — a calm full-width band */
.strip { padding-block: 40px; position: relative; }
.strip__in { display: grid; gap: 16px 40px; align-items: start; }
@media (min-width: 900px) { .strip__in { grid-template-columns: 200px 1fr; } }
.strip__title { font-size: 1.1rem; font-stretch: 112%; line-height: 1.3; color: var(--fg); }
.strip__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px 32px; }
@media (min-width: 760px) { .strip__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.strip__list li { color: var(--fg-2); font-size: .92rem; line-height: 1.55; }
@media (min-width: 760px) { .strip__list li { padding-left: 16px; border-left: 2px solid var(--line-2); } }
.strip__list strong { display: block; color: var(--fg); font-weight: 700; margin-bottom: 2px; }

/* ---------- OG banner ---------- */
.og { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding: 10px 14px 10px 10px; border-radius: var(--r-md); border: 1px solid #6D5B3C; background: linear-gradient(90deg, rgba(255, 210, 63, .09), transparent 70%); max-width: 640px; }
.og__tag { flex: none; display: grid; place-items: center; min-height: 30px; padding: 0 9px; margin-bottom: 3px; border-radius: var(--r-xs); border: 2px solid var(--edge); background: var(--gold); color: #1A1300; font: 700 .9rem/1 var(--f-pixel); letter-spacing: .04em; box-shadow: inset 0 2px 0 var(--gold-hi), 0 3px 0 var(--gold-side), 0 3px 0 2px var(--edge); }
.og__text { flex: 1; min-width: 0; color: var(--fg); font-size: .92rem; }
.og__left { flex: none; font: 600 .875rem/1 var(--f-mono); color: var(--gold); white-space: nowrap; }

/* demo bar */
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 14px; margin-bottom: 20px; border: 1px dashed rgba(255, 188, 94, .55); border-radius: var(--r-md); font-size: .875rem; color: var(--fg-2); }
.demo-bar__tag { font: 700 .75rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--warn); }
.demo-bar__text { flex: 1; min-width: 200px; }
.demo-bar__field { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); font-weight: 600; }
.demo-bar select { height: 40px; border-radius: var(--r-sm); background: var(--ink); color: var(--fg); border: 1px solid var(--field-line); padding: 0 8px; font: 500 1rem var(--f-body); }

/* ---------- rank ladder: a climb of extruded tiles ---------- */
.ladder { display: grid; grid-template-columns: repeat(var(--count, 7), minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; padding-top: 14px; align-items: end; }
.step {
  --n: 1; --face: #1A1529; --side: #2A2340;
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 6px; text-align: left; min-width: 0;
  min-height: calc(88px + var(--n) * 14px); padding: 14px 12px 12px; margin-bottom: 5px;
  border-radius: var(--r-sm); border: 2px solid var(--edge); background: var(--face); color: var(--fg); cursor: pointer; font: inherit;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .05), 0 4px 0 var(--side), 0 4px 0 2px var(--edge);
  transition: transform .12s var(--press), box-shadow .12s var(--press), background .15s;
}
/* app.js sets --count on the ladder and --n on each step (style attribute); these only cover a render without it */
.step:nth-child(2) { --n: 2; } .step:nth-child(3) { --n: 3; } .step:nth-child(4) { --n: 4; } .step:nth-child(5) { --n: 5; } .step:nth-child(6) { --n: 6; } .step:nth-child(7) { --n: 7; }
.step:hover { --face: #211A33; transform: translateY(-2px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .05), 0 6px 0 var(--side), 0 6px 0 2px var(--edge); }
.step:active { transform: translateY(4px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .05), 0 0 0 var(--side), 0 0 0 2px var(--edge); }
.step[aria-checked="true"], .step[aria-checked="true"]:hover { --face: #2B1D55; --side: var(--purple-deep); transform: none; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .12), inset 0 0 0 2px var(--purple-2), 0 4px 0 var(--side), 0 4px 0 2px var(--edge), 0 0 30px -4px rgba(138, 75, 255, .75); }
.step--raven { --face: #1E1632; }
/* RAVEN+ tile: warmer face and a gold edge, so it is never mistaken for the RAVEN tile beside it */
.step--top { --face: #241536; border-color: #C98A1A; }
.step__name { font: 800 .92rem/1 var(--f-display); font-stretch: 118%; letter-spacing: .04em; white-space: nowrap; text-shadow: 0 2px 0 rgba(0, 0, 0, .6); }
.step__name.plus-text { text-shadow: none; }
.step__name .crown { width: 1.3em; height: .95em; vertical-align: -.1em; }
.step__price { font: 500 .95rem/1 var(--f-mono); color: var(--fg); }
.step__price s { color: var(--muted); margin-right: 6px; font-size: .8em; }
.step.is-owned .step__price { color: var(--muted); }
.step__meta { font: 500 .75rem/1.2 var(--f-mono); color: var(--muted); }
.step__flag { white-space: nowrap; position: absolute; top: -12px; left: 10px; height: 20px; padding: 0 7px; border-radius: var(--r-xs); border: 2px solid var(--edge); background: var(--purple-3); color: #1A1033; font: 700 .6875rem/16px var(--f-mono); letter-spacing: .04em; text-transform: uppercase; }
.step__flag .short { display: none; }
.step__flag::before { content: none; }
/* tier pips: 1–7 pixel squares, the rank's height on the ladder */
.ladder .step .step__bar {
  display: block; flex: none; width: 82px; max-width: 100%; height: 10px; margin-bottom: auto; color: inherit; animation: none;
  --pip: 10px; --gap: 2px;
  background:
    linear-gradient(180deg, transparent 7px, rgba(0, 0, 0, .45) 7px),
    linear-gradient(90deg, var(--purple-2) calc(var(--n) * (var(--pip) + var(--gap))), #2E2645 0);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 var(--pip), transparent var(--pip) calc(var(--pip) + var(--gap)));
  mask: repeating-linear-gradient(90deg, #000 0 var(--pip), transparent var(--pip) calc(var(--pip) + var(--gap)));
}
.ladder .step--top .step__bar { background: linear-gradient(180deg, transparent 7px, rgba(0, 0, 0, .4) 7px), var(--plus); }
.ladder .step.is-owned .step__bar { background: linear-gradient(180deg, transparent 7px, rgba(0, 0, 0, .45) 7px), linear-gradient(90deg, var(--muted) calc(var(--n) * (var(--pip) + var(--gap))), #2E2645 0); }
@media (max-width: 920px) {
  .ladder { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 8px; align-items: stretch; }
  .step { min-height: 76px; padding: 14px 8px 10px; }
  /* the last row is always filled: a short last row's final tile widens */
  .step:last-child:nth-child(4n+3) { grid-column: span 2; }
  .step:last-child:nth-child(4n+2) { grid-column: span 3; }
  .step:last-child:nth-child(4n+1) { grid-column: 1 / -1; }
  .step__name { font-size: .8rem; letter-spacing: .02em; }
  .step__price { font-size: .82rem; }
  .step__meta { display: none; }
  .step__flag { left: 50%; transform: translateX(-50%); padding: 0 5px; }
  .ladder .step .step__bar { --pip: 7px; --gap: 2px; height: 8px; width: 61px; }
}
/* small phones: the badge shrinks to a star; "Recommended" stays for screen readers */
@media (max-width: 440px) {
  .step__flag { padding: 0; width: 24px; height: 22px; text-align: center; font-size: .9rem; line-height: 18px; }
  .step__flag .full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .step__flag::before { content: "\2605"; content: "\2605" / ""; }
}
@media (max-width: 400px) { .ladder .step .step__bar { --pip: 5px; --gap: 2px; width: 47px; } .step { padding-inline: 5px; } .step__name { font-size: clamp(.58rem, 3.3vw, .74rem); letter-spacing: 0; font-stretch: 108%; } .step__price { font-size: clamp(.68rem, 3.6vw, .82rem); } }

/* ---------- rank panel ---------- */
.rank { display: grid; gap: 0; border: 2px solid var(--edge); border-radius: var(--r-md); overflow: clip; background: var(--ink-2); box-shadow: 0 6px 0 var(--purple-deep), 0 6px 0 2px var(--edge), 0 40px 80px -40px rgba(0, 0, 0, .8); margin-bottom: 8px; }
/* engines without overflow:clip get hidden on phones; on desktop hidden would break the sticky buy column, so the panels round their own corners */
@media (max-width: 939px) { .rank { overflow: hidden; overflow: clip; } }
@media (min-width: 940px) { .rank { grid-template-columns: 420px minmax(0, 1fr); } .rank__buy { border-radius: 8px 0 0 8px; } .rank__perks { border-radius: 0 8px 8px 0; } }
.rank__buy, .rank__perks { padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px; align-content: start; min-width: 0; }
.rank__buy { background: linear-gradient(180deg, #24184A 0, #1A1334 220px, #15112A 100%); border-bottom: 2px solid var(--edge); }
@media (min-width: 940px) { .rank__buy { display: block; border-bottom: 0; border-right: 2px solid var(--edge); } .rank__sticky { position: sticky; top: calc(var(--nav-h) + 24px); } }
.rank__sticky { display: grid; gap: 18px; }
.rank__perks { background: var(--ink-2); gap: 22px; grid-template-columns: minmax(0, 1fr); }
.rank__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tag { font: 900 1.6rem/1 var(--f-display); font-stretch: 122%; letter-spacing: .04em; text-shadow: 0 3px 0 rgba(0, 0, 0, .7); }
.tag.plus-text, .buybar__tag.plus-text { text-shadow: none; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .7)); }
.rank__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rank__amount { font: 900 3.2rem/1 var(--f-display); font-stretch: 105%; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rank__was { font: 500 1.1rem/1 var(--f-mono); color: var(--muted); text-decoration: line-through; }
.rank__term { color: var(--fg-2); font-size: .875rem; }
.rank__upgrade { color: var(--gold); font-size: .9rem; margin-top: -8px; }
.rank__pitch { color: var(--fg); font-size: 1rem; line-height: 1.5; }
.rank__value { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); background: rgba(0, 0, 0, .28); border: 1px solid rgba(160, 126, 255, .3); font-size: .9rem; color: var(--fg-2); }
.rank__value strong { color: var(--fg); font-family: var(--f-mono); font-weight: 600; }
.rank__value svg { flex: none; }
.rank__fine { color: var(--fg-2); font-size: .875rem; text-align: center; }
.rank__gift { justify-self: center; margin-top: -6px; }
.rank__note { font-size: .875rem; color: var(--muted); }
.rank__inherit { color: var(--fg-2); font-size: .95rem; }
.rank__inherit strong { font-weight: 700; }
#compareBtn { justify-self: start; }

.chat { background: rgba(0, 0, 0, .55); border-radius: var(--r-xs); padding: 10px 12px; }
.chat__line { font: 500 .95rem/1.5 var(--f-pixel); color: #FFFFFF; overflow-wrap: anywhere; text-shadow: 2px 2px 0 rgba(0, 0, 0, .55); }
.chat__br { color: #8A8A8A; }
.chat__cap { margin-top: -12px; color: var(--muted); font-size: .8125rem; line-height: 1.4; }
.chat__colon { color: #AAAAAA; }

.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 4px; border-radius: var(--r-md); background: var(--ink); border: 1px solid var(--line); max-width: 100%; }
.seg__opt { min-height: 38px; padding: 0 14px; border: 0; border-radius: var(--r-sm); background: none; color: var(--fg-2); font: 600 .9rem/1.1 var(--f-body); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.seg__opt:hover { color: var(--fg); }
label.seg__opt { display: grid; place-items: center; }
.seg__opt[aria-checked="true"], .seg__opt[aria-pressed="true"], .seg__opt.is-checked { background: var(--ink-3); color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--purple-2); }
/* radio labels: app.js mirrors the input's state as .is-checked / .is-focus; :has() and :focus-within are separate rules so one unknown selector never drops the others */
.seg__opt.is-focus { outline: 2px solid var(--purple-2); outline-offset: 2px; }
.seg__opt:has(input:focus-visible) { outline: 2px solid var(--purple-2); outline-offset: 2px; }
@supports not selector(:has(a)) { label.seg__opt:focus-within { outline: 2px solid var(--purple-2); outline-offset: 2px; } }
.seg--sm { justify-self: start; max-width: 100%; }
.seg--sm .seg__opt { min-height: 34px; font-size: .85rem; padding: 0 12px; }
@media (max-width: 380px) { .seg--sm .seg__opt { padding: 2px 8px; font-size: .8rem; white-space: normal; } }

.pgroup { display: grid; gap: 4px; }
.pgroup__title { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 500 .75rem/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-bottom: 8px; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; }
.perks li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.perks li:last-child { border-bottom: 0; }
.perks svg { color: var(--purple-2); }
.perk__label { display: grid; gap: 2px; }
.perk__tip { color: var(--muted); font-size: .875rem; line-height: 1.35; }
.perks .perk__val { font: 600 .875rem/1.2 var(--f-mono); color: var(--fg); text-align: right; }
.cos { display: grid; gap: 12px; }
.cos__row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: start; font-size: .9rem; }
.cos__kind { color: var(--fg-2); padding-top: 3px; }
.cos__items { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.cos__bar { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.cos__track { grid-column: 1 / -1; height: 8px; background: var(--ink-3); border: 1px solid var(--edge); overflow: hidden; }
.cos__track i { display: block; height: 100%; background: var(--purple-2); box-shadow: inset 0 -2px 0 var(--purple-deep); }
.cos__n { font: 500 .875rem var(--f-mono); color: var(--fg-2); }
.cchip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 9px; border-radius: var(--r-xs); background: var(--ink-3); border: 1px solid var(--line); font-size: .8125rem; white-space: nowrap; }
.cchip i { width: 12px; height: 12px; flex: none; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .3); }
.cchip--more { color: var(--muted); background: none; border-style: dashed; }
.cchip--excl { border-color: #553593; background: #271D3E; }
.cchip__badge { margin-left: 2px; padding: 2px 5px; border-radius: 3px; background: var(--purple); color: #fff; font: 700 .6875rem/1.2 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 520px) { .cos__row { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* compare */
.compare { margin-top: 20px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--ink-2); overflow: hidden; }
/* position: relative keeps the cells' sr-only text inside the scroller (it used to widen the page at 761–1000px) */
.compare__scroll { overflow-x: auto; position: relative; }
.compare__scroll:focus-visible { outline-offset: -3px; border-radius: var(--r-md); }
.compare__table { width: 100%; min-width: 880px; border-collapse: collapse; font-size: .9rem; }
.compare__table th, .compare__table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.compare__table th:first-child, .compare__table td:first-child { text-align: left; position: sticky; left: 0; background: var(--ink-2); color: var(--fg-2); font-weight: 500; z-index: 1; }
/* row labels wrap so all seven ranks fit a 1440 screen; on smaller desktops long values wrap too before the table scrolls */
.compare__table tbody th:first-child { white-space: normal; min-width: 11em; }
/* cells wrap at every width, so long values (e.g. the RAVEN+ "Raven items" cell) never force a sideways scroll on desktop */
.compare__table td { white-space: normal; text-wrap: balance; }
.compare__table thead th { font: 800 .82rem/1 var(--f-display); font-stretch: 118%; letter-spacing: .04em; }
.compare__table thead th .mono { display: block; margin-top: 6px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.compare__table .grp th > span { position: sticky; left: 14px; }
.compare__table .grp th { text-align: left; font: 500 .75rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--purple-2); background: var(--ink); padding-top: 16px; }
.compare__table td { font-family: var(--f-mono); font-size: .875rem; color: var(--fg-2); }
.compare__table .no { color: var(--muted); }
.compare__table .yes { color: var(--purple-2); }
.compare__table .is-sel { background: rgba(138, 75, 255, .12); }
.compare__table--pair { min-width: 0; }
.compare__table--pair th, .compare__table--pair td { white-space: normal; }
.compare__pick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--fg-2); }
.compare__pick select { height: 44px; padding: 0 10px; border-radius: var(--r-sm); background: var(--ink); color: var(--fg); border: 1px solid var(--field-line); font: 600 1rem var(--f-body); }

/* ---------- gems ---------- */
.gems { display: grid; gap: 40px; }
@media (min-width: 980px) { .gems { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; } .gems__intro { position: sticky; top: calc(var(--nav-h) + 32px); } }
.gems__intro { display: grid; gap: 16px; }
.gems__intro > p:not(.eyebrow):not(.buys__title) { color: var(--fg-2); max-width: 46ch; }
.gems__icon { display: block; width: fit-content; filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, .85)) drop-shadow(0 0 24px rgba(138, 75, 255, .5)); margin-bottom: 4px; }
.gems__icon .px { width: 70px; height: 70px; }
.buys { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line-2); display: grid; gap: 8px; font-size: .9rem; }
.buys li { display: flex; justify-content: space-between; gap: 12px; color: var(--fg-2); text-wrap: pretty; }
.buys .mono { color: var(--fg); }
.buys__title { font: 500 .75rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.packs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pack { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(20, 17, 29, .88); transition: border-color .15s, background .15s; }
.pack:hover { border-color: var(--line-2); background: var(--ink-2); }
.pack__gem { width: 52px; height: 38px; filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, .8)); }
.pack__amt { display: grid; gap: 4px; min-width: 0; }
.pack__num { font: 700 1.3rem/1 var(--f-mono); }
.pack__num small { font: 500 .85rem var(--f-body); color: var(--muted); margin-left: 4px; }
.pack__bonus { font: 500 .875rem/1.35 var(--f-mono); color: var(--purple-2); text-wrap: pretty; }
.pack__bonus--none { color: var(--muted); }
.pack__rate { color: var(--muted); }
.pack__note { display: inline-flex; align-items: center; gap: 7px; width: fit-content; margin-top: 2px; font: 600 .8125rem/1.3 var(--f-body); color: var(--purple-3); }
.pack__note::before { content: ""; width: 6px; height: 6px; flex: none; background: var(--gold); box-shadow: 1px 1px 0 var(--gold-side); }
.pack__tag { display: inline-block; margin-left: 8px; padding: 3px 6px; border-radius: 3px; background: var(--purple-3); color: #1A1033; font: 700 .6875rem/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; vertical-align: 3px; }
.pack__price { font: 700 1.1rem/1 var(--f-mono); }
/* highlighted pack (covers RavenPass Premium): the one block in the list */
.pack--hl { border: 2px solid var(--edge); border-radius: var(--r-sm); background: linear-gradient(90deg, #2B1D55, #1E1640 70%); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .08), 0 4px 0 var(--purple-deep), 0 4px 0 2px var(--edge); margin-bottom: 6px; padding: 18px 18px; }
.pack--hl:hover { background: linear-gradient(90deg, #301F60, #21184A 70%); border-color: var(--edge); }
.pack--hl .pack__bonus { color: var(--purple-3); }
.pack--hl .btn { min-height: 40px; }
@media (max-width: 480px) { .pack { grid-template-columns: 44px minmax(0, 1fr) auto; padding: 14px; gap: 12px; } .pack__gem { width: 44px; height: 32px; } .pack__price { grid-column: 3; grid-row: 1; } .pack .btn { grid-column: 1 / -1; width: 100%; } }

/* ---------- faq ---------- */
.faq .section__head, .faq__list { max-width: 820px; }
@media (min-width: 980px) { .faq > .wrap { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.6fr); gap: 64px; align-items: start; } .faq .section__head { position: sticky; top: calc(var(--nav-h) + 32px); margin: 0; } }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-weight: 600; font-size: 1.05rem; transition: color .15s; }
.faq summary:hover { color: var(--purple-3); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 3px; margin-top: -1.5px; background: var(--purple-2); transition: transform .2s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding: 0 0 20px; color: var(--fg-2); max-width: 64ch; }
.faq details a, .faq .section__head a { color: var(--purple-2); }

/* ---------- cta band ---------- */
main > section.band { padding-block: clamp(64px, 8vw, 96px); background: var(--pat-field) 0 0 / 96px 96px, radial-gradient(70% 140% at 50% 100%, rgba(138, 75, 255, .26), transparent 70%), var(--store-2); }
.band__in { position: relative; z-index: 1; display: grid; gap: 20px; justify-items: center; text-align: center; grid-template-columns: minmax(0, 1fr); }
.band__in h2 { max-width: 20ch; font-size: clamp(1.9rem, 1rem + 2.6vw, 3rem); font-weight: 900; }
.band__sub { color: var(--fg-2); }
.band__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; justify-self: stretch; }

/* ---------- footer ---------- */
.footer { padding-block: 64px calc(24px + env(safe-area-inset-bottom, 0px)); background: var(--ink); overflow: hidden; }
.footer::before { --prev: var(--bg-b); }
/* the seam takes the colour of the section above it (partials set these classes) */
.footer--after-single::before { --prev: var(--bg-a); }
.footer--after-band::before { --prev: var(--store-2); }
/* link columns: 3 across from 520px; on small phones Help takes a full row in two columns so nothing sits alone */
.footer__grid { display: grid; gap: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 520px) { .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 860px) { .footer__grid { grid-template-columns: minmax(310px, 1.5fr) repeat(3, minmax(0, 1fr)); } }
@media (max-width: 519px) { .footer__col:last-child { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } .footer__col:last-child h3 { grid-column: 1 / -1; } }
.footer__brand { grid-column: 1 / -1; display: grid; gap: 14px; align-content: start; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .footer__brand { grid-column: auto; } }
.footer__logo { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.footer__logo img { width: 48px; height: 48px; }
.footer__name { font: 800 1rem/1.2 var(--f-display); font-stretch: 118%; letter-spacing: .06em; }
.footer__tag { color: var(--fg-2); font-size: .9rem; max-width: 34ch; }
.footer .ip--compact { width: fit-content; max-width: 100%; }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__col h3 { font: 500 .75rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; font-stretch: 100%; }
.footer__col a { color: var(--fg-2); text-decoration: none; font-size: .92rem; width: fit-content; }
.footer__col a:hover { color: var(--fg); }
.footer__legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--muted); font-size: .875rem; line-height: 1.6; }
.footer__legal p { max-width: 80ch; }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(4, 3, 8, .66); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); z-index: 70; animation: fade .2s var(--ease); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 80; width: min(440px, 100%); height: 100vh; height: 100dvh; background: var(--ink-2); border-left: 2px solid var(--edge); display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-right: env(safe-area-inset-right, 0px); animation: slide .28s var(--ease); }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #1D1536, var(--ink-2)); }
.drawer__title { font-size: 1.15rem; }
.drawer__body { padding: 20px; display: flex; flex-direction: column; gap: 18px; flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.who__lead { color: var(--fg-2); }
.drawer .seg { display: grid; }
.field { display: grid; gap: 8px; }
.field__label { font-weight: 600; font-size: .92rem; }
.field__wrap { display: flex; align-items: center; border: 1px solid var(--field-line); border-radius: var(--r-sm); background: var(--ink); transition: border-color .15s, box-shadow .15s; }
.field__wrap:focus-within { border-color: var(--purple-2); outline: 2px solid var(--purple-2); outline-offset: 2px; }
.field__prefix { padding: 0 2px 0 14px; font: 500 1rem var(--f-mono); color: var(--fg-2); }
.field__input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; background: var(--ink); color: var(--fg); border: 1px solid var(--field-line); border-radius: var(--r-sm); font: 500 1rem var(--f-mono); }
.field__input::placeholder { color: #6E6784; }
.field__input:focus { outline: none; border-color: var(--purple-2); }
.field__input:focus-visible { outline: 2px solid var(--purple-2); outline-offset: 2px; }
/* inside a wrap the input is bare: the wrap owns the frame and the focus ring */
.field__wrap .field__input, .field__wrap .field__input:focus { border: 0; background: transparent; box-shadow: none; outline: none; border-radius: 0; }
.field__wrap .field__input:focus-visible { border: 0; background: transparent; box-shadow: none; outline: none; border-radius: 0; }
.field__prefix:not([hidden]) + .field__input { padding-left: 0; }
.field__hint { color: var(--muted); font-size: .875rem; }
.field__note { font-size: .875rem; color: var(--fg-2); }
.field__deliver .mono { color: var(--fg); }
.field__error { color: var(--danger); font-size: .875rem; }
.player { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-sm); background: var(--ink); border: 1px solid var(--line); }
.player__head { width: 36px; height: 36px; border-radius: var(--r-xs); image-rendering: pixelated; background: var(--ink-3); flex: none; }
.player__who { display: grid; flex: 1; min-width: 0; }
.player__name { font: 600 .95rem/1.3 var(--f-mono); overflow-wrap: anywhere; }
.player__ed { font-size: .875rem; color: var(--muted); }
.lines { list-style: none; margin: 0; padding: 0; display: grid; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line__name { font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.line__sub { grid-column: 1 / -1; font-size: .875rem; color: var(--muted); }
.line__sub:empty { display: none; }
.line__price { font: 600 .95rem var(--f-mono); text-align: right; }
.line__actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-sm); }
.qty button { width: 40px; height: 40px; border: 0; background: none; color: var(--fg-2); cursor: pointer; font: 600 1rem/1 var(--f-mono); }
.qty button:hover { color: var(--fg); }
.qty span { min-width: 20px; text-align: center; font: 500 .875rem var(--f-mono); }
.remove { background: none; border: 0; padding: 0 4px; min-height: 44px; color: var(--muted); font: 500 .875rem var(--f-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.remove:hover { color: var(--danger); }
.cart .link-btn, .modal__card .link-btn, .rank__gift, .helpc__link { min-height: 44px; }
.upsell { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px dashed #68559F; background: rgba(138, 75, 255, .07); font-size: .9rem; color: var(--fg-2); }
.upsell p { flex: 1; min-width: 0; }
.upsell strong { font-weight: 800; font-family: var(--f-display); font-stretch: 118%; letter-spacing: .03em; }
.upsell__acts { display: flex; align-items: center; gap: 12px; }
@media (max-width: 480px) { .upsell p { flex-basis: 100%; } }
.cart__empty { display: grid; gap: 8px; justify-items: start; color: var(--fg-2); padding: 12px 0; }
.cart__links { display: flex; gap: 16px; }
.codes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.codes__item { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .9rem; color: var(--fg-2); }
.codes__item:focus-visible { outline: 2px solid var(--purple-2); outline-offset: 4px; border-radius: var(--r-xs); }
.codes__off { color: var(--live); font-family: var(--f-mono); }
.code { display: flex; gap: 8px; }
.code .field__input { height: 44px; }
.code .btn { min-height: 44px; }
.code__hint { margin-top: -10px; }
.code__msg { font-size: .875rem; margin-top: -10px; color: var(--fg-2); }
.code__msg.is-ok { color: var(--live); } .code__msg.is-err { color: var(--danger); }
.cart__foot { position: sticky; bottom: -20px; margin: auto -20px -20px; padding: 16px 20px 20px; display: grid; gap: 12px; border-top: 1px solid var(--line); background: var(--ink-2); }
.total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; }
.total:focus-visible { outline: 2px solid var(--purple-2); outline-offset: 4px; border-radius: var(--r-sm); }
.total--tax { font-weight: 500; font-size: .9rem; color: var(--fg-2); }
#drawer:focus:not(:focus-visible), #thanks:focus:not(:focus-visible), .drawer__panel:focus:not(:focus-visible) { outline: none; }
.total__amount { font-size: 1.35rem; }
.cart__fine { text-align: center; color: var(--muted); font-size: .875rem; }
/* landscape phones: the footer scrolls with the basket so the lines stay visible */
@media (max-height: 520px) { .cart__foot { position: static; margin-top: 0; } .cart__fine { display: none; } }

/* ---------- modal / toast ---------- */
/* the card centres with auto margins: when it is taller than the screen it starts at the top and the overlay scrolls (Close stays reachable) */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; justify-items: center; align-items: start; overflow-y: auto; overscroll-behavior: contain; padding: 16px; background: rgba(4, 3, 8, .74); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fade .2s var(--ease); }
.modal__card { margin-block: auto; width: min(420px, 100%); display: grid; gap: 16px; justify-items: center; text-align: center; padding: 32px 28px 22px; border-radius: var(--r-md); background: linear-gradient(180deg, #23184A, var(--ink-2) 55%); border: 2px solid var(--edge); box-shadow: 0 6px 0 var(--purple-deep), 0 6px 0 2px var(--edge), 0 40px 80px -20px rgba(0, 0, 0, .8); }
.modal__logo { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .6)); }
.modal__card p { color: var(--fg-2); }
.modal__card .modal__og { color: var(--gold); font-size: .9rem; }
.modal__card .link-btn { justify-self: center; padding-inline: 16px; border-radius: var(--r-sm); }
@media (max-width: 400px) { .modal__card { padding: 28px 18px 18px; } .modal__card .ip { width: 100%; padding-left: 12px; gap: 10px; } .modal__card .ip__value { font-size: .875rem; } }
@media (max-width: 340px) { .modal__card { padding-inline: 14px; } .modal__card .ip__value { font-size: .8rem; } .modal__card .ip__action { padding: 0 10px; } }
/* never cut the IP: it may wrap as a last resort */
.modal__card .ip__value { white-space: normal; overflow-wrap: anywhere; text-overflow: clip; line-height: 1.2; }
.modal__card .ip { max-width: 100%; height: auto; min-height: 50px; padding-block: 6px; }
@media (max-height: 520px) { .modal__card { gap: 10px; padding: 18px 20px 12px; } .modal__logo { width: 56px; height: 56px; } .modal__card h2 { font-size: 1.4rem; } }
.toast { position: fixed; left: 16px; right: 16px; margin-inline: auto; width: fit-content; max-width: calc(100% - 32px); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: none; z-index: 95; display: flex; align-items: center; gap: 4px; padding: 12px 18px; border-radius: var(--r-sm); background: var(--fg); color: var(--ink); font-weight: 600; font-size: .9rem; border: 2px solid var(--edge); box-shadow: 0 4px 0 #8C84A3, 0 4px 0 2px var(--edge), 0 16px 30px rgba(0, 0, 0, .45); animation: none; }
.toast.is-shown { animation: rise .25s var(--ease); }
.toast.sr-only { padding: 0; border: 0; box-shadow: none; }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }
.toast__btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* the toast is light: the purple ring needs the deep shade to show */
.toast:focus-visible { outline-color: var(--purple-deep); }
.toast__btn:focus-visible { outline-color: var(--purple-deep); }
body.has-buybar .toast { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }

/* mobile sticky buy bar */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: rgba(26, 19, 52, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 2px solid var(--edge); transition: transform .25s var(--ease), visibility 0s; }
/* phones: hidden keeps the bar in place below the screen so showing/hiding slides by transform instead of replaying an entrance animation */
@media (max-width: 939px) { .buybar[hidden] { display: flex !important; visibility: hidden; transform: translateY(calc(100% + 4px)); transition: transform .2s var(--ease), visibility 0s .2s; } }
.buybar__info { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.buybar__tag { font: 900 1.05rem/1 var(--f-display); font-stretch: 120%; letter-spacing: .04em; }
.buybar__price { font-weight: 600; }
.buybar .btn { margin-bottom: 4px; }
@media (min-width: 940px) { .buybar { display: none !important; } }
/* short landscape screens: no room for a bar */
@media (max-height: 450px) { .buybar { display: none !important; } body.has-buybar { padding-bottom: 0; } body.has-buybar .toast { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- FFA page ---------- */
/* facts: big numerals in the hero's right column */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; margin-top: 16px; container-type: inline-size; }
.facts > div { display: grid; gap: 6px; align-content: start; padding-top: 12px; border-top: 2px solid var(--line-2); }
/* numerals scale with the facts row, so "100" never runs past its column's rule */
.facts b { font: 900 clamp(2.4rem, 1.2rem + 3.4vw, 4.4rem)/.9 var(--f-display); font-size: clamp(2rem, 13cqi, 4.4rem); font-stretch: 115%; letter-spacing: -.02em; text-shadow: 0 3px 0 #000, 0 3px 0 var(--purple-deep); }
.facts > div:first-child b { color: var(--purple-3); }
.facts span { color: var(--fg-2); font-size: .875rem; line-height: 1.35; }
@media (min-width: 980px) { .phero__in--split .facts { margin-top: 0; gap: 32px 24px; } }
@media (max-width: 420px) { .facts { gap: 20px 12px; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
@media (min-width: 600px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { counter-increment: s; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--ink-2); display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(s); width: 32px; height: 32px; margin-bottom: 8px; border-radius: var(--r-xs); display: grid; place-items: center; background: var(--purple); border: 2px solid var(--edge); box-shadow: 0 3px 0 var(--purple-deep), 0 3px 0 2px var(--edge); color: #fff; font: 700 .9rem/1 var(--f-pixel); }
.steps li p { color: var(--fg-2); font-size: .94rem; }
.steps code, .cmd { font-family: var(--f-mono); font-size: .85em; padding: 2px 6px; border-radius: var(--r-xs); background: #08070C; border: 1px solid var(--line); color: var(--purple-3); white-space: nowrap; }
/* the IP moves to the next line as one piece; it only breaks inside if it is wider than the line */
.cmd { display: inline-block; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.split { display: grid; gap: 40px; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }
.factions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 8px; }
.faction { position: relative; overflow: hidden; padding: 20px 14px 16px; border: 1px solid var(--line); border-top: 0; border-radius: var(--r-sm); background: var(--ink-2); display: grid; gap: 8px; align-content: start; justify-items: start; min-width: 0; }
.faction::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--fc, var(--line-2)); box-shadow: 0 1px 0 rgba(0, 0, 0, .5); }
/* names shrink with the tile (container units) so a single long word like CINDERCREST never splits mid-word */
.faction { container-type: inline-size; }
.faction b { font: 800 .85rem/1.2 var(--f-display); font-size: clamp(.66rem, 8.6cqi, .85rem); font-stretch: 115%; letter-spacing: .03em; overflow-wrap: anywhere; }
.faction--free { border: 2px solid var(--edge); border-top: 0; background: #2B1D55; box-shadow: 0 4px 0 var(--purple-deep), 0 4px 0 2px var(--edge); margin-bottom: 6px; }
@media (max-width: 420px) { .factions { grid-template-columns: repeat(2, minmax(0, 1fr)); } .faction--free { grid-column: span 2; } }
/* rows always fill: 2 columns (an odd last map widens), 3 from 640px (9 maps = 3 rows); the permanent arena takes its own full row */
.maps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 640px) { .maps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px) { .maps li:not(.maps__perm):nth-last-child(2):nth-child(odd) { grid-column: 1 / -1; } }
.maps li { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; align-items: center; min-width: 0; }
.maps li::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--line-2); }
.maps li b { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.maps__perm { border-style: dashed !important; grid-column: 1 / -1; }
.maps li.has-img { display: grid; gap: 8px; padding: 0 0 12px; overflow: hidden; }
.maps li.has-img::before { display: none; }
.maps li.has-img img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.maps li.has-img b, .maps li.has-img span { padding-inline: 14px; }
.events { display: grid; gap: 12px; }
@media (min-width: 760px) { .events { grid-template-columns: 1fr 1fr; } }
.event { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--ink-2); display: grid; gap: 12px; align-content: start; min-width: 0; }
.event--wide { grid-column: 1 / -1; background: radial-gradient(80% 160% at 100% 0%, rgba(138, 75, 255, .16), transparent 60%), var(--ink-2); border-color: var(--line-2); }
.event__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.event h3 { font-size: 1.3rem; }
.event p { color: var(--fg-2); font-size: .95rem; }
.event dl { margin: 4px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .9rem; }
.event dt { color: var(--muted); }
.event dd { margin: 0; font-family: var(--f-mono); font-size: .875rem; color: var(--fg); }
/* Overdrive modifiers: a plain two-column list, no cards */
.mods { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 32px; margin-top: 8px; }
@media (min-width: 640px) { .mods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .mods { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.mods div { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mods b { font-size: .95rem; }
.mods span { color: var(--fg-2); font-size: .875rem; }

/* RavenPass */
.pass { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding: clamp(24px, 4vw, 44px); border-radius: var(--r-md); border: 2px solid var(--edge); background: var(--pat-field) 0 0 / 96px 96px, radial-gradient(80% 140% at 100% 0%, rgba(138, 75, 255, .26), transparent 60%), #17112B; box-shadow: 0 6px 0 var(--purple-deep), 0 6px 0 2px var(--edge); margin-bottom: 8px; }
@media (min-width: 960px) { .pass { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 48px; } }
.pass__copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; justify-items: start; min-width: 0; }
.pass__copy p { color: var(--fg-2); }
.pass__copy strong { color: var(--fg); }
/* the road: 4 rows of 25 blocks, every 5th raised, free rewards as gold dots, level 100 a double block */
.track { --g: 3px; display: grid; grid-template-columns: repeat(25, minmax(0, 1fr)); gap: 12px var(--g); padding: 8px calc((100% + var(--g)) / 26) 4px 0; }
.track i { position: relative; aspect-ratio: 1; border-radius: 2px; background: #2E2550; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 -2px 0 rgba(0, 0, 0, .4); }
.track i.c { background: var(--purple); transform: translateY(-4px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25), 0 4px 0 var(--purple-deep); }
.track i.f::after { content: ""; position: absolute; left: 27%; top: 27%; width: 46%; height: 46%; background: var(--gold); box-shadow: 0 0 0 1px #000; }
.track i.end { width: calc(200% + var(--g)); aspect-ratio: auto; height: 100%; background: var(--sheen); overflow: hidden; transform: translateY(-4px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .4), 0 4px 0 var(--purple-deep), 0 0 0 1px #000, 0 4px 0 1px #000; }
/* level 100 shimmer: a light band slides across by transform (compositor only, no repaint per frame) */
.track i.end::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-100%); animation: shine 5s linear infinite; }
@keyframes shine { 45%, 100% { transform: translateX(100%); } }
.track__legend { justify-content: center; display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: .875rem; color: var(--fg-2); margin-top: 18px; }
.track__legend span { display: inline-flex; align-items: center; gap: 8px; }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 2px; background: #2E2550; position: relative; }
.lg--c { background: var(--purple); box-shadow: 0 2px 0 var(--purple-deep); }
.lg--f::after { content: ""; position: absolute; inset: 3px; background: var(--gold); box-shadow: 0 0 0 1px #000; }
.lg--end { width: 22px; background: var(--sheen); }

/* cosmetic shelves */
.shelves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 479px) { .shelf:first-child { grid-column: span 2; } }
@media (min-width: 480px) { .shelves { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 480px) and (max-width: 1099px) { .shelf:first-child { grid-column: span 2; } }
@media (min-width: 1100px) { .shelves { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.shelf { padding: 18px 16px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--ink-2); display: grid; gap: 4px; align-content: start; min-width: 0; }
.shelf b { font: 900 2rem/1 var(--f-display); font-stretch: 112%; margin-bottom: 4px; text-shadow: 0 3px 0 #000; }
.shelf span { color: var(--fg); font-size: .92rem; font-weight: 600; }
.shelf small { color: var(--muted); font: 500 .8125rem var(--f-mono); }
.ffa-shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-md); border: 2px solid var(--edge); margin-top: 32px; }

/* ---------- leaderboards ---------- */
.lb { display: grid; gap: 24px; }
.lb__controls { display: grid; gap: 12px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (max-width: 400px) { .lb__filters .seg__opt { padding: 0 6px; font-size: .85rem; } }
@media (min-width: 1100px) { .lb__controls { grid-template-columns: minmax(0, 1fr) auto; } }
.lb__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.lb__filters .seg__opt { white-space: normal; }
.lb__search { display: flex; gap: 8px; }
.lb__search .field__input { height: 46px; width: 220px; }
@media (max-width: 640px) { .lb__search, .lb__search .field__input { width: 100%; } .lb__filters { width: 100%; } .lb__filters .seg { width: 100%; } }
.lb__msg { grid-column: 1 / -1; margin: -4px 0 0; }
.lb__scroll { overflow-x: auto; }
.lbt { width: 100%; border-collapse: collapse; }
.lbt th { text-align: left; font: 500 .75rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); }
.lbt td { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.lbt tr:hover td { background: var(--ink-2); }
.lbt tr[data-player] { cursor: pointer; }
.lbt tr[data-player]:focus-visible { outline: 2px solid var(--purple-2); outline-offset: -2px; }
.lbt tr.is-active td { background: var(--ink-2); }
.lbt tr[data-player]:focus-visible td { background: var(--ink-2); }
.lbt .r { width: 64px; font: 600 .95rem var(--f-mono); color: var(--fg-2); }
.lbt .r1 { color: var(--gold); } .lbt .r2 { color: #D9D4E6; } .lbt .r3 { color: #E0A26A; }
.lbt .v { text-align: right; font: 600 1rem var(--f-mono); }
.lbt .p { display: flex; align-items: center; gap: 12px; }
.lbt .p img { width: 28px; height: 28px; border-radius: 3px; image-rendering: pixelated; background: var(--ink-3); }
.lbt .p__name { font: 600 .95rem var(--f-mono); color: var(--fg); }
/* the name is a real button (keyboard + screen readers); it looks like plain text, the whole row stays clickable */
.lb__who { display: inline-flex; align-items: center; gap: 12px; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: var(--r-xs); }
.lb__who:hover { color: var(--purple-2); }
.lb__who:focus-visible { outline: 2px solid var(--purple-2); outline-offset: 2px; }
.lbt tr[data-player]:hover .p__name { color: var(--purple-2); }
.lbt tr.lbt__profile td { padding: 0 0 12px; background: none; }
.lb__panel { border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--ink); overflow: hidden; }
.lb__panel.is-loading .lbt tbody { opacity: .55; transition: opacity .15s; }
.lb__more { display: flex; justify-content: center; padding: 14px; border-top: 1px solid var(--line); }
.lb__foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; color: var(--muted); font-size: .875rem; background: var(--ink-2); }
.sample { color: var(--warn); }
.profile { display: grid; gap: 16px; padding: 20px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--ink-2); }
.profile__top { display: flex; gap: 14px; align-items: center; }
.profile__top img { width: 48px; height: 48px; border-radius: var(--r-xs); image-rendering: pixelated; }
.profile__name { font: 700 1.2rem var(--f-mono); }
.profile__stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 1px; background: var(--line); border-radius: var(--r-sm); overflow: hidden; }
.profile__stats div { background: var(--ink); padding: 12px; display: grid; gap: 2px; }
.profile__stats b { font: 600 1.15rem var(--f-mono); }
.profile__stats span { color: var(--muted); font-size: .875rem; }
/* podium: #1 is the block */
.podium { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.podium li { display: grid; justify-items: center; gap: 8px; padding: 20px 12px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--ink-2); text-align: center; min-width: 0; }
.podium li:nth-child(1) { order: 2; padding-top: 30px; padding-bottom: 22px; border: 2px solid var(--edge); border-radius: var(--r-sm); background: linear-gradient(180deg, #2E1F5A, #1E1640); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .1), 0 6px 0 var(--purple-deep), 0 6px 0 2px var(--edge); margin-bottom: 8px; }
.podium li:nth-child(2) { order: 1; }
.podium li:nth-child(3) { order: 3; }
.podium img { width: 56px; height: 56px; border-radius: var(--r-xs); image-rendering: pixelated; background: var(--ink-3); }
.podium li:nth-child(1) img { width: 72px; height: 72px; box-shadow: 0 0 0 2px #000, 0 4px 0 2px #000; }
.podium__place { font: 700 .75rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.podium li:nth-child(1) .podium__place { color: var(--gold); }
.podium__name { font: 600 .95rem var(--f-mono); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: none; border: 0; color: var(--fg); cursor: pointer; padding: 0; min-height: 32px; }
.podium__name:hover { color: var(--purple-2); }
.podium__val { font: 800 1.3rem/1 var(--f-display); }
@media (max-width: 520px) { .podium { gap: 8px; } .podium li { padding: 14px 6px 12px; } .podium img { width: 40px; height: 40px; } .podium li:nth-child(1) img { width: 52px; height: 52px; } .podium__name { font-size: .78rem; } .podium__val { font-size: 1rem; } }
/* skeleton cards from the build: same box as a real card (heights measured from one), so the JS swap shifts nothing */
.podium .podium__ph { min-height: 183px; align-content: center; gap: 14px; }
.podium .podium__ph:nth-child(1) { min-height: 217px; }
.podium__ph::before { content: ""; width: 56px; height: 56px; border-radius: var(--r-xs); background: var(--ink-3); }
.podium__ph:nth-child(1)::before { width: 72px; height: 72px; background: rgba(255, 255, 255, .06); }
.podium__ph::after { content: ""; width: min(60%, 120px); height: 10px; border-radius: 2px; background: var(--line); }
@media (max-width: 520px) { .podium .podium__ph { min-height: 152px; } .podium .podium__ph:nth-child(1) { min-height: 192px; } .podium__ph::before { width: 40px; height: 40px; } .podium__ph:nth-child(1)::before { width: 52px; height: 52px; } }

/* ---------- vote ---------- */
.vname { display: grid; gap: 10px; max-width: 680px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--ink-2); }
.vname__row { display: flex; gap: 10px; align-items: stretch; }
.vname .field { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.vname__row .field__wrap { flex: 1; min-width: 0; }
.field__wrap .field__input { width: 100%; }
.vname .btn { min-height: 50px; flex: none; }
.vname .field__hint { margin-top: 2px; }
/* wide: the field and its hint sit side by side, so the box spans the same width as the site grid below */
@media (min-width: 760px) {
  .vname { max-width: none; padding: 18px 20px; }
  .vname .field { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; align-items: center; }
  .vname .field > * { grid-column: 1; }
  .vname .field > .field__hint { grid-column: 2; grid-row: 1 / span 2; margin: 0; padding-left: 28px; border-left: 1px solid var(--line); }
}
.vsites { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 760px) { .vsites { grid-template-columns: 1fr 1fr; } }
.vsite { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--ink-2); min-width: 0; }
.vsite .btn { margin-bottom: 4px; }
.vsite__n { width: 34px; height: 34px; border-radius: var(--r-xs); display: grid; place-items: center; background: var(--ink-3); border: 2px solid var(--edge); font: 700 .9rem var(--f-pixel); color: var(--purple-3); flex: none; }
.vsite__name { flex: 1; min-width: 0; font-weight: 600; }
.vsite__name small { display: block; color: var(--muted); font-weight: 400; font-size: .875rem; }
.vsite--soon { padding-block: 10px; background: transparent; border-style: dashed; border-color: var(--line); }
.vsite--soon .vsite__n { width: 28px; height: 28px; font-size: .8rem; opacity: .55; border-width: 1px; border-color: var(--line-2); }
.vsite--soon .vsite__name { color: var(--fg-2); font-weight: 500; font-size: .94rem; }
.vsite--soon .chip { opacity: .7; }
.vsite.is-done { border-color: rgba(82, 235, 140, .4); }
.vsite.is-done .vsite__n { background: #26443B; color: var(--live); }
.rewards { display: grid; gap: 12px; }
@media (min-width: 760px) { .rewards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .reward:last-child { grid-column: 1 / -1; } }
@media (min-width: 980px) { .rewards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .reward:last-child { grid-column: auto; } }
.reward { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--ink-2); display: grid; gap: 10px; align-content: start; }
.reward h3 { font: 500 .75rem/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--purple-2); font-stretch: 100%; }
.reward p { font: 800 1.2rem/1.3 var(--f-display); font-stretch: 108%; color: var(--fg); }
.reward ol { margin: 0; padding-left: 22px; display: grid; gap: 4px; font: 600 1rem/1.5 var(--f-mono); }
/* vote page: "Top voters this month" board (filled in by vote.js) */
.tvb { max-width: 680px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--ink-2); overflow: hidden; }
.tvb__list { list-style: none; margin: 0; padding: 0; }
.tvb__row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); min-width: 0; }
.tvb__row:first-child { border-top: 0; }
.tvb__n { width: 34px; height: 34px; border-radius: var(--r-xs); display: grid; place-items: center; background: var(--ink-3); border: 2px solid var(--edge); font: 700 .9rem var(--f-pixel); color: var(--mp-lilac); flex: none; }
.tvb__row:nth-child(1) .tvb__n { background: var(--mp-gold); color: #0D0B14; }
.tvb__row:nth-child(2) .tvb__n { background: var(--mp-lilac); color: #0D0B14; }
.tvb__row:nth-child(3) .tvb__n { background: var(--mp-violet); color: #0D0B14; }
.tvb__head { width: 32px; height: 32px; flex: none; border-radius: var(--r-xs); background: var(--ink-3); image-rendering: pixelated; }
.tvb__name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tvb__v { flex: none; font: 700 1rem/1 var(--f-mono); color: var(--fg); white-space: nowrap; }
.tvb__v small { font-weight: 400; font-size: .8rem; color: var(--muted); }
.tvb__empty { margin: 0; padding: 26px 16px; text-align: center; color: var(--fg-2); font-weight: 600; }
.tvb__foot { display: flex; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; padding: 12px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; background: var(--ink); }
.tvb__foot span:empty { display: none; }
.tvb__sample { flex-basis: 100%; color: var(--mp-gold); font-weight: 600; }
.tvb__prize { margin: 0; font-weight: 600; color: var(--mp-gold); }
@media (max-width: 400px) { .tvb__row { gap: 10px; padding: 10px 12px; } .tvb__v small { display: none; } }

/* ---------- docs (rules / legal) ---------- */
.doc { display: grid; gap: 40px; }
@media (min-width: 960px) { .doc { grid-template-columns: 220px minmax(0, 1fr); gap: 64px; align-items: start; } .toc { position: sticky; top: calc(var(--nav-h) + 24px); } }
.toc { display: grid; gap: 2px; font-size: .9rem; }
.toc p { font: 500 .75rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc a { padding: 6px 10px; border-radius: 0 var(--r-xs) var(--r-xs) 0; color: var(--fg-2); text-decoration: none; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--fg); border-left-color: var(--purple-2); background: var(--ink-2); }
@media (max-width: 959px) { .toc { display: flex; flex-wrap: wrap; gap: 6px; } .toc p { width: 100%; margin-bottom: 4px; } .toc a { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; } }
.prose { max-width: 72ch; display: grid; gap: 14px; min-width: 0; }
.prose--wide { max-width: none; }
.prose h2 { font-size: 1.6rem; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.05rem; margin-top: 10px; }
.prose p, .prose li { color: var(--fg-2); }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.prose a { color: var(--purple-2); }
.prose strong { color: var(--fg); }
.prose .rules, .rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.rules li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--ink-2); }
.rules li:last-child { border-bottom: 0; }
.rules .n { font: 600 .875rem/1.6 var(--f-mono); color: var(--purple-2); }
.rules b { display: block; color: var(--fg); font-weight: 600; margin-bottom: 2px; }
.rules p { color: var(--fg-2); font-size: .95rem; }
.callout { padding: 16px 18px; border-radius: var(--r-md); border: 1px solid rgba(160, 126, 255, .4); background: #1F1631; color: var(--fg-2); font-size: .94rem; }
.prose .callout { margin-top: 24px; }
.callout strong { color: var(--fg); }
.updated { font: 500 .8125rem var(--f-mono); color: var(--muted); }
.noscript { padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--r-md); color: var(--fg-2); }
.noscript a { color: var(--purple-2); }

/* ---------- support ---------- */
.help { display: grid; gap: 12px; }
@media (min-width: 720px) { .help { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1060px) { .help { grid-template-columns: repeat(3, 1fr); } }
.helpc { padding: 24px 24px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--ink-2); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.helpc:target { border-color: var(--purple-2); }
.helpc h3 { font-size: 1.15rem; }
.helpc p, .helpc li { color: var(--fg-2); font-size: .94rem; }
.helpc p a { color: var(--purple-2); }
.helpc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.helpc .btn, .helpc__link { align-self: flex-start; margin-top: auto; }
.helpc > :nth-last-child(2) { margin-bottom: 4px; }
.status { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 1100px) { .status { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.status > div { display: grid; gap: 6px; align-content: start; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--ink-2); min-width: 0; }
.status > div > span { font: 500 .75rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
/* two columns: the long items (network chip, Java address) take full rows, players + port share one, so no tile sits alone */
@media (max-width: 719px) { .status > div:nth-child(1), .status > div:nth-child(3) { grid-column: 1 / -1; } .status > div:nth-child(3) { order: 4; } }
@media (min-width: 720px) and (max-width: 1099px) { .status { grid-template-columns: repeat(3, minmax(0, 1fr)); } .status > div:nth-child(1), .status > div:nth-child(3) { grid-column: span 2; } }
.status b { font-weight: 600; font-size: .98rem; overflow-wrap: anywhere; }
.parents { display: grid; gap: 16px; }
/* wide screens: the list uses the full width in two columns instead of leaving the right half empty */
@media (min-width: 960px) { .parents .prose { max-width: none; } .parents ul { display: block; columns: 2; column-gap: 56px; } .parents li { break-inside: avoid; margin-bottom: 10px; } }

/* ---------- no-js, touch, reduced motion ---------- */
.no-js .rank, .no-js #compare, .no-js .packs, .no-js #basketBtn, .no-js #joinHelp [data-join], .no-js #giftBtn { display: none; }
@media (pointer: coarse) {
  .btn--sm { min-height: 44px; }
  .icon-btn { width: 44px; height: 44px; }
  .seg__opt { min-height: 44px; }
  .footer__col a { padding: 10px 0; }
  .footer__col { gap: 0; }
  .joinhelp__tab, .joinhelp__copy { min-height: 44px; }
}
@media (max-width: 400px) { .joinhelp__q { flex-basis: 100%; } }
@media (max-width: 360px) { .ip { gap: 10px; padding: 0 6px 0 12px; } .ip__value { font-size: .875rem; } .ip__action { padding: 0 12px; } }
@media (max-width: 440px) {
  .ip__label { display: none; }
  .ip { width: 100%; justify-content: space-between; }
  .hero__cta .btn, .phero__cta .btn, .band__cta .btn { width: 100%; }
}
/* Windows high contrast: box-shadow and background tints vanish, so selected states and bars get real outlines/system colours */
@media (forced-colors: active) {
  .step[aria-checked="true"], .seg__opt[aria-pressed="true"], .seg__opt[aria-checked="true"], .seg__opt.is-checked, .joinhelp__tab[aria-pressed="true"] { outline: 3px solid Highlight; outline-offset: -3px; }
  .step, .cd, .pack--hl, .podium li, .rank, .pass, .serverlist { border-color: CanvasText; }
  .modal__card { background: Canvas; border: 2px solid CanvasText; }
  .cos__track { border-color: CanvasText; }
  .cos__track i { forced-color-adjust: none; background: Highlight; }
  .track i { border: 1px solid CanvasText; }
  .track i.c, .track i.end { forced-color-adjust: none; background: Highlight; }
  .lg { border: 1px solid CanvasText; }
  .eyebrow > .sep + *::before, .eyebrow > .eyebrow__sep + *::before, .dot { forced-color-adjust: none; background: CanvasText; }
  .field__wrap:focus-within, .field__input:focus-visible { outline-color: Highlight; }
  .podium__ph::before, .podium__ph::after { forced-color-adjust: none; background: GrayText; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__glint, [data-copy-ip].pop::after { display: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}


/* Home page: gem teaser (replaces the full gem section) and creator-code note under the ranks. */
.codenote { margin: 20px 0 0; font-size: .95rem; opacity: .85; }
.codenote a { color: #A07EFF; }

/* Gem shop page (src/pages/gems.mjs). Reuses .phero, .gems, .gems__intro, .buys, .packs, .pack, .codes, .faq, .noscript. */
.gempage__packs { display: grid; gap: 12px; min-width: 0; }
.gempage__best { padding: 12px 14px; border: 1px solid var(--edge); border-radius: var(--r-sm); background: linear-gradient(90deg, #2B1D55, #1E1640 70%); color: var(--fg) !important; max-width: none !important; }
.gempage__best strong { color: var(--purple-3); }
.gempage__more, .gempage__fine { font-size: .875rem; color: var(--muted) !important; }
.gempage__more a { color: var(--purple-2); }
.gempage__codes { max-width: 520px; padding: 14px 0 0; border-top: 1px solid var(--line-2); }
@media (max-width: 559px) {
  .gempage__codes .codes__item { flex-wrap: wrap; }
}

/* Nav agent: header now has 7 links (was 5). Append to the end of src/assets/styles.css so the bar never crowds. */
/* Slightly tighter link padding (underline offsets follow). */
.nav__links a { padding: 8px 10px; }
.nav__links a[aria-current="page"]::after { left: 10px; right: 10px; }
/* Burger menu up to 68em (was 60em): 7 links + brand + icons need ~1000px. */
@media (max-width: 68em) { .nav__links { display: none; } .nav__menu-btn { display: grid !important; } }
.compare__table--ranks tbody th:first-child { min-width: 0; }
.perks .perk__val { max-width: 12em; }

/* Gem shop: coin packs and how coins and gems work */
.gempage__lead { color: var(--fg-2); max-width: 60ch; margin: 0 0 20px; }
.coinpack__amount { display: block; font-weight: 700; font-size: 1.1rem; }
.coinpack .btn:disabled { opacity: .5; cursor: not-allowed; }
.howcur { display: grid; gap: 20px; margin-top: 16px; }
@media (min-width: 720px) { .howcur { grid-template-columns: 1fr 1fr; } }
.howcur__item { padding: 18px; border: 1px solid var(--edge); border-radius: var(--r-sm); background: rgba(255, 255, 255, .03); }
.howcur__sub { color: var(--muted); margin: 0 0 8px; }
.howcur__list { margin: 0; padding-left: 18px; }
/* ---- css-nav-v2.css ---- */
/* ---------- nav + footer colour pass (v2). Append after the existing nav/footer rules. ---------- */

/* header: thin brand-gradient underline (always on, sits over the 1px scroll border) */
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; background: linear-gradient(90deg, #8F6BFF, #A07EFF 30%, #E6DCFF 50%, #FFD23F 72%, #63F68B); opacity: .75; }
.nav.is-scrolled::after, .nav.is-open::after { opacity: 1; }

/* logo word: "NETWORK" in the sheen */
.brand__accent { background: var(--sheen); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (forced-colors: active) { .brand__accent, .footer__accent { color: CanvasText; background: none; } }

/* active desktop link: sheen underline, lilac text (#E6DCFF on #0D0B14 = 15:1) */
.nav__links a[aria-current="page"] { color: #E6DCFF; }
.nav__links a[aria-current="page"]::after { background: var(--sheen); background-size: 200% 100%; box-shadow: 0 2px 0 var(--purple-deep); }

/* Ranks call-to-action (first link): gold button, dark text (#1A1300 on #FFD23F = 13:1) */
.nav__links a.nav__cta { margin-right: 6px; padding-inline: 14px; background: #FFD23F; color: #1A1300; font-weight: 700; border: 1.5px solid var(--edge, #000); box-shadow: 0 3px 0 var(--gold-side, #B8860B); transition: transform .12s var(--ease, ease), box-shadow .12s var(--ease, ease); }
.nav__links a.nav__cta:hover { background: #FFDC66; color: #1A1300; transform: translateY(-1px); box-shadow: 0 4px 0 var(--gold-side, #B8860B); }
.nav__links a.nav__cta:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--gold-side, #B8860B); }
.nav__links a.nav__cta:focus-visible { outline: 2px solid #E6DCFF; outline-offset: 3px; }
.nav__links a.nav__cta[aria-current="page"] { color: #1A1300; }
.nav__links a.nav__cta[aria-current="page"]::after { display: none; }
@media (max-width: 87.5em) { .nav__links a.nav__cta { padding-inline: 12px; } }

/* mobile menu: active row gets a sheen bar, Ranks row in gold */
.mnav a[aria-current="page"] { color: #E6DCFF; box-shadow: inset 3px 0 0 #A07EFF; padding-left: 12px; }
.mnav a.mnav__cta { color: #FFD23F; }
.mnav a.mnav__cta span { color: #FFD23F; }
.mnav a.mnav__cta[aria-current="page"] { box-shadow: inset 3px 0 0 #FFD23F; }

/* footer: colour band under the dither seam */
.footer__band { position: absolute; left: 0; right: 0; top: 16px; height: 4px; z-index: 1; pointer-events: none; background: linear-gradient(90deg, #8F6BFF, #A07EFF 25%, #E6DCFF 45%, #FFD23F 70%, #63F68B); box-shadow: 0 1px 0 rgba(0, 0, 0, .5), 0 0 18px rgba(143, 107, 255, .35); }
.footer > .wrap { position: relative; z-index: 1; }
.footer__accent { font-weight: inherit; background: var(--sheen); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
/* column heads in the accent colours: purple-violet / gold / mint (all >= 6:1 on #0D0B14, AA) */
.footer__col h3 { color: #A07EFF; }
.footer__col:nth-child(3) h3 { color: #FFD23F; }
.footer__col:nth-child(4) h3 { color: #63F68B; }
.footer__col a:hover { color: #E6DCFF; text-decoration: underline; text-decoration-color: #A07EFF; text-underline-offset: 3px; }
.footer__legal { border-top-color: rgba(160, 126, 255, .28); }

/* ---- css-home-v2.css ---- */
/* ==========================================================================
   Home page v2 (src/pages/index.mjs). Append to the END of src/assets/styles.css,
   after the existing "Home page: gem teaser" block (this overrides it).
   Everything is scoped under main.home so other pages are untouched.
   Accents: gold #FFD23F, mint #63F68B, sky #5B8CFF, pink #FF55FF, orange #FFAA00.
   ========================================================================== */

/* ---------- hero: extra colour glows, sheen headline, IP as the one primary action ---------- */
.home .hero::after {
  content: ""; position: absolute; inset: auto auto -180px -160px; width: 620px; height: 520px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(closest-side at 40% 50%, rgba(255, 85, 255, .14), transparent 70%),
    radial-gradient(closest-side at 75% 35%, rgba(91, 140, 255, .12), transparent 70%);
}
.home .hero__title-hi {
  background: var(--sheen); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  /* the gradient needs a box that hugs the glyphs; padding keeps descender/italic edges inside it */
  padding-bottom: .06em;
}
@media (forced-colors: active) { .home .hero__title-hi { color: CanvasText; background: none; } }

.home .ip--hero {
  min-height: 64px; border-color: transparent;
  background: linear-gradient(#08070C, #08070C) padding-box, linear-gradient(100deg, #8F6BFF, #FFD23F) border-box;
  box-shadow: 0 0 0 4px rgba(143, 107, 255, .14), 0 14px 40px -14px rgba(255, 210, 63, .5);
}
.home .ip--hero:hover { box-shadow: 0 0 0 4px rgba(255, 210, 63, .2), 0 16px 44px -12px rgba(255, 210, 63, .6); }
.home .ip--hero .ip__value { color: #FFFFFF; }
.home .ip--hero .ip__label { color: var(--purple-3); }
/* bigger only where it fits; phones keep the base 360px/440px sizing so the IP never wraps */
@media (min-width: 461px) {
  .home .ip--hero .ip__value { font-size: 1.05rem; }
  .home .ip--hero .ip__action { min-height: 42px; padding: 0 18px; font-size: .95rem; }
}
@media (forced-colors: active) { .home .ip--hero { border-color: CanvasText; } }

/* secondary: quieter than the IP, still clearly a button */
.home .hero__ranks { min-height: 52px; border-color: rgba(160, 126, 255, .55); background: rgba(143, 107, 255, .1); color: var(--purple-3); }
.home .hero__ranks:hover { border-color: var(--purple-3); background: rgba(143, 107, 255, .2); color: #fff; }
.home .hero__ranks span { transition: transform .2s var(--ease); }
.home .hero__ranks:hover span { transform: translateX(3px); }

/* "Get a rank" card under the server card */
.home .herorank {
  position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px;
  width: 100%; margin-top: 18px; padding: 14px 14px 14px 18px; border-radius: var(--r-md);
  border: 2px solid var(--edge); text-decoration: none; color: var(--fg);
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(255, 85, 255, .22), transparent 55%),
    radial-gradient(120% 160% at 0% 100%, rgba(255, 170, 0, .16), transparent 55%),
    linear-gradient(100deg, #2B1D55, #1E1640);
  box-shadow: 0 6px 0 var(--purple-deep), 0 6px 0 2px var(--edge);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.home .herorank:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--purple-deep), 0 8px 0 2px var(--edge), 0 18px 40px -16px rgba(255, 85, 255, .55); }
.home .herorank__copy { display: grid; gap: 4px; min-width: 0; }
.home .herorank__label { font: 500 .72rem/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--purple-3); }
.home .herorank__from { font: 800 1.15rem/1.15 var(--f-display); font-stretch: 112%; color: var(--fg); }
.home .herorank__from b { color: var(--gold); font-family: var(--f-mono); font-weight: 700; }
.home .herorank__btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-sm);
  background: var(--purple); color: #fff; border: 2px solid var(--edge); font: 700 .95rem/1.1 var(--f-body); white-space: nowrap;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .22), 0 3px 0 var(--purple-deep), 0 3px 0 2px var(--edge);
}
.home .herorank:hover .herorank__btn { background: #9659FF; }
@media (max-width: 759px) { .home .herorank { margin-top: -10px; max-width: 560px; justify-self: stretch; } }
@media (min-width: 760px) and (max-width: 979px) { .home .herorank__btn { width: 100%; justify-content: center; } }
@media (max-width: 400px) { .home .herorank__btn { width: 100%; justify-content: center; } }
@media (forced-colors: active) { .home .herorank { border-color: CanvasText; } .home .herorank__btn { border-color: ButtonText; } }

/* ---------- modes: each live mode gets its own accent ---------- */
.home .mode--ffa .mode__row { background: var(--pat-field) 0 0 / 96px 96px, radial-gradient(120% 140% at 0% 100%, rgba(255, 85, 255, .26), transparent 60%), radial-gradient(90% 120% at 100% 0%, rgba(255, 170, 0, .14), transparent 60%), linear-gradient(180deg, #1D1230, #15111F); }
.home .mode--gens .mode__row { background: var(--pat-field) 40px 20px / 96px 96px, radial-gradient(120% 140% at 0% 100%, rgba(99, 246, 139, .2), transparent 60%), radial-gradient(90% 120% at 100% 0%, rgba(91, 140, 255, .16), transparent 60%), linear-gradient(180deg, #121A26, #15111F); }
.home .mode--ffa { box-shadow: inset 0 3px 0 #FF55FF; }
.home .mode--gens { box-shadow: inset 0 3px 0 #63F68B; }
.home .mode--ffa .mode__more { color: #FF8BFF; }
.home .mode--gens .mode__more { color: #63F68B; }
.home a.mode--ffa:hover { border-color: #FF55FF; }
.home a.mode--gens:hover { border-color: #63F68B; }

/* ---------- ranks header: bigger, sheen line, rank colour strip ---------- */
.home .rankhead { padding-bottom: clamp(20px, 2.5vw, 28px); border-bottom: 1px solid rgba(160, 126, 255, .22); }
.home .rankhead__eyebrow { color: var(--gold); }
.home .rankhead__eyebrow::before { box-shadow: 2px 2px 0 var(--gold-side); }
.home .rankhead__title { font-size: clamp(2rem, 1rem + 3vw, 3.4rem); font-weight: 900; line-height: 1.02; }
.home .rankhead__title .sheen-text { padding-bottom: .06em; }
@media (forced-colors: active) { .home .rankhead__title .sheen-text { color: CanvasText; background: none; } }
.home .rankstrip { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.home .rankstrip__item {
  --rc: var(--purple-2);
  padding: 4px 9px; border-radius: var(--r-xs); font: 800 .78rem/1.1 var(--f-display); font-stretch: 118%; letter-spacing: .05em;
  color: var(--rc); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .6);
}
/* color-mix() only where supported: with var() inside, an unsupported color-mix() would reset the property instead of falling back. */
@supports (color: color-mix(in srgb, red 50%, red)) {
  .home .rankstrip__item { background: color-mix(in srgb, var(--rc) 12%, #0D0B14); border: 1px solid color-mix(in srgb, var(--rc) 45%, transparent); }
}
.home .rankstrip__item--sheen { border-color: rgba(230, 220, 255, .5); background: rgba(143, 107, 255, .14); text-shadow: none; }

/* ---------- gem + coin teasers: two colourful cards ---------- */

/* ---------- closing band: "Get a rank" becomes a real button on the home page ---------- */
.home > section.band { background: var(--pat-field) 0 0 / 96px 96px, radial-gradient(60% 120% at 20% 100%, rgba(255, 85, 255, .16), transparent 70%), radial-gradient(60% 120% at 80% 100%, rgba(91, 140, 255, .16), transparent 70%), radial-gradient(70% 140% at 50% 100%, rgba(138, 75, 255, .3), transparent 70%), var(--store-2); }
.home .band .btn--line {
  background: var(--purple); color: #fff; border: 2px solid var(--edge); min-height: 56px; margin-bottom: 6px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .22), 0 4px 0 var(--purple-deep), 0 4px 0 2px var(--edge);
}
.home .band .btn--line:hover { background: #9659FF; transform: translateY(-2px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .22), 0 6px 0 var(--purple-deep), 0 6px 0 2px var(--edge); }
.home .band .btn--line:active { transform: translateY(4px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .22), 0 0 0 var(--purple-deep), 0 0 0 2px var(--edge); }
.home .band__in h2 { background: linear-gradient(100deg, #FFFFFF 30%, #E6DCFF 60%, #A07EFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (forced-colors: active) { .home .band__in h2 { color: CanvasText; background: none; } }

/* creator-code note under the ranks */
.home .codenote { opacity: 1; color: var(--fg-2); }
.home .codenote a { color: var(--purple-2); }

@media (prefers-reduced-motion: reduce) {
  .home .herorank:hover, .home .band .btn--line:hover { transform: none; }
}

/* ---- css-gems-v2.css ---- */
/* ===== Gem Shop v2 (src/pages/gems.mjs) — all rules scoped to main.gemshop ===== */
.gemshop {
  --gs-base: #0D0B14;
  --gs-purple: #8F6BFF;
  --gs-violet: #A07EFF;
  --gs-lilac: #E6DCFF;
  --gs-gold: #FFD23F;
  --gs-mint: #63F68B;
  --gs-sky: #5B8CFF;
  --gs-pink: #FF55FF;
  --gs-orange: #FFAA00;
  --gs-card: #15111F;
}

/* ---------- Hero ---------- */
.gemshop .gemhero { background:
    radial-gradient(60% 80% at 85% 30%, rgba(143, 107, 255, .28), transparent 70%),
    radial-gradient(40% 60% at 70% 90%, rgba(255, 85, 255, .14), transparent 70%),
    radial-gradient(35% 50% at 100% 0%, rgba(255, 210, 63, .12), transparent 70%),
    var(--gs-base);
  border-bottom: 1px solid rgba(160, 126, 255, .22); }
.gemshop .gemhero::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, var(--gs-gold), var(--gs-orange) 20%, var(--gs-pink) 45%, var(--gs-violet) 70%, var(--gs-sky)); opacity: .85; }
@media (min-width: 900px) { .gemshop .gemhero__in { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 40px; } }
.gemshop .gemhero__eyebrow { color: var(--gs-gold); }
.gemshop .gemhero__title { max-width: 14ch; }
.gemshop .gemhero__shine { color: var(--gs-lilac);
  background: linear-gradient(100deg, var(--gs-gold) 0%, var(--gs-pink) 45%, var(--gs-violet) 75%, var(--gs-lilac) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
@media (forced-colors: active) { .gemshop .gemhero__shine { -webkit-text-fill-color: currentColor; background: none; } }
.gemshop .gemhero .lede { color: #CFC7E0; }
.gemshop .gemhero__btn { background: linear-gradient(180deg, #FFDF6B, var(--gs-gold)); color: #1A1033; border-color: #000;
  box-shadow: 0 4px 0 #B8860B, 0 0 28px rgba(255, 210, 63, .35); }
.gemshop .gemhero__btn:hover { filter: brightness(1.06); }
.gemshop .gemhero__btn:focus-visible { outline: 3px solid var(--gs-lilac); outline-offset: 3px; }

/* The small copy-column gem is replaced by the art stage on wide screens. */
@media (min-width: 900px) { .gemshop .gemhero__icon { display: none; } }

.gemshop .gemhero__art { display: none; position: relative; min-height: 320px; }
@media (min-width: 900px) { .gemshop .gemhero__art { display: block; } }
.gemshop .gemhero__halo { position: absolute; inset: 8% 6%; border-radius: 50%;
  background: conic-gradient(from 210deg, rgba(255, 210, 63, .35), rgba(255, 85, 255, .3), rgba(143, 107, 255, .45), rgba(91, 140, 255, .3), rgba(255, 210, 63, .35));
  filter: blur(42px); opacity: .7; }
.gemshop .gemhero__gem { position: absolute; display: block; line-height: 0; }
.gemshop .gemhero__gem .px { width: 100%; height: auto; }
.gemshop .gemhero__gem--main { width: 220px; left: 50%; top: 50%; transform: translate(-50%, -50%);
  filter: drop-shadow(6px 6px 0 rgba(0, 0, 0, .9)) drop-shadow(0 0 40px rgba(160, 126, 255, .65)); }
.gemshop .gemhero__gem--a { width: 72px; right: 4%; top: 6%; filter: drop-shadow(3px 3px 0 #000) drop-shadow(0 0 18px rgba(255, 85, 255, .6)) hue-rotate(45deg); }
.gemshop .gemhero__gem--b { width: 52px; left: 6%; bottom: 8%; filter: drop-shadow(3px 3px 0 #000) drop-shadow(0 0 18px rgba(91, 140, 255, .6)) hue-rotate(-40deg); }
.gemshop .gemhero__spark { position: absolute; width: 10px; height: 10px; background: var(--gs-gold);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.gemshop .gemhero__spark--1 { left: 18%; top: 16%; width: 14px; height: 14px; }
.gemshop .gemhero__spark--2 { right: 14%; bottom: 20%; background: var(--gs-mint); }
.gemshop .gemhero__spark--3 { left: 46%; top: 2%; background: var(--gs-lilac); width: 8px; height: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .gemshop .gemhero__gem--main { animation: gsFloat 5s ease-in-out infinite; }
  .gemshop .gemhero__gem--a { animation: gsBob 4s ease-in-out infinite; }
  .gemshop .gemhero__gem--b { animation: gsBob 4.6s ease-in-out .8s infinite; }
  .gemshop .gemhero__spark { animation: gsTwinkle 2.4s ease-in-out infinite; }
  .gemshop .gemhero__spark--2 { animation-delay: .8s; }
  .gemshop .gemhero__spark--3 { animation-delay: 1.6s; }
}
@keyframes gsFloat { 50% { transform: translate(-50%, calc(-50% - 10px)); } }
@keyframes gsBob { 50% { transform: translateY(-8px); } }
@keyframes gsTwinkle { 0%, 100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.1); } }

/* ---------- Store section ---------- */
.gemshop .gemstore { background:
    radial-gradient(50% 40% at 80% 0%, rgba(143, 107, 255, .12), transparent 70%),
    var(--gs-base); }
.gemshop .gempage__best { border: 1px solid transparent;
  background: linear-gradient(90deg, #2B1D55, #1E1640 70%) padding-box,
              linear-gradient(90deg, var(--gs-gold), var(--gs-violet)) border-box; }
.gemshop .gempage__best strong { color: var(--gs-gold); }
.gemshop .gempage__more a { color: var(--gs-lilac); }

/* "What gems buy" colour chips */
.gemshop .buys--chips { display: flex; flex-wrap: wrap; gap: 8px; border-top: 0; padding-top: 4px; }
.gemshop .buychip { --c: var(--gs-violet); display: inline-flex; align-items: center; gap: 10px; justify-content: flex-start;
  padding: 7px 8px 7px 12px; border-radius: 999px; color: #EDE8F7;
  background: var(--gs-card);
  border: 1px solid rgba(255, 255, 255, .18); }
@supports (color: color-mix(in srgb, red 50%, red)) {
  .gemshop .buychip { background: color-mix(in srgb, var(--c) 14%, var(--gs-card)); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); }
}
.gemshop .buychip::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--c); transform: rotate(45deg); box-shadow: 0 0 8px var(--c); }
.gemshop .buychip .mono { padding: 2px 8px; border-radius: 999px; background: var(--c); color: #120E1C; font-weight: 700; font-size: .8125rem; }
.gemshop .buychip--gold { --c: var(--gs-gold); }
.gemshop .buychip--violet { --c: var(--gs-violet); }
.gemshop .buychip--mint { --c: var(--gs-mint); }
.gemshop .buychip--sky { --c: #7FA6FF; } /* lightened sky so dark chip text stays AA */
.gemshop .buychip--pink { --c: var(--gs-pink); }
.gemshop .buychip--orange { --c: var(--gs-orange); }

/* ---------- Gem pack cards (markup rendered by app.js into #packs) ---------- */
.gemshop .packs { gap: 14px; }
.gemshop .pack { position: relative; grid-template-columns: 64px minmax(0, 1fr) auto auto; padding: 18px 20px; border-radius: 14px;
  border: 1px solid rgba(160, 126, 255, .28);
  background: linear-gradient(135deg, rgba(143, 107, 255, .14), rgba(13, 11, 20, 0) 55%), var(--gs-card);
  box-shadow: inset 0 1px 0 rgba(230, 220, 255, .08), 0 6px 20px rgba(0, 0, 0, .35);
  transition: transform .15s, border-color .15s, box-shadow .15s; }
.gemshop .pack:hover { border-color: rgba(160, 126, 255, .6); background: linear-gradient(135deg, rgba(143, 107, 255, .2), rgba(13, 11, 20, 0) 60%), #1A1526;
  box-shadow: inset 0 1px 0 rgba(230, 220, 255, .1), 0 10px 28px rgba(0, 0, 0, .45), 0 0 24px rgba(143, 107, 255, .2); }
@media (prefers-reduced-motion: no-preference) { .gemshop .pack:hover { transform: translateY(-2px); } }
.gemshop .pack__gem { width: 64px; height: 46px; filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, .85)) drop-shadow(0 0 12px rgba(160, 126, 255, .55)); }
.gemshop .pack__num { font-size: 1.45rem; color: #FFF; }
.gemshop .pack__num small { color: var(--gs-lilac); }
.gemshop .pack__bonus { color: var(--gs-mint); }
.gemshop .pack__bonus--none { color: var(--muted); }
.gemshop .pack__rate { color: #A9A1BC; }
.gemshop .pack__price { font-size: 1.25rem; color: var(--gs-lilac); }
.gemshop .pack .btn { border-color: var(--gs-violet); color: #FFF; }
.gemshop .pack .btn:hover { background: var(--gs-purple); color: #fff; }
.gemshop .pack .btn:focus-visible { outline: 3px solid var(--gs-gold); outline-offset: 2px; }
.gemshop .pack--hl { margin-bottom: 0; }

/* Best value: gold-to-violet border + glow */
.gemshop .pack.pack--best { border: 2px solid transparent; padding: 22px 20px; margin-block: 6px;
  background:
    linear-gradient(135deg, rgba(255, 210, 63, .14), rgba(143, 107, 255, .18) 55%, rgba(13, 11, 20, 0)) padding-box,
    linear-gradient(#1C1530, #1C1530) padding-box,
    linear-gradient(120deg, var(--gs-gold), var(--gs-orange) 30%, var(--gs-pink) 60%, var(--gs-violet)) border-box;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 0 32px rgba(255, 210, 63, .22), 0 0 48px rgba(160, 126, 255, .3), 0 10px 28px rgba(0, 0, 0, .5); }
.gemshop .pack.pack--best:hover { border-color: transparent;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 0 40px rgba(255, 210, 63, .32), 0 0 60px rgba(160, 126, 255, .4), 0 12px 32px rgba(0, 0, 0, .55); }
.gemshop .pack--best .pack__gem { filter: drop-shadow(2px 2px 0 #000) drop-shadow(0 0 16px rgba(255, 210, 63, .55)); }
.gemshop .pack--best .pack__tag { background: linear-gradient(90deg, var(--gs-gold), #FFC21A); color: #1A1033; box-shadow: 0 0 12px rgba(255, 210, 63, .45); }
.gemshop .pack--best .pack__price { color: var(--gs-gold); }
.gemshop .pack--best .btn { background: linear-gradient(180deg, #FFDF6B, var(--gs-gold)); border-color: #000; color: #1A1033; box-shadow: 0 3px 0 #B8860B; }
.gemshop .pack--best .btn:hover { filter: brightness(1.06); background: linear-gradient(180deg, #FFE68A, var(--gs-gold)); color: #1A1033; }
.gemshop .pack--best .btn:focus-visible { outline-color: var(--gs-lilac); }

@media (max-width: 480px) {
  .gemshop .pack { grid-template-columns: 48px minmax(0, 1fr) auto; padding: 14px; }
  .gemshop .pack.pack--best { padding: 16px 14px; }
  .gemshop .pack__gem { width: 48px; height: 35px; }
  .gemshop .buychip { width: 100%; justify-content: space-between; }
}

.gemshop .gempage__fine { padding-left: 14px; border-left: 3px solid var(--gs-mint); }

/* ---------- How coins and gems work: colour-blocked cards ---------- */
.gemshop .howcur--blocks { gap: 18px; }
.gemshop .howcur__item { position: relative; overflow: hidden; padding: 26px 24px 24px; border-radius: 16px; border: 2px solid #000; }
.gemshop .howcur__item h3 { font-size: 1.5rem; margin: 10px 0 8px; }
.gemshop .howcur__item p, .gemshop .howcur__item li { color: inherit; }
.gemshop .howcur__item--coins { color: #24180A;
  background: linear-gradient(150deg, #FFE27A 0%, var(--gs-gold) 45%, var(--gs-orange) 100%);
  box-shadow: 0 6px 0 #9A6400, 0 12px 30px rgba(255, 170, 0, .2); }
.gemshop .howcur__item--coins h3 { color: #1A1033; }
.gemshop .howcur__item--gems { color: #F4F0FF;
  background: radial-gradient(80% 60% at 100% 0%, rgba(255, 85, 255, .35), transparent 70%), linear-gradient(150deg, #6B45F0 0%, #4B1FB8 60%, #2A1170 100%);
  box-shadow: 0 6px 0 #1A0A4A, 0 12px 30px rgba(143, 107, 255, .3); }
.gemshop .howcur__item--gems h3 { color: #FFF; }
.gemshop .howcur__item--gems .howcur__sub { color: var(--gs-lilac); font-weight: 600; }
.gemshop .howcur__item--coins .howcur__sub { color: #3A2608; }
.gemshop .howcur__item--gems .howcur__list li::marker { color: var(--gs-gold); }
.gemshop .howcur__badge { display: block; width: fit-content; line-height: 0; filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, .7)); }
.gemshop .howcur__badge .px { width: 44px; height: 44px; }
.gemshop .howcur__badge--coin { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #000;
  background: radial-gradient(circle at 35% 30%, #FFF6C8 0 18%, #FFD23F 19% 60%, #E09A00 61%);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .2), 3px 3px 0 rgba(0, 0, 0, .7); filter: none; }

/* ---- css-gens-v2.css ---- */
/* Gens page v2 (src/pages/gens.mjs). Colour-blocked sections + rank-coloured perks table. */

/* Rank colours: one custom property per rank, reused by the table, hero bar and ranks list. */
.gens-rc { --rc: #A07EFF; --rc-rgb: 160, 126, 255; }
.gens-rc--vip { --rc: #55FF55; --rc-rgb: 85, 255, 85; }
.gens-rc--mvp { --rc: #55FFFF; --rc-rgb: 85, 255, 255; }
.gens-rc--pro { --rc: #5B8CFF; --rc-rgb: 91, 140, 255; }
.gens-rc--elite { --rc: #FF55FF; --rc-rgb: 255, 85, 255; }
.gens-rc--legend { --rc: #FFAA00; --rc-rgb: 255, 170, 0; }
.gens-rc--raven { --rc: #A07EFF; --rc-rgb: 160, 126, 255; }
.gens-rc--ravenplus { --rc: #E6DCFF; --rc-rgb: 230, 220, 255; }

/* ---------- Hero ---------- */
.phero--gens {
  padding-block: clamp(40px, 6vw, 88px) clamp(44px, 5vw, 72px);
  background:
    linear-gradient(180deg, rgba(13, 11, 20, 0) 60%, #0D0B14 100%),
    linear-gradient(135deg, rgba(255, 210, 63, .10), rgba(99, 246, 139, .06) 40%, rgba(91, 140, 255, .08) 70%, rgba(255, 85, 255, .08)),
    #0D0B14;
  border-bottom: 1px solid rgba(255, 210, 63, .18);
}
.phero--gens::before { display: none; }
.gens-hero__glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(38% 60% at 12% 18%, rgba(255, 210, 63, .26), transparent 70%),
    radial-gradient(34% 55% at 88% 12%, rgba(255, 85, 255, .20), transparent 70%),
    radial-gradient(40% 60% at 70% 95%, rgba(99, 246, 139, .16), transparent 70%),
    radial-gradient(36% 55% at 35% 100%, rgba(91, 140, 255, .18), transparent 70%);
}
.gens-hero__icon { filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, .9)) drop-shadow(0 0 32px rgba(255, 210, 63, .55)); }
.gens-hero__eyebrow { color: #FFD23F; }
.gens-hero__title {
  color: #FFD23F; /* fallback */
  background: linear-gradient(100deg, #FFD23F 0%, #FFAA00 25%, #FF55FF 55%, #A07EFF 78%, #5B8CFF 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .75));
  width: fit-content; max-width: 100%;
}
.gens-hero__lede { color: #E6DCFF; max-width: 62ch; }
.gens-hero__bar { display: flex; gap: 6px; max-width: 420px; margin-top: 4px; }
.gens-hero__bar span { flex: 1 1 0; min-width: 0; height: 8px; border-radius: 2px; background: var(--rc); box-shadow: 0 0 14px rgba(var(--rc-rgb), .55); }
.gens-hero__bar .gens-rc--ravenplus { background: var(--sheen); background-size: 200% 100%; }

/* ---------- Colour-blocked sections ---------- */
.gens-block { position: relative; overflow-x: clip; }
.gens-block--perks {
  background:
    radial-gradient(50% 45% at 0% 0%, rgba(99, 246, 139, .10), transparent 70%),
    radial-gradient(45% 45% at 100% 100%, rgba(255, 210, 63, .10), transparent 70%),
    #110E1B;
  border-bottom: 1px solid rgba(143, 107, 255, .22);
}
.gens-block--ranks {
  background:
    radial-gradient(50% 45% at 100% 0%, rgba(91, 140, 255, .14), transparent 70%),
    radial-gradient(45% 45% at 0% 100%, rgba(255, 85, 255, .10), transparent 70%),
    #0F0C1A;
}
.gens-head h2 { width: fit-content; max-width: 100%; }
.gens-block--perks .gens-head h2 { color: #63F68B; }
.gens-block--ranks .gens-head h2 { color: #5B8CFF; }
.gens-head h2::after { content: ""; display: block; height: 4px; width: 56px; margin-top: 10px; border-radius: 2px; background: currentColor; box-shadow: 0 0 16px currentColor; }

/* Perk cards */
.gens-card { min-width: 0; grid-template-columns: minmax(0, 1fr); padding: clamp(14px, 2.4vw, 22px); border-radius: var(--r-md); background: rgba(20, 17, 29, .82); border: 1px solid var(--line-2); }
.gens-card + .gens-card { margin-top: 24px; }
.gens-card--mint { border-top: 3px solid #63F68B; }
.gens-card--gold { border-top: 3px solid #FFD23F; }
.gens-card--mint .pgroup__title { color: #63F68B; }
.gens-card--gold .pgroup__title { color: #FFD23F; }
.gens-card .compare { margin-top: 8px; }

/* Every-mode perk ticks cycle through the brand colours */
.gens-perks li > svg { color: #63F68B; }
.gens-perks li:nth-child(6n+2) > svg { color: #FFD23F; }
.gens-perks li:nth-child(6n+3) > svg { color: #5B8CFF; }
.gens-perks li:nth-child(6n+4) > svg { color: #FF55FF; }
.gens-perks li:nth-child(6n+5) > svg { color: #FFAA00; }
.gens-perks li:nth-child(6n+6) > svg { color: #A07EFF; }

/* ---------- Tables ---------- */
/* Never wider than the screen: the wrapper clips, only the inner scroller scrolls sideways. */
.compare--gens { max-width: 100%; min-width: 0; border-color: rgba(143, 107, 255, .35); box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 18px 40px -24px rgba(143, 107, 255, .55); }
.compare--gens .compare__scroll { max-width: 100%; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-color: #8F6BFF #14111D; }

/* Gens perks table: one colour per rank column */
.compare__table--gens thead th { padding-top: 16px; vertical-align: bottom; }
.compare__table--gens thead th:first-child { color: #FFD23F; font-family: var(--f-mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; font-size: .75rem; }
.compare__table--gens thead th.gens-rc {
  background: linear-gradient(180deg, rgba(var(--rc-rgb), .20), rgba(var(--rc-rgb), .06));
  box-shadow: inset 0 4px 0 var(--rc);
}
.compare__table--gens thead th.gens-rc--ravenplus { background: linear-gradient(180deg, rgba(160, 126, 255, .24), rgba(230, 220, 255, .06)); box-shadow: none; position: relative; }
.compare__table--gens thead th.gens-rc--ravenplus::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--sheen); }
.compare__table--gens td.gens-rc { background: rgba(var(--rc-rgb), .05); color: var(--rc); font-weight: 600; }
.compare__table--gens tbody tr:nth-child(even) td.gens-rc { background: rgba(var(--rc-rgb), .09); }
.compare__table--gens tbody tr:nth-child(even) th:first-child { background: #17131F; }
.compare__table--gens td.gens-rc.no { color: var(--muted); font-weight: 400; }
.compare__table--gens td.is-yes { text-shadow: 0 0 12px rgba(var(--rc-rgb), .45); }
.compare__table--gens tbody tr:hover td.gens-rc { background: rgba(var(--rc-rgb), .16); }
.compare__table--gens tbody tr:hover th:first-child { color: #FFFFFF; }
.compare__table--gens th:first-child { box-shadow: inset -1px 0 0 var(--line-2); }

/* Ranks at a glance: rank-coloured edge per row */
.compare__table--gensranks tbody tr.gens-rc th:first-child { box-shadow: inset 4px 0 0 var(--rc); background: linear-gradient(90deg, rgba(var(--rc-rgb), .14), rgba(20, 17, 29, 1) 70%); }
.compare__table--gensranks tbody tr.gens-rc--ravenplus th:first-child { box-shadow: inset 4px 0 0 #E6DCFF; }
.compare__table--gensranks tbody tr.gens-rc td:nth-child(2) { color: #FFD23F; font-weight: 600; }
.compare__table--gensranks tbody tr.gens-rc:hover { background: rgba(var(--rc-rgb), .07); }
.compare__table--gensranks thead th { color: #5B8CFF; }

/* ---------- Closing band ---------- */
main > section.band.band--gens {
  background:
    var(--pat-field) 0 0 / 96px 96px,
    radial-gradient(45% 120% at 15% 100%, rgba(255, 210, 63, .22), transparent 70%),
    radial-gradient(45% 120% at 85% 100%, rgba(255, 85, 255, .20), transparent 70%),
    radial-gradient(60% 140% at 50% 0%, rgba(143, 107, 255, .30), transparent 70%),
    var(--store-2);
  border-top: 1px solid rgba(255, 210, 63, .22);
}
.band--gens h2 { color: #FFD23F; }

/* ---------- Phones ---------- */
@media (max-width: 600px) {
  .gens-card { padding: 12px; }
  .gens-hero__bar { max-width: none; }
  .compare__table--gens tbody th:first-child { min-width: 9em; }
}

@media (prefers-reduced-motion: reduce) {
  .compare--gens .compare__scroll { scroll-behavior: auto; }
}

/* ---- css-ffa-v2.css ---- */
/* Unstable FFA page v2 (src/pages/ffa.mjs). Colour-blocked, brand palette. Layers on top of .phero, .facts, .steps, .factions, .maps, .events, .pass, .shelves, .packs. */
.ffa-hero, .ffa-head, .ffa-fact, .ffa-event, .ffa-shelf, .ffa-coin, .ffa-steps li {
  --ffa-purple: #8F6BFF; --ffa-violet: #A07EFF; --ffa-lilac: #E6DCFF;
  --ffa-gold: #FFD23F; --ffa-mint: #63F68B; --ffa-sky: #5B8CFF; --ffa-pink: #FF55FF; --ffa-orange: #FFAA00;
}

/* ---- Hero ---- */
.ffa-hero { isolation: isolate; background:
  radial-gradient(60% 90% at 0% 0%, rgba(143, 107, 255, .30), transparent 62%),
  radial-gradient(45% 80% at 100% 10%, rgba(255, 85, 255, .16), transparent 60%),
  radial-gradient(50% 70% at 80% 100%, rgba(255, 210, 63, .12), transparent 60%),
  #0D0B14; border-bottom: 2px solid #000; }
.ffa-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, #8F6BFF 0 20%, #5B8CFF 20% 40%, #63F68B 40% 60%, #FFD23F 60% 80%, #FF55FF 80%); }
.ffa-hero__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(230, 220, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(230, 220, 255, .05) 1px, transparent 1px);
  background-size: 32px 32px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.ffa-hero__icon { filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, .9)) drop-shadow(0 0 32px rgba(255, 210, 63, .45)); }
.ffa-hero__title { background: var(--sheen, linear-gradient(100deg, #8F6BFF, #A07EFF 35%, #E6DCFF 55%, #A07EFF 75%, #8F6BFF)); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 0 #000); padding-bottom: .06em; }
@media (prefers-reduced-motion: no-preference) {
  .ffa-hero__title { animation: ffa-sheen 7s linear infinite; }
  @keyframes ffa-sheen { to { background-position: -200% 0; } }
}
@media (forced-colors: active) { .ffa-hero__title { color: CanvasText; -webkit-text-fill-color: CanvasText; background: none; } }

/* Hero facts: colour-blocked tiles */
.ffa-facts { gap: 10px; }
.ffa-fact { --acc: var(--ffa-purple); padding: 14px 14px 12px !important; border: 2px solid #000 !important; border-radius: 6px;
  background: linear-gradient(160deg, #1E1A2B, #14111D 75%);
  box-shadow: inset 0 3px 0 var(--acc), 0 4px 0 #000; }
@supports (color: color-mix(in srgb, red 50%, red)) {
  .ffa-fact { background: linear-gradient(160deg, color-mix(in srgb, var(--acc) 26%, #14111D), #14111D 75%); }
}
.ffa-fact b { color: var(--acc) !important; }
.ffa-fact span { color: #EEEAF6 !important; }
.ffa-fact--purple { --acc: var(--ffa-violet); }
.ffa-fact--gold { --acc: var(--ffa-gold); }
.ffa-fact--mint { --acc: var(--ffa-mint); }

/* ---- Colour-blocked section headers ---- */
.ffa-head { --acc: var(--ffa-purple); position: relative; padding-left: 20px; }
.ffa-head::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 6px; border-radius: 2px;
  background: var(--acc); box-shadow: 2px 2px 0 #000; }
@supports (color: color-mix(in srgb, red 50%, red)) {
  .ffa-head::before { background: linear-gradient(180deg, var(--acc), color-mix(in srgb, var(--acc) 35%, #0D0B14)); }
}
.ffa-head h2 { position: relative; width: fit-content; }
.ffa-head h2::after { content: ""; display: block; height: 4px; width: min(120px, 60%); margin-top: 10px; border-radius: 2px;
  background: linear-gradient(90deg, var(--acc), transparent); }
.ffa-head--purple { --acc: var(--ffa-violet); }
.ffa-head--gold { --acc: var(--ffa-gold); }
.ffa-head--mint { --acc: var(--ffa-mint); }
.ffa-head--sky { --acc: var(--ffa-sky); }
.ffa-head--pink { --acc: var(--ffa-pink); }
.ffa-head--orange { --acc: var(--ffa-orange); }

/* ---- Steps ---- */
.ffa-steps li { --acc: var(--ffa-sky); border: 2px solid #000 !important; background: linear-gradient(170deg, #1B1726, #14111D 70%) !important;
  box-shadow: inset 0 3px 0 var(--acc), 0 4px 0 #000; }
@supports (color: color-mix(in srgb, red 50%, red)) {
  .ffa-steps li { background: linear-gradient(170deg, color-mix(in srgb, var(--acc) 18%, #14111D), #14111D 70%) !important; }
}
.ffa-steps li:nth-child(2) { --acc: var(--ffa-violet); }
.ffa-steps li:nth-child(3) { --acc: var(--ffa-mint); }
.ffa-steps li:nth-child(4) { --acc: var(--ffa-gold); }
.ffa-steps li::before { background: var(--acc) !important; color: #0D0B14 !important; box-shadow: 0 3px 0 #000, 0 3px 0 2px #000 !important; }

/* ---- Factions: banner-coloured cards ---- */
.ffa-faction { padding-top: 34px !important; border: 2px solid #000 !important; border-top: 0 !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 60%), #14111D; box-shadow: 0 4px 0 #000; transition: transform .15s; }
.ffa-faction::before { height: 22px !important; border-bottom: 2px solid #000; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .25) !important; }
.ffa-faction:hover { transform: translateY(-2px); }
.ffa-faction.faction--free { background: linear-gradient(180deg, rgba(255, 210, 63, .14), #2B1D55 70%) !important; box-shadow: 0 4px 0 #A87500, 0 4px 0 2px #000 !important; }
@media (prefers-reduced-motion: reduce) { .ffa-faction { transition: none; } .ffa-faction:hover { transform: none; } }

/* ---- Maps ---- */
.ffa-maps li { border: 2px solid #000 !important; background: #14111D; box-shadow: 0 3px 0 #000; }
.ffa-maps li::before { background: #63F68B !important; box-shadow: 1px 1px 0 #000; }
.ffa-maps li:nth-child(4n+2)::before { background: #5B8CFF !important; }
.ffa-maps li:nth-child(4n+3)::before { background: #FFD23F !important; }
.ffa-maps li:nth-child(4n)::before { background: #FF55FF !important; }
.ffa-maps .maps__perm { border: 2px dashed #63F68B !important; background: linear-gradient(90deg, rgba(99, 246, 139, .12), #14111D 70%); }

/* ---- Events: one colour each ---- */
.ffa-event { --acc: var(--ffa-violet); border: 2px solid #000 !important;
  background: #14111D !important;
  box-shadow: inset 0 4px 0 var(--acc), 0 4px 0 #000; }
.ffa-event h3 { color: var(--acc); }
.ffa-event .chip { border-color: var(--acc); color: #EEEAF6; background: #14111D; }
@supports (color: color-mix(in srgb, red 50%, red)) {
  .ffa-event { background: radial-gradient(90% 140% at 100% 0%, color-mix(in srgb, var(--acc) 20%, transparent), transparent 60%), #14111D !important; }
  .ffa-event .chip { border-color: color-mix(in srgb, var(--acc) 60%, #000); background: color-mix(in srgb, var(--acc) 16%, #0D0B14); }
}
.ffa-event--gold { --acc: var(--ffa-gold); }
.ffa-event--orange { --acc: var(--ffa-orange); }
.ffa-event--sky { --acc: #8DB0FF; }
.ffa-event--mint { --acc: var(--ffa-mint); }
.ffa-event--pink { --acc: var(--ffa-pink); }
.ffa-event .mods div { border-bottom-color: rgba(255, 210, 63, .18); }
.ffa-event .mods b { color: #FFE07A; }

/* ---- RavenPass ---- */
.ffa-pass { background: radial-gradient(70% 120% at 100% 0%, rgba(255, 85, 255, .18), transparent 60%), radial-gradient(80% 140% at 0% 100%, rgba(91, 140, 255, .18), transparent 60%), #17112B !important; }
.ffa-pass .eyebrow { color: #FFD23F; }

/* ---- Cosmetic shelves ---- */
.ffa-shelf { --acc: var(--ffa-violet); border: 2px solid #000 !important; background: linear-gradient(165deg, #1E1A2B, #14111D 70%) !important;
  box-shadow: inset 0 3px 0 var(--acc), 0 4px 0 #000; }
@supports (color: color-mix(in srgb, red 50%, red)) {
  .ffa-shelf { background: linear-gradient(165deg, color-mix(in srgb, var(--acc) 22%, #14111D), #14111D 70%) !important; }
}
.ffa-shelf b { color: var(--acc); }
.ffa-shelf small { color: #C2B9D5 !important; }
.ffa-shelf:nth-child(6n+2) { --acc: var(--ffa-pink); }
.ffa-shelf:nth-child(6n+3) { --acc: var(--ffa-gold); }
.ffa-shelf:nth-child(6n+4) { --acc: var(--ffa-mint); }
.ffa-shelf:nth-child(6n+5) { --acc: #8DB0FF; }
.ffa-shelf:nth-child(6n) { --acc: var(--ffa-orange); }

/* ---- Coin packs: colour-blocked grid ---- */
.ffa-coins { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; align-items: stretch; }
.ffa-coin { --acc: var(--ffa-sky); position: relative; grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: 136px auto auto 1fr;
  justify-items: center; text-align: center; gap: 10px !important; padding: 0 18px 18px !important; overflow: hidden;
  border: 2px solid #000 !important; border-radius: 10px !important;
  background: linear-gradient(180deg, #221D33 0 136px, #14111D 136px) !important;
  box-shadow: inset 0 4px 0 var(--acc), 0 5px 0 #000; transition: transform .15s; }
@supports (color: color-mix(in srgb, red 50%, red)) {
  .ffa-coin { background: linear-gradient(180deg, color-mix(in srgb, var(--acc) 30%, #14111D) 0 136px, #14111D 136px) !important; }
}
.ffa-coin:hover { transform: translateY(-3px); }
.ffa-coin--1 { --acc: var(--ffa-mint); }
.ffa-coin--2 { --acc: var(--ffa-pink); }
.ffa-coin--3 { --acc: var(--ffa-violet); }
.coinpack__img { align-self: center; width: auto; height: auto; max-height: 112px; image-rendering: pixelated; filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, .85)) drop-shadow(0 0 18px rgba(255, 210, 63, .35)); }
.coinpack__img--s { width: 64px; height: 64px; }
.coinpack__img--m { width: 96px; height: 96px; }
.coinpack__img--l { width: 112px; height: 112px; }
.ffa-coin .pack__amt { justify-items: center; }
.ffa-coin .coinpack__amount { font: 600 .95rem/1.2 var(--f-body); color: #C2B9D5; }
.ffa-coin .coinpack__amount strong { display: block; font: 900 2rem/1 var(--f-display); font-stretch: 112%; color: #EEEAF6; text-shadow: 0 3px 0 #000; }
.ffa-coin .pack__tag { margin: 4px 0 0; background: var(--acc); color: #0D0B14; }
.ffa-coin .pack__price { font-size: 1.35rem; color: #EEEAF6; }
.ffa-coin .btn { align-self: end; width: 100%; }
.ffa-coin .btn:disabled { opacity: 1; color: #C2B9D5; border-style: dashed; background: rgba(13, 11, 20, .6); cursor: not-allowed; }
.ffa-coin.coinpack--best { --acc: var(--ffa-gold); background: linear-gradient(180deg, #735B4E 0 136px, #2B1D55 136px) !important;
  box-shadow: inset 0 4px 0 #FFD23F, 0 0 0 2px #FFD23F, 0 6px 0 #A87500, 0 6px 0 2px #000, 0 0 40px rgba(255, 210, 63, .25); }
@supports (color: color-mix(in srgb, red 50%, red)) {
  .ffa-coin.coinpack--best { background: linear-gradient(180deg, color-mix(in srgb, #FFD23F 34%, #2B1D55) 0 136px, #2B1D55 136px) !important; }
}
.ffa-coin.coinpack--best .coinpack__amount strong { color: #FFD23F; }
.ffa-coin.coinpack--best .coinpack__img { filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, .85)) drop-shadow(0 0 28px rgba(255, 210, 63, .6)); }
@media (min-width: 960px) { .ffa-coins { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .ffa-coin { transition: none; } .ffa-coin:hover { transform: none; } }

/* ---- css-misc-v2.css ---- */
/* Misc pages v2: vote, leaderboards, support, rules, legal (src/pages/*.mjs). Prefix mp-.
   Reuses .phero, .eyebrow, .vsites/.vsite, .rewards/.reward, .lb__panel, .help/.helpc, .status, .parents, .doc, .toc, .prose, .rules, .callout.
   Contrast (on #0D0B14 / #14111D): #8F6BFF 5.3:1, #A07EFF 6.4:1, #E6DCFF 15:1, #FFD23F 13:1, #63F68B 14:1; #0D0B14 on #8F6BFF 5.3:1. */
:root {
  --mp-purple: #8F6BFF;
  --mp-violet: #A07EFF;
  --mp-lilac: #E6DCFF;
  --mp-gold: #FFD23F;
  --mp-mint: #63F68B;
  --mp-c: var(--mp-violet);
  --mp-c2: var(--mp-lilac);
}

/* ---------- hero ---------- */
.mp-hero { --mp-c: var(--mp-violet); --mp-c2: var(--mp-lilac); --mp-glow: rgba(143, 107, 255, .26); border-bottom: 1px solid var(--line); }
.mp-hero--vote { --mp-c: var(--mp-gold); --mp-c2: #FFE07A; --mp-glow: rgba(255, 210, 63, .16); }
.mp-hero--lb { --mp-c: var(--mp-gold); --mp-c2: var(--mp-mint); --mp-glow: rgba(255, 210, 63, .14); }
.mp-hero--support { --mp-c: var(--mp-mint); --mp-c2: var(--mp-lilac); --mp-glow: rgba(99, 246, 139, .13); }
.mp-hero--rules { --mp-c: var(--mp-violet); --mp-c2: var(--mp-lilac); }
.mp-hero--legal { --mp-c: var(--mp-lilac); --mp-c2: var(--mp-violet); --mp-glow: rgba(160, 126, 255, .2); }
.mp-hero::before { background: radial-gradient(closest-side, var(--mp-glow), transparent 72%); }
.mp-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, var(--mp-purple) 0 25%, var(--mp-violet) 25% 50%, var(--mp-gold) 50% 75%, var(--mp-mint) 75%); opacity: .85; }
.mp-hero .phero__in { position: relative; }

/* gradient eyebrow: dark text on a purple-to-lilac pill (5.3:1 at the darkest end) */
.mp-eyebrow { display: inline-flex; width: fit-content; max-width: 100%; padding: 6px 12px 6px 22px; border-radius: 999px; border: 1px solid var(--edge);
  background: linear-gradient(100deg, var(--mp-purple), var(--mp-violet) 45%, var(--mp-lilac)); color: #0D0B14; font-weight: 700;
  box-shadow: 0 2px 0 var(--purple-deep); }
.mp-eyebrow:not(:has(.dot))::before { box-shadow: none; }

/* heading accent: gradient text with a solid fallback */
.mp-accent { color: var(--mp-c); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .mp-accent { background: linear-gradient(100deg, var(--mp-c), var(--mp-c2)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
}
@media (forced-colors: active) { .mp-accent { background: none; color: CanvasText; } .mp-eyebrow { background: Canvas; color: CanvasText; } }

/* ---------- colour-blocked section headers ---------- */
.mp-head { --mp-c: var(--mp-violet); display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.mp-head::before { content: ""; flex: none; width: 12px; height: 1.1em; border-radius: 2px; background: var(--mp-c); box-shadow: 3px 3px 0 var(--purple-deep); }
.mp-head--gold { --mp-c: var(--mp-gold); }
.mp-head--mint { --mp-c: var(--mp-mint); }
.mp-head--lilac { --mp-c: var(--mp-lilac); }

/* ---------- vote ---------- */
.mp-vsites .vsite { --mp-c: var(--mp-violet); position: relative; overflow: hidden; border-color: var(--line-2);
  background: var(--ink-2); transition: border-color .15s var(--ease), transform .15s var(--ease); }
@supports (color: color-mix(in srgb, red 50%, red)) {
  .mp-vsites .vsite { background: linear-gradient(100deg, color-mix(in srgb, var(--mp-c) 12%, var(--ink-2)), var(--ink-2) 60%); }
}
.mp-vsites .vsite::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--mp-c); }
.mp-vsites .vsite:nth-child(4n+2) { --mp-c: var(--mp-gold); }
.mp-vsites .vsite:nth-child(4n+3) { --mp-c: var(--mp-mint); }
.mp-vsites .vsite:nth-child(4n+4) { --mp-c: var(--mp-lilac); }
.mp-vsites .vsite:hover { border-color: var(--mp-c); }
.mp-vsites .vsite__n { background: var(--mp-c); color: #0D0B14; }
.mp-vsites .vsite__name small { color: var(--fg-2); }
.mp-vsites .vsite.is-done { --mp-c: var(--mp-mint); border-color: rgba(99, 246, 139, .55); }
.mp-vsites .vsite.is-done .vsite__n { background: var(--mp-mint); color: #0D0B14; }
.mp-vsites .vsite--soon { background: transparent; border-style: dashed; }
.mp-vsites .vsite--soon::before { background: var(--line-2); }
@media (prefers-reduced-motion: no-preference) { .mp-vsites .vsite:hover { transform: translateY(-1px); } }

.mp-reward { --mp-c: var(--mp-violet); position: relative; border-color: var(--line-2); border-top: 4px solid var(--mp-c);
  background: var(--ink-2); }
@supports (color: color-mix(in srgb, red 50%, red)) {
  .mp-reward { background: linear-gradient(180deg, color-mix(in srgb, var(--mp-c) 11%, var(--ink-2)), var(--ink-2) 70%); }
}
.mp-reward--violet { --mp-c: var(--mp-violet); }
.mp-reward--mint { --mp-c: var(--mp-mint); }
.mp-reward--gold { --mp-c: var(--mp-gold); }
.mp-reward h3 { color: var(--mp-c); }
.mp-reward ol li::marker { color: var(--mp-c); }

/* ---------- leaderboards: pre-launch panel ---------- */
.mp-lbsoon { position: relative; display: grid; justify-items: center; gap: 18px; padding: clamp(32px, 5vw, 56px) 16px; text-align: center;
  border-color: rgba(160, 126, 255, .45);
  background: radial-gradient(60% 80% at 50% 100%, rgba(255, 210, 63, .12), transparent 70%), linear-gradient(180deg, #1C1533, var(--ink) 85%); }
.mp-lbsoon::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--mp-purple), var(--mp-violet), var(--mp-gold), var(--mp-mint)); }
.mp-lbsoon__art { display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.mp-lbsoon__art span { width: 34px; border: 2px solid var(--edge); border-radius: 3px 3px 0 0; box-shadow: inset 0 3px 0 rgba(255, 255, 255, .25); }
.mp-lbsoon__art span:nth-child(1) { height: 40px; background: var(--mp-lilac); }
.mp-lbsoon__art span:nth-child(2) { height: 62px; background: var(--mp-gold); }
.mp-lbsoon__art span:nth-child(3) { height: 28px; background: var(--mp-mint); }
.mp-lbsoon__msg { margin: 0; max-width: 32ch; font: 800 clamp(1.25rem, 1rem + 1vw, 1.6rem)/1.25 var(--f-display); font-stretch: 108%; color: var(--mp-lilac); }

/* ---------- support ---------- */
.mp-status > div { border-color: var(--line-2); border-left: 3px solid var(--mp-violet); }
.mp-status > div:nth-child(2) { border-left-color: var(--mp-mint); }
.mp-status > div:nth-child(3) { border-left-color: var(--mp-gold); }
.mp-status > div:nth-child(4) { border-left-color: var(--mp-lilac); }
.mp-help .helpc { --mp-c: var(--mp-violet); position: relative; border-color: var(--line-2); border-top: 4px solid var(--mp-c);
  background: var(--ink-2); }
@supports (color: color-mix(in srgb, red 50%, red)) {
  .mp-help .helpc { background: linear-gradient(180deg, color-mix(in srgb, var(--mp-c) 9%, var(--ink-2)), var(--ink-2) 55%); }
}
.mp-help .helpc:nth-child(6n+2) { --mp-c: var(--mp-gold); }
.mp-help .helpc:nth-child(6n+3) { --mp-c: var(--mp-mint); }
.mp-help .helpc:nth-child(6n+4) { --mp-c: var(--mp-lilac); }
.mp-help .helpc:nth-child(6n+5) { --mp-c: var(--mp-purple); }
.mp-help .helpc:nth-child(6n+6) { --mp-c: var(--mp-gold); }
.mp-help .helpc h3 { color: var(--fg); }
.mp-help .helpc ol li::marker { color: var(--mp-c); font-weight: 700; }
.mp-help .helpc:target { border-color: var(--mp-c); box-shadow: 0 0 0 1px var(--mp-c); }
.mp-help .helpc b { color: var(--fg); }
.mp-parents { padding: clamp(20px, 3vw, 28px); border: 1px solid rgba(255, 210, 63, .35); border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(255, 210, 63, .07), var(--ink-2) 60%); }
.mp-parents .prose strong { color: var(--mp-gold); }
.mp-parents .prose a { color: var(--mp-violet); }

/* ---------- rules + legal: consistent doc layout ---------- */
.mp-doc .prose h2 { --mp-c: var(--mp-violet); display: flex; align-items: center; gap: 12px; color: var(--fg); }
.mp-doc .prose h2::before { content: ""; flex: none; width: 12px; height: .95em; border-radius: 2px; background: var(--mp-c); box-shadow: 3px 3px 0 var(--purple-deep); }
.mp-doc .prose h2:nth-of-type(4n+2) { --mp-c: var(--mp-gold); }
.mp-doc .prose h2:nth-of-type(4n+3) { --mp-c: var(--mp-mint); }
.mp-doc .prose h2:nth-of-type(4n+4) { --mp-c: var(--mp-lilac); }
.mp-doc .prose h3 { color: var(--mp-lilac); }
.mp-doc .prose strong { color: var(--fg); }
.mp-doc .prose a { color: var(--mp-violet); text-underline-offset: 3px; }
.mp-doc .prose a:hover { color: var(--mp-lilac); }
.mp-doc .prose li::marker { color: var(--mp-violet); }
.mp-doc .rules { border-color: var(--line-2); }
.mp-doc .rules .n { color: var(--mp-gold); }
.mp-callout { border-color: rgba(99, 246, 139, .45); border-left: 4px solid var(--mp-mint); background: linear-gradient(90deg, rgba(99, 246, 139, .08), #1F1631 60%); }
.mp-callout a { color: var(--mp-mint); font-weight: 600; }

/* table of contents */
.mp-toc { padding: 16px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--ink-2); }
.mp-toc p { color: var(--mp-lilac); }
.mp-toc a:hover, .mp-toc a:focus-visible { color: var(--fg); border-left-color: var(--mp-gold); background: var(--ink-3); }
.mp-toc--legal a { --mp-c: var(--mp-violet); display: flex; align-items: center; gap: 10px; }
.mp-toc--legal a::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 1px; background: var(--mp-c); }
.mp-toc--legal a:nth-of-type(4n+2) { --mp-c: var(--mp-gold); }
.mp-toc--legal a:nth-of-type(4n+3) { --mp-c: var(--mp-mint); }
.mp-toc--legal a:nth-of-type(4n+4) { --mp-c: var(--mp-lilac); }
@media (max-width: 959px) {
  .mp-toc { padding: 12px; }
  .mp-toc a { background: var(--ink); border-color: var(--line-2); }
}

/* ---- css-calm.css ---- */
/* ---- css-calm.css ---- */
/* Calm pass: less "generated" sheen. Appended after the v2 design files; every rule is scoped to the
   same page/component classes it overrides, at equal or higher specificity.
   Untouched on purpose: rank colours (.sheen-text, .gens-rc*, .rankstrip*, faction banners), logo wordmark
   sheen (.brand__accent, .footer__accent), the 2px nav line, pixel-art icons.
   No color-mix() here (iOS 15-16.1 drops the whole declaration, see the file header). */

/* ======================= 1. Gradient text ======================= */
/* One gradient accent per page at most: home hero, gems hero, FFA hero. Everything else is a solid colour. */

/* home: hero line keeps the static sheen; ranks heading and closing band go solid */
.home .hero__title-hi { animation: none; }
.home .rankhead__title .sheen-text { background: none; color: var(--purple-2); -webkit-text-fill-color: currentColor; }      /* #A07EFF on #0D0B14: 6.4:1 */
.home .band__in h2 { background: none; color: var(--fg); -webkit-text-fill-color: currentColor; }

/* gems: hero accent becomes a calm two-stop gradient; "Pick a pack" goes solid gold */
.gemshop .gemhero .gemhero__shine { background: linear-gradient(100deg, var(--gs-gold), var(--gs-lilac)); -webkit-background-clip: text; background-clip: text; animation: none; }
.gemshop .gemstore .gemhero__shine,
.gemshop #gemsTitle .gemhero__shine { background: none; color: var(--gs-gold); -webkit-text-fill-color: currentColor; }      /* 13:1 */

/* gens: five-stop rainbow title becomes its own solid gold fallback */
.phero--gens .gens-hero__title { background: none; color: #FFD23F; -webkit-text-fill-color: currentColor; }

/* FFA: keep the sheen, but never animate it (for everyone) */
.ffa-hero .ffa-hero__title, .ffa-hero__title { animation: none !important; background-position: 0 0; }

/* misc pages (vote, leaderboards, support, rules, legal): solid accent colour */
.mp-accent, .phero .mp-accent { background: none; color: var(--mp-c); -webkit-text-fill-color: currentColor; }
@media (forced-colors: active) {
  .home .rankhead__title .sheen-text, .home .band__in h2, .gemshop .gemhero .gemhero__shine, .gemshop .gemstore .gemhero__shine,
  .phero--gens .gens-hero__title, .mp-accent, .phero .mp-accent { color: CanvasText; -webkit-text-fill-color: CanvasText; background: none; }
}

/* ======================= 2. Glows, blurs, hero strips (about 40% strength) ======================= */
/* base heroes */
.hero::before { background: radial-gradient(closest-side, rgba(138, 75, 255, .11), transparent 72%); }
@media (min-width: 760px) {
  .hero .hero__mark::before { background: radial-gradient(closest-side, rgba(138, 75, 255, .11), transparent 72%); }
}
.hero .hero__logo { filter: drop-shadow(0 24px 40px rgba(75, 31, 184, .18)); }
@media (max-width: 979px) {
  .hero .hero__logo { filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .55)) drop-shadow(0 10px 34px rgba(138, 75, 255, .24)); }
}
.phero::before { background: radial-gradient(closest-side, rgba(138, 75, 255, .08), transparent 72%); }
.phero .phero__icon { filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, .9)) drop-shadow(0 0 28px rgba(138, 75, 255, .18)); }

/* home */
.home .hero::after { background: radial-gradient(closest-side at 50% 50%, rgba(143, 107, 255, .06), transparent 70%); }
.home .ip--hero { box-shadow: 0 0 0 4px rgba(143, 107, 255, .06), 0 14px 40px -14px rgba(255, 210, 63, .2); }
.home .ip--hero:hover { box-shadow: 0 0 0 4px rgba(255, 210, 63, .08), 0 16px 44px -12px rgba(255, 210, 63, .24); }
.home > section.band { background: var(--pat-field) 0 0 / 96px 96px, radial-gradient(70% 140% at 50% 100%, rgba(138, 75, 255, .12), transparent 70%), var(--store-2); }

/* gems */
.gemshop .gemhero { background:
    radial-gradient(60% 80% at 85% 30%, rgba(143, 107, 255, .11), transparent 70%),
    radial-gradient(35% 50% at 100% 0%, rgba(255, 210, 63, .05), transparent 70%),
    var(--gs-base); }
.gemshop .gemhero::after { display: none; }                       /* rainbow strip; the 1px border-bottom stays */
.gemshop .gemhero .gemhero__btn { box-shadow: 0 4px 0 #B8860B, 0 0 28px rgba(255, 210, 63, .14); }
.gemshop .gemstore { background: radial-gradient(50% 40% at 80% 0%, rgba(143, 107, 255, .05), transparent 70%), var(--gs-base); }
.gemshop .buychip::before { box-shadow: 0 0 3px var(--c); }
.gemshop .pack__gem { filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, .85)) drop-shadow(0 0 12px rgba(160, 126, 255, .22)); }
.gemshop .pack--best .pack__gem { filter: drop-shadow(2px 2px 0 #000) drop-shadow(0 0 16px rgba(255, 210, 63, .22)); }
.gemshop .pack--best .pack__tag { box-shadow: 0 0 12px rgba(255, 210, 63, .18); }

/* gens */
.phero--gens .gens-hero__glow { background:
    radial-gradient(38% 60% at 12% 18%, rgba(255, 210, 63, .10), transparent 70%),
    radial-gradient(40% 60% at 70% 95%, rgba(99, 246, 139, .064), transparent 70%),
    radial-gradient(34% 55% at 88% 12%, rgba(143, 107, 255, .08), transparent 70%); }
.phero.phero--gens { background:
    linear-gradient(180deg, rgba(13, 11, 20, 0) 60%, #0D0B14 100%),
    linear-gradient(135deg, rgba(255, 210, 63, .06), rgba(99, 246, 139, .03) 50%, rgba(143, 107, 255, .04)),
    #0D0B14; }
.phero--gens .gens-hero__icon { filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, .9)) drop-shadow(0 0 32px rgba(255, 210, 63, .22)); }
.phero--gens .gens-hero__bar span { box-shadow: 0 0 14px rgba(var(--rc-rgb), .22); }          /* rank colours unchanged, only the glow */
.gens-block--perks .gens-head h2::after { box-shadow: 0 0 16px rgba(99, 246, 139, .4); }
.gens-block--ranks .gens-head h2::after { box-shadow: 0 0 16px rgba(160, 126, 255, .4); }
.gens-block.gens-block--perks { background: radial-gradient(50% 45% at 0% 0%, rgba(99, 246, 139, .04), transparent 70%), radial-gradient(45% 45% at 100% 100%, rgba(255, 210, 63, .04), transparent 70%), #110E1B; }
.gens-block.gens-block--ranks { background: radial-gradient(50% 45% at 100% 0%, rgba(143, 107, 255, .06), transparent 70%), #0F0C1A; }
.compare.compare--gens { box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 18px 40px -24px rgba(143, 107, 255, .22); }
.compare__table--gens td.is-yes { text-shadow: 0 0 12px rgba(var(--rc-rgb), .18); }
main > section.band.band--gens { background:
    var(--pat-field) 0 0 / 96px 96px,
    radial-gradient(45% 120% at 15% 100%, rgba(255, 210, 63, .088), transparent 70%),
    radial-gradient(60% 140% at 50% 0%, rgba(143, 107, 255, .12), transparent 70%),
    var(--store-2); }

/* FFA */
.phero.ffa-hero { background:
  radial-gradient(60% 90% at 0% 0%, rgba(143, 107, 255, .12), transparent 62%),
  radial-gradient(50% 70% at 80% 100%, rgba(255, 210, 63, .05), transparent 60%),
  #0D0B14; }
.phero.ffa-hero::after { display: none; }                          /* rainbow strip; the 2px border-bottom stays */
.ffa-hero .ffa-hero__glow { opacity: .2; }
.ffa-hero .ffa-hero__icon { filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, .9)) drop-shadow(0 0 32px rgba(255, 210, 63, .18)); }
.pass.ffa-pass { background: radial-gradient(70% 120% at 100% 0%, rgba(143, 107, 255, .072), transparent 60%), radial-gradient(80% 140% at 0% 100%, rgba(255, 210, 63, .05), transparent 60%), #17112B !important; }
.ffa-coin .coinpack__img { filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, .85)) drop-shadow(0 0 18px rgba(255, 210, 63, .14)); }
.ffa-coin.coinpack--best .coinpack__img { filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, .85)) drop-shadow(0 0 28px rgba(255, 210, 63, .24)); }

/* misc pages */
.mp-hero { --mp-glow: rgba(143, 107, 255, .104); }
.mp-hero.mp-hero--vote { --mp-glow: rgba(255, 210, 63, .064); }
.mp-hero.mp-hero--lb { --mp-glow: rgba(255, 210, 63, .056); }
.mp-hero.mp-hero--support { --mp-glow: rgba(99, 246, 139, .052); }
.mp-hero.mp-hero--legal { --mp-glow: rgba(160, 126, 255, .08); }
.phero.mp-hero::after { display: none; }                            /* rainbow strip; the 1px border-bottom stays */
.mp-lbsoon { background: radial-gradient(60% 80% at 50% 100%, rgba(255, 210, 63, .05), transparent 70%), linear-gradient(180deg, #1C1533, var(--ink) 85%); }
.mp-lbsoon::before { height: 2px; background: var(--mp-gold); }

/* ======================= 3. Cards: 1px quiet border, smaller shadows, three accents per page ======================= */
/* Page accents become violet + gold + mint. Pink, sky and orange are dropped from decoration (not from ranks). */

/* home */
.home .herorank { border: 1px solid rgba(160, 126, 255, .22);
  background: radial-gradient(120% 160% at 100% 0%, rgba(160, 126, 255, .12), transparent 55%), radial-gradient(120% 160% at 0% 100%, rgba(255, 210, 63, .06), transparent 55%), linear-gradient(100deg, #2B1D55, #1E1640);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .45); }
.home .herorank:hover { box-shadow: 0 4px 0 rgba(0, 0, 0, .45), 0 18px 40px -16px rgba(160, 126, 255, .22); }
/* FFA mode card: pink -> violet, so the home page runs on violet / gold / mint */
.home .mode--ffa .mode__row { background: var(--pat-field) 0 0 / 96px 96px, radial-gradient(120% 140% at 0% 100%, rgba(160, 126, 255, .12), transparent 60%), radial-gradient(90% 120% at 100% 0%, rgba(255, 210, 63, .06), transparent 60%), linear-gradient(180deg, #1D1230, #15111F); }
.home .mode--gens .mode__row { background: var(--pat-field) 40px 20px / 96px 96px, radial-gradient(120% 140% at 0% 100%, rgba(99, 246, 139, .08), transparent 60%), linear-gradient(180deg, #121A26, #15111F); }
.home .mode.mode--ffa, .home a.mode--ffa { box-shadow: inset 0 3px 0 #A07EFF; }
.home .mode--ffa .mode__more { color: #B79CFF; }                    /* 7.6:1 on #15111F */
.home a.mode--ffa:hover { border-color: #A07EFF; }

/* gems */
.gemshop .pack { box-shadow: inset 0 1px 0 rgba(230, 220, 255, .06), 0 2px 8px rgba(0, 0, 0, .3); }
.gemshop .pack:hover { box-shadow: inset 0 1px 0 rgba(230, 220, 255, .08), 0 4px 12px rgba(0, 0, 0, .35), 0 0 24px rgba(143, 107, 255, .08); }
.gemshop .pack.pack--best {
  background:
    linear-gradient(135deg, rgba(255, 210, 63, .08), rgba(143, 107, 255, .1) 55%, rgba(13, 11, 20, 0)) padding-box,
    linear-gradient(#1C1530, #1C1530) padding-box,
    linear-gradient(120deg, var(--gs-gold), var(--gs-violet)) border-box;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 0 32px rgba(255, 210, 63, .09), 0 4px 12px rgba(0, 0, 0, .4); }
.gemshop .pack.pack--best:hover { box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 0 40px rgba(255, 210, 63, .13), 0 6px 16px rgba(0, 0, 0, .45); }
.gemshop .buychip.buychip--pink { --c: var(--gs-violet); }
.gemshop .buychip.buychip--sky { --c: var(--gs-mint); }
.gemshop .buychip.buychip--orange { --c: var(--gs-gold); }
.gemshop .howcur__item { border: 1px solid rgba(0, 0, 0, .55); }
.gemshop .howcur__item.howcur__item--coins { box-shadow: 0 3px 0 #9A6400, 0 12px 30px rgba(255, 170, 0, .08); }
.gemshop .howcur__item.howcur__item--gems { background: radial-gradient(80% 60% at 100% 0%, rgba(230, 220, 255, .12), transparent 70%), linear-gradient(150deg, #6B45F0 0%, #4B1FB8 60%, #2A1170 100%);
  box-shadow: 0 3px 0 #1A0A4A, 0 12px 30px rgba(143, 107, 255, .12); }

/* gens (rank colours in the tables are untouched) */
.gens-block--ranks .gens-head h2 { color: #A07EFF; }                  /* was sky; 6.3:1 on #0F0C1A */
.compare__table--gensranks thead th { color: #A07EFF; }
.gens-perks li:nth-child(6n+3) > svg, .gens-perks li:nth-child(6n+6) > svg { color: #A07EFF; }
.gens-perks li:nth-child(6n+4) > svg { color: #63F68B; }
.gens-perks li:nth-child(6n+5) > svg { color: #FFD23F; }

/* FFA: remap the decorative palette (sky/pink -> violet, orange -> gold); same selector list as the source */
.ffa-hero, .ffa-head, .ffa-fact, .ffa-event, .ffa-shelf, .ffa-coin, .ffa-steps li {
  --ffa-sky: #A07EFF; --ffa-pink: #A07EFF; --ffa-orange: #FFD23F;
}
.ffa-event.ffa-event--sky { --acc: #A07EFF; }
.ffa-shelf.ffa-shelf:nth-child(6n+5) { --acc: #A07EFF; }
.ffa-maps li:nth-child(4n+2)::before { background: #A07EFF !important; }
.ffa-maps li:nth-child(4n)::before { background: #63F68B !important; }
.ffa-fact, .ffa-steps li, .ffa-maps li, .ffa-event, .ffa-shelf, .ffa-coin { border: 1px solid rgba(160, 126, 255, .2) !important; }
.ffa-fact { box-shadow: inset 0 3px 0 var(--acc), 0 2px 0 rgba(0, 0, 0, .45); }
.ffa-steps li { box-shadow: inset 0 3px 0 var(--acc), 0 2px 0 rgba(0, 0, 0, .45); }
.ffa-maps li { box-shadow: 0 2px 0 rgba(0, 0, 0, .45); }
.ffa-maps .maps__perm { border: 1px dashed #63F68B !important; }
.ffa-event { box-shadow: inset 0 3px 0 var(--acc), 0 2px 0 rgba(0, 0, 0, .45); }
.ffa-shelf { box-shadow: inset 0 3px 0 var(--acc), 0 2px 0 rgba(0, 0, 0, .45); }
.ffa-coin { box-shadow: inset 0 3px 0 var(--acc), 0 2px 0 rgba(0, 0, 0, .45); }
.ffa-coin.coinpack--best { box-shadow: inset 0 3px 0 #FFD23F, 0 0 0 1px #FFD23F, 0 3px 0 #A87500, 0 0 40px rgba(255, 210, 63, .1); }
.ffa-faction { border: 1px solid rgba(160, 126, 255, .2) !important; border-top: 0 !important; box-shadow: 0 2px 0 rgba(0, 0, 0, .45); }
.ffa-faction.faction--free { box-shadow: 0 2px 0 #A87500 !important; }

/* ======================= 4. Decoration ======================= */
/* gem shop: floating gems, sparkles and halo go; the pixel gem icon in the copy column comes back on wide screens */
.gemshop .gemhero__spark, .gemshop .gemhero__halo { display: none; animation: none; }
@media (min-width: 900px) {
  .gemshop .gemhero .gemhero__art { display: none; }
  .gemshop .gemhero .gemhero__icon { display: block; }
  .gemshop .gemhero .gemhero__in { grid-template-columns: minmax(0, 1fr); }
}
/* home: the eye-glint sparkle over the raven logo */
.hero .hero__glint { display: none; animation: none; }

/* ======================= 5. Spacing: heroes 10% shorter on phones ======================= */
@media (max-width: 600px) {
  .hero { padding-top: 11px; padding-bottom: 43px; }                /* 12px / 48px */
  .phero { padding-block: 29px 32px; }                               /* 32px / 36px */
  .phero.phero--gens { padding-block: 36px 40px; }                   /* 40px / 44px */
}

/* Decorative looping motion removed (AI-look pass). Functional status dots and pings are unchanged. */
.hero__mark, .hero__art::before, .ffa-hero__title, .track i.end::after { animation: none !important; }
.hero__glint { display: none; }
/* ---- css-g1.css ---- */
/* ---- css-g1.css: home hero (logo block, headline, IP box, see-ranks) ----
   Append after css-calm. Every rule is scoped to main.home .hero and outranks the rule it replaces. */

/* 1. Headline: solid colour instead of gradient text. Line 1 violet, line 2 near-white with the gold "rank",
      so the two lines read as two steps instead of one shimmer. #A07EFF on #0D0B14 = 6.4:1. */
main.home .hero .hero__title-hi {
  background: none; color: #A07EFF; -webkit-text-fill-color: currentColor; animation: none;
}

/* 2. IP box = the one primary action: solid gold edge (matches its gold Copy button) instead of a
      violet-to-gold gradient border plus coloured halo; a flat drop like the other cards. */
main.home .hero .ip--hero {
  background: #08070C;
  border-color: rgba(255, 210, 63, .6);                 /* about 5.5:1 against the box, 5:1 against the page */
  box-shadow: 0 3px 0 rgba(0, 0, 0, .45);
}
main.home .hero .ip--hero:hover { border-color: var(--gold); box-shadow: 0 3px 0 rgba(0, 0, 0, .45); }
main.home .hero .ip--hero:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* 3. See ranks = clearly secondary: plain outline in neutral lilac, no violet fill, so it stops competing with the IP. */
main.home .hero .hero__ranks {
  background: transparent; color: var(--fg);
  border-color: rgba(230, 220, 255, .42);              /* 3:1 on #0D0B14 */
}
main.home .hero .hero__ranks:hover { background: rgba(230, 220, 255, .06); border-color: var(--purple-3); color: #fff; }
@media (prefers-reduced-motion: reduce) {
  main.home .hero .hero__ranks span, main.home .hero .hero__ranks:hover span { transition: none; transform: none; }
}

/* 4. Calmer background: drop the leftover bottom-left colour blob and halve the halo behind the logo. */
main.home .hero::after { content: none; }
main.home .hero::before { background: radial-gradient(closest-side, rgba(138, 75, 255, .07), transparent 72%); }
@media (min-width: 760px) {
  main.home .hero .hero__mark::before { background: radial-gradient(closest-side, rgba(138, 75, 255, .07), transparent 72%); }
}
main.home .hero .hero__logo { filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .45)); }
@media (max-width: 979px) {
  main.home .hero .hero__logo { filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .55)) drop-shadow(0 10px 30px rgba(138, 75, 255, .14)); }
}

/* 5. Logo no longer overlaps the server card (was margin-bottom: -12px). The floor shadow belonged to the
      old floating animation; with the logo static it is just a smudge, so it goes too. Phones keep their own layout. */
@media (min-width: 760px) {
  main.home .hero .hero__mark { margin-bottom: 4px; }
  main.home .hero .hero__art::before { content: none; }
}

/* ---- css-g2.css ---- */
/* ---- css-g2.css ---- */
/* Home page, lower sections: modes, ranks header + ladder, gem/coin teasers.
   Load after styles.css. Every rule is scoped to main.home, one step more specific than the rule it overrides.
   No colour-mix(), no new animation, no layout order or size changes below 760px. Rank colours untouched. */

/* ---------- 1. Modes: one feature card instead of two identical ones ---------- */
/* Desktop: Unstable FFA (the flagship, longest copy) gets the wider column; the "next" row uses the same
   columns so City/Prisons line up under the cards above. Tablet and phone keep the existing layout. */
@media (min-width: 980px) {
  main.home .modes--main,
  main.home .modes--next { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  main.home .modes--main .mode--ffa h3 { font-size: 1.85rem; }
  main.home .modes--main .mode--ffa .mode__row { min-height: 172px; }
}

/* Live and upcoming read as two tiers: a little more air than the 12px card gap. */
main.home .modes--next { margin-top: 20px; }

/* One accent signal per card: the tinted banner and the coloured "Explore" link stay; the 3px top stripe goes. */
main.home .mode.mode--ffa,
main.home .mode.mode--gens,
main.home a.mode.mode--ffa,
main.home a.mode.mode--gens { box-shadow: none; }

/* Hover outline at ~60% strength: the card still answers the pointer without a neon frame. */
main.home a.mode.mode--ffa:hover { border-color: rgba(160, 126, 255, .6); }
main.home a.mode.mode--gens:hover { border-color: rgba(99, 246, 139, .55); }

/* The lift is motion: drop it for reduced-motion users (the border change still shows hover). */
@media (prefers-reduced-motion: reduce) {
  main.home a.mode:hover { transform: none; }
}

/* ---------- 2. Ranks header: a legend, not a row of pills ---------- */
/* The decorative strip (aria-hidden) becomes plain rank-coloured names, like a Minecraft tab list.
   Text colours (the rank colours) are unchanged; only the boxes around them go, so the headline leads. */
main.home .rankstrip { gap: 4px 16px; margin-top: 2px; }
main.home .rankstrip__item,
main.home .rankstrip__item.rankstrip__item--sheen { padding: 0; background: none; border: 0; }

/* Ladder: the selected tile is already marked by its 2px purple ring and darker face;
   the 30px halo was decoration. Same shadow list, glow cut to a soft edge. */
main.home .ladder .step[aria-checked="true"],
main.home .ladder .step[aria-checked="true"]:hover {
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .12), inset 0 0 0 2px var(--purple-2), 0 4px 0 var(--side), 0 4px 0 2px var(--edge), 0 0 18px -8px rgba(138, 75, 255, .45);
}

/* ---------- 3. Teasers: gems leads, coins supports ---------- */
/* Both cards had the same frame, tint, shadow and top stripe. Gems (the section's h2) keeps its tinted
   surface; the coin card becomes a quiet panel so the eye lands on one card first. */       /* top stripes: the eyebrow colour already names each card */
/* contrast on #14111D: body #BDB6CC 9.6:1, gold-hi #FFE07A 14:1, gold eyebrow #FFD23F 12.7:1 */

/* ---- css-g3.css ---- */
/* ---- css-g3.css: header + footer calm pass. Append after styles.css. Scoped to .nav / .footer only. ---- */

/* ===== Header ===== */

/* 1. Drop the rainbow 2px underline; the base 1px var(--line) border still appears on scroll / open. */
.nav::after { display: none; }

/* 2. Wordmark: "NETWORK" in one solid brand purple instead of gradient text (#A07EFF on #0D0B14 = 6.4:1). */
.nav .brand__accent { background: none; color: var(--purple-2); -webkit-text-fill-color: currentColor; }

/* 3. Active desktop link: plain solid 2px purple underline, no gradient and no drop shadow; text stays lilac (15:1). */
.nav .nav__links a[aria-current="page"]::after { height: 2px; bottom: 2px; background: var(--purple-2); box-shadow: none; }

/* 4. Ranks CTA keeps the gold block (it is the pay action); hover lift removed so it no longer jumps beside flat links. */
.nav .nav__links a.nav__cta:hover { transform: none; box-shadow: 0 3px 0 var(--gold-side, #B8860B); }

/* 5. Mobile menu (behaviour untouched): row chevrons/arrows muted so the labels lead; active bar already solid, left as is. */
.nav .mnav a > span[aria-hidden="true"] { color: var(--muted); }                 /* #9A92AD on #0D0B14 = 6.5:1 */
.nav .mnav a.mnav__cta > span[aria-hidden="true"] { color: #FFD23F; }          /* Ranks row keeps its gold */

/* ===== Footer ===== */

/* 6. Remove the glowing rainbow band; the pixel-dither seam already marks the section change. */
.footer .footer__band { display: none; }

/* 7. Footer wordmark matches the header: solid purple, no gradient text. */
.footer .footer__accent { background: none; color: var(--purple-2); -webkit-text-fill-color: currentColor; }

/* 8. Column heads in one colour (purple, 6.4:1) instead of purple/gold/mint, so no column looks more important. */
.footer .footer__col h3,
.footer .footer__col:nth-child(3) h3,
.footer .footer__col:nth-child(4) h3 { color: var(--purple-2); margin-bottom: 6px; }

/* 9. Even link rhythm: fixed line-height so every row is the same height, a little more air between rows. */
.footer .footer__col { row-gap: 8px; }
.footer .footer__col a { line-height: 1.5; padding-block: 2px; }

/* 10. Legal line: neutral divider (was purple-tinted) and the copyright sits on the disclaimer's baseline. */
.footer .footer__legal { border-top-color: var(--line); align-items: baseline; }
.footer .footer__legal p:first-child { font-size: .8125rem; letter-spacing: .02em; }  /* all-caps disclaimer reads less shouty; muted 6.5:1 */

/* ---- css-g4.css ---- */
/* ---- css-g4.css ---- */
/* Unstable FFA page (src/pages/ffa.mjs), graphics pass. Layers after css-calm.css in styles.css.
   Every selector uses an .ffa-* class that only exists on this page. Rank banner colours (--fc) are untouched.
   No new animation; no color-mix() (iOS 15-16.1). */

/* ===== Hero: calmer ===== */
/* Gradient-clipped title becomes solid lilac: one clear headline, no sheen (#E6DCFF on #0D0B14 is about 15:1). */
.ffa-hero h1.ffa-hero__title { background: none; color: #E6DCFF; -webkit-text-fill-color: currentColor; }
/* Faded graph-paper grid behind the hero is stock decoration; the plain dark field reads cleaner. */
.ffa-hero .ffa-hero__glow { display: none; }
/* Sword icon keeps its hard pixel shadow but drops the gold halo. */
.ffa-hero .ffa-hero__icon { filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, .9)); }
/* Three gradient fact tiles become the base open stat row: big coloured number over a thin rule, no boxes. */
.ffa-facts .ffa-fact {
  padding: 12px 0 0 !important; border: 0 !important; border-top: 2px solid rgba(230, 220, 255, .16) !important;
  border-radius: 0; background: none; box-shadow: none;
}

/* ===== Section headings: one marker, not two ===== */
/* The left bar already marks each heading; the gradient underline under the h2 doubled it. */
.ffa-head h2::after { content: none; }
/* Left bar goes solid (no fade-to-dark gradient). */
.ffa-head::before { background: var(--acc); }

/* ===== Steps: a numbered sequence, not four identical cards ===== */
ol.ffa-steps { column-gap: 28px; }
ol.ffa-steps li {
  padding: 18px 0 0; border: 0 !important; border-top: 2px solid rgba(230, 220, 255, .14) !important;
  border-radius: 0; background: none !important; box-shadow: none;
}
/* One number colour for the whole sequence (dark text on #A07EFF is about 6:1). */
ol.ffa-steps li::before { background: #A07EFF !important; color: #0D0B14 !important; }

/* ===== Clan ranks ===== */
/* Four ranks in a 3-column grid left one orphan; 2 x 2 keeps the ladder in even rows. */
.factions.ffa-factions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* These tiles are not links, so they no longer lift on hover. */
.ffa-factions .ffa-faction:hover { transform: none; }

/* ===== Maps: colour only where it means something ===== */
/* The cycling mint/violet/gold dots were decoration; all map dots go quiet, the permanent arena keeps mint. */
.ffa-maps li:not(.maps__perm)::before,
.ffa-maps li:nth-child(n):not(.maps__perm)::before { background: rgba(230, 220, 255, .28) !important; box-shadow: none; }
/* The permanent arena is the 10th item, so the old 4n+2 rule painted its dot violet against its mint border. */
.ffa-maps li.maps__perm::before { background: #63F68B !important; }

/* ===== Events ===== */
/* Corner glow on every card removed; the 3px top accent already identifies each event. */
.ffa-events .ffa-event { background: #14111D !important; }
/* Titles go to the body colour so only Overdrive (the headline event) keeps a coloured title. */
.ffa-events .ffa-event h3 { color: #EEEAF6; }
.ffa-events .ffa-event--gold h3 { color: #FFD23F; }

/* ===== Cosmetic shelves: one rhythm, not a rainbow ===== */
/* Six cycling tints made seven equal tiles shout; flat tiles, lilac numbers, the biggest shelf in gold. */
.ffa-shelves .ffa-shelf { background: #14111D !important; box-shadow: inset 0 2px 0 rgba(160, 126, 255, .45), 0 2px 0 rgba(0, 0, 0, .45); }
.ffa-shelves .ffa-shelf b { color: #E6DCFF; }
.ffa-shelves .ffa-shelf:first-child { box-shadow: inset 0 2px 0 #FFD23F, 0 2px 0 rgba(0, 0, 0, .45); }
.ffa-shelves .ffa-shelf:first-child b { color: #FFD23F; }

@media (forced-colors: active) {
  .ffa-hero h1.ffa-hero__title { color: CanvasText; -webkit-text-fill-color: CanvasText; }
  ol.ffa-steps li, .ffa-facts .ffa-fact { border-top-color: CanvasText !important; }
}

/* ---- css-g5.css ---- */
/* ---- css-g5.css ---- */
/* Gens page (src/pages/gens.mjs): calmer tables, fewer glows, phone fit.
   Load after styles.css. Rank colours (--rc, .gens-rc--*, sheen) are not changed. No animation added. */

/* ---------- Hero ---------- */
/* Pixel icon keeps its hard pixel shadow; the soft gold halo goes (glow-behind-icon look). */
.phero.phero--gens .gens-hero__icon { filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, .9)); }
/* Rank strip: solid swatches read as a key, not neon. */
.phero.phero--gens .gens-hero__bar span { box-shadow: none; }

/* ---------- Section heads ---------- */
/* Keep the short accent bar under each h2, drop its glow. */
section.gens-block .gens-head h2::after { box-shadow: none; }

/* ---------- Every-mode perks list ---------- */
/* One tick colour (the card's mint) instead of a six-colour cycle that implied meaning it does not have. */
.gens-card--mint .gens-perks li:nth-child(n) > svg { color: #63F68B; }

/* ---------- Table frames ---------- */
/* Plain drop edge instead of a purple under-glow. */
.gens-block .compare.compare--gens { box-shadow: 0 2px 0 rgba(0, 0, 0, .45); }

/* ---------- Gens perks table ---------- */
/* Header: flat low tint + the existing rank-colour top bar, so the rank colour lives in one clear place. */
.compare--gens .compare__table--gens thead th.gens-rc { background: rgba(var(--rc-rgb), .08); }
.compare--gens .compare__table--gens thead th.gens-rc--ravenplus { background: rgba(230, 220, 255, .06); }

/* Body: neutral values on one quiet row stripe; no per-column wash stacked on the zebra. */
.compare--gens .compare__table--gens td.gens-rc { background: transparent; color: var(--fg); font-weight: 500; }   /* #EEEAF6 on #14111D: 15.9:1 */
.compare--gens .compare__table--gens tbody tr:nth-child(even) td.gens-rc { background: rgba(230, 220, 255, .03); }
.compare--gens .compare__table--gens tbody tr:nth-child(even) th:first-child { background: #1A1724; }              /* opaque match for the stripe under the sticky column */
/* "Yes" keeps its rank colour (it marks what the rank unlocks), without the text glow. */
.compare--gens .compare__table--gens td.gens-rc.is-yes { color: var(--rc); text-shadow: none; }                    /* lowest: PRO #5B8CFF at 5.6:1 */
.compare--gens .compare__table--gens td.gens-rc.no { color: var(--muted); font-weight: 400; }                    /* 6.2:1 */
/* Hover: a column-coloured tint so the row is easy to follow across eight columns. */
.compare--gens .compare__table--gens tbody tr:hover td.gens-rc { background: rgba(var(--rc-rgb), .10); }

/* ---------- Phones ---------- */
@media (max-width: 600px) {
  /* Less sideways scroll: 880px floor was wider than the content needs; cells still grow if a word needs it. */
  .compare--gens .compare__table--gens { min-width: 680px; }
  .compare--gens .compare__table--gens th,
  .compare--gens .compare__table--gens td { padding: 10px; }
  /* Ranks at a glance fits the screen; tighter cells give the perks text more room before it wraps. */
  .compare--gens .compare__table--gensranks th,
  .compare--gens .compare__table--gensranks td { padding: 10px; }
}

/* ---- css-g6.css ---- */
/* css-g6: Gem Shop packs, "What gems buy" chips, "How coins and gems work", FFA coin packs.
   CSS only. Scoped to main.gemshop and .ffa-coins. Does not touch any .btn rule (the highlighted
   pack's Add button contrast belongs to another worker). No new animation. */

/* ---------- Gem pack cards: flat card, no purple wash or glow ---------- */
/* Flat surface reads calmer and more premium than the diagonal purple wash. */
main.gemshop .pack { background: var(--gs-card); border-color: rgba(160, 126, 255, .24);
  box-shadow: inset 0 1px 0 rgba(230, 220, 255, .05), 0 2px 0 rgba(0, 0, 0, .45); }
/* Hover: border brightens, no coloured halo. */
main.gemshop .pack:hover { background: #1A1526; border-color: rgba(160, 126, 255, .55);
  box-shadow: inset 0 1px 0 rgba(230, 220, 255, .07), 0 3px 0 rgba(0, 0, 0, .5); }
/* Pixel gem keeps its hard shadow only; the soft purple glow was decoration. */
main.gemshop .pack .pack__gem { filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, .85)); }
/* Price emphasis: white, a step larger, tabular digits so prices line up down the list. */
main.gemshop .pack .pack__price { font-size: 1.375rem; color: #FFF; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
main.gemshop .pack .pack__num { font-variant-numeric: tabular-nums; }

/* ---------- Best value: solid gold edge instead of gradient border + glow ---------- */
main.gemshop .pack.pack--best { border: 2px solid rgba(255, 210, 63, .8);
  background: linear-gradient(180deg, rgba(255, 210, 63, .07), rgba(255, 210, 63, 0) 70%), #1C1530;
  box-shadow: inset 0 1px 0 rgba(255, 236, 170, .12), 0 3px 0 #000; }
main.gemshop .pack.pack--best:hover { border-color: #FFD23F; background: linear-gradient(180deg, rgba(255, 210, 63, .09), rgba(255, 210, 63, 0) 70%), #201838;
  box-shadow: inset 0 1px 0 rgba(255, 236, 170, .14), 0 4px 0 #000; }
main.gemshop .pack.pack--best .pack__gem { filter: drop-shadow(2px 2px 0 #000); }
/* Tag: solid gold label, no gradient, no glow (#1A1033 on #FFD23F is 13:1). */
main.gemshop .pack.pack--best .pack__tag { background: #FFD23F; color: #1A1033; box-shadow: 1px 1px 0 #000; }
main.gemshop .pack.pack--best .pack__price { color: #FFD23F; }                 /* 12:1 on #1C1530 */
@media (forced-colors: active) { main.gemshop .pack.pack--best { border-color: Highlight; } }

/* "Best value" sentence above the list: plain gold edge, not a gold-to-violet gradient border. */
main.gemshop .gempage__best { border: 1px solid rgba(255, 210, 63, .45); background: #1C1530; }

/* ---------- "What gems buy" chips: neutral chips, gold kept for RavenPass ---------- */
/* One neutral surface for every chip so the row stops looking like a candy strip. */
main.gemshop .buys--chips .buychip { background: #15111F; border-color: rgba(160, 126, 255, .22); border-radius: 8px; color: #EDE8F7; }
/* Drop the diamond marker on ordinary chips (icon on every item); RavenPass keeps it. */
main.gemshop .buys--chips .buychip::before { display: none; }
main.gemshop .buys--chips .buychip--gold::before { display: block; background: #FFD23F; box-shadow: none; }
/* Price becomes coloured text, not a filled pill: lilac 13:1 on #15111F. */
main.gemshop .buys--chips .buychip .mono { background: none; color: #E6DCFF; padding: 2px 2px 2px 4px; font-variant-numeric: tabular-nums; }
/* RavenPass row stays the one gold chip so it reads as the headline item. */
main.gemshop .buys--chips .buychip--gold { background: #221C14; border-color: rgba(255, 210, 63, .5); }
main.gemshop .buys--chips .buychip--gold .mono { color: #FFD23F; }            /* 11:1 on #221C14 */

/* ---------- How coins and gems work: calmer colour blocks ---------- */
/* Coins: two-stop gold instead of yellow-to-orange, and no orange glow (#24180A on #F2B705 is 10:1). */
main.gemshop .howcur__item.howcur__item--coins { background: linear-gradient(160deg, #FFD23F, #F2B705); box-shadow: 0 3px 0 #9A6400; }
/* Gems: plain two-stop purple, no radial highlight or glow (#F4F0FF on #5A35D8 is 6.6:1). */
main.gemshop .howcur__item.howcur__item--gems { background: linear-gradient(160deg, #5A35D8, #2E1478); box-shadow: 0 3px 0 #1A0A4A; }

/* ---------- FFA coin packs (ffa.html): sizes and best value ---------- */
/* Smallest coin was lost in the 136px header band; tighter 72/92/112 steps still show the size order. */
.ffa-coins .coinpack__img--s { width: 72px; height: 72px; }
.ffa-coins .coinpack__img--m { width: 92px; height: 92px; }
.ffa-coins .coinpack__img--l { width: 112px; height: 112px; }
/* Coins keep their hard pixel shadow; the gold glow behind each one was decoration. */
.ffa-coins .ffa-coin .coinpack__img { filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, .85)); }
.ffa-coins .ffa-coin.coinpack--best .coinpack__img { filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, .85)); }
/* Best value: gold ring and gold top edge do the work, without the 40px halo. */
.ffa-coins .ffa-coin.coinpack--best { box-shadow: inset 0 3px 0 #FFD23F, 0 0 0 1px #FFD23F, 0 3px 0 #A87500; }
/* Prices line up across the row. */
.ffa-coins .ffa-coin .pack__price { font-variant-numeric: tabular-nums; }

/* ---- css-g7.css ---- */
/* g7: vote page (.mp-vsites, .mp-rewards) + leaderboards pre-launch panel (.mp-lbsoon). Load after styles.css. */

/* ---------- vote sites: one calm list, colour only for state ---------- */
/* One accent for every row instead of a 4-colour rainbow cycle; position is already shown by the number. */
#vsites.mp-vsites .vsite,
#vsites.mp-vsites .vsite:nth-child(n) { --mp-c: var(--mp-violet); background: var(--ink-2); border-color: var(--line-2); }
/* Drop the coloured side stripe on unvoted rows; it now appears only on voted rows, so it means "done". */
#vsites.mp-vsites .vsite::before { background: transparent; }
#vsites.mp-vsites .vsite.is-done::before { background: var(--mp-mint); }
/* Neutral number tile (lilac on dark, ~13:1) instead of a solid coloured block on every row. */
#vsites.mp-vsites .vsite__n { background: var(--ink-3); color: var(--mp-lilac); }
/* Hover: violet border only; no lift, so the list stays still. */
#vsites.mp-vsites .vsite:hover { border-color: var(--mp-violet); transform: none; }
/* Voted state keeps the mint signal (unchanged meaning), now the only colour in the list. */
#vsites.mp-vsites .vsite.is-done { border-color: rgba(99, 246, 139, .55); }
#vsites.mp-vsites .vsite.is-done .vsite__n { background: var(--mp-mint); color: #0D0B14; }
/* Placeholder row stays dashed and quiet. */
#vsites.mp-vsites .vsite--soon { background: transparent; border-color: var(--line-2); }

/* ---------- rewards: calm cards, gold kept for the monthly prize only ---------- */
/* Flat card background, 1px border instead of a thick coloured cap and tinted gradient. */
.mp-rewards .mp-reward { background: var(--ink-2); border: 1px solid var(--line-2); }
/* Labels share one colour (lilac, AA on ink-2) so the reward text, not the colour, carries the hierarchy. */
.mp-rewards .mp-reward h3 { color: var(--mp-lilac); }
/* The monthly top-voter card is the one highlight: thin gold top rule, gold label and list numbers. */
.mp-rewards .mp-reward--gold { border-top: 2px solid var(--mp-gold); }
.mp-rewards .mp-reward--gold h3 { color: var(--mp-gold); }
.mp-rewards .mp-reward--gold ol li::marker { color: var(--mp-gold); }

/* ---------- leaderboards "go live" panel: plain, not decorative ---------- */
/* Flat surface: no gold radial glow, no purple gradient, normal panel border. */
.lb__panel.mp-lbsoon { background: var(--ink-2); border-color: var(--line-2); }
/* Remove the top accent strip; the panel border is enough. */
.lb__panel.mp-lbsoon::before { display: none; }
/* Podium bars become simple muted outlines; only the winner bar keeps gold, so it reads as a podium, not confetti. */
.lb__panel.mp-lbsoon .mp-lbsoon__art span { background: var(--ink-3); border: 1px solid var(--line-2); box-shadow: none; }
.lb__panel.mp-lbsoon .mp-lbsoon__art span:nth-child(2) { background: var(--mp-gold); border-color: var(--mp-gold); }

/* ---- css-g8.css ---- */
/* ---- css-g8.css: support, rules, legal (document pages) ---- */
/* Scoped to .mp-doc, .mp-toc, .mp-help, .mp-status, .mp-parents, .mp-callout. No animation added. */

/* Doc headings: one colour instead of a rotating rainbow, so the colour no longer implies a category. */
.mp-doc .prose h2,
.mp-doc .prose h2:nth-of-type(4n+2),
.mp-doc .prose h2:nth-of-type(4n+3),
.mp-doc .prose h2:nth-of-type(4n+4) { --mp-c: var(--mp-violet); }
/* Calmer heading scale: h2 a step down from 1.6rem so it reads as a section label, not a second page title. */
.mp-doc .prose h2 { font-size: clamp(1.3rem, 1.12rem + .6vw, 1.5rem); line-height: 1.25; }
/* Smaller pixel marker with no offset shadow: keeps the brand motif, drops the sticker look. */
.mp-doc .prose h2::before { width: 8px; height: .8em; box-shadow: none; }
/* h3 in plain foreground with weight: lilac was almost the same as body white and added no signal. */
.mp-doc .prose h3 { color: var(--fg); font-weight: 700; }

/* Readable line length (~70 characters) for the full-width rules list without narrowing the box. */
.mp-doc .rules p { max-width: 68ch; }
.mp-doc .prose p, .mp-doc .prose li { line-height: 1.65; }

/* Rules callout: flat panel with the mint edge only; the side gradient was decoration. */
.mp-doc .mp-callout { background: #1F1631; border-color: var(--line-2); border-left-color: var(--mp-mint); }

/* Legal TOC: remove the cycling coloured dots (they mapped to nothing); the left rule already marks each link. */
.mp-doc .mp-toc--legal a::before { content: none; }
.mp-doc .mp-toc--legal a { display: block; }

/* Help cards: one accent for all six cards and no tinted gradient, so the grid stops looking like a colour swatch. */
.mp-help .helpc,
.mp-help .helpc:nth-child(6n+2),
.mp-help .helpc:nth-child(6n+3),
.mp-help .helpc:nth-child(6n+4),
.mp-help .helpc:nth-child(6n+5),
.mp-help .helpc:nth-child(6n+6) { --mp-c: var(--mp-violet); }
.mp-help .helpc { background: var(--ink-2); border-top-width: 2px; }
/* The card a link jumps to (#report, #appeal...) gets the one colour cue that actually helps: mint, matching the support hero. */
.mp-help .helpc:target { --mp-c: var(--mp-mint); }

/* Server status tiles: neutral edges; four different colours suggested four states that do not exist. */
.mp-status > div,
.mp-status > div:nth-child(2),
.mp-status > div:nth-child(3),
.mp-status > div:nth-child(4) { border-left: 1px solid var(--line-2); }

/* Parents note: flat panel, gold kept on the border and lead-in labels where it aids scanning. */
.mp-parents { background: var(--ink-2); }
.mp-parents .prose li { line-height: 1.65; }

/* ---- css-g9.css ---- */
/* g9: global type + rhythm. Element selectors are prefixed with `body` (0,0,2) so they
   beat the bare h2/h3/p rules in styles.css whatever the load order, but still lose to any
   class-scoped heading rule (.phero h1, .band__in h2, .mode h3, .footer__col h3 ...). */

/* Calmer scale: section h2s drop from 800 to 700; hero/band titles keep their own heavier weights. */
body h2 { font-weight: 700; line-height: 1.1; }

/* h3 inherited body line-height 1.6, so two-line card titles looked loose; tighten to heading leading. */
body h3 { line-height: 1.25; }

/* Avoid one-word last lines in body copy (no layout change, progressive enhancement). */
body p { text-wrap: pretty; }

/* Section intro paragraphs could run ~95 characters wide inside the 760px head; cap at a readable measure. */
.section__head > p:not(.eyebrow) { max-width: 62ch; }

/* ---- css-g10.css ---- */
/* ---- css-g10.css: global components (buttons, chips, tags, fields, focus, toast) ----
   Meant to load after styles.css. Literal hex/rgba only (no color-mix(), see the styles.css header).
   Three button levels: primary = gold or purple block (.btn--primary, .btn--brand), secondary = outline (.btn--line), quiet = .btn--ghost / .link-btn. */

/* ===== 1. Buttons: calmer hover. The block press stays, the hover lift goes from 2px to 1px ===== */
.btn--primary:hover, .pack--hl .btn:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 2px 0 var(--gold-hi), inset 0 -3px 0 #E8B200, 0 5px 0 var(--gold-side), 0 5px 0 2px var(--edge);
}
/* purple block: hover goes darker (#7C4DFF, white text 4.8:1) instead of lighter (#9659FF was 4.3:1) */
.btn--brand:hover, .home .band .btn--line:hover {
  background: #7C4DFF; transform: translateY(-1px);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .22), 0 5px 0 var(--purple-deep), 0 5px 0 2px var(--edge);
}
.home .herorank:hover .herorank__btn { background: #7C4DFF; }
/* gem shop outline pack buttons filled #8F6BFF on hover (white text 4.0:1); same darker purple. Gold best/hl packs untouched */
.gemshop .pack:not(.pack--best):not(.pack--hl) .btn:hover { background: #7C4DFF; color: #fff; }

/* no hover motion at all for reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  .btn--primary:hover, .pack--hl .btn:hover, .btn--brand:hover, .home .band .btn--line:hover { transform: none; }
}

/* ===== 2. Focus rings ===== */
/* the global :focus-visible sets a 4px radius; keep buttons and fields at their own 6px so the shape does not jump on focus */
.btn:focus-visible, .field__input:focus-visible, .toast:focus-visible { border-radius: var(--r-sm); }
/* the toast ring sits outside the light card, on the dark page: lilac reads there (12:1 on #0D0B14) */
.toast:focus-visible { outline: 2px solid #E6DCFF; outline-offset: 3px; }

/* ===== 3. Chips: pills only for status, squarer tags for labels ===== */
/* status (Launches / Live now / Coming soon / network state) */
.chip--live, .chip--pre, .mode__top .chip, #stNetwork { border-radius: 999px; padding-inline: 10px; }
/* labels (event timing, boss, map rule, free starter) */
.ffa-event .chip, .maps__perm .chip, .chip--gold { border-radius: 2px; }

/* creator codes in the note under the ranks read as typed codes, not plain words */
.codenote .mono { padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 2px; background: var(--ink-2); color: var(--fg); font-size: .9em; white-space: nowrap; }

/* ===== 4. Form fields ===== */
/* placeholder #8C84A3: 5.5:1 on #0D0B14 (was #6E6784, 3.7:1) */
.field__input::placeholder { color: #8C84A3; opacity: 1; }
/* subtle hover: the frame brightens one step before focus takes over */
.field__wrap:hover:not(:focus-within), .field__input:hover:not(:focus) { border-color: #8C84A3; }   /* bare inputs inside a wrap have border: 0, so this is a no-op there */

@media (forced-colors: active) {
  .toast:focus-visible { outline-color: Highlight; }
  .codenote .mono { border-color: CanvasText; }
}

/* ---- css-fixes.css ---- */
/* ---- design review fixes (preview) ---- */
.gemshop .pack.pack--hl .btn { color: #1A1300; border-color: var(--edge); }
.gemshop .pack.pack--hl .btn:hover { background: #FFDA55; color: #1A1300; }
@media (max-width: 480px) { .ffa-coin .pack__price, .ffa-coin .btn { grid-column: 1; grid-row: auto; } }
@media (max-width: 600px) {
  .compare__table--gens { min-width: 100%; width: max-content; }
  .compare__table--gens tbody th:first-child { min-width: 0; }
  .compare__table--gens th:first-child { width: 8em; }
  .compare__table--gens th, .compare__table--gens td { padding-inline: 9px; }
}
.ffa-coin .pack__tag { position: absolute; top: 12px; right: 12px; margin: 0; background: var(--acc); color: #0D0B14; }
/* ---- store sale banner (30 days, 20% off) ---- */
.saleband { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; padding: 12px 16px; background: #15111F; border-bottom: 1px solid rgba(255, 210, 63, .35); text-align: center; }
.saleband p { margin: 0; color: #FFD23F; font-size: .95rem; }
.saleband strong { color: #FFD23F; }
.saleband .btn { min-height: 40px; }
/* ---- launch audit fixes (preview) ---- */
/* Earned ranks block on the home page (MEDIA). Never sold, so no price, basket or ladder styling. */
.earned__card { display: grid; gap: 0; border: 2px solid var(--edge); border-radius: var(--r-md); background: var(--ink-2); overflow: hidden; }
.earned__about, .earned__perks { padding: clamp(20px, 3vw, 32px); display: grid; gap: 14px; align-content: start; min-width: 0; }
.earned__about { border-bottom: 2px solid var(--edge); background: linear-gradient(180deg, #1C1533, var(--ink-2) 80%); }
.earned__perks { gap: 22px; }
.earned__tag { color: #E6DCFF; }
.earned__pitch { margin: 0; font-size: 1.05rem; color: var(--fg); }
.earned__how { margin: 0; color: var(--fg-2); }
.earned__apply { justify-self: start; }
.earned__cos { margin: 0; color: var(--fg-2); }
@media (min-width: 940px) { .earned__card { grid-template-columns: 420px minmax(0, 1fr); } .earned__about { border-bottom: 0; border-right: 2px solid var(--edge); } }
@media (max-width: 440px) { .earned__apply { width: 100%; } }

/* Header stays one row on small phones (360-400px): smaller logo, tighter gaps and wordmark. */
@media (max-width: 400px) {
  .nav__in { column-gap: 10px; }
  .brand { gap: 6px; }
  .brand__logo { width: 36px; height: 36px; }
}
@media (min-width: 360px) and (max-width: 400px) { .brand__word { font-size: .85rem; letter-spacing: .07em; } }
/* Phones: basket and menu buttons are 44x44 tap targets even with a fine pointer (touch already gets 44px above). Discord is hidden here. */
@media (max-width: 30em) { #basketBtn, #menuBtn { min-width: 44px; min-height: 44px; } }

/* Compare table, tablet widths: all seven rank columns fit without hidden columns. */
@media (min-width: 761px) and (max-width: 959px) {
  .compare__table:not(.compare__table--pair) { min-width: 0; font-size: .82rem; }
  .compare__table:not(.compare__table--pair) th, .compare__table:not(.compare__table--pair) td { padding: 10px 6px; }
  .compare__table:not(.compare__table--pair) td { font-size: .8rem; }
}
/* Phone two-rank compare: no 6px sideways scroll at 360px (first column could not shrink below 11em). */
@media (max-width: 760px) {
  .compare__table--pair tbody th:first-child { min-width: 0; }
  .compare__table--pair th, .compare__table--pair td { padding-inline: 10px; }
}
/* Edge shadow while more of a table is off to the right (scrolls away at the end). Works without JS. */
.compare__scroll {
  background:
    linear-gradient(to left, var(--ink-2) 40%, rgba(20, 17, 29, 0)) right center / 32px 100% no-repeat local,
    linear-gradient(to left, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)) right center / 18px 100% no-repeat scroll;
  background-color: var(--ink-2);
}

/* Tap targets: at least 44px tall for every pointer, not only touch. */
.btn--sm, .pack--hl .btn { min-height: 44px; }
.seg__opt, .seg--sm .seg__opt { min-height: 44px; }
.joinhelp__tab, .joinhelp__copy { min-height: 44px; }
.footer .footer__col { row-gap: 0; }
.footer .footer__col a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
@media (min-width: 960px) { .toc a { display: flex; align-items: center; min-height: 44px; } }
/* Inline text buttons ("See the full list") keep their line; an invisible layer makes the tap area 44px tall. */
.rank__inherit .link-btn { position: relative; }
.rank__inherit .link-btn::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 44px; transform: translateY(-50%); }

/* ---------- Price display: USD first, the Tebex store's currency as an opt-in second line ---------- */
.curtoggle { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.curtoggle__label { font-size: .85rem; color: var(--fg-2); }
.cur-alt { display: block; margin-top: 4px; font: 500 .75rem/1.3 var(--f-body); color: var(--fg-2); white-space: normal; letter-spacing: 0; }
.cur-approx { font: 500 .7em var(--f-body); color: var(--fg-2); }
.rank__alt { margin-top: -4px; }
.buybar__alt { margin-top: 0; }
.pack__cur { font: 500 .7rem var(--f-body); color: var(--muted); }
.compare__table th .cur-alt { font-weight: 400; }
.gempage__gift { margin: 0; text-align: center; }
.coinpacks__fine { margin-top: 12px; font-size: .875rem; color: var(--muted); text-align: center; }

/* Bundles on the gem shop page use the store cards (.sbundle*, further down). */
.bundles .gempage__fine { margin-top: 12px; }

/* ---- css-color-v1: vibrancy pass (preview) ----
   Colour only: gradients, glows, borders and hover colours. No layout, type, motion or markup changes.
   Brand hexes stay fixed (#8A4BFF, #A07EFF, #E6DCFF, #FFD23F): they match the in-game RAVEN / RAVEN+ prefixes
   (build.mjs SHEEN_STOPS), config.js rank colours and the Tebex checkout colour. Literal hex/rgba only (no color-mix()). */

/* 1. Gold block (pay / join): a lit-from-above gold gradient and a warm glow on hover. #1A1300 text: 11.4:1 at the darkest stop. */
.btn--primary, .pack--hl .btn { background: linear-gradient(180deg, #FFE15C 0%, #FFD23F 48%, #FFC21F 100%); }
.btn--primary:active, .pack--hl .btn:active { background: linear-gradient(180deg, #FFE670 0%, #FFD94F 48%, #FFC933 100%); }
.btn--primary:hover:not(:disabled):not(:active), .pack--hl .btn:hover:not(:disabled):not(:active) {
  background: linear-gradient(180deg, #FFE670 0%, #FFD94F 48%, #FFC933 100%);
  box-shadow: inset 0 2px 0 var(--gold-hi), inset 0 -3px 0 #E8B200, 0 5px 0 var(--gold-side), 0 5px 0 2px var(--edge), 0 8px 26px -6px rgba(255, 210, 63, .55);
}
.gemshop .pack.pack--hl .btn:hover { background: linear-gradient(180deg, #FFE670 0%, #FFD94F 48%, #FFC933 100%); }
.ip__action { background: linear-gradient(180deg, #FFE15C 0%, #FFD23F 48%, #FFC21F 100%); }
.nav .nav__links a.nav__cta { background: linear-gradient(180deg, #FFE15C 0%, #FFD23F 48%, #FFC21F 100%); }
.nav .nav__links a.nav__cta:hover { background: linear-gradient(180deg, #FFE670 0%, #FFD94F 48%, #FFC933 100%); box-shadow: 0 3px 0 var(--gold-side, #A87500), 0 6px 20px -6px rgba(255, 210, 63, .55); }

/* 2. Purple block (brand action): purple-to-magenta instead of flat purple; hover deepens and glows.
      White text: 4.6:1 at the lightest stop (#8A4BFF), 4.8:1 at #A23DE6; hover 4.8-5.5:1. */
.btn--brand, .home .band .btn--line, .home .herorank__btn { background: linear-gradient(135deg, #8A4BFF 0%, #A23DE6 100%); }
.btn--brand:active, .home .band .btn--line:active { background: linear-gradient(135deg, #7C4DFF 0%, #9634D9 100%); }
.btn--brand:hover:not(:active), .home .band .btn--line:hover:not(:active) {
  background: linear-gradient(135deg, #7C4DFF 0%, #9634D9 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .22), 0 5px 0 var(--purple-deep), 0 5px 0 2px var(--edge), 0 8px 28px -6px rgba(186, 72, 255, .6);
}
.home .herorank:hover .herorank__btn { background: linear-gradient(135deg, #7C4DFF 0%, #9634D9 100%); }

/* 3. Outline buttons: a violet frame instead of #3A3350 (1.7:1), so the control edge reaches 3:1; hover stays #A07EFF. */
.btn--line { border-color: #7E68D0; }
.btn--line:hover { border-color: var(--purple-2); }

/* 4. Rank ladder: each tile's pips take its own rank colour (app.js already sets it as the bar's colour).
      RAVEN+ keeps its gold-to-violet bar and owned ranks stay muted. The name label is unchanged. */
.ladder .step:not(.step--top):not(.is-owned) .step__bar {
  background:
    linear-gradient(180deg, transparent 7px, rgba(0, 0, 0, .45) 7px),
    linear-gradient(90deg, currentColor calc(var(--n) * (var(--pip) + var(--gap))), #2E2645 0);
}
main.home .ladder .step[aria-checked="true"],
main.home .ladder .step[aria-checked="true"]:hover {
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .12), inset 0 0 0 2px var(--purple-2), 0 4px 0 var(--side), 0 4px 0 2px var(--edge), 0 0 26px -6px rgba(160, 126, 255, .7);
}
/* rank panel: violet under-glow and a richer buy column */
.rank { box-shadow: 0 6px 0 var(--purple-deep), 0 6px 0 2px var(--edge), 0 30px 70px -36px rgba(138, 75, 255, .55); }
.rank__buy { background: linear-gradient(180deg, #28195A 0, #1C123E 220px, #16102F 100%); }

/* 5. Home rank card: more violet and a touch of pink; hover glow brought back up. */
.home .herorank {
  background: radial-gradient(120% 160% at 100% 0%, rgba(160, 126, 255, .2), transparent 55%), radial-gradient(120% 160% at 0% 100%, rgba(255, 85, 255, .08), transparent 55%), linear-gradient(100deg, #2F1D63, #20154A);
}
.home .herorank:hover { box-shadow: 0 4px 0 rgba(0, 0, 0, .45), 0 18px 44px -14px rgba(186, 72, 255, .42); }

/* 6. Gem shop: packs get a thin violet top light and a hover glow; best value a gold one. */
main.gemshop .pack { box-shadow: inset 0 2px 0 rgba(160, 126, 255, .5), 0 2px 0 rgba(0, 0, 0, .45); }
main.gemshop .pack:hover { border-color: rgba(160, 126, 255, .7); box-shadow: inset 0 2px 0 rgba(160, 126, 255, .75), 0 3px 0 rgba(0, 0, 0, .5), 0 0 28px -8px rgba(160, 126, 255, .55); }
main.gemshop .pack.pack--best { box-shadow: inset 0 2px 0 rgba(255, 224, 122, .9), 0 3px 0 #000, 0 0 30px -10px rgba(255, 210, 63, .45); }
main.gemshop .pack.pack--best:hover { box-shadow: inset 0 2px 0 #FFE07A, 0 4px 0 #000, 0 0 36px -8px rgba(255, 210, 63, .55); }
/* "What gems buy" chips: each chip's gem colour returns as a 3px left edge (the text and price stay neutral). */
.gemshop .buychip.buychip--pink { --c: var(--gs-pink); }
.gemshop .buychip.buychip--sky { --c: #7FA6FF; }
.gemshop .buychip.buychip--orange { --c: var(--gs-orange); }
main.gemshop .buys--chips .buychip { box-shadow: inset 3px 0 0 var(--c); }
/* gems block in "How coins and gems work": a more saturated purple (#F4F0FF text 6.2:1 at the light end) */
main.gemshop .howcur__item.howcur__item--gems { background: linear-gradient(160deg, #5C30E6, #33128A); }

/* 7. Glows the calm passes cut to 7-11% come back to about half of the original strength. */
main.home .hero::before { background: radial-gradient(closest-side, rgba(138, 75, 255, .15), transparent 72%); }
@media (min-width: 760px) {
  main.home .hero .hero__mark::before { background: radial-gradient(closest-side, rgba(138, 75, 255, .16), transparent 72%); }
}
.phero::before { background: radial-gradient(closest-side, rgba(138, 75, 255, .14), transparent 72%); }
.home > section.band { background: var(--pat-field) 0 0 / 96px 96px, radial-gradient(55% 120% at 18% 100%, rgba(255, 85, 255, .08), transparent 70%), radial-gradient(70% 140% at 50% 100%, rgba(138, 75, 255, .2), transparent 70%), var(--store-2); }
.gemshop .gemhero { background:
    radial-gradient(60% 80% at 85% 30%, rgba(143, 107, 255, .18), transparent 70%),
    radial-gradient(35% 50% at 100% 0%, rgba(255, 210, 63, .08), transparent 70%),
    var(--gs-base); }
/* Windows high contrast: the new button gradients step aside so the system button colours show, as with the old solid fills. */
@media (forced-colors: active) {
  .btn--primary, .pack--hl .btn, .btn--brand, .home .band .btn--line, .home .herorank__btn, .ip__action, .nav .nav__links a.nav__cta { background-image: none !important; }
}

/* ---- color-audit-2: energy pass (preview) ----
   Colour only: glows, gradients, borders and hover colours. Layout, type and markup unchanged; no new motion except the
   existing hover lift. Brand hexes stay (#8A4BFF, #A07EFF, #E6DCFF, #FFD23F); new accents: --magenta #FF4FD8, --cyan #4DE3FF.
   Literal hex/rgba only (no color-mix()). Selectors start with "html" so they outrank the earlier calm passes. */

/* 1. Home hero: brighter violet halo; logo gets a coloured lift. (The low-left blob stays off: it read as a smudge.) */
html main.home .hero::before { background: radial-gradient(closest-side, rgba(138, 75, 255, .34), transparent 72%); }
@media (min-width: 760px) {
  html main.home .hero .hero__mark::before { background: radial-gradient(closest-side, rgba(138, 75, 255, .3), transparent 72%); }
}
html main.home .hero .hero__logo { filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .55)) drop-shadow(0 18px 40px rgba(138, 75, 255, .45)); }
/* headline line 1: violet-to-magenta (large text; both ends above 6:1 on #0D0B14) */
html main.home .hero .hero__title-hi {
  background: linear-gradient(100deg, #A07EFF 10%, #C77DFF 45%, #FF4FD8 95%); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; padding-bottom: .06em;
}
/* IP box: violet-magenta-gold frame and a warm glow again (it is the main action) */
html main.home .hero .ip--hero {
  border-color: transparent;
  background: linear-gradient(#08070C, #08070C) padding-box, linear-gradient(100deg, #A07EFF, #FF4FD8 50%, #FFD23F) border-box;
  box-shadow: 0 0 0 4px rgba(160, 126, 255, .16), 0 14px 40px -12px rgba(255, 210, 63, .5);
}
html main.home .hero .ip--hero:hover { box-shadow: 0 0 0 4px rgba(255, 210, 63, .26), 0 16px 48px -10px rgba(255, 210, 63, .7); }
html main.home .hero .hero__ranks { border-color: rgba(160, 126, 255, .7); background: rgba(138, 75, 255, .14); color: #F1EBFF; }
html main.home .hero .hero__ranks:hover { border-color: #FF4FD8; background: rgba(255, 79, 216, .14); color: #fff; box-shadow: 0 8px 26px -10px rgba(255, 79, 216, .6); }

/* 2. (Retired: the home hero launch card is styled with the hero rules near the top of this file.) */

/* 3. Buttons: gold and purple blocks keep a soft glow at rest and light up on hover. */
.btn--primary:not(:disabled):not(:active), .pack--hl .btn:not(:active) { box-shadow: inset 0 2px 0 var(--gold-hi), inset 0 -3px 0 #E8B200, 0 4px 0 var(--gold-side), 0 4px 0 2px var(--edge), 0 10px 26px -10px rgba(255, 210, 63, .55); }
html .btn--primary:hover:not(:disabled):not(:active), html .pack--hl .btn:hover:not(:disabled):not(:active) {
  box-shadow: inset 0 2px 0 var(--gold-hi), inset 0 -3px 0 #E8B200, 0 5px 0 var(--gold-side), 0 5px 0 2px var(--edge), 0 12px 34px -6px rgba(255, 210, 63, .8);
}
.btn--brand:not(:active), .home .band .btn--line:not(:active) { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .22), 0 4px 0 var(--purple-deep), 0 4px 0 2px var(--edge), 0 10px 26px -10px rgba(186, 72, 255, .6); }
html .btn--brand:hover:not(:active), html .home .band .btn--line:hover:not(:active) {
  background: linear-gradient(135deg, #7C4DFF 0%, #9634D9 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .22), 0 5px 0 var(--purple-deep), 0 5px 0 2px var(--edge), 0 12px 36px -6px rgba(255, 79, 216, .65);
}
.btn--line:hover { border-color: #C9A8FF; background: rgba(138, 75, 255, .16); box-shadow: 0 8px 24px -12px rgba(160, 126, 255, .7); }
html .nav .nav__links a.nav__cta { box-shadow: 0 3px 0 var(--gold-side, #A87500), 0 6px 18px -8px rgba(255, 210, 63, .6); }
html .nav .nav__links a[aria-current="page"]::after { height: 3px; background: linear-gradient(90deg, #A07EFF, #FF4FD8); box-shadow: 0 0 10px rgba(255, 79, 216, .55); }

/* 4. Home mode cards: their own colours back (FFA magenta/gold, Gens mint/cyan), a top light and a hover glow. */
html main.home .mode--ffa .mode__row { background: var(--pat-field) 0 0 / 96px 96px, radial-gradient(120% 140% at 0% 100%, rgba(255, 79, 216, .3), transparent 60%), radial-gradient(90% 120% at 100% 0%, rgba(255, 170, 0, .16), transparent 60%), linear-gradient(180deg, #24123A, #16112A); }
html main.home .mode--gens .mode__row { background: var(--pat-field) 40px 20px / 96px 96px, radial-gradient(120% 140% at 0% 100%, rgba(61, 245, 143, .22), transparent 60%), radial-gradient(90% 120% at 100% 0%, rgba(77, 227, 255, .18), transparent 60%), linear-gradient(180deg, #102030, #16112A); }
html main.home a.mode.mode--ffa { box-shadow: inset 0 3px 0 #FF4FD8; }
html main.home a.mode.mode--gens { box-shadow: inset 0 3px 0 #3DF58F; }
html main.home .mode--ffa .mode__more { color: #FF8BEA; }
html main.home .mode--gens .mode__more { color: #3DF58F; }
html main.home a.mode.mode--ffa:hover { border-color: #FF4FD8; box-shadow: inset 0 3px 0 #FF4FD8, 0 18px 44px -18px rgba(255, 79, 216, .65); }
html main.home a.mode.mode--gens:hover { border-color: #3DF58F; box-shadow: inset 0 3px 0 #3DF58F, 0 18px 44px -18px rgba(61, 245, 143, .5); }
a.mode:hover { border-color: #C9A8FF; box-shadow: 0 18px 44px -18px rgba(160, 126, 255, .55); }

/* 5. "Get a rank" card, ladder and rank panel: brighter violet with magenta and gold light. */
html .home .herorank {
  border: 2px solid var(--edge);
  background: radial-gradient(120% 160% at 100% 0%, rgba(255, 79, 216, .26), transparent 55%), radial-gradient(120% 160% at 0% 100%, rgba(255, 170, 0, .16), transparent 55%), linear-gradient(100deg, #351D78, #22155A);
  box-shadow: 0 5px 0 var(--purple-deep), 0 5px 0 2px var(--edge), 0 16px 40px -18px rgba(138, 75, 255, .7);
}
html .home .herorank:hover { box-shadow: 0 6px 0 var(--purple-deep), 0 6px 0 2px var(--edge), 0 20px 48px -14px rgba(255, 79, 216, .6); }
html main.home .ladder .step[aria-checked="true"],
html main.home .ladder .step[aria-checked="true"]:hover {
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .14), inset 0 0 0 2px #C9A8FF, 0 4px 0 var(--side), 0 4px 0 2px var(--edge), 0 0 30px -4px rgba(160, 126, 255, .75);
}
.ladder .step:hover { filter: brightness(1.12) saturate(1.15); }
html .rank { box-shadow: 0 6px 0 var(--purple-deep), 0 6px 0 2px var(--edge), 0 30px 80px -30px rgba(138, 75, 255, .7); }

/* 6. Section bands and the gem/coin teasers: colour light back at full strength. */
html .home > section.band { background: var(--pat-field) 0 0 / 96px 96px, radial-gradient(60% 120% at 18% 100%, rgba(255, 79, 216, .2), transparent 70%), radial-gradient(60% 120% at 82% 100%, rgba(77, 227, 255, .14), transparent 70%), radial-gradient(70% 140% at 50% 100%, rgba(138, 75, 255, .36), transparent 70%), var(--store-2); }

/* 7. Sub-page heroes and stores: stronger glows. */
html .phero::before { background: radial-gradient(closest-side, rgba(138, 75, 255, .3), transparent 72%); }
html .phero .phero__icon { filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, .9)) drop-shadow(0 0 30px rgba(160, 126, 255, .5)); }
html .gemshop .gemhero { background: radial-gradient(60% 80% at 85% 30%, rgba(143, 107, 255, .3), transparent 70%), radial-gradient(40% 60% at 100% 0%, rgba(255, 79, 216, .16), transparent 70%), radial-gradient(35% 50% at 0% 100%, rgba(255, 210, 63, .1), transparent 70%), var(--gs-base); }
html main.gemshop .pack { border-color: rgba(160, 126, 255, .4); box-shadow: inset 0 2px 0 rgba(160, 126, 255, .55), 0 2px 0 rgba(0, 0, 0, .45); }
html main.gemshop .pack:hover { border-color: #C9A8FF; box-shadow: inset 0 2px 0 rgba(201, 168, 255, .8), 0 3px 0 rgba(0, 0, 0, .5), 0 0 34px -6px rgba(160, 126, 255, .6); }
html main.gemshop .pack .pack__gem { filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, .85)) drop-shadow(0 0 14px rgba(160, 126, 255, .5)); }
html main.gemshop .pack.pack--best { box-shadow: inset 0 2px 0 #FFE07A, 0 3px 0 #000, 0 0 36px -8px rgba(255, 210, 63, .55); }
html main.gemshop .pack.pack--best:hover { box-shadow: inset 0 2px 0 #FFE07A, 0 4px 0 #000, 0 0 44px -6px rgba(255, 210, 63, .7); }
html .phero.ffa-hero { background: radial-gradient(60% 90% at 0% 0%, rgba(143, 107, 255, .26), transparent 62%), radial-gradient(50% 70% at 85% 100%, rgba(255, 79, 216, .14), transparent 60%), radial-gradient(40% 60% at 60% 0%, rgba(255, 210, 63, .08), transparent 60%), #0D0B14; }
html .ffa-hero .ffa-hero__icon { filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, .9)) drop-shadow(0 0 32px rgba(255, 210, 63, .4)); }
/* FFA decorative accents: the Minecraft sky, pink and orange come back (they had been folded into violet and gold). */
html .ffa-hero, html .ffa-head, html .ffa-fact, html .ffa-event, html .ffa-shelf, html .ffa-coin, html .ffa-steps li { --ffa-sky: #6E9BFF; --ffa-pink: #FF55FF; --ffa-orange: #FFAA00; }
html .ffa-event.ffa-event--sky { --acc: #6E9BFF; }
html .ffa-coins .ffa-coin.coinpack--best { box-shadow: inset 0 3px 0 #FFD23F, 0 0 0 1px #FFD23F, 0 3px 0 #A87500, 0 0 40px -6px rgba(255, 210, 63, .5); }
html .ffa-coins .ffa-coin:hover { box-shadow: inset 0 3px 0 var(--acc), 0 2px 0 rgba(0, 0, 0, .45), 0 16px 40px -18px rgba(160, 126, 255, .7); }
html .phero--gens .gens-hero__glow { background: radial-gradient(38% 60% at 12% 18%, rgba(255, 210, 63, .2), transparent 70%), radial-gradient(40% 60% at 70% 95%, rgba(61, 245, 143, .14), transparent 70%), radial-gradient(34% 55% at 88% 12%, rgba(143, 107, 255, .2), transparent 70%); }
html .mp-hero { --mp-glow: rgba(143, 107, 255, .26); }
html .mp-hero.mp-hero--vote, html .mp-hero.mp-hero--lb { --mp-glow: rgba(255, 210, 63, .16); }
html .mp-hero.mp-hero--support { --mp-glow: rgba(61, 245, 143, .14); }
html #vsites.mp-vsites .vsite:hover { border-color: #C9A8FF; box-shadow: 0 10px 30px -14px rgba(160, 126, 255, .6); }

/* 8. Small accents: live dot and chips a step brighter. */
.dot--live { --ring: rgba(61, 245, 143, .28); }
html:not(.is-live) .dot--live { --ring: rgba(255, 210, 63, .3); }
.chip--live { border-color: rgba(61, 245, 143, .55); background: rgba(61, 245, 143, .08); }
.chip--pre { border-color: rgba(255, 210, 63, .6); background: rgba(255, 210, 63, .1); }
::selection { background: rgba(255, 79, 216, .45); }

@media (forced-colors: active) {
  html main.home .hero .hero__title-hi { color: CanvasText; -webkit-text-fill-color: CanvasText; background: none; }
  html main.home .hero .ip--hero { border-color: CanvasText; background: Canvas; }
  .launchcard { border-color: CanvasText; background: Canvas; }
}

/* ---- launch-palette-3: emoji palette pass (preview) ----
   Colour only, built from the server's own emoji set: electric violet (#7818F0 / #6018D8), deep violet (#300078 / #180048),
   flame orange (#8A4BFF / #A07EFF / #E8B200), warm gold (#F0C018 / #E8B200) and red-orange (#7818F0 / #5B21E0).
   The brand hexes stay the base (#8A4BFF, #A07EFF, #E6DCFF, #FFD23F) and rank colours are untouched. The launch card is not changed.
   Layout, copy and markup unchanged. Selectors start with "html body" so they outrank the colour-audit-2 pass.
   Literal hex/rgba in gradients (no color-mix()). Contrast notes give the lowest ratio for each text/background pair. */

/* 1. Home hero: electric-violet halo with a flame core; the logo picks up both.
      Phones: the halo sits behind the eyebrow and headline, so its peak stays light enough for #A07EFF small text (4.65:1). */
html body main.home .hero::before { background: radial-gradient(closest-side at 62% 58%, rgba(138, 75, 255, .12), transparent 70%), radial-gradient(closest-side, rgba(120, 24, 240, .3), transparent 72%); }
@media (min-width: 760px) {
  html body main.home .hero .hero__mark::before { background: radial-gradient(closest-side at 58% 64%, rgba(138, 75, 255, .18), transparent 66%), radial-gradient(closest-side, rgba(120, 24, 240, .38), transparent 72%); }
}
html body main.home .hero .hero__logo { filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .55)) drop-shadow(0 18px 40px rgba(120, 24, 240, .55)) drop-shadow(0 6px 22px rgba(138, 75, 255, .22)); }
/* headline line 1: violet into flame (large text; lowest stop #A07EFF 6.4:1 on #0D0B14) */
html body main.home .hero .hero__title-hi { background: linear-gradient(100deg, #A07EFF 8%, #C46CF0 42%, #A07EFF 92%); -webkit-background-clip: text; background-clip: text; }
/* IP box: violet-flame-gold frame and a warm glow */
html body main.home .hero .ip--hero {
  background: linear-gradient(#08070C, #08070C) padding-box, linear-gradient(100deg, #A07EFF, #7818F0 28%, #8A4BFF 68%, #F0C018) border-box;
  box-shadow: 0 0 0 4px rgba(120, 24, 240, .2), 0 14px 40px -12px rgba(255, 210, 63, .55);
}
html body main.home .hero .ip--hero:hover { box-shadow: 0 0 0 4px rgba(255, 210, 63, .28), 0 16px 48px -10px rgba(138, 75, 255, .7); }
/* See ranks: violet at rest, flame on hover */
html body main.home .hero .hero__ranks { border-color: rgba(160, 126, 255, .75); background: rgba(120, 24, 240, .18); }
html body main.home .hero .hero__ranks:hover { border-color: #E8B200; background: rgba(138, 75, 255, .16); color: #fff; box-shadow: 0 8px 26px -10px rgba(138, 75, 255, .65); }
/* "Get a rank" card: deep violet with a flame corner and a gold floor light */
html body .home .herorank {
  background: radial-gradient(120% 160% at 100% 0%, rgba(138, 75, 255, .26), transparent 55%), radial-gradient(120% 160% at 0% 100%, rgba(240, 192, 24, .14), transparent 55%), linear-gradient(100deg, #3A1590, #240A66);
  box-shadow: 0 5px 0 var(--violet-deep), 0 5px 0 2px var(--edge), 0 16px 40px -18px rgba(120, 24, 240, .8);
}
html body .home .herorank:hover { box-shadow: 0 6px 0 var(--violet-deep), 0 6px 0 2px var(--edge), 0 20px 48px -14px rgba(138, 75, 255, .6); }

/* 2. Section headers: flame drop under the eyebrow pixel, a violet-to-gold bar under plain section titles. */
html body .eyebrow:not(:has(.dot))::before { box-shadow: 2px 2px 0 var(--flame); }
html body .section__head:not(.ffa-head):not(.gens-head):not(.rankhead) > h2::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 12px; border-radius: 2px; background: var(--grad-raven); box-shadow: 0 0 14px rgba(138, 75, 255, .35); }
html body main.home .rankhead { border-bottom: 2px solid transparent; border-image: var(--grad-raven) 1; }
html body section.gens-block--perks .gens-head h2::after { background: linear-gradient(90deg, #63F68B, #F0C018); }
html body section.gens-block--ranks .gens-head h2::after { background: linear-gradient(90deg, #A07EFF, #7818F0 45%, #8A4BFF); }
html body .mp-head::before { box-shadow: 3px 3px 0 var(--flame); }

/* 3. Badges and chips. Status meaning stays: mint = live, gold = pre-launch. */
/* pre-launch chip: gold text on a gold-to-flame tint */
html body .chip--pre { border-color: rgba(255, 210, 63, .75); background: linear-gradient(90deg, rgba(240, 192, 24, .14), rgba(138, 75, 255, .16)); }
/* plain label chips (City, Prisons): electric-violet frame */
html body main.home .mode .chip:not(.chip--pre):not(.chip--live) { border-color: rgba(120, 24, 240, .85); background: rgba(120, 24, 240, .14); }
/* "Best value" tags: gold into flame, dark text */
html body main.gemshop .pack.pack--best .pack__tag { background: linear-gradient(90deg, #F0C018, #E8B200); color: #1A0A00; }
/* rank ladder: the picked tile gets an electric-violet halo with a flame underglow (rank colours unchanged) */
html body main.home .ladder .step[aria-checked="true"],
html body main.home .ladder .step[aria-checked="true"]:hover {
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .14), inset 0 0 0 2px #C9A8FF, 0 4px 0 var(--side), 0 4px 0 2px var(--edge), 0 0 30px -4px rgba(120, 24, 240, .85), 0 14px 30px -12px rgba(138, 75, 255, .55);
}
html body .rank { box-shadow: 0 6px 0 var(--violet-deep), 0 6px 0 2px var(--edge), 0 30px 80px -30px rgba(120, 24, 240, .8); }

/* 4. Home mode cards: FFA runs on electric violet and flame, Gens on gold and violet (the colours of their emoji). */
html body main.home .mode--ffa .mode__row { background: var(--pat-field) 0 0 / 96px 96px, radial-gradient(120% 140% at 0% 100%, rgba(120, 24, 240, .42), transparent 60%), radial-gradient(90% 120% at 100% 0%, rgba(138, 75, 255, .24), transparent 60%), linear-gradient(180deg, #24123A, #16112A); }
html body main.home .mode--gens .mode__row { background: var(--pat-field) 40px 20px / 96px 96px, radial-gradient(120% 140% at 0% 100%, rgba(240, 192, 24, .26), transparent 60%), radial-gradient(90% 120% at 100% 0%, rgba(120, 24, 240, .32), transparent 60%), linear-gradient(180deg, #1E1430, #16112A); }
html body main.home a.mode.mode--ffa { box-shadow: inset 0 3px 0 var(--flame); }
html body main.home a.mode.mode--gens { box-shadow: inset 0 3px 0 var(--gold-warm); }
html body main.home .mode--ffa .mode__more { color: #E8B200; }
html body main.home .mode--gens .mode__more { color: #F0C018; }
html body main.home a.mode.mode--ffa:hover { border-color: #8A4BFF; box-shadow: inset 0 3px 0 var(--flame), 0 18px 44px -18px rgba(138, 75, 255, .7), 0 0 0 1px rgba(120, 24, 240, .5); }
html body main.home a.mode.mode--gens:hover { border-color: #F0C018; box-shadow: inset 0 3px 0 var(--gold-warm), 0 18px 44px -18px rgba(240, 192, 24, .55), 0 0 0 1px rgba(120, 24, 240, .5); }
html body main.home .mode--compact { border-color: rgba(120, 24, 240, .55); }
/* region label sits in the tinted corner: one step lighter than --muted (5.75:1 at the FFA flame corner) */
html body main.home .modes--main .mode__region { color: #B4ACC8; }

/* 5. Hover states: outline buttons, nav, links, purple block. */
html body .btn--line:hover { border-color: #E8B200; background: rgba(138, 75, 255, .12); box-shadow: 0 8px 24px -12px rgba(138, 75, 255, .7); }
html body .link-btn:hover { text-decoration-color: var(--flame-hi); }
html body .nav .nav__links a[aria-current="page"]::after { background: linear-gradient(90deg, #A07EFF, #7818F0 45%, #8A4BFF); box-shadow: 0 0 10px rgba(138, 75, 255, .55); }
/* purple block: brand violet into electric violet */
html body .btn--brand, html body .home .band .btn--line, html body .home .herorank__btn { background: linear-gradient(135deg, #8A4BFF 0%, #7818F0 100%); }
html body .btn--brand:hover:not(:active), html body .home .band .btn--line:hover:not(:active) {
  background: linear-gradient(135deg, #7C4DFF 0%, #6018D8 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .22), 0 5px 0 var(--violet-deep), 0 5px 0 2px var(--edge), 0 12px 36px -6px rgba(138, 75, 255, .55);
}
html body .home .herorank:hover .herorank__btn { background: linear-gradient(135deg, #7C4DFF 0%, #6018D8 100%); }
html body .ladder .step:hover { filter: brightness(1.14) saturate(1.2); }

/* 6. Gem and coin cards. */
/* home gem card: deep violet with an electric-violet corner and a diamond-cyan floor light */
/* home coin card: warm gold corner, flame floor light, red-orange drop */
/* gem shop: "How coins and gems work" blocks in the emoji gold and electric violet */
html body main.gemshop .howcur__item.howcur__item--coins { background: linear-gradient(160deg, #F0C018, #E8B200); box-shadow: 0 3px 0 var(--ember-deep), 0 12px 30px -10px rgba(138, 75, 255, .45); }
html body main.gemshop .howcur__item.howcur__item--gems { background: linear-gradient(160deg, #6018D8, #300078); box-shadow: 0 3px 0 var(--violet-night), 0 12px 30px -10px rgba(120, 24, 240, .6); }
/* gem packs: electric-violet glow on hover; best value gets a red-orange drop under its gold light */
html body main.gemshop .pack:hover { border-color: #C9A8FF; box-shadow: inset 0 2px 0 rgba(201, 168, 255, .8), 0 3px 0 rgba(0, 0, 0, .5), 0 0 34px -6px rgba(120, 24, 240, .75); }
html body main.gemshop .pack.pack--best { box-shadow: inset 0 2px 0 #FFE07A, 0 3px 0 var(--ember-deep), 0 0 36px -8px rgba(255, 210, 63, .55); }
html body main.gemshop .pack.pack--best:hover { box-shadow: inset 0 2px 0 #FFE07A, 0 4px 0 var(--ember-deep), 0 0 44px -6px rgba(138, 75, 255, .7); }
html body .gemshop .gemhero { background: radial-gradient(60% 80% at 85% 30%, rgba(120, 24, 240, .34), transparent 70%), radial-gradient(40% 60% at 100% 0%, rgba(138, 75, 255, .16), transparent 70%), radial-gradient(35% 50% at 0% 100%, rgba(240, 192, 24, .12), transparent 70%), var(--gs-base); }
/* FFA: the orange accent becomes the emoji flame; coin packs get gold and flame tops */
html body .ffa-hero, html body .ffa-head, html body .ffa-fact, html body .ffa-event, html body .ffa-shelf, html body .ffa-coin, html body .ffa-steps li { --ffa-orange: #A07EFF; }
html body .ffa-coin.ffa-coin--1 { --acc: #F0C018; }
html body .ffa-coin.ffa-coin--2 { --acc: #A07EFF; }
html body .ffa-coins .ffa-coin:hover { box-shadow: inset 0 3px 0 var(--acc), 0 2px 0 rgba(0, 0, 0, .45), 0 16px 40px -18px rgba(138, 75, 255, .7); }
html body .ffa-coins .ffa-coin.coinpack--best { box-shadow: inset 0 3px 0 #F0C018, 0 0 0 1px #F0C018, 0 3px 0 var(--ember-deep), 0 0 40px -6px rgba(255, 210, 63, .55); }

/* 7. Sub-page heroes and closing bands: violet halo with flame and gold light. */
html body .phero::before { background: radial-gradient(closest-side, rgba(120, 24, 240, .34), transparent 72%); }
html body .phero .phero__icon { filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, .9)) drop-shadow(0 0 30px rgba(120, 24, 240, .6)); }
html body .phero.ffa-hero { background: radial-gradient(60% 90% at 0% 0%, rgba(120, 24, 240, .34), transparent 62%), radial-gradient(50% 70% at 85% 100%, rgba(138, 75, 255, .18), transparent 60%), radial-gradient(40% 60% at 60% 0%, rgba(240, 192, 24, .1), transparent 60%), #0D0B14; }
html body .ffa-hero .ffa-hero__icon { filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, .9)) drop-shadow(0 0 32px rgba(255, 210, 63, .45)); }
html body .phero--gens .gens-hero__glow { background: radial-gradient(38% 60% at 12% 18%, rgba(240, 192, 24, .22), transparent 70%), radial-gradient(34% 55% at 88% 12%, rgba(138, 75, 255, .16), transparent 70%), radial-gradient(40% 60% at 70% 95%, rgba(120, 24, 240, .26), transparent 70%); }
html body .phero.phero--gens .gens-hero__icon { filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, .9)) drop-shadow(0 0 30px rgba(255, 210, 63, .35)); }
html body .home > section.band { background: var(--pat-field) 0 0 / 96px 96px, radial-gradient(60% 120% at 18% 100%, rgba(138, 75, 255, .2), transparent 70%), radial-gradient(60% 120% at 82% 100%, rgba(240, 192, 24, .12), transparent 70%), radial-gradient(70% 140% at 50% 100%, rgba(120, 24, 240, .42), transparent 70%), var(--store-2); }
html body main > section.band.band--gens { background: var(--pat-field) 0 0 / 96px 96px, radial-gradient(45% 120% at 15% 100%, rgba(240, 192, 24, .2), transparent 70%), radial-gradient(45% 120% at 85% 100%, rgba(138, 75, 255, .18), transparent 70%), radial-gradient(60% 140% at 50% 0%, rgba(120, 24, 240, .34), transparent 70%), var(--store-2); }
html body .mp-hero { --mp-glow: rgba(120, 24, 240, .3); }
html body .mp-hero.mp-hero--vote, html body .mp-hero.mp-hero--lb { --mp-glow: rgba(255, 210, 63, .18); }
html body ::selection { background: rgba(138, 75, 255, .45); }

@media (forced-colors: active) {
  html body main.home .hero .hero__title-hi { color: CanvasText; -webkit-text-fill-color: CanvasText; background: none; }
  html body main.home .hero .ip--hero { border-color: CanvasText; background: Canvas; }
  html body .btn--brand, html body .home .band .btn--line, html body .home .herorank__btn, html body main.gemshop .pack.pack--best .pack__tag { background-image: none !important; }
  html body main.home .rankhead { border-image: none; border-bottom-color: CanvasText; }
}

/* ---- launch-final-4: launch-day colour push (preview) ----
   Colour only: bolder glows, gradients and borders from the launch-palette-3 tokens (violet-electric, flame, gold, ember,
   grad-flame, grad-raven). Brand purples, the logo, rank colours and layout are unchanged. Selectors start with
   "html body" and sit last, so they win over the earlier passes at the same specificity.
   Contrast (worst case: every glow at its peak alpha under the text) is noted next to each text/background pair. */

/* 1. Home hero. The phone halo behind the eyebrow keeps its launch-palette-3 strength (#A07EFF small text 4.65:1 at its peak).
      From 760px the halo sits behind the logo (no text there), so it gets the full push. */
@media (min-width: 760px) {
  html body main.home .hero .hero__mark::before { background: radial-gradient(closest-side at 60% 66%, rgba(138, 75, 255, .3), transparent 64%), radial-gradient(closest-side at 40% 30%, rgba(240, 192, 24, .12), transparent 60%), radial-gradient(closest-side, rgba(120, 24, 240, .55), transparent 72%); }
}
html body main.home .hero .hero__logo { filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .55)) drop-shadow(0 18px 48px rgba(120, 24, 240, .75)) drop-shadow(0 8px 28px rgba(138, 75, 255, .38)); }
/* headline line 1: violet, flame, then gold (large text; lowest stop #C46CF0 4.53:1 on the phone halo peak, 6.28:1 on the page) */
html body main.home .hero .hero__title-hi { background: linear-gradient(100deg, #A07EFF 4%, #C46CF0 34%, #A07EFF 72%, #F0C018 100%); -webkit-background-clip: text; background-clip: text; }
/* IP box: grad-raven frame and a stronger flame glow */
html body main.home .hero .ip--hero {
  background: linear-gradient(#08070C, #08070C) padding-box, var(--grad-raven) border-box;
  box-shadow: 0 0 0 4px rgba(120, 24, 240, .3), 0 0 32px -6px rgba(120, 24, 240, .7), 0 16px 44px -12px rgba(255, 210, 63, .7);
}
html body main.home .hero .ip--hero:hover { box-shadow: 0 0 0 4px rgba(255, 210, 63, .38), 0 0 36px -4px rgba(138, 75, 255, .6), 0 18px 54px -10px rgba(138, 75, 255, .85); }
html body main.home .hero .hero__ranks { box-shadow: 0 0 22px -8px rgba(120, 24, 240, .8); }

/* 2. Primary gold buttons (pay / join): gold into amber with a flame floor and a warm glow.
      #1A1300 text: 9.06:1 at the darkest stop (#E8B200), 9.62:1 at the hover floor (#F0B020). */
html body .btn--primary:not(:disabled):not(:active), html body .pack--hl .btn:not(:active) {
  background: linear-gradient(180deg, #FFE15C 0%, #FFD23F 46%, #E8B200 100%);
  box-shadow: inset 0 2px 0 var(--gold-hi), inset 0 -3px 0 var(--flame-hi), 0 4px 0 var(--gold-side), 0 4px 0 2px var(--edge), 0 0 0 4px rgba(240, 192, 24, .16), 0 12px 32px -8px rgba(138, 75, 255, .65);
}
html body .btn--primary:hover:not(:disabled):not(:active), html body .pack--hl .btn:hover:not(:active) {
  background: linear-gradient(180deg, #FFE670 0%, #FFD94F 46%, #F0B020 100%);
  box-shadow: inset 0 2px 0 var(--gold-hi), inset 0 -3px 0 var(--flame-hi), 0 5px 0 var(--gold-side), 0 5px 0 2px var(--edge), 0 0 0 5px rgba(255, 210, 63, .26), 0 16px 42px -6px rgba(138, 75, 255, .85);
}

/* 3. Rank cards: ladder tiles, the rank panel and the "Get a rank" card. Tile faces and rank colours are unchanged. */
html body main.home .ladder .step[aria-checked="true"],
html body main.home .ladder .step[aria-checked="true"]:hover {
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .14), inset 0 0 0 2px #C9A8FF, 0 4px 0 var(--side), 0 4px 0 2px var(--edge), 0 0 40px -2px rgba(120, 24, 240, .95), 0 16px 36px -10px rgba(138, 75, 255, .75);
}
html body main.home .ladder .step:hover:not([aria-checked="true"]):not(:active) { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .05), 0 6px 0 var(--side), 0 6px 0 2px var(--edge), 0 12px 28px -10px rgba(120, 24, 240, .8); }
html body .rank { box-shadow: 0 6px 0 var(--violet-deep), 0 6px 0 2px var(--edge), 0 0 60px -18px rgba(120, 24, 240, .9), 0 36px 90px -30px rgba(120, 24, 240, .95), 0 48px 100px -56px rgba(138, 75, 255, .7); }
/* a grad-raven light along the top of the buy column (padding keeps text off it; the column colour is unchanged) */
html body .rank .rank__buy { background: var(--grad-raven) top / 100% 3px no-repeat, linear-gradient(180deg, #28195A 0, #1C123E 220px, #16102F 100%); }
/* "Get a rank": stronger flame corner and gold floor. Lowest pair: the #FFD23F price 4.86:1 with both corners at peak. */
html body .home .herorank {
  background: radial-gradient(120% 160% at 100% 0%, rgba(138, 75, 255, .32), transparent 55%), radial-gradient(120% 160% at 0% 100%, rgba(240, 192, 24, .18), transparent 55%), linear-gradient(100deg, #3A1590, #240A66);
  box-shadow: 0 5px 0 var(--violet-deep), 0 5px 0 2px var(--edge), 0 0 34px -8px rgba(120, 24, 240, .85), 0 18px 44px -16px rgba(138, 75, 255, .6);
}
html body .home .herorank:hover { box-shadow: 0 6px 0 var(--violet-deep), 0 6px 0 2px var(--edge), 0 0 40px -6px rgba(120, 24, 240, .95), 0 22px 54px -12px rgba(138, 75, 255, .8); }

/* 4. Home FFA and Gens cards: brighter corners, a resting glow, a bigger one on hover.
      The top-right corner holds the chips and region label, so its light is capped:
      FFA flame .32 = region #B4ACC8 4.98:1, pre-launch chip #FFD23F 4.88:1; Gens violet .44 = region 5.67:1, chip 5.9:1. */
html body main.home .mode--ffa .mode__row { background: var(--pat-field) 0 0 / 96px 96px, radial-gradient(120% 140% at 0% 100%, rgba(120, 24, 240, .58), transparent 60%), radial-gradient(90% 120% at 100% 0%, rgba(138, 75, 255, .32), transparent 60%), linear-gradient(180deg, #24123A, #16112A); }
html body main.home .mode--gens .mode__row { background: var(--pat-field) 40px 20px / 96px 96px, radial-gradient(120% 140% at 0% 100%, rgba(240, 192, 24, .38), transparent 60%), radial-gradient(90% 120% at 100% 0%, rgba(120, 24, 240, .44), transparent 60%), linear-gradient(180deg, #1E1430, #16112A); }
html body main.home a.mode.mode--ffa { box-shadow: inset 0 4px 0 var(--flame), 0 0 0 1px rgba(138, 75, 255, .35), 0 18px 44px -24px rgba(138, 75, 255, .7); }
html body main.home a.mode.mode--gens { box-shadow: inset 0 4px 0 var(--gold-warm), 0 0 0 1px rgba(240, 192, 24, .3), 0 18px 44px -24px rgba(240, 192, 24, .55); }
html body main.home a.mode.mode--ffa:hover { border-color: #8A4BFF; box-shadow: inset 0 4px 0 var(--flame), 0 0 0 1px rgba(120, 24, 240, .6), 0 0 40px -10px rgba(120, 24, 240, .8), 0 22px 54px -16px rgba(138, 75, 255, .9); }
html body main.home a.mode.mode--gens:hover { border-color: #F0C018; box-shadow: inset 0 4px 0 var(--gold-warm), 0 0 0 1px rgba(120, 24, 240, .6), 0 0 40px -10px rgba(120, 24, 240, .8), 0 22px 54px -16px rgba(240, 192, 24, .75); }

/* 5. Launch-day card: grad-raven frame, electric-violet body with a flame corner, a bolder glow.
      Lowest pair: #E6DCFF small text 6.99:1 (members line and the visitor's local time), #FFE07A eyebrow 7.06:1. */
html body .launchcard {
  background: radial-gradient(90% 120% at 100% 0%, rgba(138, 75, 255, .24), transparent 60%) padding-box, radial-gradient(80% 110% at 0% 100%, rgba(240, 192, 24, .1), transparent 60%) padding-box, linear-gradient(135deg, #34118A, #1A0F36) padding-box, var(--grad-raven) border-box;
  box-shadow: 0 0 0 4px rgba(120, 24, 240, .28), 0 0 44px -10px rgba(120, 24, 240, .85), 0 20px 56px -18px rgba(138, 75, 255, .75);
}
html body .launchcard:hover { box-shadow: 0 0 0 4px rgba(255, 210, 63, .32), 0 0 52px -8px rgba(120, 24, 240, .95), 0 24px 64px -14px rgba(138, 75, 255, .9); }

@media (forced-colors: active) {
  html body .launchcard { background: Canvas; border-color: CanvasText; }
  html body .btn--primary:not(:disabled), html body .pack--hl .btn { background-image: none !important; }
}

/* ---------- Launch-fixes 7 ---------- */
/* No JavaScript, menu widths: the Menu button can't open anything, so it hides and the top links show as a second row that wraps.
   Desktop is unchanged (above 68em the links are already in the bar). */
@media (max-width: 68em) {
  .no-js .nav__menu-btn { display: none !important; }
  .no-js .nav__links { display: flex; flex-wrap: wrap; order: 3; flex-basis: 100%; margin-left: -10px; padding-bottom: 6px; }
}
/* Hero IP: no label up to 480px, so "play.ravennetwork.net" never breaks mid-word next to it. */
@media (max-width: 480px) { .home .hero .ip--hero .ip__label { display: none; } }
/* Tablet launch card: title capped at 1.6rem so a long local time wraps at the space after the dot, not mid-word. */
@media (min-width: 760px) and (max-width: 979px) { .launchcard__title { font-size: clamp(1.4rem, 1rem + 1.6vw, 1.6rem); } }
/* PRO in the rank strip: a lighter blue for contrast on the dark header (the in-game colour stays #5B8CFF). */
main.home .rankstrip__item[style*="5B8CFF" i] { color: #6E9BFF; }
/* Windows high contrast: the current page, the current menu row and the selected compare column keep a visible marker. */
@media (forced-colors: active) {
  html body .nav .nav__links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; outline: 2px solid Highlight; outline-offset: -2px; }
  html body .mnav a[aria-current="page"] { text-decoration: underline; outline: 2px solid Highlight; outline-offset: -2px; }
  .compare__table .is-sel { outline: 2px solid Highlight; outline-offset: -2px; }
}

/* ---- Home shop lanes (src/pages/index.mjs): hero "Buy coins / Buy gems / Get a rank" links, the "from $X" line on the
   coin, gem and rank sections, coin cards on phones, and the "Best value" gem pack. Scoped to main.home; existing tokens only. ---- */
main.home .hero__shop { display: flex; flex-wrap: wrap; gap: 10px; }
main.home .hero__lane { flex: 1 1 150px; justify-content: space-between; gap: 10px; padding-inline: 16px; }
main.home .hero__lane-from { font-size: .875rem; font-weight: 700; color: var(--gold); white-space: nowrap; }
main.home p.lane__from:not(.eyebrow) { margin: 0; max-width: none; font: 800 1.15rem/1.15 var(--f-display); font-stretch: 112%; color: var(--fg); }
main.home .lane__from b { color: var(--gold); font-family: var(--f-mono); font-weight: 700; }
main.home .lane__more { justify-self: start; }
main.home .lane__fine { margin-top: 14px; }
main.home .lane__fine a { color: var(--purple-2); }
/* Coin packs: two per row on phones so all four fit on one screen. */
@media (max-width: 559px) {
  main.home .ffa-coins { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  main.home .ffa-coin { padding: 0 12px 14px !important; }
  main.home .ffa-coin .coinpack__amount strong { font-size: 1.6rem; }
}
/* Best-value gem pack: the same gold edge, gold tag and gold price as the gem shop page. */
main.home .pack.pack--best { border: 2px solid rgba(255, 210, 63, .8); background: linear-gradient(180deg, rgba(255, 210, 63, .07), rgba(255, 210, 63, 0) 70%), #1C1530;
  box-shadow: inset 0 2px 0 #FFE07A, 0 3px 0 var(--ember-deep), 0 0 36px -8px rgba(255, 210, 63, .55); }
main.home .pack.pack--best:hover { border-color: var(--gold); }
main.home .pack.pack--best .pack__tag { background: linear-gradient(90deg, #F0C018, #E8B200); color: #1A0A00; box-shadow: 1px 1px 0 #000; }
main.home .pack.pack--best .pack__price { color: var(--gold); }
@media (forced-colors: active) { main.home .pack.pack--best { border-color: Highlight; } main.home .pack.pack--best .pack__tag { background-image: none; } }

/* ---- Store-first home page (src/pages/index.mjs, src/store.mjs, src/icons.mjs coinArt / gemArt / bundleArt) ----
   Scoped to the store sections: .storehero, .storejump, .sbundle*, .scard*, .srank*, .section--minor, .playblock and the
   shared art (.art, .art-defs). Existing tokens only. Selectors that must beat the launch passes start with "html body".
   Contrast (text on the darkest card stop #150F2B): --fg 15.9:1, --fg-2 10.4:1, --muted 6.1:1, --gold 12.4:1,
   --purple-3 13.6:1; #1A1300 on the gold tag 12.9:1; rank colours are large bold text (PRO #6E9BFF 6.4:1). */
.art-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.art { display: block; width: 100%; height: auto; overflow: visible; }
@media (prefers-reduced-motion: no-preference) {
  .art-glint { transform-box: fill-box; transform-origin: center; animation: art-twinkle 3.8s ease-in-out infinite; }
  .art .art-glint + .art-glint { animation-delay: 1.4s; }
}
@keyframes art-twinkle { 0%, 66%, 100% { opacity: .95; transform: scale(1); } 78% { opacity: .15; transform: scale(.45); } 90% { opacity: 1; transform: scale(1.18); } }

/* Hero: logo, promise, the sale banner and four big store buttons */
html body main.home .storehero { padding-block: clamp(20px, 3vw, 40px) clamp(32px, 4vw, 52px); }
main.home .storehero__in { position: relative; z-index: 1; display: grid; gap: clamp(16px, 2vw, 22px); }
main.home .storehero__head { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "logo eyebrow" "logo title" "logo promise"; align-items: center; gap: 8px clamp(16px, 2.4vw, 28px); min-width: 0; }
main.home .storehero__head > .eyebrow { grid-area: eyebrow; align-self: end; }
main.home .storehero__head > .eyebrow { flex-wrap: nowrap; }
main.home .storehero__head > .eyebrow > span:not(.dot) { min-width: 0; }
main.home .storehero__head > .storehero__title { grid-area: title; }
main.home .storehero__head > .storehero__promise { grid-area: promise; align-self: start; }
main.home .storehero__head > .storehero__logo { grid-area: logo; }
@media (max-width: 599px) { main.home .storehero__head { grid-template-areas: "eyebrow eyebrow" "logo title" "promise promise"; column-gap: 12px; } }
main.home .storehero__logo { width: clamp(60px, 12vw, 132px); height: auto; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .55)) drop-shadow(0 14px 34px rgba(120, 24, 240, .55)); }
html body main.home .storehero .storehero__title { font-size: clamp(1.9rem, 1.1rem + 3.4vw, 3.6rem); line-height: 1; letter-spacing: -.02em; }
main.home .storehero__promise { margin: 0; max-width: 62ch; color: var(--fg-2); font-size: clamp(1rem, .95rem + .3vw, 1.2rem); line-height: 1.45; }
html body main.home .storehero .saleband { justify-content: space-between; text-align: left; padding: 14px 16px 14px 18px; border: 2px solid rgba(255, 210, 63, .7); border-radius: var(--r-md);
  background: linear-gradient(100deg, rgba(255, 210, 63, .14), rgba(138, 75, 255, .14)), #15111F; box-shadow: 0 4px 0 #07060A, 0 4px 0 2px var(--edge); }
html body main.home .storehero .saleband p { flex: 1 1 280px; line-height: 1.45; }
html body main.home .storehero .saleband .btn { min-height: 44px; }
.storejump { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .storejump { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.storejump__btn { --acc: var(--gold); display: grid; justify-items: center; align-content: start; gap: 2px; min-height: 44px; padding: 10px 10px 14px; border: 2px solid var(--edge); border-radius: var(--r-md);
  background: radial-gradient(90% 80% at 50% 25%, rgba(255, 210, 63, .14), transparent 70%), linear-gradient(180deg, #2B1D55, #1A1236); color: var(--fg); text-decoration: none; text-align: center;
  box-shadow: inset 0 3px 0 var(--acc), 0 4px 0 var(--purple-deep), 0 4px 0 2px var(--edge); transition: transform .12s var(--press), box-shadow .15s, border-color .15s; }
.storejump__btn .art { width: min(124px, 92%); aspect-ratio: 120 / 96; margin-bottom: 4px; }
.storejump__btn--bundles { --acc: #FF4FD8; }
.storejump__btn--gems { --acc: var(--purple-2); background: radial-gradient(90% 80% at 50% 25%, rgba(160, 126, 255, .2), transparent 70%), linear-gradient(180deg, #2B1D55, #1A1236); }
.storejump__btn--ranks { --acc: #3DF58F; }
.storejump__label { font: 900 clamp(1.2rem, 1rem + .8vw, 1.5rem)/1 var(--f-display); font-stretch: 115%; letter-spacing: .01em; }
.storejump__sub { font: 700 .875rem/1.2 var(--f-mono); color: var(--gold); }
.storejump__label::after { content: " ›"; color: var(--acc); }
.storejump__btn:hover { border-color: var(--acc); box-shadow: inset 0 3px 0 var(--acc), 0 6px 0 var(--purple-deep), 0 6px 0 2px var(--edge), 0 16px 40px -14px rgba(138, 75, 255, .8); }
.storejump__btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) { .storejump__btn:hover { transform: translateY(-2px); } .storejump__btn:active { transform: translateY(3px); } }

/* Store sections */
main.home .sstore .section__head { margin-bottom: clamp(20px, 2.4vw, 28px); }
html body main.home .storehero + .sstore { padding-top: clamp(36px, 4.5vw, 60px); }
main.home .sstore .curtoggle { margin-bottom: 14px; }
main.home .sstore .noscript { margin-bottom: 16px; }

/* Bundles */
.sbundles { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.sbundle { --rc: var(--purple-2); position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 18px; border: 2px solid var(--edge); border-radius: var(--r-md);
  background: linear-gradient(180deg, #1F1640, #150F2B); box-shadow: inset 0 3px 0 var(--rc), 0 4px 0 #07060A, 0 4px 0 2px var(--edge); }
@supports (background: color-mix(in srgb, red 50%, blue)) {
  .sbundle { background: radial-gradient(110% 70% at 100% 0%, color-mix(in srgb, var(--rc) 20%, transparent), transparent 62%), linear-gradient(180deg, #1F1640, #150F2B); }
}
.sbundle__top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sbundle__top .art { flex: none; width: 108px; }
.sbundle__title { min-width: 0; }
.sbundle__name { font: 900 1.7rem/1 var(--f-display); font-stretch: 118%; letter-spacing: .01em; }
.sbundle__count { display: inline-block; margin: 8px 0 0; padding: 4px 8px; border-radius: var(--r-xs); background: linear-gradient(90deg, #FFE07A, #FFD23F); color: #1A1300; font: 800 .8125rem/1.1 var(--f-mono); box-shadow: 1px 2px 0 #000; }
.sbundle__parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sbundle__part { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 10px; border-radius: var(--r-sm); border: 1px solid var(--line); background: rgba(13, 11, 20, .6); font-weight: 600; color: var(--fg); }
.sbundle__part > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.sbundle__part--rank > span:first-child span { font-weight: 800; letter-spacing: .02em; }
.sbundle__partprice { flex: none; color: var(--fg-2); font-weight: 500; }
.sbundle__prices { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; }
.sbundle__price { margin: 0; color: var(--fg-2); }
.sbundle__now { font-size: 2rem; font-weight: 800; line-height: 1; color: var(--gold); }
.sbundle__price small { font-size: .8125rem; }
.sbundle__deal { margin: 0; font-size: .9rem; font-weight: 600; color: var(--purple-3); }
.sbundle__upgrade { margin: 0; font-size: .875rem; color: var(--fg-2); }
.sbundle .btn { margin-top: auto; }
@media (max-width: 559px) { .sbundle { padding: 14px; gap: 10px; } .sbundle__top .art { width: 88px; } .sbundle__name { font-size: 1.5rem; } .sbundle__parts { gap: 4px; } .sbundle__part { padding: 6px 10px; } .sbundle__now { font-size: 1.75rem; } }
.sbundle .btn:disabled, .scard .btn:disabled { opacity: 1; cursor: not-allowed; color: var(--fg-2); border: 2px dashed var(--line-2); background: rgba(13, 11, 20, .6); box-shadow: none; transform: none; }
/* RAVEN+ bundle: gold edge, magenta top line and crown, so it never looks like the Raven bundle next to it */
.sbundle--plus { border-color: #C98A1A; box-shadow: inset 0 3px 0 #FF4FD8, 0 4px 0 #07060A, 0 4px 0 2px var(--edge); }
@supports (background: color-mix(in srgb, red 50%, blue)) {
  .sbundle--plus { background: radial-gradient(110% 70% at 100% 0%, rgba(255, 79, 216, .18), transparent 62%), linear-gradient(180deg, #241536, #150F2B); }
}
.sbundle__name .crown { width: 1em; height: .78em; vertical-align: -.02em; }

/* Coin and gem cards */
.scards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .scards { gap: 14px; } .scards--coins { grid-template-columns: repeat(4, minmax(0, 1fr)); } .scards--gems { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .scards--gems { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 759px) { .scards--gems .scard:last-child:nth-child(odd) { grid-column: 1 / -1; } .scards--gems .scard:last-child:nth-child(odd) .art { max-width: 190px; } }
.scard { --acc: var(--gold); position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 14px 12px; border: 2px solid var(--edge); border-radius: var(--r-md); text-align: center;
  background: radial-gradient(95% 60% at 50% 28%, rgba(255, 210, 63, .16), transparent 70%), linear-gradient(180deg, #241A48, #150F2B);
  box-shadow: inset 0 3px 0 var(--acc), 0 4px 0 #07060A, 0 4px 0 2px var(--edge); transition: transform .15s var(--ease), box-shadow .15s; }
.scard--gem { --acc: var(--gc, var(--purple-2)); background: radial-gradient(95% 60% at 50% 28%, rgba(160, 126, 255, .2), transparent 70%), linear-gradient(180deg, #241A48, #150F2B); }
@supports (background: color-mix(in srgb, red 50%, blue)) {
  .scard--gem { background: radial-gradient(95% 60% at 50% 28%, color-mix(in srgb, var(--gc, #A07EFF) 24%, transparent), transparent 70%), linear-gradient(180deg, #241A48, #150F2B); }
}
.scard .art { width: 100%; max-width: 168px; }
.scard__amt { margin: 2px 0 0; font: 600 .9375rem/1.2 var(--f-body); color: var(--fg-2); }
.scard__amt strong { display: block; font: 900 clamp(1.45rem, 1.1rem + 1vw, 1.9rem)/1 var(--f-display); font-stretch: 112%; color: var(--fg); text-shadow: 0 3px 0 #000; }
.scard__bonus { margin: 0; font: 500 .8125rem/1.35 var(--f-mono); color: var(--purple-3); text-wrap: balance; }
.scard__bonus--none { color: var(--muted); }
.scard__note { margin: 0; font: 700 .8125rem/1.3 var(--f-body); color: var(--gold); }
.scard__price { margin: auto 0 0; padding-top: 6px; font: 800 1.5rem/1 var(--f-mono); color: var(--fg); }
.scard__price small { font-size: .75rem; font-weight: 600; color: var(--muted); }
.scard__price--soon { font-size: 1rem; color: var(--fg-2); }
.scard .btn { width: 100%; margin-top: 8px; }
.scard__tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); z-index: 1; padding: 4px 9px; border-radius: var(--r-xs); background: linear-gradient(90deg, #FFE07A, #F0C018); color: #1A0A00; font: 800 .75rem/1.1 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; box-shadow: 1px 2px 0 #000; }
.scard--best { border-color: rgba(255, 210, 63, .9); box-shadow: inset 0 3px 0 var(--gold), 0 0 0 1px var(--gold), 0 4px 0 var(--gold-side), 0 4px 0 2px var(--edge), 0 0 40px -8px rgba(255, 210, 63, .5); }
.scard--best .scard__price { color: var(--gold); }
.scards--gems { padding-top: 6px; }
@media (prefers-reduced-motion: no-preference) { .scard:hover, .sbundle:hover, .srank:hover { transform: translateY(-2px); } }
.sbundle, .srank { transition: transform .15s var(--ease); }

/* Rank cards (above the ladder) */
.sranks { list-style: none; margin: 0 0 clamp(24px, 3vw, 36px); padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .sranks { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.srank { --rc: var(--purple-2); position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 18px 14px 14px; border: 2px solid var(--edge); border-radius: var(--r-md); overflow: hidden;
  background: linear-gradient(180deg, #1F1640, #150F2B); box-shadow: 0 4px 0 #07060A, 0 4px 0 2px var(--edge); }
@supports (background: color-mix(in srgb, red 50%, blue)) {
  .srank { background: radial-gradient(120% 70% at 0% 0%, color-mix(in srgb, var(--rc) 22%, transparent), transparent 62%), linear-gradient(180deg, #1F1640, #150F2B); }
}
.srank__bar { position: absolute; inset: 0 0 auto; height: 5px; background: var(--rc); }
.srank__flag { align-self: flex-start; order: -1; margin-bottom: -2px; padding: 3px 7px; border-radius: var(--r-xs); background: var(--gold); color: #1A1300; font: 800 .6875rem/1.1 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; }
.srank__name { margin: 4px 0 0; font: 900 clamp(1.1rem, .62rem + 2.1vw, 1.45rem)/1 var(--f-display); font-stretch: 120%; letter-spacing: .03em; color: var(--rc); text-shadow: 0 2px 0 #000; overflow-wrap: anywhere; }
.srank__name .plus-text { text-shadow: none; filter: drop-shadow(0 2px 0 #000); }
/* RAVEN+ rank card: gold edge, gold-to-magenta bar and a magenta glow (RAVEN keeps its purple bar and glow) */
.srank--sheen { --rc: #FF4FD8; border-color: #C98A1A; }
.srank--sheen .srank__bar { background: var(--plus); }
.srank__name .crown { width: 1.05em; height: .8em; }
.srank[style*="5B8CFF" i] .srank__name { color: #6E9BFF; }
.srank__price { margin: 0; color: var(--muted); font-size: .8125rem; }
.srank__price .mono { font-size: 1.3rem; font-weight: 800; color: var(--fg); }
.srank__pitch { margin: 0; font-size: .875rem; line-height: 1.45; color: var(--fg-2); }
.srank__add { margin-top: auto; }
.srank__pick { margin-top: 2px; }
.no-js .srank__pick { margin-top: auto; }
html body main.home .srank .btn { min-height: 44px; white-space: normal; padding-block: 6px; }

/* Secondary sections: same style, smaller */
html body main.home .section--minor { padding-block: clamp(36px, 4.5vw, 64px); }
main.home .section--minor .section__head h2 { font-size: clamp(1.4rem, 1.05rem + 1.2vw, 1.9rem); }
main.home .section--minor .section__head { margin-bottom: clamp(18px, 2.2vw, 26px); }
main.home .playblock__grid { display: grid; gap: 24px; }
@media (min-width: 980px) { main.home .playblock__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: start; } }
main.home .playblock__copy, main.home .playblock__art { display: grid; gap: 16px; min-width: 0; align-content: start; }
main.home .playblock .section__head { margin-bottom: 0; }
main.home .playblock .ip--hero { justify-self: start; }
@media (max-width: 480px) { main.home .playblock .ip--hero { width: 100%; } main.home .playblock .ip--hero .ip__label { display: none; } }

/* No JavaScript: the store cards are plain HTML, so they stay visible (only the Add buttons hide, via .js-only). */
.no-js main.home .scards { display: grid; }
/* No JavaScript on the gem shop: a plain price list stands in for the script-rendered packs. */
.noscript-list { margin: 0 0 16px; padding-left: 20px; color: var(--fg-2); display: grid; gap: 4px; }

@media (forced-colors: active) {
  .storejump__btn, .sbundle, .scard, .srank, .step--top { border-color: CanvasText; }
  .scard--best { outline: 2px solid Highlight; }
  .sbundle__count, .scard__tag, .srank__flag { background: Canvas; color: CanvasText; border: 1px solid CanvasText; }
  .srank__bar { background: CanvasText; }
}

/* ---- Kit bundles (src/pages/index.mjs #kits, config.kitBundles): one featured All Kits card, then one card grid per group.
   Reuses .scard / .scard__tag / .scard--best. Without JavaScript the cards and prices stay; only the Add buttons hide (.js-only). ---- */
.storejump__btn--kits { --acc: #5B8CFF; }
.storejump--5 .storejump__btn--kits { grid-column: 1 / -1; }
@media (min-width: 760px) { .storejump--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } .storejump--5 .storejump__btn--kits { grid-column: auto; } }
.kitbundles { display: grid; gap: clamp(24px, 2.8vw, 34px); }
.kitgroup { display: grid; gap: 10px; min-width: 0; }
.kitgroup__title { margin: 0; font: 800 clamp(1.05rem, .95rem + .4vw, 1.25rem)/1.2 var(--f-display); font-stretch: 112%; color: var(--fg); }
.kitgroup__price { font: 700 .9rem/1.2 var(--f-mono); color: var(--gold); }
.scards--kits, .scards--kitfeature { padding-top: 10px; row-gap: 24px; }
.scards--kitfeature { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .scards--kits { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .scards--kits { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.scard--kit { padding: 20px 12px 14px; }
.scard__kitinfo { display: grid; gap: 6px; justify-items: center; min-width: 0; max-width: 100%; }
.scard__kit { margin: 0; max-width: 100%; font: 900 clamp(1rem, .82rem + .7vw, 1.3rem)/1.1 var(--f-display); font-stretch: 108%; color: var(--fg); text-shadow: 0 2px 0 #000; overflow-wrap: anywhere; }
@media (max-width: 759px) { .scards--kits .scard__kit { font-size: .9rem; font-stretch: 100%; letter-spacing: -.01em; } .scard--kit { padding-inline: 10px; } }
@media (max-width: 379px) { .scards--kits { grid-template-columns: minmax(0, 1fr); } }
.scard__contents { margin: 0; font: 600 .8125rem/1.35 var(--f-body); color: var(--purple-3); text-wrap: balance; }
.scard__buy { display: grid; width: 100%; margin-top: auto; }
.scard--kit .scard__price { margin: 0; font-size: 1.35rem; }
.scard--kit .scard__price small { display: block; margin-top: 4px; }
.scard--feature .scard__kit { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); }
.scard--feature .scard__contents { font-size: .95rem; }
.scard--feature .scard__price { font-size: 1.8rem; }
@media (min-width: 600px) {
  .scard--feature { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; padding: 24px; text-align: left; }
  .scard--feature .scard__kitinfo { justify-items: start; }
  .scard--feature .scard__buy { width: auto; flex: 0 0 240px; margin-top: 0; text-align: center; }
  .scard--feature .scard__tag { left: 24px; transform: none; }
}
/* Creator heads on kit cards (files in src/assets/img/head-<key>.webp). All Kits: an overlapping row of a few heads. */
.scard__head { display: block; flex: none; width: 64px; height: 64px; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .45)); }
.scard__headimg { display: block; width: 100%; height: 100%; }
.scard__heads { display: flex; flex: none; justify-content: center; padding-left: 20px; }
.scard__heads .scard__headimg { width: 60px; height: 60px; margin-left: -20px; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .45)); }
@media (max-width: 759px) { .scards--kits .scard__head { width: 56px; height: 56px; } }
@media (max-width: 379px) { .scard__heads .scard__headimg { width: 50px; height: 50px; margin-left: -16px; } .scard__heads { padding-left: 16px; } }
@media (min-width: 600px) { .scard--feature .scard__kitinfo { flex: 1 1 auto; } .scard--feature .scard__heads .scard__headimg { width: 72px; height: 72px; margin-left: -24px; } .scard--feature .scard__heads { padding-left: 24px; } }
/* Gens items (#gensitems): same cards as the kit bundles, with a one-line explanation under each group heading. */
.kitgroup__text { margin: -2px 0 2px; max-width: 70ch; color: var(--fg-2); font-size: .95rem; line-height: 1.45; }
/* Community goal bar (partials.mjs goalBar, app.js initGoal). Hidden until /api/goal returns a valid percent. */
.goalbar { display: grid; gap: 8px; min-width: 0; padding: 12px 16px; border: 2px solid var(--edge); border-radius: var(--r-md);
  background: linear-gradient(100deg, rgba(61, 245, 143, .1), rgba(138, 75, 255, .12)), #15111F; box-shadow: 0 4px 0 #07060A, 0 4px 0 2px var(--edge); }
.goalbar[hidden] { display: none; }
.goalbar__text { margin: 0; color: var(--fg-2); line-height: 1.45; }
.goalbar__text strong { color: var(--fg); }
.goalbar__track { height: 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(13, 11, 20, .8); overflow: hidden; }
.goalbar__fill { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3DF58F, #FFD23F); transition: width .6s var(--ease); }
.phero .goalbar { margin-top: 16px; max-width: 640px; }
@media (prefers-reduced-motion: reduce) { .goalbar__fill { transition: none; } }
@media (forced-colors: active) { .goalbar { border-color: CanvasText; } .goalbar__fill { background: Highlight; } }
