/* Grand Final Tipping — app styles. tokens.css is imported first in every page. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--ground); color: var(--ink);
  font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.hidden { display: none !important; }
.display { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- layout ---------- */
.page { max-width: 480px; margin: 0 auto; padding: 16px 16px 120px; }
.page.wide { max-width: none; padding: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.card { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 20px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 10px 18px; border: 2px solid var(--line-strong); border-radius: var(--r-btn);
  background: var(--card); color: var(--ink); font-weight: 700; text-decoration: none;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.btn:active { transform: translateY(2px); }
.btn.primary {
  width: 100%; min-height: var(--btn-h); border: 0; color: #fff; background: var(--accent);
  box-shadow: var(--shadow-press); font-size: 18px;
}
.btn.primary:active { box-shadow: 0 3px 0 rgba(27,23,38,.18); transform: translateY(5px); }
.btn.primary:disabled { opacity: .5; box-shadow: none; transform: none; cursor: default; }
.btn.ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.danger { background: var(--wrong); color: #fff; border-color: var(--wrong); }
.btn.sm { min-height: 40px; padding: 6px 12px; font-size: 14px; }
.btn.block { width: 100%; }

/* ---------- inputs ---------- */
.input {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 2px solid var(--line); border-radius: var(--r-tile);
  background: var(--card); outline: none;
}
.input:focus { border-color: var(--accent); }
.label { display: block; font-weight: 700; margin: 12px 0 6px; }
.error { color: var(--wrong); font-weight: 600; margin-top: 8px; }
.warn { color: #7a5200; background: #FFF4D6; border-radius: 12px; padding: 8px 12px; margin-top: 8px; font-size: 14px; }

/* ---------- chips / pills ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill);
  font-size: var(--fs-small); font-weight: 700; background: var(--tint-purple); color: var(--ink);
  white-space: nowrap;
}
.chip.lions { background: var(--lions); color: #fff; }
.chip.dockers { background: var(--dockers); color: #fff; }
.chip.points { background: var(--ink); color: #fff; }
.chip.unsure { background: var(--unsure); color: var(--ink); }
.chip.correct { background: var(--correct-tint); color: var(--correct); }
.chip.wrong { background: var(--wrong-tint); color: var(--wrong); }
.pills { display: flex; justify-content: center; gap: 8px; }
.pill { padding: 6px 14px; border-radius: var(--r-pill); color: #fff; font-weight: 800; font-family: var(--font-display); }
.pill.lions { background: var(--lions); } .pill.dockers { background: var(--dockers); }
.pill.v { background: transparent; color: var(--muted); font-family: var(--font-body); font-weight: 600; padding: 6px 0; }

/* ---------- avatar ---------- */
.avatar {
  --size: 44px; --ring: var(--accent);
  width: var(--size); height: var(--size); border-radius: 50%; flex: 0 0 auto; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ring); color: #fff; font-family: var(--font-display); font-weight: 800;
  font-size: calc(var(--size) * 0.42); box-shadow: 0 0 0 3px var(--card), 0 0 0 6px var(--ring);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.pop { animation: pop 420ms var(--ease) both; }
@keyframes pop { from { transform: scale(.2); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } to { transform: scale(1); } }

/* ---------- join ---------- */
.selfie { --size: 118px; margin: 8px auto 12px; }
.selfie-wrap { display: flex; flex-direction: column; align-items: center; }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 6px; }
.swatch {
  position: relative; aspect-ratio: 1; min-height: 44px; border-radius: 14px; border: 3px solid transparent;
  background: var(--c); padding: 0;
}
.swatch[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px #fff inset; }
.swatch.taken { opacity: .32; cursor: not-allowed; }
.swatch .who { position: absolute; left: 0; right: 0; bottom: -18px; font-size: 10px; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.swatches.with-names { row-gap: 26px; }
.custom-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.custom-row input[type="color"] { width: 52px; height: 44px; border: 2px solid var(--line); border-radius: 12px; padding: 2px; background: #fff; }
.sticky-bottom { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--ground) 70%, transparent); }
.sticky-bottom > * { max-width: 448px; margin: 0 auto; }

/* ---------- question flow ---------- */
.dots { display: grid; grid-template-columns: repeat(13, 1fr); gap: 6px; margin: 10px 0 6px; }
.dot { aspect-ratio: 1; border-radius: 50%; border: 0; padding: 0; background: var(--line-strong); min-width: 0; }
.dot.answered { background: var(--ink); }
.dot.unsure { background: var(--unsure); }
.dot.current { box-shadow: 0 0 0 3px var(--card), 0 0 0 6px var(--accent); }
.legend { display: flex; gap: 12px; font-size: 12px; color: var(--muted); margin-bottom: 12px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.qtext { font-size: clamp(24px, 7vw, var(--fs-q)); line-height: 1.15; margin: 12px 0 6px; }
.hint { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.answers { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.opt {
  min-height: 60px; border-radius: var(--r-tile); border: 2px solid var(--line); background: var(--card);
  padding: 12px 16px; text-align: left; font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: space-between;
}
.opt[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.opt.team { color: #fff; border-color: transparent; min-height: 84px; font-family: var(--font-display); font-size: 26px; }
.opt.team.lions { background: var(--lions); } .opt.team.dockers { background: var(--dockers); }
.opt.team[aria-pressed="true"] { box-shadow: 0 0 0 4px var(--card), 0 0 0 8px var(--ink); }
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt .tick { width: 26px; height: 26px; border-radius: 50%; background: var(--card); color: var(--ink); display: none; align-items: center; justify-content: center; }
.opt[aria-pressed="true"] .tick { display: inline-flex; }
.search-results { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; max-height: 300px; overflow: auto; }
.result-row { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 10px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); text-align: left; }
.result-row .dotc { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; }
.result-row .nm { flex: 1; font-weight: 700; }
.chosen { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px; border-radius: var(--r-tile); border: 2px solid var(--accent); background: var(--card); }
.chosen .nm { flex: 1; font-weight: 800; font-size: 18px; }
.actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.actions .btn { flex: 1; }
.btn.unsure-on { background: var(--unsure); border-color: var(--unsure); color: var(--ink); }
.saved { font-size: 12px; color: var(--correct); font-weight: 700; opacity: 0; transition: opacity var(--t-fast); }
.saved.show { opacity: 1; }

/* ---------- sheet ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(27,23,38,.45); z-index: 40; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 88vh; overflow: auto;
  background: var(--card); border-radius: var(--r-card) var(--r-card) 0 0; box-shadow: var(--shadow-sheet);
  padding: 14px 16px calc(20px + env(safe-area-inset-bottom)); animation: sheetUp 240ms var(--ease);
}
.sheet .handle { width: 44px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 0 auto 12px; }
.sheet > * { max-width: 560px; margin-left: auto; margin-right: auto; }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sugg { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sugg .medal { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; flex: 0 0 auto; }
.medal.m1 { background: var(--gold); } .medal.m2 { background: var(--silver); } .medal.m3 { background: var(--bronze); }
.sugg .body { flex: 1; min-width: 0; }
.sugg .reason { color: var(--muted); font-size: 14px; }
.btn.team-lions { background: var(--lions); border-color: var(--lions); color: #fff; }
.btn.team-dockers { background: var(--dockers); border-color: var(--dockers); color: #fff; }

/* ---------- review ---------- */
.review-list { display: flex; flex-direction: column; gap: 8px; }
.review-row { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border-radius: 14px; background: var(--card); border: 2px solid var(--line); text-align: left; }
.review-row .n { width: 30px; font-family: var(--font-display); font-weight: 800; color: var(--muted); }
.review-row .q { flex: 1; min-width: 0; }
.review-row .q .t { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.review-row .q .a { font-weight: 700; }
.review-row.blank { border-color: var(--wrong-tint); }
.review-row.unsure { border-color: var(--unsure); }

/* ---------- scorecard ---------- */
.score-head { background: var(--ink); color: #fff; border-radius: 0 0 var(--r-card) var(--r-card); margin: -16px -16px 16px; padding: 20px 20px 22px; }
.score-head .name { font-weight: 800; font-size: 18px; }
.score-head .sub { color: var(--muted-on-ink); font-size: 14px; }
.live { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); background: rgba(61,220,132,.15); color: var(--live); font-size: 12px; font-weight: 800; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
.bigscore { font-size: var(--fs-score); line-height: 1; margin-top: 12px; }
.rankblock { text-align: right; }
.rankblock .r { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1; }
.rankblock .of { color: var(--muted-on-ink); font-size: 13px; }
.strip { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; margin-top: 16px; }
.strip .t { border-radius: 14px; padding: 10px 12px; color: #fff; display: flex; justify-content: space-between; align-items: baseline; }
.strip .t.lions { background: var(--lions); } .strip .t.dockers { background: var(--dockers); }
.strip .t .nm { font-weight: 800; font-size: 14px; }
.strip .t .sc { font-family: var(--font-display); font-weight: 800; font-size: 24px; }
.strip .t .gb { font-size: 12px; opacity: .8; margin-left: 6px; }
.strip .mid { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 13px; color: var(--muted-on-ink); min-width: 56px; }
.strip .mid b { color: #fff; font-family: var(--font-display); font-size: 18px; }
.picks { display: flex; flex-direction: column; gap: 8px; }
.pick-row { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px; border-radius: 14px; background: var(--card); border: 2px solid var(--line); }
.pick-row.correct { background: var(--correct-tint); border-color: var(--correct); }
.pick-row.wrong { background: var(--wrong-tint); border-color: var(--wrong); }
.pick-row .ico { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; background: var(--line); color: var(--muted); }
.pick-row.correct .ico { background: var(--correct); color: #fff; }
.pick-row.wrong .ico { background: var(--wrong); color: #fff; }
.pick-row .q { flex: 1; min-width: 0; }
.pick-row .q .t { font-size: 13px; color: var(--muted); }
.pick-row .q .a { font-weight: 700; }
.pick-row .q .ans { font-size: 13px; color: var(--muted); }
.pick-row .pts { font-family: var(--font-display); font-weight: 800; font-size: 20px; white-space: nowrap; }
.pick-row.correct .pts { color: var(--correct); } .pick-row.wrong .pts { color: var(--wrong); }

/* ---------- takeover ---------- */
.takeover { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; padding: 24px; text-align: center; animation: takeIn 320ms var(--ease); }
.takeover.correct { background: var(--correct); } .takeover.wrong { background: var(--wrong); } .takeover.none { background: var(--muted); }
@keyframes takeIn { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.takeover .disc { width: 150px; height: 150px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.takeover .disc svg { width: 90px; height: 90px; }
.takeover.correct .disc { color: var(--correct); } .takeover.wrong .disc { color: var(--wrong); } .takeover.none .disc { color: var(--muted); }
.takeover h1 { font-size: clamp(36px, 12vw, var(--fs-hero)); margin: 0 0 8px; line-height: 1; }
.takeover .ans { font-size: 20px; font-weight: 700; opacity: .95; }
.takeover .yours { font-size: 15px; opacity: .8; margin-top: 4px; }
.takeover .plus { font-size: 72px; margin: 14px 0 4px; line-height: 1; }
.takeover .panel { margin-top: 20px; background: rgba(255,255,255,.14); border-radius: var(--r-tile); padding: 12px 20px; display: flex; gap: 24px; }
.takeover .panel div { text-align: center; } .takeover .panel b { display: block; font-family: var(--font-display); font-size: 28px; }
.takeover .panel span { font-size: 13px; opacity: .85; }
.takeover .btn { margin-top: 24px; background: #fff; color: var(--ink); border: 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-pill); font-weight: 700; z-index: 70; box-shadow: var(--shadow-card); max-width: 90vw; }

/* ---------- admin ---------- */
.segmented { display: flex; background: var(--line); border-radius: var(--r-pill); padding: 4px; }
.segmented button { flex: 1; min-height: 40px; border: 0; border-radius: var(--r-pill); background: transparent; font-weight: 700; }
.segmented button[aria-pressed="true"] { background: var(--card); box-shadow: var(--shadow-card); }
.qrow { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 10px 12px; border-radius: 14px; background: var(--card); border: 2px solid var(--line); text-align: left; width: 100%; }
.qrow .n { width: 34px; font-family: var(--font-display); font-weight: 800; color: var(--muted); font-size: 18px; }
.qrow .q { flex: 1; min-width: 0; }
.qrow .q .a { color: var(--correct); font-weight: 700; font-size: 14px; }
.preview { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.preview .pc { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: var(--r-pill); font-size: 13px; font-weight: 700; }
.preview .pc.correct { background: var(--correct-tint); color: var(--correct); } .preview .pc.wrong { background: var(--wrong-tint); color: var(--wrong); } .preview .pc.none { background: var(--line); color: var(--muted); }
.preview .pc .avatar { --size: 22px; box-shadow: none; }
.phase-badge { padding: 4px 12px; border-radius: var(--r-pill); font-weight: 800; font-size: 13px; background: var(--ink); color: #fff; text-transform: uppercase; letter-spacing: .04em; }
.phase-badge.open { background: var(--accent); } .phase-badge.locked { background: var(--lions); } .phase-badge.finished { background: var(--correct); }
.scorebox { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.scorebox .team { border-radius: var(--r-tile); padding: 12px; color: #fff; }
.scorebox .team.lions { background: var(--lions); } .scorebox .team.dockers { background: var(--dockers); }
.scorebox .team .tot { font-family: var(--font-display); font-size: 40px; font-weight: 800; line-height: 1; }
.scorebox .team .gb { opacity: .85; font-size: 14px; }
.scorebox .team .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.scorebox .team .btns .btn { background: rgba(255,255,255,.18); border-color: transparent; color: #fff; min-height: 48px; }
.periods { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.periods .btn { flex: 1 0 auto; min-height: 40px; padding: 6px 10px; }
.player-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.player-row .nm { flex: 1; font-weight: 700; }
.tabs { display: flex; gap: 6px; overflow: auto; padding-bottom: 4px; margin: 12px 0; }
.tabs .btn { flex: 0 0 auto; }
.ms-multi label { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 12px; border: 2px solid var(--line); border-radius: 14px; margin-bottom: 8px; font-weight: 700; }
.ms-multi input { width: 22px; height: 22px; }

/* ---------- dashboard ---------- */
.dash { min-height: 100vh; padding: 24px 32px; display: flex; flex-direction: column; gap: 18px; font-size: 18px; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.dash-head h1 { font-size: 34px; margin: 0; }
.dash-head .strip { margin: 0; min-width: 480px; }
.dash-head .strip .t .sc { font-size: 32px; } .dash-head .strip .t .nm { font-size: 16px; }
.dash-head .strip .mid b { font-size: 22px; } .dash-head .strip .mid { color: var(--muted); } .dash-head .strip .mid b { color: var(--ink); }
.banner { background: var(--correct); color: #fff; border-radius: var(--r-card); padding: 16px 24px; display: flex; align-items: center; gap: 20px; min-height: 84px; }
.banner.idle { background: var(--card); color: var(--muted); box-shadow: var(--shadow-card); }
.banner .qn { font-family: var(--font-display); font-weight: 800; font-size: 28px; white-space: nowrap; }
.banner .txt { flex: 1; min-width: 0; }
.banner .txt .q { font-size: 18px; opacity: .9; }
.banner .txt .a { font-family: var(--font-display); font-weight: 800; font-size: 26px; }
.banner .got { font-weight: 700; white-space: nowrap; }
.banner .avs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 380px; }
.banner .avs .avatar { --size: 36px; box-shadow: 0 0 0 2px #fff; }
.dash-cols { display: grid; grid-template-columns: 55fr 45fr; gap: 20px; flex: 1; min-height: 0; }
.ladder { display: flex; flex-direction: column; gap: 8px; position: relative; }
.lrow { display: grid; grid-template-columns: 56px 60px 1fr 60px 100px; align-items: center; gap: 12px; height: 76px; padding: 0 16px; border-radius: var(--r-tile); background: var(--card); box-shadow: var(--shadow-card); }
.lrow .rk { font-family: var(--font-display); font-weight: 800; font-size: 30px; color: var(--muted); }
.lrow .avatar { --size: 52px; }
.lrow .nm { font-weight: 800; font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow .bar { height: 8px; border-radius: 4px; background: var(--line); margin-top: 6px; overflow: hidden; }
.lrow .bar i { display: block; height: 100%; width: 0; background: var(--c); transition: width var(--t-move) var(--ease); }
.lrow .mv { font-weight: 800; font-size: 18px; text-align: center; }
.lrow .mv.up { color: var(--correct); } .lrow .mv.down { color: var(--wrong); } .lrow .mv.steady { color: var(--line-strong); }
.lrow .pts { font-family: var(--font-display); font-weight: 800; font-size: 34px; text-align: right; }
.grid-card { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.grid-card h2 { font-size: 20px; margin: 0; }
.wpw { border-collapse: separate; border-spacing: 4px; width: 100%; table-layout: fixed; }
.wpw th { padding: 4px 0; }
.wpw th .avatar { --size: 34px; box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ring); margin: 0 auto; }
.wpw th.qh, .wpw td.qh { text-align: left; width: 120px; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wpw td.c { text-align: center; height: 34px; border-radius: 8px; font-weight: 800; font-size: 18px; }
.wpw td.c.ok { background: var(--correct-tint); color: var(--correct); } .wpw td.c.no { background: var(--wrong-tint); color: var(--wrong); } .wpw td.c.blank { background: var(--ground); color: var(--line-strong); }
.upnext { margin-top: auto; border-top: 2px solid var(--line); padding-top: 12px; }
.upnext .q { font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.tally { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.tally .chip { font-size: 15px; }
.qr-hero { flex: 1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
.qr-box { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 32px; text-align: center; justify-self: center; }
.qr-box svg { width: min(420px, 40vh); height: auto; display: block; margin: 0 auto; }
.qr-box .url { font-family: var(--font-display); font-weight: 800; font-size: 26px; margin-top: 18px; word-break: break-all; }
.joined { display: flex; flex-wrap: wrap; gap: 16px; align-content: flex-start; }
.joined .av { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 96px; }
.joined .avatar { --size: 72px; }
.joined .nm { font-weight: 700; font-size: 16px; text-align: center; max-width: 96px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.count { font-size: 34px; }
.podium { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 24px; padding-bottom: 40px; }
.plinth { display: flex; flex-direction: column; align-items: center; gap: 12px; opacity: 0; transform: translateY(30px); transition: all 500ms var(--ease); }
.plinth.show { opacity: 1; transform: none; }
.plinth .avatar { --size: 110px; }
.plinth .nm { font-weight: 800; font-size: 26px; }
.plinth .pts { color: var(--muted); font-weight: 700; }
.plinth .block { width: 220px; border-radius: 20px 20px 0 0; display: flex; align-items: flex-start; justify-content: center; padding-top: 16px; font-family: var(--font-display); font-weight: 800; font-size: 56px; color: #fff; }
.plinth.p1 .block { height: 240px; background: var(--gold); color: var(--ink); } .plinth.p2 .block { height: 170px; background: var(--silver); color: var(--ink); } .plinth.p3 .block { height: 120px; background: var(--bronze); color: var(--ink); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 5; }

@media (max-width: 1100px) {
  .dash { padding: 16px; }
  .dash-cols { grid-template-columns: 1fr; }
  .dash-head { flex-wrap: wrap; } .dash-head .strip { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .avatar.pop, .takeover, .sheet, .plinth { animation: none; transition: none; }
}
