.arena-wrap { padding-top:25px; max-width:920px; }
.arena-wrap .icon { width:20px; height:20px; }
.arena-shell { overflow:hidden; border:1px solid #4b5b87; border-radius:12px; background:#151c34; box-shadow:0 16px 40px #080b1959; }
.scoreboard { color:#eef2ff; background:#171f3b; padding:18px clamp(13px,3vw,32px); border-bottom:1px solid #6174aa; }
.score-top,.score-main,.match-hud { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.score-top { font-size:14px; color:#d0d9f4; }
.score-top > span { color:var(--lime); font:700 14px/1.4 var(--mono); }
.hud-action { display:inline-flex; align-items:center; gap:6px; background:transparent; border:1px solid #67769d; border-radius:6px; padding:6px 9px; min-height:38px; font-size:14px; font-weight:700; }
.hud-action:hover { background:#2a3760; }
.hud-action .icon { width:17px; height:17px; }
.score-main { margin-top:13px; align-items:flex-end; }
.score-main .eyebrow { color:#c3ceee; font-size:14px; letter-spacing:.045em; }
.score-num { font-family:var(--mono); color:var(--lime); display:block; line-height:1.15; font-size:32px; }
.score-num small { color:#bdc7e3; }
.score-tiles { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:5px; list-style:none; padding:0; margin:0; }
.score-tiles li { display:grid; place-items:center; width:33px; height:33px; border:1px solid #586891; border-radius:5px; color:#e8edff; font:800 14px/1 var(--mono); }
.score-tiles .active { background:#b5c8ff; color:#15234c; border-color:#d7e0ff; }
.score-tiles .tier-0 { background:#404b67; color:#f0f2f9; border-color:#6c7591; }
.score-tiles .tier-20 { background:var(--lime); color:#121b11; }
.score-tiles .tier-45 { background:var(--blue); color:#161f42; }
.score-tiles .tier-70 { background:var(--lilac); color:#21143b; }
.score-tiles .tier-100 { background:var(--peach); color:#39221b; }
.match-paper { position:relative; padding:clamp(17px,4vw,36px); min-height:313px; background:var(--cream); color:#1a2134; color-scheme:light; }
.match-paper::before { content:""; position:absolute; inset:0; pointer-events:none; opacity:.22; background:radial-gradient(#7f7e5e55 .6px, transparent .8px) 0 0/5px 5px; }
.match-paper > * { position:relative; }
.match-paper :focus-visible { outline-color:#3a50b6; }
.match-paper h2[tabindex="-1"]:focus { outline:none; }
.match-paper .eyebrow { color:#3e50a2; }
.match-paper h2 { font-size:clamp(27px,5vw,47px); letter-spacing:-.056em; line-height:1.06; margin:10px 0 12px; text-wrap:balance; }
.match-paper p { color:#47516a; font-size:16px; line-height:1.5; }
.match-paper .btn.primary { background:#334dbb; color:#fff; border-color:#334dbb; box-shadow:0 3px 0 #1e2d7d; }
.match-paper .btn.primary:hover:not(:disabled) { background:#293fa7; box-shadow:0 5px 0 #1e2d7d; }
.match-paper .btn.ghost { background:transparent; border-color:#9b9c91; color:#1a2134; }
.match-paper .btn.ghost:hover:not(:disabled) { background:#e8e1cc; border-color:#737a8b; }
.match-paper .btn:disabled { cursor:default; }
.match-paper .hero-actions { margin-top:18px; }
.match-hud { margin-bottom:13px; align-items:flex-start; }
.match-hud > div { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; }
.round-pill,.attempt,.timer-chip { display:inline-flex; align-items:center; gap:5px; padding:5px 8px; border-radius:5px; white-space:nowrap; font:700 14px/1.25 var(--mono); }
.round-pill { background:#dde3f7; color:#253a85; }
.attempt,.timer-chip { background:#e6dfc9; color:#414966; }
.timer-chip { font-variant-numeric:tabular-nums; min-width:56px; justify-content:center; }
.timer-chip.low { background:#f6d2c3; color:#812516; }
.timer-chip .icon { width:16px; height:16px; }
.clockbar { display:block; width:100%; height:5px; appearance:none; border:0; border-radius:8px; overflow:hidden; background:#d7d5ca; margin-bottom:19px; }
.clockbar::-webkit-progress-bar { background:#d7d5ca; border-radius:8px; }
.clockbar::-webkit-progress-value { background:#435ec7; border-radius:8px; transition:width .16s; }
.clockbar::-moz-progress-bar { background:#435ec7; }
.clockbar.low::-webkit-progress-value { background:#b8422c; }
.clockbar.low::-moz-progress-bar { background:#b8422c; }
.answer-form { margin:21px 0 0; }
.answer-form label { display:block; color:#222a3c; font-weight:750; font-size:15px; margin-bottom:6px; }
.answer-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; }
.answer-wrap { min-width:0; position:relative; }
.answer-wrap input { width:100%; min-height:51px; padding:10px 11px; border:1px solid #9d9d95; border-radius:6px; color:#152036; background:#fffdf7; font-size:17px; }
.answer-wrap input[aria-expanded="true"] { border-radius:6px 6px 0 0; }
.answer-wrap input::placeholder { color:#66708a; opacity:1; }
.suggestions { position:absolute; z-index:4; top:calc(100% - 1px); left:0; right:0; margin:0; padding:3px; list-style:none; background:#fffdf7; border:1px solid #9d9d95; border-radius:0 0 6px 6px; box-shadow:0 12px 15px #34333229; }
.suggestions li { padding:7px; color:#1a2844; border-radius:4px; cursor:pointer; }
.suggestions li:hover,.suggestions [aria-selected="true"] { color:#12245e; background:#e4ebff; }
.action-row { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-top:12px; }
.text-btn { border:0; background:none; color:#30469f; text-decoration:underline; text-underline-offset:3px; padding:6px 0; font-weight:750; font-size:15px; }
.action-row .status { font-size:15px; color:#47516a; flex:1; min-width:16ch; }
.status.error { color:#9b321e; }
.setup-line { display:flex; flex-wrap:wrap; gap:9px 14px; margin:16px 0; }
.setup-line label { display:flex; align-items:center; gap:8px; min-height:43px; padding:7px 10px; font-size:15px; font-weight:700; border:1px solid #b3b0a2; border-radius:6px; }
.setup-line input { width:18px; height:18px; }
.setup-line .icon { color:#3e50a2; }
.ground-motif { overflow:hidden; background:#233c9d; height:78px; border-top:1px solid #7388d0; display:grid; place-items:center; position:relative; }
.ground-motif::before,.ground-motif::after { content:""; position:absolute; border:1px solid #a5baff80; width:35%; height:145%; top:14%; transform:perspective(160px) rotateX(28deg); }
.ground-motif::before { left:-16%; }.ground-motif::after { right:-16%; }
.ground-motif span { position:relative; border:1px solid #a5baff80; width:63px; height:63px; transform:rotateX(55deg); border-radius:50%; display:grid; place-items:center; }
.ground-motif span::after { content:""; width:6px; height:6px; border-radius:50%; background:#c3d1ff; }
.ground-motif span::before { content:""; position:absolute; height:240%; width:1px; background:#a5baff80; }
.result-stage { display:grid; grid-template-columns:1fr minmax(110px,218px); align-items:center; gap:18px; }
.result-stage h2 { margin-top:4px; }
.result-value { display:inline-flex; align-items:center; gap:8px; border-radius:6px; background:#dce6ff; color:#182d75; padding:5px 9px; margin-top:11px; font-weight:850; }
.result-value b { font:800 20px/1 var(--mono); }
.result-value.tier-20 { background:#d9ef9e; color:#263610; }
.result-value.tier-70 { background:#e3d7ff; color:#39235d; }
.result-value.tier-100 { background:#ffd0ae; color:#593219; }
.result-value.tier-0 { background:#e7dece; color:#47516a; }
.celebration { position:relative; isolation:isolate; width:100%; min-height:112px; max-width:230px; background:#233c9d; border-radius:8px; overflow:hidden; display:grid; place-items:center; color:#eaf0ff; }
.celebration canvas { display:block; width:100%; height:auto; }
.answer-review { margin-top:16px; border-top:1px solid #b5b2a5; border-bottom:1px solid #b5b2a5; }
.answer-review summary { font-weight:800; padding:10px 0; color:#30469f; cursor:pointer; }
.answer-review p { margin-bottom:8px; }
.answer-review ul { list-style:none; margin:0 0 10px; padding:0; display:grid; gap:2px; }
.answer-review li { display:grid; grid-template-columns:1fr auto; align-items:center; gap:8px; padding:5px 6px; background:#eee7d3; border-radius:3px; font-size:15px; }
.answer-review li span { display:block; }
.answer-review li small { color:#47516a; display:block; }
.answer-review li b { font:800 14px/1.4 var(--mono); color:#284592; }
.source-links { display:flex; flex-wrap:wrap; gap:7px 14px; margin:8px 0 12px; }
.source-links a { color:#30469f; text-decoration:underline; font-size:14px; text-underline-offset:3px; }
.score-review { margin-top:16px; display:grid; gap:6px; }
.score-review details { border:1px solid #bdb9ad; border-radius:6px; padding:0 8px; }
.score-review summary { color:#263b8c; font-size:15px; font-weight:700; padding:8px 0; cursor:pointer; }
.score-review .answer-review { margin:0; border:0; }
.score-review .answer-review > summary { display:none; }
.fulltime .result-value { margin-bottom:7px; }
.share-status { margin-top:8px; }
.share-copy { display:block; max-width:100%; min-height:110px; margin-top:8px; }
.wiggle { animation:wiggle .34s ease-out both; }
@keyframes wiggle { 0%,100% { transform:translateX(0); } 25%,65% { transform:translateX(-4px); } 45%,85% { transform:translateX(4px); } }
@media(max-width:540px) {
  .arena-wrap { padding-top:14px; }
  .scoreboard { padding:12px; }
  .score-top,.score-main { gap:6px; }
  .score-num { font-size:24px; }
  .score-tiles { gap:3px; }
  .score-tiles li { width:24px; height:26px; }
  .match-hud { gap:5px; }
  .match-hud > div { gap:4px; }
  .round-pill,.attempt,.timer-chip { padding-inline:5px; }
  .result-stage { grid-template-columns:1fr 108px; gap:7px; }
  .celebration { min-height:74px; }
}
@media(max-width:360px) {
  .match-hud { flex-wrap:wrap; }
  .scoreboard .hud-action { padding-inline:5px; }
  .score-tiles li { width:21px; }
  .answer-row .btn { padding-inline:10px; }
  .result-stage { grid-template-columns:1fr; }
  .celebration { max-width:140px; }
}
