/* Appknox Sales Championship Season 1 — Appknox brand theme.
   Brand red-orange #FF4D3F and the logo come from appknox.com; typeface Manrope (SIL Open Font Licence, self-hosted). */
@font-face { font-family:'Manrope'; font-style:normal; font-weight:400 800; font-display:swap; src:url(/fonts/manrope-latin.woff2) format('woff2'); }
:root {
  --brand:#FF4D3F; --brand-hover:#E8392C; --brand-soft:#FFF1EF; --brand-ink:#FFFFFF;
  --navy:#0B1020; --navy-2:#161D38;
  --bg:#F4F6FA; --panel:#FFFFFF; --panel-2:#F8F9FC; --ink:#101828; --muted:#5B6475; --line:#E3E7EF;
  --accent:var(--brand); --accent-ink:var(--brand-ink);
  --ok:#12805C; --ok-soft:#E7F6EF; --warn:#A15C00; --warn-soft:#FFF5E5; --bad:#B42318; --bad-strong:#8F1B12; --bad-soft:#FDECEA;
  --t1:#FF4D3F; --t2:#3B6FD8; --t3:#12A594; --pilot:#B42318;
  --shadow:0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08); --shadow-lg:0 20px 48px rgba(11,16,32,.28);
  --radius:12px;
}
@media (prefers-color-scheme: dark) { :root {
  --bg:#0A0E19; --panel:#131A2B; --panel-2:#182035; --ink:#E9EDF5; --muted:#9AA4B8; --line:#26304A;
  --brand-soft:#3A1E1F; --ok:#3CC08F; --ok-soft:#10261F; --warn:#F0A43C; --warn-soft:#2C2112; --bad:#F2675B; --bad-strong:#C93A2E; --bad-soft:#2E1517;
  --t2:#6E9BFF; --t3:#2FC7B3; --shadow:0 1px 2px rgba(0,0,0,.4); } }

* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; font:15.5px/1.5 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; background:var(--bg); color:var(--ink); -webkit-font-smoothing:antialiased; min-height:100vh;
  /* show quiz text exactly as written: no automatic ligatures or substitutions (Manrope would turn “(c)” into “©”) */
  font-variant-ligatures:none; font-feature-settings:'liga' 0, 'clig' 0, 'calt' 0, 'dlig' 0; display:flex; flex-direction:column; }
a { color:var(--brand); }
::selection { background:var(--brand); color:#fff; }

/* test-environment marker (pilot / dry run) */
#banner:not(:empty) { background:repeating-linear-gradient(135deg, #B42318 0 14px, #9F1D14 14px 28px); color:#fff; text-align:center; font-weight:800; font-size:12.5px; padding:6px 12px; letter-spacing:.12em; }
body.pilot { padding-bottom:44px; }
body.pilot::after { content:'PILOT'; position:fixed; right:10px; bottom:10px; background:var(--pilot); color:#fff; font-weight:800; font-size:11px; letter-spacing:.1em; padding:4px 9px; border-radius:6px; z-index:20; pointer-events:none; box-shadow:var(--shadow); }

/* header */
.top { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 20px; background:linear-gradient(90deg, var(--navy), var(--navy-2)); color:#fff; flex-wrap:wrap; border-bottom:3px solid var(--brand); }
.brand { display:flex; align-items:center; gap:12px; flex-wrap:wrap; font-weight:700; }
.brand .logo { height:24px; width:auto; display:block; }
.brand .divider { width:1px; height:22px; background:rgba(255,255,255,.28); }
.brand .title { font-size:17px; letter-spacing:.01em; color:#fff; }
.brand .season { font-size:11.5px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--brand); border:1px solid rgba(255,77,63,.65); background:rgba(255,77,63,.12); padding:3px 9px; border-radius:99px; }
#who { display:flex; align-items:center; gap:10px; color:rgba(255,255,255,.85); }
#who .small { color:rgba(255,255,255,.85); }
.top button.secondary { color:#fff; border-color:rgba(255,255,255,.45); background:transparent; min-height:34px; padding:6px 12px; }
.top button.secondary:hover { background:rgba(255,255,255,.1); border-color:#fff; }

main { width:100%; max-width:1160px; margin:0 auto; padding:20px; flex:1; }
.foot { text-align:center; color:var(--muted); font-size:12.5px; padding:18px 16px 24px; }
.foot b { color:var(--ink); font-weight:700; }

h1 { font-size:24px; font-weight:800; letter-spacing:-.01em; margin:6px 0 14px; }
h2 { font-size:17px; font-weight:800; margin:22px 0 10px; display:flex; align-items:center; gap:8px; }
h2::before { content:''; width:4px; height:18px; border-radius:2px; background:var(--brand); flex:none; }
.modalbox h2::before, .rules h2::before { display:none; }
h3 { font-size:15.5px; font-weight:700; margin:14px 0 6px; }

.card { background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:16px 18px; margin:10px 0; box-shadow:var(--shadow); }
details.card > summary { cursor:pointer; font-weight:700; }
details summary { cursor:pointer; }
.row { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.grid { display:grid; gap:12px; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); }
.grid > .card { margin:0; }
.muted { color:var(--muted); } .small { font-size:13px; } .ok { color:var(--ok); } .bad { color:var(--bad); } .warn { color:var(--warn); }
.card.warn { background:var(--warn-soft); border-color:color-mix(in srgb, var(--warn) 35%, transparent); }
.big { font-size:20px; font-weight:800; }

/* buttons */
button, .btn { font:inherit; font-feature-settings:inherit; font-weight:700; font-size:14.5px; padding:9px 16px; border-radius:10px; border:1px solid var(--accent); background:var(--accent); color:var(--accent-ink); cursor:pointer; min-height:40px; display:inline-flex; align-items:center; justify-content:center; gap:6px; text-decoration:none; transition:background .15s, border-color .15s, box-shadow .15s; }
button:hover, .btn:hover { background:var(--brand-hover); border-color:var(--brand-hover); }
button:focus-visible, .btn:focus-visible, .tabs a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline:none; box-shadow:0 0 0 3px color-mix(in srgb, var(--brand) 35%, transparent); }
button.secondary, .btn.secondary { background:transparent; color:var(--ink); border-color:var(--line); }
button.secondary:hover, .btn.secondary:hover { background:var(--panel-2); border-color:var(--muted); }
button.danger { background:var(--bad-strong); border-color:var(--bad-strong); color:#fff; }
button.danger:hover { background:#6E140D; border-color:#6E140D; }
button:disabled { opacity:.45; cursor:not-allowed; }

/* forms */
input[type=text], input[type=password], textarea, select { font:inherit; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:var(--panel); color:var(--ink); width:100%; transition:border-color .15s, box-shadow .15s; }
input[type=text]:focus, input[type=password]:focus, textarea:focus, select:focus { border-color:var(--brand); }
textarea { min-height:110px; resize:vertical; }
label.opt { display:flex; gap:10px; align-items:flex-start; padding:11px 12px; border:1px solid var(--line); border-radius:10px; margin:6px 0; cursor:pointer; background:var(--panel); transition:border-color .15s, background .15s; }
label.opt:hover { border-color:var(--muted); }
label.opt input { margin-top:3px; width:20px; height:20px; flex:none; accent-color:var(--brand); }
label.opt:has(input:checked) { border-color:var(--brand); background:var(--brand-soft); box-shadow:0 0 0 1px var(--brand) inset; }
input[type=checkbox], input[type=radio] { accent-color:var(--brand); }

/* tabs */
.tabs { display:flex; gap:6px; flex-wrap:wrap; margin:4px 0 14px; padding:5px; background:var(--panel); border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow); }
.tabs a { padding:8px 13px; border-radius:8px; text-decoration:none; color:var(--muted); font-weight:700; font-size:14px; }
.tabs a:hover { color:var(--ink); background:var(--panel-2); }
.tabs a.on { background:var(--brand); color:#fff; }

/* tables */
table { border-collapse:collapse; width:100%; font-size:14px; }
th, td { border-bottom:1px solid var(--line); padding:8px 10px; text-align:left; vertical-align:top; }
th { font-size:12px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); background:var(--panel-2); }
tr:hover > td { background:color-mix(in srgb, var(--panel-2) 70%, transparent); }
.tablewrap { overflow-x:auto; }
.card.tablewrap { padding:6px 8px; }

/* status pills */
.pill { display:inline-block; padding:3px 10px; border-radius:99px; font-size:12px; font-weight:700; border:1px solid var(--line); background:var(--panel-2); color:var(--muted); white-space:nowrap; }
.pill.open { background:var(--ok); color:#fff; border-color:var(--ok); }
.pill.closed { background:var(--muted); color:#fff; border-color:var(--muted); }
.pill.briefing { background:var(--warn); color:#fff; border-color:var(--warn); }

/* timers */
.timer { font-variant-numeric:tabular-nums; font-weight:800; font-size:28px; letter-spacing:.01em; }
.timer.low { color:var(--bad); }
.timerbar { position:sticky; top:0; background:var(--panel); border:1px solid var(--line); border-top:3px solid var(--brand); border-radius:var(--radius); padding:10px 16px; display:flex; justify-content:space-between; align-items:center; z-index:5; box-shadow:var(--shadow); }
.scale button { min-width:46px; } .scale button.sel { outline:3px solid var(--ok); }

/* team accents */
.t1 { border-left:5px solid var(--t1); } .t2 { border-left:5px solid var(--t2); } .t3 { border-left:5px solid var(--t3); }

#toast { position:fixed; bottom:18px; left:50%; transform:translateX(-50%); background:var(--navy); color:#fff; font-weight:600; padding:11px 18px; border-radius:10px; opacity:0; transition:opacity .2s; pointer-events:none; max-width:90vw; box-shadow:var(--shadow-lg); border-left:4px solid var(--brand); z-index:60; }
#toast.show { opacity:.97; }

/* sign-in */
.login { max-width:440px; margin:36px auto; padding:0; overflow:hidden; }
.loginhead { background:linear-gradient(135deg, var(--navy), var(--navy-2)); color:#fff; padding:26px 24px 22px; border-bottom:3px solid var(--brand); }
.loginhead img { height:28px; display:block; margin-bottom:14px; }
.loginhead .t { font-size:21px; font-weight:800; line-height:1.25; }
.loginhead .s { margin-top:8px; display:inline-block; font-size:11.5px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:var(--brand); border:1px solid rgba(255,77,63,.65); background:rgba(255,77,63,.12); padding:3px 10px; border-radius:99px; }
.loginbody { padding:22px 24px 24px; }
.loginbody h1 { font-size:19px; margin:0 0 12px; }
.loginbody label { font-weight:700; font-size:14px; }
.loginbody button { width:100%; margin-top:6px; padding:12px; font-size:15.5px; }

/* rules pop-up + two-stage quiz start */
.modal { position:fixed; inset:0; background:rgba(8,11,22,.62); backdrop-filter:blur(2px); z-index:50; display:flex; align-items:flex-start; justify-content:center; overflow-y:auto; padding:16px; }
.modalbox { background:var(--panel); color:var(--ink); border-radius:16px; padding:20px; width:100%; max-width:640px; margin:auto 0; box-shadow:var(--shadow-lg); border-top:4px solid var(--brand); }
.modalbox button { width:100%; margin-top:10px; padding:14px; font-size:16px; }
.rules h2 { margin-top:0; } .rules dl { margin:0; } .rules dt { font-weight:800; margin-top:12px; font-size:14px; } .rules dd { margin:2px 0 0; color:var(--ink); }
.card.brief { border-color:var(--ok); background:var(--ok-soft); }

/* grouped master scoresheet */
table.master th { text-align:center; white-space:normal; vertical-align:bottom; font-size:11px; text-transform:none; letter-spacing:0; }
table.master th.grp { font-size:12px; text-transform:uppercase; letter-spacing:.08em; border-bottom:2px solid var(--line); color:var(--ink); }
table.master th.grp.gq { box-shadow:inset 0 -3px 0 var(--brand); } table.master th.grp.gw { box-shadow:inset 0 -3px 0 var(--t2); } table.master th.grp.go { box-shadow:inset 0 -3px 0 var(--ok); }
table.master td { text-align:center; } table.master td:first-child { text-align:left; font-weight:700; }
table.master .tot { font-weight:800; } table.master th.gq.tot, table.master th.gw.tot, table.master td.tot { background:color-mix(in srgb, var(--panel-2) 85%, transparent); }
.tag { display:inline-block; font-size:10.5px; font-weight:800; line-height:1; padding:2px 5px; border-radius:4px; border:1px solid var(--warn); color:var(--warn); vertical-align:middle; }
ul.legend { margin:10px 0 0; padding-left:18px; } ul.legend li { margin:3px 0; }
.modalbox.warnbox { border:2px solid var(--bad); border-top-width:5px; } .modalbox.warnbox h2 { color:var(--bad); margin-top:0; }
ul.pendlist { margin:6px 0 10px; padding-left:20px; font-size:17px; } ul.pendlist li { margin:3px 0; }

@media (max-width:600px) {
  main { padding:14px; } .top { padding:10px 14px; } .brand { gap:8px; } .brand .logo { height:20px; } .brand .title { font-size:15px; }
  .timer { font-size:24px; } th, td { padding:6px; } h1 { font-size:21px; } .card { padding:14px; }
}

/* ===== Sales XP League — motorsport-inspired layer (design direction only; no third-party marks) ===== */
.brand .ucd { font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:rgba(255,255,255,.72); }
.livedot { width:9px; height:9px; border-radius:50%; background:#8a93a6; display:inline-block; box-shadow:0 0 0 3px rgba(255,255,255,.08); }
.livedot.on { background:#2fd27a; box-shadow:0 0 0 3px rgba(47,210,122,.25); }
.loginhead .sub { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-top:8px; } .loginhead .sub .s { margin-top:0; }
.loginhead .ucd { font-size:12px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:rgba(255,255,255,.75); }
.grid-lights { display:flex; gap:8px; margin-top:16px; } .grid-lights i { width:14px; height:14px; border-radius:50%; background:#2a1414; box-shadow:inset 0 0 0 2px #3b1d1d; }
#toast.bad { background:var(--bad-strong); border-left-color:#fff; }
.row.between { justify-content:space-between; }
/* hero / race HQ */
.hero { display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; align-items:center; padding:20px 22px; margin:6px 0 14px; border-radius:16px; color:#fff;
  background:linear-gradient(120deg, var(--navy), var(--navy-2)); box-shadow:var(--shadow); position:relative; overflow:hidden; border-left:6px solid var(--brand); }
.hero::after { content:''; position:absolute; right:-40px; top:0; bottom:0; width:220px; opacity:.07; background:repeating-conic-gradient(#fff 0 25%, transparent 0 50%) 0 0 / 28px 28px; }
.hero.t1 { border-left-color:var(--t1); } .hero.t2 { border-left-color:var(--t2); } .hero.t3 { border-left-color:var(--t3); }
.hero h1 { color:#fff; margin:2px 0 8px; } .eyebrow { font-size:11.5px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; color:var(--brand); }
.heroteam { display:flex; gap:8px; flex-wrap:wrap; } .chip, .teamchip { padding:4px 11px; border-radius:99px; font-size:13px; font-weight:700; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.2); }
.teamchip.t1 { background:var(--t1); border-color:var(--t1); } .teamchip.t2 { background:var(--t2); border-color:var(--t2); } .teamchip.t3 { background:var(--t3); border-color:var(--t3); } .chip.gold { background:#c79a1e; border-color:#c79a1e; }
.nextup { background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.14); border-radius:12px; padding:12px 16px; min-width:220px; position:relative; z-index:1; }
.nextup .muted { color:rgba(255,255,255,.65); }
.quizcard { position:relative; padding-left:58px; } .quizcard .qno { position:absolute; left:14px; top:14px; width:32px; height:32px; border-radius:8px; display:grid; place-items:center; font-weight:800; background:var(--panel-2); border:1px solid var(--line); }
.quizcard.open .qno { background:var(--ok); color:#fff; border-color:var(--ok); } .quizcard.briefing .qno { background:var(--warn); color:#fff; border-color:var(--warn); } .quizcard.closed .qno { background:var(--navy-2); color:#fff; }
.livetimer { border-left:4px solid var(--brand); justify-content:space-between; }
/* race board */
.raceboard { display:grid; gap:10px; }
.lane { display:flex; gap:12px; align-items:stretch; background:var(--panel-2); border:1px solid var(--line); border-radius:12px; padding:10px 12px; border-left-width:6px; }
.lane.t1 { border-left-color:var(--t1); } .lane.t2 { border-left-color:var(--t2); } .lane.t3 { border-left-color:var(--t3); }
.lane .pos { font-size:24px; font-weight:800; min-width:54px; display:flex; flex-direction:column; justify-content:center; font-variant-numeric:tabular-nums; }
.lane .tie { font-size:10px; color:var(--warn); letter-spacing:.08em; }
.lanebody { flex:1; min-width:0; } .lanehead { display:flex; justify-content:space-between; gap:8px; } .lanehead .pts { font-weight:800; font-variant-numeric:tabular-nums; }
.track { height:10px; background:var(--line); border-radius:99px; overflow:hidden; margin:7px 0 4px; }
.track .fill { height:100%; border-radius:99px; background:linear-gradient(90deg, var(--brand), #ff8a6b); }
.lane.t2 .fill { background:linear-gradient(90deg, var(--t2), #8fb0ff); } .lane.t3 .fill { background:linear-gradient(90deg, var(--t3), #6fe0cf); }
@media (prefers-reduced-motion: no-preference) { .track .fill { animation:grow .9s ease-out both; } @keyframes grow { from { width:0; } } }
/* tables, scorecard, charts */
table.scorecard td, table.scorecard th { text-align:center; } table.scorecard td:first-child { text-align:left; } table.scorecard .tot { font-weight:800; }
.chartgrid { display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:12px; margin:10px 0; } .chartgrid .card { margin:0; } .chartgrid .wide { grid-column:1 / -1; }
svg.chart { width:100%; height:auto; display:block; } .chart .cl { fill:var(--ink); font-size:13px; font-weight:600; } .chart .cv { fill:var(--muted); font-size:12.5px; font-weight:700; }
.chart .ctrack { fill:var(--line); } .chart .caxis { stroke:var(--line); stroke-width:1.5; } .chart text.small { font-size:11px; }
.legendrow { display:flex; gap:14px; flex-wrap:wrap; font-size:12.5px; color:var(--muted); margin-top:6px; } .legendrow i { display:inline-block; width:10px; height:10px; border-radius:3px; margin-right:5px; vertical-align:middle; }
.na { display:inline-block; font-size:10.5px; font-weight:800; padding:1px 5px; border-radius:4px; background:var(--panel-2); border:1px dashed var(--muted); color:var(--muted); }
.tag.lock { border-color:var(--muted); color:var(--muted); }
/* teams */
.teamgrid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:12px; } .teamcard { border-left-width:6px; margin:0; }
.teamcard.t1 { border-left-color:var(--t1); } .teamcard.t2 { border-left-color:var(--t2); } .teamcard.t3 { border-left-color:var(--t3); }
.teamname { font-size:18px; font-weight:800; } ul.members { list-style:none; padding:0; margin:10px 0 0; } ul.members li { padding:6px 0; border-top:1px solid var(--line); }
/* judge workspace */
.notifs { display:grid; gap:8px; margin:0 0 12px; }
.notif { display:block; text-decoration:none; color:var(--ink); background:var(--brand-soft); border:1px solid color-mix(in srgb, var(--brand) 40%, transparent); border-left:5px solid var(--brand); padding:10px 14px; border-radius:10px; font-size:14px; }
.notif.fresh { box-shadow:0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.tabs.subtabs { background:var(--panel-2); } .tabs.subtabs a .count { display:inline-block; min-width:20px; padding:0 6px; margin-left:4px; border-radius:99px; background:var(--brand); color:#fff; font-size:12px; text-align:center; }
.tabs.subtabs a.done { color:var(--ok); } .tabs.subtabs a.empty { opacity:.6; } .tabs.subtabs a.on .count { background:#fff; color:var(--brand); }
.newdot { display:inline-block; width:8px; height:8px; border-radius:50%; background:#ffb020; margin-left:5px; vertical-align:middle; }
.progress { height:8px; border-radius:99px; background:var(--line); overflow:hidden; margin:8px 0; } .progress > div { height:100%; background:var(--ok); border-radius:99px; }
.task { border-left:5px solid var(--warn); } .task.submitted { border-left-color:var(--t2); } .task.completed { border-left-color:var(--ok); opacity:.92; }
.pill.code { font-family:ui-monospace, SFMono-Regular, Menlo, monospace; } .pill.newpill { background:#ffb020; color:#1a1200; border-color:#ffb020; }
.pill.st-pending { background:var(--warn-soft); color:var(--warn); } .pill.st-submitted { background:color-mix(in srgb, var(--t2) 15%, transparent); color:var(--t2); } .pill.st-completed { background:var(--ok-soft); color:var(--ok); }
.pill.bad { background:var(--bad); color:#fff; border-color:var(--bad); }
.answerbox { white-space:pre-wrap; background:var(--panel-2); border:1px solid var(--line); border-radius:10px; padding:12px; margin:8px 0; }
/* participant quiz */
.card.desc.lockedans { border-color:var(--ok); } .lockbtn { margin-top:6px; }
.raceclock { border-top:4px solid var(--brand); } .clockwrap { display:flex; flex-direction:column; align-items:flex-end; line-height:1.1; } .clockwrap .small { letter-spacing:.14em; font-weight:800; font-size:10.5px; }
.timer.warnzone { color:var(--warn); }
.card.right { border-left:5px solid var(--ok); } .card.wrong { border-left:5px solid var(--bad); }
/* Admin control centre */
.kpis { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:10px; margin:4px 0 6px; }
.kpi { background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:14px 16px; box-shadow:var(--shadow); border-top:3px solid var(--brand); }
.kpi .kv { font-size:26px; font-weight:800; font-variant-numeric:tabular-nums; } .kpi .kl { font-size:12.5px; color:var(--muted); font-weight:700; }
.kpi.alert { border-top-color:var(--bad); } .kpi.alert .kv { color:var(--bad); }
.evgrid { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:10px; } .evcard { margin:0; } .evcard.overdue { border-color:var(--bad); background:var(--bad-soft); }
.evnums { display:flex; flex-wrap:wrap; gap:4px 12px; font-size:13px; margin:6px 0; } tr.overdue td { background:var(--bad-soft); }
.warnbox-lite { border:1px dashed var(--bad); background:var(--bad-soft); }
/* celebrations — short and non-blocking (pointer-events:none) */
.celebrate { position:fixed; left:50%; top:84px; transform:translateX(-50%); z-index:70; pointer-events:none; transition:opacity .5s, transform .5s; }
.celebrate.out { opacity:0; transform:translate(-50%,-10px); }
.cbox { background:var(--navy); color:#fff; border-radius:14px; padding:14px 22px; box-shadow:var(--shadow-lg); border:1px solid rgba(255,255,255,.12); text-align:center; min-width:260px; position:relative; overflow:hidden; }
.cicon { font-size:34px; line-height:1.1; } .ctext { font-weight:800; margin-top:4px; }
.checker { position:absolute; inset:0 0 auto 0; height:10px; background:repeating-conic-gradient(#fff 0 25%, #111 0 50%) 0 0 / 10px 10px; }
@media (prefers-reduced-motion: no-preference) { .celebrate:not(.still) .cicon { animation:wave 1.1s ease-in-out 2; } @keyframes wave { 0%,100% { transform:rotate(0); } 30% { transform:rotate(-14deg); } 60% { transform:rotate(10deg); } }
  .celebrate:not(.still) { animation:pop .35s ease-out; } @keyframes pop { from { transform:translate(-50%,-14px) scale(.96); opacity:0; } } }
.podium { display:flex; align-items:flex-end; justify-content:center; gap:10px; margin:14px 0 6px; }
.podium .step { text-align:center; min-width:96px; } .podium .pname { font-weight:800; } .podium .pblock { margin-top:6px; border-radius:10px 10px 0 0; color:#fff; font-size:20px; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:2px; }
.podium .s1 .pblock { height:110px; background:linear-gradient(180deg,#d9a520,#a87b10); } .podium .s2 .pblock { height:84px; background:linear-gradient(180deg,#9aa3b2,#6f7887); } .podium .s3 .pblock { height:64px; background:linear-gradient(180deg,#c27a3e,#8f5427); }
.celebrate.podium .cbox { min-width:320px; } .finalcard { border-top:4px solid #d9a520; }
/* starting lights — sits above the page; questions only open when the lights go out */
.lights { position:fixed; inset:0; z-index:80; display:grid; place-items:center; background:rgba(6,8,16,.86); backdrop-filter:blur(2px); }
.lbox { text-align:center; color:#fff; padding:24px; } .lname { font-weight:800; font-size:18px; margin-bottom:14px; letter-spacing:.02em; }
.lrow { display:flex; gap:clamp(8px,3vw,18px); justify-content:center; padding:14px 18px; background:#111; border-radius:14px; border:2px solid #2a2a2a; }
.lamp { width:clamp(34px,11vw,58px); height:clamp(34px,11vw,58px); border-radius:50%; background:#2a1010; box-shadow:inset 0 0 0 3px #3a1a1a; transition:background .12s, box-shadow .12s; }
.lamp.on { background:radial-gradient(circle at 35% 35%, #ff8a7a, #e01b0e 60%, #7a0b05); box-shadow:0 0 22px 6px rgba(255,40,20,.55); }
.lights.go .lrow { border-color:#2fd27a; } .lmsg { font-size:clamp(20px,5vw,30px); font-weight:800; margin-top:16px; letter-spacing:.04em; } .lights.go .lmsg { color:#2fd27a; }
.lnote { margin-top:6px; color:rgba(255,255,255,.7); }
.lights.still .lamp { transition:none; } .lights.still .lamp.on { box-shadow:none; }
@media (max-width:600px) { .hero { padding:16px; } .nextup { min-width:0; width:100%; } .lane .pos { min-width:44px; font-size:20px; } .kpi .kv { font-size:22px; } }

/* responsive HTML charts (legible at any width) */
.chartbox.bars { display:grid; gap:9px; }
.barrow { display:grid; grid-template-columns:minmax(90px, 34%) 1fr auto; gap:10px; align-items:center; font-size:13.5px; }
.barrow.slim { grid-template-columns:1fr 44px; gap:8px; font-size:12px; }
.barrow .bl { font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.barrow .bt { display:flex; height:16px; background:var(--line); border-radius:6px; overflow:hidden; }
.barrow.slim .bt { height:10px; } .barrow .bf { height:100%; } .barrow .bf:not(.seg) { border-radius:6px; }
.barrow .bv { font-weight:800; font-variant-numeric:tabular-nums; color:var(--muted); min-width:34px; text-align:right; }
.chartbox.gbars { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px 16px; }
.gblock .gl { font-weight:700; font-size:13px; margin-bottom:5px; } .gblock .barrow { margin:3px 0; }
@media (prefers-reduced-motion: no-preference) { .barrow .bf { animation:grow .8s ease-out both; } }

.livedot.off { background:#e5484d; box-shadow:0 0 0 3px rgba(229,72,77,.25); }
.refreshlbl { color:rgba(255,255,255,.6); font-size:11.5px; font-weight:700; letter-spacing:.04em; white-space:nowrap; }
@media (max-width:600px) { .refreshlbl { display:none; } }
.modalbox.reviewbox { max-width:760px; } .reviewbox h2 { margin-top:0; } .reviewlist { max-height:min(60vh, 560px); overflow:auto; padding-right:4px; margin:8px 0; } .reviewlist .card { margin:8px 0; box-shadow:none; }
