/* 2026-10-31, Aidan: the board simplified. Gold, silver and bronze steps
   for the top three, plain rows under them, one highlighted "your spot"
   row, and a live round card above the globe. Loaded after
   standings.css and expanded-sections.css, so these rules win. */

/* ── Podium steps ─────────────────────────────────────────────────── */
#ranked-band .rb-podium--steps{gap:10px;padding:26px 22px 0;background:linear-gradient(180deg,var(--bg,#fff),color-mix(in srgb,var(--text,#1a1a1f) 3%,var(--bg,#fff)))}
#ranked-band .rb-podium--steps .rb-pod{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
#ranked-band .rb-podium--steps .rb-pod:hover{transform:none;box-shadow:none}
#ranked-band .rb-podium--steps .rb-pod:hover .rb-ava{transform:translateY(-3px)}
#ranked-band .rb-podium--steps .rb-ava.rb-ava--pod{width:64px;height:64px;border:0;box-shadow:0 0 0 3px var(--bg,#fff),0 6px 16px -6px rgba(0,0,0,.3);transition:transform .2s ease}
#ranked-band .rb-podium--steps .rb-pod--1 .rb-ava.rb-ava--pod{width:84px;height:84px;box-shadow:0 0 0 3px var(--bg,#fff),0 0 0 6px #d99a1c,0 10px 24px -8px rgba(217,154,28,.6)}
#ranked-band .rb-podium--steps .rb-pod-nm{margin-top:10px;font-size:.98rem}
#ranked-band .rb-podium--steps .rb-pod-val{font-size:1.2rem;color:var(--text-dim,#4b443d)}
#ranked-band .rb-podium--steps .rb-pod-val small{display:none}
#ranked-band .rb-podium--steps .rb-pod--1 .rb-pod-val{font-size:1.45rem;color:var(--accent-solid,#b91c1c)}
#ranked-band .rb-podium--steps .rb-pod-stats{font-size:.76rem}
#ranked-band .rb-podium--steps .rb-pod-step{margin:10px 0 0;width:100%;border-radius:12px 12px 0 0;font-family:var(--font-mono);font-size:1.7rem;font-weight:700;color:#fff;text-shadow:0 2px 0 rgba(0,0,0,.15);box-shadow:none}
#ranked-band .rb-podium--steps .rb-pod--1 .rb-pod-step{height:84px;font-size:1.9rem;color:#fff;background:linear-gradient(180deg,#f5c451,#d99a1c);box-shadow:none}
#ranked-band .rb-podium--steps .rb-pod--2 .rb-pod-step{height:58px;background:linear-gradient(180deg,#c3cad6,#8a94a6)}
#ranked-band .rb-podium--steps .rb-pod--3 .rb-pod-step{height:42px;background:linear-gradient(180deg,#e2a26b,#b8692b)}
#ranked-band .rb-pod-you{position:absolute;top:-10px;left:50%;transform:translateX(-50%);z-index:2;padding:2px 8px;border-radius:999px;background:var(--accent-solid,#b91c1c);color:#fff;font-size:.66rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}

/* ── Rows ─────────────────────────────────────────────────────────── */
#ranked-band .rb-board .rb-row{grid-template-columns:44px 52px minmax(0,1fr) auto}
#ranked-band .rb-row .rb-pts{display:flex;align-items:center;gap:14px}
#ranked-band .rb-metric-value{text-align:right;min-width:3.2em}
#ranked-band .rb-chal-link{font-size:.8rem;font-weight:700;color:var(--accent-solid,#b91c1c);text-decoration:none;opacity:0;transition:opacity .14s ease}
#ranked-band .rb-row:hover .rb-chal-link,#ranked-band .rb-chal-link:focus-visible{opacity:1}
@media(hover:none){#ranked-band .rb-chal-link{display:none}}
#ranked-band .rb-dim{color:var(--text-dim,#4b443d)}

/* ── Your spot ────────────────────────────────────────────────────── */
body #ranked-band .rb-board .rb-row--me,body #ranked-band .rb-board .rb-row--me:hover{margin:6px 0;padding:12px 10px;border:1.5px solid color-mix(in srgb,var(--accent-solid,#b91c1c) 32%,transparent);border-radius:14px;background:color-mix(in srgb,var(--accent-solid,#b91c1c) 6%,var(--bg,#fff))}
#ranked-band .rb-row--me .rb-rk,#ranked-band .rb-row--me .rb-metric-value{color:var(--accent-solid,#b91c1c)}
#ranked-band .rb-row--me .rb-ava{box-shadow:0 0 0 2px var(--bg,#fff),0 0 0 4px var(--accent-solid,#b91c1c)}
#ranked-band .rb-board .rb-row--mestrip{display:block;margin:8px 10px}
#ranked-band .rb-pod--me .rb-pod-nm{color:var(--accent-solid,#b91c1c)}
#ranked-band .rb-mebar{grid-column:2 / -1;display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:4px}
#ranked-band .rb-mebar-track{flex:1 1 140px;height:6px;border-radius:6px;overflow:hidden;background:color-mix(in srgb,var(--accent-solid,#b91c1c) 16%,transparent)}
#ranked-band .rb-mebar-track i{display:block;height:100%;border-radius:6px;background:var(--accent-solid,#b91c1c)}
#ranked-band .rb-mebar-txt{font-size:.82rem;font-weight:650;color:var(--accent-solid,#b91c1c);white-space:nowrap}
#ranked-band .rb-mebar-btn{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 16px;border:0;border-radius:999px;background:var(--accent-solid,#b91c1c);color:#fff;font:inherit;font-size:.82rem;font-weight:700;text-decoration:none;white-space:nowrap;cursor:pointer}
#ranked-band .rb-mebar-btn:hover{background:#991b1b}
body #ranked-band .rb-board .rb-row--meghost{margin:6px 0;border:1.5px dashed var(--border-strong,rgba(0,0,0,.2));border-radius:14px;cursor:default}
body #ranked-band .rb-board .rb-row--meghost:hover{background:transparent}
#ranked-band .rb-gapline{height:14px;margin:0 22px;background:radial-gradient(circle,var(--text-dim,#8a8178) 1.3px,transparent 1.6px) center/12px 6px repeat-x;opacity:.5}

/* ── Live round card (above the globe) ────────────────────────────── */
.rb-live{width:100%;margin-bottom:18px;padding:14px;border:1px solid var(--border,rgba(0,0,0,.1));border-radius:18px;background:var(--bg,#fff);color:var(--text,#1a1a1f);text-align:left}
.rb-live[hidden]{display:none}
.rb-live-hd{display:flex;align-items:center;gap:10px;font-size:.8rem;color:var(--text-dim,#4b443d)}
.rb-live-pill{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border-radius:6px;background:var(--accent-solid,#b91c1c);color:#fff;font-size:.68rem;font-weight:800;letter-spacing:.08em}
.rb-live-pill i{width:7px;height:7px;border-radius:50%;background:#fff;animation:rbLivePulse 1.4s ease-in-out infinite}
@keyframes rbLivePulse{50%{opacity:.25}}
.rb-live-mute{margin-left:auto;display:grid;place-items:center;width:36px;height:36px;flex:none;padding:0;border:1px solid var(--border-strong,rgba(0,0,0,.2));border-radius:50%;background:transparent;color:var(--text,#1a1a1f);cursor:pointer}
.rb-live-mute:hover{background:color-mix(in srgb,var(--text,#1a1a1f) 6%,transparent)}
.rb-live-mute svg{width:18px;height:18px}
.rb-live-mute[aria-pressed="true"]{border-color:var(--accent-solid,#b91c1c);background:var(--accent-solid,#b91c1c);color:#fff}
.rb-live-mute.is-busy{opacity:.6;cursor:progress}
.rb-live-motion{margin:10px 0;font-size:1rem;font-weight:700;line-height:1.3}
.rb-live-screen{position:relative;overflow:hidden;aspect-ratio:16/9;border-radius:12px;background:#151519}
.rb-live-screen img{display:block;width:100%;height:100%;object-fit:cover}
.rb-live-tiles{position:absolute;inset:0;display:grid;grid-template-columns:1fr 1fr;gap:4px}
.rb-live-tiles span{display:flex;flex-direction:column;justify-content:flex-end;gap:2px;min-width:0;padding:10px;background:#29282e;color:#fff;font-size:.8rem;font-weight:600;overflow-wrap:anywhere}
.rb-live-tiles b{font-size:.62rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#86efac}
.rb-live-tiles span+span b{color:#fca5a5}
.rb-live-note{min-height:1em;margin:8px 0 0;font-size:.76rem;color:var(--text-dim,#4b443d)}
.rb-live-note:empty{display:none}
.rb-live-go{display:flex;align-items:center;justify-content:center;margin-top:12px;min-height:44px;border-radius:999px;background:var(--accent-solid,#b91c1c);color:#fff;font-weight:700;text-decoration:none}
.rb-live-go:hover{background:#991b1b}
.rb-globe--live .rb-globe-canvas-wrap{max-width:240px;min-height:180px}

/* ── Compact (2026-11-01, Aidan: "make this smaller - take up less
   space - make it maybe the top 5"). The podium sits in a centred band
   instead of spanning the whole card, with small faces and short steps,
   and the rows under it are tighter. ─────────────────────────────── */
#ranked-band .rb-podium--steps{gap:8px;padding:16px max(16px,calc(50% - 300px)) 0}
#ranked-band .rb-podium--steps .rb-ava.rb-ava--pod{width:44px;height:44px;box-shadow:0 0 0 2px var(--bg,#fff),0 4px 10px -5px rgba(0,0,0,.3)}
#ranked-band .rb-podium--steps .rb-pod--1 .rb-ava.rb-ava--pod{width:56px;height:56px;box-shadow:0 0 0 2px var(--bg,#fff),0 0 0 4px #d99a1c,0 6px 14px -6px rgba(217,154,28,.6)}
#ranked-band .rb-podium--steps .rb-pod-nm{margin-top:6px;font-size:.86rem}
#ranked-band .rb-podium--steps .rb-pod-val{font-size:.98rem}
#ranked-band .rb-podium--steps .rb-pod--1 .rb-pod-val{font-size:1.12rem}
#ranked-band .rb-podium--steps .rb-pod-stats{font-size:.7rem}
#ranked-band .rb-podium--steps .rb-pod-step{display:flex;align-items:center;justify-content:center;margin-top:6px;padding:0;border-radius:8px 8px 0 0;font-size:.92rem;line-height:1}
#ranked-band .rb-podium--steps .rb-pod--1 .rb-pod-step{height:38px;font-size:1.05rem}
#ranked-band .rb-podium--steps .rb-pod--2 .rb-pod-step{height:28px}
#ranked-band .rb-podium--steps .rb-pod--3 .rb-pod-step{height:22px}
#ranked-band .rb-board .rb-row{min-height:54px;padding:6px 10px;gap:12px;grid-template-columns:32px 40px minmax(0,1fr) auto}
#ranked-band .rb-board .rb-ava{width:40px;height:40px}
#ranked-band .rb-board .rb-nm{font-size:.94rem}
#ranked-band .rb-board .rb-metric-value{font-size:1.04rem}

@media(max-width:760px){
  #ranked-band .rb-podium--steps{padding:14px 8px 0;gap:6px}
  #ranked-band .rb-podium--steps .rb-ava.rb-ava--pod{width:40px;height:40px}
  #ranked-band .rb-podium--steps .rb-pod--1 .rb-ava.rb-ava--pod{width:50px;height:50px}
  #ranked-band .rb-podium--steps .rb-pod-nm{font-size:.8rem}
  #ranked-band .rb-podium--steps .rb-pod-stats{display:none}
  #ranked-band .rb-podium--steps .rb-pod--1 .rb-pod-step{height:30px}
  #ranked-band .rb-podium--steps .rb-pod--2 .rb-pod-step{height:24px}
  #ranked-band .rb-podium--steps .rb-pod--3 .rb-pod-step{height:20px}
  #ranked-band .rb-board .rb-row{grid-template-columns:26px 36px minmax(0,1fr) auto;min-height:50px;padding:6px}
  #ranked-band .rb-board .rb-ava{width:36px;height:36px}
  #ranked-band .rb-mebar{grid-column:1 / -1}
  #ranked-band .rb-mebar-txt{white-space:normal}
  #ranked-band .rb-mebar-btn{margin-left:auto}
}
@media(prefers-reduced-motion:reduce){
  .rb-live-pill i{animation:none}
  #ranked-band .rb-podium--steps .rb-ava.rb-ava--pod{transition:none}
}

/* Tighter still (2026-11-01, Aidan: "lets shrink the size of the
   leaderboard so it takes up less space too"). Measured on production at
   1440: the board column 779px -> 622px, the section 825px -> 668px.
   Each row's record sits on the name line instead of under it, faces and
   podium steps are smaller, and the podium drops its record line. The
   !important beats homepage-design.css, which sizes these rows too. */
#ranked-band .rb-podium--steps{padding-top:8px}
#ranked-band .rb-podium--steps .rb-ava.rb-ava--pod{width:36px;height:36px}
#ranked-band .rb-podium--steps .rb-pod--1 .rb-ava.rb-ava--pod{width:46px;height:46px}
#ranked-band .rb-podium--steps .rb-pod-nm{margin-top:4px;font-size:13px!important}
#ranked-band .rb-podium--steps .rb-pod-val{font-size:14px!important}
#ranked-band .rb-podium--steps .rb-pod--1 .rb-pod-val{font-size:16px!important}
#ranked-band .rb-podium--steps .rb-pod-stats{display:none}
#ranked-band .rb-podium--steps .rb-pod-step{margin-top:4px;font-size:.8rem}
#ranked-band .rb-podium--steps .rb-pod--1 .rb-pod-step{height:26px;font-size:.9rem}
#ranked-band .rb-podium--steps .rb-pod--2 .rb-pod-step{height:20px}
#ranked-band .rb-podium--steps .rb-pod--3 .rb-pod-step{height:16px}
#ranked-band .rb-board .rb-row{min-height:0!important;padding:5px 10px!important;gap:10px;grid-template-columns:26px 30px minmax(0,1fr) auto}
#ranked-band .rb-board .rb-ava{width:30px;height:30px}
#ranked-band .rb-board .rb-rk{font-size:15px!important}
#ranked-band .rb-board .rb-who{display:flex!important;flex-direction:row!important;align-items:baseline;gap:10px;min-width:0}
#ranked-band .rb-board .rb-nm{font-size:15px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#ranked-band .rb-board .rb-meta{font-size:12px!important;white-space:nowrap}
#ranked-band .rb-board .rb-pts,#ranked-band .rb-board .rb-chal-link,#ranked-band .rb-board .rb-metric-value{font-size:13px!important}
@media(max-width:760px){
  #ranked-band .rb-board .rb-who{flex-wrap:wrap;row-gap:0}
  #ranked-band .rb-board .rb-row{grid-template-columns:24px 30px minmax(0,1fr) auto}
}
