/* ============================================================
   omegLOL — DESIGN SYSTEM v2 "Broadcast"
   Stage blackout + spotlight. One gold accent, warm neutrals,
   borders over shadows, quiet chrome / loud juice.

   Fonts (Space Grotesk / Inter / IBM Plex Mono) are loaded via
   <link> tags in each page head (preconnect + Google Fonts).

   RULE: every color/size below the token block references a
   token — no hardcoded hex past :root.
   ============================================================ */

:root {
  /* ---- color: core ---- */
  --bg:            #0D0C0A;   /* house lights down */
  --surface:       #161411;   /* cards, panels, nav */
  --surface-2:     #1E1B17;   /* modals, dropdowns, hovers */
  --border:        #2A2620;   /* hairlines everywhere */
  --border-2:      #3D372E;   /* focused/active borders */

  /* ---- color: text ---- */
  --text:          #F5F2EC;   /* warm white, never pure */
  --text-2:        #A39B8B;   /* labels, meta, helper */
  --text-3:        #6B655A;   /* disabled, placeholders */

  /* ---- color: spotlight (the ONE accent) ---- */
  --gold:          #F2B01E;
  --gold-2:        #FFC53D;   /* hover/active */
  --gold-ink:      #0D0C0A;   /* text ON gold fills — constant across themes */
  --gold-dim:      rgba(242, 176, 30, 0.12);
  --gold-glow:     rgba(242, 176, 30, 0.22);
  --gold-faint:    rgba(242, 176, 30, 0.05);  /* the signature spotlight glow */

  /* ---- color: semantic ---- */
  --win:           #4ADE80;
  --win-dim:       rgba(74, 222, 128, 0.12);
  --win-glow:      rgba(74, 222, 128, 0.25);
  --lose:          #F0524D;
  --lose-dim:      rgba(240, 82, 77, 0.12);
  --lose-glow:     rgba(240, 82, 77, 0.25);
  --info:          #8B9DF2;

  /* ---- color: utility ---- */
  --cam:           #000000;                    /* camera tile while video loads */
  --scrim:         rgba(13, 12, 10, 0.72);     /* nameplate chips */
  --scrim-heavy:   rgba(13, 12, 10, 0.88);     /* banner plates over video */
  --nav-bg:        rgba(13, 12, 10, 0.82);
  --on-video:      #F5F2EC;                    /* text over video/scrims — constant across themes */
  --on-video-dim:  #A39B8B;

  /* ---- type ---- */
  --font-display:  "Space Grotesk", "Inter", sans-serif;
  --font-body:     "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono:     "IBM Plex Mono", ui-monospace, Consolas, monospace;

  /* ---- radius ---- */
  --r-sm: 8px;    /* buttons, inputs, chips */
  --r-md: 12px;   /* cards, panels */
  --r-lg: 16px;   /* modals, camera tiles */

  /* ---- spacing scale ---- */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  /* ---- motion ---- */
  --ease:   cubic-bezier(0.2, 0, 0, 1);
  --t-fast: 150ms;
  --t-mid:  200ms;
  --t-slow: 400ms;

  /* ---- elevation (modals/toasts ONLY — borders elsewhere) ---- */
  --shadow-float: 0 16px 48px rgba(0, 0, 0, 0.5);

  /* ---- legacy aliases ----
     Older markup/styles still reference the retro-era token names; they resolve
     to the new system so nothing shatters. New CSS should use the names above. */
  --ink:        var(--text);
  --dim:        var(--text-2);
  --panel:      var(--surface);
  --panel-2:    var(--surface-2);
  --line:       var(--border);
  --line-2:     var(--border-2);
  --accent:     var(--gold);
  --accent-2:   var(--gold-2);
  --accent-ink: var(--bg);
  --neon:       var(--gold);
  --warn:       var(--gold);
  --grad-sky:   var(--surface);
  --grad-title: var(--surface);
  --grad-btn:   var(--surface-2);
  --grad-btn-h: var(--surface-2);
  --grad-cta:   var(--gold);
  --grad-gold:  var(--gold);
  --bevel-out:  0 0 0 0 transparent;
  --bevel-in:   0 0 0 0 transparent;
  --shadow-panel: 0 0 0 0 transparent;
  --scanlines:  none;
  --noise:      none;
}

/* ---- light theme: darks invert, golds and semantics stay put ----
   Applied via <html data-theme="light">, set pre-paint by a tiny head snippet on every
   page reading localStorage "omeglol_theme" (toggled from the play page's settings).
   Video-adjacent tokens (--cam, --scrim*, --on-video*) intentionally do NOT flip. */
:root[data-theme="light"] {
  --bg:            #F2EEE6;
  --surface:       #FBF8F2;
  --surface-2:     #EFEADF;
  --border:        #DFD8C8;
  --border-2:      #C4BAA4;
  --text:          #1E1B17;
  --text-2:        #6B655A;
  --text-3:        #9A917F;
  --nav-bg:        rgba(251, 248, 242, 0.85);
  --shadow-float:  0 16px 48px rgba(30, 27, 23, 0.16);
}

* { box-sizing: border-box; }

html { font-size: 16px; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  font-size: 1rem;
  line-height: 1.6;
}

/* every interactive element gets the same focus ring */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection { background: var(--gold-dim); color: var(--text); }

/* ---------- Site nav: slim broadcast bar ---------- */
#site-nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s3);
  height: 64px;
  padding: 0 var(--s5);
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
#site-nav .brand {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em;
  color: var(--text); text-decoration: none;
}
#site-nav .brand .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
}
.lol { color: var(--gold); }
#site-nav nav { display: flex; align-items: center; gap: var(--s4); min-width: 0; }
#site-nav .nav-buttons { display: flex; align-items: center; gap: var(--s2); flex: none; }
#site-nav nav a {
  display: inline-flex; align-items: center;
  padding: var(--s2) var(--s3);
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-2); text-decoration: none;
  border-radius: var(--r-sm);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
#site-nav nav a:hover { color: var(--text); background: var(--gold-dim); }
#site-nav nav a.active {
  color: var(--text);
  background: none;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
#site-nav nav .nav-user {
  display: inline-flex; align-items: center;
  min-width: 0; max-width: 220px;
  padding: 6px var(--s3);
  font-size: 0.8125rem; font-weight: 500; line-height: 1.2;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
@media (max-width: 640px) {
  #site-nav { height: auto; min-height: 56px; padding: var(--s2) var(--s4); align-items: center; }
  #site-nav nav { flex-wrap: wrap; justify-content: flex-end; gap: var(--s2); }
  #site-nav nav .nav-user { max-width: min(220px, 100%); }
}

/* ---------- Page layout + typography ---------- */
.page {
  max-width: 760px;
  margin: var(--s6) auto;
  padding: 0 var(--s5) var(--s8);
}

h1, h2, h3 { color: var(--text); margin: 0 0 var(--s3); }
h1 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 2rem; line-height: 1.15;
  letter-spacing: -0.02em;
  margin: var(--s2) 0 var(--s4);
}
h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.125rem; line-height: 1.3; }
p  { margin: 0 0 var(--s3); }

.muted { color: var(--text-2); }

a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--gold-2); }

/* eyebrow micro-label: the quiet organizer on every panel/section */
.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-2);
  margin-bottom: var(--s3);
}

/* ---------- Panel ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s4);
  position: relative;
}
.panel h3 { margin-top: var(--s1); }
.panel label {
  display: block;
  font-weight: 500; font-size: 0.875rem;
  margin-bottom: var(--s3);
  color: var(--text-2);
}
.panel input, .panel textarea {
  display: block; width: 100%;
  margin-top: var(--s1);
  padding: 10px var(--s3);
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color var(--t-fast) var(--ease);
}
.panel input::placeholder, .panel textarea::placeholder { color: var(--text-3); }
.panel input:focus, .panel textarea:focus { border-color: var(--gold); }

/* ---------- Buttons ----------
   Default .btn = secondary (outline). .btn.gold = the one primary per view.
   .btn.ghost = quiet tertiary. Solid fills only; motion is transform-only. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 40px;
  padding: 8px 18px;
  font-family: var(--font-body);
  font-size: 0.9375rem; font-weight: 500; line-height: 1.3;
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}
.btn:hover { background: var(--surface-2); color: var(--text); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.ghost {
  border-color: transparent;
  color: var(--text-2);
}
.btn.ghost:hover { color: var(--text); background: var(--gold-dim); }
.btn.gold {
  background: var(--gold);
  border-color: transparent;
  color: var(--gold-ink);
  font-weight: 500;
}
.btn.gold:hover { background: var(--gold-2); color: var(--gold-ink); }
.btn.xl { min-height: 48px; padding: 10px var(--s5); font-size: 1.0625rem; }
.btn.disabled, .btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ============================================================
   HOMEPAGE / ABOUT — hero shell, ticker, sections, footer
   ============================================================ */
.hero-wrap {
  max-width: 1120px;
  margin: var(--s6) auto 0;
  padding: 0 var(--s5);
  position: relative; z-index: 1;
}
/* the old CRT shell is now a quiet stage: dark panel + the signature spotlight glow */
.crt {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s6) var(--s5);
  background: var(--surface);
  overflow: hidden;
}
.crt::before {
  /* signature spotlight: one soft radial gold glow, breathing very slowly */
  content: "";
  position: absolute; inset: -20% -10%;
  background: radial-gradient(ellipse 60% 50% at 50% 30%, var(--gold-faint) 0%, transparent 70%);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .crt::before { animation: spotlightBreathe 6s ease-in-out infinite; }
}
@keyframes spotlightBreathe {
  0%, 100% { opacity: 0.8; }
  50%      { opacity: 1.4; }
}

.hero-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05; letter-spacing: -0.02em;
  color: var(--text);
  text-align: center;
  margin: var(--s4) 0 var(--s3);
  position: relative;
}
.hero-tag {
  text-align: center;
  color: var(--text-2);
  font-size: 1.125rem; font-weight: 400;
  margin: 0 auto var(--s4);
  max-width: 560px;
  position: relative;
}
.hero-cta {
  display: flex; justify-content: center; gap: var(--s3);
  margin-top: var(--s2);
  position: relative; z-index: 2;
}

/* ---------- Broadcast ticker (the retro marquee, dressed as a lower-third) ---------- */
.band {
  margin-top: var(--s7);
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative; z-index: 1;
}
.marquee { overflow: hidden; }
.marquee-track {
  display: flex; width: max-content;
  white-space: nowrap;
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: 0.75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
}
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: ticker 36s linear infinite; }
}
.marquee-set { display: flex; flex: none; gap: var(--s6); padding: 10px var(--s6) 10px 0; }
.marquee-set span { display: inline-block; }
.marquee-set span:nth-child(even) { color: var(--gold); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections (about page) ---------- */
.section {
  max-width: 1120px;
  margin: var(--s8) auto 0;
  padding: 0 var(--s5);
  position: relative; z-index: 1;
}
.section-head { text-align: center; margin-bottom: var(--s5); }
.section-head .kicker { margin-bottom: var(--s2); }
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0; line-height: 1.2;
}

/* HOW IT WORKS — step cards */
.how-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s3);
}
@media (max-width: 1080px) { .how-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .how-steps { grid-template-columns: 1fr; } }
.how-steps li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s4);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.how-steps li:hover { border-color: var(--border-2); background: var(--surface-2); }
.how-steps .num {
  display: inline-block;
  font-family: var(--font-mono); font-weight: 500; font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  margin-bottom: var(--s2);
}
.how-steps h4 { margin: 0 0 var(--s1); font-size: 1rem; font-weight: 600; color: var(--text); }
.how-steps p { margin: 0; color: var(--text-2); font-size: 0.875rem; }

/* LADDER — tier cards (ranked info modal) treated like medals */
.ladder {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s3);
}
@media (max-width: 1024px) { .ladder { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px)  { .ladder { grid-template-columns: repeat(2, 1fr); } }
.ladder li {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-top: 3px solid var(--c);
  border-radius: var(--r-md);
  padding: var(--s4) var(--s3);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: var(--s2);
}
.badge-tier {
  font-family: var(--font-mono); font-weight: 500; font-size: 0.875rem;
  color: var(--c);
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: 4px 10px;
}
.t-name { font-weight: 600; font-size: 0.875rem; color: var(--text); }
.t-range { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 0.8125rem; color: var(--text-2); }
.ladder-caption { text-align: center; margin-top: var(--s3); }

/* FINAL CTA (about page) */
.final-cta { max-width: 1120px; }
.finalcrt { text-align: center; padding: var(--s8) var(--s5); }
.final-h {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem); letter-spacing: -0.02em;
  color: var(--text); margin: 0 0 var(--s1);
  position: relative;
}
.final-sub { color: var(--text-2); font-size: 1.125rem; margin: 0 0 var(--s5); position: relative; }
.finalcrt .btn { position: relative; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: var(--s9);
  background: var(--bg);
  border-top: 1px solid var(--border);
  color: var(--text-2);
  padding: var(--s7) var(--s5) var(--s4);
  position: relative; z-index: 1;
}
.foot-grid {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s5);
}
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-brand {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  letter-spacing: -0.02em; color: var(--text);
  margin-bottom: var(--s2);
}
.site-footer h5 {
  font-size: 0.75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-3);
  margin: 0 0 var(--s3);
}
.site-footer a {
  display: block; color: var(--text-2); text-decoration: none;
  padding: 3px 0; font-weight: 400; font-size: 0.9375rem;
  transition: color var(--t-fast) var(--ease);
}
.site-footer a:hover { color: var(--text); }
.site-footer .muted { color: var(--text-2); }
.foot-bottom {
  max-width: 1120px; margin: var(--s5) auto 0; padding-top: var(--s4);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.8125rem;
  color: var(--text-3); text-align: center;
  white-space: nowrap; overflow-x: auto;
}
.foot-bottom a {
  display: inline; padding: 0; white-space: nowrap;
  color: var(--text-2);
  text-decoration: underline; text-underline-offset: 3px;
}
.foot-bottom a:hover { color: var(--text); }

/* ============================================================
   PLAY page — shared pieces (page-specific layout lives in play.html)
   ============================================================ */
.stage {
  background: var(--cam);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.banner .big {
  font-family: var(--font-display); font-weight: 700;
  font-size: 2rem; letter-spacing: -0.02em; text-transform: uppercase;
  color: var(--on-video);
}
.banner .count {
  font-family: var(--font-mono); font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-size: 4rem;
  color: var(--gold);
}
.banner .sub { color: var(--on-video-dim); font-size: 1rem; font-weight: 500; }
.banner .delta {
  font-family: var(--font-mono); font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
}

/* ---------- scorebar ---------- */
.scorebar {
  margin-top: var(--s4);
  padding: var(--s3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  gap: var(--s4);
}
.side {
  position: relative;
  padding: var(--s2) var(--s3) var(--s3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.side .lab {
  font-size: 0.75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-2);
  margin-bottom: var(--s2);
}
.side .lab span:last-child {
  font-family: var(--font-mono); font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-size: 1.375rem; line-height: 1;
  color: var(--text);
  display: inline-block;
  transition: transform 120ms var(--ease), color 120ms var(--ease);
}
.side.bump .lab span:last-child { color: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .side.bump .lab span:last-child { animation: scoreBump 350ms var(--ease); }
}
@keyframes scoreBump {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.track {
  height: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.fill { height: 100%; border-radius: 4px; }
.fill.you  { background-color: var(--win); }
.fill.them { background-color: var(--lose); }

/* juice popups: typographically loud — Display 700, semantic color, snappy pop */
.pop {
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: -0.02em;
}
.pop.scold  { color: var(--lose); }
.pop.reward { color: var(--gold); }
.pop.points {
  color: var(--gold);
  font-family: var(--font-mono); font-weight: 500;
  font-variant-numeric: tabular-nums; letter-spacing: 0;
}

/* gamebar buttons inherit the button system */
.gamebar button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 40px;
  padding: 8px var(--s4);
  font-family: var(--font-body);
  font-size: 0.9375rem; font-weight: 500; line-height: 1.3;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}
.gamebar button:hover:not(:disabled) { background: var(--surface-2); transform: translateY(-1px); }
.gamebar button:active:not(:disabled) { transform: translateY(0); }
.gamebar button.ghost { border-color: transparent; color: var(--text-2); }
.gamebar button.ghost:hover:not(:disabled) { color: var(--text); background: var(--gold-dim); }
.gamebar button.cancel-search {
  background: var(--surface-2);
  border-color: var(--border-2);
  color: var(--lose);
}
.gamebar button.cancel-search:hover:not(:disabled) { border-color: var(--lose); }
.gamebar button:disabled { opacity: 0.5; cursor: default; transform: none; }

/* name/ban gate: full-screen surface overlay */
.gate {
  background: var(--bg);
  color: var(--text);
}
.gate h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.5rem; letter-spacing: -0.02em;
  color: var(--text);
  text-align: center;
}
.gate input {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color var(--t-fast) var(--ease);
}
.gate input::placeholder { color: var(--text-3); }
.gate input:focus { border-color: var(--gold); }
.gate button {
  background: var(--gold);
  color: var(--gold-ink);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-weight: 500;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.gate button:hover { background: var(--gold-2); transform: translateY(-1px); }
.gate button:active { transform: translateY(0); }

/* ============================================================
   RANKED page
   ============================================================ */
.toggle {
  background: var(--surface);
  border: 1px solid var(--border);
}
.seg { color: var(--text-2); transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.seg:hover { color: var(--text); }
.seg.active {
  background: var(--surface-2);
  color: var(--text);
}
.rankname { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
.info {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text-2);
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.info:hover { color: var(--gold); border-color: var(--gold); }

.match { border-bottom: 1px solid var(--border); }
.res.win  { background: var(--win-dim);  color: var(--win);  border: 1px solid transparent; }
.res.lose { background: var(--lose-dim); color: var(--lose); border: 1px solid transparent; }
.res.draw { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.elo { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--text-2); }
.elo b.up   { color: var(--win); }
.elo b.down { color: var(--lose); }

#board li { border-bottom: 1px solid var(--border); }
/* top 3: a quiet spotlight edge */
#board li:nth-child(-n+3) { box-shadow: inset 3px 0 0 var(--gold-glow); }
.pos { color: var(--text-3); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.rt  { color: var(--text-2); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.modal .box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-float);
}
