:root{
  --bg:#07070d;
  --surface:#10101a;
  --surface-2:#161623;
  --surface-3:#1d1d2d;
  --border:#252538;
  --border-strong:#34344d;
  --text:#ececf6;
  --text-dim:#9393ad;
  --text-faint:#5d5d78;
  --pink:#ff2d78;
  --cyan:#22d3ee;
  --green:#3ee07a;
  --amber:#ffb020;
  --red:#ff4d5e;
  --gold:#ffc940;
  --silver:#cfd3e6;
  --bronze:#e0955a;
  --page:1120px;
}
*{ box-sizing:border-box; margin:0; padding:0; }
[hidden]{ display:none !important; }
body{
  background:var(--bg);
  color:var(--text);
  font-family:'Rubik', system-ui, sans-serif;
  font-size:14px;
  min-height:100vh;
  overflow-x:hidden;
}
button, input{ font:inherit; color:inherit; }
:focus-visible{ outline:2px solid var(--cyan); outline-offset:2px; }

/* ---------- hero ---------- */
.hero{
  position:relative; overflow:hidden;
  padding:44px 20px 0;
  text-align:center;
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(255,45,120,.22), transparent 70%),
    radial-gradient(600px 300px at 80% 60%, rgba(34,211,238,.12), transparent 70%),
    linear-gradient(180deg, #0c0716 0%, #07070d 100%);
}
.kicker{
  display:inline-flex; align-items:center; gap:8px;
  font-size:11px; font-weight:600; letter-spacing:2.5px; text-transform:uppercase;
  color:var(--cyan); padding:6px 12px; border-radius:99px;
  background:rgba(34,211,238,.08); border:1px solid rgba(34,211,238,.25);
  margin-bottom:18px;
}
.kicker i{ width:6px; height:6px; border-radius:50%; background:var(--cyan); box-shadow:0 0 8px var(--cyan); animation:blink 1.6s infinite; }
@keyframes blink{ 50%{ opacity:.3; } }
.hero h1{
  font-family:'Bungee', sans-serif; font-weight:400;
  font-size:clamp(38px, 9vw, 96px); line-height:.95; letter-spacing:1px;
  color:var(--pink);
  text-shadow:0 0 22px rgba(255,45,120,.7), 0 0 76px rgba(255,45,120,.35);
  animation:flicker 6s infinite;
}
.hero h1 span{ color:var(--cyan); text-shadow:0 0 20px rgba(34,211,238,.7), 0 0 56px rgba(34,211,238,.3); }
@keyframes flicker{ 0%,92%,100%{ opacity:1; } 93%{ opacity:.55; } 94%{ opacity:1; } 96%{ opacity:.7; } 97%{ opacity:1; } }

main{ max-width:var(--page); margin:22px auto 0; padding:0 20px 30px; display:flex; flex-direction:column; gap:20px; position:relative; }
.panel{
  background:linear-gradient(180deg, var(--surface-2), var(--surface));
  border:1px solid var(--border);
  border-radius:16px;
  padding:22px;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
  min-width:0;
}
.panel h2{ font-size:12px; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--text-dim); }

/* ---------- buttons & inputs ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-weight:700; font-size:14.5px; letter-spacing:.3px; white-space:nowrap;
  border:1px solid transparent; border-radius:11px;
  padding:12px 20px; cursor:pointer; text-decoration:none;
  transition:transform .08s, box-shadow .2s, background .15s, border-color .15s;
}
.btn:active{ transform:translateY(1px) scale(.99); }
.btn:disabled{ opacity:.55; cursor:progress; }
.btn-primary{ background:linear-gradient(135deg, #ff2d78, #ff5a5a); color:#fff; box-shadow:0 8px 24px rgba(255,45,120,.4); }
.btn-primary:hover{ box-shadow:0 10px 32px rgba(255,45,120,.55); background:linear-gradient(135deg, #ff4a8c, #ff6e6e); }
.btn-secondary{ background:rgba(34,211,238,.12); border-color:rgba(34,211,238,.5); color:var(--cyan); }
.btn-secondary:hover{ background:rgba(34,211,238,.2); border-color:var(--cyan); }
.btn-ghost{ background:transparent; border-color:var(--border-strong); color:var(--text-dim); }
.btn-ghost:hover{ color:var(--text); background:var(--surface-3); }
.btn-danger{ background:rgba(255,77,94,.12); border-color:rgba(255,77,94,.45); color:var(--red); }
.btn-small{ padding:8px 12px; font-size:12.5px; border-radius:9px; }
.linkbtn{ border:none; background:none; color:var(--text-faint); font-size:12px; font-weight:600; cursor:pointer; padding:2px 0; text-decoration:underline; text-decoration-color:var(--border-strong); text-underline-offset:3px; }
.linkbtn:hover{ color:var(--text); }
.linkbtn.err-link{ color:var(--red); font-size:inherit; padding:0; text-decoration-color:currentColor; }
.field{
  width:100%; background:var(--bg); border:1px solid var(--border-strong); color:var(--text);
  border-radius:11px; padding:12px 14px; font-size:15px; font-weight:500;
  transition:border-color .15s, box-shadow .15s;
}
.field::placeholder{ color:var(--text-faint); }
.field:focus{ outline:none; border-color:var(--pink); box-shadow:0 0 0 3px rgba(255,45,120,.15); }
.code-field{ font-family:ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing:1px; text-transform:uppercase; }
.field-error{ font-size:12px; color:var(--red); margin-top:6px; }
.field-error:empty{ display:none; }

.who{ display:flex; align-items:center; gap:12px; min-width:0; flex:1 1 240px; }
.who-avatar{
  flex:none; width:48px; height:48px; border-radius:13px; display:grid; place-items:center;
  font-family:'Bungee', sans-serif; font-size:21px; color:#fff;
  background:linear-gradient(135deg, var(--pink), #7c3aed); box-shadow:0 0 18px rgba(255,45,120,.35);
}
.who-name{ font-weight:700; font-size:17px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.verified{ font-size:10.5px; font-weight:700; letter-spacing:.5px; color:var(--green); background:rgba(62,224,122,.12); padding:2px 7px; border-radius:99px; vertical-align:2px; margin-left:6px; }
.who-sub{ font-size:12.5px; color:var(--text-faint); margin-top:3px; }
.who-sub b{ color:var(--green); font-weight:700; }
.who-sub b.neg{ color:var(--red); }
.who-sub b.rk{ color:var(--amber); }
.standing{ display:inline-block; font-weight:800; color:var(--gold); background:rgba(255,201,64,.12); border:1px solid rgba(255,201,64,.35); padding:1px 8px; border-radius:99px; }
.who-links{ display:flex; flex-wrap:wrap; gap:2px 14px; margin-top:4px; }
.who-links .linkbtn{ white-space:nowrap; }
.run-label{ font-size:10.5px; font-weight:700; letter-spacing:1.4px; text-transform:uppercase; color:var(--cyan); margin-bottom:6px; }
.run-label.last{ color:var(--text-faint); }
.run-note{ text-transform:none; letter-spacing:0; font-weight:500; }
.run-stats{ display:flex; gap:6px 18px; font-size:13px; color:var(--text-dim); flex-wrap:wrap; }
.run-stats b{ color:var(--text); font-weight:700; font-variant-numeric:tabular-nums; }
.run-stats b.pos{ color:var(--green); } .run-stats b.neg{ color:var(--red); } .run-stats b.rk{ color:var(--amber); }
.run-bar{ height:5px; border-radius:5px; background:var(--surface-3); overflow:hidden; margin-top:8px; max-width:320px; }
.run-bar i{ display:block; height:100%; background:linear-gradient(90deg, var(--cyan), var(--pink)); }
.notice{ margin-top:14px; padding:12px 14px; border-radius:11px; font-size:12.5px; line-height:1.5; color:var(--text-dim); background:rgba(255,176,32,.07); border:1px solid rgba(255,176,32,.3); }
.notice b{ color:var(--amber); }
.notice-actions{ display:flex; gap:6px; flex-wrap:wrap; margin-top:10px; }

/* ---------- the hero film ---------- */
/* The hero is a tall stage: the film fills it, the title block sits in the middle and
   the street wire runs along the bottom. */
.hero{ display:flex; flex-direction:column; min-height:clamp(560px, 84vh, 880px); isolation:isolate; }
.hero > .kicker{ margin-top:auto; align-self:center; }
.hero .wire{ margin-top:auto; }
.hero .hero-cta{ margin-bottom:48px; }
.hero-film{ position:absolute; inset:0; z-index:-1; overflow:hidden; pointer-events:none; }
.hero-still, .hero-video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 62%; }
.hero-video{ opacity:0; transition:opacity 1.4s ease; }
.hero-video.on{ opacity:1; }
/* Darken it so the neon title reads: heavier behind the title, a vignette at the edges,
   the old pink and cyan glows on top, and a fade into the page at the bottom. */
.hero-film::after{
  content:''; position:absolute; inset:0; z-index:1;
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(255,45,120,.20), transparent 70%),
    radial-gradient(600px 300px at 82% 55%, rgba(34,211,238,.10), transparent 70%),
    radial-gradient(ellipse 58% 42% at 50% 40%, rgba(7,7,13,.5), transparent 75%),
    radial-gradient(ellipse 120% 90% at 50% 45%, transparent 55%, rgba(0,0,0,.65) 100%),
    linear-gradient(180deg, rgba(7,7,13,.62) 0%, rgba(7,7,13,.38) 45%, rgba(7,7,13,.55) 78%, #07070d 100%);
}
/* A little film grain. */
.hero-film::before{
  content:''; position:absolute; inset:0; z-index:2; opacity:.09; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cta-note, .cta-hello{ text-shadow:0 1px 3px rgba(0,0,0,.9), 0 0 16px rgba(0,0,0,.85); }
/* Small print over the steam needs more contrast than it does on a plain background. */
.hero .cta-note{ color:#b4b4c9; }
.hero .cta-note .linkbtn{ color:#dcdcec; text-decoration-color:rgba(255,255,255,.45); }
.kicker{ background:rgba(7,10,22,.6); }

/* ---------- signs and player strip inside the hero ---------- */
/* The 1-2-3 strip map runs along the top of the hero; your player strip sits just above the
   street wire. The title block stays centred in the space between them. */
.hero{ padding-top:18px; }
.hero .player-strip{
  width:100%; max-width:1080px; align-self:center; text-align:left; margin-top:auto; margin-bottom:14px; padding:12px 16px;
  background:rgba(10,9,20,.74); border-color:rgba(255,255,255,.09); box-shadow:0 12px 30px rgba(0,0,0,.45);
}
.hero .player-strip:not([hidden]) + .wire{ margin-top:0; }
/* The strip shows your name, so the hero doesn't repeat it. */
.hero .cta-hello{ display:none; }
/* Ghost buttons get a solid backing so the steam doesn't show through them. */
.hero .btn-ghost{ background:rgba(10,9,20,.78); }
.hero .btn-ghost:disabled{ opacity:1; color:#6b6b85; border-color:rgba(255,255,255,.08); }

/* ---------- the call to action, in the hero ---------- */
.hero-cta{ position:relative; z-index:1; max-width:560px; margin:34px auto 0; }
.cta-loading{ padding:16px 0; font-size:13px; color:var(--text-faint); }
/* The heads-up phones get: the game was built for desktop. */
.device-note{
  display:flex; align-items:center; gap:11px; margin:0 auto 18px; padding:11px 12px 11px 14px; text-align:left;
  border-radius:13px; background:rgba(10,9,20,.86); border:1px solid rgba(255,176,32,.45);
  box-shadow:0 12px 30px rgba(0,0,0,.45); font-size:12.5px; line-height:1.5; color:#c4c4d8;
}
.device-note b{ color:var(--amber); }
.device-note .dn-ico{ flex:none; font-size:20px; }
.device-note .dn-text{ flex:1; min-width:0; }
.device-note .btn{ flex:none; }
.cta-form{
  display:flex; gap:8px; padding:6px; border-radius:16px;
  background:rgba(10,9,20,.78); border:1px solid rgba(255,45,120,.42);
  box-shadow:0 0 0 4px rgba(255,45,120,.07), 0 18px 50px rgba(0,0,0,.45), 0 0 46px rgba(255,45,120,.16);
  transition:border-color .15s, box-shadow .2s;
}
.cta-form:focus-within{ border-color:var(--pink); box-shadow:0 0 0 4px rgba(255,45,120,.14), 0 18px 50px rgba(0,0,0,.45), 0 0 56px rgba(255,45,120,.26); }
.cta-form .field{ flex:1; min-width:0; border:none; background:transparent; font-size:16px; padding:12px 14px; }
.cta-form .field:focus{ box-shadow:none; }
.cta-form .btn{ flex:none; padding:14px 22px; font-size:15.5px; border-radius:12px; }
.hero .field-error{ margin:9px 8px 0; text-align:left; }
.cta-note{ margin-top:12px; font-size:12px; line-height:1.6; color:var(--text-faint); }
.cta-note .linkbtn{ margin-left:4px; font-size:12px; }
.cta-hello{ margin-bottom:12px; font-size:15px; color:var(--text-dim); }
.cta-hello b{ color:var(--text); }
.hero .run{ max-width:430px; margin:0 auto 16px; padding:12px 16px; border-radius:14px; background:rgba(10,9,20,.6); border:1px solid var(--border); }
.hero .run-stats{ justify-content:center; }
.hero .run-bar{ max-width:none; }
.cta-actions{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
.cta-actions .btn{ min-width:170px; padding:14px 26px; font-size:15.5px; border-radius:12px; }

/* ---------- the street wire ---------- */
/* An amber LED news zipper along the bottom of the hero, Times Square style. */
.wire{
  position:relative; display:flex; align-items:stretch; height:38px; margin:0 -20px;
  text-align:left; background:#0b0906;
  border-top:1px solid rgba(255,176,32,.3); border-bottom:1px solid rgba(255,176,32,.3);
  box-shadow:inset 0 0 30px rgba(255,176,32,.07), 0 8px 30px rgba(0,0,0,.5);
}
.wire-tag{
  flex:none; display:flex; align-items:center; gap:8px; padding:0 14px 0 16px; z-index:1;
  font-size:10.5px; font-weight:800; letter-spacing:1.6px; text-transform:uppercase; color:#140c00;
  background:var(--amber); box-shadow:0 0 18px rgba(255,176,32,.35);
}
.wire-tag i{ width:7px; height:7px; border-radius:50%; background:#c0151f; animation:blink 1.6s infinite; }
.wire-track{
  position:relative; flex:1; min-width:0; overflow:hidden; display:flex; align-items:center;
  -webkit-mask-image:linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 48px), transparent);
  mask-image:linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 48px), transparent);
}
/* A fine dark grid over the text reads as LED dots. */
.wire-track::after{
  content:''; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(rgba(0,0,0,.3) 1px, transparent 1px) 0 0 / 100% 3px,
             linear-gradient(90deg, rgba(0,0,0,.3) 1px, transparent 1px) 0 0 / 3px 100%;
}
.wire-run{ display:flex; width:max-content; animation:wireScroll 40s linear infinite; }
.wire:hover .wire-run{ animation-play-state:paused; }
@keyframes wireScroll{ to{ transform:translateX(-50%); } }
.wire-set{ display:flex; }
.wire-item{
  display:inline-flex; align-items:center; gap:6px; padding-right:22px; white-space:nowrap;
  font-size:12.5px; font-weight:600; letter-spacing:.6px; text-transform:uppercase;
  color:#ffcf6e; text-shadow:0 0 6px rgba(255,176,32,.55);
}
.wire-item::before{ content:'\25C6'; margin-right:16px; font-size:8px; color:var(--pink); text-shadow:0 0 6px var(--pink); }
.wire-item b{ color:#fff; font-weight:800; text-shadow:0 0 8px rgba(255,255,255,.35); }
.wire-item em{ font-style:normal; font-weight:800; color:var(--green); text-shadow:0 0 8px rgba(62,224,122,.5); }
.wire-item em.neg{ color:var(--red); text-shadow:0 0 8px rgba(255,77,94,.5); }
.wire-item small{ font-size:10.5px; color:rgba(255,207,110,.55); text-shadow:none; }

/* ---------- the slim player strip ---------- */
.player-strip{ padding:14px 18px; }
.strip-row{ display:flex; align-items:center; gap:12px 28px; flex-wrap:wrap; }
.player-strip .who{ flex:1 1 260px; }
.player-strip .who-avatar{ width:42px; height:42px; font-size:18px; border-radius:12px; }
.player-strip .rank-next{ flex:0 1 240px; margin-top:0; }
.player-strip .who-links{ flex:none; margin-top:0; }

/* ---------- the game as three stops on a subway line ---------- */
/* A strip map along the top of the hero: one track through three numbered stations, green
   to purple to red, with a train's headlight running the line now and then. */
.line-map{ width:100%; max-width:760px; align-self:center; margin-bottom:20px; }
.stops{ position:relative; list-style:none; display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); }
.stops::before{
  content:''; position:absolute; top:15px; left:16.67%; right:16.67%; height:6px; margin-top:-3px; border-radius:3px;
  background:linear-gradient(90deg, #00933c, #b933ad 50%, #ee352e);
  box-shadow:0 0 14px rgba(185,51,173,.45), 0 1px 0 rgba(0,0,0,.6);
}
.stops::after{
  content:''; position:absolute; z-index:2; top:15px; left:16.67%; width:26px; height:8px; margin:-4px 0 0 -13px; border-radius:4px;
  background:radial-gradient(closest-side, #fff, rgba(255,255,255,.6) 45%, rgba(255,255,255,0));
  opacity:0; animation:train 7s ease-in-out infinite;
}
@keyframes train{ 0%{ left:16.67%; opacity:0; } 8%{ opacity:1; } 70%{ left:83.33%; opacity:1; } 78%, 100%{ left:83.33%; opacity:0; } }
.stop{ position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; gap:2px; min-width:0; text-align:center; }
.stop .bullet{ width:30px; height:30px; font-size:16px; margin-bottom:8px; box-shadow:0 0 0 3px #0b0b10, 0 0 0 5px rgba(255,255,255,.9), 0 4px 14px rgba(0,0,0,.6); }
.stop b{ font-size:15px; font-weight:800; color:#fff; white-space:nowrap; text-shadow:0 1px 3px rgba(0,0,0,.9), 0 0 14px rgba(0,0,0,.8); }
.stop small{ font-size:11.5px; color:#cfcfe0; text-shadow:0 1px 3px rgba(0,0,0,.9); }
.bullet{ flex:none; width:40px; height:40px; border-radius:50%; display:grid; place-items:center; font-size:22px; font-weight:800; color:#fff; }
.bullet.b1{ background:#00933c; }
.bullet.b2{ background:#b933ad; }
.bullet.b3{ background:#ee352e; }

/* ---------- places on the board nobody holds yet ---------- */
.lb-open{ display:flex; align-items:center; gap:14px; padding:13px 14px; border-radius:10px; border:1px dashed var(--border-strong); font-size:13px; color:var(--text-faint); }
.lb-open-pos{ min-width:44px; font-weight:800; font-variant-numeric:tabular-nums; color:var(--text-dim); }

/* ---------- leaderboard ---------- */
.board-head{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-bottom:22px; }
.board-head h2{ font-family:'Bungee', sans-serif; font-weight:400; font-size:22px; letter-spacing:.5px; color:var(--text); text-transform:none; display:flex; align-items:center; gap:10px; }
.season{ font-family:'Rubik', sans-serif; font-size:10.5px; font-weight:700; letter-spacing:1px; color:var(--cyan); background:rgba(34,211,238,.1); border:1px solid rgba(34,211,238,.3); padding:3px 9px; border-radius:99px; }
.board-stats{ display:flex; gap:8px; margin-left:auto; flex-wrap:wrap; }
.bstat{ padding:6px 12px; border-radius:10px; background:var(--surface); border:1px solid var(--border); font-size:10px; color:var(--text-faint); text-transform:uppercase; letter-spacing:1px; font-weight:600; }
.bstat b{ display:block; font-size:15px; color:var(--text); letter-spacing:0; text-transform:none; font-variant-numeric:tabular-nums; }
.refresh{ border:none; background:none; color:var(--text-faint); cursor:pointer; font-size:11px; font-weight:600; letter-spacing:1px; text-transform:uppercase; padding:6px 4px; }
.refresh:hover{ color:var(--text); }

/* ---------- the podium: the top three ---------- */
/* An awards stage: a spotlight beam on each place, gold in the middle on the tallest plinth
   with a foil border, a halo, sparkles and rising gold dust; light pools on the floor. */
@property --foil{ syntax:'<angle>'; inherits:false; initial-value:0deg; }
.podium{
  position:relative; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.18fr) minmax(0,1fr);
  align-items:end; gap:0 16px; margin:6px 0 34px; padding-top:70px;
}
/* The warm glow of the stage behind the places. */
.podium::before{
  content:''; position:absolute; left:50%; top:0; bottom:-40px; width:min(760px, 100%); transform:translateX(-50%);
  background:radial-gradient(ellipse 50% 46% at 50% 46%, rgba(255,201,64,.2), rgba(255,201,64,.05) 55%, transparent 72%);
  pointer-events:none;
}
/* Light pooling on the stage floor under each plinth. */
.podium::after{
  content:''; position:absolute; left:-1%; right:-1%; bottom:-30px; height:44px; pointer-events:none;
  background:
    radial-gradient(ellipse 22% 100% at 50% 0%, rgba(255,201,64,.32), transparent 72%),
    radial-gradient(ellipse 17% 100% at 17% 0%, rgba(207,211,230,.2), transparent 72%),
    radial-gradient(ellipse 17% 100% at 83% 0%, rgba(224,149,90,.2), transparent 72%);
}
.podium:empty{ display:none; }
.pod{ --c:var(--text-faint); position:relative; isolation:isolate; display:flex; flex-direction:column; min-width:0; }
.pod.p1{ --c:var(--gold); order:2; z-index:1; }
.pod.p2{ --c:var(--silver); order:1; }
.pod.p3{ --c:var(--bronze); order:3; }

/* The spotlight: a soft cone of light from above (brightest down the middle, fading out at
   the edges and toward the floor), swaying a little like a real stage light. */
.beam{
  position:absolute; z-index:-1; left:50%; top:-110px; bottom:26%; width:190%; pointer-events:none;
  transform:translateX(-50%); transform-origin:50% 0;
  background:conic-gradient(from 157deg at 50% 0%, transparent 0deg,
    color-mix(in srgb, var(--c) 30%, transparent) 12deg, color-mix(in srgb, var(--c) 52%, transparent) 23deg,
    color-mix(in srgb, var(--c) 30%, transparent) 34deg, transparent 46deg);
  -webkit-mask-image:linear-gradient(180deg, transparent 0%, #000 24%, #000 55%, transparent 100%);
  mask-image:linear-gradient(180deg, transparent 0%, #000 24%, #000 55%, transparent 100%);
  opacity:.55; animation:beamSway 7s ease-in-out infinite alternate;
}
.p1 .beam{ opacity:.85; animation-duration:8.5s; }
.p3 .beam{ animation-delay:-3s; }
@keyframes beamSway{ from{ transform:translateX(-50%) rotate(-2.5deg); } to{ transform:translateX(-50%) rotate(2.5deg); } }

.pod-card{
  position:relative; text-align:center; padding:22px 14px 18px; min-width:0;
  border-radius:18px 18px 0 0; border:1px solid color-mix(in srgb, var(--c) 45%, var(--border)); border-bottom-width:0;
  background:
    radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--c) 24%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 92%, transparent), var(--surface));
  box-shadow:0 -6px 30px color-mix(in srgb, var(--c) 12%, transparent);
}
.p1 .pod-card{ padding:36px 16px 24px; }
/* Gold's card is edged in moving gold foil. */
.p1:not(.empty) .pod-card::before{
  content:''; position:absolute; inset:-1px; border-radius:inherit; padding:2px 2px 0; pointer-events:none;
  background:conic-gradient(from var(--foil), #ffc940, #fff4c4, #e09a1c, #ffe58a, #b8791a, #fff8e0, #ffc940);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation:foil 6s linear infinite;
}
@keyframes foil{ to{ --foil:360deg; } }
.pod.me .pod-card{ border-color:var(--cyan); box-shadow:0 0 0 1px var(--cyan), 0 -10px 40px rgba(34,211,238,.18); }

.crown{
  position:absolute; z-index:2; top:-30px; left:50%; font-size:38px; line-height:1;
  transform:translateX(-50%) rotate(-10deg); filter:drop-shadow(0 0 14px rgba(255,201,64,.85));
  animation:crownBob 3.2s ease-in-out infinite;
}
@keyframes crownBob{ 50%{ transform:translate(-50%, -6px) rotate(-5deg); } }

/* The avatar with a halo of light circling it. */
.pod-avatar{
  position:relative; width:58px; height:58px; margin:0 auto 12px; border-radius:50%; display:grid; place-items:center;
  font-family:'Bungee', sans-serif; font-size:23px; color:#fff;
  background:radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--c) 60%, #2b2142), #15121f 75%);
  border:2px solid var(--c);
  box-shadow:0 0 0 5px color-mix(in srgb, var(--c) 14%, transparent), 0 0 26px color-mix(in srgb, var(--c) 45%, transparent);
}
.pod-avatar::before{
  content:''; position:absolute; inset:-9px; border-radius:50%; pointer-events:none;
  background:conic-gradient(transparent 0 12%, var(--c) 25%, transparent 38% 62%, var(--c) 75%, transparent 88%);
  -webkit-mask:radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  mask:radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  opacity:.7; animation:spin 5s linear infinite;
}
.p1 .pod-avatar{ width:80px; height:80px; font-size:32px; }
.p1 .pod-avatar::before{ inset:-11px; opacity:1; animation-duration:3.5s;
  -webkit-mask:radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  mask:radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)); }
@keyframes spin{ to{ transform:rotate(360deg); } }

.pod-name{ font-weight:800; font-size:16px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.p1 .pod-name{ font-size:22px; filter:drop-shadow(0 0 10px rgba(255,201,64,.4)); }
.pod .you{ display:inline-block; margin:4px 0 0; }
.pod-rank{ margin-top:5px; }
.pod-rank .tier{ font-size:11px; justify-content:center; white-space:normal; text-align:center; line-height:1.3; }
.pod-rank .tier span{ overflow:visible; }
.pod-nw{ font-size:23px; font-weight:800; color:var(--green); font-variant-numeric:tabular-nums; margin-top:12px; letter-spacing:-.3px; }
.p1 .pod-nw{ font-size:34px; text-shadow:0 0 26px rgba(62,224,122,.5); }
.pod-nw.neg{ color:var(--red); text-shadow:none; }
.nw-short{ display:none; }
.pod-meta{ font-size:11.5px; color:var(--text-faint); margin-top:6px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* Sparkles twinkling around gold's card. */
.sparkles{ position:absolute; inset:-18px -14px 30% -14px; pointer-events:none; z-index:1; }
.sparkles i{
  position:absolute; width:11px; height:11px; background:#fff3c4; opacity:0;
  clip-path:polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  filter:drop-shadow(0 0 4px #ffc940); animation:twinkle 2.6s ease-in-out infinite;
}
.sparkles i:nth-child(1){ top:4%; left:6%; animation-delay:0s; }
.sparkles i:nth-child(2){ top:18%; left:94%; animation-delay:.5s; width:8px; height:8px; }
.sparkles i:nth-child(3){ top:44%; left:2%; animation-delay:1.1s; width:7px; height:7px; }
.sparkles i:nth-child(4){ top:60%; left:97%; animation-delay:1.7s; }
.sparkles i:nth-child(5){ top:0; left:72%; animation-delay:2.2s; width:9px; height:9px; }
.sparkles i:nth-child(6){ top:30%; left:12%; animation-delay:.8s; width:6px; height:6px; }
.sparkles i:nth-child(7){ top:8%; left:30%; animation-delay:1.5s; width:7px; height:7px; }
.sparkles i:nth-child(8){ top:72%; left:8%; animation-delay:.3s; width:8px; height:8px; }
.sparkles i:nth-child(9){ top:36%; left:88%; animation-delay:1.9s; width:6px; height:6px; }
.sparkles i:nth-child(10){ top:84%; left:92%; animation-delay:1.3s; width:7px; height:7px; }
@keyframes twinkle{ 0%, 100%{ opacity:0; transform:scale(.3) rotate(0deg); } 50%{ opacity:1; transform:scale(1) rotate(45deg); } }

/* Gold dust drifting up off the plinth. */
.dust{ position:absolute; left:8%; right:8%; bottom:0; height:100%; pointer-events:none; z-index:1; }
.dust i{
  position:absolute; bottom:0; width:4px; height:4px; border-radius:50%; opacity:0;
  background:#ffd76a; box-shadow:0 0 6px #ffc940; animation:rise 5.5s linear infinite;
}
.dust i:nth-child(1){ left:4%; animation-delay:0s; }
.dust i:nth-child(2){ left:14%; animation-delay:2.1s; animation-duration:6.5s; }
.dust i:nth-child(3){ left:23%; animation-delay:4.2s; width:3px; height:3px; }
.dust i:nth-child(4){ left:33%; animation-delay:1.2s; animation-duration:4.8s; }
.dust i:nth-child(5){ left:42%; animation-delay:3.3s; width:3px; height:3px; }
.dust i:nth-child(6){ left:51%; animation-delay:.6s; animation-duration:6s; }
.dust i:nth-child(7){ left:60%; animation-delay:2.7s; }
.dust i:nth-child(8){ left:68%; animation-delay:4.8s; width:3px; height:3px; animation-duration:5s; }
.dust i:nth-child(9){ left:76%; animation-delay:1.7s; }
.dust i:nth-child(10){ left:84%; animation-delay:3.9s; animation-duration:6.8s; }
.dust i:nth-child(11){ left:91%; animation-delay:.9s; width:3px; height:3px; }
.dust i:nth-child(12){ left:97%; animation-delay:5.1s; }
@keyframes rise{
  0%{ transform:translate(0, 0); opacity:0; }
  12%{ opacity:.95; }
  100%{ transform:translate(8px, -230px); opacity:0; }
}

/* The plinth: a polished metal block with a lit top face and its place engraved. */
.plinth{
  position:relative; overflow:hidden; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
  height:50px; border-radius:0 0 12px 12px;
  background:linear-gradient(180deg, color-mix(in srgb, var(--c) 92%, #fff), color-mix(in srgb, var(--c) 52%, #000));
  box-shadow:inset 0 -3px 0 rgba(0,0,0,.25), inset 8px 0 12px -8px rgba(0,0,0,.4), inset -8px 0 12px -8px rgba(0,0,0,.4),
             0 18px 36px color-mix(in srgb, var(--c) 24%, transparent);
}
.plinth::before{ content:''; position:absolute; top:0; left:0; right:0; height:8px; background:linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,0)); }
.p1 .plinth{ height:104px; }
.p2 .plinth{ height:72px; }
.pl-num{ font-family:'Bungee', sans-serif; font-size:34px; line-height:1; color:rgba(20,14,4,.45); text-shadow:0 1px 0 rgba(255,255,255,.5), 0 -1px 0 rgba(0,0,0,.15); }
.p1 .pl-num{ font-size:54px; }
.pl-ord{ font-size:10px; font-weight:800; letter-spacing:3px; text-transform:uppercase; color:rgba(20,14,4,.42); text-shadow:0 1px 0 rgba(255,255,255,.4); }
.p3 .pl-ord{ display:none; }
.plinth::after{
  content:''; position:absolute; inset:0 auto 0 -60%; width:40%; transform:skewX(-20deg);
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  animation:sweep 4.5s ease-in-out infinite;
}
.p2 .plinth::after{ animation-delay:-1.5s; opacity:.6; }
.p3 .plinth::after{ animation-delay:-3s; opacity:.5; }
@keyframes sweep{ 0%, 55%{ left:-60%; } 100%{ left:130%; } }

/* A place nobody holds yet: a dim light on an empty stand. */
.pod.empty{ --c:var(--border-strong); }
.pod.empty .beam{ opacity:.25; }
.pod.empty .pod-card{ border-style:dashed; background:transparent; box-shadow:none; }
.pod.empty .pod-avatar{ color:var(--text-faint); background:var(--surface); border-style:dashed; box-shadow:none; }
.pod.empty .pod-avatar::before{ display:none; }
.pod.empty .pod-name{ color:var(--text-faint); font-weight:600; font-size:15px; }
.pod.empty .plinth{ background:var(--surface-3); box-shadow:inset 0 2px 0 rgba(255,255,255,.05); }
.pod.empty .plinth::before, .pod.empty .plinth::after{ display:none; }
.pod.empty .pl-num, .pod.empty .pl-ord{ color:var(--text-faint); text-shadow:none; }
.p1.empty .crown{ opacity:.35; filter:grayscale(1); animation:none; }

/* The entrance: bronze, silver, then gold rise into place; the crown drops on last. */
.podium.waiting .pod{ opacity:0; }
.podium.enter .pod{ animation:podRise .9s cubic-bezier(.2,.9,.3,1.15) both; }
.podium.enter .p3{ animation-delay:.05s; }
.podium.enter .p2{ animation-delay:.22s; }
.podium.enter .p1{ animation-delay:.42s; }
.podium.enter .crown{ animation:crownDrop .7s 1.1s cubic-bezier(.3,1.4,.5,1) both, crownBob 3.2s 1.8s ease-in-out infinite; }
@keyframes podRise{ from{ opacity:0; transform:translateY(70px); } }
@keyframes crownDrop{ from{ opacity:0; transform:translate(-50%, -60px) rotate(-35deg); } }

/* ---------- the stage: the leaderboard out of its box ---------- */
/* No card around the board: the podium stands on the page under its own lights, with a
   faint haze around the stage and a lit edge along the base of the plinths. */
.panel.board{ position:relative; padding:6px 0 0; background:none; border:none; border-radius:0; box-shadow:none; }
.panel.board::before{
  content:''; position:absolute; z-index:-1; inset:-30px 0 0; pointer-events:none;
  background:
    radial-gradient(ellipse 34% 40% at 50% 40%, rgba(255,201,64,.07), transparent 72%),
    radial-gradient(ellipse 60% 30% at 50% 0%, rgba(255,45,120,.05), transparent 70%);
}
/* The heading is a marquee over the stage; the stats and controls sit under it. */
.board-head{ justify-content:center; row-gap:14px; margin-bottom:10px; }
.board-head h2{ flex:1 1 100%; justify-content:center; font-size:30px; text-shadow:0 0 22px rgba(255,201,64,.25); }
.board-stats{ margin-left:0; }
/* The floor: a lit edge right at the base of the plinths, light spilling down from it. */
.podium::after{
  bottom:-46px; height:46px;
  background:
    linear-gradient(90deg, transparent, rgba(255,201,64,.5) 30%, rgba(255,201,64,.7) 50%, rgba(255,201,64,.5) 70%, transparent) top / 100% 1px no-repeat,
    radial-gradient(ellipse 22% 100% at 50% 0%, rgba(255,201,64,.32), transparent 72%),
    radial-gradient(ellipse 17% 100% at 17% 0%, rgba(207,211,230,.2), transparent 72%),
    radial-gradient(ellipse 17% 100% at 83% 0%, rgba(224,149,90,.2), transparent 72%);
}
.podium{ margin-bottom:48px; }
/* The side spotlights spill past the cards; clip them before they reach the screen edge,
   which would let phones and laptops scroll sideways. Big screens have room to spare. */
.podium{ overflow-x:clip; overflow-clip-margin:12px; }
@media (min-width:1500px){ .podium{ overflow-clip-margin:110px; } }

.lb-head, .lb-row{
  display:grid; grid-template-columns:44px minmax(0,1.6fr) minmax(0,1fr) 64px minmax(0,1.1fr) minmax(0,1fr);
  gap:12px; align-items:center;
}
.lb-head{ padding:0 14px 8px; font-size:10px; font-weight:700; letter-spacing:1.2px; text-transform:uppercase; color:var(--text-faint); }
.r{ text-align:right; }
.lb-rows{ display:flex; flex-direction:column; gap:4px; }
.lb-row{ padding:10px 14px; border-radius:10px; background:var(--surface); border:1px solid var(--border); font-size:13px; }
.lb-row.me{ border-color:rgba(34,211,238,.5); background:linear-gradient(90deg, rgba(34,211,238,.08), var(--surface)); }
.lb-pos{ font-weight:800; color:var(--text-faint); font-variant-numeric:tabular-nums; }
.lb-name{ font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lb-rank{ color:var(--amber); font-weight:600; font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lb-dim{ color:var(--text-faint); font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lb-nw{ font-weight:800; font-size:14.5px; color:var(--green); font-variant-numeric:tabular-nums; text-align:right; }
.lb-nw.neg{ color:var(--red); }
.you{ font-size:9.5px; font-weight:700; letter-spacing:.8px; color:var(--cyan); background:rgba(34,211,238,.12); padding:2px 6px; border-radius:6px; margin-left:6px; vertical-align:1px; }
.walked{ font-size:10.5px; color:var(--red); opacity:.8; }
.legacy{ font-size:9.5px; font-weight:700; letter-spacing:.8px; color:var(--text-faint); background:rgba(255,255,255,.06); padding:2px 6px; border-radius:6px; margin-left:6px; vertical-align:1px; cursor:help; }
.lb-gap{ text-align:center; color:var(--text-faint); font-size:14px; letter-spacing:6px; line-height:1; padding:2px 0 4px; }
/* Places nobody holds yet. */

/* Rank badges: one colour per rung of the ladder (index into LADDER in menu.js). */
.tier{ --t:var(--text-dim); display:inline-flex; align-items:center; gap:7px; color:var(--t); font-weight:600; font-size:12px; white-space:nowrap; max-width:100%; }
.tier span{ min-width:0; overflow:hidden; text-overflow:ellipsis; }
.tier i{ flex:none; width:8px; height:8px; border-radius:50%; background:var(--t); box-shadow:0 0 8px color-mix(in srgb, var(--t) 60%, transparent); }
.tier-0{ --t:var(--gold); }
.tier-1{ --t:var(--pink); }
.tier-2{ --t:#a78bfa; }
.tier-3{ --t:var(--cyan); }
.tier-4{ --t:var(--green); }
.tier-5{ --t:#9393ad; }
.tier-6{ --t:var(--red); }

/* The ranks toggle: the seven rank colours as a little hint of what's inside. */
.ranks-toggle{
  display:inline-flex; align-items:center; gap:8px; padding:7px 11px; border-radius:9px; cursor:pointer;
  font-size:11px; font-weight:700; letter-spacing:1px; text-transform:uppercase; color:var(--text-dim);
  background:var(--surface); border:1px solid var(--border-strong); transition:color .15s, background .15s, border-color .15s;
}
.ranks-toggle:hover, .ranks-toggle.open{ color:var(--text); background:var(--surface-3); border-color:rgba(255,201,64,.45); }
.rt-dots{ display:inline-flex; gap:2px; }
.rt-dots i{ width:5px; height:5px; border-radius:50%; background:var(--t); box-shadow:0 0 5px var(--t); }
.ranks-toggle .chev{ display:inline-block; transition:transform .2s; }
.ranks-toggle.open .chev{ transform:rotate(180deg); }

/* The ladder: a staircase of the seven ranks, lowest on the left. */
.ladder{
  margin:-6px 0 22px; padding:22px 18px 14px; border-radius:14px; border:1px solid var(--border);
  background:radial-gradient(90% 120% at 100% 0%, rgba(255,201,64,.10), transparent 60%), linear-gradient(180deg, var(--surface-2), var(--surface));
}
.climb{ display:grid; grid-template-columns:repeat(7, minmax(0,1fr)); gap:8px; align-items:end; border-bottom:2px solid var(--border-strong); }
.rung{ display:flex; flex-direction:column; align-items:center; text-align:center; min-width:0; }
.rung-top{ position:relative; display:flex; flex-direction:column; align-items:center; gap:2px; padding:0 2px 8px; }
.rung-ico{ font-size:24px; line-height:1.1; filter:drop-shadow(0 0 8px color-mix(in srgb, var(--t) 55%, transparent)); }
.rung-name{ font-size:12px; font-weight:800; line-height:1.2; color:var(--t); }
.rung-req{ font-size:11px; color:var(--text-faint); font-variant-numeric:tabular-nums; }
.step{
  position:relative; overflow:hidden; width:100%; display:flex; justify-content:center; padding-top:7px;
  border-radius:9px 9px 0 0; transform-origin:bottom;
  background:linear-gradient(180deg, color-mix(in srgb, var(--t) 88%, #fff), color-mix(in srgb, var(--t) 40%, #000));
  box-shadow:inset 0 2px 0 rgba(255,255,255,.35), 0 0 22px color-mix(in srgb, var(--t) 25%, transparent);
}
/* Each rung a step higher than the last. */
.rung:nth-child(1) .step{ height:26px; }
.rung:nth-child(2) .step{ height:42px; }
.rung:nth-child(3) .step{ height:58px; }
.rung:nth-child(4) .step{ height:76px; }
.rung:nth-child(5) .step{ height:96px; }
.rung:nth-child(6) .step{ height:118px; }
.rung:nth-child(7) .step{ height:144px; }
.step-count{ font-size:10.5px; font-weight:800; letter-spacing:.3px; white-space:nowrap; color:rgba(10,8,4,.72); }
.rung.empty .step{ opacity:.45; }
.rung.empty .step-count{ font-weight:600; color:rgba(10,8,4,.55); }
/* The Legend's step catches the light. */
.rung:nth-child(7) .step::after{
  content:''; position:absolute; inset:0 auto 0 -60%; width:40%; transform:skewX(-20deg);
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent); animation:sweep 4.5s ease-in-out infinite;
}
/* Where you stand. */
.rung.mine .step{ box-shadow:inset 0 2px 0 rgba(255,255,255,.35), 0 0 0 2px var(--cyan), 0 0 26px rgba(34,211,238,.45); opacity:1; }
.you-pin{
  position:absolute; top:-20px; left:50%; transform:translateX(-50%); padding:2px 7px; border-radius:6px;
  font-size:9.5px; font-weight:800; letter-spacing:1px; color:#04212a; background:var(--cyan);
  box-shadow:0 0 12px rgba(34,211,238,.6); animation:pinBob 1.8s ease-in-out infinite;
}
@keyframes pinBob{ 50%{ transform:translate(-50%, -3px); } }
.rung-n{ display:none; }
.climb-foot{ margin-top:12px; font-size:12px; color:var(--text-dim); text-align:center; }
.climb-foot b{ color:var(--text); }
/* Opening the ladder: the steps grow up one after another. */
.ladder:not([hidden]) .step{ animation:stepUp .55s cubic-bezier(.2,.8,.2,1) both; }
.ladder:not([hidden]) .rung:nth-child(7) .step{ animation:stepUp .55s cubic-bezier(.2,.8,.2,1) .3s both; }
.ladder:not([hidden]) .rung-top{ animation:rungIn .4s ease-out both; }
.rung:nth-child(2) .step, .rung:nth-child(2) .rung-top{ animation-delay:.05s; }
.rung:nth-child(3) .step, .rung:nth-child(3) .rung-top{ animation-delay:.1s; }
.rung:nth-child(4) .step, .rung:nth-child(4) .rung-top{ animation-delay:.15s; }
.rung:nth-child(5) .step, .rung:nth-child(5) .rung-top{ animation-delay:.2s; }
.rung:nth-child(6) .step, .rung:nth-child(6) .rung-top{ animation-delay:.25s; }
.rung:nth-child(7) .step, .rung:nth-child(7) .rung-top{ animation-delay:.3s; }
@keyframes stepUp{ from{ transform:scaleY(0); } }
@keyframes rungIn{ from{ opacity:0; transform:translateY(8px); } }

/* Your best run's progress toward the next rank. */
.rank-next{ display:flex; flex-direction:column; gap:5px; margin-top:7px; font-size:11.5px; color:var(--text-faint); white-space:nowrap; }
.rank-bar{ width:min(220px, 100%); height:5px; border-radius:5px; background:var(--surface-3); overflow:hidden; }
.rank-bar i{ display:block; height:100%; background:var(--t, var(--cyan)); }
.board-status{ font-size:13px; color:var(--text-dim); padding:6px 0 2px; text-align:center; }
.board-status:empty{ display:none; }
.skel{ height:46px; border-radius:10px; background:linear-gradient(90deg, var(--surface) 0%, var(--surface-3) 50%, var(--surface) 100%); background-size:200% 100%; animation:shimmer 1.2s infinite linear; }
@keyframes shimmer{ to{ background-position:-200% 0; } }

/* ---------- key modal ---------- */
.scrim{ position:fixed; inset:0; z-index:60; background:rgba(4,4,10,.75); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); display:none; }
.keymodal{
  position:fixed; top:50%; left:50%; transform:translate(-50%,-50%); z-index:61; display:none;
  width:min(420px, calc(100vw - 32px)); padding:26px 22px 22px; text-align:center;
  background:linear-gradient(180deg, #17172a, #10101a); border:1px solid rgba(34,211,238,.45); border-radius:18px;
  box-shadow:0 24px 70px rgba(0,0,0,.6), 0 0 50px rgba(34,211,238,.18);
}
.keymodal.open, .scrim.open{ display:block; }
.keymodal .btn{ width:100%; }
.key-icon{ font-size:34px; margin-bottom:8px; }
.keymodal h3{ font-family:'Bungee', sans-serif; font-weight:400; font-size:20px; color:var(--cyan); margin-bottom:8px; }
.keymodal p{ font-size:13px; color:var(--text-dim); line-height:1.55; margin-bottom:16px; }
.key-code{
  font-family:ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size:clamp(15px, 4.6vw, 19px); font-weight:700; letter-spacing:1.5px;
  color:#fff; padding:14px 10px; margin-bottom:14px; border-radius:11px; background:var(--bg); border:1px dashed rgba(34,211,238,.5);
  user-select:all; word-break:break-all;
}

footer{ text-align:center; padding:6px 20px 34px; color:var(--text-faint); font-size:11.5px; }

/* ---------- responsive ---------- */
@media (max-width:860px){
  .lb-head, .lb-row{ grid-template-columns:36px minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr); }
  .c-runs, .c-fin{ display:none; }
}
@media (max-width:560px){
  .hero{ padding-top:32px; }
  main{ padding:0 12px 24px; gap:14px; }
  .panel{ padding:16px; border-radius:14px; }
  .board-head{ margin-bottom:16px; }
  .hero-cta{ margin-top:28px; }
  .cta-form .btn{ padding:13px 16px; font-size:14.5px; }
  .cta-actions .btn{ flex:1; min-width:0; padding:13px 14px; }
  .wire{ height:34px; }
  .wire-tag{ padding:0 10px; font-size:9.5px; letter-spacing:1.2px; }
  .wire-item{ font-size:11.5px; }
  .player-strip .rank-next{ flex:1 1 100%; }
  .ladder{ padding:14px 12px 12px; }
  .climb{ display:flex; flex-direction:column-reverse; align-items:stretch; gap:6px; border-bottom:none; }
  .rung{ display:grid; grid-template-columns:minmax(0,1fr) 44%; align-items:center; gap:10px; text-align:left; }
  .rung-top{ display:grid; grid-template-columns:28px minmax(0,1fr) auto; grid-template-rows:auto auto; column-gap:8px; row-gap:0; align-items:center; justify-items:start; padding:0; }
  .rung-ico{ grid-column:1; grid-row:1 / 3; font-size:21px; justify-self:center; }
  .rung-name{ grid-column:2; grid-row:1; }
  .rung-req{ grid-column:2; grid-row:2; }
  .rung-n{ display:inline; }
  .step-count{ display:none; }
  .rung-name{ font-size:12.5px; }
  .rung-req{ font-size:10.5px; }
  .step{ height:24px !important; border-radius:0 7px 7px 0; padding-top:0; align-items:center; justify-content:flex-end; padding-right:7px; transform-origin:left; }
  .rung:nth-child(1) .step{ width:22%; }
  .rung:nth-child(2) .step{ width:35%; }
  .rung:nth-child(3) .step{ width:48%; }
  .rung:nth-child(4) .step{ width:61%; }
  .rung:nth-child(5) .step{ width:74%; }
  .rung:nth-child(6) .step{ width:87%; }
  .rung:nth-child(7) .step{ width:100%; }
  .you-pin{ position:static; grid-column:3; grid-row:1 / 3; align-self:center; transform:none; }
  @keyframes pinBob{ 50%{ transform:translateY(-2px); } }
  @keyframes stepUp{ from{ transform:scaleX(0); } }
  .hero .player-strip{ padding:10px 12px; }
  .line-map{ margin-bottom:14px; }
  .stops::before, .stops::after{ top:13px; }
  .stop .bullet{ width:26px; height:26px; font-size:14px; margin-bottom:7px; }
  .stop b{ font-size:12.5px; }
  .stop small{ display:none; }
  .board-head h2{ font-size:22px; }
  .board-stats{ margin-left:0; width:100%; order:3; }
  .refresh{ font-size:0; padding:4px 6px; }
  .refresh::before{ content:'↻'; font-size:18px; }
  .bstat{ flex:1; }
  .podium{ gap:0 6px; padding-top:54px; margin-bottom:26px; }
  .beam{ top:-80px; }
  .pod-card, .p1 .pod-card{ padding:16px 6px 12px; border-radius:14px 14px 0 0; }
  .p1 .pod-card{ padding-top:26px; }
  .crown{ font-size:28px; top:-22px; }
  .pod-avatar{ width:40px; height:40px; font-size:16px; margin-bottom:8px; box-shadow:0 0 0 3px color-mix(in srgb, var(--c) 14%, transparent), 0 0 16px color-mix(in srgb, var(--c) 40%, transparent); }
  .pod-avatar::before{ inset:-6px; }
  .p1 .pod-avatar{ width:54px; height:54px; font-size:21px; }
  .p1 .pod-avatar::before{ inset:-8px; }
  .pod-name{ font-size:13px; }
  .p1 .pod-name{ font-size:15px; }
  .pod-rank .tier{ font-size:10px; gap:5px; }
  .pod-nw{ font-size:16px; margin-top:8px; }
  .p1 .pod-nw{ font-size:22px; }
  .nw-full{ display:none; }
  .nw-short{ display:inline; }
  .pod-meta{ display:none; }
  .sparkles i:nth-child(n+7){ display:none; }
  .dust i:nth-child(even){ display:none; }
  .plinth{ height:36px; }
  .p1 .plinth{ height:70px; }
  .p2 .plinth{ height:50px; }
  .pl-num{ font-size:22px; }
  .p1 .pl-num{ font-size:36px; }
  .pl-ord{ font-size:8px; letter-spacing:2px; }
  .p2 .pl-ord{ display:none; }
  .lb-head{ display:none; }
  .lb-row{ grid-template-columns:30px minmax(0,1fr) auto; gap:2px 10px; }
  .lb-row .lb-pos{ grid-row:1 / 3; }
  .lb-row .c-rank{ grid-column:2; grid-row:2; }
  .lb-row .lb-nw{ grid-row:1 / 3; grid-column:3; }
}
@media (max-width:380px){
  .cta-form{ flex-wrap:wrap; }
  .cta-form .field, .cta-form .btn{ flex:1 1 100%; }
}
@media (prefers-reduced-motion:reduce){
  *, *::before, *::after{ animation:none !important; transition:none !important; }
  /* The wire holds still; scroll it by hand. */
  .wire-track{ overflow-x:auto; }
  .wire-set + .wire-set{ display:none; }
}

.who-text{ min-width:0; }
#keyDone{ margin-top:10px; }
