/* Fossil Falls - design system v7 "Moonfall".
 *
 * Premium in the Extinction Signal / Arkadia / Sequence family: a fixed
 * full-page cinematic film (the rendered rex-hunts-stego shot, graded
 * day-for-night to moonlight) under layered scrims + a MOONLIT CLOUD
 * atmosphere (silver-blue cloud banks, moon glow, star motes, grain,
 * vignette), glass panels with glow accents, logo-grade display titles.
 * Palette per owner reference (midnight clouds): deep navy base, moonlit
 * silver text with soft cloud glow, moonbeam-blue accents, star-white
 * highlights. Centred hero + centred navigation.
 *
 * Token naming note: the --blood-* accent family carries MOONBEAM BLUE and
 * --gold-* carries MOON SILVER after successive owner palette steers; names
 * were kept stable so components never needed re-wiring.
 *
 * Performance rules (owner reported background lag):
 *   - backdrop-filter ONLY on topbar / mobile menu / sign-in call (3 layers);
 *     every card/panel/row uses solid translucent ink instead.
 *   - cloud banks are plain radial gradients (NO filter: blur) on transform
 *     animations only; the star-mote canvas runs at 30 frames per second.
 *
 * Fonts: Archivo Black (titles) + Bebas Neue (headers) + Inter + JetBrains Mono.
 * Copy rules: no emojis, no abbreviations - words written in full.
 */

:root {
  --bg-0: #070b16;
  --bg-1: #0d1626;
  --panel: rgba(13, 22, 42, 0.72);
  --panel-2: rgba(19, 31, 56, 0.78);
  --bone: #eef3fa;
  --bone-80: rgba(238, 243, 250, 0.80);
  --bone-62: rgba(238, 243, 250, 0.62);
  --bone-44: rgba(238, 243, 250, 0.44);
  --bone-28: rgba(238, 243, 250, 0.28);
  --bone-14: rgba(238, 243, 250, 0.14);
  --bone-08: rgba(238, 243, 250, 0.08);

  --blood: #5f96f7;
  --blood-hot: #7fb0ff;
  --blood-deep: #1e3a78;
  --blood-glow: rgba(127, 176, 255, 0.5);
  --blood-14: rgba(127, 176, 255, 0.14);
  --gold: #c8dcf8;
  --gold-hot: #e4f0ff;
  --gold-deep: #5a7cae;
  --gold-glow: rgba(200, 220, 248, 0.5);
  --gold-14: rgba(200, 220, 248, 0.14);
  --gold-08: rgba(200, 220, 248, 0.08);
  --blood-08: rgba(127, 176, 255, 0.08);

  --live: #54e3a3;

  --glass-border: rgba(238, 243, 250, 0.15);
  --glass-border-lit: rgba(200, 220, 248, 0.6);

  --disp: 'Bebas Neue', 'Oswald', system-ui, sans-serif;
  --title: 'Cinzel', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1200px;
  --gutter: clamp(18px, 3.4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--bone-80);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--blood); color: #fff; }
a { color: inherit; text-decoration: none; }
img, video, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 1px solid var(--blood-hot); outline-offset: 3px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ------------------------- fixed cinematic background ---------------------- */

.bgposter {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: var(--bg-0) url('assets/video/hero_poster.jpg?v=dusk5') center/cover no-repeat;
}
.bgfilm {
  position: fixed; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; opacity: 0; pointer-events: none;
  transition: opacity 0.6s linear;
  transform: translateZ(0); backface-visibility: hidden; will-change: opacity;
}
.bgfilm.on { opacity: 1; }
.bgscrim {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 11, 20, 0.88) 0%, rgba(7, 11, 20, 0.46) 24%, rgba(7, 11, 20, 0.34) 52%, rgba(7, 11, 20, 0.62) 78%, rgba(7, 11, 20, 0.97) 100%),
    radial-gradient(120% 80% at 50% 40%, transparent 42%, rgba(7, 11, 20, 0.52) 94%);
}
body.deep .bgscrim {
  background:
    linear-gradient(180deg, rgba(7, 11, 20, 0.92) 0%, rgba(7, 11, 20, 0.78) 18%, rgba(7, 11, 20, 0.86) 100%);
}
.atmos { position: fixed; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.atmos .glowbase {
  position: absolute; inset: 0;
  background:
    radial-gradient(26% 20% at 79% 4%, rgba(226, 240, 255, 0.20), transparent 62%),
    radial-gradient(110% 80% at 50% 118%, rgba(95, 150, 247, 0.14), transparent 55%),
    radial-gradient(70% 55% at 82% -12%, rgba(120, 160, 235, 0.08), transparent 60%);
}
/* fog: soft radial gradients on cheap transform drift - deliberately NO blur filter and
   NO blend mode (blending a viewport-sized layer against the moving film forced a
   full-screen recomposite on every video frame) */
.atmos .fog { position: absolute; width: 96vw; height: 96vw; border-radius: 50%; opacity: 0.20; will-change: transform; }
.atmos .f1 { left: -26vw; top: 12vh; background: radial-gradient(ellipse 60% 42% at 50% 55%, rgba(150, 185, 240, 0.30) 0%, rgba(90, 130, 210, 0.12) 42%, transparent 68%); animation: ffog1 34s var(--ease) infinite alternate; }
.atmos .f2 { right: -30vw; bottom: -14vh; background: radial-gradient(ellipse 58% 40% at 50% 50%, rgba(170, 200, 250, 0.22) 0%, rgba(95, 150, 247, 0.08) 44%, transparent 66%); animation: ffog2 42s var(--ease) infinite alternate; }
@keyframes ffog1 { from { transform: translate(-4%, -3%) scale(1); } to { transform: translate(6%, 5%) scale(1.14); } }
@keyframes ffog2 { from { transform: translate(4%, 3%) scale(1.07); } to { transform: translate(-6%, -4%) scale(1); } }

/* moonlit cloud banks: seamless 1600px tiles drifting on compositor transforms */
.cloudwrap { position: absolute; inset: 0; overflow: hidden; }
.cloudlayer { position: absolute; left: 0; right: 0; pointer-events: none; }
.cloudlayer.c1 { top: -7vh; height: 38vh; opacity: 0.32; transform: scaleY(-1); }
.cloudband {
  position: absolute; top: 0; bottom: 0; left: 0; width: 6400px;
  background-repeat: repeat-x; background-size: 1600px 100%;
  animation: cbdrift 160s linear infinite; will-change: transform;
}
.cloudband.b1 { background-image: url('assets/hero/cloud1.png'); }
.cloudband.b2 { background-image: url('assets/hero/cloud2.png'); }
@keyframes cbdrift { to { transform: translateX(-1600px); } }
html.lite .cloudband { animation: none; }
@media (prefers-reduced-motion: reduce) { .cloudband { animation: none; } }

#ffash { position: absolute; inset: 0; width: 100%; height: 100%; transform: translateZ(0); }
/* (the old .grain overlay-blend layer is gone: a second full-screen blend over the film
   was the other half of the compositing cost) */
.atmos .vig { position: absolute; inset: 0; background: radial-gradient(130% 100% at 50% 32%, transparent 50%, rgba(0, 0, 0, 0.55) 86%, rgba(0, 0, 0, 0.92)); }
html.lite .bgfilm, html.lite #ffash, html.lite .atmos .fog { display: none !important; }

.topbar, main, .foot, .mobile-menu { position: relative; z-index: 5; }

/* --------------------------------- chrome --------------------------------- */

.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 14px var(--gutter);
  transition: background 0.35s ease, border-color 0.35s ease, padding 0.35s ease;
  border-bottom: 1px solid transparent;
}
.topbar.solid {
  background: rgba(7, 11, 20, 0.84);
  backdrop-filter: blur(14px) saturate(112%);
  -webkit-backdrop-filter: blur(14px) saturate(112%);
  border-bottom-color: var(--bone-08);
  padding-top: 10px; padding-bottom: 10px;
}

.wordmark { display: flex; align-items: center; gap: 13px; justify-self: start; }
.wordmark .mark {
  width: 42px; height: 42px; border-radius: 9px; flex: 0 0 auto;
  background: #000 url('assets/brand/fossilfallslogo.png') center/contain no-repeat;
  mix-blend-mode: screen;
  box-shadow: 0 0 22px rgba(95, 150, 247, 0.22), inset 0 0 0 1px var(--bone-08);
}
.wordmark .name {
  font-family: var(--disp); font-size: 22px; letter-spacing: 0.16em;
  color: var(--bone); line-height: 1; white-space: nowrap;
}
.wordmark .name i { font-style: normal; color: var(--gold-hot); }
.wordmark .sub {
  font-family: var(--mono);
  font-size: 8.5px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--bone-44); margin-top: 4px;
}

.mainnav { display: flex; gap: 4px; align-items: center; justify-self: center; }
.mainnav a {
  padding: 8px 15px; border-radius: 7px;
  font-family: var(--mono);
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bone-62); border: 1px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.mainnav a:hover { color: var(--bone); background: var(--blood-08); }
.mainnav a.active {
  color: var(--bone);
  border-color: rgba(95, 150, 247, 0.5);
  background: var(--blood-08);
  box-shadow: inset 0 0 14px rgba(95, 150, 247, 0.12);
}

.nav-user { display: flex; align-items: center; gap: 14px; justify-self: end; }
.nav-user .dclink {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  color: var(--blood-hot);
  border: 1px solid rgba(127, 176, 255, 0.35);
  background: var(--blood-08);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.nav-user .dclink svg { width: 22px; height: 22px; animation: dcbob 2.8s ease-in-out infinite; transform-origin: center; }
.nav-user .dclink:hover { border-color: var(--blood-hot); box-shadow: 0 0 22px rgba(127, 176, 255, 0.35); }
@keyframes dcbob {
  0%, 100% { transform: translateY(0) rotate(0); }
  25% { transform: translateY(-2.5px) rotate(-7deg); }
  75% { transform: translateY(2.5px) rotate(7deg); }
}
html.lite .dclink svg { animation: none; }
@media (prefers-reduced-motion: reduce) { .nav-user .dclink svg { animation: none; } }
.nav-user .signin {
  font-size: 12px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  color: #fff; background: linear-gradient(180deg, #7fb0ff, #2b52a8);
  border: 1px solid rgba(127, 176, 255, 0.6);
  padding: 10px 18px; border-radius: 8px; white-space: nowrap;
  box-shadow: 0 0 24px rgba(95, 150, 247, 0.35);
  transition: box-shadow 0.25s ease, transform 0.15s ease;
}
.nav-user .signin:hover { box-shadow: 0 0 34px rgba(95, 150, 247, 0.55); transform: translateY(-1px); }
.nav-user .whoami { display: flex; align-items: center; gap: 11px; }
.nav-user .whoami .av {
  width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex: 0 0 auto;
  border: 1px solid rgba(95, 150, 247, 0.55);
  box-shadow: 0 0 14px rgba(95, 150, 247, 0.3);
  display: grid; place-items: center;
  background: var(--blood-deep);
  font-family: var(--disp); font-size: 17px; color: var(--bone);
}
.nav-user .whoami .av img { width: 100%; height: 100%; object-fit: cover; }
.nav-user .whoami .stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.nav-user .whoami b { font-weight: 600; font-size: 13px; color: var(--bone); max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-user .whoami span { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blood-hot); }

.burger { display: none; flex-direction: column; gap: 5px; padding: 9px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--bone); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 39;
  background: rgba(7, 11, 20, 0.96);
  backdrop-filter: blur(18px);
  display: none; flex-direction: column; justify-content: center;
  padding: 0 var(--gutter); gap: 6px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--disp); font-size: clamp(34px, 9vw, 52px); letter-spacing: 0.12em;
  padding: 12px 0; border-bottom: 1px solid var(--bone-08); color: var(--bone-62);
}
.mobile-menu a.active { color: var(--blood-hot); }
.mobile-menu a:last-child { border-bottom: 0; }

/* sign-in call (first visit, signed out) */
.gatecall {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  background: rgba(7, 11, 20, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: var(--gutter);
}
.gatecall .box {
  background: var(--panel-2);
  border: 1px solid rgba(95, 150, 247, 0.45);
  border-radius: 16px;
  box-shadow: 0 0 60px rgba(95, 150, 247, 0.25), 0 30px 80px rgba(0, 0, 0, 0.6);
  max-width: 480px; width: 100%;
  padding: 36px 34px 30px;
  text-align: center;
}
.gatecall .mark {
  width: 54px; height: 54px; border-radius: 12px; margin: 0 auto 18px;
  background: #000 url('assets/brand/fossilfallslogo.png') center/contain no-repeat;
  box-shadow: 0 0 26px rgba(95, 150, 247, 0.35);
}
.gatecall h3 { font-family: var(--disp); font-size: 34px; letter-spacing: 0.06em; margin: 0 0 10px; color: var(--bone); text-transform: uppercase; }
.gatecall h3 .red { color: var(--blood-hot); }
.gatecall p { margin: 0 0 24px; font-size: 14px; color: var(--bone-62); line-height: 1.7; }
.gatecall .later {
  display: block; margin: 14px auto 0;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bone-44);
}
.gatecall .later:hover { color: var(--bone); }

/* --------------------------------- footer --------------------------------- */

.foot { margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--bone-08); background: rgba(7, 11, 20, 0.86); }
.foot .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding: 44px 0 38px; }
.foot .tagline { margin-top: 14px; font-size: 13px; color: var(--bone-44); max-width: 36ch; line-height: 1.7; }
.foot h4 { margin: 0 0 14px; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--bone-44); }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.foot ul a { font-size: 13.5px; color: var(--bone-62); transition: color 0.2s ease; }
.foot ul a:hover { color: var(--gold-hot); }
.foot .fineprint {
  padding: 16px 0 24px; border-top: 1px solid var(--bone-08);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--bone-28);
  text-transform: uppercase;
}

/* --------------------------------- buttons -------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 9px;
  font-size: 12.5px; font-weight: 650; letter-spacing: 0.16em; text-transform: uppercase;
  background: linear-gradient(180deg, #7fb0ff, #2b52a8);
  color: #fff; border: 1px solid rgba(127, 176, 255, 0.65);
  box-shadow: 0 0 28px rgba(95, 150, 247, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: box-shadow 0.25s var(--ease), transform 0.15s ease;
}
.btn:hover { box-shadow: 0 0 44px rgba(95, 150, 247, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.22); transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn.ghost {
  background: rgba(255, 255, 255, 0.04); color: var(--bone);
  border-color: var(--glass-border);
  box-shadow: none;
}
.btn.ghost:hover { border-color: var(--glass-border-lit); background: var(--blood-08); box-shadow: 0 0 22px rgba(95, 150, 247, 0.18); }

.textlink {
  font-family: var(--mono);
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blood-hot); display: inline-flex; align-items: center; gap: 9px;
  transition: color 0.2s ease, gap 0.2s ease;
}
.textlink:hover { color: #ff7a80; gap: 13px; }
.textlink::after { content: "\2192"; font-size: 14px; }

/* live chip */
.livechip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--blood-hot);
  border: 1px solid rgba(95, 150, 247, 0.5); border-radius: 6px;
  padding: 6px 11px;
  animation: chipThrob 2.6s ease-in-out infinite;
}
.livechip .rec { width: 8px; height: 8px; background: var(--blood-hot); animation: recBlink 1.1s steps(1) infinite; }
@keyframes chipThrob { 0%, 100% { box-shadow: 0 0 0 rgba(95, 150, 247, 0); } 50% { box-shadow: 0 0 20px -3px var(--blood-glow); } }
@keyframes recBlink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0.15; } }


/* metallic display text (gold-bone) with a blood accent word */
.tmetal, .cloudtext {
  background:
    url('assets/hero/nebula.png?v=record10') center / 1100px auto,
    linear-gradient(180deg, #e6eefb 0%, #b6cbe9 42%, #7291bd 100%);
  background-blend-mode: screen, normal;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22);
  filter: drop-shadow(0 0 6px rgba(215, 232, 255, 0.5)) drop-shadow(0 0 28px rgba(140, 180, 255, 0.42)) drop-shadow(0 14px 44px rgba(0, 0, 0, 0.6));
}
.tblood {
  background:
    url('assets/hero/nebula.png?v=record10') center / 1100px auto,
    linear-gradient(180deg, #c8e0fd 0%, #6595e8 48%, #2a4884 100%);
  background-blend-mode: screen, normal;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1px rgba(200, 224, 255, 0.25);
  filter: drop-shadow(0 0 6px rgba(170, 205, 255, 0.5)) drop-shadow(0 0 30px rgba(110, 160, 250, 0.5)) drop-shadow(0 14px 44px rgba(0, 0, 0, 0.55));
}
/* the whole site's display text carries the cloud treatment */
.section-head h2, .statement .big, .chapter-head .t, .apex .name, .gate h1 {
  background:
    url('assets/hero/nebula.png?v=record10') center / 900px auto,
    linear-gradient(180deg, #cfdbee 0%, #9fb6d8 46%, #64809f 100%);
  background-blend-mode: screen, normal;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.10);
  filter: drop-shadow(0 0 4px rgba(205, 226, 255, 0.26)) drop-shadow(0 0 16px rgba(140, 180, 255, 0.2)) drop-shadow(0 8px 26px rgba(0, 0, 0, 0.5));
}
.section-head h2 .red, .statement .big .red, .plate h2 .red, .page-head h1 .red, .gate h1 .red {
  background:
    url('assets/hero/nebula.png?v=record10') center / 900px auto,
    linear-gradient(180deg, #b9d3f4 0%, #6490d8 50%, #38538c 100%);
  background-blend-mode: screen, normal;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------------------------------- hero ---------------------------------- */

.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; }
.hero-core {
  flex: 1; display: grid; place-items: center; text-align: center;
  padding: 110px var(--gutter) 30px;
}
.hero .kicker {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--mono);
  font-size: 11px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--blood-hot); margin-bottom: 20px;
  animation: riseIn 0.7s var(--ease) 0.05s both;
}
.hero .kicker::before, .hero .kicker::after { content: ""; width: 34px; height: 1px; background: var(--blood); box-shadow: 0 0 12px var(--blood-glow); }
.hero-title {
  position: relative;
  font-family: var(--title);
  font-weight: 800;
  font-size: clamp(56px, 9.8vw, 152px);
  line-height: 0.98; letter-spacing: 0.035em;
  text-transform: uppercase;
  margin: 0 0 14px;
  animation: titleIn 1.05s var(--ease) 0.16s both;
}
/* one-shot charge only: the old infinite background-position drift repainted the
   filtered display text every frame for the life of the page */
.hero-title .tmetal, .hero-title .tblood {
  animation: titleCharge 2.6s var(--ease) 0.2s both;
}
@keyframes titleCharge {
  0% { filter: drop-shadow(0 0 0 rgba(170, 200, 255, 0)) drop-shadow(0 10px 34px rgba(0, 0, 0, 0.55)) brightness(0.45); }
  60% { filter: drop-shadow(0 0 38px rgba(190, 215, 255, 0.75)) drop-shadow(0 10px 34px rgba(0, 0, 0, 0.55)) brightness(1.3); }
  100% { filter: drop-shadow(0 0 14px rgba(170, 200, 255, 0.30)) drop-shadow(0 10px 34px rgba(0, 0, 0, 0.55)) brightness(1); }
}
@keyframes mistDrift { to { background-position: calc(50% + 1100px) 50%, 0 0; } }
@keyframes titleIn {
  from { opacity: 0; transform: translateY(24px) scale(1.045); letter-spacing: 0.055em; }
  to { opacity: 1; transform: none; letter-spacing: 0.005em; }
}
/* chromatic ghost layers: quiet most of the time, occasional signal twitch */
.hero-title .gx { position: absolute; inset: 0; pointer-events: none; }
.hero-title .gx.r { color: var(--blood-hot); opacity: 0; z-index: -1; animation: gxr 7s steps(1) 1.2s infinite; }
.hero-title .gx.w { color: rgba(228, 240, 255, 0.85); opacity: 0; z-index: -2; animation: gxw 7s steps(1) 1.2s infinite; }
@keyframes gxr { 0%, 90.5%, 94%, 100% { opacity: 0; transform: none; } 91% { opacity: 0.55; transform: translate(5px, 2px); } 92.5% { opacity: 0.3; transform: translate(-4px, -1px); } }
@keyframes gxw { 0%, 90.5%, 94%, 100% { opacity: 0; transform: none; } 91.5% { opacity: 0.35; transform: translate(-5px, -2px); } 93% { opacity: 0.2; transform: translate(4px, 2px); } }

/* field-log status lines (mono, dotted leaders, blink cursor) */
.term {
  display: flex; flex-direction: column; gap: 5px; align-items: center;
  margin: 18px 0 22px;
  font-family: var(--mono); font-size: clamp(10.5px, 1.1vw, 12.5px);
  letter-spacing: 0.12em; color: var(--bone-44); text-transform: uppercase;
  animation: riseIn 0.7s var(--ease) 0.32s both;
}
.term .tl b { color: var(--bone-28); font-weight: 400; letter-spacing: 0; }
.term .ok { color: var(--live); }
.term .hot { color: var(--blood-hot); }
.term .num { color: var(--bone); }
/* paint-only typewriter: clip-path steps() reveal, no timers, no layout */
.term .tw {
  display: inline-block; white-space: pre; vertical-align: bottom;
  clip-path: inset(0 100% 0 0);
  animation: twClip 0.85s steps(24, end) forwards;
}
.term .tl:nth-child(1) .tw { animation-delay: 0.55s; }
.term .tl:nth-child(2) .tw { animation-delay: 1.75s; }
.term .tl:nth-child(3) .tw { animation-delay: 2.95s; }
@keyframes twClip { to { clip-path: inset(0 -2% 0 0); } }
.term .tr { opacity: 0; animation: trIn 0.45s ease forwards; }
.term .tl:nth-child(1) .tr { animation-delay: 1.5s; }
.term .tl:nth-child(2) .tr { animation-delay: 2.7s; }
.term .tl:nth-child(3) .tr { animation-delay: 3.9s; }
@keyframes trIn { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .term .tw { clip-path: none; animation: none; }
  .term .tr { opacity: 1; animation: none; }
}
.term .cur { display: inline-block; width: 8px; height: 12px; margin-left: 6px; background: var(--blood-hot); vertical-align: -2px; animation: curBlink 1.05s steps(1) infinite; }
@keyframes curBlink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }

.hero-sub {
  max-width: 62ch; font-size: clamp(14.5px, 1.4vw, 16.5px); line-height: 1.75;
  color: var(--bone-80); margin: 0 auto 30px;
  animation: riseIn 0.7s var(--ease) 0.44s both;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; animation: riseIn 0.7s var(--ease) 0.56s both; }

@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero .kicker, .hero-title, .term, .hero-sub, .hero-actions { animation: none; }
  .hero-title .gx { display: none; }
  .livechip { animation: none; }
}

.hero-strip {
  border-top: 1px solid var(--bone-08);
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.6), rgba(7, 11, 20, 0.86));
}
.hero-strip .cells {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.hero-strip .cell { padding: 16px 24px 18px; border-left: 1px solid var(--bone-08); }
.hero-strip .cell:first-child { border-left: 0; padding-left: 0; }
.hero-strip .k { font-family: var(--mono); font-size: 9.5px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--bone-44); margin-bottom: 7px; }
.hero-strip .v { font-family: var(--mono); font-size: 20px; font-weight: 500; color: var(--bone); line-height: 1.1; display: flex; align-items: center; gap: 10px; }
.hero-strip .v .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: livePulse 2.2s ease-in-out infinite; }
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(84, 227, 163, 0.7); }
  50% { box-shadow: 0 0 0 7px rgba(84, 227, 163, 0); }
}

/* ------------------------------ page sections ----------------------------- */

.section { margin-top: clamp(52px, 7vw, 88px); }

.section-head { margin-bottom: clamp(24px, 3.6vw, 38px); }
.section-head .overline {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--blood-hot); margin-bottom: 12px;
}
.section-head .overline::before { content: ""; width: 30px; height: 1px; background: var(--blood); box-shadow: 0 0 12px var(--blood-glow); }
.section-head h2 {
  font-family: var(--disp);
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 0.94; letter-spacing: 0.045em;
  margin: 0; color: var(--bone); text-transform: uppercase;
}
.section-head h2 .red { color: var(--blood-hot); }
.section-head .row { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; flex-wrap: wrap; }

/* statement + figures merged band */
.statement {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(26px, 4vw, 56px); align-items: center;
  background: var(--panel);
  border: 1px solid var(--glass-border); border-radius: 16px;
  padding: clamp(22px, 3.4vw, 36px);
}
.statement .big {
  font-family: var(--disp); font-size: clamp(28px, 3.8vw, 46px);
  line-height: 1.02; letter-spacing: 0.04em; margin: 0;
  color: var(--bone); text-transform: uppercase;
}
.statement .big .red { color: var(--blood-hot); }
.statement .side p { margin: 0 0 18px; color: var(--bone-62); line-height: 1.75; font-size: 14px; }
.statement .figures {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--bone-08); margin-top: 6px; padding-top: 18px; gap: 12px;
}
.statement .figures .cell { border-left: 1px solid var(--bone-08); padding-left: 18px; border-radius: 10px; padding-top: 8px; padding-bottom: 8px; animation: cellGlow 7s ease-in-out infinite; }
.statement .figures .cell:nth-child(1) { animation-delay: 0s; }
.statement .figures .cell:nth-child(2) { animation-delay: 1.75s; }
.statement .figures .cell:nth-child(3) { animation-delay: 3.5s; }
.statement .figures .cell:nth-child(4) { animation-delay: 5.25s; }
@keyframes cellGlow {
  0%, 34%, 100% { background: transparent; box-shadow: none; }
  12% { background: rgba(127, 176, 255, 0.09); box-shadow: 0 0 26px rgba(127, 176, 255, 0.22); }
}
.statement .figures .cell .v { transition: none; animation: inherit; }
.statement .figures .cell:first-child { border-left: 0; padding-left: 0; }
.statement .figures .v { font-family: var(--mono); font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; color: var(--bone); line-height: 1.05; }
.statement .figures .k { margin-top: 6px; font-family: var(--mono); font-size: 9.5px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bone-44); }

/* stat cells (solid ink placard) */
.placard { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.placard .cell {
  background: var(--panel); border: 1px solid var(--glass-border); border-radius: 12px;
  padding: 17px 19px 19px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.placard .cell:hover { border-color: var(--glass-border-lit); box-shadow: 0 0 26px rgba(95, 150, 247, 0.14); transform: translateY(-2px); }
.placard .v { font-family: var(--mono); font-size: clamp(23px, 2.4vw, 30px); font-weight: 600; color: var(--bone); line-height: 1.05; }
.placard .v small { font-size: 0.44em; color: var(--bone-44); font-weight: 500; margin-left: 6px; letter-spacing: 0.06em; text-transform: uppercase; }
.placard .k { margin-top: 8px; font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bone-44); }
.placard.six { grid-template-columns: repeat(6, 1fr); }
.placard.nine { grid-template-columns: repeat(3, 1fr); }

/* discipline cards */
.cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.card {
  position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--glass-border); border-radius: 14px;
  padding: 19px 18px 17px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.2s ease, background 0.25s ease;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--blood-hot), transparent 80%);
  opacity: 0.55; transition: opacity 0.25s ease;
}
.card:hover {
  border-color: var(--glass-border-lit);
  box-shadow: 0 0 34px rgba(95, 150, 247, 0.2);
  transform: translateY(-3px);
  background: var(--panel-2);
}
.card:hover::before { opacity: 1; }
.card .hd { display: flex; align-items: center; justify-content: space-between; }
.card .num { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; color: var(--gold-hot); }
.card .ic { font-size: 26px; line-height: 1; filter: drop-shadow(0 0 10px rgba(127, 176, 255, 0.35)); }
.card .ic .em { display: inline-block; }
.card-playtime .ic .em { animation: emSway 3.4s ease-in-out infinite; }
.card-distance .ic .em { animation: emStep 2.9s ease-in-out infinite; }
.card-kills .ic .em { animation: emWobble 3.1s ease-in-out infinite; }
.card-killstreak .ic .em { animation: emStomp 3.2s ease-in-out infinite; }
.card-survival .ic .em { animation: emWobble 3.6s ease-in-out infinite; }
.card-location .ic .em { animation: emFloat 3s ease-in-out infinite; }
@keyframes emSway { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
@keyframes emStep { 0%, 100% { transform: translateX(0); } 30% { transform: translateX(3px) rotate(6deg); } 65% { transform: translateX(-2px) rotate(-5deg); } }
@keyframes emStomp { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.16) rotate(-4deg); } 62% { transform: scale(1.05); } }
@keyframes emWobble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-9deg) translateY(-1.5px); } 70% { transform: rotate(7deg); } }
@keyframes emFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3.5px) rotate(3deg); } }
html.lite .card .ic .em { animation: none; }
@media (prefers-reduced-motion: reduce) { .card .ic .em, .apex .seat, .statement .figures .cell, .hero-title .tmetal, .hero-title .tblood { animation: none; } }
.card .t { font-family: var(--disp); font-size: 24px; letter-spacing: 0.06em; color: var(--bone); margin-top: 11px; line-height: 1; text-transform: uppercase; }
.card .s { margin-top: 8px; font-size: 12px; color: var(--bone-62); line-height: 1.55; }
.card .meta { margin-top: 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-44); }
.card .meta b { color: var(--bone); font-weight: 600; }

/* apex podium */
.apex { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.apex .seat {
  position: relative;
  background: var(--panel); border: 1px solid var(--glass-border); border-radius: 14px;
  padding: 20px 22px 19px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.apex .seat:hover { transform: translateY(-3px); }
.apex .seat.s1 { border-color: rgba(200, 220, 248, 0.6); box-shadow: 0 0 34px rgba(200, 220, 248, 0.24), inset 0 0 30px rgba(200, 220, 248, 0.06); }
.apex .seat.s2 { border-color: rgba(238, 243, 250, 0.28); }
.apex .rank {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold-hot); display: inline-flex; align-items: center; gap: 10px;
}
.apex .seat.s2 .rank, .apex .seat.s3 .rank { color: var(--bone-44); }
.apex .name { font-family: var(--disp); font-size: clamp(24px, 2.4vw, 31px); letter-spacing: 0.05em; line-height: 1; color: var(--bone); margin-top: 12px; overflow-wrap: anywhere; text-transform: uppercase; }
.apex .species { margin-top: 5px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone-44); }
.apex .figures { margin-top: 14px; font-size: 12.5px; color: var(--bone-62); line-height: 1.85; }
.apex .figures b { font-family: var(--mono); font-size: 14px; color: var(--bone); font-weight: 600; }
.apex .figures .red { color: var(--blood-hot); }

/* ledger (unlock feed) */
.ledger { display: flex; flex-direction: column; gap: 8px; }
.ledger .entry {
  display: grid; grid-template-columns: 10px 1fr auto; gap: 14px; align-items: center;
  background: var(--panel); border: 1px solid var(--glass-border); border-radius: 11px;
  padding: 11px 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.ledger .entry:hover { border-color: rgba(95, 150, 247, 0.35); background: var(--panel-2); }
.ledger .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blood-hot); box-shadow: 0 0 10px var(--blood-glow); }
.ledger .tx { font-size: 13.5px; color: var(--bone-62); line-height: 1.55; }
.ledger .tx b { color: var(--bone); font-weight: 600; }
.ledger .tx .disc { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blood-hot); margin-left: 10px; white-space: nowrap; }
.ledger .when { font-family: var(--mono); font-size: 10.5px; color: var(--bone-28); white-space: nowrap; }
.ledger .gold { color: var(--gold-hot); }
.ledger .empty { padding: 20px 4px; color: var(--bone-44); font-size: 14px; }

/* closing plate */
.plate {
  position: relative; margin-top: clamp(52px, 7vw, 88px);
  min-height: 46vh; display: grid; place-items: center; text-align: center;
}
.plate::before {
  content: ""; position: absolute; inset: -60px 0;
  background: radial-gradient(60% 78% at 50% 50%, rgba(7, 11, 20, 0.55), transparent 78%);
}
.plate .inner { position: relative; padding: clamp(54px, 9vh, 100px) var(--gutter); }
.plate h2 {
  font-family: var(--title); font-weight: 800; font-size: clamp(34px, 5.2vw, 72px);
  line-height: 1.02; letter-spacing: 0.03em; margin: 0 0 16px; text-transform: uppercase;
}
.plate p { max-width: 52ch; margin: 0 auto 28px; color: var(--bone-80); }

/* ------------------------------- page header ------------------------------ */

.page-head { padding-top: clamp(120px, 16vh, 165px); }
.page-head .overline {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--blood-hot);
}
.page-head .overline::before { content: ""; width: 30px; height: 1px; background: var(--blood); box-shadow: 0 0 12px var(--blood-glow); }
.page-head h1 {
  font-family: var(--title);
  font-weight: 800;
  font-size: clamp(38px, 5.6vw, 78px);
  line-height: 1; letter-spacing: 0.03em;
  margin: 14px 0 16px; text-transform: uppercase;
}
.page-head .lede { margin: 0; max-width: 62ch; font-size: clamp(14px, 1.35vw, 15.5px); line-height: 1.7; color: var(--bone-62); }
.page-head .lede b { color: var(--blood-hot); font-weight: 600; }

/* --------------------------------- tabs ----------------------------------- */

.tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 8px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--glass-border);
  width: fit-content; max-width: 100%;
}
.tab {
  padding: 9px 15px; border-radius: 8px;
  font-family: var(--mono);
  font-size: 11px; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--bone-62); border: 1px solid transparent; white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.tab:hover { color: var(--bone); background: var(--blood-08); }
.tab.on {
  color: #fff; border-color: rgba(95, 150, 247, 0.55);
  background: linear-gradient(180deg, rgba(95, 150, 247, 0.35), rgba(95, 150, 247, 0.16));
  box-shadow: 0 0 18px rgba(95, 150, 247, 0.25);
}

/* ----------------------------- classification ----------------------------- */

.classification { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.class-row {
  display: grid; grid-template-columns: 58px 1fr auto; align-items: center;
  gap: clamp(14px, 2.6vw, 34px);
  background: var(--panel); border: 1px solid var(--glass-border); border-radius: 12px;
  padding: 11px 18px 11px 12px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.18s ease;
}
.class-row:hover { border-color: rgba(95, 150, 247, 0.4); background: var(--panel-2); transform: translateX(3px); }
.class-row .rank {
  font-family: var(--disp); font-size: 22px; letter-spacing: 0.04em;
  color: var(--bone-28); text-align: center; line-height: 1;
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--bone-08);
}
.class-row.gilded .rank {
  color: #14100a; border-color: rgba(228, 240, 255, 0.75);
  background: linear-gradient(180deg, var(--gold-hot), var(--gold));
  box-shadow: 0 0 20px rgba(200, 220, 248, 0.4);
}
.class-row .who { min-width: 0; }
.class-row .nm { font-size: 15px; font-weight: 600; color: var(--bone); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.class-row .nm .you {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: #fff; background: var(--blood); border-radius: 5px;
  padding: 3px 8px; margin-left: 11px; vertical-align: 2px;
  box-shadow: 0 0 12px rgba(95, 150, 247, 0.4);
}
.class-row .sp { margin-top: 2px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-44); }
.class-row .metric { text-align: right; }
.class-row .metric b { font-family: var(--mono); font-size: clamp(16px, 1.8vw, 20px); font-weight: 600; color: var(--bone); line-height: 1.15; }
.class-row .metric span { display: block; margin-top: 2px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone-44); }
.class-row.me { border-color: rgba(95, 150, 247, 0.55); background: var(--panel-2); box-shadow: inset 0 0 24px rgba(95, 150, 247, 0.08); }

/* ------------------------------- chapters --------------------------------- */

.chapter {
  margin-top: clamp(30px, 4.4vw, 46px);
  background: var(--panel); border: 1px solid var(--glass-border); border-radius: 16px;
  padding: clamp(18px, 2.8vw, 28px);
}
.chapter-head {
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(16px, 2.6vw, 30px);
  align-items: center; padding-bottom: 15px; margin-bottom: 4px;
  border-bottom: 1px solid var(--bone-08);
}
.chapter-head .numeral {
  font-family: var(--disp); font-size: clamp(27px, 3.2vw, 38px); line-height: 1;
  color: var(--gold-hot); text-shadow: 0 0 24px rgba(200, 220, 248, 0.4);
  min-width: 52px; text-align: center;
  border: 1px solid rgba(200, 220, 248, 0.4); border-radius: 12px; padding: 9px 8px;
  background: var(--gold-08);
}
.chapter-head .t { font-family: var(--disp); font-size: clamp(22px, 2.8vw, 31px); letter-spacing: 0.05em; line-height: 1; color: var(--bone); text-transform: uppercase; }
.chapter-head .s { margin-top: 6px; font-size: 12.5px; color: var(--bone-62); }
.chapter-head .standing { text-align: right; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone-44); line-height: 1.9; }
.chapter-head .standing b { display: block; font-family: var(--mono); font-size: 18px; letter-spacing: 0; color: var(--bone); font-weight: 600; }

.milestone {
  display: grid; grid-template-columns: 38px 1fr 210px;
  gap: clamp(14px, 2.6vw, 32px); align-items: center;
  padding: 13px 4px; border-bottom: 1px solid var(--bone-08);
}
.milestone:last-child { border-bottom: 0; }
.milestone .seal {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--bone-14);
  display: grid; place-items: center; color: transparent;
}
.milestone.unlocked .seal {
  background: linear-gradient(180deg, var(--gold-hot), var(--gold));
  border-color: rgba(228, 240, 255, 0.8); color: #14100a;
  box-shadow: 0 0 16px rgba(200, 220, 248, 0.45);
}
.milestone.next .seal { border-color: var(--blood-hot); box-shadow: 0 0 12px rgba(95, 150, 247, 0.25); }
.milestone .seal svg { width: 12px; height: 12px; }
.milestone .nm { font-size: 14.5px; font-weight: 600; color: var(--bone); line-height: 1.3; }
.milestone .req { margin-top: 2px; font-size: 12px; color: var(--bone-44); }
.milestone .req .award { font-family: var(--mono); font-size: 10.5px; color: var(--gold-hot); margin-left: 10px; white-space: nowrap; }
.milestone .state { text-align: right; }
.milestone .state .lab { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-44); margin-bottom: 6px; }
.milestone.unlocked .state .lab { color: var(--gold-hot); }
.milestone .meter { height: 3px; border-radius: 2px; background: var(--bone-08); position: relative; overflow: hidden; }
.milestone .meter i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: linear-gradient(90deg, #2b52a8, #7fb0ff 55%, var(--gold)); box-shadow: 0 0 10px var(--blood-glow); }
.milestone.locked { opacity: 0.78; }
.milestone.locked .nm { color: var(--bone-62); }

/* ------------------------------ profile sheet ----------------------------- */

.sheet {
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(22px, 3.6vw, 44px);
  align-items: center;
  background: var(--panel); border: 1px solid var(--glass-border); border-radius: 16px;
  padding: clamp(22px, 3.4vw, 36px);
  margin-top: clamp(22px, 3.4vw, 34px);
}
.sheet .portrait {
  width: clamp(86px, 9vw, 116px); height: clamp(86px, 9vw, 116px);
  border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(95, 150, 247, 0.5);
  box-shadow: 0 0 30px rgba(95, 150, 247, 0.28);
  display: grid; place-items: center;
  background: var(--blood-deep);
  font-family: var(--disp); font-size: clamp(38px, 4vw, 52px); color: var(--bone);
}
.sheet .portrait img { width: 100%; height: 100%; object-fit: cover; }
.sheet .name {
  font-family: var(--disp);
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.9; letter-spacing: 0.04em; margin: 8px 0 12px;
  color: var(--bone); overflow-wrap: anywhere; text-transform: uppercase;
}
.sheet .idline { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-44); line-height: 2.1; }
.sheet .idline b { color: var(--bone); font-weight: 600; }
.sheet .idline .sepdot { color: var(--blood-hot); margin: 0 9px; }

.levelring { display: flex; align-items: center; gap: 22px; }
.levelring .ring {
  width: clamp(104px, 11vw, 132px); aspect-ratio: 1; border-radius: 50%;
  position: relative; display: grid; place-items: center; flex-shrink: 0;
  filter: drop-shadow(0 0 18px rgba(200, 220, 248, 0.35));
}
.levelring .ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--gold-hot) calc(var(--p) * 1%), rgba(238, 243, 250, 0.10) 0);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 5px), #000 calc(100% - 4.4px));
  mask: radial-gradient(closest-side, transparent calc(100% - 5px), #000 calc(100% - 4.4px));
}
.levelring .ring .n { font-family: var(--disp); font-size: clamp(40px, 4.2vw, 54px); line-height: 1; color: var(--bone); }
.levelring .ring .lab { position: absolute; bottom: 16%; font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--bone-44); }
.levelring .detail { font-size: 12.5px; color: var(--bone-62); line-height: 2.05; }
.levelring .detail b { font-family: var(--mono); color: var(--bone); font-weight: 600; }
.levelring .detail .gold { color: var(--gold-hot); font-family: var(--mono); }

/* signed-out gate */
.gate { text-align: center; padding: clamp(44px, 8vh, 90px) 0; }
.gate h1 {
  font-family: var(--title); font-weight: 800; font-size: clamp(32px, 5vw, 62px);
  letter-spacing: 0.04em; margin: 18px 0 16px; line-height: 0.92; color: var(--bone); text-transform: uppercase;
}
.gate h1 .red { color: var(--blood-hot); }
.gate p { max-width: 54ch; margin: 0 auto 30px; color: var(--bone-62); }

/* -------------------------------- reveal ---------------------------------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .atmos .fog { animation: none; }
}

/* ------------------------------- responsive ------------------------------- */

@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .placard.six, .placard.nine { grid-template-columns: repeat(3, 1fr); }
  .apex { grid-template-columns: 1fr; }
  .topbar { grid-template-columns: auto 1fr auto; }
}

@media (max-width: 900px) {
  .mainnav { display: none; }
  .burger { display: flex; }
  .topbar { grid-template-columns: 1fr auto auto; }
  .statement { grid-template-columns: 1fr; }
  .statement .figures { grid-template-columns: 1fr 1fr; gap: 14px; }
  .statement .figures .cell:nth-child(odd) { border-left: 0; padding-left: 0; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .milestone { grid-template-columns: 34px 1fr 124px; }
  .hero-strip .cells { grid-template-columns: 1fr 1fr; }
  .hero-strip .cell { padding: 11px 16px 13px; }
  .hero-strip .cell:nth-child(odd) { border-left: 0; padding-left: 0; }
  .hero-strip .cell:nth-child(1), .hero-strip .cell:nth-child(2) { border-bottom: 1px solid var(--bone-08); }
  .hero-strip .v { font-size: 16px; }
  .sheet { grid-template-columns: auto 1fr; }
  .sheet .levelring { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .nav-user .signin { display: none; }   /* the menu, the call, and the hero carry sign-in */
  .placard { grid-template-columns: 1fr 1fr; gap: 10px; }
  .placard.six, .placard.nine { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cards { grid-template-columns: 1fr; }
  .chapter-head { grid-template-columns: auto 1fr; }
  .chapter-head .standing { display: none; }
  .milestone { grid-template-columns: 32px 1fr; }
  .milestone .state { grid-column: 2; text-align: left; }
  .class-row { grid-template-columns: 42px 1fr auto; padding: 10px 13px 10px 9px; }
  .class-row .rank { width: 36px; height: 36px; font-size: 18px; }
  .class-row .metric b { font-size: 14px; }
  .sheet { grid-template-columns: 1fr; }
  .foot .cols { grid-template-columns: 1fr; gap: 26px; }
  .hero-actions .btn { width: 100%; }
  .term { letter-spacing: 0.06em; }
}

/* ============================= owner console (admin.html) ============================= */
.adminpage { display: flex; flex-direction: column; gap: 26px; padding-bottom: 90px; }
.adminpage .page-head p { max-width: 640px; }
.apanel {
  background: var(--panel-2); border: 1px solid rgba(200, 220, 248, 0.12); border-radius: 14px;
  padding: 22px 24px 24px; backdrop-filter: none;
}
.apanel .ahead { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.apanel .ahead h2 { font-family: var(--disp); font-size: 22px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone); }
.apanel .ameta { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone-44); }
.apanel .empty { padding: 18px 2px; color: var(--bone-44); font-size: 14px; }
.apanel .asub { margin: 20px 0 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-hot); }

.arow {
  display: grid; grid-template-columns: minmax(180px, 1.2fr) 2fr auto; gap: 12px; align-items: center;
  padding: 11px 14px; margin-bottom: 8px; border: 1px solid rgba(200, 220, 248, 0.1); border-radius: 11px;
  background: rgba(10, 16, 30, 0.55);
}
.arow .who .nm { font-size: 14.5px; font-weight: 600; color: var(--bone); }
.arow .who .nm .dim { color: var(--bone-44); font-weight: 400; }
.arow .who .sp { margin-top: 2px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--bone-44); }
.arow .vitals { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--mono); font-size: 11px; color: var(--bone-62); }
.arow .vitals .dim { color: var(--bone-44); }
.arow .vitals .mono-sm { font-size: 9.5px; letter-spacing: 0.04em; }
.arow .acts { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }

.abtn {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bone-80); background: rgba(95, 150, 247, 0.1); border: 1px solid rgba(127, 176, 255, 0.28);
  border-radius: 8px; padding: 7px 12px; cursor: pointer; transition: all 0.16s var(--ease);
}
.abtn:hover { background: rgba(95, 150, 247, 0.22); color: var(--bone); }
.abtn.warn { border-color: rgba(255, 196, 110, 0.3); background: rgba(255, 176, 80, 0.08); }
.abtn.warn:hover { background: rgba(255, 176, 80, 0.18); }
.abtn.danger { border-color: rgba(255, 96, 96, 0.35); background: rgba(255, 70, 70, 0.09); }
.abtn.danger:hover { background: rgba(255, 70, 70, 0.2); }
.abtn.busy, #ad-run.busy { opacity: 0.45; pointer-events: none; }

.aform { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.aform label { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-44); }
.aform input[type="text"], .aform input[type="number"], .aform input[type="date"], .aform select {
  background: rgba(8, 13, 26, 0.85); border: 1px solid rgba(200, 220, 248, 0.16); border-radius: 8px;
  color: var(--bone); font-family: var(--mono); font-size: 13px; padding: 9px 11px; min-width: 150px;
}
.aform input:focus, .aform select:focus { outline: none; border-color: rgba(127, 176, 255, 0.55); box-shadow: 0 0 0 3px rgba(95, 150, 247, 0.14); }
.aform.filters { gap: 10px; margin-bottom: 14px; }
.aform.filters input, .aform.filters select { min-width: 120px; }

.aresult { margin-top: 12px; min-height: 22px; }
.achip {
  display: inline-block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em;
  padding: 5px 10px; border-radius: 7px; border: 1px solid rgba(200, 220, 248, 0.16); color: var(--bone-62);
}
.achip.ok { border-color: rgba(120, 230, 160, 0.4); color: #9fe8bd; background: rgba(90, 220, 140, 0.08); }
.achip.fail { border-color: rgba(255, 110, 110, 0.4); color: #ffb0b0; background: rgba(255, 80, 80, 0.08); }
.achip.pending { border-color: rgba(255, 205, 120, 0.4); color: #ffd9a0; background: rgba(255, 190, 90, 0.07); }
.achip.plain { color: var(--bone-62); }
.achip.warnchip { border-color: rgba(255, 196, 110, 0.35); color: #ffd9a0; }
.achip.srcweb { border-color: rgba(127, 176, 255, 0.4); color: #b9d4ff; }
.achip.srcgame { border-color: rgba(200, 220, 248, 0.25); color: var(--bone-62); }

.wgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 12px; }
.wgrid .lab, .whist .lab { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-44); margin-bottom: 4px; }
.wgrid b { font-size: 15px; color: var(--bone); font-weight: 600; }
.whist { margin: 10px 0 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.whist .lab { margin-bottom: 0; }
.apending { margin-top: 12px; font-family: var(--mono); font-size: 11px; color: #ffd9a0; }

.wmaster { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--bone); margin-bottom: 14px; cursor: pointer; }
.wgroup {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bone-44); margin: 16px 0 8px; padding-bottom: 5px; border-bottom: 1px solid rgba(200, 220, 248, 0.08);
}
.wrow {
  display: grid; grid-template-columns: minmax(210px, 1.6fr) repeat(3, 1fr); gap: 10px; align-items: end;
  padding: 10px 12px; margin-bottom: 7px; border: 1px solid rgba(200, 220, 248, 0.08); border-radius: 10px;
  background: rgba(10, 16, 30, 0.45);
}
.wrow.off { opacity: 0.55; }
.wrow .winc span { display: flex; flex-direction: column; gap: 2px; }
.wrow .winc small { font-size: 10.5px; color: var(--bone-44); font-weight: 400; letter-spacing: 0; }
.wunit { display: flex; align-items: center; gap: 7px; color: var(--bone-62); font-size: 11px; text-transform: none; letter-spacing: 0.02em; }
.wspacer { display: block; }
.wrow label { display: flex; flex-direction: column; gap: 5px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone-44); }
.wrow label.winc { flex-direction: row; align-items: center; gap: 9px; font-size: 12.5px; letter-spacing: 0.04em; text-transform: none; color: var(--bone); font-family: 'Inter', sans-serif; cursor: pointer; }
.wrow input[type="number"] {
  background: rgba(8, 13, 26, 0.85); border: 1px solid rgba(200, 220, 248, 0.14); border-radius: 7px;
  color: var(--bone); font-family: var(--mono); font-size: 12.5px; padding: 7px 9px; width: 100%;
}
.wrow input[type="number"]:focus { outline: none; border-color: rgba(127, 176, 255, 0.5); }
.wfoot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.asum { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--bone-62); }
.asum.bad { color: #ffb0b0; }

@media (max-width: 900px) {
  .arow { grid-template-columns: 1fr; }
  .arow .acts { justify-content: flex-start; }
  .wrow { grid-template-columns: repeat(3, 1fr); }
  .wrow label.winc { grid-column: 1 / -1; }
}

/* ============================ v8 additions: live feeds / map / arcade / guilds ============================ */

/* range + live chrome */
.rangebar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: clamp(22px, 3vw, 32px); }
.livechip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--live); }
.livechip i { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 12px rgba(84, 227, 163, 0.8); animation: livepulse 2s ease-in-out infinite; }
@keyframes livepulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .livechip i { animation: none; } }
.updated-at { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-28); margin-left: auto; }

/* chart panels */
.chartgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.chartgrid .full { grid-column: 1 / -1; }
.chartpanel { background: var(--panel); border: 1px solid var(--glass-border); border-radius: 14px; padding: 16px 18px 12px; }
.chartpanel .ch { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.chartpanel .ct { font-family: var(--disp); font-size: 19px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--bone); }
.chartpanel .cs { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone-44); }
.cht-root { position: relative; }
.cht-hold { opacity: 0.55; transition: opacity 0.2s ease; }
.cht-ax { font-family: var(--mono); font-size: 10px; fill: rgba(238, 243, 250, 0.44); }
.cht-lb { font-family: var(--mono); font-size: 10.5px; fill: rgba(238, 243, 250, 0.72); }
.cht-vl { font-family: var(--mono); font-size: 10.5px; font-weight: 600; fill: #eef3fa; }
.cht-wrap { position: relative; }
.cht-empty { padding: 34px 8px; color: var(--bone-44); font-size: 13px; }
.cht-legend { display: flex; flex-wrap: wrap; gap: 12px; padding: 2px 2px 8px; }
.cht-legend .key { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-62); }
.cht-legend .key i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.cht-tip { position: absolute; z-index: 4; pointer-events: none; opacity: 0; transition: opacity 0.12s ease; background: var(--panel-2); border: 1px solid var(--glass-border-lit); border-radius: 10px; padding: 9px 12px; min-width: 132px; box-shadow: 0 10px 34px rgba(0, 0, 0, 0.5); }
.cht-tip .when { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-44); margin-bottom: 6px; }
.cht-tip .row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--bone-62); padding: 1.5px 0; }
.cht-tip .row i { width: 12px; height: 3px; border-radius: 2px; }
.cht-tip .row b { font-family: var(--mono); font-size: 12.5px; color: var(--bone); min-width: 34px; }
.cht-table { margin-top: 6px; }
.cht-table summary { cursor: pointer; font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone-28); padding: 4px 0; }
.cht-table summary:hover { color: var(--bone-62); }
.cht-table .tw { max-height: 220px; overflow: auto; margin-top: 6px; border: 1px solid var(--bone-08); border-radius: 8px; }
.cht-table table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 11px; }
.cht-table th, .cht-table td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--bone-08); color: var(--bone-62); font-variant-numeric: tabular-nums; }
.cht-table th { color: var(--bone-44); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; position: sticky; top: 0; background: #101a2e; }

/* live feed panels */
.feedgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.feedpanel { background: var(--panel); border: 1px solid var(--glass-border); border-radius: 14px; display: flex; flex-direction: column; min-height: 300px; }
.feedpanel .fh { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 11px; border-bottom: 1px solid var(--bone-08); }
.feedpanel .ft { font-family: var(--disp); font-size: 18px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--bone); }
.feedlist { flex: 1; overflow-y: auto; max-height: 430px; padding: 8px 10px; scrollbar-width: thin; scrollbar-color: rgba(95, 150, 247, 0.3) transparent; }
.feedlist::-webkit-scrollbar { width: 6px; }
.feedlist::-webkit-scrollbar-thumb { background: rgba(95, 150, 247, 0.25); border-radius: 3px; }
.feedrow { display: grid; grid-template-columns: 8px 1fr auto; gap: 10px; align-items: start; padding: 8px 8px; border-radius: 9px; transition: background 0.15s ease; }
.feedrow:hover { background: var(--blood-08); }
.feedrow .fdot { width: 6px; height: 6px; border-radius: 50%; margin-top: 6px; background: var(--bone-28); }
.feedrow.kill .fdot { background: #e66767; box-shadow: 0 0 8px rgba(230, 103, 103, 0.6); }
.feedrow.death .fdot { background: var(--bone-44); }
.feedrow.announce .fdot { background: var(--gold-hot); box-shadow: 0 0 8px rgba(228, 240, 255, 0.5); }
.feedrow.chat .fdot { background: var(--blood-hot); }
.feedrow .fx { font-size: 12.5px; line-height: 1.5; color: var(--bone-62); overflow-wrap: anywhere; }
.feedrow .fx b { color: var(--bone); font-weight: 600; }
.feedrow .fx .sp { color: var(--blood-hot); font-weight: 600; }
.feedrow .fx .zn { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-44); white-space: nowrap; margin-left: 8px; }
.feedrow .fwhen { font-family: var(--mono); font-size: 9.5px; color: var(--bone-28); white-space: nowrap; margin-top: 4px; }
.feedempty { padding: 26px 16px; color: var(--bone-44); font-size: 12.5px; line-height: 1.6; }

/* map page */
.maptabs { display: flex; gap: 8px; align-items: center; }
.maptabs .tab .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #e66767; box-shadow: 0 0 9px rgba(230, 103, 103, 0.8); margin-left: 8px; vertical-align: 1px; animation: livepulse 1.6s ease-in-out infinite; }
/* full-bleed embedded island survey (the /gateway-map app) */
.mapfull {
  position: relative; margin-top: 14px;
  height: calc(100vh - 230px); min-height: 620px;
  border: 1px solid var(--glass-border); border-radius: 16px; overflow: hidden;
  background: #06090f;
}
.mapfull iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.mapfull:fullscreen { border-radius: 0; border: 0; }
.mapfs {
  position: absolute; right: 14px; top: 14px; z-index: 9;
  padding: 8px 14px; border-radius: 8px;
  background: rgba(12, 18, 24, 0.62); border: 1px solid rgba(238, 243, 250, 0.2);
  color: var(--bone); font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.mapfs:hover { border-color: rgba(95, 150, 247, 0.6); background: rgba(12, 18, 24, 0.85); }
.mapnotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.mapnotes .mn { background: var(--panel); border: 1px solid var(--glass-border); border-radius: 14px; padding: 18px 20px; }
.mapnotes h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone-62); margin: 0 0 8px; }
.mapnotes p { font-size: 12.5px; line-height: 1.65; color: var(--bone-62); margin: 0; }
@media (max-width: 900px) {
  .mapnotes { grid-template-columns: 1fr; }
  .mapfull { height: calc(100vh - 190px); min-height: 480px; }
}

.maplayout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: 12px; margin-top: 14px; align-items: start; }
.mapstage { position: relative; background: var(--panel); border: 1px solid var(--glass-border); border-radius: 16px; overflow: hidden; }
.mapstage img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.mapstage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mapstage .zone-ring { fill: rgba(238, 243, 250, 0.03); stroke: rgba(238, 243, 250, 0.30); stroke-width: 1.2; transition: fill 0.2s ease, stroke 0.2s ease; cursor: pointer; }
.mapstage .zone-ring:hover, .mapstage .zone-ring.sel { fill: rgba(95, 150, 247, 0.14); stroke: var(--blood-hot); }
.mapstage .zone-name { font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; fill: rgba(238, 243, 250, 0.85); paint-order: stroke; stroke: rgba(7, 11, 22, 0.85); stroke-width: 3px; text-anchor: middle; pointer-events: none; }
.mapstage .zone-sub { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.1em; fill: rgba(238, 243, 250, 0.55); paint-order: stroke; stroke: rgba(7, 11, 22, 0.85); stroke-width: 3px; text-anchor: middle; pointer-events: none; }
.mapstage .zone-tag { font-family: 'JetBrains Mono', monospace; font-size: 15px; font-weight: 700; letter-spacing: 0.2em; paint-order: stroke; stroke: rgba(7, 11, 22, 0.9); stroke-width: 4px; text-anchor: middle; pointer-events: none; }
.mapstage .poi { fill: rgba(238, 243, 250, 0.5); }
.mapstage .me-dot { fill: var(--live); stroke: #06251a; stroke-width: 2; }
.mapstage .me-pulse { fill: none; stroke: var(--live); stroke-width: 2; opacity: 0.8; animation: mepulse 2.2s ease-out infinite; }
@keyframes mepulse { 0% { r: 8; opacity: 0.9; } 100% { r: 26; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mapstage .me-pulse { animation: none; opacity: 0; } }
.mapstage .contested-ring { animation: contestpulse 1.8s ease-in-out infinite; }
@keyframes contestpulse { 0%, 100% { stroke-opacity: 1; } 50% { stroke-opacity: 0.35; } }
.maprail { display: flex; flex-direction: column; gap: 12px; }
.mapchips { display: flex; flex-wrap: wrap; gap: 8px; }
.mapchip { display: inline-flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--glass-border); border-radius: 999px; padding: 7px 14px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-62); }
.mapchip b { color: var(--bone); font-weight: 600; }
.zonelist { background: var(--panel); border: 1px solid var(--glass-border); border-radius: 14px; overflow: hidden; }
.zonelist .zh { padding: 13px 16px 10px; border-bottom: 1px solid var(--bone-08); font-family: var(--disp); font-size: 17px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--bone); }
.zonerow { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--bone-08); cursor: pointer; transition: background 0.15s ease; }
.zonerow:last-child { border-bottom: 0; }
.zonerow:hover, .zonerow.sel { background: var(--blood-08); }
.zonerow .zn { font-size: 13px; font-weight: 600; color: var(--bone); }
.zonerow .zs { margin-top: 2px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-44); }
.zonerow .zpts { font-family: var(--mono); font-size: 12px; color: var(--bone-62); text-align: right; }
.holdtag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.16em; border-radius: 6px; padding: 3px 8px; color: #0a0f1c; }
.holdtag.none { background: transparent; border: 1px dashed var(--bone-28); color: var(--bone-44); font-weight: 500; }
.contested-chip { font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: #ff9c9c; border: 1px solid rgba(230, 103, 103, 0.5); border-radius: 5px; padding: 2px 7px; margin-left: 8px; }
.zonedetail { background: var(--panel); border: 1px solid var(--glass-border); border-radius: 14px; padding: 16px 18px; }
.zonedetail h4 { margin: 0 0 4px; font-family: var(--disp); font-size: 21px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bone); }
.zonedetail .zmeta { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-44); margin-bottom: 12px; }
.zonedetail .contender { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--bone-08); }
.zonedetail .contender:last-of-type { border-bottom: 0; }
.zonedetail .contender .nm { font-size: 13px; font-weight: 600; color: var(--bone); }
.zonedetail .contender .sub { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone-44); margin-top: 2px; }
.zonedetail .contender .pts { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--bone); }
.howcontrol { font-size: 12.5px; line-height: 1.7; color: var(--bone-62); }
.howcontrol b { color: var(--bone); }

/* arcade */
.walletbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--glass-border); border-radius: 14px; padding: 14px 18px; margin-top: clamp(22px, 3vw, 32px); }
.walletbar .amber { display: flex; align-items: baseline; gap: 9px; }
.walletbar .amber .v { font-family: var(--mono); font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; color: var(--gold-hot); text-shadow: 0 0 18px rgba(228, 240, 255, 0.35); }
.walletbar .amber .u { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bone-44); }
.walletbar .earnnote { font-size: 12px; color: var(--bone-62); line-height: 1.5; }
.walletbar .earnnote b { color: var(--bone); }
.arcadegrid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 12px; margin-top: 14px; align-items: start; }
.gamestage { background: var(--panel); border: 1px solid var(--glass-border); border-radius: 16px; padding: clamp(16px, 2.4vw, 26px); min-height: 420px; }
.gamerail { display: flex; flex-direction: column; gap: 12px; }
.betbox { background: var(--panel); border: 1px solid var(--glass-border); border-radius: 14px; padding: 16px 18px; }
.betbox .bh { font-family: var(--disp); font-size: 17px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--bone); margin-bottom: 10px; }
.chiprow { display: flex; gap: 7px; flex-wrap: wrap; margin: 8px 0 12px; }
.chip { font-family: var(--mono); font-size: 11.5px; font-weight: 600; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--glass-border); color: var(--bone-62); transition: all 0.15s ease; }
.chip:hover { color: var(--bone); border-color: var(--glass-border-lit); }
.chip.on { color: #14100a; background: linear-gradient(180deg, var(--gold-hot), var(--gold)); border-color: rgba(228, 240, 255, 0.7); box-shadow: 0 0 16px rgba(200, 220, 248, 0.35); }
.betnum { width: 100%; background: rgba(7, 11, 22, 0.6); border: 1px solid var(--glass-border); border-radius: 9px; color: var(--bone); font-family: var(--mono); font-size: 15px; padding: 10px 12px; }
.betnum:focus { outline: none; border-color: var(--blood-hot); box-shadow: 0 0 14px rgba(95, 150, 247, 0.25); }
.riskrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 8px 0 4px; }
.playbtn { width: 100%; margin-top: 12px; font-family: var(--disp); font-size: 19px; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; padding: 13px 10px; border-radius: 11px; border: 1px solid rgba(95, 150, 247, 0.6); background: linear-gradient(180deg, rgba(95, 150, 247, 0.5), rgba(30, 58, 120, 0.5)); box-shadow: 0 0 24px rgba(95, 150, 247, 0.25); transition: all 0.2s ease; }
.playbtn:hover:not(:disabled) { box-shadow: 0 0 40px rgba(95, 150, 247, 0.45); transform: translateY(-1px); }
.playbtn:disabled { opacity: 0.45; cursor: not-allowed; }
.outcome-strip { margin-top: 12px; min-height: 42px; display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--bone-62); }
.outcome-strip b { font-family: var(--mono); font-size: 16px; }
.outcome-strip .win { color: var(--live); text-shadow: 0 0 14px rgba(84, 227, 163, 0.5); }
.outcome-strip .lose { color: #ff8b8b; }

/* roulette */
.wheelwrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.wheelframe { position: relative; width: min(340px, 76vw); aspect-ratio: 1; }
.wheelframe .pointer { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 14px solid var(--gold-hot); filter: drop-shadow(0 0 8px rgba(228, 240, 255, 0.6)); z-index: 3; }
.wheel { position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(200, 220, 248, 0.35); box-shadow: 0 0 44px rgba(95, 150, 247, 0.2), inset 0 0 30px rgba(0, 0, 0, 0.65); transition: transform 4.2s cubic-bezier(0.12, 0.72, 0.08, 1); will-change: transform; }
.wheel::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #16233d, #070b16 78%); border: 1px solid rgba(200, 220, 248, 0.3); }
.wheelhub { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; pointer-events: none; }
.wheelhub .in2 { text-align: center; }
.wheelhub .res { font-family: var(--mono); font-size: 44px; font-weight: 700; color: var(--bone); text-shadow: 0 0 22px rgba(95, 150, 247, 0.6); }
.wheelhub .res.red { color: #ff8b8b; }
.wheelhub .res.black { color: var(--bone-80); }
.wheelhub .res.green { color: var(--live); }
.wheelhub .rlbl { font-family: var(--mono); font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--bone-44); margin-top: 4px; }
.lastnums { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.lastnums .ln { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 600; border: 1px solid var(--bone-08); }
.lastnums .ln.red { color: #ffb3b3; background: rgba(230, 103, 103, 0.18); border-color: rgba(230, 103, 103, 0.4); }
.lastnums .ln.black { color: var(--bone-80); background: rgba(238, 243, 250, 0.06); }
.lastnums .ln.green { color: var(--live); background: rgba(84, 227, 163, 0.14); border-color: rgba(84, 227, 163, 0.4); }
.rboard { margin-top: 4px; }
.rboard .zerorow { display: grid; grid-template-columns: 1fr; margin-bottom: 5px; }
.rboard .numgrid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.rnum { position: relative; aspect-ratio: 1 / 0.9; border-radius: 7px; display: grid; place-items: center; font-family: var(--mono); font-size: 12.5px; font-weight: 600; border: 1px solid var(--bone-08); color: var(--bone-80); transition: all 0.13s ease; }
.rnum.red { background: rgba(230, 103, 103, 0.16); border-color: rgba(230, 103, 103, 0.35); }
.rnum.black { background: rgba(238, 243, 250, 0.045); }
.rnum.green { background: rgba(84, 227, 163, 0.12); border-color: rgba(84, 227, 163, 0.35); }
.rnum:hover { border-color: var(--glass-border-lit); transform: translateY(-1px); }
.rnum.has { border-color: var(--gold-hot); box-shadow: 0 0 12px rgba(200, 220, 248, 0.35); }
.rnum .amt { position: absolute; top: -7px; right: -5px; background: linear-gradient(180deg, var(--gold-hot), var(--gold)); color: #14100a; font-size: 9px; font-weight: 700; border-radius: 999px; padding: 2px 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
.outsidegrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 5px; }
.outsidegrid .rout { position: relative; padding: 10px 4px; border-radius: 7px; text-align: center; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--bone-08); color: var(--bone-62); transition: all 0.13s ease; }
.outsidegrid .rout:hover { border-color: var(--glass-border-lit); color: var(--bone); }
.outsidegrid .rout.has { border-color: var(--gold-hot); color: var(--bone); box-shadow: 0 0 12px rgba(200, 220, 248, 0.3); }
.outsidegrid .rout .amt { position: absolute; top: -7px; right: -4px; background: linear-gradient(180deg, var(--gold-hot), var(--gold)); color: #14100a; font-size: 9px; font-weight: 700; border-radius: 999px; padding: 2px 6px; }
.betlist { margin-top: 10px; display: flex; flex-direction: column; gap: 5px; }
.betlist .b { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11px; color: var(--bone-62); background: rgba(7, 11, 22, 0.5); border: 1px solid var(--bone-08); border-radius: 7px; padding: 6px 10px; }
.betlist .b b { color: var(--bone); }
.betlist .b .x { color: var(--bone-28); padding: 0 4px; cursor: pointer; }
.betlist .b .x:hover { color: #ff8b8b; }

/* plinko */
.plinkowrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.plinkoboard { position: relative; width: min(430px, 84vw); }
.plinkoboard .prow { display: flex; justify-content: center; gap: 26px; height: 26px; }
.plinkoboard .peg { width: 7px; height: 7px; border-radius: 50%; background: rgba(238, 243, 250, 0.5); box-shadow: 0 0 6px rgba(238, 243, 250, 0.25); align-self: center; transition: background 0.12s ease, box-shadow 0.12s ease; }
.plinkoboard .peg.hit { background: var(--blood-hot); box-shadow: 0 0 12px rgba(127, 176, 255, 0.8); }

.buckets { display: grid; gap: 3px; margin-top: 8px; }
.bucket { text-align: center; font-family: var(--mono); font-size: 10px; font-weight: 600; padding: 8px 1px; border-radius: 6px; border: 1px solid var(--bone-08); color: var(--bone-62); transition: all 0.15s ease; }
.bucket.hot { color: #ffdf9e; border-color: rgba(201, 133, 0, 0.55); background: rgba(201, 133, 0, 0.12); }
.bucket.warm { color: var(--bone-80); }
.bucket.land { background: linear-gradient(180deg, var(--gold-hot), var(--gold)); color: #14100a; box-shadow: 0 0 20px rgba(228, 240, 255, 0.5); transform: translateY(-2px); }
.histtable { width: 100%; border-collapse: collapse; font-size: 12px; }
.histtable th { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-44); text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--bone-08); }
.histtable td { padding: 7px 10px; border-bottom: 1px solid var(--bone-08); color: var(--bone-62); font-variant-numeric: tabular-nums; }
.histtable td b { color: var(--bone); }
.histtable .win { color: var(--live); }
.histtable .lose { color: #ff8b8b; }
.fineprint { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone-28); line-height: 1.8; margin-top: 10px; }

/* guilds */
.guildgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.gcard { position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--glass-border); border-radius: 14px; transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease; }
.gcard:hover { border-color: var(--glass-border-lit); box-shadow: 0 0 30px rgba(95, 150, 247, 0.18); transform: translateY(-3px); }
.gcard .gbanner { height: 92px; background-size: cover; background-position: center; position: relative; }
.gcard .gbanner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(13, 22, 42, 0.94)); }
.gcard .gbody { padding: 0 16px 15px; margin-top: -26px; position: relative; }
.gavatar { width: 52px; height: 52px; border-radius: 13px; border: 2px solid rgba(238, 243, 250, 0.3); background: #101a2e; background-size: cover; background-position: center; display: grid; place-items: center; font-family: var(--disp); font-size: 22px; color: var(--bone-80); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5); }
.gcard .gname { margin-top: 9px; font-family: var(--disp); font-size: 21px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--bone); }
.gtag { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.2em; border-radius: 6px; padding: 3px 8px; color: #0a0f1c; vertical-align: 3px; margin-left: 9px; }
.gcard .gdesc { margin-top: 6px; font-size: 12px; color: var(--bone-62); line-height: 1.55; min-height: 2.8em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gcard .gmeta { display: flex; gap: 14px; margin-top: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-44); }
.gcard .gmeta b { color: var(--bone); }
.gform { background: var(--panel); border: 1px solid var(--glass-border); border-radius: 16px; padding: clamp(18px, 2.6vw, 26px); margin-top: 14px; }
.gform .frow { display: grid; grid-template-columns: 130px 1fr; gap: 14px; align-items: center; margin-bottom: 13px; }
.gform label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone-44); }
.gform input[type="text"], .gform textarea, .gform select { width: 100%; background: rgba(7, 11, 22, 0.6); border: 1px solid var(--glass-border); border-radius: 9px; color: var(--bone); font-family: var(--sans); font-size: 13.5px; padding: 10px 12px; }
.gform input:focus, .gform textarea:focus { outline: none; border-color: var(--blood-hot); box-shadow: 0 0 14px rgba(95, 150, 247, 0.22); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 30px; height: 30px; border-radius: 9px; border: 2px solid transparent; cursor: pointer; transition: transform 0.12s ease, border-color 0.12s ease; }
.swatch:hover { transform: scale(1.1); }
.swatch.on { border-color: var(--bone); box-shadow: 0 0 14px rgba(238, 243, 250, 0.4); }
.ghero { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--glass-border); margin-top: 14px; min-height: 190px; background: var(--panel); background-size: cover; background-position: center; }
.ghero .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 11, 22, 0.25), rgba(13, 22, 42, 0.96)); }
.ghero .inner { position: relative; display: flex; align-items: flex-end; gap: 18px; padding: clamp(40px, 6vw, 70px) clamp(16px, 2.6vw, 26px) 18px; }
.ghero .gavatar { width: 74px; height: 74px; font-size: 30px; }
.ghero h2 { margin: 0; font-family: var(--disp); font-size: clamp(28px, 4vw, 44px); letter-spacing: 0.05em; text-transform: uppercase; color: var(--bone); line-height: 1; }
.ghero .gsub { margin-top: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone-62); }
.ghero .cta { margin-left: auto; display: flex; gap: 9px; flex-wrap: wrap; }
.gcols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 12px; margin-top: 12px; align-items: start; }
.rostertable { width: 100%; border-collapse: collapse; }
.rostertable th { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-44); text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--bone-08); }
.rostertable td { padding: 9px 12px; border-bottom: 1px solid var(--bone-08); font-size: 13px; color: var(--bone-62); }
.rostertable td b { color: var(--bone); font-weight: 600; }
.rolechip { font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; border-radius: 5px; padding: 3px 8px; border: 1px solid var(--bone-14); color: var(--bone-44); }
.rolechip.owner { color: var(--gold-hot); border-color: rgba(228, 240, 255, 0.4); }
.rolechip.officer { color: var(--blood-hot); border-color: rgba(127, 176, 255, 0.4); }
.gmanage .mrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--bone-08); }
.btn.small { padding: 8px 14px; font-size: 10px; }
.btn.danger { border-color: rgba(230, 103, 103, 0.5); color: #ffb3b3; }
.btn.danger:hover { box-shadow: 0 0 22px rgba(230, 103, 103, 0.3); }
.uploadrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.uploadrow input[type="file"] { display: none; }
.gsection-title { font-family: var(--disp); font-size: 19px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--bone); margin: 0 0 10px; }

/* territory strip on the leaderboards page */
.terrstrip { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 14px; }
.terrcell { background: var(--panel); border: 1px solid var(--glass-border); border-radius: 11px; padding: 11px 13px; transition: border-color 0.2s ease, transform 0.18s ease; }
.terrcell:hover { border-color: var(--glass-border-lit); transform: translateY(-2px); }
.terrcell .tz { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-44); }
.terrcell .th2 { margin-top: 7px; }

/* responsive */
@media (max-width: 1020px) {
  .chartgrid, .feedgrid { grid-template-columns: 1fr; }
  .maplayout, .arcadegrid, .gcols { grid-template-columns: 1fr; }
  .guildgrid { grid-template-columns: repeat(2, 1fr); }
  .rboard .numgrid { grid-template-columns: repeat(6, 1fr); }
  .outsidegrid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  .guildgrid { grid-template-columns: 1fr; }
  .gform .frow { grid-template-columns: 1fr; gap: 6px; }
  .ghero .inner { flex-wrap: wrap; }
  .ghero .cta { margin-left: 0; }
  .placard, .placard.six, .placard.nine { grid-template-columns: repeat(2, 1fr); }
}

/* ------------------------- arcade showpiece effects (v8b) ------------------------- */
.gamestage { position: relative; overflow: hidden; }
.fxcanvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 6; }
.floatwin { position: absolute; z-index: 7; pointer-events: none; font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--gold-hot); text-shadow: 0 0 16px rgba(228, 240, 255, 0.7); animation: floatup 1.45s ease-out forwards; }
.floatwin.big { font-size: 22px; color: #ffe9b8; }
@keyframes floatup { 0% { opacity: 0; transform: translateY(8px) scale(0.9); } 12% { opacity: 1; transform: translateY(0) scale(1.06); } 100% { opacity: 0; transform: translateY(-56px) scale(1); } }

.wheelsvg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wheelsvg .wnum { font-family: 'JetBrains Mono', monospace; font-size: 8.4px; font-weight: 600; fill: #eef3fa; text-anchor: middle; dominant-baseline: middle; }
#wheelspin { transform-origin: 0 0; }
#wheelspin.idlespin { animation: idlewheel 74s linear infinite; }
@keyframes idlewheel { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
@media (prefers-reduced-motion: reduce) { #wheelspin.idlespin { animation: none; } }
.wheelhub .res.pop { animation: respop 0.5s var(--ease); }
@keyframes respop { 0% { transform: scale(0.4); opacity: 0; } 60% { transform: scale(1.22); opacity: 1; } 100% { transform: scale(1); } }
.rnum.placed, .rout.placed { animation: chipdown 0.28s ease; }
@keyframes chipdown { 0% { transform: translateY(-3px) scale(1.06); } 100% { transform: translateY(0) scale(1); } }
.rnum.won, .rout.won { border-color: var(--live) !important; box-shadow: 0 0 18px rgba(84, 227, 163, 0.55) !important; animation: wonpulse 0.9s ease-in-out 2; }
@keyframes wonpulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.6); } }

.plinkoboard .dropgate { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 34px; height: 8px; border-radius: 4px; background: linear-gradient(180deg, var(--gold-hot), var(--gold-deep)); box-shadow: 0 0 14px rgba(200, 220, 248, 0.4); }
.plinkoball { position: absolute; left: 0; top: 0; width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe9b8, var(--gold) 65%); box-shadow: 0 0 14px rgba(228, 240, 255, 0.75); z-index: 3; will-change: transform; pointer-events: none; }
.plinkoboard .spark { position: absolute; left: 0; top: 0; width: 4px; height: 4px; border-radius: 50%; background: #ffe9b8; opacity: 0.85; pointer-events: none; animation: sparkfade 0.42s ease-out forwards; }
@keyframes sparkfade { to { opacity: 0; transform: translateY(10px) scale(0.4); } }
.bucket { animation: bucketin 0.5s var(--ease) backwards; }
@keyframes bucketin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.bucket.land { animation: bucketland 0.55s var(--ease); }
@keyframes bucketland { 0% { transform: translateY(0); } 35% { transform: translateY(4px) scaleY(0.85); } 70% { transform: translateY(-4px); } 100% { transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .bucket, .bucket.land, .rnum.placed, .rout.placed, .wheelhub .res.pop, .floatwin { animation: none; } }

/* v8c polish: zero-cell height, guild meta wrap, map label presence, standalone overline */
.rboard .zerorow .rnum { aspect-ratio: auto; height: 42px; }
.gcard .gmeta { flex-wrap: wrap; row-gap: 4px; }
.gcard .gmeta span { white-space: nowrap; }
.mapstage .zone-name { font-size: 16.5px; fill: rgba(238, 243, 250, 0.95); stroke-width: 4px; }
.mapstage .zone-sub { font-size: 12px; fill: rgba(238, 243, 250, 0.68); }
.mapstage .zone-ring { stroke: rgba(238, 243, 250, 0.4); fill: rgba(238, 243, 250, 0.045); }
.section > .overline {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--blood-hot);
}
.section > .overline::before { content: ""; width: 30px; height: 1px; background: var(--blood); box-shadow: 0 0 12px var(--blood-glow); }

/* v8d polish: roster manage cell wraps inside the panel; danger buttons read red */
.rostertable .managecell { text-align: right; }
.rostertable .managecell .btn { margin: 2px 0 2px 4px; padding: 6px 10px; font-size: 9px; }
.btn.danger { background: linear-gradient(180deg, rgba(230, 103, 103, 0.28), rgba(120, 34, 40, 0.3)); }
.btn.danger:hover { border-color: rgba(230, 103, 103, 0.8); }

/* v8e audit fixes: contrast, reduced motion, wheel transform basis */
.fineprint { color: var(--bone-44); }
.updated-at { color: var(--bone-44); }
#wheelspin { transform-box: fill-box; transform-origin: center; }
@keyframes idlewheel { from { transform: rotate(var(--rest, 0deg)); } to { transform: rotate(calc(var(--rest, 0deg) - 360deg)); } }
@media (prefers-reduced-motion: reduce) {
  .mapstage .contested-ring, .rnum.won, .rout.won { animation: none; }
}

/* topbar Amber wallet chip */
.nav-user .walletchip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 999px;
  border: 1px solid rgba(228, 240, 255, 0.28);
  background: linear-gradient(180deg, rgba(200, 220, 248, 0.10), rgba(90, 124, 174, 0.08));
  text-decoration: none; white-space: nowrap;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.nav-user .walletchip svg { width: 14px; height: 14px; color: var(--gold-hot); filter: drop-shadow(0 0 6px rgba(228, 240, 255, 0.5)); }
.nav-user .walletchip b { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--gold-hot); }
.nav-user .walletchip span { font-family: var(--mono); font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bone-44); }
.nav-user .walletchip:hover { border-color: var(--gold-hot); box-shadow: 0 0 20px rgba(200, 220, 248, 0.3); transform: translateY(-1px); }
@media (max-width: 860px) { .nav-user .walletchip span { display: none; } .nav-user .walletchip { padding: 7px 11px; } }
