/* =============================================================================
   Shaiya Notorious — site theme
   -----------------------------------------------------------------------------
   One dark, blood-and-steel look. Sections, in cascade order:
     1. Tokens          5. Components (buttons, cards, forms, tables, ...)
     2. Base            6. Page sections (hero, rankings, armory, store, ...)
     3. Atmosphere      7. Utilities
     4. Layout          8. Motion & responsive
   Colors only come from tokens. html[data-faction] swaps the secondary tone.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  color-scheme: dark;

  --void: #070405;
  --hull: #120a0c;
  --hull-2: #1d0f13;
  --hull-3: #28141a;
  --line: rgba(230, 140, 150, .13);
  --line-2: rgba(230, 140, 150, .28);
  --ink: #f4eeec;
  --soft: #d9cecc;
  --mute: #a3918f;
  --faint: #6e5f60;

  --blood: #e01b35;
  --blood-hi: #ff3b52;
  --blood-deep: #7a0816;
  --steel: #c3cbd6;
  --ember: #ff7a3d;
  --gold: #e6c88a;
  --aol: #e6c88a;          /* Alliance of Light */
  --uof: #ff2d3f;          /* Union of Fury */
  --ok: #5ff2a6;
  --warn: #ffc35a;
  --bad: #ff5a6e;

  --ion: var(--blood);     /* primary accent: actions */
  --flux: var(--steel);    /* secondary accent: data, focus */
  --on-ion: #fff6f4;

  --crest: "Cinzel", Georgia, "Times New Roman", serif;
  --display: "Tektur", "Bahnschrift", "Arial Narrow", system-ui, sans-serif;
  --body: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --step--1: clamp(.8rem, .78rem + .1vw, .86rem);
  --step-0: clamp(.95rem, .92rem + .15vw, 1.03rem);
  --step-1: clamp(1.15rem, 1.05rem + .45vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.2rem + 1vw, 2rem);
  --step-3: clamp(1.9rem, 1.4rem + 2.2vw, 3.2rem);
  --step-4: clamp(2.4rem, 1.6rem + 4vw, 4.8rem);

  --gutter-l: max(clamp(16px, 4vw, 44px), env(safe-area-inset-left, 0px));
  --gutter-r: max(clamp(16px, 4vw, 44px), env(safe-area-inset-right, 0px));
  --header-h: 64px;
  --radius: 4px;
  --cut: 10px;             /* chamfered corner size */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .9);
}
:root[data-faction="fury"] { --flux: var(--ember); }

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--void); scroll-padding-top: calc(var(--header-h) + 20px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--void); color: var(--ink);
  font: var(--step-0)/1.6 var(--body); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main { flex: 1; }
img, svg, canvas, video { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
a:hover { color: var(--ink); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ion); color: var(--on-ion); }
:focus-visible { outline: 2px solid var(--flux); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.icon { width: 1.1em; height: 1.1em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.15em; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--ion); color: var(--on-ion); text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* 3. Atmosphere ------------------------------------------------------------ */
.sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -3; display: block; background: var(--void); pointer-events: none; }
.sky.is-fallback { background: radial-gradient(60% 50% at 70% 30%, rgba(224, 27, 53, .22), transparent 70%), radial-gradient(50% 50% at 20% 80%, rgba(122, 8, 22, .25), transparent 70%), var(--void); }
.grain { position: fixed; inset: -50%; z-index: -2; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0%,100% { transform: translate(0,0) } 25% { transform: translate(-3%,2%) } 50% { transform: translate(2%,-3%) } 75% { transform: translate(3%,3%) } }
.scanlines { position: fixed; inset: 0; z-index: -2; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.016) 0 1px, transparent 1px 3px); }
.vignette { position: fixed; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0,0,0,.65)); }

/* 4. Layout ---------------------------------------------------------------- */
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.wrap--narrow { max-width: 860px; }
.wrap--wide { max-width: 1480px; }
.section { padding-block: clamp(56px, 8vw, 112px); position: relative; }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }
.section--solid { background: linear-gradient(180deg, rgba(7,4,5,.82), rgba(7,4,5,.94)); }
.stack { display: flex; flex-direction: column; gap: var(--stack-gap, 16px); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cluster-gap, 10px); }
.grid { display: grid; gap: var(--grid-gap, 16px); grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--grid-min, 260px)), 1fr)); }
.split { display: grid; gap: clamp(20px, 3vw, 40px); grid-template-columns: minmax(0, var(--split-a, 1.6fr)) minmax(0, var(--split-b, 1fr)); align-items: start; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 61; background: var(--void); }
.hud { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; view-transition-name: hud;
  background: linear-gradient(180deg, rgba(7,4,5,.94), rgba(7,4,5,.62));
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line); }
.hud__in { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.brand img { display: block; width: 148px; height: auto; }
.nav { display: flex; gap: 2px; margin-left: 6px; }
.nav__link { position: relative; font-size: 14px; text-decoration: none; color: var(--mute); padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; white-space: nowrap; }
.nav__link:hover { color: var(--ink); background: rgba(230,140,150,.08); }
.nav__link[aria-current="page"] { color: var(--ink); }
.nav__link[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--ion); box-shadow: 0 0 10px var(--ion); }
/* Explore dropdown */
.explore { display: flex; }
.explore__button { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; cursor: pointer; font: inherit; font-size: 14px; }
.explore__button.is-active { color: var(--ink); }
.explore__button.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--ion); box-shadow: 0 0 10px var(--ion); }
.explore__chevron { width: 14px; height: 14px; rotate: 90deg; transition: rotate .2s; }
.explore__button[aria-expanded="true"] .explore__chevron { rotate: -90deg; }
.explore .explore__panel { left: 0; right: auto; width: min(560px, 92vw); display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 8px; }
.explore .explore__panel[hidden] { display: none; }
.explore__item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; text-decoration: none; border: 1px solid transparent; }
.explore__item:hover, .explore__item[aria-current="page"] { background: var(--hull-2); border-color: var(--line); }
.explore__item b { display: block; font-size: 14px; color: var(--ink); }
.explore__item small { display: block; font-size: 12px; color: var(--mute); line-height: 1.35; margin-top: 2px; }
.explore__icon { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border: 1px solid var(--line-2); color: var(--ion); background: rgba(224,27,53,.08); }
.explore__icon .icon { width: 18px; height: 18px; }
.hud__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.progress-line { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--blood-deep), var(--ion), var(--flux)); }

.pulse { display: inline-flex; align-items: center; gap: 8px; font: 500 12px var(--mono); color: var(--mute); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; white-space: nowrap; text-decoration: none; }
.pulse b { color: var(--ink); font-weight: 500; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: blink 2.2s infinite; }
.dot--off { background: var(--bad); box-shadow: 0 0 10px var(--bad); animation: none; }
@keyframes blink { 50% { opacity: .35 } }

.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); background: rgba(18,10,12,.6); border-radius: 10px; cursor: pointer; color: var(--soft); transition: border-color .2s, background .2s, color .2s; text-decoration: none; }
.icon-btn:hover { border-color: var(--line-2); background: var(--hull-2); color: var(--ink); }
.kbd-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 12px; border: 1px solid var(--line); background: rgba(18,10,12,.6); border-radius: 10px; cursor: pointer; font-size: 13px; color: var(--mute); }
.kbd-btn:hover { border-color: var(--line-2); color: var(--ink); }
.bell { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: rgba(18,10,12,.6); color: var(--mute); }
.bell:hover { border-color: var(--line-2); color: var(--ink); }
.bell__count { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--ion); color: var(--on-ion); font: 700 10px/18px var(--mono); text-align: center; box-shadow: 0 0 12px rgba(224,27,53,.7); }
kbd { font: 11px var(--mono); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; color: var(--ink); background: rgba(0,0,0,.25); }

/* Account menu */
.menu { position: relative; }
.menu__button { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px 0 6px; border: 1px solid var(--line); background: rgba(18,10,12,.6); border-radius: 999px; cursor: pointer; color: var(--soft); }
.menu__button:hover { border-color: var(--line-2); color: var(--ink); }
.menu__panel { position: absolute; right: 0; top: calc(100% + 10px); width: 260px; padding: 8px; background: rgba(18,10,12,.97); border: 1px solid var(--line-2); box-shadow: var(--shadow); z-index: 70; }
.menu__head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu__head b { display: block; }
.menu__head small { color: var(--mute); font: 12px var(--mono); }
.menu__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; color: var(--soft); text-decoration: none; background: none; border: 0; text-align: left; cursor: pointer; font-size: 14px; border-radius: 3px; }
.menu__item:hover { background: var(--hull-2); color: var(--ink); }
.menu__item--danger:hover { color: var(--bad); }
.avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--blood-deep), var(--ion)); color: var(--on-ion); font: 700 13px var(--display); }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 80; display: grid; grid-template-columns: 1fr min(86vw, 360px); }
.drawer__scrim { background: rgba(3,2,3,.6); backdrop-filter: blur(4px); border: 0; }
.drawer__panel { background: var(--hull); border-left: 1px solid var(--line-2); padding: 18px; padding-right: max(18px, env(safe-area-inset-right)); overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.drawer__panel .nav__link { font-size: 16px; padding: 12px 14px; border-radius: 4px; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: rgba(7,4,5,.94); padding-block: 48px calc(32px + env(safe-area-inset-bottom, 0px)); margin-top: auto; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer h4 { margin: 0 0 12px; font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.footer a { text-decoration: none; color: var(--soft); }
.footer a:hover { color: var(--flux); }
.footer p { color: var(--mute); font-size: 14px; max-width: 42ch; margin-top: 12px; }
.footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font: 12px var(--mono); color: var(--mute); }

/* Page header */
.page-head { padding-block: clamp(40px, 7vw, 88px) clamp(24px, 4vw, 44px); }
.page-head__title { font: 800 var(--step-4)/0.95 var(--crest); text-transform: uppercase; letter-spacing: .01em; }
.page-head__lede { color: var(--mute); max-width: 60ch; margin-top: 14px; font-size: var(--step-1); line-height: 1.5; }
.eyebrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; font: 500 12px var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--flux); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--plain::before { display: none; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 20px 48px; align-items: end; margin-bottom: clamp(28px, 4vw, 52px); }
.section-head h2 { font: 800 var(--step-3)/1 var(--crest); text-transform: uppercase; }
.section-head p { color: var(--mute); margin: 0; max-width: 54ch; }
.section-head .eyebrow { grid-column: 1 / -1; margin-bottom: -4px; }
.section-head__action { justify-self: end; }

/* 5. Components ------------------------------------------------------------ */

/* Buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 20px;
  font: 700 13px var(--display); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; text-decoration: none; cursor: pointer;
  border: 0; color: var(--on-ion); background: var(--ion);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: filter .2s, transform .2s var(--ease), background .3s; }
.btn:hover { color: var(--on-ion); filter: brightness(1.12) saturate(1.1); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; filter: none; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { color: var(--ink); background: color-mix(in srgb, var(--flux) 8%, transparent); box-shadow: inset 0 0 0 1px var(--flux); }
.btn--steel { background: linear-gradient(180deg, #e8ebf1, #9aa2b1 48%, #3b3d47 52%, #b9bfca); color: #160a0d; }
.btn--steel:hover { color: #160a0d; }
.btn--danger { background: var(--bad); }
.btn--sm { height: 36px; padding: 0 14px; font-size: 12px; --cut: 8px; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 14px; --cut: 12px; }
.btn--block { width: 100%; }
.btn[aria-busy="true"] { pointer-events: none; filter: saturate(.6); }
.btn[aria-busy="true"]::after { content: ""; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }
.link { color: var(--flux); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.link:hover { color: var(--ink); text-decoration: underline; }

/* Panels and cards */
.panel { position: relative; border: 1px solid var(--line); background: rgba(18,10,12,.78); padding: clamp(18px, 2.2vw, 26px); min-width: 0; }
.panel--glass { background: rgba(18,10,12,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.panel--accent { border-color: color-mix(in srgb, var(--ion) 60%, transparent); background: linear-gradient(170deg, color-mix(in srgb, var(--ion) 12%, transparent), rgba(18,10,12,.85) 55%); }
.panel__title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; font: 500 11px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.panel__title a { color: var(--flux); text-decoration: none; letter-spacing: .1em; }
.chamfer { clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px); }
.corners { position: relative; }
.corners::before, .corners::after { content: ""; position: absolute; width: 16px; height: 16px; border: 0 solid var(--line-2); pointer-events: none; }
.corners::before { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.corners::after { right: -1px; bottom: -1px; border-right-width: 1px; border-bottom-width: 1px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--line); background: rgba(18,10,12,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.stat { padding: 16px 18px; border-left: 1px solid var(--line); min-width: 0; }
.stat:first-child { border-left: 0; }
.stat dt, .stat__label { font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.stat dd, .stat__value { margin: 6px 0 0; font: 700 clamp(20px, 2vw, 28px) var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat small { font: 12px var(--mono); color: var(--mute); margin-left: 4px; font-weight: 400; }

/* Pills, badges, tags */
.badge { display: inline-flex; align-items: center; gap: 6px; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border: 1px solid currentColor; color: var(--mute); white-space: nowrap; }
.badge--ok { color: var(--ok); } .badge--warn { color: var(--warn); } .badge--bad { color: var(--bad); }
.badge--ion { color: var(--on-ion); background: var(--ion); border-color: var(--ion); }
.badge--gold { color: var(--gold); }
.badge::before { content: none; }
.badge--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.faction { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.faction::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.faction--light { color: var(--aol); } .faction--fury { color: var(--uof); }
.rank { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; font: 600 11px var(--mono); color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); background: rgba(230,200,138,.07); clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px); }
.rank--0 { color: var(--faint); border-color: var(--line); background: none; }
.class-icon { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line-2); border-radius: 50%; font: 700 11px var(--display); color: var(--soft); background: var(--hull-2); }

/* Alerts and toasts */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border: 1px solid var(--line-2); background: var(--hull); font-size: 14px; }
.alert .icon { margin-top: 2px; }
.alert--success { border-color: color-mix(in srgb, var(--ok) 50%, transparent); background: color-mix(in srgb, var(--ok) 7%, var(--hull)); }
.alert--success .icon { color: var(--ok); }
.alert--error { border-color: color-mix(in srgb, var(--bad) 55%, transparent); background: color-mix(in srgb, var(--bad) 8%, var(--hull)); }
.alert--error .icon { color: var(--bad); }
.alert--info .icon { color: var(--flux); }
.flash-stack { position: fixed; z-index: 100; right: max(16px, env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 10px; width: min(420px, calc(100vw - 32px)); }
.flash-stack .alert { box-shadow: var(--shadow); animation: toast-in .45s var(--ease) both; }
.flash-stack .alert.is-leaving { animation: toast-out .35s var(--ease) both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px) } }

/* Forms */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field__label { display: flex; justify-content: space-between; gap: 12px; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.field__hint { margin: 0; font-size: 12.5px; color: var(--mute); }
.field__error { margin: 0; font-size: 13px; color: var(--bad); display: flex; gap: 6px; align-items: center; }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 0 14px; background: rgba(7,4,5,.75); border: 1px solid var(--line-2); color: var(--ink); border-radius: 0; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.textarea { padding: 12px 14px; min-height: 140px; resize: vertical; line-height: 1.55; }
.select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23a3918f' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 14px; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--flux); box-shadow: 0 0 0 3px color-mix(in srgb, var(--flux) 18%, transparent); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--bad); }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 46px; }
.input-wrap__btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: var(--mute); }
.input-wrap__btn:hover { color: var(--ink); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--soft); cursor: pointer; }
.check input { accent-color: var(--ion); width: 17px; height: 17px; margin: 2px 0 0; flex-shrink: 0; }
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.meter i { height: 4px; background: var(--line); transition: background .3s; }
.meter[data-score="1"] i:nth-child(-n+1) { background: var(--bad); }
.meter[data-score="2"] i:nth-child(-n+2) { background: var(--warn); }
.meter[data-score="3"] i:nth-child(-n+3) { background: #b7e36a; }
.meter[data-score="4"] i { background: var(--ok); }

/* Segmented control / tabs */
.seg { display: inline-flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.seg > * { padding: 9px 14px; background: var(--hull); border: 0; color: var(--soft); text-decoration: none; font-size: 13px; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.seg > *:hover { background: var(--hull-2); color: var(--ink); }
.seg > [aria-current="page"], .seg > [aria-pressed="true"], .seg > [aria-selected="true"] { background: var(--hull-2); color: var(--ink); box-shadow: inset 0 -2px 0 var(--ion); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: rgba(18,10,12,.78); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: rgba(7,4,5,.35); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: rgba(230,140,150,.04); }
.table .num, .table th.num { text-align: right; }
.table .muted { color: var(--mute); font-size: 13px; }
.table a { text-decoration: none; }
.table a:hover { color: var(--flux); }
.table--dense td { padding: 8px 12px; } .table--dense th { padding: 9px 12px; }

/* Pagination */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 24px; }
.pager a, .pager span { min-width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0 10px; border: 1px solid var(--line); text-decoration: none; font: 13px var(--mono); color: var(--soft); }
.pager a:hover { border-color: var(--line-2); background: var(--hull-2); color: var(--ink); }
.pager [aria-current="page"] { background: var(--ion); border-color: var(--ion); color: var(--on-ion); }
.pager .gap { border: 0; }

/* Progress / bars */
.bar { height: 6px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; width: var(--value, 0%); background: linear-gradient(90deg, var(--blood-deep), var(--ion)); transition: width .8s var(--ease); }
.bar--split { display: flex; }
.bar--split > i:first-child { background: var(--aol); box-shadow: 0 0 12px var(--aol); }
.bar--split > i:last-child { background: var(--uof); box-shadow: 0 0 12px var(--uof); }

/* Empty state */
.empty { display: grid; justify-items: center; gap: 12px; padding: 48px 20px; text-align: center; color: var(--mute); border: 1px dashed var(--line-2); }
.empty .icon { width: 36px; height: 36px; color: var(--faint); }
.empty h3 { font: 700 var(--step-1) var(--crest); color: var(--soft); }

/* Holographic card (characters, classes) */
.holo { --mx: 50%; --my: 50%; --tone: var(--ion); position: relative; aspect-ratio: 5 / 7; width: 100%; max-width: 420px; transform-style: preserve-3d; transition: transform .5s var(--ease); }
.holo.is-tilting { transition: transform .08s linear; }
.holo__inner { position: absolute; inset: 0; overflow: hidden; display: flex; flex-direction: column; padding: 18px;
  border: 1px solid color-mix(in srgb, var(--tone) 55%, transparent);
  background: radial-gradient(120% 80% at 50% 18%, color-mix(in srgb, var(--tone) 24%, transparent), transparent 60%), linear-gradient(160deg, #1b0b10, #080405 72%);
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
  box-shadow: 0 30px 80px -24px color-mix(in srgb, var(--tone) 40%, transparent); }
.holo__top { display: flex; justify-content: space-between; gap: 8px; font: 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.holo__sigil { flex: 1; min-height: 0; width: 100%; margin: 6px 0; overflow: visible; color: var(--tone); }
.holo__name { font: 900 clamp(26px, 3.2vw, 40px)/1 var(--crest); text-transform: uppercase; overflow-wrap: anywhere; }
.holo__sub { margin-top: 6px; font: 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.holo__foil { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: .28;
  background: repeating-linear-gradient(115deg, rgba(224,27,53,0) 0%, rgba(224,27,53,.6) 7%, rgba(195,203,214,.6) 14%, rgba(230,200,138,.5) 21%, rgba(224,27,53,0) 28%);
  background-size: 220% 220%; background-position: var(--mx) var(--my);
  -webkit-mask: repeating-linear-gradient(0deg, #000 0 1px, rgba(0,0,0,.35) 1px 3px); mask: repeating-linear-gradient(0deg, #000 0 1px, rgba(0,0,0,.35) 1px 3px); }
.holo__glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.26), transparent 42%); mix-blend-mode: overlay; }
.holo--light { --tone: var(--aol); } .holo--fury { --tone: var(--uof); }
.holo--deleted { filter: grayscale(.9) brightness(.7); }
.sigil-spin { animation: spin 40s linear infinite; transform-origin: center; transform-box: fill-box; }
.sigil-spin-r { animation: spin 26s linear infinite reverse; transform-origin: center; transform-box: fill-box; }

/* Command palette / dialogs */
dialog { color: var(--ink); }
.dialog { width: min(560px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line-2); background: rgba(18,10,12,.98); box-shadow: 0 40px 120px -20px rgba(0,0,0,.9); }
.dialog::backdrop { background: rgba(3,2,3,.62); backdrop-filter: blur(6px); }
.dialog__body { padding: clamp(20px, 3vw, 28px); }
.dialog__title { font: 800 var(--step-2) var(--crest); text-transform: uppercase; margin-bottom: 10px; }
.dialog__actions { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); }
.palette { margin-top: 12vh; width: min(640px, calc(100vw - 32px)); }
.palette__input { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.palette__input input { flex: 1; min-width: 0; height: 58px; background: transparent; border: 0; color: var(--ink); font-size: 17px; outline: none; }
.palette__list { list-style: none; margin: 0; padding: 8px; max-height: min(440px, 60vh); overflow-y: auto; }
.palette__item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer; border-radius: 4px; font-size: 15px; }
.palette__item small { margin-left: auto; font: 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.palette__item[aria-selected="true"] { background: var(--hull-2); box-shadow: inset 2px 0 0 var(--ion); }
.palette__empty { padding: 18px 12px; color: var(--mute); font-size: 14px; }
.palette__foot { display: flex; gap: 16px; flex-wrap: wrap; padding: 10px 18px; border-top: 1px solid var(--line); font: 12px var(--mono); color: var(--mute); }

/* Countdown */
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.countdown > div { border: 1px solid var(--line); background: var(--hull); padding: 10px 6px; text-align: center; }
.countdown b { display: block; font: 800 clamp(24px, 2.6vw, 34px)/1 var(--display); font-variant-numeric: tabular-nums; color: var(--ion); }
.countdown span { font: 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }

/* Prose (news bodies) */
.prose { color: var(--soft); max-width: 70ch; font-size: var(--step-0); line-height: 1.75; }
.prose h2, .prose h3 { font-family: var(--crest); color: var(--ink); margin: 1.6em 0 .6em; }
.prose h2 { font-size: var(--step-2); } .prose h3 { font-size: var(--step-1); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose a { color: var(--flux); }
.prose strong { color: var(--ink); }
.prose code { font: .9em var(--mono); background: var(--hull-2); padding: 1px 6px; }
.prose blockquote { margin: 1.2em 0; padding: 4px 18px; border-left: 2px solid var(--ion); color: var(--mute); }

/* 6. Page sections --------------------------------------------------------- */

/* Lede text (auth pages) */
.hero__copy { font-size: var(--step-1); color: var(--soft); max-width: 54ch; line-height: 1.55; }
.hero__copy strong { color: var(--ink); }

/* Home: the opening scene. scene.js feeds --px/--py (pointer) and --sy (scroll). */
.is-home main { margin-top: calc(-1 * var(--header-h)); }
.is-home .hud:not(.is-scrolled) { background: linear-gradient(180deg, rgba(7,4,5,.8), rgba(7,4,5,0)); border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

.cine { --px: 0; --py: 0; --sy: 0; position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-rows: 1fr auto; min-height: max(700px, min(100svh, 1080px)); padding-top: calc(var(--header-h) + 16px); }
.cine__stage { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(110% 80% at 72% 18%, #22080e, #0a0406 62%, var(--void)); }
.cine__moon { position: absolute; right: 7%; top: 8%; width: min(64vmin, 660px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(255,214,196,.5), transparent 30%), radial-gradient(circle at 50% 50%, #e3283d, #a50f22 46%, #4a0610 74%, #1c0207);
  box-shadow: 0 0 90px 14px rgba(224,27,53,.42), 0 0 260px 90px rgba(224,27,53,.2), inset -46px -60px 100px rgba(0,0,0,.7);
  transform: translate3d(calc(var(--px) * -14px), calc(var(--py) * -10px + var(--sy) * 160px), 0);
  animation: moon-rise 2.6s var(--ease) both; }
.cine__moon::before { content: ""; position: absolute; inset: 0; border-radius: 50%; mix-blend-mode: multiply; opacity: .6; animation: spin 300s linear infinite;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.013' numOctaves='5' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .1  0 0 0 0 0  0 0 0 0 0  0 0 0 -2.2 1.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E") center / cover; }
.cine__moon::after { content: ""; position: absolute; inset: -30%; border-radius: 50%; border: 1px solid rgba(255,80,100,.1); }
.cine__halo { position: absolute; inset: -14%; border-radius: 50%; animation: spin 120s linear infinite;
  background: repeating-conic-gradient(rgba(255,90,110,.55) 0 .5deg, transparent .5deg 5deg);
  -webkit-mask: radial-gradient(circle, transparent 66%, #000 66.4%, #000 68%, transparent 68.4%); mask: radial-gradient(circle, transparent 66%, #000 66.4%, #000 68%, transparent 68.4%); }
.cine__ridge { position: absolute; left: -4%; width: 108%; bottom: 0; display: block; }
.cine__ridge--far { height: 64%; transform: translate3d(calc(var(--px) * -10px), calc(var(--sy) * 100px), 0); }
.cine__ridge--mid { height: 50%; transform: translate3d(calc(var(--px) * -24px), calc(var(--sy) * 55px), 0); }
.cine__ridge--near { height: 30%; bottom: -2%; transform: translate3d(calc(var(--px) * -42px), calc(var(--sy) * 12px), 0); }
.cine__window { fill: #ffa24f; filter: drop-shadow(0 0 4px #ff7a3d); animation: flicker 2.8s steps(2) infinite; animation-delay: calc(var(--w) * -.7s); }
.cine__fog { position: absolute; left: -25%; right: -25%; bottom: 16%; height: 26%; filter: blur(28px); opacity: .9; animation: fog 26s ease-in-out infinite alternate;
  background: radial-gradient(ellipse at 28% 60%, rgba(170,30,48,.3), transparent 60%), radial-gradient(ellipse at 74% 50%, rgba(120,18,34,.26), transparent 62%); }
.cine__fog--back { bottom: 34%; opacity: .6; animation-duration: 40s; animation-direction: alternate-reverse; }
.cine__embers { position: absolute; inset: 0; width: 100%; height: 100%; }
.cine__shade { position: absolute; inset: 0; background: radial-gradient(70% 65% at 26% 46%, rgba(7,4,5,.62), transparent 72%), linear-gradient(180deg, transparent 58%, var(--void)); }

.cine__content { align-self: center; position: relative; padding-block: 24px; transform: translate3d(calc(var(--px) * 6px), calc(var(--sy) * -70px), 0); opacity: calc(1 - var(--sy) * 1.3); }
.cine__status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0; font: 500 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); animation: fade-up .9s var(--ease) .1s both; }
.cine__status > span:not(.chip)::before { content: "/"; margin-right: 18px; color: var(--faint); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border: 1px solid currentColor; color: var(--ok); background: rgba(7,4,5,.5); }
.chip i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.chip--live i::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid currentColor; animation: ping 1.8s var(--ease) infinite; }
.chip--down { color: var(--bad); }
.cine__logo { position: relative; width: min(1000px, 100%); margin: 14px 0 0 -1.6%; view-transition-name: logo; animation: logo-in 1.8s var(--ease) .15s both; }
.cine__logo picture, .cine__logo img { display: block; width: 100%; height: auto; }
.cine__logo img { filter: drop-shadow(0 22px 44px rgba(0,0,0,.9)) drop-shadow(0 0 40px rgba(224,27,53,.35)); }
.cine__shine { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(100deg, transparent 38%, rgba(255,236,230,.55) 48%, rgba(255,90,110,.35) 53%, transparent 62%) 150% 0 / 300% 100% no-repeat;
  -webkit-mask: url("../img/notorious-logo.webp") center / 100% 100% no-repeat; mask: url("../img/notorious-logo.webp") center / 100% 100% no-repeat;
  animation: shine 7s ease-in-out 2s infinite; }
.cine__tagline { display: flex; flex-wrap: wrap; gap: .1em .34em; margin: 4px 0 0; perspective: 600px; font: 700 clamp(18px, 2.3vw, 30px)/1.25 var(--crest); letter-spacing: .07em; text-transform: uppercase; }
.cine__tagline span { display: inline-block; animation: word-in .9s var(--ease) both; animation-delay: calc(1s + var(--i) * 85ms); }
.is-blood { color: var(--blood-hi); text-shadow: 0 0 26px rgba(224,27,53,.75); }
.cine__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; animation: fade-up .9s var(--ease) 1.75s both; }

.cine__hud { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 30px; animation: fade-up 1s var(--ease) 2s both; }
.hud-strip { display: grid; grid-template-columns: repeat(4, auto); margin: 0; border: 1px solid var(--line-2); background: rgba(10,5,7,.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.hud-strip > div { padding: 13px 24px; border-left: 1px solid var(--line); min-width: 0; }
.hud-strip > div:first-child { border-left: 0; }
.hud-strip dt { font: 500 10px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.hud-strip dd { margin: 5px 0 0; font: 700 clamp(17px, 1.5vw, 21px)/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hud-strip small { font: 11px var(--mono); color: var(--mute); margin: 0 2px; }
.scroll-cue { display: grid; justify-items: center; gap: 10px; font: 500 10px var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--mute); text-decoration: none; writing-mode: vertical-rl; }
.scroll-cue i { position: relative; width: 1px; height: 64px; background: var(--line-2); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: -1px; width: 3px; height: 18px; background: var(--ion); box-shadow: 0 0 10px var(--ion); animation: descend 2s var(--ease) infinite; }
.scroll-cue:hover { color: var(--ink); }

/* Home: choose a side. --split slides between the halves on hover. */
@property --split { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
.sides { --split: 50%; position: relative; display: grid; grid-template-columns: var(--split) minmax(0, 1fr); min-height: clamp(440px, 62vh, 640px); transition: --split .8s var(--ease); }
.sides:has(.side--light:hover) { --split: 63%; }
.sides:has(.side--fury:hover) { --split: 37%; }
.side { --fc: var(--aol); position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-width: 0; padding: clamp(24px, 4vw, 60px); border: 0; cursor: pointer; text-align: left; color: var(--ink);
  background: radial-gradient(90% 70% at 28% 22%, color-mix(in srgb, var(--fc) 24%, transparent), transparent 70%), linear-gradient(160deg, #1c0b10, #070304 80%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 70px) 100%, 0 100%); transition: filter .5s; }
.side--fury { --fc: var(--uof); justify-content: flex-end; text-align: right; margin-left: -70px;
  background: radial-gradient(90% 70% at 72% 22%, color-mix(in srgb, var(--fc) 26%, transparent), transparent 70%), linear-gradient(200deg, #200a0e, #070304 80%);
  clip-path: polygon(70px 0, 100% 0, 100% 100%, 0 100%); }
.sides:has(.side:hover) .side:not(:hover) { filter: saturate(.5) brightness(.65); }
.side::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s; background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--fc) 20%, transparent), transparent 62%); }
.side:hover::before { opacity: 1; }
.side__art { position: absolute; z-index: -1; top: 6%; left: 50%; width: min(70%, 440px); aspect-ratio: 1; translate: -50% 0; color: var(--fc); opacity: .13; transition: opacity .7s, transform 1.2s var(--ease); filter: drop-shadow(0 0 30px var(--fc)); }
.side__art .icon { width: 100%; height: 100%; stroke-width: .5; }
.side:hover .side__art { opacity: .34; transform: scale(1.07) rotate(8deg); }
.side__word { position: absolute; z-index: -1; left: .1em; top: 64px; font: 900 clamp(64px, 9vw, 160px)/.8 var(--crest); letter-spacing: .02em; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--fc) 32%, transparent); transition: transform 1s var(--ease), -webkit-text-stroke-color .6s; }
.side--fury .side__word { left: auto; right: .1em; }
.side:hover .side__word { transform: translateY(-10px); -webkit-text-stroke-color: color-mix(in srgb, var(--fc) 65%, transparent); }
.side__body { position: relative; display: grid; gap: 8px; max-width: 430px; }
.side__kicker { font: 500 11px var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--fc); }
.side__name { font: 900 var(--step-3)/1 var(--crest); text-transform: uppercase; }
.side__races { font: 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.side__copy { font-size: 15px; line-height: 1.55; color: var(--soft); }
.side__cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; font: 700 12px var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--fc); }
.side--fury .side__cta { justify-self: end; }
.side__cta .icon { transition: transform .4s var(--ease); }
.side:hover .side__cta .icon { transform: translateX(6px); }
.side__pick { position: absolute; top: 22px; left: 26px; padding: 3px 9px; font: 600 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--void); background: var(--fc); opacity: 0; transform: translateY(-6px); transition: opacity .4s, transform .4s var(--ease); }
.side--fury .side__pick { left: auto; right: 26px; }
.side[aria-pressed="true"] { box-shadow: inset 0 3px 0 var(--fc); }
.side[aria-pressed="true"] .side__pick { opacity: 1; transform: none; }
.sides__vs { position: absolute; z-index: 3; top: 50%; left: calc(var(--split) - 35px); translate: -50% -50%; display: grid; place-items: center; width: 74px; height: 74px; pointer-events: none;
  background: var(--void); border: 1px solid var(--line-2); rotate: 45deg; box-shadow: 0 0 0 6px rgba(7,4,5,.6), 0 0 40px rgba(224,27,53,.35); }
.sides__vs span { rotate: -45deg; font: 900 20px var(--crest); color: var(--ink); text-shadow: 0 0 14px var(--ion); }
.tug { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; margin-top: 22px; font: 12px var(--mono); }
.tug__rope { display: flex; height: 8px; background: var(--line); }
.tug__rope i { display: block; height: 100%; transition: width 1s var(--ease); }
.tug__rope i:first-child { position: relative; background: linear-gradient(90deg, transparent, var(--aol)); box-shadow: 0 0 14px color-mix(in srgb, var(--aol) 60%, transparent); }
.tug__rope i:last-child { background: linear-gradient(90deg, var(--uof), transparent); box-shadow: 0 0 14px color-mix(in srgb, var(--uof) 60%, transparent); }
.tug__rope i:first-child::after { content: ""; position: absolute; right: -7px; top: 50%; width: 14px; height: 14px; translate: 0 -50%; rotate: 45deg; background: #fff; box-shadow: 0 0 16px #fff, 0 0 34px var(--ion); }

/* Home: the war room bento */
.bento { display: grid; gap: 14px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.tile { position: relative; isolation: isolate; overflow: hidden; min-width: 0; padding: clamp(18px, 2vw, 28px); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(26,12,16,.88), rgba(10,5,7,.92));
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); transition: border-color .3s; }
.tile:hover { border-color: color-mix(in srgb, var(--ion) 40%, transparent); }
.tile--grb { grid-column: span 5; grid-row: span 2; display: flex; flex-direction: column; }
.tile--bosses { grid-column: span 4; }
.tile--killers { grid-column: span 3; grid-row: span 2; }
.tile--realm { grid-column: span 4; }
.tile__label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 18px; font: 500 11px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.tile__label a, .tile__label span { display: inline-flex; align-items: center; gap: 6px; color: var(--flux); text-decoration: none; letter-spacing: .1em; text-align: right; }
.tile__note { margin: auto 0 0; padding-top: 20px; font-size: 13.5px; color: var(--mute); }
.grb { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; flex: 1; }
.grb__ring { --value: 0%; position: relative; display: grid; place-items: center; width: clamp(130px, 13vw, 176px); aspect-ratio: 1; }
.grb__ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--ion) var(--value), rgba(230,140,150,.1) 0); box-shadow: 0 0 40px -6px rgba(224,27,53,.5);
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%); mask: radial-gradient(circle, transparent 62%, #000 63%); }
.grb__ring::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1px dashed var(--line-2); animation: spin 30s linear infinite; }
.grb__ring .icon { width: 42px; height: 42px; color: var(--ink); filter: drop-shadow(0 0 12px var(--ion)); }
.grb__clock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; flex: 1; min-width: 220px; }
.grb__clock div { text-align: center; padding: 12px 4px 10px; border: 1px solid var(--line); background: rgba(7,4,5,.5); }
.grb__clock b { display: block; font: 800 clamp(26px, 2.5vw, 42px)/1 var(--display); font-variant-numeric: tabular-nums; text-shadow: 0 0 30px rgba(224,27,53,.55); }
.grb__clock span { font: 10px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.hunt { list-style: none; margin: 0; padding: 0; }
.hunt__row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.hunt__row:last-child { border-bottom: 0; }
.hunt__skull .icon { width: 20px; height: 20px; color: var(--ion); }
.hunt__row.is-alive .hunt__skull .icon, .hunt__row:has(.hunt__when--up) .hunt__skull .icon { color: var(--ok); filter: drop-shadow(0 0 6px var(--ok)); }
.hunt__who { display: grid; min-width: 0; }
.hunt__who b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hunt__who small { font: 11px var(--mono); color: var(--mute); }
.hunt__when { display: grid; justify-items: end; gap: 6px; font: 600 13px var(--mono); font-variant-numeric: tabular-nums; }
.hunt__when .bar { width: 92px; height: 3px; }
.hunt__when--up, .hunt__row.is-alive .hunt__when { color: var(--ok); }
.wanted { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.wanted__row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-areas: "pos name kills" "pos cls kills"; column-gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
.wanted__pos { grid-area: pos; font: 800 18px var(--display); color: var(--faint); }
.wanted__name { grid-area: name; font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wanted__name:hover { color: var(--flux); }
.wanted__row .faction { grid-area: cls; font-size: 12px; }
.wanted__kills { grid-area: kills; display: grid; justify-items: end; font: 700 16px var(--display); font-variant-numeric: tabular-nums; }
.wanted__kills small { font: 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.wanted__row--1 { padding: 16px 12px; margin-bottom: 6px; border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); background: linear-gradient(120deg, rgba(230,200,138,.14), transparent 70%); }
.wanted__row--1 .wanted__pos { color: var(--gold); font-size: 26px; text-shadow: 0 0 18px rgba(230,200,138,.6); }
.wanted__row--1 .wanted__name { font: 800 var(--step-1) var(--crest); }
.wanted__row--1 .wanted__kills { color: var(--gold); font-size: 20px; }
.wanted__row--2 .wanted__pos, .wanted__row--3 .wanted__pos { color: var(--steel); }
.realm { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.realm dt { font: 500 10px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.realm dd { margin: 4px 0 0; font: 800 clamp(22px, 2.2vw, 32px)/1 var(--display); font-variant-numeric: tabular-nums; }

/* Home: dispatches and the first-hour path */
.dispatches { display: grid; gap: 14px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.dispatches:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.dispatches .news-card--lead { grid-column: auto; grid-row: span 3; min-height: 300px; align-content: end; padding: clamp(24px, 3.4vw, 44px);
  background: radial-gradient(60% 90% at 100% 0%, rgba(224,27,53,.3), transparent 70%), linear-gradient(165deg, rgba(40,14,20,.92), rgba(10,5,7,.95) 70%); }
.dispatches .news-card--lead h3 { font-size: var(--step-3); line-height: 1.05; max-width: 22ch; }
.dispatches .news-card--lead p { font-size: var(--step-0); max-width: 60ch; }
.news-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font: 600 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--flux); }
.news-card__more .icon { transition: transform .35s var(--ease); }
.news-card:hover .news-card__more .icon { transform: translateX(5px); }
.path { position: relative; list-style: none; margin: 0; padding: 30px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.path::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: linear-gradient(90deg, var(--blood-deep), var(--ion), var(--flux)); box-shadow: 0 0 14px rgba(224,27,53,.6); transform-origin: 0 50%; }
.path__step { position: relative; }
.path__step::before { content: ""; position: absolute; left: 26px; top: -27px; width: 12px; height: 12px; rotate: 45deg; background: var(--void); border: 2px solid var(--ion); box-shadow: 0 0 12px var(--ion); }
.path__step a { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 10px; align-content: start; height: 100%; padding: 24px; text-decoration: none; border: 1px solid var(--line); background: rgba(14,7,9,.9); transition: border-color .3s, transform .4s var(--ease); }
.path__step a:hover { border-color: color-mix(in srgb, var(--ion) 50%, transparent); transform: translateY(-4px); }
.path__num { font: 900 58px/1 var(--crest); color: transparent; -webkit-text-stroke: 1px var(--line-2); transition: -webkit-text-stroke-color .4s, text-shadow .4s; }
.path__step a:hover .path__num { -webkit-text-stroke-color: var(--ion); text-shadow: 0 0 30px rgba(224,27,53,.5); }
.path__step .icon { width: 26px; height: 26px; color: var(--ion); }
.path__step h3 { font: 800 var(--step-1) var(--crest); text-transform: uppercase; }
.path__step p { margin: 0; font-size: 14px; color: var(--mute); }

/* Home: last call */
.last-call { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(100px, 15vw, 190px); text-align: center; border-top: 1px solid var(--line); }
.last-call__moon { position: absolute; z-index: -1; left: 50%; top: 100%; width: min(1200px, 150vw); aspect-ratio: 1; translate: -50% -36%; border-radius: 50%; filter: blur(8px); animation: breathe 7s ease-in-out infinite alternate;
  background: radial-gradient(circle, rgba(224,27,53,.6), rgba(122,8,22,.35) 38%, transparent 66%); }
.last-call .eyebrow { justify-content: center; }
.last-call__title { font: 900 clamp(42px, 7.6vw, 118px)/.95 var(--crest); text-transform: uppercase; letter-spacing: -.005em; }
.last-call__title span { display: block; }
.last-call__title .is-blood { color: transparent; text-shadow: none; background: linear-gradient(90deg, #ff3b52, #ffb199, #e01b35, #7a0816, #ff3b52) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; animation: blood-flow 7s linear infinite; filter: drop-shadow(0 0 34px rgba(224,27,53,.5)); }
.last-call .cine__cta { justify-content: center; animation: none; }

@keyframes moon-rise { from { opacity: 0; translate: 0 18% } }
@keyframes logo-in { from { opacity: 0; transform: scale(1.06); filter: blur(14px) } }
@keyframes word-in { from { opacity: 0; transform: translateY(.7em) rotateX(70deg); filter: blur(8px) } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px) } }
@keyframes shine { 0% { background-position: 150% 0 } 35%, 100% { background-position: -50% 0 } }
@keyframes fog { to { transform: translateX(8%) } }
@keyframes flicker { 50% { opacity: .55 } }
@keyframes ping { to { transform: scale(2.2); opacity: 0 } }
@keyframes descend { from { top: -18px } to { top: 64px } }
@keyframes breathe { to { opacity: .7; scale: 1.06 } }
@keyframes blood-flow { to { background-position: 300% 0 } }


/* Marquee and drips */
.marquee { border-block: 1px solid var(--line); background: rgba(7,4,5,.6); overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; gap: 48px; padding-block: 14px; animation: marquee 44s linear infinite; font: 13px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.marquee__track span { display: inline-flex; align-items: center; gap: 48px; }
.marquee__track span::after { content: ""; width: 6px; height: 6px; background: var(--ion); transform: rotate(45deg); }
.marquee__track b { color: var(--ink); font-weight: 500; }
@keyframes marquee { to { transform: translateX(-50%) } }
.drips { position: relative; height: 0; z-index: 2; pointer-events: none; }
.drips svg { position: absolute; left: 0; top: -1px; width: 100%; height: 110px; overflow: visible; }
.drips path { fill: url(#drip-grad); transform-origin: top; animation: drip var(--d, 9s) ease-in-out var(--dl, 0s) infinite alternate; }
@keyframes drip { from { transform: scaleY(var(--s0, .55)) } to { transform: scaleY(1) } }


/* News */
.news-card { display: grid; gap: 10px; padding: 22px; border: 1px solid var(--line); background: rgba(18,10,12,.78); text-decoration: none; transition: border-color .25s, transform .35s var(--ease); position: relative; overflow: hidden; }
.news-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.news-card::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--ion); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease); }
.news-card:hover::after { transform: scaleX(1); }
.news-card h3 { font: 700 var(--step-1)/1.2 var(--crest); color: var(--ink); }
.news-card p { margin: 0; font-size: 14px; color: var(--mute); }
.news-card__meta { display: flex; gap: 12px; align-items: center; font: 12px var(--mono); color: var(--mute); }
.news-card--lead { grid-column: span 2; padding: 30px; background: linear-gradient(165deg, color-mix(in srgb, var(--ion) 14%, transparent), rgba(18,10,12,.86) 55%); }
.news-card--lead h3 { font-size: var(--step-2); }

/* Rankings */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 14px; align-items: end; margin-bottom: 28px; }
.podium__spot { position: relative; padding: 22px 18px; text-align: center; border: 1px solid var(--line); background: rgba(18,10,12,.82); display: grid; gap: 6px; justify-items: center; text-decoration: none; }
.podium__spot--1 { padding-block: 34px; border-color: color-mix(in srgb, var(--gold) 55%, transparent); background: linear-gradient(180deg, rgba(230,200,138,.14), rgba(18,10,12,.9) 60%); box-shadow: 0 30px 80px -30px rgba(230,200,138,.35); }
.podium__spot--2 { order: -1; }
.podium__place { font: 900 var(--step-3)/1 var(--crest); color: var(--gold); }
.podium__spot--2 .podium__place, .podium__spot--3 .podium__place { color: var(--steel); font-size: var(--step-2); }
.podium__name { font: 800 var(--step-1) var(--crest); overflow-wrap: anywhere; }
.podium__kills { font: 700 var(--step-2) var(--display); font-variant-numeric: tabular-nums; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.filters .input { width: auto; flex: 1 1 200px; min-height: 40px; }
.filters .select { width: auto; min-height: 40px; }
.player-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.player-cell b { font-weight: 600; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex-shrink: 0; }
.online-dot.is-on { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.position { font: 700 15px var(--display); color: var(--mute); width: 34px; display: inline-block; }

/* Boss timers */
.boss-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.boss { background: var(--hull); padding: 18px; display: grid; gap: 8px; position: relative; overflow: hidden; }
.boss__name { font: 700 var(--step-1) var(--crest); }
.boss__zone { font: 12px var(--mono); color: var(--mute); letter-spacing: .06em; }
.boss__time { font: 700 var(--step-2) var(--display); font-variant-numeric: tabular-nums; }
.boss.is-alive .boss__time { color: var(--ok); }
.boss.is-soon .boss__time { color: var(--warn); }
.boss .bar > i { background: linear-gradient(90deg, var(--blood-deep), var(--flux)); }

/* 3D character stage (model-viewer.js). Falls back to the holo card. */
.stage { --tone: var(--aol); position: relative; margin: 0; aspect-ratio: 4 / 5; width: 100%; max-width: 460px; isolation: isolate; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--tone) 40%, transparent);
  background: radial-gradient(60% 45% at 50% 88%, color-mix(in srgb, var(--tone) 30%, transparent), transparent 70%), radial-gradient(80% 60% at 50% 30%, rgba(40,14,20,.9), #070304 75%);
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px); }
.stage--fury { --tone: var(--uof); }
.stage::before { content: ""; position: absolute; left: 50%; bottom: 15%; width: 56%; height: 8%; translate: -50% 0; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tone) 55%, transparent), transparent); filter: blur(6px); animation: breathe 4s ease-in-out infinite alternate; }
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 1px, transparent 1px 3px); }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; opacity: 0; transition: opacity .8s var(--ease); }
.stage canvas:active { cursor: grabbing; }
.stage.is-ready canvas { opacity: 1; }
.stage__fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 6%; transition: opacity .6s; }
.stage__fallback .holo { max-width: 100%; }
.stage.is-ready .stage__fallback, .stage.is-loading .stage__fallback { opacity: 0; pointer-events: none; }
.stage__loading { position: absolute; inset: 0; display: none; place-content: center; justify-items: center; gap: 14px; font: 500 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.stage__loading i { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--tone); animation: spin 1s linear infinite; }
.stage.is-loading .stage__loading { display: grid; }
.stage__hint { position: absolute; top: 14px; left: 0; right: 0; text-align: center; font: 10px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--faint); opacity: 0; transition: opacity .6s; }
.stage.is-ready .stage__hint { opacity: 1; }
.stage__motions { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.motion { padding: 5px 9px; border: 1px solid var(--line-2); background: rgba(7,4,5,.72); color: var(--soft); font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; backdrop-filter: blur(6px); transition: border-color .2s, color .2s, background .2s; }
.motion:hover { color: var(--ink); border-color: var(--tone); }
.motion[aria-pressed="true"] { color: var(--void); background: var(--tone); border-color: var(--tone); }
.stage.is-failed::after { content: attr(data-error); position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; padding: 10px 12px; text-align: center; font: 12px/1.5 var(--body); color: var(--ink); background: rgba(7,4,5,.92); border: 1px solid color-mix(in srgb, var(--warn) 60%, transparent); }

/* Item icons (game atlases, ItemIcons.php) and the armory's equipment list */
.item-icon { display: inline-block; flex-shrink: 0; width: var(--s, 32px); height: var(--s, 32px); background-repeat: no-repeat; image-rendering: auto; border: 1px solid var(--line-2); box-shadow: inset 0 0 0 1px rgba(0,0,0,.6), 0 4px 12px -4px rgba(0,0,0,.8); background-color: #0b0507; }
.item-icon--none { background: radial-gradient(circle, var(--hull-3), #0b0507); }
.gear { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.gear__item { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid transparent; transition: border-color .2s, background .2s; }
.gear__item:hover { border-color: var(--line); background: rgba(230,140,150,.04); }
.gear__text { display: grid; min-width: 0; }
.gear__text b { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gear__text small { font: 11px var(--mono); color: var(--mute); letter-spacing: .04em; }
.gear__plus { color: var(--gold); text-shadow: 0 0 10px rgba(230,200,138,.5); }
.gear__lapis { color: var(--flux) !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Live world map (live-map.js) */
.atlas { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(16px, 2.5vw, 32px); align-items: start; }
.atlas__maps { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; border: 1px solid var(--line); background: rgba(14,7,9,.85); padding: 14px 8px; }
.atlas__maps .eyebrow { padding: 0 8px 8px; }
.atlas__maps ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.atlas__maps a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; text-decoration: none; color: var(--soft); font-size: 14px; border-left: 2px solid transparent; }
.atlas__maps a:hover { background: var(--hull-2); color: var(--ink); }
.atlas__maps a[aria-current="page"] { border-left-color: var(--ion); background: var(--hull-2); color: var(--ink); }
.atlas__count { display: inline-flex; gap: 8px; font: 600 11px var(--mono); }
.atlas__count i { font-style: normal; font-size: 11px; }
.atlas__map { margin: 0; }
.atlas__frame { position: relative; isolation: isolate; aspect-ratio: 1; width: min(100%, 860px); border: 1px solid var(--line-2); box-shadow: var(--shadow), 0 0 80px -30px rgba(224,27,53,.45); overflow: hidden; background: #0b0507; }
.atlas__frame img { display: block; width: 100%; height: 100%; filter: sepia(.25) saturate(.85) brightness(.82) contrast(1.05); }
.atlas__frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(75% 75% at 50% 50%, transparent 55%, rgba(7,4,5,.75)); }
.atlas__sweep { position: absolute; inset: -50%; z-index: 1; pointer-events: none; background: conic-gradient(from 0deg, rgba(224,27,53,.16), transparent 14%); animation: spin 8s linear infinite; mix-blend-mode: screen; }
.atlas__pins { position: absolute; inset: 0; z-index: 2; }
.atlas__heat { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; mix-blend-mode: screen; pointer-events: none; }
.atlas__bosses { position: absolute; inset: 0; z-index: 2; }
.boss-pin { --c: #ff7a3d; position: absolute; width: 22px; height: 22px; translate: -50% -50%; rotate: 45deg; border: 2px solid var(--c); background: rgba(7,4,5,.85); box-shadow: 0 0 14px var(--c); text-decoration: none; }
.boss-pin::after { content: ""; position: absolute; inset: 5px; background: var(--c); }
.boss-pin.is-up { --c: var(--ok); animation: blink 1.6s infinite; }
.boss-pin .pin__tag { rotate: -45deg; --c: #ff7a3d; }
.boss-pin:hover .pin__tag, .boss-pin:focus .pin__tag { opacity: 1; translate: -50% 0; }
.boss-pin:hover { z-index: 3; }
.atlas__layers { display: inline-flex; flex-wrap: wrap; gap: 14px; margin-left: auto; }
.atlas__layers .check { font-size: 13px; }
.pin { --c: var(--aol); position: absolute; width: 14px; height: 14px; translate: -50% -50%; cursor: pointer; outline: none; }
.pin--fury { --c: var(--uof); }
.pin i { position: absolute; inset: 3px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c), 0 0 0 2px rgba(7,4,5,.8); }
.pin i::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--c); animation: ping 2.4s var(--ease) infinite; }
.pin__tag { position: absolute; left: 50%; bottom: calc(100% + 6px); translate: -50% 4px; white-space: nowrap; padding: 4px 8px; font: 11px var(--mono); color: var(--soft); background: rgba(7,4,5,.92); border: 1px solid var(--c); opacity: 0; pointer-events: none; transition: opacity .2s, translate .2s var(--ease); }
.pin__tag b { color: var(--ink); }
.pin:hover .pin__tag, .pin:focus .pin__tag { opacity: 1; translate: -50% 0; }
.pin:hover, .pin:focus { z-index: 3; }
.atlas__caption { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; margin-top: 12px; font-size: 14px; }
.atlas__caption .faction { margin-right: 4px; }
.atlas__caption > b { font: 800 var(--step-1) var(--crest); text-transform: uppercase; }

/* Bestiary */
.beasts { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); margin-bottom: 20px; }
.beast { position: relative; isolation: isolate; display: flex; align-items: center; gap: 14px; padding: 12px 14px; text-decoration: none; border: 1px solid var(--line); background: rgba(14,7,9,.85); transition: border-color .25s, transform .3s var(--ease); }
.beast:hover { border-color: color-mix(in srgb, var(--ion) 50%, transparent); transform: translateY(-2px); }
.beast__level { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; font: 800 15px var(--display); color: var(--ink); border: 1px solid var(--line-2); background: radial-gradient(circle, rgba(224,27,53,.25), transparent 70%); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.beast__body { display: grid; min-width: 0; flex: 1; }
.beast__body b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.beast__body small { font: 11px var(--mono); color: var(--mute); }
.beast__element { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); flex-shrink: 0; }
.beast__element--fire { background: #ff6a3d; box-shadow: 0 0 8px #ff6a3d; }
.beast__element--water { background: #4fb3ff; box-shadow: 0 0 8px #4fb3ff; }
.beast__element--earth { background: #b98b4e; box-shadow: 0 0 8px #b98b4e; }
.beast__element--wind { background: #7ff0b0; box-shadow: 0 0 8px #7ff0b0; }
.loot { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.loot__slot .gear { max-height: 340px; overflow-y: auto; grid-template-columns: minmax(0, 1fr); }
@media (max-width: 920px) {
  .atlas { grid-template-columns: minmax(0, 1fr); }
  .atlas__maps { position: static; max-height: 220px; }
}

/* Live chat (live-chat.js) */
.comms { border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(20,9,12,.92), rgba(8,4,6,.95)); box-shadow: var(--shadow); }
.comms__tabs { display: flex; width: 100%; border: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.comms__tabs > * { flex: 1 0 auto; }
.comms__screen { position: relative; height: min(64vh, 640px); overflow-y: auto; padding: 10px 0; font-size: 14px; scrollbar-width: thin; }
.comms__log { list-style: none; margin: 0; padding: 0; }
.msg { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 5px 18px; border-left: 2px solid transparent; animation: fade-up .35s var(--ease) both; }
.msg:hover { background: rgba(230,140,150,.04); }
.msg time { font: 11px var(--mono); color: var(--faint); min-width: 38px; }
.msg__tag { font: 600 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 1px 6px; border: 1px solid currentColor; color: var(--mute); }
.msg__who { text-decoration: none; font-weight: 600; font-size: 14px; }
.msg__who:hover { text-decoration: underline; }
.msg__to, .msg__map { font: 11px var(--mono); color: var(--mute); }
.msg__text { flex: 1 1 260px; color: var(--soft); overflow-wrap: anywhere; }
.msg--trade .msg__tag { color: #6fd3ff; } .msg--trade { border-left-color: rgba(111,211,255,.4); }
.msg--yell .msg__tag { color: #ffb84d; } .msg--yell .msg__text { color: #ffd59a; }
.msg--guild .msg__tag { color: var(--ok); } .msg--guild .msg__text { color: #b9f5d4; }
.msg--whisper .msg__tag { color: #e08cff; } .msg--whisper .msg__text { color: #f0c8ff; } .msg--whisper { border-left-color: rgba(224,140,255,.5); }
.msg--party .msg__tag { color: #8fb3ff; }
.msg--notice { border-left-color: var(--ion); background: linear-gradient(90deg, rgba(224,27,53,.16), transparent 70%); }
.msg--notice .msg__tag { color: var(--on-ion); background: var(--ion); border-color: var(--ion); }
.msg--notice .msg__text { color: var(--ink); font-weight: 600; }
.msg--mine .msg__text { color: var(--ink); }
.comms__empty { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--mute); font-size: 14px; }
.comms__jump { position: sticky; bottom: 8px; left: 50%; translate: -50% 0; display: block; margin: 0 auto; padding: 6px 14px; border: 1px solid var(--ion); background: rgba(7,4,5,.92); color: var(--ink); font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.comms__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 12px 18px; border-top: 1px solid var(--line); }

/* Blacksmith */
.pill-gold { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); color: var(--gold); font: 600 13px var(--mono); }
.forge { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 20px; align-items: start; }
.forge__items .gear { grid-template-columns: minmax(0, 1fr); max-height: 70vh; overflow-y: auto; }
.forge__items a.gear__item { text-decoration: none; }
.gear__item.is-active { border-color: var(--ion); background: linear-gradient(90deg, rgba(224,27,53,.16), transparent); }
.forge__head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; padding: 18px; border: 1px solid var(--line-2); background: radial-gradient(80% 140% at 0% 50%, rgba(224,27,53,.18), transparent 70%), rgba(14,7,9,.9); }
.forge__head .item-icon { box-shadow: 0 0 30px -4px rgba(224,27,53,.6), inset 0 0 0 1px rgba(0,0,0,.6); }
.station { display: grid; gap: 14px; align-content: start; }
.odds { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); background: rgba(7,4,5,.5); }
.odds b { font: 800 var(--step-3)/1 var(--display); color: var(--gold); text-shadow: 0 0 22px rgba(230,200,138,.4); }
.odds span { font-size: 12.5px; color: var(--mute); }
.sockets { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.socket { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px dashed var(--line-2); font-size: 14px; color: var(--mute); }
.socket form { margin-left: auto; }
.socket.is-full { border-style: solid; color: var(--ink); }
.socket__gem { width: 16px; height: 16px; rotate: 45deg; border: 1px solid var(--line-2); flex-shrink: 0; }
.socket.is-full .socket__gem { background: linear-gradient(135deg, #8fd3ff, #4a5bff); border-color: #8fd3ff; box-shadow: 0 0 12px #6fb0ff; }
.orange { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.orange div { position: relative; padding: 8px 10px; border: 1px solid var(--line); overflow: hidden; }
.orange dt { font: 10px var(--mono); letter-spacing: .14em; color: var(--mute); }
.orange dd { margin: 2px 0 0; font: 800 20px var(--display); color: #ffae5c; }
.orange i { position: absolute; left: 0; bottom: 0; height: 2px; width: var(--value); background: #ff9a3d; box-shadow: 0 0 8px #ff9a3d; }
@media (max-width: 920px) { .forge { grid-template-columns: minmax(0, 1fr); } }

/* Item database */
.item-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); margin-bottom: 16px; }
.item-grid a.gear__item { text-decoration: none; border-color: var(--line); background: rgba(14,7,9,.8); }
.gallery-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); max-height: 62vh; overflow-y: auto; align-content: start; }
.gallery-list a.gear__item { padding: 10px 12px; }
.npc-dot { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border: 1px solid var(--line-2); background: var(--hull-2); color: var(--soft); }
.npc-dot--light { border-color: color-mix(in srgb, var(--aol) 50%, transparent); color: var(--aol); }
.npc-dot--fury { border-color: color-mix(in srgb, var(--uof) 50%, transparent); color: var(--uof); }
.npc-dot .icon { width: 18px; height: 18px; }
.quest-text mark { background: none; color: var(--gold); font-weight: 600; }
.item-hero { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.item-hero .item-icon { box-shadow: 0 0 50px -8px rgba(224,27,53,.6), inset 0 0 0 1px rgba(0,0,0,.6); }

/* Activity feed and hall of fame */
.tile--feed { grid-column: 1 / -1; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.feed__item { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.feed__item:last-child { border-bottom: 0; }
.feed__icon .icon { width: 18px; height: 18px; color: var(--mute); }
.feed__item--boss .feed__icon .icon { color: var(--ion); filter: drop-shadow(0 0 6px var(--ion)); }
.feed__item--enchant .feed__icon .icon { color: var(--gold); }
.feed__text a { text-decoration: none; }
.feed__text a:hover { color: var(--flux); }
.feed__item time { font: 11px var(--mono); color: var(--faint); white-space: nowrap; }
.fame { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.fame__row { display: grid; grid-template-columns: 26px 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.fame__pos { font: 800 15px var(--display); color: var(--faint); }
.fame__row:nth-child(-n+3) .fame__pos { color: var(--gold); }
.fame__plus { font: 800 18px var(--display); color: var(--gold); text-shadow: 0 0 14px rgba(230,200,138,.45); }
.gear__text small a { text-decoration: none; font-size: 11px; }

/* Guild page */
.guild-banner { --tone: var(--aol); position: relative; isolation: isolate; padding-bottom: 28px; border-bottom: 1px solid var(--line); background: radial-gradient(60% 120% at 85% 0%, color-mix(in srgb, var(--tone) 22%, transparent), transparent 70%); }
.guild-banner--fury { --tone: var(--uof); }
.guild-banner__in { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.guild-banner__crest { display: grid; place-items: center; width: 120px; height: 120px; flex-shrink: 0; color: var(--tone); border: 1px solid color-mix(in srgb, var(--tone) 50%, transparent); background: radial-gradient(circle, color-mix(in srgb, var(--tone) 22%, transparent), transparent 70%); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); filter: drop-shadow(0 0 20px var(--tone)); }
.guild-banner__crest .icon { width: 64px; height: 64px; stroke-width: 1; }
.guild-banner__notice { margin: 14px 0 0; padding-left: 14px; border-left: 2px solid var(--tone); font: italic var(--step-1) var(--crest); color: var(--soft); }

/* Achievements */
.deeds { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.deed { display: grid; justify-items: center; gap: 6px; padding: 18px 12px; text-align: center; border: 1px solid var(--line); background: rgba(14,7,9,.7); opacity: .42; filter: grayscale(1); transition: opacity .3s, filter .3s, border-color .3s; }
.deed:hover { opacity: .7; }
.deed.is-earned { opacity: 1; filter: none; border-color: color-mix(in srgb, var(--gold) 45%, transparent); background: radial-gradient(80% 80% at 50% 0%, rgba(230,200,138,.14), transparent 70%), rgba(14,7,9,.85); }
.deed__icon { display: grid; place-items: center; width: 52px; height: 52px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--hull-3); }
.deed.is-earned .deed__icon { background: linear-gradient(160deg, #f4dfa8, #9a7a3a); color: #1a0d05; box-shadow: 0 0 20px rgba(230,200,138,.5); }
.deed__icon .icon { width: 24px; height: 24px; }
.deed b { font: 800 var(--step-0) var(--crest); text-transform: uppercase; }
.deed small { font-size: 12px; color: var(--mute); }

/* Armory (character profile) */
.armory { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.armory__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0; }
.armory__facts div { background: var(--hull); padding: 14px 16px; }
.armory__facts dt { font: 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.armory__facts dd { margin: 4px 0 0; font: 600 var(--step-1) var(--display); font-variant-numeric: tabular-nums; }

/* Account */
.account-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.side-nav { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; text-decoration: none; color: var(--soft); font-size: 14px; border-left: 2px solid transparent; transition: background .2s, border-color .2s, color .2s; }
.side-nav a:hover { background: var(--hull-2); color: var(--ink); }
.side-nav a[aria-current="page"] { border-left-color: var(--ion); background: var(--hull-2); color: var(--ink); }
.side-nav__label { margin: 14px 14px 4px; font: 10px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.side-nav__who { margin: 0 14px 6px; font-size: 12px; color: var(--mute); }
.side-nav__who b { color: var(--gold); font-weight: 600; }
/* A panel opened from the staff menu (#anchor) flashes so the eye finds it. */
.admin__main [id]:target { scroll-margin-top: calc(var(--header-h) + 24px); animation: target-flash 1.6s var(--ease) 2; }
@keyframes target-flash { 50% { box-shadow: 0 0 0 2px var(--ion), 0 0 40px -6px rgba(224,27,53,.6); } }
.wallet { display: flex; align-items: baseline; gap: 10px; font: 800 var(--step-3) var(--display); font-variant-numeric: tabular-nums; }
.wallet small { font: 12px var(--mono); color: var(--mute); }
.char-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.char-grid .holo { max-width: none; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.timeline li::before { content: ""; width: 8px; height: 8px; background: var(--ion); transform: rotate(45deg) translateY(2px); }
.timeline time { font: 12px var(--mono); color: var(--mute); white-space: nowrap; }

/* Vote and reward tiles */
.reward-tile { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--line); background: rgba(18,10,12,.82); position: relative; }
.reward-tile.is-ready { border-color: color-mix(in srgb, var(--ion) 55%, transparent); }
.reward-tile__points { font: 800 var(--step-2) var(--display); color: var(--gold); }
.reward-tile.is-claimed { opacity: .55; }
.ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--ion) calc(var(--p) * 1%), var(--line) 0); }
.ring span { width: 52px; height: 52px; border-radius: 50%; background: var(--hull); display: grid; place-items: center; font: 600 11px var(--mono); }

/* Store */
.product { display: grid; grid-template-rows: auto 1fr auto; border: 1px solid var(--line); background: rgba(18,10,12,.82); transition: border-color .25s, transform .35s var(--ease); min-width: 0; }
.product:hover { border-color: var(--line-2); transform: translateY(-3px); }
.product__art { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; background: radial-gradient(70% 70% at 50% 45%, color-mix(in srgb, var(--ion) 22%, transparent), transparent 70%), #0b0507; border-bottom: 1px solid var(--line); overflow: hidden; }
.product__art img { max-width: 60%; max-height: 70%; image-rendering: auto; filter: drop-shadow(0 10px 20px rgba(0,0,0,.6)); }
.product__art .icon { width: 56px; height: 56px; color: var(--steel); }
.product__tag { position: absolute; top: 10px; left: 10px; }
.product__body { padding: 16px; display: grid; gap: 6px; align-content: start; }
.product__body h3 { font: 700 var(--step-0) var(--display); letter-spacing: .04em; text-transform: uppercase; }
.product__body p { margin: 0; font-size: 13px; color: var(--mute); }
.product__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); }
.price { font: 700 var(--step-1) var(--display); font-variant-numeric: tabular-nums; color: var(--gold); white-space: nowrap; }
.price small { font: 11px var(--mono); color: var(--mute); margin-left: 4px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); }
.qty button { width: 32px; height: 32px; background: none; border: 0; cursor: pointer; color: var(--soft); }
.qty input { width: 42px; height: 32px; text-align: center; background: none; border: 0; border-inline: 1px solid var(--line-2); color: var(--ink); -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { appearance: none; }
.package { display: grid; gap: 10px; padding: 24px; border: 1px solid var(--line); background: rgba(18,10,12,.82); text-align: center; position: relative; }
.package.is-featured { border-color: var(--ion); background: linear-gradient(180deg, color-mix(in srgb, var(--ion) 14%, transparent), rgba(18,10,12,.9) 50%); }
.package__points { font: 900 var(--step-3)/1 var(--display); font-variant-numeric: tabular-nums; }
.package__bonus { color: var(--ok); font: 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.package__price { font: 700 var(--step-1) var(--display); color: var(--gold); }

/* Auth pages */
.auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(24px, 5vh, 56px); min-height: calc(100vh - var(--header-h) - 120px); }
.auth__card { position: relative; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(31,16,20,.9), rgba(12,6,8,.95)); box-shadow: var(--shadow), 0 0 80px -30px rgba(224,27,53,.45); clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px); }
.auth__card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--ion), var(--flux), transparent); }
.auth__body { padding: clamp(22px, 3vw, 34px); }
.auth__title { font: 800 var(--step-2) var(--crest); text-transform: uppercase; }
.auth__sub { color: var(--mute); margin: 6px 0 22px; font-size: 14px; }
.auth__tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.auth__tabs a { position: relative; padding: 18px 12px; text-align: center; font: 700 13px var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); text-decoration: none; }
.auth__tabs a[aria-current="page"] { color: var(--ink); }
.auth__tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: -1px; height: 2px; background: var(--ion); }
.auth__alt { text-align: center; color: var(--mute); font-size: 14px; margin: 4px 0 0; }

/* Staff panel */
.admin { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: calc(100vh - var(--header-h)); }
.admin__side { border-right: 1px solid var(--line); background: rgba(10,5,7,.92); padding: 18px 10px; position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto; }
.admin__main { padding: clamp(18px, 3vw, 36px); min-width: 0; background: rgba(7,4,5,.86); }
.admin__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.admin__head h1 { font: 800 var(--step-3) var(--crest); text-transform: uppercase; }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 24px; }
.kpi { border: 1px solid var(--line); background: var(--hull); padding: 16px 18px; display: grid; gap: 4px; }
.kpi__label { font: 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.kpi__value { font: 800 clamp(24px, 2.4vw, 32px) var(--display); font-variant-numeric: tabular-nums; }
.kpi__note { font-size: 12px; color: var(--mute); }
/* Inline-editable rows (rewards setup) */
.row-form { display: grid; gap: 8px; align-items: end; padding: 10px 0; border-bottom: 1px solid var(--line); }
.row-form .input, .row-form .select { min-height: 38px; font-size: 14px; }
.row-form .field__label { font-size: 10px; }
.row-form--promo { grid-template-columns: 1.2fr .8fr .8fr 1.2fr 1.2fr auto auto; }
.row-form--vote { grid-template-columns: 1fr 2fr .7fr .7fr 1fr .5fr auto auto; }
.row-form--tier { grid-template-columns: .8fr 1.2fr 1.6fr .8fr .6fr auto auto; }
.row-form--package { grid-template-columns: 1.2fr .7fr .5fr .8fr .8fr .5fr auto auto auto; }
@media (max-width: 1100px) { .row-form { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* Error pages */
.error-page { display: grid; place-items: center; text-align: center; padding-block: 12vh; gap: 18px; }
.error-page__code { font: 900 clamp(90px, 22vw, 220px)/.85 var(--crest); color: transparent; -webkit-text-stroke: 2px var(--ion); text-shadow: 0 0 60px rgba(224,27,53,.35); }
.error-page h1 { font: 800 var(--step-3) var(--crest); text-transform: uppercase; }
.error-page p { color: var(--mute); max-width: 52ch; }
.debug-trace { text-align: left; max-width: 100%; overflow-x: auto; padding: 16px; border: 1px solid var(--line-2); background: #040203; font: 12px/1.6 var(--mono); color: var(--soft); white-space: pre-wrap; }


/* 6b. Site-wide finish ----------------------------------------------------- */

/* Headings in brushed steel with a blood slash underneath. */
.section-head h2, .page-head__title {
  background: linear-gradient(180deg, #fff 0%, #e6dcda 45%, #9a8788 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head h2::after, .page-head__title::after { content: ""; display: block; width: 88px; height: 3px; margin-top: 16px; background: linear-gradient(90deg, var(--ion), var(--flux) 60%, transparent); box-shadow: 0 0 14px rgba(224,27,53,.6); }
.page-head { position: relative; isolation: isolate; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(45% 130% at 88% 0%, rgba(224,27,53,.2), transparent 70%); }
.page-head__title { animation: wipe-in 1s var(--ease) both; }
.page-head .eyebrow, .page-head__lede { animation: fade-up .8s var(--ease) .25s both; }
@keyframes wipe-in { from { clip-path: inset(0 100% -40% 0); } to { clip-path: inset(0 0 -40% 0); } }

/* A light sweep across every button; the blade button also leans toward the pointer. */
.btn { overflow: hidden; }
.btn::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.4) 50%, transparent 70%); translate: -130% 0; transition: translate .8s var(--ease); }
.btn:hover::before { translate: 130% 0; }
.btn--blade { background: linear-gradient(135deg, #ff4a60, #e01b35 45%, #8f0b1c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), inset 0 -12px 22px rgba(0,0,0,.28); transition: filter .2s, translate .25s var(--ease), background .3s; }
.btn--blade:hover { transform: none; }

/* Cards light up where the pointer is (spotlight.js sets --mx / --my). */
.tile, .panel, .news-card, .path__step a, .product, .package, .reward-tile, .boss, .kpi { isolation: isolate; }
.product, .package, .kpi { position: relative; }
.tile::before, .panel::before, .news-card::before, .path__step a::before, .product::before, .package::before, .reward-tile::before, .boss::before, .kpi::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .45s;
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--ion) 15%, transparent), transparent 62%); }
.tile:hover::before, .panel:hover::before, .news-card:hover::before, .path__step a:hover::before, .product:hover::before, .package:hover::before, .reward-tile:hover::before, .boss:hover::before, .kpi:hover::before { opacity: 1; }

/* Header tightens once you scroll. */
.hud__in { transition: height .35s var(--ease); }
.hud.is-scrolled .hud__in { height: 56px; }
.hud.is-scrolled { box-shadow: 0 12px 40px -18px rgba(0,0,0,.9); }

html { scrollbar-color: #5a1220 var(--void); scrollbar-width: thin; }

/* Home layout at smaller sizes */
@media (max-width: 1200px) {
  .tile--grb { grid-column: span 7; }
  .tile--bosses { grid-column: span 5; }
  .tile--killers { grid-column: span 5; grid-row: auto; }
  .tile--realm { grid-column: span 7; }
  .path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path::before { display: none; }
}
@media (max-width: 920px) {
  .cine__moon { right: -14%; top: 12%; width: 80vmin; }
  .cine__hud { flex-direction: column; align-items: stretch; }
  .hud-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hud-strip > div:nth-child(3) { border-left: 0; }
  .hud-strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .scroll-cue { display: none; }
  .sides, .sides:has(.side:hover) { --split: 100%; grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .side, .side--fury { clip-path: none; margin-left: 0; min-height: 340px; }
  .sides:has(.side:hover) .side:not(:hover) { filter: none; }
  .sides__vs { display: none; }
  .bento > .tile { grid-column: 1 / -1; grid-row: auto; }
  .dispatches { grid-template-columns: minmax(0, 1fr); }
  .dispatches .news-card--lead { grid-row: auto; min-height: 0; }
}
@media (max-width: 640px) {
  .cine { min-height: max(640px, min(100svh, 900px)); }
  .path { grid-template-columns: minmax(0, 1fr); padding-top: 0; }
  .path__step::before { display: none; }
  .realm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grb__clock { min-width: 0; }
  .tug { grid-template-columns: 1fr 1fr; }
  .tug__rope { grid-column: 1 / -1; grid-row: 1; }
  .tug .faction--fury { justify-self: end; }
}
@supports (animation-timeline: view()) {
  .path::before { animation: draw-line linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
  @keyframes draw-line { from { transform: scaleX(0) } }
}

/* Market */
.market-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); margin-top: 20px; }
.market-card { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(40,20,26,.75), rgba(18,10,12,.9)); color: var(--ink); text-decoration: none; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); transition: border-color .2s, transform .2s var(--ease), background .2s; }
.market-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--aol); opacity: .7; }
.market-card--fury::before { background: var(--uof); }
.market-card:hover { border-color: var(--line-2); transform: translateY(-2px); background: linear-gradient(160deg, rgba(224,27,53,.14), rgba(18,10,12,.92)); color: var(--ink); }
.market-card__icon { flex-shrink: 0; }
.market-card__body { display: grid; gap: 6px; min-width: 0; flex: 1; }
.market-card__name { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-card__meta { display: flex; gap: 8px; align-items: center; min-height: 18px; }
.market-card__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.market-card__price { font: 700 15px var(--mono); color: var(--gold); font-variant-numeric: tabular-nums; }
.market-card__price.points { color: var(--blood-hi); }
.market-card__price small { font-size: 10.5px; color: var(--mute); letter-spacing: .08em; text-transform: uppercase; }
.enchant { color: var(--gold); font-family: var(--mono); text-shadow: 0 0 10px rgba(230,200,138,.55); }
.listing-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 20px; align-items: start; margin-top: 12px; }
.listing__head { display: flex; gap: 18px; align-items: center; }
.listing__name { font: 700 var(--step-2) var(--crest); margin: 0 0 4px; }
.listing__price { margin: 24px 0 8px; font: 700 var(--step-3) var(--mono); color: var(--gold); text-shadow: 0 0 30px rgba(230,200,138,.25); font-variant-numeric: tabular-nums; }
.listing__price small { font-size: var(--step-0); color: var(--mute); text-transform: uppercase; letter-spacing: .12em; }
.listing__note { margin: 12px 0 0; padding: 12px 16px; border-left: 2px solid var(--ion); background: rgba(224,27,53,.06); color: var(--soft); font-style: italic; }
.listing__who { display: flex; align-items: center; gap: 10px; font-size: var(--step-1); margin: 0 0 16px; }
.listing__steps { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 8px; color: var(--soft); font-size: 14px; }
.listing__owner { display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; }
.pick { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 4px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); max-height: 360px; overflow-y: auto; }
.pick legend { grid-column: 1 / -1; margin-bottom: 6px; }
.pick__item { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, background .2s; }
.pick__item input { position: absolute; opacity: 0; pointer-events: none; }
.pick__item:hover { border-color: var(--line-2); }
.pick__item:has(input:checked) { border-color: var(--ion); background: linear-gradient(90deg, rgba(224,27,53,.18), transparent); }
.pick__item:has(input:focus-visible) { outline: 2px solid var(--flux); outline-offset: 2px; }
.market-row { display: inline-flex; align-items: center; gap: 8px; }
.market-row__actions { display: flex; gap: 6px; justify-content: flex-end; }
@media (max-width: 860px) { .listing-layout { grid-template-columns: minmax(0, 1fr); } }

/* Build planner */
.planner__pick { align-items: center; }
.planner__level { display: inline-flex; align-items: center; gap: 8px; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.planner__level .input { width: 84px; }
.planner__body { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 20px; }
.planner .panel__title .is-over, .panel__title span.is-over { color: var(--bad); }
.statline { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 6px; }
.statline__row { display: grid; grid-template-columns: minmax(0, 1fr) 34px 30px 64px 30px 34px; gap: 4px; align-items: center; position: relative; padding: 6px 8px 10px; border: 1px solid var(--line); background: rgba(7,4,5,.35); }
.statline__name { display: grid; line-height: 1.15; }
.statline__name b { font: 700 14px var(--display); letter-spacing: .08em; color: var(--ink); }
.statline__name small { font: 10.5px var(--mono); color: var(--mute); letter-spacing: .04em; }
.statline__btn { height: 30px; border: 1px solid var(--line-2); background: var(--hull-2); color: var(--soft); font: 600 11px var(--mono); display: grid; place-items: center; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.statline__btn:hover:not(:disabled) { border-color: var(--ion); color: var(--ink); background: rgba(224,27,53,.14); }
.statline__btn:disabled { opacity: .35; cursor: not-allowed; }
.statline__value { height: 30px; padding: 0 6px; text-align: center; font: 700 14px var(--mono); }
.statline__bar { position: absolute; left: 8px; right: 8px; bottom: 4px; height: 2px; background: rgba(230,140,150,.08); }
.statline__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blood-deep), var(--ion)); transition: width .3s var(--ease); }
.vitals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 10px; }
.vitals div { padding: 10px; border: 1px solid var(--line); text-align: center; background: linear-gradient(180deg, rgba(224,27,53,.08), transparent); }
.vitals dt { font: 500 10.5px var(--mono); letter-spacing: .14em; color: var(--mute); }
.vitals dd { margin: 2px 0 0; font: 700 var(--step-1) var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.vitals div:nth-child(1) dd { color: var(--blood-hi); } .vitals div:nth-child(2) dd { color: var(--gold); } .vitals div:nth-child(3) dd { color: var(--steel); }
.planner__tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; }
.planner__tab { padding: 6px 12px; border: 1px solid var(--line); background: transparent; color: var(--mute); font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.planner__tab.is-active { border-color: var(--ion); color: var(--ink); background: rgba(224,27,53,.14); }
.planner__skills { position: relative; }
.skilltree { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.skill__btn { width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); background: rgba(7,4,5,.35); color: var(--soft); text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.skill__btn:hover { border-color: var(--line-2); }
.skill__icon { grid-row: 1 / 3; width: 40px; height: 40px; border: 1px solid var(--line-2); background-color: var(--hull-3); background-repeat: no-repeat; filter: grayscale(.85) brightness(.7); transition: filter .2s; }
.skill__text { display: grid; min-width: 0; }
.skill__text b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.skill__text small { font: 10.5px var(--mono); color: var(--mute); }
.skill__pips { display: flex; gap: 2px; margin-top: 5px; }
.skill__pips i { flex: 1; height: 3px; max-width: 16px; background: rgba(230,140,150,.14); }
.skill__pips i.is-on { background: var(--ion); box-shadow: 0 0 6px rgba(224,27,53,.6); }
.skill.is-learned .skill__btn { border-color: color-mix(in srgb, var(--ion) 55%, transparent); background: linear-gradient(90deg, rgba(224,27,53,.16), rgba(7,4,5,.35) 70%); }
.skill.is-learned .skill__icon, .skill:not(.is-locked) .skill__btn:hover .skill__icon { filter: none; }
.skill.is-max .skill__btn { border-color: var(--gold); }
.skill.is-max .skill__pips i.is-on { background: var(--gold); box-shadow: 0 0 6px rgba(230,200,138,.6); }
.skill.is-locked .skill__btn { opacity: .45; }
.skill.is-blocked:not(.is-learned) .skill__text small { color: var(--faint); }
.skilltip { position: absolute; z-index: 5; width: min(320px, 100%); padding: 12px 14px; border: 1px solid var(--line-2); background: rgba(12,6,8,.97); box-shadow: 0 18px 40px rgba(0,0,0,.6); pointer-events: none; }
.skilltip__head { margin: 0 0 8px; font: 700 13px var(--display); letter-spacing: .06em; color: var(--ink); }
.skilltip__lv { padding-top: 8px; border-top: 1px solid var(--line); }
.skilltip__lv small, .skilltip__max { font: 10.5px var(--mono); color: var(--gold); letter-spacing: .04em; }
.skilltip__lv p { margin: 4px 0 8px; font-size: 13px; color: var(--soft); }
.planner__share { margin-top: 20px; }
.planner__link { display: flex; gap: 8px; flex-wrap: wrap; }
.planner__link .input { flex: 1 1 320px; font: 12px var(--mono); }
@media (max-width: 960px) { .planner__body { grid-template-columns: minmax(0, 1fr); } }

/* Drop finder */
.drops { display: grid; gap: 16px; margin-top: 12px; }
.drops__head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.drops__name { margin: 0 0 2px; font: 700 var(--step-1) var(--crest); }
.drops__table td { vertical-align: middle; }
.drops__rate { min-width: 150px; }
.drops__rate .mono { display: block; color: var(--gold); font-weight: 700; }
.drops__rate .bar { display: block; margin-top: 4px; max-width: 160px; }
.drops__maps { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.tag { display: inline-flex; align-items: baseline; gap: 4px; padding: 3px 8px; border: 1px solid var(--line-2); font-size: 12.5px; color: var(--soft); text-decoration: none; background: rgba(7,4,5,.4); transition: border-color .15s, color .15s; }
.tag small { font: 10.5px var(--mono); color: var(--mute); }
.tag:hover { border-color: var(--ion); color: var(--ink); }
.badge--sm { padding: 1px 6px; font-size: 10px; }

/* Quest route */
.route { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; }
.route__stop { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; position: relative; }
.route__stop:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: -14px; width: 2px; background: linear-gradient(180deg, var(--ion), var(--blood-deep)); opacity: .55; }
.route__marker span { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--ion); background: radial-gradient(circle, rgba(224,27,53,.35), rgba(18,10,12,.95) 70%); font: 700 16px var(--display); color: var(--ink); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.route__head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin-bottom: 10px; }
.route__map { margin: 0; font: 700 var(--step-1) var(--crest); }
.route__quests { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.route__quest { padding: 10px 12px; border: 1px solid var(--line); background: rgba(7,4,5,.35); }
.route__qhead { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.route__qhead .mono { margin-left: auto; }
.route__goals { list-style: none; margin: 6px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; color: var(--soft); }
.route__kind { font: 600 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--blood-hi); margin-right: 4px; }
.route__reward { color: var(--gold); }

/* Share card */
.share__card { display: block; border: 1px solid var(--line-2); overflow: hidden; }
.share__card img { display: block; width: 100%; height: auto; transition: transform .4s var(--ease); }
.share__card:hover img { transform: scale(1.02); }

/* Staff: devices */
.devices { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.devices__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); background: rgba(7,4,5,.35); }
.devices__row.is-banned { border-color: color-mix(in srgb, var(--bad) 50%, transparent); }
.devices__main { display: grid; gap: 3px; min-width: 0; flex: 1 1 320px; }
.devices__others { color: var(--warn); }
.devices__ban { display: flex; gap: 6px; align-items: center; }
.devices__ban .input { width: 180px; height: 32px; }

/* Polls */
.polls { display: grid; gap: 16px; }
.poll { display: grid; gap: 12px; }
.poll.is-closed { opacity: .85; }
.poll--patch { border-left: 3px solid var(--ion); }
.poll__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.poll__question { margin: 0; font: 700 var(--step-1) var(--crest); }
.poll__text { margin: 0; color: var(--soft); white-space: pre-line; }
.poll__results { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.poll__result { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; }
.poll__label { font-size: 14.5px; color: var(--soft); }
.poll__label small { font: 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-left: 6px; }
.poll__share { color: var(--mute); font-weight: 700; }
.poll__bar { grid-column: 1 / -1; height: 8px; background: rgba(230,140,150,.08); overflow: hidden; }
.poll__bar i { display: block; height: 100%; width: var(--value, 0%); background: linear-gradient(90deg, var(--blood-deep), color-mix(in srgb, var(--ion) 60%, transparent)); transition: width .8s var(--ease); }
.poll__result.is-leading .poll__bar i { background: linear-gradient(90deg, var(--blood-deep), var(--ion)); box-shadow: 0 0 12px rgba(224,27,53,.5); }
.poll__result.is-leading .poll__label, .poll__result.is-leading .poll__share { color: var(--ink); }
.poll__result.is-mine .poll__label { color: var(--gold); }
.poll__form { display: grid; gap: 10px; justify-items: start; }
.poll__choices { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; width: 100%; list-style: none; }
.poll__choice { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); cursor: pointer; transition: border-color .15s, background .15s; }
.poll__choice input { accent-color: var(--ion); }
.poll__choice:hover { border-color: var(--line-2); }
.poll__choice:has(input:checked) { border-color: var(--ion); background: linear-gradient(90deg, rgba(224,27,53,.15), transparent); }
.poll__choices--guest li { padding: 8px 12px; border: 1px solid var(--line); color: var(--soft); }
.poll__change { display: flex; gap: 8px; flex-wrap: wrap; }

/* Seasons */
.season-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.season-head__clock { display: grid; text-align: center; }
.season-head__clock small { font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.season-head__clock b { font: 700 var(--step-2) var(--mono); color: var(--ink); text-shadow: 0 0 24px rgba(224,27,53,.5); }
.season-tiers { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; }
.season-tiers li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line-2); background: rgba(7,4,5,.4); font-size: 13px; }
.season-tiers b { font: 700 12px var(--mono); color: var(--gold); }
.season-tiers span { display: inline-flex; align-items: center; gap: 6px; }
.season-row--top td { background: linear-gradient(90deg, rgba(230,200,138,.08), transparent 60%); }
.season-form .input { height: 34px; padding: 0 8px; min-width: 70px; }

/* Trend chart */
.trend { margin: 0; padding: 12px; border: 1px solid var(--line); background: rgba(7,4,5,.35); }
.trend__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 8px; }
.trend__head span { font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); flex-basis: 100%; }
.trend__head b { font-size: var(--step-1); color: var(--ink); }
.trend__up { color: var(--ok); } .trend__down { color: var(--bad); }
.trend__chart { display: block; width: 100%; height: 90px; }
.trend__line { fill: none; stroke: var(--ion); stroke-width: 2; vector-effect: non-scaling-stroke; }
.trend__area { fill: rgba(224,27,53,.12); stroke: none; }

/* Item price history */
.price-block { display: grid; gap: 10px; margin-bottom: 12px; }
.price-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; margin: 0; }
.price-stats div { padding: 8px 10px; border: 1px solid var(--line); background: rgba(7,4,5,.35); }
.price-stats dt { font: 500 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.price-stats dd { margin: 2px 0 0; font: 700 15px var(--mono); color: var(--gold); }
.price-stats dd small { font-size: 10px; color: var(--mute); }

/* Staff: alt map */
.alt-groups { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.alt-group { display: grid; gap: 10px; align-content: start; border-left: 3px solid var(--warn); }
.alt-group.is-strong { border-left-color: var(--bad); }
.alt-group__head { display: flex; justify-content: space-between; align-items: center; }
.alt-group__accounts, .alt-group__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.alt-group__accounts li { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.alt-group__links { border-top: 1px solid var(--line); padding-top: 8px; }
.alt-kind { font: 600 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--warn); }
.alt-kind--device { color: var(--bad); }

/* Staff: server health */
.health { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.health__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.health__row { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-left: 2px solid transparent; }
.health__row:nth-child(odd) { background: rgba(7,4,5,.35); }
.health__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.health__row--warn .health__dot { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.health__row--bad { border-left-color: var(--bad); background: rgba(255,90,110,.07) !important; }
.health__row--bad .health__dot { background: var(--bad); box-shadow: 0 0 10px var(--bad); animation: blink 1.4s infinite; }
.health__label { display: grid; min-width: 0; font-size: 14px; color: var(--ink); }
.health__label small { font-size: 11.5px; color: var(--mute); overflow-wrap: anywhere; }
.health__value { font-size: 13px; color: var(--soft); text-align: right; white-space: nowrap; }
.health__row--bad .health__value { color: var(--bad); } .health__row--warn .health__value { color: var(--warn); }

/* Riding preview */
.ride-stage { max-width: none; aspect-ratio: 16 / 9; min-height: 360px; }
.ride-stage__bar { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; z-index: 2; }
.ride-stage__bar .select { width: min(280px, 100%); background: rgba(7,4,5,.8); }
.ride-stage__bar .stage__motions { position: static; }

/* Encounter */
.threat { display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid currentColor; font: 600 12px var(--mono); letter-spacing: .04em; }
.threat--trivial { color: var(--mute); } .threat--fair { color: var(--ok); } .threat--hard { color: var(--warn); } .threat--deadly { color: var(--bad); box-shadow: 0 0 16px rgba(255,90,110,.35); }

/* Inbox */
.inbox__bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.inbox { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.inbox__item { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); background: rgba(18,10,12,.7); color: var(--soft); text-decoration: none; transition: border-color .15s, background .15s; }
.inbox__item:hover { border-color: var(--line-2); color: var(--soft); }
.inbox__item.is-unread { border-left: 2px solid var(--ion); background: linear-gradient(90deg, rgba(224,27,53,.12), rgba(18,10,12,.7) 60%); }
.inbox__item.is-unread b { color: var(--ink); }
.inbox__icon { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-2); color: var(--mute); }
.inbox__item--boss .inbox__icon { color: var(--blood-hi); } .inbox__item--market .inbox__icon, .inbox__item--gift .inbox__icon { color: var(--gold); }
.inbox__item--sanction .inbox__icon { color: var(--bad); } .inbox__item--ticket .inbox__icon { color: var(--steel); }
.inbox__text { display: grid; gap: 2px; min-width: 0; }
.inbox__text b { font-weight: 600; font-size: 14.5px; }
.inbox__text span { font-size: 13px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.copy-field { flex: 1 1 260px; min-width: 0; margin-top: 6px; font: 12px var(--mono); }
/* Event calendar */
.cal__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.cal__nav { display: flex; align-items: center; gap: 10px; }
.cal__month { margin: 0; min-width: 210px; text-align: center; font: 700 var(--step-2) var(--crest); }
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 20px; align-items: start; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: rgba(18,10,12,.6); }
.cal__dow { padding: 8px; font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(7,4,5,.4); }
.cal__day { min-height: 112px; padding: 6px; display: flex; flex-direction: column; gap: 3px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.cal__day.is-out { background: rgba(7,4,5,.45); }
.cal__day.is-out .cal__num { color: var(--faint); }
.cal__day.is-today { box-shadow: inset 0 0 0 1px var(--ion); background: linear-gradient(180deg, rgba(224,27,53,.12), transparent 70%); }
.cal__day.is-today .cal__num { color: var(--blood-hi); }
.cal__num { font: 700 13px var(--mono); color: var(--soft); }
.cal__chip { --k: var(--steel); display: block; padding: 2px 5px; border-left: 2px solid var(--k); background: color-mix(in srgb, var(--k) 12%, transparent); font-size: 11.5px; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal__chip time { font: 600 10px var(--mono); color: var(--k); }
.cal__chip:hover { background: color-mix(in srgb, var(--k) 24%, transparent); color: var(--ink); }
.cal__more { font: 10.5px var(--mono); color: var(--mute); }
.cal__chip--grb, .agenda__item--grb { --k: var(--gold); }
.cal__chip--boss, .agenda__item--boss { --k: var(--blood-hi); }
.cal__chip--pvp, .agenda__item--pvp { --k: var(--ember); }
.cal__chip--maintenance, .agenda__item--maintenance { --k: var(--warn); }
.cal__chip--patch, .agenda__item--patch { --k: var(--ok); }
.agenda { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.agenda__item { --k: var(--steel); display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: center; padding-left: 10px; border-left: 2px solid var(--k); }
.agenda__when { display: grid; font: 10.5px var(--mono); color: var(--mute); }
.agenda__when b { color: var(--k); font-weight: 700; }
.agenda__what { display: grid; min-width: 0; font-size: 14px; }
.agenda__what small { font: 10.5px var(--mono); color: var(--mute); }
.event { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 24px; margin-top: 12px; border-left: 3px solid var(--k); }
.event__date { display: grid; place-items: center; align-content: center; height: 110px; border: 1px solid var(--line-2); background: radial-gradient(circle, color-mix(in srgb, var(--k) 22%, transparent), transparent 70%); }
.event__date b { font: 700 46px/1 var(--crest); color: var(--ink); }
.event__date span { font: 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--k); }
.event__title { margin: 0 0 6px; font: 700 var(--step-3) var(--crest); }
.event__text { white-space: pre-line; color: var(--soft); max-width: 70ch; }
@media (max-width: 960px) { .cal-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .cal { display: none; } .event { grid-template-columns: minmax(0, 1fr); } }

.roles-grid input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--ion); }
.roles-grid .center, .roles-grid th.center { text-align: center; }
.roles-grid tbody tr:hover td { background: rgba(224,27,53,.05); }
/* 3D world map */
.map3d__bar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.map3d__bar .page-head__title { margin: 0; }
.map3d { position: relative; margin: 0; height: min(78vh, 820px); min-height: 420px; border: 1px solid var(--line-2); overflow: hidden; background: radial-gradient(ellipse at 50% 30%, #1d0b10, #070405 70%); isolation: isolate; }
.map3d canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.map3d canvas:active { cursor: grabbing; }
.map3d::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 120px 20px rgba(7,4,5,.85); }
.map3d__labels { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.map3d__label { position: absolute; left: 0; top: 0; padding: 3px 8px; border: 1px solid rgba(140,215,255,.45); background: rgba(7,10,16,.75); color: #cdeeff; font: 600 11px var(--mono); letter-spacing: .06em; white-space: nowrap; text-shadow: 0 0 8px rgba(140,215,255,.6); }
.map3d__tip { position: absolute; z-index: 3; display: grid; gap: 2px; max-width: 240px; padding: 8px 10px; border: 1px solid var(--line-2); background: rgba(12,6,8,.94); box-shadow: 0 12px 30px rgba(0,0,0,.5); font-size: 12.5px; color: var(--soft); pointer-events: none; }
.map3d__tip b { color: var(--ink); font-size: 13.5px; }
.map3d__hint { position: absolute; z-index: 2; left: 50%; top: 12px; translate: -50% 0; font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); pointer-events: none; white-space: nowrap; }
.map3d__legend { position: absolute; z-index: 2; left: 14px; bottom: 14px; list-style: none; margin: 0; padding: 8px 12px; display: grid; gap: 4px; border: 1px solid var(--line); background: rgba(7,4,5,.75); font-size: 12px; color: var(--soft); }
.map3d__legend li { display: flex; align-items: center; gap: 8px; }
.map3d__key { width: 12px; height: 12px; border: 1px solid currentColor; }
.map3d__key--weak { color: #f2c873; background: rgba(242,200,115,.35); }
.map3d__key--strong { color: #e01b35; background: rgba(224,27,53,.45); }
.map3d__key--portal { color: #8cd7ff; background: rgba(140,215,255,.35); }
.map3d__key--player { color: var(--gold); background: var(--gold); transform: rotate(45deg) scale(.8); }
.map3d .stage__loading { z-index: 4; --tone: var(--ion); }
.map3d.is-loading .stage__loading { display: grid; }
@media (max-width: 640px) { .map3d__hint { display: none; } .map3d { height: 70vh; } }

/* Next level: sigils, runic edges, sparks, empty-state rings, footer wordmark ------ */

/* Sigil beside every page title: three rings turning at their own pace. */
.page-head { overflow: hidden; }
.sigil { position: absolute; z-index: -1; pointer-events: none; top: 50%; right: max(var(--gutter-r), calc((100vw - 1400px) / 2)); width: clamp(230px, 27vw, 380px); aspect-ratio: 1; translate: 6% -50%;
  opacity: 0; animation: sigil-in 1.4s var(--ease) .2s forwards; }
.sigil__art { width: 100%; height: 100%; overflow: visible; }
.sigil__line { fill: none; stroke: color-mix(in srgb, var(--ion) 70%, var(--steel)); stroke-width: 1; opacity: .55; }
.sigil__line--faint { opacity: .25; }
.sigil__line--strong { stroke-width: 1.6; opacity: .8; filter: drop-shadow(0 0 6px rgba(224,27,53,.7)); }
.sigil__ticks { fill: none; stroke: var(--ion); stroke-width: 6; stroke-dasharray: 1 10.5; opacity: .5; }
.sigil__dashes { fill: none; stroke: var(--flux); stroke-width: 1.2; stroke-dasharray: 18 7 3 7; opacity: .45; }
.sigil__script { font: 600 15px var(--crest); letter-spacing: .32em; fill: color-mix(in srgb, var(--flux) 70%, var(--ion)); opacity: .55; }
.sigil__icon { color: var(--ink); fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 10px var(--ion)) drop-shadow(0 0 28px rgba(224,27,53,.6)); }
.sigil__outer, .sigil__middle, .sigil__inner { transform-origin: 200px 200px; transform-box: view-box; }
.sigil__outer { animation: spin 90s linear infinite; }
.sigil__middle { animation: spin 60s linear infinite reverse; }
.sigil__inner { animation: spin 40s linear infinite; }
.sigil__glow { animation: breathe 4s ease-in-out infinite alternate; transform-origin: 200px 200px; transform-box: view-box; }
@keyframes sigil-in { from { opacity: 0; scale: .86; filter: blur(8px); } to { opacity: 1; scale: 1; filter: none; } }
@media (max-width: 760px) { .sigil { width: 220px; translate: 38% -50%; } .sigil__script { display: none; } @keyframes sigil-in { to { opacity: .35; } } }

/* Runic edge: a glow that circles the border of featured panels, and of cards on hover. */
@property --edge { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.panel--accent, .season-head, .listing, .event, .poll--patch { --edge-alpha: .9; }
.panel--accent::after, .season-head::after, .listing::after, .event::after, .poll--patch::after,
.market-card::after, .alt-group.is-strong::after, .health__row--bad::after {
  content: ""; position: absolute; inset: -1px; pointer-events: none; padding: 1px; border-radius: inherit;
  background: conic-gradient(from var(--edge), transparent 0 62%, color-mix(in srgb, var(--ion) 85%, transparent) 72%, var(--flux) 78%, transparent 88%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: var(--edge-alpha, 0); transition: opacity .4s var(--ease); animation: edge-turn 6s linear infinite;
}
.market-card:hover, .alt-group.is-strong { --edge-alpha: 1; }
.alt-group, .health__row { position: relative; }
@keyframes edge-turn { to { --edge: 360deg; } }

/* Forge sparks thrown by pressed buttons (sparks.js). */
.spark { position: fixed; z-index: 200; width: 4px; height: 4px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #fff6e0, var(--gold) 40%, var(--ion) 75%, transparent); box-shadow: 0 0 8px var(--ion);
  animation: spark-fly .62s cubic-bezier(.15, .7, .3, 1) forwards; }
@keyframes spark-fly { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }

/* Numbers that count up as they arrive (count-up.js) keep their width steady. */
[data-counting] { font-variant-numeric: tabular-nums; }

/* Empty states: the icon sits in a slow sigil ring. */
.empty { position: relative; overflow: hidden; }
.empty .icon { position: relative; width: 44px; height: 44px; padding: 18px; margin-bottom: 18px; box-sizing: content-box; color: var(--soft);
  border-radius: 50%; background: radial-gradient(circle, rgba(224,27,53,.22), transparent 70%); filter: drop-shadow(0 0 10px rgba(224,27,53,.5)); }
.empty::before, .empty::after { content: ""; position: absolute; left: 50%; top: 48px; width: 96px; height: 96px; translate: -50% -6px; border-radius: 50%; pointer-events: none;
  border: 1px dashed color-mix(in srgb, var(--ion) 55%, transparent); animation: spin 24s linear infinite; }
.empty::after { width: 124px; height: 124px; translate: -50% -20px; border: 1px solid color-mix(in srgb, var(--flux) 25%, transparent); border-left-color: var(--ion); animation-duration: 9s; animation-direction: reverse; }

/* Footer: a giant etched wordmark and the moon's last light. */
.footer { position: relative; isolation: isolate; overflow: hidden; }
.footer::before { content: "NOTORIOUS"; position: absolute; z-index: -1; left: 50%; bottom: -0.18em; translate: -50% 0; pointer-events: none; white-space: nowrap;
  font: 800 clamp(56px, 12.5vw, 190px)/1 var(--crest); letter-spacing: .02em; color: transparent; -webkit-text-stroke: 1px rgba(230,140,150,.07);
  background: linear-gradient(180deg, rgba(224,27,53,.07), transparent 75%); -webkit-background-clip: text; background-clip: text; }
.footer::after { content: ""; position: absolute; z-index: -2; left: 50%; top: 0; width: 70%; height: 2px; translate: -50% 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--ion), transparent); box-shadow: 0 0 40px 8px rgba(224,27,53,.35); }

@media (prefers-reduced-motion: reduce) {
  .sigil, .sigil__outer, .sigil__middle, .sigil__inner, .sigil__glow, .empty::before, .empty::after,
  .panel--accent::after, .season-head::after, .listing::after, .event::after, .poll--patch::after, .market-card::after, .alt-group.is-strong::after, .health__row--bad::after { animation: none; }
  .sigil { opacity: 1; }
}


/* 6b. Site-wide finish ----------------------------------------------------- */

/* Headings in brushed steel with a blood slash underneath. */
.section-head h2, .page-head__title {
  background: linear-gradient(180deg, #fff 0%, #e6dcda 45%, #9a8788 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,.6)); }
.section-head h2::after, .page-head__title::after { content: ""; display: block; width: 88px; height: 3px; margin-top: 16px; background: linear-gradient(90deg, var(--ion), var(--flux) 60%, transparent); box-shadow: 0 0 14px rgba(224,27,53,.6); }
.page-head { position: relative; isolation: isolate; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(45% 130% at 88% 0%, rgba(224,27,53,.2), transparent 70%); }
.page-head__title { animation: wipe-in 1s var(--ease) both; }
.page-head .eyebrow, .page-head__lede { animation: fade-up .8s var(--ease) .25s both; }
@keyframes wipe-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 -40% 0); } }

/* A light sweep across every button; the blade button also leans toward the pointer. */
.btn { overflow: hidden; }
.btn::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.4) 50%, transparent 70%); translate: -130% 0; transition: translate .8s var(--ease); }
.btn:hover::before { translate: 130% 0; }
.btn--blade { background: linear-gradient(135deg, #ff4a60, #e01b35 45%, #8f0b1c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), inset 0 -12px 22px rgba(0,0,0,.28); transition: filter .2s, translate .25s var(--ease), background .3s; }
.btn--blade:hover { transform: none; }

/* Cards light up where the pointer is (spotlight.js sets --mx / --my). */
.tile, .panel, .news-card, .path__step a, .product, .package, .reward-tile, .boss, .kpi { isolation: isolate; }
.tile::before, .panel::before, .news-card::before, .path__step a::before, .product::before, .package::before, .reward-tile::before, .boss::before, .kpi::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .45s;
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--ion) 15%, transparent), transparent 62%); }
.tile:hover::before, .panel:hover::before, .news-card:hover::before, .path__step a:hover::before, .product:hover::before, .package:hover::before, .reward-tile:hover::before, .boss:hover::before, .kpi:hover::before { opacity: 1; }
.product, .package, .kpi { position: relative; }

/* Header tightens once you scroll. */
.hud__in { transition: height .35s var(--ease); }
.hud.is-scrolled .hud__in { height: 56px; }
.hud.is-scrolled { box-shadow: 0 12px 40px -18px rgba(0,0,0,.9); }

html { scrollbar-color: #5a1220 var(--void); scrollbar-width: thin; }

/* 7. Utilities ------------------------------------------------------------- */
.muted { color: var(--mute); } .soft { color: var(--soft); } .ink { color: var(--ink); }
.ok { color: var(--ok); } .warn { color: var(--warn); } .bad { color: var(--bad); } .gold { color: var(--gold); } .ion { color: var(--ion); }
.center { text-align: center; } .right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.w-full { width: 100%; }
.crest-title { font: 800 var(--step-2) var(--crest); text-transform: uppercase; }
.small { font-size: 13px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

/* 8. Motion and responsive ------------------------------------------------- */

/* Native page-to-page transitions (Chromium); other browsers navigate normally. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .42s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); filter: blur(4px) } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); filter: blur(6px) } }

/* Reveal on scroll where supported; content is fully visible otherwise. */
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  @keyframes reveal { from { opacity: .2; transform: translateY(24px) } }
}

@media (max-width: 1440px) {
  .nav__link { padding: 8px 9px; font-size: 13.5px; }
  .kbd-btn kbd { display: none; }
  .pulse { padding: 6px 10px; }
}
@media (max-width: 1180px) {
  .nav { display: none; }
  .kbd-btn kbd { display: none; }
  .split { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1181px) { .only-mobile { display: none !important; } }
@media (max-width: 920px) {
  .hero__grid, .section-head, .armory, .auth, .account-shell { grid-template-columns: minmax(0, 1fr); }
  .section-head__action { justify-self: start; }
  .side-nav { position: static; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .side-nav__label { grid-column: 1 / -1; }
  .admin { grid-template-columns: minmax(0, 1fr); }
  .admin__side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .news-card--lead { grid-column: auto; }
}
@media (max-width: 640px) {
  .pulse { display: none; }
  .hud__in { gap: 10px; }
  .brand img { width: 112px; }
  .faction-picks { grid-template-columns: minmax(0, 1fr); }
  .podium { grid-template-columns: minmax(0, 1fr); }
  .podium__spot--2 { order: 0; }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
  .hide-sm { display: none !important; }
  .armory__facts { grid-template-columns: minmax(0, 1fr); }
  .table th, .table td { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee__track { display: flex; animation: none; flex-wrap: wrap; justify-content: center; gap: 8px 26px; white-space: normal; padding-inline: 16px; }
  .marquee__track span { gap: 14px; }
  .marquee__track [aria-hidden="true"] { display: none; }
  @view-transition { navigation: none; }
}

/* Character select: the account's roster on one wide stage ------------------- */
.select { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: clamp(16px, 2.5vw, 32px); align-items: stretch; margin-top: 14px; }
.stage--roster { aspect-ratio: 16 / 10; max-width: none; width: 100%; --tone: var(--aol); }
.stage--roster::before { width: 78%; bottom: 12%; }
.roster { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.roster__pick { display: grid; gap: 1px; padding: 6px 12px; min-width: 96px; text-align: left; cursor: pointer;
  border: 1px solid var(--line-2); border-bottom: 2px solid transparent; background: rgba(7,4,5,.72); color: var(--soft); backdrop-filter: blur(6px);
  transition: border-color .2s, color .2s, background .2s; }
.roster__pick b { font: 700 12px var(--body); letter-spacing: .02em; color: var(--ink); }
.roster__pick small { font: 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.roster__pick[data-faction="light"] { --accent: var(--aol); } .roster__pick[data-faction="fury"] { --accent: var(--uof); }
.roster__pick:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.roster__pick[aria-pressed="true"] { border-bottom-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, rgba(7,4,5,.8)); }
.select__detail { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.select__name { font: 900 clamp(26px, 3vw, 40px)/1 var(--crest); text-transform: uppercase; overflow-wrap: anywhere; margin: 0; }
.roster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.roster-card { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line-2); border-left: 3px solid var(--accent, var(--line-2)); background: var(--panel, rgba(255,255,255,.02)); transition: border-color .2s, transform .2s; }
.roster-card:hover { transform: translateY(-2px); border-left-color: var(--accent); }
.roster-card b { font: 700 15px var(--body); color: var(--ink); }
.roster-card span { font: 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.roster-card--light { --accent: var(--aol); } .roster-card--fury { --accent: var(--uof); }
@media (max-width: 860px) { .select { grid-template-columns: 1fr; } .stage--roster { aspect-ratio: 4 / 5; } }
