/* Depth Chart. Built from design/ (Tiers, RevealStates, the 390x844 boards and RepDesktop).
   One dark look on purpose: the board is a stadium at night. Mobile first; desktop gets the
   wide score bug and the centered rep from RepDesktop. */
:root {
  --ground: #0B0F14;
  --panel: #141A22;
  --panel-deep: #0F141B;
  --line: #2B3542;
  --line-soft: #232C38;
  --line-faint: #1C232D;
  --text: #F4F6F9;
  --text-2: #C9D0DA;
  --muted: #9AA3B2;
  --dim: #5E6878;
  --accent: #FFC72C;
  --accent-hi: #FFD65C;
  --red: #FF3B3B;
  --red-soft: #FF6B6B;
  --red-deep: #1A0F12;
  --red-track: #3A1A1E;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --top: env(safe-area-inset-top, 0px);
  --bottom: env(safe-area-inset-bottom, 0px);
  --vh: 100dvh;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ground); color: var(--text); }
body { font: 16px/1.4 var(--body); -webkit-text-size-adjust: 100%; overflow: hidden; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
a:hover { color: var(--accent-hi); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- frame ---------- */
.app {
  position: relative; width: 100%; max-width: 430px; margin: 0 auto;
  height: var(--vh); overflow: hidden;
  display: flex; flex-direction: column; background: var(--ground);
}
.deco { position: absolute; left: 50%; top: 0; width: 390px; height: 844px; transform: translateX(-50%); pointer-events: none; }
.screen { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.cap { font-size: 11px; letter-spacing: .14em; color: var(--muted); font-weight: 600; text-transform: uppercase; }

/* chip: "The Daily Roster | Week 1" */
.chip { position: relative; display: flex; align-items: stretch; height: 36px; }
.chip > span { display: flex; align-items: center; font-family: var(--cond); letter-spacing: .1em; text-transform: uppercase; font-size: 16px; }
.chip .a { padding: 0 12px; background: var(--accent); color: var(--ground); font-weight: 800; }
.chip .b { padding: 0 14px; background: var(--panel); border: 1px solid var(--line); border-left: 0; color: var(--text); font-weight: 700; }
.chip.sm { height: 32px; }
.chip.sm > span { font-size: 14px; }
.chip.sm .a { padding: 0 10px; }
.chip.sm .b { padding: 0 12px; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 60px;
  background: var(--accent); color: var(--ground); border: 0; border-radius: 6px;
  font-family: var(--cond); font-weight: 800; font-size: 24px; letter-spacing: .08em; text-transform: uppercase;
}
.btn:hover { background: var(--accent-hi); }
.btn:focus-visible { outline: 2px solid rgba(255, 199, 44, .45); outline-offset: 3px; }
.btn svg { flex: none; }

/* ---------- home ---------- */
.home { justify-content: space-between; padding: calc(64px + var(--top)) 24px calc(44px + var(--bottom)); }
.home .top { position: relative; display: flex; flex-direction: column; gap: 32px; margin-top: clamp(16px, 14.3vh, 120px); }
.brand { display: flex; align-items: center; gap: 16px; }
.bars { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.bars i { display: block; height: 7px; }
.brand h1 { margin: 0; font: 800 60px/.9 var(--cond); letter-spacing: -.01em; text-transform: uppercase; }
.pitch { margin: 0; max-width: 300px; font-size: 19px; line-height: 1.35; font-weight: 500; color: var(--text-2); }
.pitch b { color: var(--text); font-weight: 700; }
.home .go { position: relative; display: flex; flex-direction: column; gap: 22px; align-items: center; }
.home .go .btn { height: 64px; font-size: 26px; }
.link { background: none; border: 0; font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; padding: 10px 16px; }

/* how to play sheet */
.scrim { position: absolute; inset: 0; background: rgba(11, 15, 20, .72); z-index: 5; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--panel);
  border-top: 2px solid var(--accent); border-radius: 16px 16px 0 0;
  padding: 20px 20px calc(36px + var(--bottom)); display: flex; flex-direction: column; gap: 20px;
  max-height: 100%; overflow-y: auto; animation: rise .22s ease-out both;
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet h2 { margin: 0; font: 800 32px/1 var(--cond); letter-spacing: .02em; text-transform: uppercase; }
.x { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 6px; background: var(--ground); border: 1px solid var(--line); color: var(--text); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; padding: 14px; background: var(--panel-deep); border: 1px solid var(--line-soft); border-radius: 6px; }
.steps .n { flex: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--accent); color: var(--ground); font: 800 22px/1 var(--cond); border-radius: 4px; }
.steps .body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.steps .h { font: 700 20px/1.1 var(--cond); letter-spacing: .04em; text-transform: uppercase; }
.steps p { margin: 0; font-size: 15px; line-height: 1.4; color: var(--text-2); }
.steps p b { color: var(--red-soft); font-weight: 700; }
.steps .hrow { display: flex; align-items: center; gap: 10px; }
.legend { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; font: 700 13px/1.15 var(--cond); letter-spacing: .1em; text-transform: uppercase; }
.legend div { display: flex; align-items: center; gap: 8px; }
.legend i { display: block; height: 14px; }

/* ---------- score bug ---------- */
.bug { position: relative; z-index: 2; flex: none; display: flex; align-items: stretch; height: 64px; margin-top: max(12px, var(--top)); background: var(--panel); border-bottom: 2px solid var(--accent); }
.bug.red { border-bottom-color: var(--red); }
.bug .inner { display: flex; align-items: stretch; width: 100%; }
.bug .side { display: flex; flex-direction: column; justify-content: center; padding: 0 16px; min-width: 96px; }
.bug .side.r { align-items: flex-end; }
.bug .v { font: 800 30px/1 var(--cond); font-variant-numeric: tabular-nums; color: var(--text); transition: color 300ms; }
.bug .mid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; }
.segs { display: flex; gap: 5px; }
.segs i { display: block; width: 22px; height: 8px; background: var(--line-soft); transition: background 200ms; }
.segs i.cur { background: transparent; box-shadow: inset 0 0 0 2px var(--accent); }
.segs i.cur.late { box-shadow: inset 0 0 0 2px var(--red); }
.segs i.dead { background: var(--red-track); box-shadow: inset 0 0 0 2px var(--red); }
.bug .lbl { font: 700 13px/1 var(--cond); letter-spacing: .12em; text-transform: uppercase; }
.bug .logo { display: none; }

/* ---------- rep ---------- */
.rep-wrap { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.rep-main { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 0 20px; min-height: 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--panel-deep); border-bottom: 1px solid var(--line-soft); }
.card-head .k { font: 800 14px/1 var(--cond); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.card-head .c { font: 700 13px/1 var(--cond); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .q { margin: 0; padding: 22px 16px 26px; font: 700 34px/1.06 var(--cond); }
.hint { margin: 0; text-align: center; font-size: 14px; line-height: 1.4; color: var(--muted); }
.misses { display: flex; flex-direction: column; gap: 6px; max-height: 160px; overflow: hidden; }
.misses:empty { display: none; }
.miss { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: rgba(255, 59, 59, .1); border: 1px solid rgba(255, 59, 59, .4); border-radius: 6px; }
.miss.old { opacity: .55; }
.miss .w { display: flex; align-items: center; gap: 10px; min-width: 0; }
.miss .w svg { flex: none; }
.miss .w span { font-size: 16px; font-weight: 700; text-decoration: line-through; text-decoration-color: var(--red-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.miss .tag { font: 700 13px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--red-soft); white-space: nowrap; }

.dock { position: relative; z-index: 2; flex: none; display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(16px + max(24px, var(--bottom))); background: var(--panel-deep); border-top: 1px solid var(--line-soft); transition: opacity 150ms ease-out; }
.dock.locked { opacity: .5; }
.clock { position: relative; flex: none; width: 56px; height: 56px; }
.clock svg { display: block; width: 100%; height: 100%; }
.clock .arc { transition: stroke-dasharray 100ms linear; }
.clock.late svg { filter: drop-shadow(0 0 10px rgba(255, 59, 59, .75)); animation: pulse .6s ease-in-out infinite; }
.pen { position: absolute; left: 36px; top: -22px; padding: 2px 7px; background: var(--red); color: var(--ground); border-radius: 4px; font: 800 15px/1.2 var(--cond); letter-spacing: .04em; white-space: nowrap; animation: rise .22s ease-out both; }
.guess {
  flex: 1; min-width: 0; height: 56px; padding: 0 14px; background: var(--panel); border: 2px solid var(--accent); border-radius: 6px;
  color: var(--text); font-size: 19px; font-weight: 600; outline: none; -webkit-appearance: none; appearance: none;
}
.guess::placeholder { color: var(--dim); }
.guess.bad { border-color: var(--red); animation: shake .4s ease; }
.guess:disabled { border-color: var(--line); color: var(--dim); opacity: 1; -webkit-text-fill-color: var(--dim); }
.send { flex: none; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--accent); border: 0; border-radius: 6px; color: var(--ground); }
.send:disabled { background: var(--line); color: var(--dim); cursor: default; }
.send .t { display: none; }
.deskhint { display: none; }

/* ---------- reveal ---------- */
.rv { position: relative; flex: 1; padding: 28px 20px 0; display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow: hidden; }
.rv.compact { padding-top: 20px; gap: 16px; }
.rv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rv-head .k { font: 800 14px/1 var(--cond); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.rv-head .c { font: 700 13px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv.compact .rv-head, .rv.compact .rv-sub { display: none; }
.rv-sub { margin: 0; text-align: center; font-size: 14px; color: var(--muted); }
.board { position: relative; flex: none; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--panel-deep); }
.board.dark { background: #080B0F; }
.row { position: relative; display: flex; align-items: center; gap: 0; height: 64px; padding: 0 16px; border-bottom: 1px solid var(--line-soft); transition: height 200ms ease-out, padding 200ms ease-out, opacity 200ms ease-out; }
.row:last-child { border-bottom: 0; }
.row .lamp { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(90deg, var(--c2), var(--c3) 70%); box-shadow: inset 4px 0 0 var(--c), inset 0 0 18px var(--c3); }
.row .l { position: relative; width: 150px; flex: none; font: 800 17px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: #2E3743; transition: font-size 200ms, width 200ms, color 90ms; }
.row .dash { position: relative; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px); }
.row .chip { position: relative; display: none; flex: 1; min-width: 0; height: 32px; align-items: center; justify-content: center; padding: 0 8px; background: var(--c); color: var(--ground); border-radius: 4px; font: 800 16px/32px var(--cond); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* lights */
.row.lit .lamp { opacity: 1; }
.row.lit .l { color: var(--c); text-shadow: 0 0 12px var(--c2); }
.row.flick .lamp { animation: flick-on 120ms linear both; }
.row.flick .l { animation: flick-label 120ms linear both; }
.row.dead .lamp { animation: flick-dead 160ms linear both; }
.row.dead .l { animation: flick-dead-label 160ms linear both; }
.row.above { opacity: .4; }
.row.result { z-index: 2; }
.row.result .chip { display: flex; animation: chip-in 160ms ease-out both; }
.row.result .dash { display: none; }
.row.flare { animation: flare 150ms ease-out; }
.row.pulse .lamp { animation: pulse-op 150ms ease-out; }
.board.calm .row .lamp, .board.calm .row .l { transition: opacity 300ms ease-out, color 300ms ease-out; }
.board.compact .row { height: 40px; padding: 0 14px; }
.board.compact .row.result { height: 48px; }
.board.compact .row .l { width: 140px; font-size: 14px; }
.board.compact .row.after .l { color: #2E3743; }
.gold-flash { position: fixed; inset: 0; z-index: 50; pointer-events: none; background: #FFC72C; opacity: .55; }
.stamp { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; transform-origin: left center; animation: stamp 180ms cubic-bezier(.34, 1.56, .64, 1) both; }
.stamp .lead { font: 700 14px/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stamp h2 { margin: 0; font: 800 54px/.92 var(--cond); letter-spacing: -.01em; text-transform: uppercase; }
.stamp .who { font-size: 22px; font-weight: 700; margin-top: 4px; overflow-wrap: anywhere; }
.tiles { display: flex; gap: 10px; animation: stamp 180ms cubic-bezier(.34, 1.56, .64, 1) both; }
.tile { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.tile.wide { flex: 1.3; }
.tile .v { font: 800 34px/1 var(--cond); font-variant-numeric: tabular-nums; }
.talk { margin: 0; font-size: 17px; line-height: 1.35; font-weight: 500; color: var(--text-2); animation: rise 200ms ease-out both; }
.talk.d2 { animation-delay: 80ms; }
.next-wrap { position: relative; z-index: 2; flex: none; padding: 12px 20px calc(16px + max(24px, var(--bottom))); }
.next-wrap.in { animation: rise 220ms ease-out both; }

/* ---------- time's up ---------- */
.glow-red { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 46%, rgba(255, 59, 59, .22), rgba(11, 15, 20, 0) 60%); }
.tu { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 0 20px; text-align: center; min-height: 0; }
.horn { position: relative; width: 132px; height: 132px; flex: none; animation: horn .35s ease-in-out 3; }
.horn svg:first-child { filter: drop-shadow(0 0 18px rgba(255, 59, 59, .7)); }
.horn .mega { position: absolute; right: -14px; top: -8px; }
.tu-title { display: flex; flex-direction: column; gap: 6px; animation: stamp 180ms ease-out both; }
.tu h2 { margin: 0; font: 800 72px/.9 var(--cond); letter-spacing: -.01em; text-transform: uppercase; color: var(--red); }
.tu .sub { margin: 0; font: 700 18px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tu .card { width: 100%; opacity: .85; }
.tu .card-head { padding: 8px 14px; }
.tu .card-head .k { color: var(--muted); font-size: 13px; }
.tu .card-head .c { font-size: 12px; }
.tu .card .q { padding: 14px 14px 16px; font-size: 22px; line-height: 1.1; color: var(--text-2); text-align: left; }
.tu .tiles { width: 100%; animation: none; }
.tu .tile { align-items: center; padding: 10px 14px; }
.tu .tile .v { font-size: 30px; color: var(--red-soft); }
.tu .talk { animation: none; }

/* ---------- end ---------- */
.end { padding: calc(52px + var(--top)) 20px calc(36px + var(--bottom)); overflow-y: auto; }
.total { position: relative; display: flex; align-items: flex-end; justify-content: space-between; margin-top: 18px; padding-bottom: 14px; border-bottom: 2px solid var(--accent); transform-origin: left bottom; animation: stamp 180ms ease-out both; }
.total .cap { font-size: 12px; }
.total .l, .total .r { display: flex; flex-direction: column; }
.total .r { align-items: flex-end; }
.total .yd { font: 800 84px/.88 var(--cond); font-variant-numeric: tabular-nums; }
.total .sc { font: 800 44px/.9 var(--cond); color: var(--accent); font-variant-numeric: tabular-nums; }
.recap { position: relative; list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--panel-deep); }
.recap li { height: 44px; flex: none; border-bottom: 1px solid var(--line-faint); }
.recap .rc { display: flex; align-items: center; gap: 12px; width: 100%; height: 100%; padding: 0 10px 0 12px; background: none; border: 0; text-align: left; }
.recap .rc:hover { background: var(--panel); }
.recap .rc:focus-visible { outline-offset: -3px; }
.recap .chev { flex: none; color: var(--dim); }
.recap .rc:hover .chev { color: var(--text-2); }
.recap-hint { position: relative; margin: 14px 0 -6px; font: 700 13px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.recap li:last-child { border-bottom: 0; }
.recap .i { width: 22px; flex: none; font: 700 14px/1 var(--cond); color: var(--dim); font-variant-numeric: tabular-nums; }
.recap .sw { width: 10px; height: 22px; flex: none; }
.recap .a { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recap .t { font: 800 13px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.recap .y { width: 44px; flex: none; text-align: right; font: 700 15px/1 var(--cond); color: var(--text-2); font-variant-numeric: tabular-nums; }
.share { position: relative; margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.grid-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.grid-card .gl { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.grid-card .g { font-size: 22px; line-height: 1; letter-spacing: .04em; white-space: nowrap; }
.grid-card .m { flex: none; }
.grid-card .m { font: 700 14px/1.1 var(--cond); letter-spacing: .06em; color: var(--muted); text-align: right; }
.share .btn { height: 56px; font-size: 22px; transition: background 200ms; }
.share .btn.ok { background: #27C28A; }
.next-roster { position: relative; margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.next-roster .gl { display: flex; flex-direction: column; }
.next-roster .s { font-size: 14px; color: var(--text-2); }
.next-roster .cd { font: 800 32px/1 var(--cond); font-variant-numeric: tabular-nums; }
.end .spacer { flex: none; height: 18px; }

.loading { margin: auto; color: var(--muted); font-weight: 600; text-align: center; padding: 0 20px; }
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--bottom)); transform: translateX(-50%); z-index: 20; background: var(--text); color: var(--ground); padding: 10px 16px; border-radius: 999px; font-weight: 700; }

/* ---------- motion ---------- */
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.09); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-9px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
@keyframes stamp { 0% { transform: scale(1.15); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes horn { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes flick-on { 0% { opacity: 0; } 18% { opacity: .75; } 34% { opacity: .08; } 55% { opacity: .9; } 72% { opacity: .25; } 100% { opacity: 1; } }
@keyframes flick-label { 0% { color: #2E3743; } 18% { color: var(--c); } 34% { color: #2E3743; } 55% { color: var(--c); } 72% { color: #2E3743; } 100% { color: var(--c); } }
@keyframes flick-dead { 0% { opacity: 0; } 22% { opacity: .55; } 40% { opacity: .05; } 62% { opacity: .35; } 100% { opacity: 0; } }
@keyframes flick-dead-label { 0% { color: #2E3743; } 22% { color: var(--c); } 40% { color: #2E3743; } 62% { color: var(--c); } 100% { color: #2E3743; } }
@keyframes flare { 0% { transform: scale(1); } 50% { transform: scale(1.04); box-shadow: 0 0 28px var(--c2), inset 0 0 0 2px var(--c); } 100% { transform: scale(1); } }
@keyframes pulse-op { 0% { opacity: 1; } 50% { opacity: .55; } 100% { opacity: 1; } }
@keyframes chip-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .stamp, .tiles, .talk, .next-wrap.in { animation: fade 200ms ease-out both !important; }
  .board.calm .row .lamp, .board.calm .row .l { transition: opacity 300ms ease-out, color 300ms ease-out !important; }
  .row.pulse .lamp { animation: pulse-op 150ms ease-out !important; }
}

/* every screen can scroll if a phone is short or turned sideways */
.home, .tu, .rv, .end { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.end > *, .tu > *, .rv > * { flex-shrink: 0; }

/* narrow phones (360 wide): keep the score on screen */
@media (max-width: 380px) {
  .bug .side { min-width: 72px; padding: 0 12px; }
  .bug .v { font-size: 26px; }
  .segs { gap: 4px; }
  .segs i { width: 19px; }
  .card .q { font-size: 30px; }
  .total .yd { font-size: 72px; }
}

/* short phones: tighten the reveal and time's up so the buttons stay on screen */
@media (max-height: 700px) {
  .row { height: 52px; }
  .stamp h2 { font-size: 44px; }
  .tile .v { font-size: 28px; }
  .home .top { gap: 24px; }
  .tu { gap: 14px; padding-top: 12px; }
  .horn { width: 96px; height: 96px; }
  .horn svg:first-child { width: 96px; height: 96px; }
  .tu h2 { font-size: 56px; }
  .tu .card .q { font-size: 19px; padding: 10px 14px 12px; }
  .end { padding-top: calc(28px + var(--top)); }
  .recap li { height: 40px; }
}

/* phones turned sideways */
@media (max-height: 480px) {
  .home { padding-top: calc(20px + var(--top)); padding-bottom: calc(20px + var(--bottom)); gap: 20px; }
  .home .top { margin-top: 0; gap: 14px; }
  .brand h1 { font-size: 44px; }
  .row { height: 40px; }
}

/* sound toggle */
.snd { position: absolute; top: calc(12px + var(--top)); right: max(12px, env(safe-area-inset-right, 0px)); z-index: 4; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); }
.snd:hover { color: var(--text); border-color: var(--muted); }
.snd[aria-pressed="false"] { color: var(--dim); }
.end .snd { top: calc(12px + var(--top)); }
/* in the score bug during reps, the reveal and time's up */
.bug .snd.in-bug { position: static; flex: none; width: 44px; height: auto; border: 0; border-left: 1px solid var(--line); border-radius: 0; }
.bug .snd.in-bug:focus-visible { outline-offset: -3px; }
@media (min-width: 381px) and (max-width: 899px) {
  .bug .side { min-width: 80px; padding: 0 12px; }
}

/* ---------- desktop (RepDesktop) ---------- */
@media (min-width: 900px) {
  .app { max-width: none; }
  .home, .end, .tu, .rv, .next-wrap { width: 100%; max-width: 460px; margin-left: auto; margin-right: auto; }
  .bug { height: 72px; margin-top: 0; }
  .bug .inner { width: min(1080px, calc(100% - 48px)); margin: 0 auto; }
  .bug .logo { display: flex; align-items: center; gap: 12px; padding-right: 28px; border-right: 1px solid var(--line); }
  .bug .logo .bars { gap: 3px; }
  .bug .logo .bars i { height: 4px; }
  .bug .logo b { font: 800 22px/1 var(--cond); letter-spacing: .02em; text-transform: uppercase; }
  .bug .logo span { font: 700 14px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .bug .side { padding: 0 28px; min-width: 120px; }
  .bug .side.r { padding: 0 28px; }
  .bug .v { font-size: 32px; }
  .bug .mid { gap: 8px; }
  .segs { gap: 6px; }
  .segs i { width: 36px; height: 9px; }
  .bug .lbl { font-size: 14px; }
  .rep-wrap { align-items: center; justify-content: center; gap: 28px; padding: 24px; }
  .rep-main { flex: none; width: min(760px, 100%); padding: 0; }
  .rep-main .card { border-radius: 8px; }
  .rep-main .card-head { padding: 12px 24px; }
  .rep-main .card-head .k { font-size: 15px; }
  .rep-main .card-head .c { font-size: 14px; }
  .rep-main .card .q { padding: 36px 32px 40px; font-size: 48px; line-height: 1.04; text-align: center; }
  .rep-main .hint { display: none; }
  .rep-wrap .dock { width: min(760px, 100%); padding: 0; gap: 16px; background: none; border: 0; }
  .clock { width: 72px; height: 72px; }
  .pen { left: 50px; }
  .guess { height: 64px; padding: 0 20px; border-radius: 8px; font-size: 22px; }
  .send { width: auto; height: 64px; padding: 0 28px; border-radius: 8px; font: 800 22px/1 var(--cond); letter-spacing: .08em; text-transform: uppercase; }
  .send .t { display: inline; }
  .deskhint { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px; font-size: 14px; color: var(--muted); }
  .deskhint span { display: flex; align-items: center; gap: 6px; }
  kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; font: 12px/1 var(--body); color: var(--text-2); }
  .deco { width: 1280px; height: 800px; }
  /* End on a laptop: two columns so the whole final fits without scrolling */
  .end { max-width: 920px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto auto; column-gap: 40px; align-content: center; padding-top: calc(40px + var(--top)); padding-bottom: calc(32px + var(--bottom)); }
  .end > .chip { grid-column: 1 / -1; justify-self: start; }
  .end > .total { grid-column: 1; grid-row: 2; }
  .end > .recap-hint { grid-column: 1; grid-row: 3; }
  .end > .recap { grid-column: 1; grid-row: 4; align-self: start; }
  .end > .share { grid-column: 2; grid-row: 2 / 4; align-self: end; margin-top: 0; }
  .end > .spacer { display: none; }
  .end > .next-roster { grid-column: 2; grid-row: 4; align-self: end; margin-top: 0; }
}

/* ---------- End: full depth chart sheet (design/EndAnswers) ---------- */
body.sheet-open { overflow: hidden; }
.sheet-wrap { position: fixed; inset: 0; z-index: 30; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(5, 8, 11, .72); opacity: 0; transition: opacity 200ms; }
.dsheet { position: relative; display: flex; flex-direction: column; width: 100%; height: var(--vh, 100dvh); background: var(--panel); border-top: 1px solid var(--line); transform: translateY(100%); transition: transform 240ms cubic-bezier(.2, .8, .2, 1); }
.sheet-wrap.in .sheet-bg { opacity: 1; }
.sheet-wrap.in .dsheet { transform: none; }
.sheet-wrap.out .sheet-bg { opacity: 0; }
.sheet-wrap.out .dsheet { transform: translateY(100%); transition-duration: 200ms; }
.sh-head { flex: none; padding: calc(8px + var(--top)) max(16px, env(safe-area-inset-right, 0px)) 14px max(16px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--line); }
.sh-grab { width: 40px; height: 4px; margin: 0 auto 8px; border-radius: 2px; background: var(--line); }
.sh-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sh-back { display: inline-flex; align-items: center; gap: 6px; height: 44px; margin-left: -8px; padding: 0 10px 0 8px; background: none; border: 0; border-radius: 6px; font: 800 16px/1 var(--cond); letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.sh-back:hover { background: var(--panel-deep); }
.sh-lab { font: 800 13px/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.sh-meta { display: flex; justify-content: space-between; margin-top: 10px; font: 700 13px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sh-head h2 { margin: 8px 0 0; font: 800 26px/1.08 var(--cond); text-wrap: balance; }
.sh-sum { margin: 10px 0 0; font-size: 15px; line-height: 1.4; color: var(--text-2); }
.sh-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 0 calc(24px + var(--bottom)); outline: 0; }
.sh-group ul { list-style: none; margin: 0; padding: 0; }
.sh-tier { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; height: 36px; margin: 0; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); background: var(--panel-deep); border-bottom: 1px solid var(--line); border-top: 2px solid var(--c); font: 800 15px/1 var(--cond); letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
.sh-tier .n { font-size: 13px; color: var(--dim); letter-spacing: .08em; }
.sh-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 12px; row-gap: 3px; align-items: center; height: 56px; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--line); border-left: 4px solid transparent; padding-left: max(12px, env(safe-area-inset-left, 0px)); content-visibility: auto; contain-intrinsic-size: auto 56px; }
.sh-row .sw { grid-row: 1 / 3; width: 10px; height: 26px; background: var(--c); }
.sh-row .nm { display: flex; align-items: center; gap: 8px; min-width: 0; font: 700 19px/1.05 var(--cond); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-row .pc { font: 800 20px/1 var(--cond); font-variant-numeric: tabular-nums; text-align: right; color: var(--text); }
.sh-row .tn { grid-column: 2; font: 700 12px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--c); }
.sh-row .py { font: 700 13px/1 var(--cond); font-variant-numeric: tabular-nums; color: var(--muted); text-align: right; white-space: nowrap; }
.sh-row.mine { border-left-color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--panel)); }
.yc { flex: none; padding: 3px 6px; border-radius: 3px; background: var(--c); color: #0B0F14; font: 800 11px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; }
.sh-miss { margin: 18px max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); border: 1px solid var(--line); border-radius: 6px; background: var(--panel-deep); }
.sh-miss summary { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; font: 800 15px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--red-soft); cursor: pointer; list-style: none; }
.sh-miss summary::-webkit-details-marker { display: none; }
.sh-miss summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: rotate(45deg); transition: transform 150ms; }
.sh-miss[open] summary::after { transform: rotate(-135deg); }
.sh-miss summary .n { color: var(--muted); }
.sh-miss ul { list-style: none; margin: 0; padding: 0 14px 10px; }
.sh-miss li { display: flex; align-items: center; gap: 10px; height: 44px; border-top: 1px solid var(--line-faint); font-size: 16px; color: var(--text-2); text-decoration: line-through; text-decoration-color: rgba(255, 107, 107, .5); }
@media (min-width: 720px) {
  .sheet-wrap { align-items: center; }
  .dsheet { width: 560px; height: min(820px, 88vh); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transform: translateY(24px); opacity: 0; transition: transform 220ms cubic-bezier(.2, .8, .2, 1), opacity 180ms; }
  .sheet-wrap.in .dsheet { transform: none; opacity: 1; }
  .sheet-wrap.out .dsheet { transform: translateY(24px); opacity: 0; }
  .sh-head { padding: 14px 24px 16px; }
  .sh-grab { display: none; }
  .sh-tier, .sh-row { padding-left: 24px; padding-right: 24px; }
  .sh-row { padding-left: 20px; }
  .sh-miss { margin: 18px 24px 0; }
  .sh-list { padding-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .dsheet, .sheet-bg { transition: none !important; }
}

/* ---------- menu button (every screen) ---------- */
.mnu { position: absolute; top: calc(12px + var(--top)); left: max(12px, env(safe-area-inset-left, 0px)); z-index: 4; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); }
.mnu:hover { color: var(--text); border-color: var(--muted); }
.bug .mnu.in-bug { position: static; flex: none; width: 44px; height: auto; border: 0; border-right: 1px solid var(--line); border-radius: 0; }
.bug .mnu.in-bug:focus-visible { outline-offset: -3px; }
.segs { width: 100%; max-width: 184px; justify-content: center; }
.segs i { flex: 1 1 0; min-width: 0; max-width: 22px; }
@media (min-width: 900px) { .segs { max-width: 300px; } .segs i { max-width: 36px; } .bug .logo { padding-left: 16px; } }

/* ---------- menu + settings ---------- */
.menu-wrap { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-start; justify-content: center; padding: calc(12px + var(--top)) 12px calc(12px + var(--bottom)); overflow-y: auto; }
.menu-bg { position: fixed; inset: 0; background: rgba(5, 8, 11, .78); }
.menu { position: relative; width: 100%; max-width: 440px; margin: auto 0; padding: 18px 18px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.menu-wrap.in .menu { animation: menu-in 160ms ease-out; }
@keyframes menu-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.menu-head { display: flex; justify-content: space-between; align-items: flex-start; }
.menu-head .k { font: 800 12px/1 var(--cond); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.menu-head h2 { margin: 4px 0 0; font: 800 40px/1 var(--cond); text-transform: uppercase; }
.menu .x { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--panel-deep); border: 1px solid var(--line); border-radius: 6px; color: var(--text); }
.menu-lab { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; font: 800 12px/1 var(--cond); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.menu-lab::after { content: ""; flex: 1; border-top: 1px dashed var(--line); }
.mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mtile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 92px; padding: 12px 8px; background: var(--panel-deep); border: 1px solid var(--line); border-radius: 6px; color: var(--muted); text-decoration: none; text-align: center; font: inherit; }
.mtile:hover { border-color: var(--muted); color: var(--text); }
.mtile .n { font: 800 16px/1 var(--cond); letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.mtile .s { font-size: 12px; color: var(--dim); }
.mtile.on { border: 2px solid var(--accent); color: var(--accent); }
.mtile.on .n { color: var(--accent); }
.menu-foot { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); }
.set-list { display: flex; flex-direction: column; margin: 16px 0; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-deep); }
.srow { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px; border-bottom: 1px solid var(--line-faint); cursor: pointer; }
.srow:last-child { border-bottom: 0; }
.srow span { display: flex; flex-direction: column; gap: 3px; }
.srow b { font: 800 18px/1 var(--cond); letter-spacing: .06em; text-transform: uppercase; }
.srow small { font-size: 13px; color: var(--muted); }
.srow input[type=checkbox] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tog { flex: none; position: relative; width: 48px; height: 28px; border-radius: 14px; background: var(--line); transition: background 150ms; }
.tog::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--text); transition: transform 150ms; }
.srow input:checked + .tog { background: var(--accent); }
.srow input:checked + .tog::after { transform: translateX(20px); background: var(--ground); }
.srow input:focus-visible + .tog { outline: 3px solid var(--accent); outline-offset: 2px; }
.srow.name { flex-direction: column; align-items: stretch; cursor: default; }
.srow.name input, .lv-name input, .search input, .lv-join input, .lv-invite input { height: 48px; padding: 0 14px; background: var(--panel); border: 2px solid var(--line); border-radius: 6px; color: var(--text); font: 600 17px/1 var(--body); outline: 0; }
.srow.name input:focus, .lv-name input:focus, .search input:focus, .lv-join input:focus { border-color: var(--accent); }
.menu .btn { height: 52px; font-size: 20px; }

/* ---------- list screens: archive, rosters, live ---------- */
.btn.sm { width: auto; height: 44px; padding: 0 18px; font-size: 18px; flex: none; }
.btn.ghost { background: transparent; color: var(--text); border: 2px solid var(--line); }
.btn.ghost:hover { border-color: var(--muted); background: transparent; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
a.btn { text-decoration: none; }
.list-screen { padding: calc(72px + var(--top)) 20px calc(28px + var(--bottom)); gap: 14px; overflow-y: auto; }
.list-screen > * { flex-shrink: 0; }
.list-screen .chip { align-self: flex-start; }
.lh { margin: 6px 0 0; font: 800 38px/1 var(--cond); text-transform: uppercase; text-wrap: balance; }
.lh .code { color: var(--accent); letter-spacing: .08em; }
.lp { margin: 0; font-size: 15px; line-height: 1.45; color: var(--text-2); }
.empty { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.empty b { font: 800 22px/1.1 var(--cond); text-transform: uppercase; }
.empty span { color: var(--text-2); margin-bottom: 8px; }
.arch { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--panel-deep); }
.arch a { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 10px; height: 56px; padding: 0 14px; border-bottom: 1px solid var(--line-faint); color: var(--text); text-decoration: none; }
.arch li:last-child a { border-bottom: 0; }
.arch a:hover { background: var(--panel); }
.arch .w { font: 800 15px/1 var(--cond); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.arch .d { font-weight: 600; }
.arch .r { display: flex; align-items: center; gap: 10px; font: 700 15px/1 var(--cond); }
.arch .r .g { font-size: 13px; letter-spacing: 0; }
.arch .r .p { color: var(--accent); letter-spacing: .1em; text-transform: uppercase; }
.search input { width: 100%; }
.rgroups { display: flex; flex-direction: column; gap: 8px; }
.rg { border: 1px solid var(--line); border-radius: 6px; background: var(--panel-deep); }
.rg summary { display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 14px; font: 800 18px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; list-style: none; }
.rg summary::-webkit-details-marker { display: none; }
.rg summary small { font-size: 14px; color: var(--dim); }
.rg h4 { margin: 10px 14px 4px; font: 800 13px/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.rg ul, .hits { list-style: none; margin: 0; padding: 0 6px 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px; }
.hits { padding: 0; }
.rg a, .hits a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 6px 10px; border-radius: 4px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; background: var(--panel); }
.rg a:hover, .hits a:hover { background: var(--line-soft); }
.rg a small, .hits a small { color: var(--dim); font: 700 13px/1 var(--cond); }
.hits .none { grid-column: 1 / -1; color: var(--muted); padding: 10px 0; }

/* ---------- Live Ball ---------- */
.lv-hero { display: flex; gap: 16px; align-items: center; }
.lv-hero .lv-ball { flex: none; width: 76px; }
.lv-hero .lh { font-size: 32px; }
.lv-hero .lp { margin-top: 6px; }
.lv-name { display: flex; flex-direction: column; gap: 6px; font: 800 13px/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lv-actions { display: flex; flex-direction: column; gap: 8px; }
.lv-actions .btn { height: 54px; font-size: 21px; }
.lv-join, .lv-invite { display: flex; gap: 8px; }
.lv-join input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .2em; font-family: var(--cond); font-weight: 800; }
.lv-invite input { flex: 1; min-width: 0; font-size: 14px; color: var(--muted); }
.lv-lab { display: flex; align-items: center; gap: 8px; font: 800 13px/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lv-lab .n { color: var(--dim); }
.lv-rooms ul, .lv-plist { list-style: none; margin: 8px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-deep); overflow: hidden; }
.lv-rooms a { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 10px; height: 52px; padding: 0 14px; border-bottom: 1px solid var(--line-faint); color: var(--text); text-decoration: none; }
.lv-rooms a b { font: 800 20px/1 var(--cond); letter-spacing: .12em; color: var(--accent); }
.lv-rooms a small { color: var(--muted); font-size: 13px; }
.lv-rooms .none, .lv-plist li { padding: 14px; color: var(--muted); font-size: 14px; }
.lv-plist li { display: flex; justify-content: space-between; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line-faint); color: var(--text); font-weight: 600; font-size: 16px; }
.lv-plist i, .lv-pn i { font: 800 11px/1 var(--cond); font-style: normal; letter-spacing: .1em; text-transform: uppercase; padding: 3px 6px; border-radius: 3px; background: var(--line); color: var(--text-2); margin-left: 6px; vertical-align: 2px; }
.lv-plist i.hst { background: var(--accent); color: var(--ground); }
.lnk { background: none; border: 0; color: var(--muted); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 8px; }
.lnk.back { align-self: center; }
.lv-top { position: relative; z-index: 2; flex: none; display: flex; align-items: center; gap: 10px; height: 64px; margin-top: max(12px, var(--top)); padding: 0 10px; background: var(--panel); border-bottom: 2px solid var(--accent); }
.lv-top .mnu, .lv-top .snd.in-top { position: static; }
.lv-tag { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.lv-tag b { font: 800 20px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; }
.lv-tag span { font: 700 13px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lv-play { padding: 14px 16px 10px; gap: 12px; overflow-y: auto; }
.lv-play > * { flex-shrink: 0; }
.lv-card .q { font-size: 26px; }
.lv-ring { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.lv-ring li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; min-height: 84px; }
.lv-ring li.me { border-color: var(--muted); }
.lv-ring li.hold { border: 2px solid var(--accent); box-shadow: 0 0 22px rgba(255, 199, 44, .25); }
.lv-ring li.out { opacity: .4; }
.lv-ring li.win { border: 2px solid #27C28A; box-shadow: 0 0 22px rgba(39, 194, 138, .3); }
.lv-pn { display: flex; align-items: center; gap: 6px; min-width: 0; font: 800 17px/1.05 var(--cond); }
.lv-pn span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-pn i { flex: none; margin-left: 0 !important; }
.lv-h { display: flex; gap: 3px; }
.lv-m { height: 5px; margin-right: 0; background: var(--line-soft); border-radius: 3px; overflow: hidden; }
.lv-m i { display: block; height: 100%; background: linear-gradient(90deg, #4F8EF7, #27C28A, #FF7A1A, #FFC72C); transition: width 300ms; }
.lv-ring .lv-ball { position: absolute; right: 8px; bottom: 12px; width: 44px; animation: wob 900ms ease-in-out infinite; }
.lv-ring .lv-ball.hot { animation-duration: 260ms; filter: drop-shadow(0 0 8px rgba(255, 59, 59, .8)); }
.lv-ball svg { width: 100%; height: auto; display: block; }
.lv-ball.idle { animation: wob 1.6s ease-in-out infinite; }
@keyframes wob { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg) scale(1.05); } }
.lv-used ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lv-used li { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px; border-left: 4px solid var(--c); background: var(--panel); border-radius: 3px; }
.lv-used li b { font: 700 16px/1.1 var(--cond); }
.lv-used li small { font-size: 11px; color: var(--muted); }
.lv-hint { margin: 0; font-size: 14px; color: var(--muted); }
.lv-dock.wait { justify-content: space-between; min-height: 76px; }
.lv-dock .who { font: 800 18px/1 var(--cond); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.lv-dock .typ { font: 600 17px/1 var(--body); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-toast { position: fixed; left: 50%; top: calc(88px + var(--top)); transform: translateX(-50%); z-index: 30; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 6px; background: var(--panel); border: 2px solid var(--c); color: var(--text); font: 700 16px/1.2 var(--cond); letter-spacing: .04em; text-align: center; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); animation: menu-in 160ms ease-out; }
.lv-flash { position: fixed; inset: 0; z-index: 29; background: rgba(255, 59, 59, .35); pointer-events: none; animation: flash-out 400ms ease-out forwards; }
@keyframes flash-out { to { opacity: 0; } }
.lv-over { position: fixed; inset: 0; z-index: 25; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(5, 8, 11, .7); }
.lv-over-in { width: 100%; max-width: 400px; padding: 22px; background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 8px; text-align: center; }
.lv-over-in .k { font: 800 13px/1 var(--cond); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.lv-over-in h2 { margin: 8px 0 6px; font: 800 48px/1 var(--cond); text-transform: uppercase; }
.lv-over-in p { margin: 0 0 16px; color: var(--text-2); }
@media (prefers-reduced-motion: reduce) { .lv-ring .lv-ball, .lv-ball.idle { animation: none; } }
@media (min-width: 900px) {
  .list-screen { width: 100%; max-width: 640px; margin: 0 auto; }
  .lv-play { width: 100%; max-width: 760px; margin: 0 auto; }
  .lv-dock { width: 100%; max-width: 760px; margin: 0 auto 24px; border: 1px solid var(--line-soft); border-radius: 8px; padding: 12px 16px; }
  .lv-top { margin-top: 0; padding: 0 24px; }
  .lv-card .q { font-size: 34px; }
}
.lv-ring li.hold .lv-m, .lv-ring li.hold .lv-h { margin-right: 52px; }
