:root {
  color-scheme: light;
  --ink:#302148; --muted:#625574; --paper:#f7f3fc; --purple:#6044b6; --mint:#d6f4e6;
  --green:#225f49; --gold:#ffca50; --line:#dfd8e8; --sand:#fff0c5;
  font: 100%/1.45 ui-rounded,"Nunito","Avenir Next Rounded","Trebuchet MS",system-ui,sans-serif;
}
*,*::before,*::after { box-sizing:border-box }
body { margin:0; min-height:100svh; display:flex; flex-direction:column; background:var(--paper); color:var(--ink) }
button,input { font:inherit; color:inherit }
button { cursor:pointer; border:0; background:white; font-weight:800; -webkit-tap-highlight-color:transparent }
button:active:not(:disabled) { transform:translateY(2px) }
button:focus-visible,a:focus-visible,input:focus-visible { outline:3px solid var(--purple); outline-offset:3px }
a { color:var(--purple) } img { display:block; max-width:100% }
[hidden] { display:none !important }
h1,h2,p { margin:0 } h1,h2,strong,button { line-height:1.18 }
h1 { font-size:clamp(1.75rem,4.4vw,3.375rem); letter-spacing:-.045em; font-weight:900 }
h2 { font-size:clamp(1.25rem,2vw,1.65rem); letter-spacing:-.04em; font-weight:900 }
.topbar,main,footer { width:min(100% - 3rem,70rem); margin-inline:auto }
.topbar { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1.35rem 0 }
.game-nav {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  grid-template-areas:var(--menu-rows,"brand tabs sound");
}
.topbar .brand { grid-area:brand; justify-self:start }
.topbar .tabs { grid-area:tabs; justify-self:center }
.topbar .sound { grid-area:sound; justify-self:end }
.brand { display:inline-flex; align-items:center; text-decoration:none; color:var(--ink); font-size:clamp(1.2rem,2.5vw,1.75rem); font-weight:900; letter-spacing:-.06em }
.brand img { margin-right:.65rem; border-radius:30% }.brand span { color:var(--purple) }
.tabs { display:flex; gap:.35rem; background:white; padding:.28rem; border-radius:3rem }
.tabs button,.quiet,.sound,.listen { min-height:44px; border-radius:2rem; background:white; color:var(--purple) }
.tabs button { padding:.6rem 1.2rem; color:var(--muted) }.tabs [aria-current] { background:#ebe2fb; color:var(--purple) }
.sound { width:46px; display:grid; place-items:center }.sound svg { width:24px }.sound .mute,.sound[aria-pressed=false] .waves { display:none }.sound[aria-pressed=false] .mute { display:block }
main { flex:1; display:grid; align-content:center; padding:clamp(1.4rem,6vh,4.25rem) 0 }
footer { display:flex; flex-wrap:wrap; justify-content:center; gap:1.5rem; padding:1rem 0 1.25rem }
footer a { font-size:.9rem; color:var(--muted); text-underline-offset:3px }
.home-layout { display:grid; gap:clamp(.8rem,2vh,1.25rem) }
.table-panel { background:var(--mint); border:1px solid #afd7c7; border-radius:1.55rem; overflow:hidden }
.cove { min-height:clamp(5.75rem,14vh,7.5rem); display:flex; align-items:center; justify-content:space-between; padding:.6rem 1.15rem; position:relative; isolation:isolate }
.cove::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#ffffffd9 1%,#ffffff61 50%,transparent 75%),url(images/pakrante.jpg) center/cover; mask-image:linear-gradient(black 55%,transparent 100%) }
.cove h1 { max-width:12em; font-size:clamp(1.6rem,2.3vw,2rem) }.buddy { width:clamp(4rem,6vw,5rem); transform:rotate(-8deg) }
.table-controls { padding:.6rem 1rem .9rem }.table-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:.6rem }
.table-grid button,.keypad button,.answer-choices button { border:1px solid var(--line); border-radius:1rem; min-height:3.6rem; box-shadow:0 3px #2b695130; font-size:1.22rem }
.table-grid button[aria-pressed=true] { background:var(--purple); color:white; border-color:var(--purple) }
.toggle { display:flex; align-items:center; justify-content:space-between; min-height:3.4rem; font-weight:700; cursor:pointer; gap:.75rem }
.toggle input { appearance:none; width:3rem; min-width:3rem; height:1.7rem; padding:3px; border-radius:2rem; background:#9bb8ae; cursor:pointer }
.toggle input::after { content:""; display:block; height:100%; aspect-ratio:1; border-radius:50%; background:white }.toggle input:checked { background:var(--purple) }.toggle input:checked::after { margin-left:auto }
.levels-panel { display:grid; gap:.75rem }.levels { display:grid; gap:.55rem }
.level { --accent:#27634f; display:flex; justify-content:center; align-items:center; gap:1.1rem; padding:.45rem 1rem; min-height:4.9rem; width:100%; border-radius:1.15rem; color:var(--ink); border:2px solid color-mix(in srgb,var(--accent) 28%,transparent); box-shadow:0 3px color-mix(in srgb,var(--accent) 28%,transparent); position:relative }
.shell { background:#d9f5e8 }.boat { --accent:#6850a7; background:#ece4fc }.lighthouse { --accent:#974b45; background:#ffe4d8 }
.level img { width:5.2rem; height:3.6rem; object-fit:contain }.level span { min-width:8rem; text-align:left }.level small,.level strong,.primary small { display:block }
.level small { color:var(--accent); font-size:.87rem; margin-bottom:.22rem }.level strong { font-size:1.15rem }
.level .card-rule { display:none }
@media(min-width:721px) {
  .levels { grid-template-columns:repeat(3,minmax(0,1fr)) }
  .level { flex-direction:column; justify-content:flex-start; gap:.3rem; padding:.6rem .5rem }
  .level span { min-width:0; text-align:center }
  .level .card-rule { display:block; margin-top:.28rem; font-size:.94rem; font-weight:500; line-height:1.23 }
  .levels-panel .level-info { display:none }
}
.level[aria-pressed=true] { border-color:var(--accent) }.level[aria-pressed=true]::after { content:"✓"; position:absolute; top:.45rem; right:.45rem; background:var(--accent); color:white; border-radius:50%; width:1.25rem; height:1.25rem; text-align:center }
.level-info { background:white; padding:.73rem 1rem; border-radius:.85rem; color:var(--green); font-weight:700 }
.primary { width:100%; min-height:3.55rem; padding:.7rem 1rem; background:var(--gold); box-shadow:0 3px #b68a43; border-radius:1.05rem; font-size:1.3rem; font-weight:900 }
.primary small { font-size:.88rem; margin-top:.25rem }.quiet,.listen { padding:.55rem 1rem }
.history-panel h1,.finish h1 { font-size:clamp(1.7rem,3vw,2.5rem); margin-bottom:1.25rem }
.keypad,.answer-choices { display:grid; gap:.55rem }.keypad { grid-template-columns:repeat(3,1fr) }.answer-choices { grid-template-columns:1fr 1fr }
.hint { background:white; border-radius:1rem; padding:1rem; overflow-wrap:anywhere }.groups { display:flex; flex-wrap:wrap; gap:.35rem; margin:.55rem 0 }.dot-group { display:grid; grid-template-columns:repeat(5,.42rem); gap:.15rem; padding:.4rem; border-radius:.4rem; background:#eee6fc }.dot-group i { height:.42rem; border-radius:50%; background:var(--purple) }
.finish,.history-panel { width:min(100%,42rem); margin:auto }.history-entry,.empty-state,.review-table { padding:1.2rem; border-radius:1rem; background:white; margin:.65rem 0 }.history-entry { display:flex; justify-content:space-between; gap:.8rem }.empty-state { background:var(--sand) }.finish .quiet { justify-self:center }.review-table button { width:100%; padding:.5rem; text-align:left }
dialog { width:min(24rem,90vw); border:none; border-radius:1.4rem; padding:1.5rem; color:var(--ink) }dialog p { margin:1rem 0 }dialog::backdrop { background:#30214866 }dialog form { display:flex; gap:.65rem }dialog .quiet { background:#eee7fa }
@media(max-width:720px) {
  .topbar { --menu-rows:"brand brand sound" "tabs tabs tabs" }
  .topbar,main,footer { width:min(100% - 2rem,36rem) }.topbar { flex-wrap:wrap; gap:.7rem; padding:.85rem 0 }.tabs { order:3; width:100% }.tabs button { flex:1; padding-inline:.5rem }
  main { padding:1rem 0 1.5rem; align-content:start }
  .cove { min-height:8rem; padding:1rem }.cove h1 { font-size:1.75rem }.table-controls { padding:.3rem .75rem .45rem }.table-grid { gap:.45rem }.table-grid button { min-height:3rem }
  .levels { grid-template-columns:repeat(3,minmax(0,1fr)); gap:.4rem }.level { flex-direction:column; gap:.1rem; padding:.7rem .15rem }.level img { width:4.5rem; max-width:90% }.level span { min-width:0; text-align:center }.level strong { font-size:.98rem }.level small { font-size:.8rem }
}
@media(max-width:350px) { .topbar,main,footer { width:calc(100% - 1rem) }.table-grid { gap:.25rem }.level strong { font-size:.85rem } }

body:has(#app) {
  background:radial-gradient(ellipse at 5% 65%,#eee7ff 0,transparent 40%),
             radial-gradient(ellipse at 95% 25%,#eaf7f1 0,transparent 36%),var(--paper);
}
.primary,.answer-choices button {
  background:linear-gradient(#ffda68,var(--gold) 70%); color:#392642;
  border:1px solid #dda43a; box-shadow:0 4px 0 #bb882e;
}
.primary { font-size:1.4rem; font-weight:900; letter-spacing:-.025em }
.primary small { font-size:.94rem; letter-spacing:0 }
.finish { padding:clamp(1rem,3vw,2.2rem); border-radius:1.55rem; background:white; border:1px solid var(--line) }
#finish-score { font-size:1.35rem; font-weight:bold; color:var(--green) }
@media(hover:hover) {
  .primary:hover,.answer-choices:not([inert]) button:hover { background:#ffdc71; border-color:#956318 }
  .level:hover,.table-grid button:hover,.keypad button:hover { outline:2px solid #7151ac; outline-offset:1px }
}
@media(min-width:900px) and (orientation:landscape) {
  body:has(#app) { --canvas:min(100% - clamp(3rem,9vw,9rem),76rem) }
  .topbar:has(.tabs),#app,body:has(#app) footer { width:var(--canvas) }
  .topbar:has(.tabs) { padding-block:clamp(.75rem,2.5vh,1.5rem) }
  #app { padding-block:clamp(.85rem,3vh,2rem) }

}
@media(min-width:900px) and (max-height:760px) {
  .topbar:has(.tabs) { padding-block:.55rem }
  #app { padding-block:.6rem }
  body:has(#app) footer { padding-block:.6rem }
}

/* Use the visible viewport for the island menu, including browser chrome on tablets. */
html:has(#home:not([hidden])), body:has(#home:not([hidden])) { overscroll-behavior:none }
body:has(#home:not([hidden])) { min-height:100dvh }
body:has(#home:not([hidden])) {
  display:grid;
  height:100dvh;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:minmax(max-content,1fr) auto minmax(max-content,1fr);
}
body:has(#home:not([hidden])) .topbar { align-self:start }
body:has(#home:not([hidden])) footer { align-self:end }
#app:has(#home:not([hidden])) { width:100%; align-content:center; padding-block:clamp(.25rem,1.2dvh,1rem) }
.topbar.game-nav { padding-block:clamp(.25rem,1dvh,.9rem); flex:none }
body:has(#home:not([hidden])) footer { padding-block:.35rem; line-height:1.2 }
/* Keep navigation in place while a long table or history scrolls below it. */
body:has(:is(#learn,#history):not([hidden])) { height:100dvh }
#app:has(:is(#learn,#history):not([hidden])) { min-height:0; overflow:auto }
#app:has(#learn:not([hidden])) { align-content:safe center }
@media(max-height:850px) {
  .home-layout { gap:.65rem }
  .cove { min-height:clamp(3.7rem,10dvh,5.5rem); padding:.3rem 1rem }
  .cove .buddy { width:clamp(3rem,7dvh,4rem) }
  .cove h1 { font-size:clamp(1.4rem,3vw,1.8rem) }
  .table-controls { padding:.25rem .7rem .35rem }
  #tables { gap:.4rem }
  #tables button,.toggle { min-height:2.75rem }
  .levels-panel { gap:.45rem }
  .level { padding-block:.45rem }
  .level img { height:clamp(2.1rem,5dvh,2.75rem) }
  #start { min-height:3.2rem; padding-block:.4rem }
}
@media(max-width:720px) and (max-height:760px) {
  .topbar.game-nav { row-gap:.25rem }
  .topbar.game-nav .brand img { width:2.5rem; height:2.5rem }
  #home .level-info { min-height:0; padding:.3rem .65rem; line-height:1.2 }
  #home .level { min-height:3.2rem }
}
@media(max-height:620px) {
  .home-layout,.levels-panel { gap:.3rem }
  .cove { min-height:3rem; padding-block:.12rem }
  .cove h1 { font-size:1.35rem }
  .cove .buddy { width:2.75rem }
  .level img { height:1.85rem }
  .level .card-rule { margin-top:.1rem; font-size:.875rem }
  #start { font-size:1.17rem }
  #selection { margin-top:0; font-size:.875rem }
  body:has(#home:not([hidden])) footer { padding-block:.2rem }
}
@media(max-width:420px) and (max-height:700px) {
  .topbar.game-nav { --menu-rows:"brand tabs sound"; width:calc(100% - .75rem); gap:.25rem }
  .topbar.game-nav .brand { font-size:0 }
  .topbar.game-nav .brand img { width:2.2rem; height:2.2rem; margin:0 }
  .topbar.game-nav .tabs { order:0; width:auto; gap:0 }
  .topbar.game-nav .tabs button { padding-inline:.42rem }
}
@media(orientation:landscape) and (max-height:550px) and (min-width:520px) {
  .topbar.game-nav { --menu-rows:"brand tabs sound"; width:calc(100% - 1.5rem); gap:.5rem; padding-block:.12rem }
  .topbar.game-nav .brand img { width:2rem; height:2rem; margin-right:.3rem }
  .topbar.game-nav .tabs { order:0; width:auto; padding:.1rem }
  .topbar.game-nav .tabs button { padding-inline:.55rem }
  #home { grid-template-columns:1fr min(36rem,calc(100% - 1rem)) 1fr }
  #home::before,#home::after { max-height:45dvh }
  #home .table-panel { display:grid; grid-template-columns:1fr auto; padding:.15rem .5rem .3rem; gap:.2rem .4rem }
  #home .table-controls { display:contents }
  #home .cove { min-height:0; padding:0; grid-area:1 / 1 }
  #home .cove h1 { max-width:none; font-size:1.18rem }
  #home .cove .buddy { width:2rem }
  #home .toggle { grid-area:1 / 2; gap:.4rem; font-size:.9rem }
  #home #tables { grid-column:1 / -1; grid-template-columns:repeat(10,minmax(0,1fr)); gap:.25rem }
  #home .levels-panel { gap:.25rem; grid-template-columns:auto 1fr; align-items:center }
  #home h2 { grid-area:1 / 1; font-size:1.13rem }
  #home .level-info { grid-area:1 / 2 }
  #home #levels,#home #start { grid-column:1 / -1 }
  #home .level { flex-direction:row; justify-content:center; align-items:center; gap:.4rem; min-height:2.75rem; padding:.1rem .3rem }
  #home .level img { width:2.3rem; height:1.85rem }
  #home .level small { margin:0 }
  #home .level strong { font-size:1rem }
  #home .level .card-rule { display:none }
  #home .level-info { display:block; min-height:0; line-height:1.2; font-size:.92rem; padding:.15rem .4rem }
  #home #start { display:flex; align-items:center; justify-content:center; gap:.6rem; min-height:2.8rem; padding:.2rem .6rem }
}
/* One play column; each shore occupies only its own side of the island. */
#app:has(#game:not([hidden])) { width:100%; align-content:start; padding-block:clamp(.75rem,4vh,2.5rem) }
.coast-layout {
  display:grid; grid-template-columns:1fr min(33.125rem,calc(100% - 2rem)) 1fr;
  width:100%; align-items:center;
}
.coast-layout > div { grid-area:1 / 2; min-width:0 }
@media(min-width:700px) {
  .coast-layout::before,.coast-layout::after {
    content:""; display:block; width:min(86%,20rem); aspect-ratio:4/5; justify-self:center;
    background-position:center; background-repeat:no-repeat; background-size:contain;
    pointer-events:none;
  }
  .coast-layout::before { grid-area:1 / 1; background-image:url(images/buriu-sala.webp) }
  .coast-layout::after { grid-area:1 / 3; background-image:url(images/svyturio-sala.webp) }
}
.round-header,.round-selection,.round-actions { display:flex; align-items:center; gap:.65rem }
.round-header { justify-content:space-between; min-height:3.45rem; padding-inline:.25rem }
.round-header #exit { flex:none; border:1px solid #d2c3e7; color:#553580; background:#f5eefb; font-size:.95rem }
.round-selection img { width:3.6rem; height:3rem; object-fit:contain }
.round-selection strong,.round-selection span { display:block }
.round-selection strong { font-size:1.12rem }
.round-selection span { color:var(--muted); font-size:.95rem; font-weight:650 }
#round-count { white-space:nowrap; color:#4a3668; font-weight:800; font-variant-numeric:tabular-nums }
.round-trail { margin:.5rem 0 .7rem }
.stars { display:grid; grid-auto-flow:column; grid-auto-columns:1fr; align-items:center; padding:.28rem .3rem; border-radius:.72rem; background:#f1eaf9 }
.star { text-align:center; line-height:1.25; font-size:clamp(1rem,1.5vw,1.3rem); color:#a597b0; border-radius:.45rem }
.star.current { color:#553a91; background:white }
.star.earned,.gold-star { color:#ffcb43; -webkit-text-stroke:1px #855711 }
.star.wrong { color:#a44440 }.star.assisted { color:var(--purple) }
.exercise { display:grid; gap:.5rem }
#answer-form { background:linear-gradient(120deg,#e8ddfb,#e1f0fc); padding:.7rem 1rem 1rem; border-radius:1.4rem }
.question-tools,.question-tools > div,.question-tools .listen { display:flex; align-items:center; gap:.45rem }
.question-tools { justify-content:space-between; margin-bottom:.3rem }
.question-tools .listen { background:#ffffffbd; font-size:.92rem }
.question-tools .listen:disabled { visibility:hidden }
.equation { display:flex; align-items:center; justify-content:center; gap:.27em; color:#35204f; font-size:clamp(2.4rem,4.5vw,4.2rem); font-weight:900; line-height:1.05; font-variant-numeric:tabular-nums; white-space:nowrap }
#expression { display:inline-grid; grid-template-columns:2ch auto 2ch auto; align-items:center; gap:.07em; text-align:center }
.equation input { min-width:0; width:2.3em; padding:.08em .02em; margin:0; font:inherit; color:#533779; border:2px solid #ddbb71; border-radius:.25em; background:#fff1c8; text-align:center; opacity:1 }
.equation input:disabled { -webkit-text-fill-color:#533779 }
.equation input::placeholder { color:#806299; opacity:1 }
.answer-panel { display:grid; gap:.5rem }
#feedback { min-height:calc(2lh + .4rem); display:block; align-content:center; padding:.2rem .45rem; color:var(--ink); font-size:clamp(1.05rem,1.6vw,1.3rem); font-weight:750; line-height:1.2; border-radius:.65rem }
#feedback.success { background:#fff0bf; color:#64450e }
#feedback.wrong { background:#ffeadf; color:#843f36 }
.input-slot { display:grid }
.input-slot > * { grid-area:1 / 1; min-width:0 }
.input-slot .reserved { visibility:hidden }
.answer-choices { gap:.72rem }
.answer-choices button { min-height:clamp(3.5rem,8vh,5rem); font-size:clamp(1.65rem,2.6vw,2.35rem); font-variant-numeric:tabular-nums }
.answer-choices [data-result=correct] { background:#d5f4dd; color:#244e35; border-color:#4e8861; box-shadow:0 4px #4e8861 }
.answer-choices [data-result=wrong] { background:#ffe3d9; color:#873c34; border-color:#aa625a; box-shadow:0 4px #aa625a }
.keypad button { min-height:2.85rem; background:white; border-color:#dfd3ed; box-shadow:0 2px #d9cce5; font-variant-numeric:tabular-nums }
.round-actions { min-height:3.3rem; justify-content:center; margin-top:.25rem }
.listen svg { width:1.15rem; height:1.15rem }
.round-actions .primary { min-height:2.9rem; font-size:1.15rem }
#hint-area { text-align:center }
#hint-toggle { padding:.3rem 0; background:transparent; text-decoration:underline; text-underline-offset:.2rem }
.hint { background:#f6f1ff }
#game button:active { transform:none }
#game button:disabled { cursor:default }
.game .finish { display:grid; gap:.65rem; background:transparent; padding:1rem 0 0; border:0 }
@media(max-width:760px) {
  .round-selection { gap:.4rem }
  .round-selection img { width:2.6rem; height:2.3rem }
  .round-selection strong { font-size:1rem }
  .round-selection span { font-size:.9rem }
  #answer-form { padding:.5rem .7rem .8rem }
  .level-info { min-height:calc(2lh + 1.46rem) }
}
@media(min-width:761px) and (max-height:700px) {
  #app:has(#game:not([hidden])) { padding-block:.2rem }
  #feedback { font-size:1.05rem }
  #answer-form { padding:.35rem .75rem .55rem }
  .question-tools { margin-bottom:0 }
  .round-header { min-height:2.6rem }
  .round-selection img { height:2.5rem }
  .round-trail { margin:.25rem 0 .4rem }
  .equation { font-size:clamp(2.6rem,4vw,3.2rem) }
  .exercise,.answer-panel,.keypad { gap:.35rem }
  .keypad button { min-height:2.65rem }
}
@media(max-width:760px) and (max-height:690px) {
  #app:has(#game:not([hidden])) { padding-block:.4rem }
  .round-header { min-height:2.8rem }
  #answer-form { padding:.25rem .6rem .5rem }
  .question-tools { margin-bottom:0 }
  .round-trail { margin:.25rem 0 .4rem }
  .round-actions { margin-top:0; min-height:2.9rem }
  .exercise,.answer-panel,.keypad { gap:.3rem }
  .keypad button { min-height:2.75rem }
}

@media (min-width:900px) and (orientation:landscape) {
  html:has(#game:not([hidden])),body:has(#game:not([hidden])) { overscroll-behavior:none }
  body:has(#game:not([hidden])) {
    min-height:100dvh;
    position:relative;
  }
  #app:has(#game:not([hidden])) { padding-block:clamp(.25rem,1.3dvh,1.25rem) }
  #game .round-trail { margin:.25rem 0 .5rem }
  #game #answer-form { padding:.35rem .9rem .6rem }
  #game .equation { font-size:clamp(2.65rem,7.5dvh,3.65rem) }
  #game #feedback { min-height:2rem; font-size:1.075rem }
  .answer-panel:has(#hint-area:not([hidden])) {
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
  }
  .answer-panel #feedback,.answer-panel .input-slot { grid-column:1 / -1 }
  #game .round-actions { min-height:2.9rem; margin:0 }
  #game #hint-toggle { padding-inline:.65rem }
  #game #hint {
    position:absolute; z-index:1; left:calc(50% + 17.5rem); top:50%;
    transform:translateY(-50%); width:min(20rem,calc(50% - 18.4rem));
    border:1px solid var(--line); background:#fff;
  }
  #game:has(#hint:not([hidden]))::after { visibility:hidden }
  #game #hint .groups { justify-content:center }
  body:has(#game:not([hidden])) footer { padding-block:.3rem }
  #game .finish { grid-template-columns:1fr 1fr; padding:0; gap:.5rem }
  #finish h1,#finish-score,#review { grid-column:1 / -1 }
  #finish h1 { margin:0; font-size:2rem }
  #finish .review-table { display:grid; grid-template-columns:repeat(3,1fr); gap:.25rem; padding:.4rem; margin:.35rem 0 }
  #finish .review-table button { min-height:44px; text-align:center }
  #finish-home { justify-self:stretch }
}
@media (min-width:900px) and (max-height:650px) and (orientation:landscape) {
  #app:has(#game:not([hidden])) { padding-block:.15rem }
  #game .exercise,#game .answer-panel,#game .keypad { gap:.25rem }
  #game .keypad button { min-height:2.75rem }
  #game .question-tools { margin:0 }
  #game .round-selection img { height:2.45rem }
  #game:has(#finish:not([hidden])) .round-trail { display:none }
  #game .finish { gap:.25rem }
}
