/*
  VOICE   a fantasy draft broadcast: night on the Rift, gold trim, blue side vs red side
  IDEA    champ select reimagined as a lane-by-lane face-off: your three candidates (blue side)
          face the enemy pick (red side, shown in splash art) across the river
  PICTURE the board; enemy splash art; after lock-in, a Victory/Defeat banner and the 243-draft histogram
  COLOUR  deep night navy, aged gold for trim and "best", azure for your side, crimson for theirs
  TYPE    Cinzel for titles and banners, Barlow Condensed for names and numbers, Barlow for text
  NOTE    original frames and icons; no Riot fonts, logos or client UI textures (Riot's API policy)
*/
:root {
  color-scheme: dark;
  --bg: #070d14;
  --bg-2: #0a1520;
  --panel: #0e1a26;
  --panel-2: #0b141e;
  --raise: #132232;
  --line: #24384a;
  --line-2: #33495e;
  --ink: #efe6d2;
  --muted: #93a3b1;
  --gold: #d6ac55;
  --gold-hi: #f2d491;
  --gold-lo: #7d5e27;
  --blue: #4fb0ff;
  --blue-hi: #9ad3ff;
  --blue-deep: #0f3557;
  --red: #ec5156;
  --red-deep: #3e1014;
  --river: #0a2230;
  --g1: #33b16c; --g2: #e3b341; --g3: #df4f4c;
  --cond: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --brk: linear-gradient(var(--gold), var(--gold));
  --cut: 10px;
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

* { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { position: relative; margin: 0; min-height: 100vh; color: var(--ink); font: 16px/1.55 Barlow, system-ui, -apple-system, 'Segoe UI', sans-serif; overflow-x: clip;
  background: radial-gradient(120% 70% at 50% -10%, #12304a 0%, transparent 60%), radial-gradient(90% 60% at 50% 110%, #1a0d12 0%, transparent 60%), var(--bg); }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .08;
  background: url(../img/rift.webp) center 40% / min(1100px, 150vw) no-repeat; filter: saturate(.6); }
a { color: var(--gold-hi); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; text-wrap: balance; margin: 0; letter-spacing: .01em; }

/* corner-bracket frame used on panels */
.board-wrap, .result, .round, .dlg, .lockbar {
  background:
    var(--brk) top left / 14px 2px no-repeat, var(--brk) top left / 2px 14px no-repeat,
    var(--brk) top right / 14px 2px no-repeat, var(--brk) top right / 2px 14px no-repeat,
    var(--brk) bottom left / 14px 2px no-repeat, var(--brk) bottom left / 2px 14px no-repeat,
    var(--brk) bottom right / 14px 2px no-repeat, var(--brk) bottom right / 2px 14px no-repeat,
    linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
}

/* ---------- header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px max(4vw, 16px); background: linear-gradient(180deg, #0c1824, #08111a); border-bottom: 1px solid var(--gold-lo); box-shadow: 0 1px 0 rgb(214 172 85 / .15); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.mark { flex: none; width: 43px; height: 36px; filter: drop-shadow(0 0 8px rgb(214 172 85 / .25)); }
.brand-text { display: flex; align-items: center; gap: 12px; }
.brand-name { font: 700 26px/1 var(--display); letter-spacing: .03em; color: var(--gold-hi); }
.brand-tag { padding: 3px 0 3px 12px; border-left: 1px solid var(--gold-lo); font: 700 14px/1 var(--cond); letter-spacing: .22em; text-transform: uppercase; color: var(--ink); opacity: .85; white-space: nowrap; }
.tools { display: flex; gap: 4px; }
.tool { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid transparent; background: transparent; cursor: pointer; font: 600 15px/1 var(--cond); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tool:hover { color: var(--gold-hi); border-color: var(--gold-lo); }
.tool svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tool svg circle[r="1.3"], .tool svg circle[r=".6"] { fill: currentColor; }
.tool.on { color: var(--gold-hi); border-color: var(--gold); background: rgb(214 172 85 / .08); }
@media (max-width: 640px) {
  .tool span { display: none; } .tool { padding: 0 10px; }
  .mark { width: 38px; height: 32px; }
  .brand-text { flex-direction: column; align-items: flex-start; gap: 4px; }
  .brand-name { font-size: 23px; }
  .brand-tag { padding: 0; border-left: 0; font-size: 10.5px; letter-spacing: .2em; }
}

main { max-width: 1080px; margin: 0 auto; padding: 0 max(3vw, 12px) 24px; }

/* ---------- intro ---------- */
.intro { padding: clamp(22px, 4vw, 40px) 4px clamp(14px, 2.5vw, 22px); }
.tag { display: inline-flex; gap: 8px; align-items: center; margin: 0 0 12px; padding: 4px 12px; border: 1px solid var(--gold-lo); background: rgb(214 172 85 / .07); font: 600 15px/1.3 var(--cond); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tag b { color: var(--gold-hi); }
.intro h1 { font-size: clamp(30px, 4.6vw, 46px); max-width: 20ch; color: var(--ink); text-shadow: 0 2px 18px rgb(0 0 0 / .6); }
.lede { margin: 12px 0 0; max-width: 62ch; color: var(--muted); font-size: 17px; }
.note { margin: 12px 0 0; display: inline-flex; gap: 8px; align-items: baseline; font-size: 14px; color: var(--muted); }
.note::before { content: ''; width: 7px; height: 7px; transform: rotate(45deg) translateY(-1px); background: var(--gold); flex: none; }

/* ---------- round selector ---------- */
.rounds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; scroll-margin-top: 12px; }
.round { position: relative; display: grid; gap: 4px; justify-items: start; min-height: 66px; padding: 10px 16px; cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s; }
.round:hover:not(:disabled) { border-color: var(--gold-lo); }
.round b { font: 700 18px/1 var(--display); color: var(--ink); }
.round .meta { display: inline-flex; align-items: center; gap: 7px; font: 600 14px/1 var(--cond); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.round .st { font: 700 15px/1 var(--cond); letter-spacing: .04em; color: var(--muted); }
.round.done .st { color: var(--gold-hi); }
.round[aria-current="step"] { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset, 0 0 22px -8px var(--blue); }
.round[aria-current="step"] .st { color: var(--blue-hi); }
.round:disabled { opacity: .45; cursor: not-allowed; }
.lvl { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.lvl i { width: 4px; background: var(--line-2); }
.lvl i:nth-child(1) { height: 5px; } .lvl i:nth-child(2) { height: 8px; } .lvl i:nth-child(3) { height: 12px; }
.lvl i.on { background: var(--gold); }
@media (max-width: 480px) { .round { padding: 9px 11px; min-height: 62px; } .round b { font-size: 15px; } .round .meta { font-size: 12px; } }

/* the daily bracket: three series and the trophy, joined by a gold line as you advance */
.rounds.bracket { grid-template-columns: repeat(3, minmax(0, 1fr)) 76px; gap: 14px; }
.round b .sm { display: none; }
.round .meta { max-width: 100%; }
.round .vs { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-transform: none; letter-spacing: .02em; }
.bracket .round::after, .bracket .round::before { content: ''; position: absolute; top: 50%; right: -15px; width: 14px; height: 2px; background: var(--line-2); }
.bracket .round::before { display: none; }
.bracket .round.won::after { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.round.won .st { color: var(--gold-hi); }
.round.lost { border-color: rgb(236 81 86 / .55); }
.round.lost .st { color: #ff8a8e; }
.round.out .st { color: var(--muted); text-decoration: line-through; }
.cup { display: grid; place-items: center; align-content: center; gap: 2px; border: 1px solid var(--line); background: radial-gradient(circle at 50% 40%, #142536, var(--panel-2)); color: var(--muted);
  font: 700 12px/1 var(--cond); letter-spacing: .12em; text-transform: uppercase; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.cup svg { width: 34px; height: 34px; }
.cup .cup-body { fill: #2a3a4b; } .cup .cup-arm { fill: none; stroke: #2a3a4b; stroke-width: 2.6; stroke-linecap: round; } .cup .cup-gem { fill: #3c536a; }
.cup.won { cursor: pointer; border-color: var(--gold); color: var(--gold-hi); background: radial-gradient(circle at 50% 40%, rgb(242 212 145 / .25), var(--panel-2) 70%); box-shadow: 0 0 24px -6px var(--gold); }
.cup.won .cup-body { fill: var(--gold); } .cup.won .cup-arm { stroke: var(--gold-hi); } .cup.won .cup-gem { fill: var(--blue); }
.cup.won svg { animation: cupglow 2.4s ease-in-out infinite; }
@keyframes cupglow { 50% { filter: drop-shadow(0 0 6px rgb(242 212 145 / .8)); transform: translateY(-1px); } }
@media (max-width: 640px) {
  .rounds.bracket { grid-template-columns: repeat(3, minmax(0, 1fr)) 50px; gap: 10px; }
  .bracket .round::after { right: -11px; width: 10px; }
  .round b .lg { display: none; } .round b .sm { display: inline; }
  .round .lvl { display: none; }
  .round .st .pc { display: none; }
  .cup span { display: none; } .cup svg { width: 30px; height: 30px; }
}

/* ---------- board ---------- */
.board-wrap { overflow: hidden; box-shadow: 0 24px 60px -30px rgb(0 0 0 / .9); }
.board-head, .lane { display: grid; grid-template-columns: minmax(0, 1fr) 78px minmax(170px, 236px); }
.board-head { font: 700 14px/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid var(--gold-lo); }
.board-head span { padding: 12px 18px; }
.side-b { color: var(--blue-hi); background: linear-gradient(90deg, rgb(79 176 255 / .14), transparent); }
.side-l { text-align: center; color: var(--gold); background: var(--river); padding-inline: 0 !important; }
.side-r { color: #ff9a9d; background: linear-gradient(270deg, rgb(236 81 86 / .18), transparent); text-align: right; }
.loading { padding: 40px; text-align: center; color: var(--muted); }

.lane { border-top: 1px solid var(--line); }
.lane:first-child { border-top: 0; }
.mine { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 12px; background: linear-gradient(90deg, rgb(79 176 255 / .07), transparent 75%); }
.river { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--gold); font: 700 14px/1 var(--cond); letter-spacing: .12em;
  background: linear-gradient(180deg, #0b2736, #08202c 50%, #0b2736); border-inline: 1px solid rgb(214 172 85 / .18); }
.river svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-linecap: square; stroke-linejoin: miter; }
.river svg .dim { opacity: .35; stroke-width: 1.5; }
.river svg .hl { stroke-width: 3.2; }
.river svg .fill { fill: currentColor; stroke: none; }

.foe { position: relative; display: flex; align-items: flex-end; justify-content: flex-end; gap: 10px; padding: 12px 16px; overflow: hidden; background: var(--red-deep); isolation: isolate; text-align: right; }
.foe .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 25%; z-index: -2; transition: transform .6s ease; }
.foe::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(20 4 8 / .9) 0%, rgb(20 4 8 / .35) 55%, rgb(60 10 16 / .15) 100%), linear-gradient(0deg, rgb(12 3 6 / .85) 0%, transparent 60%); }
.foe::after { content: ''; position: absolute; inset: 0 0 0 auto; width: 3px; background: var(--red); box-shadow: 0 0 12px var(--red); }
.lane:hover .foe .art { transform: scale(1.04); }
.foe .portrait { --ps: 40px; box-shadow: 0 0 0 1px var(--red), 0 2px 8px rgb(0 0 0 / .7); order: 2; }
.foe .nm { font: 700 21px/1.05 var(--cond); letter-spacing: .02em; text-shadow: 0 2px 6px rgb(0 0 0 / .9); }

/* champion option cards: chamfered frame drawn as an outer clip + inner face */
.opt { --edge: var(--line-2); --face: linear-gradient(180deg, #13212f, #0c1621);
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 9px; border: 0; cursor: pointer; text-align: center; background: var(--edge);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); transition: transform .12s, filter .12s; }
.opt::before { content: ''; position: absolute; inset: 1.5px; z-index: 0; background: var(--face);
  clip-path: polygon(calc(var(--cut) - .6px) 0, 100% 0, 100% calc(100% - var(--cut) + .6px), calc(100% - var(--cut) + .6px) 100%, 0 100%, 0 calc(var(--cut) - .6px)); }
.opt > * { position: relative; z-index: 1; }
.opt:hover:not([disabled]) { --edge: var(--gold-lo); transform: translateY(-1px); }
.opt:focus-visible { outline: none; --edge: var(--gold-hi); }
.opt .nm { font: 700 18px/1.05 var(--cond); letter-spacing: .02em; }
.opt.sel { --edge: var(--blue); --face: linear-gradient(180deg, #123e63, #0b2238); filter: drop-shadow(0 0 10px rgb(79 176 255 / .35)); }
.opt.sel .portrait { box-shadow: 0 0 0 2px var(--blue), 0 0 14px rgb(79 176 255 / .5); }
.opt.sel::after { content: ''; position: absolute; z-index: 2; top: 8px; left: 12px; width: 18px; height: 18px; transform: rotate(45deg); background: var(--blue); box-shadow: 0 0 8px var(--blue); }
.opt[disabled] { cursor: default; }
.locked .opt:not(.sel):not(.best) { filter: saturate(.4) brightness(.7); }
.opt.best { --edge: var(--gold); filter: drop-shadow(0 0 10px rgb(214 172 85 / .35)); }
.opt.best:not(.sel) { --face: linear-gradient(180deg, #2a2413, #15120b); }
.opt.best.sel { --edge: var(--gold); }
.opt .flag { position: absolute; top: 7px; right: 7px; padding: 1px 7px; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #1d1405; font: 700 12px/1.5 var(--cond); letter-spacing: .1em; text-transform: uppercase; }
.opt .pct { font: 700 16px/1 var(--cond); color: var(--muted); }
.opt.sel .pct { color: var(--blue-hi); } .opt.best .pct { color: var(--gold-hi); }

.portrait { --ps: 62px; position: relative; flex: none; width: var(--ps); height: var(--ps); overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(150deg, hsl(var(--h) 45% 40%), hsl(calc(var(--h) + 35) 45% 20%)); box-shadow: 0 0 0 1px var(--gold-lo), 0 2px 8px rgb(0 0 0 / .6); }
.portrait .mono { font: 700 calc(var(--ps) * .38)/1 var(--cond); color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / .35); }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); }

@media (max-width: 640px) {
  .board-head { display: none; }
  .lane { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "river foe" "mine mine"; }
  .river { grid-area: river; flex-direction: row; padding: 8px 12px; gap: 6px; border-inline: 0; }
  .river svg { width: 22px; height: 22px; }
  .foe { grid-area: foe; align-items: center; justify-content: flex-start; min-height: 58px; padding: 8px 12px; text-align: left; }
  .foe .art { object-position: 50% 22%; }
  .foe::before { background: linear-gradient(90deg, rgb(20 4 8 / .85), rgb(20 4 8 / .35)); }
  .foe .portrait { --ps: 36px; order: 0; }
  .foe .nm { font-size: 18px; }
  .foe .nm::before { content: 'vs '; color: #ff9a9d; }
  .mine { grid-area: mine; gap: 8px; padding: 10px; }
  .opt .portrait { --ps: 52px; }
  .opt .nm { font-size: 16px; }
}

/* ---------- lock bar ---------- */
.lockbar { position: sticky; bottom: 8px; z-index: 5; display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 12px 14px; backdrop-filter: blur(10px); box-shadow: 0 10px 30px -10px rgb(0 0 0 / .8); }
.lockbar[hidden] { display: none; }
.pips { display: flex; gap: 6px; }
.pips i { width: 12px; height: 12px; transform: rotate(45deg); border: 1px solid var(--line-2); background: var(--panel-2); transition: background .15s, box-shadow .15s; }
.pips i.on { background: var(--blue); border-color: var(--blue-hi); box-shadow: 0 0 8px var(--blue); }
.count { flex: 1; color: var(--muted); font-size: 15px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 1px solid var(--gold-lo); background: linear-gradient(180deg, #13212f, #0c1621); color: var(--ink);
  font: 700 16px/1 var(--cond); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; text-decoration: none;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.btn:hover:not(:disabled) { border-color: var(--gold); color: var(--gold-hi); }
.btn.primary { border: 0; color: #1d1405; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, #a87d33); box-shadow: inset 0 1px 0 rgb(255 255 255 / .35); }
.btn.primary:hover:not(:disabled) { color: #1d1405; filter: brightness(1.08); }
.btn:disabled { opacity: .4; cursor: not-allowed; filter: grayscale(.6); }
.btn.wide { width: 100%; margin-top: 18px; }
@media (max-width: 480px) { .pips { display: none; } .lockbar { gap: 10px; } .btn { padding: 0 16px; } }

/* ---------- result ---------- */
.result { margin-top: 18px; padding: clamp(18px, 3vw, 30px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); animation: rise .35s ease-out; }
.result[hidden] { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 820px) { .result { grid-template-columns: minmax(0, 1fr); } }
.banner { margin: 0; font: 700 clamp(34px, 5vw, 50px)/1 var(--display); letter-spacing: .08em; text-transform: uppercase;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, var(--gold-lo)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 10px rgb(214 172 85 / .25)); }
.banner.defeat { background: linear-gradient(180deg, #ff9a9d, var(--red) 60%, #8e2328); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 2px 10px rgb(236 81 86 / .25)); }
.verdict .kicker, .daysum .kicker { margin: 6px 0 0; font: 600 17px/1.3 var(--cond); letter-spacing: .04em; color: var(--muted); }
.big { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 10px 0 2px; }
.big strong { font: 700 clamp(54px, 8.5vw, 84px)/.95 var(--cond); color: var(--blue-hi); text-shadow: 0 0 24px rgb(79 176 255 / .35); }
.big span { color: var(--muted); }
.big.lost strong { color: #ff9a9d; text-shadow: 0 0 24px rgb(236 81 86 / .3); }
.needline { margin: 0 0 4px; font-size: 16px; color: var(--ink); }
.needline b { font-family: var(--cond); font-size: 19px; color: var(--gold-hi); }
.rankline { margin: 0; font-size: 15px; color: var(--muted); }
.rankline b { font-family: var(--cond); font-size: 18px; color: var(--ink); }
.tienote { margin: 8px 0 0; padding: 8px 12px; border-left: 2px solid var(--gold); background: rgb(214 172 85 / .08); font-size: 14px; color: var(--ink); }
.squares-row { display: flex; gap: 6px; margin: 14px 0 4px; flex-wrap: wrap; }
.squares-row div { display: grid; justify-items: center; gap: 4px; font: 700 12px/1 var(--cond); letter-spacing: .08em; color: var(--muted); }
.sq { display: inline-block; width: 26px; height: 26px; vertical-align: middle; clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px); }
.squares .sq { width: 16px; height: 16px; margin: 0 2px 0 10px; }
.squares .sq:first-child { margin-left: 0; }
.g1 { background: var(--g1); } .g2 { background: var(--g2); } .g3 { background: var(--g3); }

.histo { margin-top: 20px; }
.histo h3, .why h3, .bestdraft h3 { font-size: 17px; margin-bottom: 10px; color: var(--gold-hi); }
.bars { position: relative; display: flex; align-items: flex-end; gap: 3px; height: 92px; padding-top: 22px; border-bottom: 1px solid var(--line); }
.bars i { flex: 1; min-height: 3px; background: var(--line-2); }
.bars i.you { background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.bars i.peak { background: var(--gold); }
.bars i.w { background: rgb(51 177 108 / .55); }
.bars .line50 { position: absolute; top: 18px; bottom: -4px; width: 0; border-left: 2px dashed var(--g1); transform: translateX(-1px); }
.axis { position: relative; }
.axis .w50 { position: absolute; top: 0; transform: translateX(-2px); color: var(--g1); font-weight: 600; white-space: nowrap; }
.bars .marker { position: absolute; top: 0; transform: translateX(-50%); font: 700 13px/1 var(--cond); letter-spacing: .08em; text-transform: uppercase; color: var(--blue-hi); white-space: nowrap; }
.axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 13px; color: var(--muted); }

.bestdraft ul { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 0; }
.bestdraft li { display: grid; justify-items: center; gap: 4px; text-align: center; font: 700 15px/1.1 var(--cond); }
.bestdraft li small { font: 700 11px/1 var(--cond); letter-spacing: .1em; color: var(--muted); }
.bestdraft .portrait { --ps: 52px; }
.bestdraft li.hit .portrait { box-shadow: 0 0 0 2px var(--g1); }
.bestdraft li.miss .portrait { box-shadow: 0 0 0 2px var(--gold); }

.why { margin-top: 22px; }
.why ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.why li { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); }
.why li:last-child { border-bottom: 0; }
.why .v { text-align: right; font: 700 18px/1 var(--cond); font-variant-numeric: tabular-nums; white-space: nowrap; }
.why .v.pos { color: var(--blue-hi); } .why .v.neg { color: #ff8a8e; }
.why .d small { display: block; color: var(--muted); font-size: 13px; }
.why .empty { color: var(--muted); }

.actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); }
.sharebox { grid-column: 1 / -1; width: 100%; min-height: 96px; font: 15px/1.4 ui-monospace, Menlo, monospace; padding: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); }

/* ---------- team composition ---------- */
.comp { margin-top: 22px; }
.comp h3 { font-size: 17px; margin-bottom: 10px; color: var(--gold-hi); }
.comprow { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 6px 10px; align-items: center; padding: 6px 0; }
.comprow .who { font: 700 14px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.comprow:nth-of-type(1) .who { color: var(--blue-hi); }
.comprow:nth-of-type(2) .who { color: #ff9a9d; }
.split { display: flex; height: 20px; overflow: hidden; border: 1px solid var(--line); }
.split i { display: flex; align-items: center; justify-content: center; font: 700 12px/1 var(--cond); font-style: normal; color: #0b0f14; white-space: nowrap; }
.dmg-phys { background: linear-gradient(180deg, #f0a35e, #c7743a); }
.dmg-mag { background: linear-gradient(180deg, #a98cff, #7457d9); }
.chips { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.chips em { padding: 2px 8px; border: 1px solid var(--line-2); font: 600 13px/1.4 var(--cond); font-style: normal; letter-spacing: .04em; color: var(--muted); }
.chips em.low { border-color: var(--red); color: #ff9a9d; }
.chips em.high { border-color: var(--blue); color: var(--blue-hi); }
.legend { display: flex; gap: 16px; margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; display: inline-block; }

/* ---------- day summary ---------- */
.daysum { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 14px 40px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--gold-lo); }
.daysum .big strong { color: var(--ink); text-shadow: none; }
.daysum ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.daysum li { display: grid; grid-template-columns: minmax(0, 1fr) auto 44px 40px; gap: 12px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.daysum li:last-child { border-bottom: 0; }
.daysum li .rk { color: var(--muted); font: 600 15px/1 var(--cond); text-align: right; }
.daysum li b { font: 700 22px/1 var(--cond); text-align: right; font-variant-numeric: tabular-nums; color: var(--gold-hi); }
.daysum li b.l { color: #ff8a8e; }
.daysum.champ .big strong { color: var(--gold-hi); text-shadow: 0 0 24px rgb(214 172 85 / .4); }
.linkish { justify-self: start; padding: 8px 0; min-height: 36px; border: 0; background: none; color: var(--ink); font: 600 16px/1.2 var(--cond); letter-spacing: .04em; cursor: pointer; text-align: left; }
.linkish:hover { color: var(--gold-hi); text-decoration: underline; }
.mini { display: inline-flex; gap: 3px; }
.mini i { width: 15px; height: 15px; clip-path: polygon(3px 0, 100% 0, 100% calc(100% - 3px), calc(100% - 3px) 100%, 0 100%, 0 3px); }
.sumact { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.sumact .next { margin-left: auto; color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.sumact .next b { font-family: var(--cond); font-size: 19px; color: var(--gold-hi); }
@media (max-width: 820px) { .daysum { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .daysum li { grid-template-columns: minmax(0, 1fr) auto 40px; } .daysum li .rk { display: none; } .mini i { width: 12px; height: 12px; } }

/* ---------- ads ---------- */
.ad { margin: 22px auto 0; min-height: 90px; max-width: 728px; display: grid; place-items: center; }
.ad.placeholder { border: 1px dashed var(--line-2); color: var(--muted); font-size: 13px; letter-spacing: .06em; background: rgb(8 15 22 / .6); }
.ad[hidden] { display: none; }

/* ---------- footer ---------- */
.foot { max-width: 1080px; margin: 0 auto; padding: 8px max(3vw, 12px) 40px; color: var(--muted); font-size: 13px; }
.foot p { margin: 12px 0 0; max-width: 80ch; }

/* ---------- dialogs ---------- */
dialog { border: 0; padding: 0; background: transparent; color: var(--ink); width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); }
dialog::backdrop { background: rgb(3 6 10 / .75); backdrop-filter: blur(3px); }
.dlg { position: relative; padding: 26px 24px 22px; box-shadow: 0 30px 80px -20px rgb(0 0 0 / .8); }
.dlg h2 { font-size: 30px; margin-bottom: 12px; color: var(--gold-hi); }
.dlg h3 { font-size: 19px; margin: 20px 0 6px; color: var(--gold-hi); }
.dlg p { margin: 8px 0; }
.dlg .small { font-size: 14px; color: var(--muted); }
.x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); }
.x:hover { color: var(--gold-hi); }
.how { padding-left: 22px; margin: 0; display: grid; gap: 8px; }
.how ::marker { color: var(--gold); font-family: var(--display); }
.statgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; text-align: center; }
.statgrid div { padding: 10px 4px; border: 1px solid var(--line); background: var(--panel-2); }
.statgrid b { display: block; font: 700 32px/1 var(--cond); color: var(--gold-hi); }
.statgrid span { font-size: 13px; color: var(--muted); }
.dist { display: grid; gap: 6px; margin-top: 6px; }
.dist div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; align-items: center; font: 600 15px/1 var(--cond); }
.dist em { display: block; height: 22px; min-width: 26px; padding: 0 8px; background: var(--line-2); font-style: normal; text-align: right; line-height: 22px; }
.dist em.cur { background: var(--blue); color: #04121f; }

/* ---------- the trophy lift ---------- */
dialog.champ { width: min(760px, calc(100vw - 20px)); overflow: auto; }
.champ::backdrop { background: radial-gradient(circle at 50% 35%, rgb(30 60 95 / .7), rgb(2 4 8 / .92)); backdrop-filter: blur(4px); }
.champ-body { position: relative; z-index: 1; padding: 0 0 22px; text-align: center; border: 1px solid var(--gold); background: linear-gradient(180deg, #08121c, #050a10);
  box-shadow: 0 0 0 1px rgb(214 172 85 / .25), 0 40px 120px -20px rgb(0 0 0 / .9), 0 0 80px -20px rgb(214 172 85 / .35); animation: champin .5s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes champin { from { opacity: 0; transform: scale(.92) translateY(10px); } }
.champ .x { z-index: 2; color: var(--gold-hi); }
.scene { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--gold-lo); }
.champ-tag { margin: 16px 0 0; font: 600 14px/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.champ-title { margin: 8px 16px 0; font: 700 clamp(34px, 7vw, 58px)/1 var(--display); letter-spacing: .08em; text-transform: uppercase;
  background: linear-gradient(180deg, #fff3d0, var(--gold-hi) 35%, var(--gold) 65%, var(--gold-lo)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 14px rgb(214 172 85 / .45)); }
.champ-sub { margin: 10px 20px 0; color: var(--ink); font-size: 17px; }
.champ-act { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; padding: 0 16px; }
.champ .sharebox { margin: 14px auto 0; width: calc(100% - 32px); display: block; }
.scene .beams path { transform-origin: 50% 0; transform-box: fill-box; animation: sway 6s ease-in-out infinite alternate; }
.scene .beams path:nth-child(2n) { animation-duration: 7.5s; animation-direction: alternate-reverse; }
@keyframes sway { from { transform: rotate(-4deg); opacity: .7; } to { transform: rotate(4deg); opacity: 1; } }
.scene .sparks path, .scene .leds circle { transform-box: fill-box; transform-origin: center; animation: twinkle 1.8s ease-in-out infinite; }
.scene .sparks path:nth-child(2n) { animation-delay: -.9s; } .scene .sparks path:nth-child(3n) { animation-delay: -.4s; animation-duration: 2.4s; }
@keyframes twinkle { 50% { opacity: .2; transform: scale(.5); } }
.scene .glow { transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .65; transform: scale(.93); } }
.scene .lift { animation: lift 2.6s ease-in-out infinite; }
@keyframes lift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.scene .p1, .scene .p5 { animation: hop 1.3s ease-in-out infinite; }
.scene .p2, .scene .p4 { animation: hop 1.3s ease-in-out -.65s infinite; }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-7px); } }
.scene .glint { transform-box: fill-box; transform-origin: center; animation: twinkle 1.4s ease-in-out infinite; }
.confetti { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -20px; display: block; animation: fall linear infinite; }
@keyframes fall { from { transform: translate3d(0, -20px, 0) rotate(0); } to { transform: translate3d(var(--drift), calc(100dvh + 40px), 0) rotate(var(--spin)); } }
.scene .leds circle:nth-child(2n) { animation: twinkle 1.1s ease-in-out infinite; }
.scene .leds circle:nth-child(3n) { fill: var(--gold-hi); animation: twinkle 1.6s ease-in-out -.5s infinite; }
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 10px 16px; border: 1px solid var(--gold); background: #0c1621; color: var(--gold-hi); font-weight: 600; transition: opacity .2s, transform .2s; z-index: 20; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.fatal { padding: 40px 20px; text-align: center; }
