:root {
  --bg: #010a13;
  --bg-2: #06111c;
  --surface: rgba(9, 21, 33, 0.82);
  --surface-solid: #091521;
  --surface-2: #0d1b29;
  --surface-3: #13283a;
  --border: #1e2d3b;
  --border-gold: #463714;
  --text: #f0e6d2;
  --text-2: #c9c3b4;
  --muted: #8f8a7e;
  --faint: #5b5a56;
  --gold: #c8aa6e;
  --gold-hi: #f0d28c;
  --gold-lo: #785a28;
  --ally: #0ac8b9;
  --enemy: #e84057;
  --right: #2fd18b;
  --hinted: #f5b942;
  --wrong: #e84057;
  --cut: 10px;
  --clip: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  --display: 'Cinzel', 'Times New Roman', serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; }
a { color: var(--gold-hi); }
img { display: block; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* --- backdrop ------------------------------------------------------------------------------------------- */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.backdrop::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 35%, rgba(1, 10, 19, 0.35), rgba(1, 10, 19, 0.92) 70%),
    linear-gradient(180deg, rgba(1, 10, 19, 0.55) 0%, rgba(1, 10, 19, 0.75) 45%, var(--bg) 100%);
}
.backdrop canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.splash {
  position: absolute; inset: -30px;
  background-size: cover; background-position: center 25%;
  filter: blur(3px) saturate(1.1);
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.2s ease, transform 8s ease-out;
}
.splash.on { opacity: 0.55; transform: scale(1); }
body::before {
  content: ''; position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: 0;
  transition: opacity .6s ease;
}
body[data-flash='right']::before, body[data-flash='hinted']::before, body[data-flash='wrong']::before { opacity: 1; transition: none; }
body[data-flash='right']::before { box-shadow: inset 0 0 160px rgba(47, 209, 139, 0.35); }
body[data-flash='hinted']::before { box-shadow: inset 0 0 160px rgba(245, 185, 66, 0.3); }
body[data-flash='wrong']::before { box-shadow: inset 0 0 160px rgba(232, 64, 87, 0.38); }

/* --- header ------------------------------------------------------------------------------------------------ */
.top {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  max-width: 1240px; margin: 0 auto; padding: 18px 20px 6px;
}
.top-right { display: flex; justify-content: flex-end; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer;
  background: rgba(1, 10, 19, 0.6); border: 1px solid var(--border-gold); color: var(--gold);
  transition: color .2s, border-color .2s, background .2s;
}
.icon-btn:hover { color: var(--gold-hi); border-color: var(--gold); background: rgba(200, 170, 110, 0.08); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.icon-btn svg .fill { fill: currentColor; stroke: none; }
.brand { display: flex; flex-direction: column; align-items: center; text-decoration: none; position: relative; padding: 0 64px; }
.brand::before, .brand::after {
  content: ''; position: absolute; top: 24px; width: 48px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.brand::before { left: 0; }
.brand::after { right: 0; transform: scaleX(-1); }
.brand-word {
  font: 800 40px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; padding-left: .16em;
  background: linear-gradient(180deg, #fbf1d6 0%, var(--gold-hi) 40%, #a88a50 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 12px rgba(200, 170, 110, 0.25));
}
.brand-by { margin-top: 4px; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.brand-by b { color: var(--text-2); font-weight: 600; }
.brand-by i { display: none; }

main { max-width: 1240px; margin: 0 auto; padding: 0 20px 40px; }

.dayline {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px;
  margin: 10px 0 14px; color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
.dayline .day-no { color: var(--gold); font-weight: 700; }
.dayline .dot { width: 3px; height: 3px; background: var(--faint); transform: rotate(45deg); }
.dayline .to-today { margin-left: 8px; color: var(--ally); text-decoration: none; }
.dayline .to-today:hover { text-decoration: underline; }

/* --- round pips --------------------------------------------------------------------------------------------- */
.pips { list-style: none; display: flex; justify-content: center; align-items: center; gap: 22px; margin: 0 0 22px; padding: 0; position: relative; }
.pips li { position: relative; }
.pips li + li::before {
  content: ''; position: absolute; right: calc(100% + 4px); top: 50%; width: 14px; height: 1px; background: var(--border-gold);
}
.pip {
  width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; padding: 0;
  transform: rotate(45deg); background: var(--bg-2); border: 1px solid var(--border-gold);
  transition: transform .25s var(--ease), border-color .2s, background .2s, box-shadow .2s;
}
.pip > * { transform: rotate(-45deg); }
.pip .lane { width: 18px; height: 18px; opacity: .55; }
.pip:disabled { cursor: default; opacity: .45; }
.pip.current { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 170, 110, 0.12), 0 0 18px rgba(200, 170, 110, 0.3); }
.pip.current .lane { opacity: 1; }
.pip.right { background: rgba(47, 209, 139, 0.18); border-color: var(--right); }
.pip.hinted { background: rgba(245, 185, 66, 0.18); border-color: var(--hinted); }
.pip.wrong { background: rgba(232, 64, 87, 0.18); border-color: var(--wrong); }
.pip.right .lane, .pip.hinted .lane, .pip.wrong .lane { opacity: 1; }
.pip.viewing { transform: rotate(45deg) scale(1.18); }
.pip:not(:disabled):hover { transform: rotate(45deg) scale(1.12); }
.pip.trophy span { color: var(--gold); font-size: 15px; }
.pip.trophy.done { background: linear-gradient(135deg, #3a2c10, #1a1408); border-color: var(--gold); }

/* --- the stage ------------------------------------------------------------------------------------------------ */
.stage { display: grid; grid-template-columns: 250px minmax(0, 1fr) 250px; gap: 28px; align-items: start; }
.team { display: flex; flex-direction: column; gap: 6px; }
.team-title {
  margin: 0 0 4px; font: 700 13px/1 var(--display); letter-spacing: .2em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.team-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, currentColor, transparent); opacity: .5; }
.ally .team-title { color: var(--ally); }
.enemy .team-title { color: var(--enemy); flex-direction: row-reverse; }
.enemy .team-title::after { background: linear-gradient(270deg, currentColor, transparent); }

.slot {
  position: relative; height: 66px; display: flex; align-items: center; gap: 10px; padding: 0 12px;
  background: var(--surface-solid); border: 1px solid var(--border); overflow: hidden;
  animation: slot-in .5s var(--ease) both; animation-delay: calc(var(--i) * 45ms);
}
.slot-art {
  position: absolute; inset: 0; background-image: var(--bg); background-size: 260% auto; background-position: 62% 22%;
  opacity: .85; transition: opacity .3s;
}
.ally .slot-art { -webkit-mask: linear-gradient(90deg, transparent 10%, #000 75%); mask: linear-gradient(90deg, transparent 10%, #000 75%); }
.enemy .slot { flex-direction: row-reverse; text-align: right; }
.enemy .slot-art { -webkit-mask: linear-gradient(270deg, transparent 10%, #000 75%); mask: linear-gradient(270deg, transparent 10%, #000 75%); }
.slot > :not(.slot-art) { position: relative; }
.slot .lane { width: 18px; height: 18px; flex: none; opacity: .8; }
.slot-text { display: flex; flex-direction: column; min-width: 0; text-shadow: 0 1px 6px #000, 0 0 2px #000; }
.slot-text b { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-text small { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.slot.empty { background: repeating-linear-gradient(135deg, rgba(255,255,255,.015) 0 8px, transparent 8px 16px), var(--bg-2); }
.slot.empty .slot-text b { color: var(--faint); font-weight: 500; }
.slot.empty .slot-text small { color: var(--faint); }
.ally .slot:not(.empty) { border-left: 2px solid var(--ally); }
.enemy .slot:not(.empty) { border-right: 2px solid var(--enemy); }
.slot.foe { border-color: rgba(232, 64, 87, 0.6); box-shadow: 0 0 22px rgba(232, 64, 87, 0.22), inset 0 0 18px rgba(232, 64, 87, 0.12); }
.slot.foe .slot-text small { color: #ff8d9c; }
.slot.me { border: 1px solid var(--gold); background: linear-gradient(90deg, rgba(200, 170, 110, 0.1), rgba(200, 170, 110, 0.02)), var(--bg-2); }
.slot.me.empty { animation: slot-in .5s var(--ease) both, pulse 2.2s ease-in-out infinite .6s; }
.slot.me .slot-text b { color: var(--gold-hi); font-weight: 600; }
.slot.me .slot-text small { color: var(--gold); }
.slot-q {
  margin-left: auto; font: 700 26px/1 var(--display); color: var(--gold);
  text-shadow: 0 0 12px rgba(200, 170, 110, 0.6);
}
.slot.lock-in .slot-art { animation: lock-in .8s var(--ease) both; }
@keyframes slot-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 1px rgba(200, 170, 110, 0.4), 0 0 24px rgba(200, 170, 110, 0.35); } }
@keyframes lock-in { from { opacity: 0; filter: brightness(3); } 40% { opacity: 1; filter: brightness(1.8); } }

/* --- the question and the cards --------------------------------------------------------------------------- */
.centre { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.ask { margin: 0 0 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 400; }
.ask-round { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.ask > span:first-of-type { font: 700 30px/1.15 var(--display); letter-spacing: .02em; }
.ask em { font-style: normal; color: var(--gold-hi); }
.ask em.foe { color: #ff8d9c; }
.ask-sub { font-size: 15px; color: var(--text-2); }

.options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: 100%; max-width: 600px; }
.card {
  --frame: var(--border-gold);
  position: relative; padding: 0; cursor: pointer; text-align: center;
  aspect-ratio: 308 / 470; background: var(--bg-2); border: 0;
  clip-path: var(--clip);
  transition: transform .35s var(--ease), filter .3s, opacity .3s;
  /* Fill backwards only: a forwards fill keeps card-in holding transform after it ends, which overrides the
     hover lift's transition (the cards snap, and the last card to finish can drop back out of sync). */
  animation: card-in .55s var(--ease) backwards; animation-delay: calc(120ms + var(--i) * 80ms);
}
.card::before {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; clip-path: var(--clip);
  border: 1px solid var(--frame);
  box-shadow: inset 0 0 0 1px rgba(1, 10, 19, 0.8), inset 0 -60px 60px -40px rgba(200, 170, 110, 0.0);
  transition: border-color .25s, box-shadow .25s;
}
.card-art { position: absolute; inset: 0; overflow: hidden; }
.card-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transition: transform .6s var(--ease), filter .4s; }
.card-plate {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 40px 10px 14px;
  background: linear-gradient(180deg, transparent, rgba(1, 10, 19, 0.85) 45%, rgba(1, 10, 19, 0.97));
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.card-name { font: 700 17px/1.1 var(--display); letter-spacing: .04em; color: var(--gold-2, #f0e6d2); text-shadow: 0 2px 8px #000; }
.card:not(.revealed):hover, .card:not(.revealed):focus-visible { transform: translateY(-6px); outline: none; --frame: var(--gold); }
.card:not(.revealed):hover::before, .card:not(.revealed):focus-visible::before { box-shadow: inset 0 0 0 1px rgba(240, 210, 140, 0.35), inset 0 -80px 60px -40px rgba(200, 170, 110, 0.35); }
.card:not(.revealed):hover .card-art img { transform: scale(1.05); }
.card.revealed { cursor: default; }
/* After answering: hovering a card shows its matchups and synergies on the draft. */
#options.hovering .card.revealed:not(.lp-hv) { opacity: .5; filter: grayscale(.6); }
.card.revealed { transition: opacity .2s, filter .2s; }
.card.revealed.lp-hv { --frame: var(--gold-hi); }
.slot[data-kind] .hv small { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.explain.shown p.hover-tip { margin-top: 10px; font-size: 13px; color: var(--muted); }
.card-reveal { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; }
.card-score { font: 700 26px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.card-tag { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.card-split { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin-top: 8px; border-top: 1px solid rgba(200, 170, 110, 0.2); padding-top: 6px; }
.card-split span { display: flex; flex-direction: column; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.card-split i { font-style: normal; font-size: 9.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card.revealed .card-plate { padding-top: 70px; }
.card.revealed:not(.role-answer):not(.picked) { filter: saturate(.55) brightness(.75); }
.card.role-answer { --frame: var(--right); }
.card.role-answer .card-score, .card.role-answer .card-tag { color: var(--right); }
.card.role-answer::before { box-shadow: inset 0 0 0 1px rgba(47, 209, 139, 0.5), inset 0 -120px 80px -60px rgba(47, 209, 139, 0.45); }
.card.picked:not(.role-answer) { --frame: var(--wrong); }
.card.picked:not(.role-answer) .card-score, .card.picked:not(.role-answer) .card-tag { color: #ff7186; }
.card.picked:not(.role-answer)::before { box-shadow: inset 0 0 0 1px rgba(232, 64, 87, 0.5), inset 0 -120px 80px -60px rgba(232, 64, 87, 0.45); }
.card.role-answer.animate { animation: card-in .55s var(--ease) backwards, win .9s var(--ease) .2s; }
.card.picked:not(.role-answer).animate { animation: card-in .55s var(--ease) backwards, shake .5s ease .1s; }
.card.revealed.animate .card-reveal { animation: rise .5s var(--ease) both; animation-delay: calc(150ms + var(--i) * 120ms); }
.card-badge {
  position: absolute; z-index: 4; top: 10px; left: 50%; transform: translateX(-50%);
  padding: 3px 10px; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  background: var(--gold); color: #1a1206; clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 6px 100%, 0 50%);
}
@keyframes card-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes win { 30% { transform: translateY(-10px) scale(1.04); } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* --- controls and explanation -------------------------------------------------------------------------------- */
.controls { margin: 22px 0 14px; min-height: 46px; display: flex; gap: 12px; justify-content: center; }
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 26px; cursor: pointer; text-decoration: none;
  font: 700 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase;
  border: 0; clip-path: var(--clip); --cut: 8px; transition: filter .2s, transform .15s;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.primary {
  color: var(--gold-hi);
  background: linear-gradient(180deg, #1e2328, #0f1419) padding-box;
  box-shadow: inset 0 0 0 1px var(--gold), inset 0 0 0 2px rgba(1, 10, 19, 0.9), inset 0 -18px 24px -14px rgba(200, 170, 110, 0.35);
}
.btn.primary:hover { filter: brightness(1.25); }
/* "Next …" button (uiverse.io cssbuttons-io): the label slides away and the icon expands over the button on hover. */
.btn.next-btn {
  --w: 160px; --icon: 40px;
  width: var(--w); height: 50px; padding: 0; justify-content: flex-start; clip-path: none; border-radius: 5px; overflow: hidden;
  background: var(--gold); box-shadow: 1px 1px 3px rgba(0, 0, 0, .15); color: #1a1206;
  transition: 200ms;
}
.next-btn .text, .next-btn .icon { transition: 200ms; }
.next-btn .text { width: calc(var(--w) - var(--icon) - 5px); text-align: center; color: #1a1206; font-weight: 700; white-space: nowrap; }
.next-btn .icon {
  position: absolute; top: 5px; left: 0; width: var(--icon); height: 40px; display: flex; align-items: center; justify-content: center;
  border-left: 1px solid var(--gold-lo); transform: translateX(calc(var(--w) - var(--icon) - 5px));
}
.next-btn svg { width: 18px; height: 18px; fill: none; stroke: #1a1206; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.btn.next-btn:hover, .btn.next-btn:focus-visible { background: var(--gold-hi); outline: none; filter: none; }
.next-btn:hover .text, .next-btn:focus-visible .text { color: transparent; }
.next-btn:hover .icon, .next-btn:focus-visible .icon { width: 100%; border-left: none; transform: translateX(0); }
.next-btn:active .icon svg { transform: scale(.8); }
.btn.gold { color: #1a1206; background: linear-gradient(180deg, #f0d28c, #c8aa6e 55%, #a88a50); }
.btn.gold:hover { filter: brightness(1.1); }
.btn.ghost {
  color: var(--text-2); background: rgba(1, 10, 19, 0.6);
  box-shadow: inset 0 0 0 1px var(--border-gold); font-family: inherit; font-weight: 600; letter-spacing: .04em; text-transform: none; font-size: 14px;
}
.btn.ghost:hover:not(:disabled) { color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--gold); }
.btn.ghost:disabled { opacity: .55; cursor: default; }
.btn small { color: var(--hinted); font-weight: 700; font-size: 12px; }
.btn .arrow { font-family: 'Inter', sans-serif; font-size: 16px; transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.hint-ico { color: var(--gold); }
.btn.wide { width: 100%; }

.explain { width: 100%; max-width: 600px; text-align: center; }
.explain p { margin: 0; color: var(--text-2); }
.explain.shown {
  text-align: left; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border);
  border-top: 1px solid var(--border-gold); animation: rise .5s var(--ease) .45s both; backdrop-filter: blur(6px);
}
.explain.shown p { color: var(--text); }
.explain b.good { color: var(--right); }
.explain b.bad { color: #ff7186; }
.reasons { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.reasons li {
  display: grid; grid-template-columns: 28px 1fr auto auto; align-items: center; gap: 12px;
  padding: 6px 10px; background: rgba(1, 10, 19, 0.5); border: 1px solid var(--border);
}
.reasons img { width: 28px; height: 28px; border: 1px solid var(--border-gold); }
.r-what { display: flex; flex-direction: column; line-height: 1.2; font-weight: 600; }
.r-what small, .r-val small { font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.r-val { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; min-width: 66px; font-variant-numeric: tabular-nums; }
.r-val b.pos { color: var(--right); }
.r-val b.neg { color: #ff7186; }
.r-val.dim b { color: var(--muted); }
/* Last Pick: second best (half a point), and the hint/reveal breakdown table */
.explain b.half { color: var(--hinted); }
.pip.second { background: rgba(245, 185, 66, 0.18); border-color: var(--hinted); }
.pip.second .lane { opacity: 1; }
.sum-round.second { --c: var(--hinted); }
.card.picked.role-second { --frame: var(--hinted); }
.card.picked.role-second .card-score, .card.picked.role-second .card-tag { color: var(--hinted); }
.card.picked.role-second::before { box-shadow: inset 0 0 0 1px rgba(245, 185, 66, 0.5), inset 0 -120px 80px -60px rgba(245, 185, 66, 0.4); }
.card.picked.role-second.animate { animation: card-in .55s var(--ease) backwards; }
.card.revealed.role-second:not(.picked) .card-tag { color: var(--text-2); }
.breakdown { margin: 12px 0 0; display: flex; flex-direction: column; gap: 4px; }
.bd-row {
  display: grid; grid-template-columns: 1fr repeat(var(--cols, 3), 64px); align-items: center; gap: 8px;
  padding: 5px 10px; background: rgba(1, 10, 19, 0.5); border: 1px solid var(--border);
}
.bd-head { background: none; border-color: transparent; padding-top: 0; padding-bottom: 0; }
.bd-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bd-who img { width: 26px; height: 26px; border: 1px solid var(--border-gold); flex: none; }
.bd-col { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; min-width: 0; }
.bd-col img { width: 26px; height: 26px; border: 1px solid var(--border-gold); }
.bd-col small { font-size: 10px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-val { text-align: center; font-variant-numeric: tabular-nums; color: var(--muted); }
.bd-val.pos { color: var(--right); }
.bd-val.neg { color: #ff7186; }
@media (max-width: 600px) {
  .bd-row { grid-template-columns: 1fr repeat(var(--cols, 3), 46px); gap: 6px; padding: 5px 8px; }
  .bd-who { gap: 8px; }
  .bd-who img { width: 22px; height: 22px; }
}

/* --- results ------------------------------------------------------------------------------------------------------ */
.summary { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 6px; }
.sum-card, .panel, .promo {
  position: relative; background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(8px);
}
.sum-card {
  padding: 30px 30px 26px; text-align: center; display: flex; flex-direction: column; align-items: center;
  border-top: 2px solid var(--gold); animation: rise .6s var(--ease) both;
}
.sum-card.message { grid-column: 1 / -1; max-width: 560px; justify-self: center; }
.sum-kicker { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.sum-score { margin-top: 8px; display: flex; align-items: baseline; font-family: var(--display); }
.sum-score b {
  font-size: 92px; line-height: 1; font-weight: 800;
  background: linear-gradient(180deg, #fbf1d6, var(--gold-hi) 45%, #a88a50); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 24px rgba(200, 170, 110, 0.3));
}
.sum-score span { font-size: 34px; color: var(--muted); font-weight: 700; }
.sum-title { margin: 6px 0 2px; font: 700 26px/1.2 var(--display); letter-spacing: .04em; }
.sum-card > p { margin: 0; }
.sum-rounds { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; width: 100%; max-width: 460px; margin: 24px 0 26px; }
.sum-round {
  --c: var(--wrong);
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; cursor: pointer;
  background: none; border: 0; animation: card-in .5s var(--ease) both; animation-delay: calc(200ms + var(--i) * 90ms);
}
.sum-round.right { --c: var(--right); }
.sum-round.hinted { --c: var(--hinted); }
.sum-round img:not(.lane) { width: 100%; aspect-ratio: 1; border: 2px solid var(--c); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 40%, transparent); transition: transform .2s var(--ease); }
.sum-round.wrong img:not(.lane) { filter: grayscale(.6) brightness(.8); }
.sum-round:hover img:not(.lane) { transform: translateY(-3px); }
.sum-round .sum-lane { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; padding: 3px; background: var(--bg); border: 1px solid var(--c); border-radius: 50%; }
.sum-round small { font-size: 11px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sum-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px; }
.share-ico { font-family: 'Inter', sans-serif; font-size: 16px; }
.next-in { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.next-in small { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.countdown { font: 700 24px/1.1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: .05em; color: var(--gold-hi); }
.share-preview {
  margin: 20px 0 0; padding: 10px 16px; font: 13px/1.5 ui-monospace, Consolas, monospace; color: var(--muted);
  background: rgba(1, 10, 19, 0.6); border: 1px dashed var(--border); white-space: pre-wrap; user-select: all;
}
.next-game-slot { width: 100%; max-width: 360px; margin-top: 16px; }
.next-game-slot:empty { display: none; }
.next-game { width: 100%; justify-content: space-between; min-height: 56px; padding: 0 18px; gap: 14px; }
.btn.next-game { box-shadow: inset 0 0 0 1px var(--gold-hi), inset 0 0 0 2px rgba(1, 10, 19, 0.9), inset 0 -22px 28px -14px rgba(200, 170, 110, 0.5), 0 0 22px rgba(200, 170, 110, 0.18); }
.ng-glyph { font-size: 20px; color: var(--gold); width: 24px; text-align: center; }
.ng-text { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; line-height: 1.1; text-align: left; }
.ng-text small { font-size: 9.5px; letter-spacing: .22em; color: var(--muted); }
.ng-text b { font-size: 14px; letter-spacing: .1em; }
.next-game.all-done { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; background: rgba(1, 10, 19, 0.5); border: 1px solid var(--border-gold); }
.all-done .ng-text b { font: 700 13px/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--right); }
.all-done .ng-text small { letter-spacing: .12em; text-transform: uppercase; }
.all-done .btn { flex: none; min-height: 38px; padding: 0 14px; font-size: 13px; }

.sum-side { display: flex; flex-direction: column; gap: 24px; animation: rise .6s var(--ease) .15s both; }
.panel { padding: 20px 22px; }
.panel h3 { margin: 0 0 14px; font: 700 13px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; background: rgba(1, 10, 19, 0.5); border: 1px solid var(--border); }
.stat b { font: 700 26px/1.1 var(--display); color: var(--text); }
.stat small { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: center; }
.stats h4 { margin: 18px 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.dist { display: flex; flex-direction: column; gap: 4px; }
.dist-row { display: grid; grid-template-columns: 14px 1fr; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dist-row i { display: flex; justify-content: flex-end; width: var(--w); min-width: 22px; padding: 2px 6px; background: var(--surface-3); font-style: normal; }
.dist-row i b { font-size: 11px; color: var(--text-2); }
.dist-row.hl i { background: linear-gradient(90deg, #6b5426, var(--gold)); }
.dist-row.hl i b { color: #1a1206; }

.promo {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px; text-decoration: none; color: var(--text);
  overflow: hidden; border-color: var(--border-gold);
  background:
    radial-gradient(ellipse 70% 90% at 100% 0%, rgba(10, 200, 185, 0.16), transparent 60%),
    radial-gradient(ellipse 60% 80% at 0% 100%, rgba(200, 170, 110, 0.14), transparent 60%),
    var(--surface);
  transition: border-color .2s, transform .25s var(--ease);
}
.promo:hover { border-color: var(--gold); transform: translateY(-2px); }
.promo-kicker { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--ally); }
.promo-title { font: 700 22px/1.2 var(--display); }
.promo-title em { font-style: normal; color: var(--gold-hi); }
.promo ul { margin: 0 0 6px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; color: var(--text-2); font-size: 14px; }
.promo li { padding-left: 18px; position: relative; }
.promo li::before { content: ''; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }

/* --- footer, modals, toast ----------------------------------------------------------------------------------- */
.foot { max-width: 760px; margin: 0 auto; padding: 24px 20px 40px; text-align: center; color: var(--muted); font-size: 12.5px; }
.foot p { margin: 0 0 8px; }
.foot .legal { font-size: 11px; color: var(--faint); }

.modal {
  width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 28px; color: var(--text);
  background: linear-gradient(180deg, #0b1825, #06111c); border: 1px solid var(--border-gold); border-top: 2px solid var(--gold);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}
.modal.wide { width: min(640px, calc(100vw - 32px)); }
.modal[open] { animation: modal-in .35s var(--ease); }
.modal::backdrop { background: rgba(1, 6, 12, 0.72); backdrop-filter: blur(3px); }
.modal h2 { margin: 0 0 12px; font: 700 22px/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-hi); }
.modal .close {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; cursor: pointer; font-size: 22px; line-height: 1;
  background: none; border: 1px solid transparent; color: var(--muted);
}
.modal .close:hover { color: var(--gold-hi); border-color: var(--border-gold); }
.lead { margin: 0 0 16px; color: var(--text-2); }
.rules { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.rules > div { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.rules p { margin: 0; color: var(--text-2); font-size: 14px; }
.rules b { color: var(--text); }
.rule-ico {
  width: 34px; height: 34px; display: grid; place-items: center; color: var(--gold); font-size: 16px;
  border: 1px solid var(--border-gold); background: rgba(200, 170, 110, 0.06); clip-path: var(--clip); --cut: 7px;
}
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 14px; font-size: 13px; color: var(--text-2); }
.legend span { display: flex; align-items: center; gap: 6px; }
.sq { width: 14px; height: 14px; display: inline-block; }
.sq.right { background: var(--right); }
.sq.hinted { background: var(--hinted); }
.sq.wrong { background: var(--wrong); }
.modal > p.muted { font-size: 13px; margin: 0 0 18px; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }

.archive { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin-top: 8px; }
.arch {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; text-decoration: none; color: var(--text);
  background: rgba(1, 10, 19, 0.6); border: 1px solid var(--border); transition: border-color .2s, transform .2s var(--ease);
}
.arch:hover { border-color: var(--gold); transform: translateY(-2px); }
.arch b { font: 700 20px/1.1 var(--display); color: var(--gold-hi); }
.arch small { font-size: 11px; color: var(--muted); }
.arch span { margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.arch.great span { color: var(--right); }
.arch.ok span { color: var(--hinted); }
.arch.low span { color: #ff7186; }
.arch.todo span { color: var(--ally); }
.arch.current { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(200, 170, 110, 0.15); }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 20px; background: var(--gold); color: #1a1206; font-weight: 600; font-size: 14px;
  clip-path: var(--clip); --cut: 6px; transition: opacity .25s, transform .3s var(--ease);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* --- mode tabs ------------------------------------------------------------------------------------------------------ */
.modes { position: relative; display: flex; justify-content: center; gap: 4px; max-width: 1240px; margin: 10px auto 0; padding: 0 20px; }
.mode {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 9px 16px; text-decoration: none;
  color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s, background .2s;
}
.mode:hover { color: var(--text); background: rgba(200, 170, 110, 0.05); }
.mode.on { color: var(--gold-hi); border-bottom-color: var(--gold); background: linear-gradient(0deg, rgba(200, 170, 110, 0.1), transparent); }
.mode-glyph { font-size: 14px; color: var(--gold); opacity: .8; }
.mode-done {
  display: grid; place-items: center; width: 16px; height: 16px; font-size: 10px; color: #04140c;
  background: var(--right); border-radius: 50%;
}
.pip-no { font: 700 13px/1 var(--display); color: var(--muted); }
.pip.current .pip-no, .pip.right .pip-no, .pip.wrong .pip-no { color: var(--text); }

/* --- draft coach -------------------------------------------------------------------------------------------------------- */
.coach { display: flex; flex-direction: column; align-items: center; }
.phase { list-style: none; display: flex; gap: 6px; margin: 0 0 14px; padding: 0; }
.ph {
  width: 38px; height: 26px; display: grid; place-items: center; font: 700 11px/1 var(--display); letter-spacing: .06em;
  background: var(--bg-2); border: 1px solid var(--border); color: var(--faint); clip-path: var(--clip); --cut: 5px;
  transition: background .3s, color .3s, border-color .3s;
}
.ph.blue { --c: var(--ally); }
.ph.red { --c: var(--enemy); }
.ph.done { color: var(--text); background: color-mix(in srgb, var(--c) 28%, var(--bg-2)); }
.ph.now { color: var(--bg); background: var(--c); box-shadow: 0 0 18px var(--c); animation: now 1.4s ease-in-out infinite; }
.ph:nth-child(1), .ph:nth-child(3), .ph:nth-child(5), .ph:nth-child(7), .ph:nth-child(9) { margin-right: 4px; }
@keyframes now { 50% { filter: brightness(1.35); } }

.winbar { --blue: 50%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; max-width: 760px; margin-bottom: 22px; }
.win-side { display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.win-side b { font: 700 22px/1 var(--display); min-width: 78px; }
.win-side small { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.win-side.blue b { color: var(--ally); }
.win-side.red b { color: #ff7186; text-align: right; }
.win-track { position: relative; height: 12px; background: linear-gradient(90deg, #7a1f2d, var(--enemy)); border: 1px solid var(--border); }
.win-fill {
  position: absolute; inset: 0 auto 0 0; width: var(--blue); background: linear-gradient(90deg, #066b63, var(--ally));
  box-shadow: 0 0 16px rgba(10, 200, 185, 0.45); transition: width .9s var(--ease);
}
.win-fill::after { content: ''; position: absolute; right: -2px; top: -5px; bottom: -5px; width: 3px; background: #fff; box-shadow: 0 0 10px #fff; }
.win-track::before { content: ''; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: rgba(255, 255, 255, .35); z-index: 1; }
.win-delta { position: absolute; left: var(--blue); top: -24px; transform: translateX(-50%); font: 700 13px/1 'Inter', sans-serif; opacity: 0; pointer-events: none; }
.win-delta.pos { color: var(--right); }
.win-delta.neg { color: #ff7186; }
.win-delta.show { animation: delta 1.8s var(--ease) both; }
@keyframes delta { 15% { opacity: 1; transform: translate(-50%, -4px); } 70% { opacity: 1; } to { opacity: 0; transform: translate(-50%, -10px); } }

/* what the last pick did */
.impact { min-height: 30px; margin: -8px 0 14px; display: flex; justify-content: center; width: 100%; max-width: 760px; }
.imp { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 8px; font-size: 12.5px; animation: rise .4s var(--ease) both; }
.imp img { width: 24px; height: 24px; border: 1px solid var(--border-gold); }
.imp.blue img { border-color: var(--ally); }
.imp.red img { border-color: var(--enemy); }
.imp-who { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.imp-name { font-weight: 600; }
.imp-total { font: 700 17px/1 var(--display); font-variant-numeric: tabular-nums; margin-right: 4px; }
.imp-chips { display: contents; }
.imp .pos { color: var(--right); }
.imp .neg { color: #ff7186; }
.imp-chip {
  display: inline-flex; gap: 5px; padding: 3px 8px; color: var(--text-2); background: var(--surface); border: 1px solid var(--border);
  white-space: nowrap; animation: rise .4s var(--ease) both; animation-delay: calc(var(--i) * 90ms + 150ms);
}
.imp-chip.hot.good { border-color: color-mix(in srgb, var(--right) 55%, transparent); background: color-mix(in srgb, var(--right) 10%, var(--bg-2)); }
.imp-chip.hot.bad { border-color: color-mix(in srgb, var(--enemy) 60%, transparent); background: color-mix(in srgb, var(--enemy) 12%, var(--bg-2)); }

/* the swing of a pick, popping off its slot */
.pop {
  position: absolute !important; top: 50%; right: 12px; z-index: 2; pointer-events: none;
  font: 800 26px/1 var(--display); font-variant-numeric: tabular-nums; text-shadow: 0 0 14px currentColor, 0 2px 6px #000;
  animation: pop 1.6s var(--ease) both .15s;
}
.enemy .pop { right: auto; left: 12px; }
.pop.pos { color: var(--right); }
.pop.neg { color: #ff7186; }
@keyframes pop {
  from { opacity: 0; transform: translateY(-50%) scale(.4); }
  18% { opacity: 1; transform: translateY(-50%) scale(1.25); }
  32% { transform: translateY(-50%) scale(1); }
  75% { opacity: 1; transform: translateY(-50%); }
  to { opacity: 0; transform: translateY(-110%); }
}

/* champions the last pick has a big matchup or synergy with */
.slot.fx { --c: var(--right); }
.slot.fx.bad { --c: var(--enemy); }
.slot.fx::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border: 1px solid var(--c);
  box-shadow: inset 0 0 22px color-mix(in srgb, var(--c) 40%, transparent), 0 0 16px color-mix(in srgb, var(--c) 35%, transparent);
  animation: fx-glow 1.4s ease-out both .25s;
}
.fx-tag {
  position: absolute !important; top: 5px; right: 6px; z-index: 2; padding: 2px 6px; pointer-events: none;
  font: 700 9.5px/1 'Inter', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #021412; background: var(--c);
  box-shadow: 0 0 12px var(--c); animation: tag-in .35s var(--ease) both .25s, tag-blink .3s ease-in-out 4 .6s;
}
.slot.fx.bad .fx-tag { color: #fff; }
.enemy .fx-tag { right: auto; left: 6px; }
@keyframes fx-glow { from { opacity: 0; } 20% { opacity: 1; filter: brightness(1.8); } 45% { opacity: .55; } 65% { opacity: 1; } to { opacity: .7; } }
@keyframes tag-in { from { opacity: 0; transform: scale(.6); } }
@keyframes tag-blink { 50% { opacity: .35; } }

/* hovering a champion: its matchups and synergies on the locked-in ones */
.impact.hovering .imp:not(.imp-hover) { display: none; }
.imp-hover { animation: none; }
.imp-hover .imp-chip { animation: none; }
.slot[data-slot] { cursor: help; }
.slot { transition: box-shadow .2s, border-color .2s, opacity .2s; }
.slot.hv-src { border-color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--gold), inset 0 0 26px rgba(240, 210, 140, .3); }
.slot.hv-good { --h: var(--right); }
.slot.hv-bad { --h: var(--enemy); }
.slot.hv-even { --h: var(--muted); }
.slot.hv-good, .slot.hv-bad, .slot.hv-even { border-color: var(--h); box-shadow: inset 0 0 22px color-mix(in srgb, var(--h) 35%, transparent); }
.slot.hv-swap .slot-art { opacity: .35; filter: grayscale(.8); }
.hv {
  position: absolute !important; top: 50%; right: 10px; transform: translateY(-50%); z-index: 3; pointer-events: none;
  display: flex; flex-direction: column; align-items: flex-end; line-height: 1; gap: 3px; animation: tag-in .2s var(--ease) both;
}
.enemy .hv { right: auto; left: 10px; align-items: flex-start; }
.hv b { font: 800 22px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--h); text-shadow: 0 0 12px var(--h), 0 2px 6px #000; }
.hv small { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--text); text-shadow: 0 1px 4px #000; }
.slot.hv-even .hv b { color: var(--text-2); text-shadow: 0 2px 6px #000; }
.slot.hv-good .fx-tag, .slot.hv-bad .fx-tag, .slot.hv-even .fx-tag, .slot.hv-swap .fx-tag { display: none; }
.pool-grid { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.pool-grid .tile { transition: transform .18s var(--ease), border-color .2s, background .2s, opacity .2s, filter .2s; }
.pool-grid.hovering .tile:not(.hv-src) { opacity: .22; filter: grayscale(.85); }
.tile.hv-src { opacity: 1; border-color: var(--gold-hi); box-shadow: 0 0 0 1px var(--gold), 0 0 22px rgba(200, 170, 110, .45); }
.tile.explore { cursor: help; }
.tile.explore:hover { transform: translateY(-2px); }
.tile-gain {
  position: absolute; top: 4px; right: 4px; padding: 2px 5px; font: 700 10.5px/1 'Inter', sans-serif; font-variant-numeric: tabular-nums;
  background: rgba(1, 10, 19, .85); border: 1px solid currentColor;
}
.tile-gain.pos { color: var(--right); }
.tile-gain.neg { color: #ff7186; }
.tile-gain.top { color: #021412; background: var(--right); box-shadow: 0 0 12px var(--right); }

/* the finished draft: result and champion tabs in the middle */
.tabs { display: flex; gap: 4px; margin-top: 8px; }
.tab {
  padding: 8px 22px; background: var(--bg-2); border: 1px solid var(--border); color: var(--muted); cursor: pointer;
  font: 700 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; transition: color .2s, border-color .2s, background .2s;
}
.tab:hover { color: var(--text); border-color: var(--gold-lo); }
.tab.on { color: var(--gold-hi); border-color: var(--gold); background: linear-gradient(0deg, rgba(200, 170, 110, .14), transparent); }
.coach-result { display: flex; flex-direction: column; gap: 18px; width: 100%; }
.coach-result .sum-card { padding: 24px 22px 22px; }
.coach-result .sum-rounds { margin: 20px 0 22px; }
.coach-result .sum-round { cursor: help; }
.coach-result .grade { margin: 30px 0 26px; }
.coach-result .panel, .coach-result .promo { animation: rise .6s var(--ease) .15s both; }
.practice-btn { margin-top: 16px; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; height: auto; padding: 8px 20px; }
.practice-btn small { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.explore-hint { margin: -4px 0 12px; text-align: center; }

.coach-stage { display: grid; grid-template-columns: 240px minmax(0, 1fr) 240px; gap: 28px; align-items: start; width: 100%; }
.board { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.pool { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 560px; }
.pool-row { display: grid; grid-template-columns: 58px repeat(5, minmax(0, 1fr)); gap: 8px; align-items: stretch; animation: slot-in .5s var(--ease) both; }
.pool-lane { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); }
.pool-lane small { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; }
.pool-lane .lane { width: 20px; height: 20px; opacity: .8; }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 5px 4px 6px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(4px);
  transition: transform .18s var(--ease), border-color .2s, background .2s, opacity .3s, filter .3s;
}
.tile img { width: 100%; max-width: 64px; aspect-ratio: 1; border: 1px solid var(--border-gold); }
.tile small { font-size: 11px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tile:not([aria-disabled="true"]):hover { transform: translateY(-2px); border-color: var(--gold); background: rgba(200, 170, 110, 0.08); }
.tile[aria-disabled="true"] { cursor: default; }
.tile.taken[aria-disabled="true"] { cursor: help; }
.tile.selected { border-color: var(--gold-hi); background: rgba(200, 170, 110, 0.16); box-shadow: 0 0 0 1px var(--gold), 0 0 22px rgba(200, 170, 110, 0.45); transform: translateY(-2px); }
.tile.selected img { border-color: var(--gold-hi); }
.tile.closed { opacity: .38; filter: grayscale(.7); }
.tile.taken { opacity: 1; }
.tile.taken img { filter: grayscale(.25) brightness(.75); }
.tile.taken.blue { border-color: var(--ally); background: rgba(10, 200, 185, 0.12); }
.tile.taken.red { border-color: var(--enemy); background: rgba(232, 64, 87, 0.12); }
.tile-tag {
  position: absolute; top: 4px; left: 50%; transform: translateX(-50%); padding: 2px 6px;
  font: 700 10.5px/1 var(--display); letter-spacing: .06em; color: #fff;
}
.tile.blue .tile-tag { background: var(--ally); color: #021412; }
.tile.red .tile-tag { background: var(--enemy); }
.lock-btn b { color: inherit; }
.lock-btn:disabled { opacity: .5; cursor: default; filter: grayscale(.5); }
.slot.foe-pick { border-color: rgba(232, 64, 87, 0.35); }

/* coach results */
.grade {
  margin: 34px 0 30px; width: 112px; height: 112px; display: grid; place-items: center; transform: rotate(45deg);
  border: 2px solid var(--c); background: radial-gradient(circle, color-mix(in srgb, var(--c) 28%, transparent), transparent 70%);
  box-shadow: 0 0 34px color-mix(in srgb, var(--c) 40%, transparent); animation: grade-in .8s var(--ease) both;
}
.grade b { transform: rotate(-45deg); font: 800 64px/1 var(--display); color: var(--c); text-shadow: 0 0 24px color-mix(in srgb, var(--c) 60%, transparent); }
.grade-s { --c: var(--gold-hi); }
.grade-a { --c: var(--right); }
.grade-b { --c: var(--ally); }
.grade-c { --c: var(--hinted); }
.grade-d { --c: #ff7186; }
@keyframes grade-in { from { opacity: 0; transform: rotate(45deg) scale(.6); } }
.coach-numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 460px; margin-top: 18px; }
.coach-numbers div { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; background: rgba(1, 10, 19, 0.5); border: 1px solid var(--border); }
.coach-numbers b { font: 700 22px/1.1 var(--display); color: var(--text); font-variant-numeric: tabular-nums; }
.coach-numbers small { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
div.sum-round { cursor: default; }
.panel-sub { margin: 20px 0 10px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.versus-rows { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.vrow { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; }
.vrow > small { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.vrow > b { font: 700 16px/1 var(--display); font-variant-numeric: tabular-nums; }
.vrow.best > small, .vrow.best > b { color: var(--gold-hi); }
.lineup { display: flex; gap: 4px; }
.lineup img { width: 40px; height: 40px; border: 1px solid var(--border); min-width: 0; flex: 0 1 auto; }
.lineup.blue img { border-color: rgba(10, 200, 185, 0.7); }
.lineup.red img { border-color: rgba(232, 64, 87, 0.7); }
.lineup.gold img { border-color: var(--gold); }

/* --- higher or lower ---------------------------------------------------------------------------------------------------------- */
.hilo { display: flex; flex-direction: column; align-items: center; }
.hilo-pips { gap: 14px; }
.hilo-pips li + li::before { width: 8px; right: calc(100% + 3px); }
.hilo-pips .pip { width: 30px; height: 30px; }
.hilo-cards { display: grid; grid-template-columns: minmax(0, 340px) 70px minmax(0, 340px); align-items: center; justify-content: center; width: 100%; }
.mcard {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); border: 1px solid var(--border-gold);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5); animation: card-in .5s var(--ease) both;
}
.mcard + .hilo-mid + .mcard { animation-delay: .08s; }
.mc-art { position: absolute; inset: 0; background-image: var(--bg); background-size: cover; background-position: 50% 20%; transition: transform 6s ease-out; }
.mcard:hover .mc-art { transform: scale(1.04); }
.mc-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(1, 10, 19, .7) 55%, var(--bg) 100%); }
.mc-plate { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 14px 18px; text-align: center; }
.mc-lane { display: flex; align-items: center; gap: 6px; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.mc-lane .lane { width: 14px; height: 14px; }
.mc-name { font: 700 26px/1.1 var(--display); letter-spacing: .03em; text-shadow: 0 2px 12px #000; }
.mc-vs { display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--text-2); }
.mc-vs small { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.mc-vs img { border: 1px solid var(--enemy); }
.mc-wr { margin-top: 8px; font: 800 48px/1 var(--display); color: var(--gold-hi); font-variant-numeric: tabular-nums; text-shadow: 0 0 22px rgba(200, 170, 110, .35); }
.mcard.hidden .mc-wr { color: var(--text); animation: pulse-q 1.8s ease-in-out infinite; }
@keyframes pulse-q { 50% { color: var(--gold-hi); text-shadow: 0 0 30px rgba(240, 210, 140, .7); } }
.mc-sub { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mcard.right { border-color: var(--right); box-shadow: 0 0 34px rgba(47, 209, 139, .35); }
.mcard.right .mc-wr { color: var(--right); }
.mcard.wrong { border-color: var(--wrong); box-shadow: 0 0 34px rgba(232, 64, 87, .35); }
.mcard.wrong .mc-wr { color: #ff7186; }
.hilo-mid { display: grid; place-items: center; }
/* The diamond is drawn by ::before, so the mark itself stays upright and centred by the grid. */
.hilo-vs, .hilo-badge {
  --c: var(--gold); --fill: var(--bg);
  position: relative; z-index: 1; width: 70px; height: 70px; display: grid; place-items: center;
  font: 700 15px/1 var(--display); color: var(--gold-hi);
}
.hilo-vs::before, .hilo-badge::before {
  content: ''; position: absolute; inset: 15%; z-index: -1; transform: rotate(45deg);
  background: var(--fill); border: 1px solid var(--c); box-shadow: 0 0 20px color-mix(in srgb, var(--c) 30%, transparent), inset 0 0 12px color-mix(in srgb, var(--c) 18%, transparent);
}
.hilo-vs b, .hilo-badge b { display: block; font: inherit; text-box: trim-both cap alphabetic; }
.hilo-vs b { letter-spacing: .06em; margin-right: -.06em; }
.hilo-badge { font: 700 22px/1 'Segoe UI Symbol', 'Inter', sans-serif; animation: diamond-in .5s var(--ease) both; }
.hilo-badge.right { --c: var(--right); --fill: #0b2a1d; color: var(--right); }
.hilo-badge.wrong { --c: var(--wrong); --fill: #2d0c13; color: #ff7186; }
@keyframes diamond-in { from { opacity: 0; transform: scale(.6); } }
.hilo .controls { flex-wrap: wrap; align-items: center; max-width: 760px; }
.hilo-result { flex-basis: 100%; margin: 0 0 6px; text-align: center; color: var(--text-2); }
.hilo-result b.good { color: var(--right); }
.hilo-result b.bad { color: #ff7186; }
/* Choice buttons (Higher/Lower, Blue/Red): outline button (uiverse.io mrhyddenn) that fills with the choice's colour and
   sweeps a white flash across on hover (--neon as hex, --neon-rgb as its channels). */
.hl-btn, .vs-btn {
  --neon: #3d6aff; --neon-rgb: 61, 106, 255;
  position: relative; overflow: hidden; clip-path: none; border-radius: 7px; gap: 10px;
  border: 1px solid var(--neon); background: transparent; color: #fff;
  font: 600 14px/1 var(--display); letter-spacing: 2px; text-transform: uppercase;
  box-shadow: 0 0 0 0 transparent;
  transition: all .2s ease-in;
}
.hl-btn::before, .vs-btn::before {
  content: ""; display: block; width: 0; height: 86%; position: absolute; top: 7%; left: 0; opacity: 0; pointer-events: none;
  background: #fff; box-shadow: 0 0 50px 30px #fff; transform: skewX(-20deg);
}
.hl-btn:hover, .vs-btn:hover, .hl-btn:focus-visible, .vs-btn:focus-visible {
  background: var(--neon); outline: none;
  box-shadow: 0 0 30px 5px rgba(var(--neon-rgb), .8);
  transition: all .2s ease-out;
}
.hl-btn:hover::before, .vs-btn:hover::before, .hl-btn:focus-visible::before, .vs-btn:focus-visible::before { animation: sh02 .5s 0s linear; }
.hl-btn:active, .vs-btn:active { box-shadow: 0 0 0 0 transparent; transition: box-shadow .2s ease-in; }
@keyframes sh02 { from { opacity: 0; left: 0; } 50% { opacity: 1; } to { opacity: 0; left: 100%; } }
.hl-btn svg, .vs-btn svg {
  width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .2s var(--ease);
}
.hl-btn { min-width: 180px; height: 52px; padding: 0 28px; }
.hl-btn.higher { --neon: #2fd18b; --neon-rgb: 47, 209, 139; }
.hl-btn.lower { --neon: #e84057; --neon-rgb: 232, 64, 87; }
.hl-btn.higher:hover svg, .hl-btn.higher:focus-visible svg { transform: translateY(-3px); }
.hl-btn.lower:hover svg, .hl-btn.lower:focus-visible svg { transform: translateY(3px); }
.hilo-list { list-style: none; width: 100%; max-width: 480px; margin: 22px 0 24px; padding: 0; display: flex; flex-direction: column; gap: 4px; text-align: left; }
.hilo-list li {
  display: grid; grid-template-columns: 32px 1fr auto 54px; align-items: center; gap: 10px; padding: 4px 10px 4px 4px;
  background: rgba(1, 10, 19, 0.5); border: 1px solid var(--border); border-left: 3px solid var(--c, var(--border-gold)); cursor: pointer;
  animation: slot-in .4s var(--ease) both;
}
.hilo-list li.first { cursor: default; }
.hilo-list li.right { --c: var(--right); }
.hilo-list li.wrong { --c: var(--wrong); }
.hilo-list li:not(.first):hover { background: rgba(200, 170, 110, 0.06); }
.hl-names { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.hl-names b { font-weight: 600; font-size: 14px; }
.hl-names small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-wr { font: 700 16px/1 var(--display); font-variant-numeric: tabular-nums; }
.hl-mark { text-align: right; font-size: 12px; color: var(--c, var(--muted)); font-weight: 700; }

/* --- who wins ----------------------------------------------------------------------------------------------------------------------- */
.vs-choice { display: flex; gap: 14px; justify-content: center; width: 100%; max-width: 560px; }
.vs-btn { flex: 1; height: 54px; font-size: 16px; }
.vs-btn.blue { --neon: #0ac8b9; --neon-rgb: 10, 200, 185; }
.vs-btn.red { --neon: #e84057; --neon-rgb: 232, 64, 87; flex-direction: row-reverse; }
.vs-btn.blue:hover svg, .vs-btn.blue:focus-visible svg { transform: translateX(-4px); }
.vs-btn.red:hover svg, .vs-btn.red:focus-visible svg { transform: translateX(4px); }

/* The factor map: both teams' portraits with the deciding factors drawn between them (src/factor-map.ts). */
.fmap { margin-top: 14px; }
.fmap-board {
  --icon: 46px; --arc: 58px; --blue-c: var(--ally); --red-c: var(--enemy);
  position: relative; display: grid; grid-template-columns: var(--icon) minmax(0, 1fr) var(--icon); gap: 0;
  max-width: 470px; margin: 0 auto; padding: 6px var(--arc) 12px;
}
.fmap-team { display: flex; flex-direction: column; gap: 12px; z-index: 2; }
.fmap-team.blue { grid-column: 1; }
.fmap-team.red { grid-column: 3; }
.fmap-champ {
  position: relative; display: block; width: var(--icon); height: var(--icon); border: 1px solid var(--border-gold);
  background: var(--bg-2); transition: opacity .25s, box-shadow .25s;
}
.fmap-team.blue .fmap-champ { border-color: rgba(10, 200, 185, .55); }
.fmap-team.red .fmap-champ { border-color: rgba(232, 64, 87, .55); }
.fmap-champ img { display: block; width: 100%; height: 100%; }
.fmap-champ.fx { --c: var(--blue-c); box-shadow: 0 0 0 2px var(--c), 0 0 16px 2px color-mix(in srgb, var(--c) 70%, transparent); border-color: transparent; }
.fmap-champ.fx.red { --c: var(--red-c); }
.fmap-champ.fx.against { box-shadow: 0 0 14px 1px color-mix(in srgb, var(--c) 55%, transparent); outline: 2px dashed var(--c); outline-offset: 1px; }
.fmap-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.fm-link {
  fill: none; stroke: var(--blue-c); stroke-width: var(--w); stroke-linecap: round; opacity: .85;
  filter: drop-shadow(0 0 3px color-mix(in srgb, currentColor 60%, transparent)); color: var(--blue-c);
  animation: fm-in .5s var(--ease) both; animation-delay: calc(.55s + var(--i) * 70ms); transition: opacity .2s;
}
.fm-link.red { stroke: var(--red-c); color: var(--red-c); }
.fm-link.against { stroke-dasharray: 5 4; }
.fm-head.blue { fill: var(--blue-c); }
.fm-head.red { fill: var(--red-c); }
.fmap-chips { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.fmap-val {
  --c: var(--blue-c); position: absolute; transform: translate(-50%, -50%); pointer-events: auto; cursor: default;
  padding: 3px 6px 2px; font: 700 11.5px/1 'Inter', sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap;
  color: color-mix(in srgb, var(--c) 55%, #fff); background: #050f19; border: 1px solid var(--c);
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
  box-shadow: inset 0 0 8px color-mix(in srgb, var(--c) 35%, transparent);
  animation: fm-in .4s var(--ease) both; animation-delay: calc(.65s + var(--i) * 70ms); transition: opacity .2s;
}
.fmap-val.red { --c: var(--red-c); }
.fmap-board.focus .fm-link:not(.hl), .fmap-board.focus .fmap-val:not(.hl) { opacity: .15; }
.fmap-board.focus .fmap-champ.fx:not(.hl) { opacity: .5; }
.fmap-board.focus .fm-link.hl { opacity: 1; }
@keyframes fm-in { from { opacity: 0; } }
.fmap-board.redrawn .fm-link, .fmap-board.redrawn .fmap-val { animation: none; }
.fmap-key {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin: 8px 0 0 !important;
  font-size: 11px; letter-spacing: .04em; color: var(--muted) !important;
}
.fmap-key .k { display: inline-flex; align-items: center; gap: 6px; }
.fmap-key .k::before { content: ''; width: 14px; height: 0; border-top: 2px solid var(--muted); }
.fmap-key .k.blue::before { border-color: var(--ally); }
.fmap-key .k.red::before { border-color: var(--enemy); }
.fmap-key .k.arc::before { height: 7px; border: 2px solid var(--muted); border-bottom: 0; border-radius: 8px 8px 0 0; }
.fmap-key .k.ring::before { width: 8px; height: 8px; border: 2px solid var(--muted); }
.fmap-key .k.dash::before { border-top-style: dashed; }
.fmap-none { margin-top: 10px !important; color: var(--text-2) !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.winbar.static { max-width: 560px; margin: 4px 0 0; }
.winbar.grow .win-fill { animation: grow 1s var(--ease) both; }
@keyframes grow { from { width: 50%; } }
.fav-tag { font-style: normal; font-size: 9.5px; letter-spacing: .14em; padding: 3px 7px; background: var(--gold); color: #1a1206; }
.versus .team-title { gap: 8px; }
.vrow.round {
  grid-template-columns: 22px 1fr auto 1fr; padding: 6px 8px; cursor: pointer; text-align: left;
  background: rgba(1, 10, 19, 0.5); border: 1px solid var(--border); border-left: 3px solid var(--c);
}
.vrow.round:hover { background: rgba(200, 170, 110, 0.06); }
.vrow.round.right { --c: var(--right); }
.vrow.round.wrong { --c: var(--wrong); }
.vrow.round .lineup img { width: 32px; height: 32px; }
.vrow.round .lineup.red { justify-content: flex-end; }
.vrow.round .lineup:not(.fav) img { opacity: .55; filter: grayscale(.5); }
.vr-mark { color: var(--c); font-weight: 700; }
.vr-pct { font: 700 13px/1 'Inter', sans-serif; color: var(--muted); }
.sum-card .versus-rows { max-width: 520px; margin: 22px 0 24px; }

body.loading main { opacity: .4; transition: opacity .2s; }

/* --- smaller screens ---------------------------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .stage {
    grid-template-columns: 1fr 1fr; gap: 0 16px;
    grid-template-areas: 'ask ask' 'ally enemy' 'options options' 'controls controls' 'explain explain';
  }
  .centre { display: contents; }
  .ask { grid-area: ask; }
  .ally { grid-area: ally; }
  .enemy { grid-area: enemy; }
  .options { grid-area: options; justify-self: center; margin-top: 18px; }
  .controls { grid-area: controls; }
  .explain { grid-area: explain; justify-self: center; }
  .slot { height: 50px; }
  .summary { grid-template-columns: 1fr; max-width: 640px; margin-left: auto; margin-right: auto; }
  .vs-choice { grid-area: options; justify-self: center; margin-top: 18px; }
  .coach-stage { grid-template-columns: 1fr 1fr; gap: 18px 16px; grid-template-areas: 'board board' 'blue red'; }
  .coach-stage .board { grid-area: board; }
  .coach-stage .ally { grid-area: blue; }
  .coach-stage .enemy { grid-area: red; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .top { padding: 14px 12px 4px; }
  .brand { padding: 0 8px; }
  .brand::before, .brand::after { display: none; }
  .brand-word { font-size: 28px; }
  .brand-by { font-size: 9.5px; }
  .icon-btn { width: 36px; height: 36px; }
  main { padding: 0 12px 28px; }
  .pips { gap: 16px; margin-bottom: 16px; }
  .pips li + li::before { width: 10px; right: calc(100% + 3px); }
  .pip { width: 30px; height: 30px; }
  .pip .lane { width: 15px; height: 15px; }
  .ask > span:first-of-type { font-size: 22px; }
  .ask-sub { font-size: 13.5px; }
  .options { gap: 8px; }
  .card { aspect-ratio: 308 / 540; }
  .card-name { font-size: 13.5px; }
  .card-score { font-size: 19px; }
  .card-tag { font-size: 8.5px; letter-spacing: .06em; }
  .card-split { grid-template-columns: 1fr; gap: 2px; margin-top: 4px; padding-top: 4px; }
  .card-split span { font-size: 11px; }
  .card-split i { font-size: 8px; }
  .card.revealed .card-plate { padding: 30px 4px 8px; }
  .card-badge { font-size: 8.5px; padding: 2px 7px; top: 6px; }
  .stage { gap: 0 8px; }
  .team { gap: 4px; }
  .team-title { font-size: 11px; letter-spacing: .14em; }
  .slot { height: 42px; padding: 0 8px; gap: 6px; }
  .slot .lane { width: 14px; height: 14px; }
  .slot-text b { font-size: 12px; }
  .slot-text small { font-size: 8.5px; letter-spacing: .08em; }
  .slot-q { font-size: 20px; }
  .btn { padding: 0 18px; }
  .sum-card { padding: 24px 16px 20px; }
  .sum-score b { font-size: 72px; }
  .sum-rounds { gap: 8px; }
  .reasons li { grid-template-columns: 24px 1fr auto auto; gap: 8px; }
  .reasons img { width: 24px; height: 24px; }
  .r-val { min-width: 52px; }
  .modes { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding: 0 8px; gap: 0; margin-top: 4px; }
  .modes::-webkit-scrollbar { display: none; }
  .mode { flex: none; padding: 9px 10px; font-size: 11px; letter-spacing: .06em; gap: 6px; }
  .mode-glyph { display: none; }
  .phase { gap: 3px; }
  .ph { width: 28px; height: 22px; font-size: 9.5px; }
  .ph:nth-child(1), .ph:nth-child(3), .ph:nth-child(5), .ph:nth-child(7), .ph:nth-child(9) { margin-right: 2px; }
  .winbar { gap: 8px; margin-bottom: 16px; }
  .impact { margin: -6px 0 12px; }
  .imp { font-size: 11.5px; gap: 5px 6px; }
  .imp-who, .imp-name { display: none; }
  .imp-chip { padding: 2px 6px; }
  .pop { font-size: 19px; right: 8px; }
  .enemy .pop { left: 8px; }
  .fx-tag { top: 3px; font-size: 8px; letter-spacing: .08em; padding: 2px 4px; right: 4px; }
  .enemy .fx-tag { left: 4px; }
  .win-side b { font-size: 17px; min-width: 56px; }
  .win-side small { display: none; }
  .pool, .pool-grid { gap: 5px; }
  .hv { right: 6px; }
  .enemy .hv { left: 6px; }
  .hv b { font-size: 16px; }
  .hv small { font-size: 7.5px; letter-spacing: .08em; }
  .tile-gain { font-size: 9px; padding: 1px 3px; top: 2px; right: 2px; }
  .tab { padding: 8px 14px; }
  .coach-result .sum-card { padding: 20px 12px 18px; }
  .pool-row { grid-template-columns: 30px repeat(5, minmax(0, 1fr)); gap: 4px; }
  .pool-lane small { display: none; }
  .tile { padding: 3px 2px 4px; gap: 2px; }
  .tile small { font-size: 9.5px; }
  .tile-tag { font-size: 9px; padding: 1px 4px; top: 3px; }
  .grade { width: 88px; height: 88px; margin: 28px 0 24px; }
  .grade b { font-size: 48px; }
  .coach-numbers b { font-size: 17px; }
  .vrow { grid-template-columns: 34px 1fr auto; gap: 6px; }
  .lineup img { width: 30px; height: 30px; }
  .hilo-cards { grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr); }
  .mcard { aspect-ratio: 3 / 4.6; }
  .mc-plate { padding: 10px 6px 12px; gap: 2px; }
  .mc-name { font-size: 17px; }
  .mc-lane { font-size: 9px; letter-spacing: .1em; }
  .mc-vs { font-size: 11.5px; flex-wrap: wrap; justify-content: center; gap: 4px; }
  .mc-vs img { width: 20px; height: 20px; }
  .mc-wr { font-size: 32px; margin-top: 4px; }
  .mc-sub { font-size: 9px; }
  .hilo-vs, .hilo-badge { width: 52px; height: 52px; font-size: 12px; }
  .hilo-badge { font-size: 17px; }
  .hl-btn { min-width: 0; flex: 1; height: 50px; padding: 0 12px; font-size: 14px; }
  .hilo-pips { gap: 7px; }
  .hilo-pips li + li::before { display: none; }
  .hilo-pips .pip { width: 26px; height: 26px; }
  .vs-btn { height: 50px; gap: 8px; font-size: 14px; letter-spacing: .1em; }
  .versus .explain.shown { padding: 14px 10px; }
  .fmap-board { --icon: 38px; --arc: 46px; }
  .fmap-team { gap: 10px; }
  .fmap-val { font-size: 10.5px; padding: 3px 4px 2px; }
  .vrow.round { grid-template-columns: 16px 1fr auto 1fr; gap: 4px; padding: 5px 4px; }
  .vrow.round .lineup { gap: 2px; }
  .vrow.round .lineup img { width: 100%; max-width: 26px; height: auto; aspect-ratio: 1; }
  .vr-pct { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* local-only dev tools (npm run dev) */
.devbar {
  position: fixed; left: 10px; bottom: 10px; z-index: 90; display: flex; align-items: center; gap: 6px; padding: 6px 8px;
  background: rgba(1, 10, 19, .92); border: 1px dashed var(--hinted); font-size: 11.5px; color: var(--text-2);
}
.devbar b { color: var(--hinted); letter-spacing: .14em; font-size: 10px; }
.devbar button { padding: 3px 8px; background: var(--surface-2); border: 1px solid var(--border); cursor: pointer; }
.devbar button:hover { border-color: var(--hinted); color: var(--text); }
.dev-date { font-variant-numeric: tabular-nums; min-width: 84px; text-align: center; }
.devbar button.on { border-color: var(--hinted); color: var(--hinted); }
