/* ==================================================================
   GLACIUM — glacium.net
   Single stylesheet. No build step, no framework.
   Sections: tokens / reset / layout / nav / hero / cards / modes /
             leaderboards / store / vote / footer / motion / responsive
   ================================================================== */

/* ---------- 1. Tokens --------------------------------------------- */
:root {
  /* Ice */
  --ice-50:  #f4fcff;
  --ice-100: #dcf4ff;
  --ice-200: #aee7ff;
  --ice-300: #7ed8ff;
  --ice-400: #45c0f5;
  --ice-500: #1fa2dc;
  --ice-600: #127eb4;

  /* Deep water / night */
  --deep-950: #030710;
  --deep-900: #060c17;
  --deep-850: #08101f;
  --deep-800: #0b1729;
  --deep-700: #102138;
  --deep-600: #17304d;

  /* Text */
  --fg:        #e8f4fb;
  --fg-muted:  #9fb6cb;
  --fg-dim:    #6d8299;

  /* Lines & glass */
  --line:        rgba(126, 216, 255, 0.13);
  --line-strong: rgba(126, 216, 255, 0.26);
  --glass:       rgba(12, 25, 43, 0.66);
  --glass-solid: #0c1a2c;

  /* Accents */
  --gold: #ffc94d;
  --live: #4ade80;

  /* Rhythm */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --pad:  clamp(18px, 4vw, 32px);
  --maxw: 1180px;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 14px 40px -14px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
  --glow:      0 0 0 1px var(--line-strong), 0 0 34px -6px rgba(69, 192, 245, 0.4);

  --font-display: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

/* ---------- 2. Reset ---------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--deep-950);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ice-300); text-decoration: none; }
a:hover { color: var(--ice-200); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input { font: inherit; }
:focus-visible { outline: 2px solid var(--ice-300); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ice-400); color: var(--deep-950); font-weight: 700;
  padding: 10px 16px; border-radius: var(--r-sm); transition: top .18s;
}
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- 3. Page atmosphere ------------------------------------ */
/* Aurora wash + glacier haze, fixed behind everything. */
.atmos {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(80rem 44rem at 50% -14rem, rgba(69, 192, 245, 0.20), transparent 62%),
    radial-gradient(52rem 34rem at 88% 8%,   rgba(120, 90, 255, 0.14), transparent 60%),
    radial-gradient(46rem 30rem at 4% 34%,   rgba(31, 162, 220, 0.13), transparent 60%),
    linear-gradient(180deg, var(--deep-900) 0%, var(--deep-950) 55%, #02050c 100%);
}
/* Faint frost grain so flat areas don't band. */
.atmos::after {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: screen;
}
#snow { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ---------- 4. Layout --------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
section { position: relative; }
.section { padding-block: clamp(56px, 9vw, 104px); }
.section--tight { padding-block: clamp(40px, 6vw, 68px); }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.sec-head__text { max-width: 62ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: .74rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ice-400);
  margin-bottom: 12px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.sec-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.sec-head p { color: var(--fg-muted); margin-top: 10px; }

/* ---------- 5. Buttons -------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  padding: 12px 22px; border-radius: 999px; white-space: nowrap;
  border: 1px solid transparent; transition: transform .16s, box-shadow .16s, background .16s, border-color .16s, color .16s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--primary {
  background: linear-gradient(135deg, var(--ice-200), var(--ice-400) 55%, var(--ice-500));
  color: #04121d; box-shadow: 0 10px 30px -12px rgba(69, 192, 245, .85);
}
.btn--primary:hover { color: #04121d; box-shadow: 0 14px 38px -12px rgba(69, 192, 245, 1); transform: translateY(-1px); }

.btn--ghost { background: rgba(255,255,255,.04); border-color: var(--line-strong); color: var(--fg); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(126, 216, 255, .1); border-color: var(--ice-400); color: var(--ice-100); }

.btn--gold { background: linear-gradient(135deg, #ffe08a, var(--gold)); color: #2a1c00; box-shadow: 0 10px 30px -12px rgba(255,201,77,.7); }
.btn--gold:hover { color: #2a1c00; transform: translateY(-1px); }

.btn--sm { padding: 9px 16px; font-size: .86rem; }
.btn--block { width: 100%; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }

/* ---------- 6. Nav ------------------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(180deg, rgba(6,12,23,.92), rgba(6,12,23,.72));
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav__in { display: flex; align-items: center; gap: 14px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; color: var(--fg); }
.brand:hover { color: var(--fg); }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 0 12px rgba(69,192,245,.5)); }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.22rem; letter-spacing: .12em; }
.brand__name span { background: linear-gradient(180deg, #fff, var(--ice-300)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a {
  font-family: var(--font-display); font-weight: 500; font-size: .93rem;
  color: var(--fg-muted); padding: 9px 14px; border-radius: 999px; transition: color .15s, background .15s;
}
.nav__links a:hover { color: var(--fg); background: rgba(255,255,255,.05); }
.nav__links a[aria-current="page"] { color: var(--ice-200); background: rgba(69,192,245,.11); }

.icon-btn {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px;
  color: var(--fg-muted); border: 1px solid var(--line); transition: all .15s;
}
.icon-btn:hover { color: var(--ice-200); border-color: var(--line-strong); background: rgba(69,192,245,.09); }
.icon-btn svg { width: 19px; height: 19px; }

.nav__toggle { display: none; }

/* ---------- 7. Hero ----------------------------------------------- */
.hero { padding-block: clamp(60px, 11vw, 130px) clamp(48px, 8vw, 96px); overflow: hidden; }
.hero__in { display: grid; gap: clamp(34px, 5vw, 60px); grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 8px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255,255,255,.03);
  font-size: .82rem; color: var(--ice-100); margin-bottom: 22px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fg-dim); flex: none; }
.dot--live { background: var(--live); box-shadow: 0 0 0 0 rgba(74,222,128,.7); animation: pulse 2.4s infinite; }
@keyframes pulse {
  70%  { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

.hero h1 {
  font-size: clamp(2.9rem, 8.2vw, 5.4rem); letter-spacing: -.03em; line-height: .95;
  background: linear-gradient(175deg, #ffffff 8%, var(--ice-200) 52%, var(--ice-500) 108%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 70px rgba(69,192,245,.22);
}
.hero__sub { font-size: clamp(1rem, 2.1vw, 1.18rem); color: var(--fg-muted); margin-top: 20px; max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* IP copy box */
.ipbox {
  display: flex; align-items: center; gap: 12px; margin-top: 26px; padding: 8px 8px 8px 18px;
  border: 1px solid var(--line-strong); border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(23,48,77,.55), rgba(8,16,31,.65));
  backdrop-filter: blur(10px); max-width: 460px; box-shadow: var(--shadow-md);
}
.ipbox__label { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-dim); }
.ipbox__ip { font-family: var(--font-mono); font-size: 1.06rem; font-weight: 600; color: var(--ice-100); letter-spacing: .01em; }
.ipbox__copy { margin-left: auto; }
.ipbox__copy.is-copied { background: linear-gradient(135deg, #a7f3d0, var(--live)); }

/* Hero side panel — live snapshot */
.snapshot {
  border: 1px solid var(--line); border-radius: var(--r-xl); padding: 22px;
  background: linear-gradient(165deg, rgba(23,48,77,.5), rgba(8,16,31,.72));
  backdrop-filter: blur(12px); box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.snapshot::before {
  content: ''; position: absolute; inset: -1px -1px auto; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(174,231,255,.7), transparent);
}
.snapshot__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.snapshot__head h3 { font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-muted); font-weight: 600; }

.statgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat {
  padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
}
.stat__n { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; line-height: 1; color: #fff; }
.stat__l { font-size: .76rem; color: var(--fg-dim); margin-top: 6px; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- 8. Cards / grids -------------------------------------- */
.card {
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px;
  background: linear-gradient(165deg, rgba(23,48,77,.36), rgba(8,16,31,.6));
  backdrop-filter: blur(8px); position: relative; overflow: hidden;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow-md); }

.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-family: var(--font-display); font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.chip--ranked { background: rgba(69,192,245,.14); color: var(--ice-200); border: 1px solid rgba(69,192,245,.3); }
.chip--ffa    { background: rgba(255,255,255,.06); color: var(--fg-muted); border: 1px solid var(--line); }
.chip--soon   { background: rgba(255,201,77,.12); color: var(--gold); border: 1px solid rgba(255,201,77,.28); }

/* ---------- 9. Gamemodes ------------------------------------------ */
.mode { display: flex; flex-direction: column; gap: 12px; min-height: 178px; }
.mode__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mode__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: linear-gradient(150deg, rgba(69,192,245,.22), rgba(69,192,245,.05));
  border: 1px solid rgba(69,192,245,.24); color: var(--ice-200);
}
.mode__icon svg { width: 22px; height: 22px; }
.mode h3 { font-size: 1.16rem; }
.mode__game { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-dim); margin-top: 4px; }
.mode p { color: var(--fg-muted); font-size: .93rem; }
.mode__foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; gap: 10px; }
.mode__link { font-family: var(--font-display); font-weight: 600; font-size: .87rem; display: inline-flex; align-items: center; gap: 6px; }
.mode__link svg { width: 14px; height: 14px; transition: transform .16s; }
.mode__link:hover svg { transform: translateX(3px); }

/* ---------- 10. Leaderboards -------------------------------------- */
.lb { --accent: var(--ice-300); }

/* Segmented view switcher — mirrors the in-game "click to change view". */
.lb__tabs {
  display: flex; gap: 4px; padding: 5px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(8,16,31,.6); backdrop-filter: blur(10px); overflow-x: auto;
  scrollbar-width: none; max-width: max-content;
}
.lb__tabs::-webkit-scrollbar { display: none; }
.lb__tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 17px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--fg-muted);
  white-space: nowrap; transition: all .16s;
}
.lb__tab:hover { color: var(--fg); background: rgba(255,255,255,.05); }
.lb__tab[aria-selected="true"] { color: #04121d; background: var(--tab-accent, var(--ice-300)); }
.lb__tab i { width: 8px; height: 8px; border-radius: 2px; background: var(--tab-accent); display: inline-block; }
.lb__tab[aria-selected="true"] i { background: rgba(0,0,0,.42); }

.lb__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.lb__meta { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--fg-dim); }
.lb__meta .dot { transition: background .3s; }
.lb__search {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(8,16,31,.6); color: var(--fg-muted);
}
.lb__search svg { width: 15px; height: 15px; flex: none; }
.lb__search input { background: none; border: 0; color: var(--fg); width: 150px; outline: none; font-size: .9rem; }
.lb__search input::placeholder { color: var(--fg-dim); }

/* Podium */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; align-items: end; }
.pod {
  text-align: center; padding: 24px 16px 20px; border-radius: var(--r-lg);
  border: 1px solid var(--line); position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(23,48,77,.42), rgba(8,16,31,.66));
  transition: transform .18s, border-color .18s;
}
.pod:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.pod::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .85;
}
.pod--1 { order: 2; padding-top: 34px; box-shadow: 0 0 46px -18px var(--accent); border-color: color-mix(in srgb, var(--accent) 38%, transparent); }
.pod--2 { order: 1; }
.pod--3 { order: 3; }
.pod__crown { font-size: 1.1rem; margin-bottom: 6px; filter: drop-shadow(0 0 8px rgba(255,201,77,.6)); }
.pod__rank { font-family: var(--font-display); font-size: .8rem; font-weight: 700; letter-spacing: .1em; color: var(--fg-dim); }
.pod__head { width: 64px; height: 64px; margin: 10px auto 12px; border-radius: 10px; image-rendering: pixelated; border: 1px solid var(--line-strong); background: var(--deep-700); }
.pod--1 .pod__head { width: 78px; height: 78px; }
.pod__name { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; word-break: break-all; }
.pod__elo { font-family: var(--font-mono); font-size: 1.32rem; font-weight: 700; color: var(--accent); margin-top: 6px; }
.pod--1 .pod__elo { font-size: 1.56rem; }
.pod__unit { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-dim); margin-top: 2px; }

/* Table */
.lb__list { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: rgba(8,16,31,.5); }
.row {
  display: grid; grid-template-columns: 56px 40px 1fr auto; align-items: center; gap: 14px;
  padding: 11px 18px; border-top: 1px solid var(--line); transition: background .15s;
}
.lb__list .row:first-child { border-top: 0; }
.row:hover { background: rgba(126,216,255,.05); }
.row--head {
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-dim);
  background: rgba(255,255,255,.02); padding-block: 10px;
}
.row--hit { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.row__rank { font-family: var(--font-display); font-weight: 700; color: var(--fg-dim); font-size: .95rem; }
.row__rank b { color: var(--fg); }
.row__head { width: 32px; height: 32px; border-radius: 6px; image-rendering: pixelated; background: var(--deep-700); border: 1px solid var(--line); }
.row__name { font-weight: 600; word-break: break-all; }
.row__elo { font-family: var(--font-mono); font-weight: 700; color: var(--accent); font-size: 1.02rem; text-align: right; }
.row__elo small { color: var(--fg-dim); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; margin-left: 6px; font-family: var(--font-body); }

/* Head fallback (initial block) when the skin render 404s */
.head-fb {
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800;
  color: var(--ice-100); background: linear-gradient(150deg, var(--deep-600), var(--deep-800));
}

/* States */
.lb__state { padding: 42px 20px; text-align: center; color: var(--fg-muted); }
.lb__state h3 { margin-bottom: 8px; font-size: 1.06rem; color: var(--fg); }
.skel { background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.09) 37%, rgba(255,255,255,.04) 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; color: transparent !important; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.note {
  display: flex; gap: 10px; padding: 12px 16px; border-radius: var(--r-md); margin-top: 16px;
  border: 1px solid rgba(255,201,77,.24); background: rgba(255,201,77,.07);
  font-size: .86rem; color: #ffe0a3;
}
.note svg { width: 17px; height: 17px; flex: none; margin-top: 3px; }

/* ---------- 11. Store --------------------------------------------- */
.rank { display: flex; flex-direction: column; padding: 26px 24px 24px; }
.rank--featured {
  border-color: color-mix(in srgb, var(--ice-400) 42%, transparent);
  box-shadow: 0 0 60px -26px var(--ice-400);
}
/* Per-rank caveat (Custom needs staff contact before the name is set) */
.rank__note {
  display: flex; gap: 9px; align-items: flex-start; margin: 0 0 18px;
  padding: 11px 13px; border-radius: var(--r-md);
  border: 1px solid rgba(255,201,77,.24); background: rgba(255,201,77,.07);
  font-size: .82rem; line-height: 1.5; color: #ffe0a3;
}
.rank__note svg { width: 15px; height: 15px; flex: none; margin-top: 3px; }

.rank__icon {
  width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); margin-bottom: 16px;
}
.rank__icon svg { width: 32px; height: 32px; }
.rank__prefix {
  font-family: var(--font-mono); font-size: 1.3rem; font-weight: 700; letter-spacing: .01em;
}
.rank__tag { color: var(--fg-muted); font-size: .9rem; margin-top: 4px; }
.rank__price { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 4px; }
.rank__price b { font-family: var(--font-display); font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; }
.rank__price span { color: var(--fg-dim); font-size: .84rem; }
.rank__perks { display: grid; gap: 9px; margin: 18px 0 22px; }
.rank__perks li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--fg-muted); }
.rank__perks svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--ice-300); }
.rank .btn { margin-top: auto; }
.rank__disclaimer { font-size: .74rem; color: var(--fg-dim); margin-top: 12px; text-align: center; font-style: italic; }

.steps { counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; color: var(--fg-muted); }
.steps li::before {
  content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: .84rem;
  background: rgba(69,192,245,.14); color: var(--ice-200); border: 1px solid rgba(69,192,245,.3);
}
.steps b { color: var(--fg); }

/* ---------- 12. Community / vote ---------------------------------- */
.vote { display: flex; align-items: center; gap: 16px; }
.vote__n {
  width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; background: rgba(255,255,255,.04);
  border: 1px solid var(--line); color: var(--ice-300);
}
.vote__body { min-width: 0; }
.vote__body h3 { font-size: 1rem; }
.vote__body p { font-size: .82rem; color: var(--fg-dim); }
.vote .btn, .vote .chip { margin-left: auto; }

.discord {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 22px 24px; border-radius: var(--r-lg); border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(88,101,242,.10), rgba(23,48,77,.32));
}
.discord__icon { width: 42px; height: 42px; color: #9aa6ff; flex: none; }
.discord__body { min-width: 200px; flex: 1; }
.discord__body h3 { font-size: 1.1rem; }
.discord__body p { color: var(--fg-muted); font-size: .9rem; margin-top: 4px; }

/* ---------- 13. Footer -------------------------------------------- */
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding-block: 40px 32px; background: rgba(3,7,16,.6); }
.foot__in { display: grid; grid-template-columns: 1.4fr repeat(2, minmax(0, 1fr)); gap: 32px; }
.foot__brand p { color: var(--fg-dim); font-size: .88rem; margin-top: 12px; max-width: 34ch; }
.foot h4 { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 14px; }
.foot ul { display: grid; gap: 9px; }
.foot ul a { color: var(--fg-muted); font-size: .9rem; }
.foot ul a:hover { color: var(--ice-200); }
.foot__legal {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--fg-dim); font-size: .8rem;
}

/* ---------- 14. Toast --------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--glass-solid); border: 1px solid var(--line-strong); color: var(--fg);
  padding: 11px 20px; border-radius: 999px; font-size: .9rem; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 300;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 15. Responsive ---------------------------------------- */
@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; }
  .snapshot { max-width: 520px; }
  .foot__in { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav__toggle { display: grid; }
  .nav__links {
    position: fixed; inset: 68px 0 auto; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px var(--pad) 24px; background: var(--deep-900);
    border-bottom: 1px solid var(--line); transform: translateY(-140%);
    box-shadow: var(--shadow-lg);
    /* visibility keeps the closed drawer out of the tab order and the a11y tree */
    visibility: hidden; transition: transform .26s ease, visibility 0s linear .26s;
  }
  .nav__links.is-open { transform: translateY(0); visibility: visible; transition: transform .26s ease, visibility 0s; }
  .nav__links a { padding: 13px 16px; border-radius: var(--r-md); font-size: 1rem; }

  .podium { grid-template-columns: 1fr; }
  .pod--1, .pod--2, .pod--3 { order: 0; padding-top: 22px; }
  .pod__head { width: 56px; height: 56px; }
  .pod--1 .pod__head { width: 64px; height: 64px; }

  .row { grid-template-columns: 40px 32px 1fr auto; gap: 10px; padding-inline: 13px; }
  .lb__bar { gap: 12px; }
  .lb__search input { width: 100%; }
  .lb__search { flex: 1; }
  .vote { flex-wrap: wrap; }
  .vote .btn { margin-left: 0; width: 100%; }
  .vote .chip { margin-left: 0; }
  .ipbox { flex-wrap: wrap; gap: 10px; padding: 14px; }
  .ipbox__copy { margin-left: 0; width: 100%; }
}
@media (max-width: 420px) {
  .statgrid { grid-template-columns: 1fr; }
  .brand__name { font-size: 1.05rem; }
}

/* ---------- 16. Motion / print ------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  #snow { display: none; }
}
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
