/* idols page chrome. Mobile-first (portrait phone), widened for desktop at >= 900px.
   Colours/fonts come from CSS variables that web/theme.js (applyTheme) overwrites per theme; theme-only chrome
   (paper backdrop, grain, 9-slice board frame) is keyed on <html data-theme="...">. */
@font-face { font-family: 'Nunito'; src: url(../fonts/nunito.woff2) format('woff2'); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url(../fonts/fraunces.woff2) format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url(../fonts/fraunces-italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
:root {   /* classic (default theme) values; applyTheme() rewrites them per theme */
  --bg: #f4f1ea; --ink: #2b2a33; --muted: #5f5d66; --panel: #fffdf7; --line: #d8cfb9; --accent: #c8962d;
  --ok: #2c7a2c; --warn: #8a3a2a; --board-bg: #efe9da; --btn-bg: #fffdf7; --btn-ink: #2b2a33; --btn-line: #b9b19e;
  --btn-active: #f3ecdb; --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --font-title: var(--font-ui); --sel: #f6d55c55;
  --shadow: 0 1px 2px rgba(43,42,51,.08), 0 4px 14px rgba(43,42,51,.08); --radius: 12px; --press: .96;
  --badge: #8a5f12; --focus: #1b5fb4;   /* badge: 5.6:1 with white; focus ring: visible on paper and on gold */
}
:root[data-theme="gouache"] { --sel: #EADFC9; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overscroll-behavior: none; }
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--ink); font: 15px/1.4 var(--font-ui);
  display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden;
  -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.hidden { display: none !important; }
/* ---- header: name · level · menu */
#topbar {
  display: flex; align-items: center; gap: .55rem; flex: none; position: relative; z-index: 25; min-height: 52px;
  padding: calc(4px + env(safe-area-inset-top)) calc(4px + env(safe-area-inset-right)) 4px calc(14px + env(safe-area-inset-left));
}
#topbar h1 { margin: 0; font: 800 1.2rem/1 var(--font-title); letter-spacing: -.01em; flex: none; }
#levelname { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: .4rem; white-space: nowrap; color: var(--ink); }
#levelname .lvnum { font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
#levelname .dot { color: var(--muted); }
#levelname .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#topbar h1::after { content: ''; display: inline-block; width: 1px; height: 1.05em; background: var(--line); margin-left: .6rem; vertical-align: -3px; }
button.icon { width: 44px; height: 44px; border-radius: 50%; flex: none; padding: 0; display: grid; place-items: center; border: 0; background: transparent; }
button.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
button.icon:hover { background: var(--btn-active); }
.menu { position: absolute; top: calc(100% - 2px); right: calc(6px + env(safe-area-inset-right)); width: 236px; padding: 6px; z-index: 40;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(43,42,51,.18); }
.menu > button { display: flex; align-items: center; gap: .65rem; width: 100%; min-height: 46px; padding: 0 .7rem; border: 0; background: transparent; border-radius: 9px; font-weight: 600; text-align: left; }
.menu > button:hover, .menu > button:focus-visible { background: var(--btn-active); }
.menu > button:disabled { opacity: .45; cursor: default; }
.menu .mi { width: 1.4em; text-align: center; color: var(--muted); font-weight: 800; }
.menu .khint { margin-left: auto; }
.menusep { height: 1px; background: var(--line); margin: 5px 6px; }
.menurow { display: flex; align-items: center; gap: .5rem; padding: 4px .7rem 4px; min-height: 46px; }
.menurow .lbl { color: var(--muted); font-size: .85rem; font-weight: 600; }
.seg { display: flex; margin-left: auto; background: var(--board-bg); border-radius: 9px; padding: 2px; }
.seg button { border: 0; background: transparent; min-height: 40px; padding: 0 .7rem; border-radius: 7px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
/* ---- play area */
/* Phone (portrait, the default): header, board and footer are fixed; only #mid (status, hint, rule cards) scrolls.
   The board's size depends on the viewport only (game.js boardBox), never on #mid's content, so it never shifts. */
#app { flex: 1; min-height: 0; display: flex; position: relative; z-index: 1; }
#play { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; }
#boardwrap { width: 100%; display: flex; justify-content: center; align-items: center; touch-action: none; flex: none; padding-top: 2px; }
#mid { flex: 1; min-height: 0; width: 100%; max-width: 600px; overflow-y: auto; overflow-x: hidden; touch-action: pan-y; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
canvas#board:focus, #mid:focus, .helpbody:focus { outline: none; }
#mid:focus-visible, .helpbody:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
canvas#board:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
canvas#board { display: block; box-sizing: content-box; touch-action: none; background: var(--board-bg); border-radius: 8px; }
:root[data-theme="classic"] canvas#board { box-shadow: 0 1px 0 rgba(43,42,51,.06), 0 6px 22px rgba(43,42,51,.10); }
body.solution canvas#board { outline: 3px solid var(--accent); outline-offset: 2px; }
#msgs { width: 100%; padding: .3rem 14px 0; }
#status { min-height: 1.4em; scroll-margin-top: 8px; margin: .1rem 0; font-weight: 600; font-size: .92rem; color: var(--ink); display: flex; align-items: center; gap: .5rem; }
#status .txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#status .pips { display: inline-flex; gap: 3px; flex: none; }
#status .pips i { width: 12px; height: 12px; border: 1.5px solid var(--accent); border-radius: 3px; background: transparent; }
#status .pips i.on { background: var(--accent); }
#status .sep { color: var(--muted); margin: 0 .1rem; }
#status .steps { margin-left: auto; flex: none; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
#hint { margin: .2rem 0; font-style: italic; color: var(--muted); font-size: .92rem; }
body.won #status, body.won #hint, body.solution #hint { display: none; }
#win .card { border: 0; padding: .7rem .9rem .8rem; margin-top: .3rem; background: var(--panel); box-shadow: var(--shadow); border-left: 4px solid var(--ok); }
#win h2 { margin: 0 0 .1rem; font: 800 1.15rem/1.2 var(--font-title); color: var(--ok); }
#win p { margin: .1rem 0 .6rem; font-weight: 600; font-variant-numeric: tabular-nums; }
#win .card.pop { animation: winpop .32s cubic-bezier(.2,.9,.3,1.25) both; }
@keyframes winpop { from { transform: translateY(8px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
#solinfo { margin: .35rem 0 .35rem; padding: .55rem .75rem .5rem; background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); border-left: 4px solid var(--accent); }
.solhead { display: flex; align-items: baseline; gap: .5rem; } .solhead b { font-weight: 800; }
#solcount { margin-left: auto; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; font-size: .9rem; }
.solprog { height: 6px; border-radius: 3px; background: var(--board-bg); margin: .4rem 0 .35rem; overflow: hidden; }
.solprog i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width .15s ease-out; }
#solinfo p { margin: 0; font-size: .8rem; }
/* ---- rule cards: a vertical stack in the scrolling middle (phone), a column beside the board (desktop) */
.cards { width: 100%; display: flex; flex-direction: column; gap: 6px; padding: 6px 14px 12px; }
.cards.none { display: none; }
.cardshead { margin: 4px 0 0; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rulecard { width: 100%; min-height: 56px; display: flex; align-items: center; gap: .65rem; padding: 6px 10px 6px 6px; text-align: left;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(43,42,51,.06); }
.rulecard .ic { flex: none; display: grid; place-items: center; min-width: 56px; }
.rulecard .ic canvas { display: block; border-radius: 4px; }
.rulecard .rc { display: flex; flex-direction: column; min-width: 0; }
.rulecard b { font-size: .88rem; font-weight: 750; display: flex; align-items: center; gap: .35rem; }
.rulecard .line { font-size: .8rem; line-height: 1.3; color: var(--muted); }
.rulecard.new { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, 0 1px 2px rgba(43,42,51,.06); }
.badge { font: 800 .62rem/1 var(--font-ui); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--badge); border-radius: 99px; padding: 3px 6px 2px; }
.rulecard.all { min-height: 44px; justify-content: center; padding: 6px 12px; background: transparent; border-style: dashed; box-shadow: none; }
.rulecard.all .rc { align-items: center; flex-direction: row; gap: .5rem; }
/* ---- buttons */
#controls, #solbar {
  flex: none; display: flex; gap: 8px; width: 100%; max-width: 600px; border-top: 1px solid transparent;
  padding: 8px calc(10px + env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) calc(10px + env(safe-area-inset-left));
}
button { font: inherit; color: var(--btn-ink); background: var(--btn-bg); border: 1px solid var(--btn-line); border-radius: 8px; cursor: pointer; touch-action: manipulation;
  transition: transform .08s ease-out, background-color .12s, box-shadow .12s; }
button:hover { background: var(--btn-active); }
button:active:not(:disabled) { background: var(--btn-active); transform: scale(var(--press)); }
button:disabled { opacity: .4; cursor: default; }
button:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
button.big { flex: 1; min-height: 56px; min-width: 64px; padding: .3rem .6rem; font-size: .95rem; font-weight: 650; border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
:root[data-theme="classic"] button.big { border-color: var(--line); box-shadow: 0 1px 2px rgba(43,42,51,.08); }
button.big svg.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; flex: none; }
button.big svg.ic.dots { fill: currentColor; stroke: none; }
.khint { display: none; }
button.primary, :root[data-theme="classic"] button.primary { border-color: var(--ok); background: var(--ok); color: #fff; }
button.primary:hover { filter: brightness(1.08); background: var(--ok); }
#btn-next { width: 100%; flex: none; min-height: 50px; }
#solbar .pause, #solbar .lbl-pause { display: none; }
#solbar.playing .pause, #solbar.playing .lbl-pause { display: inline; }
#solbar.playing .play, #solbar.playing .lbl-play { display: none; }
#sol-play { flex: 1.4; border-color: var(--accent); }
#sol-play svg.ic { fill: currentColor; }
#sol-play svg.pause { fill: none; stroke-width: 3; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; box-shadow: var(--shadow); }
h3 { margin: 1rem 0 .3rem; font-size: .95rem; }
.small { font-size: .85rem; color: var(--muted); }
kbd { font: 600 11px/1.5 var(--font-ui); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 .35em; background: var(--panel); color: var(--muted); }
/* ---- sheets: help + level select (full screen on phones, centred dialog on desktop), confirm dialog */
.sheet { position: fixed; inset: 0; z-index: 30; display: flex; align-items: stretch; justify-content: center; background: rgba(30,28,36,.32); }
.sheet .card { width: 100%; max-width: 560px; border-radius: 0; border: 0; display: flex; flex-direction: column; min-height: 0;
  padding: calc(.5rem + env(safe-area-inset-top)) 14px calc(.6rem + env(safe-area-inset-bottom)); }
.sheethead { display: flex; align-items: center; gap: .6rem; flex: none; }
.sheethead h2 { flex: 1; margin: 0; font: 800 1.2rem/1.2 var(--font-title); }
.sheethead .close { flex: none; min-height: 44px; padding: 0 1.1rem; }
.helpbody { overflow-y: auto; flex: 1; min-height: 0; touch-action: pan-y; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; margin: 0 -14px; padding: 0 14px 1rem; -webkit-user-select: text; user-select: text; }
.helpbody .lead { font-weight: 600; margin: .5rem 0 .2rem; }
.helpbody .ctl { margin: 0 0 .6rem; }
.rulelist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rule { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--radius); background: var(--bg); border: 1px solid transparent; }
.rule.focus { border-color: var(--accent); }
.rule .fig { flex: none; width: 138px; display: grid; place-items: center; }
.rule .fig canvas { display: block; border-radius: 6px; }
.rule .rtext { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rule .rtext b { font-size: .95rem; }
.rule .rtext span { font-size: .85rem; line-height: 1.3; color: var(--muted); }
#levellist { list-style: none; margin: .5rem 0 0; padding: 0; overflow-y: auto; flex: 1; touch-action: pan-y; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
#levellist li { border-bottom: 1px solid var(--line); }
#levellist .lv { display: flex; align-items: center; gap: .7rem; width: 100%; min-height: 56px; padding: .4rem .6rem; border: 0; border-radius: 8px; background: transparent; text-align: left; }
#levellist .lv:active { background: var(--btn-active); }
#levellist li .num { width: 1.9em; height: 1.9em; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--board-bg); font-weight: 700; font-size: .88rem; }
#levellist li.cur .num { background: var(--ink); color: var(--bg); }
#levellist li .t { font-weight: 600; min-width: 0; }
#levellist li .meta { color: var(--muted); font-size: .8em; margin-left: auto; text-align: right; flex: none; }
#levellist li .viewed { display: inline-block; color: var(--warn); border: 1px solid currentColor; border-radius: 99px; padding: 0 .45em; font-weight: 600; white-space: nowrap; }
#levellist li .done { width: 1.2em; color: var(--ok); font-weight: 800; flex: none; }
#levellist li.sel .lv { background: var(--sel); }
.keys, .keysonly { display: none; }
#confirm { align-items: center; padding: 16px; }
#confirm .card.dialog { max-width: 340px; border-radius: 16px; border: 1px solid var(--line); padding: 1.1rem 1.1rem 1rem; }
#confirm h2 { margin: 0 0 .35rem; font: 800 1.15rem/1.25 var(--font-title); }
#confirm p { margin: 0 0 1rem; color: var(--muted); }
#confirm .row { display: flex; gap: 8px; }
#confirm .row .big { min-height: 48px; }

/* ---------------------------------------------------------------- Gouache Garden (?theme=gouache; kept working, not polished) */
:root[data-theme="gouache"] body { background: var(--bg) url(../gg/backdrop-phone.webp) center top / cover no-repeat; }
:root[data-theme="gouache"] body::before { content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: url(../gg/grain.webp) 0 0 / 256px repeat; mix-blend-mode: multiply; opacity: .07; }
:root[data-theme="gouache"] #topbar { border-bottom: 1px solid rgba(51,38,31,.16); min-height: 56px; padding-top: calc(.4rem + env(safe-area-inset-top)); padding-bottom: .4rem; }
:root[data-theme="gouache"] #topbar h1 { font: 500 13px/1 var(--font-title); letter-spacing: .3em; }
:root[data-theme="gouache"] #btn-help { border: 2px solid var(--ink); background: var(--panel); font: 600 1.25rem/1 var(--font-title); }
/* board frame: gilt's painted 9-slice as a CSS border-image (12 px phone / 16 px desktop; the controller may thin it) */
:root[data-theme="gouache"] canvas#board { --frame: 12px; border: var(--frame) solid transparent; border-radius: 0; background-clip: content-box;
  border-image: url(../gg/frame@2x.png) 48 / calc(var(--frame) * 2) / var(--frame) stretch; }
:root[data-theme="gouache"] #boardwrap { padding-top: 14px; }
:root[data-theme="gouache"] #msgs { padding: .55rem 14px .25rem; }
:root[data-theme="gouache"] #status { font: 700 14px/1.3 var(--font-ui); color: var(--ink); }
:root[data-theme="gouache"] #hint { font: italic 400 15.5px/1.3 var(--font-title); color: var(--ink); margin-top: .25rem; }
  background: rgba(251,246,234,.78); border: 1px solid rgba(51,38,31,.28); border-radius: 12px; color: var(--ink); }
:root[data-theme="gouache"] #controls { gap: 7px; padding-left: calc(11px + env(safe-area-inset-left)); padding-right: calc(11px + env(safe-area-inset-right)); }
:root[data-theme="gouache"] button.big { border: 2px solid var(--ink); border-radius: 9px 12px 8px 11px / 11px 8px 12px 9px; font: 800 15px/1.1 var(--font-ui); background: var(--panel); }
:root[data-theme="gouache"] button.big:hover, :root[data-theme="gouache"] button.big:active { background: var(--btn-active); }
:root[data-theme="gouache"] button.primary { background: var(--ok); color: #fff; border-color: var(--ok); }
:root[data-theme="gouache"] #win .card { background: var(--panel); border: 2px solid var(--ok); box-shadow: 0 3px 10px rgba(51,38,31,.18); }
:root[data-theme="gouache"] #win h2 { font: 600 1.25rem/1.2 var(--font-title); }
:root[data-theme="gouache"] .card { background: var(--panel); }
:root[data-theme="gouache"] kbd { font: 700 11px/1.4 var(--font-ui); background: #F3EADA; border-color: rgba(51,38,31,.35); color: var(--ink); }
/* desktop */
@media (min-width: 900px) and (min-height: 561px) {
  #topbar { min-height: 60px; padding-left: 28px; padding-right: 20px; gap: .8rem; }
  #topbar h1 { font-size: 1.45rem; }
  #levelname { font-size: 1.05rem; }
  #app { justify-content: center; padding: 14px 1.5rem 0; }
  #play { flex: none; display: grid; grid-template-columns: min-content 300px; grid-template-rows: auto minmax(84px, auto) auto 1fr; column-gap: 32px;
    grid-template-areas: "board cards" "msgs cards" "ctrl cards" ". cards"; align-items: start; height: 100%; }
  #boardwrap { grid-area: board; padding-top: 0; }
  #mid { display: contents; }
  #msgs { grid-area: msgs; max-width: none; min-width: 0; min-height: auto; padding: .5rem 0 .2rem; overflow: visible; }
  #controls, #solbar { grid-area: ctrl; padding: 4px 0 16px; max-width: none; }
  #cards { grid-area: cards; grid-row: 1 / 5; overflow-y: auto; padding: 0 0 16px; max-height: 100%; gap: 10px; }
  #cards.none { display: flex; }
  .cardshead { margin: 2px 0 0; font-size: .78rem; }
  .rulecard { min-height: 72px; padding: 8px 12px 8px 8px; }
  .rulecard .ic { min-width: 72px; }
  .rulecard .line { font-size: .82rem; }
  .rulecard.all { min-height: 48px; }
  button.big { flex-direction: row; gap: .45rem; min-height: 48px; }
  .khint { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 3px; margin-left: .35rem; border-radius: 5px; font-size: 10px; }
  .sheet { align-items: center; }
  .sheet .card { border-radius: 16px; max-height: 88vh; padding: 1.1rem 1.4rem; border: 1px solid var(--line); }
  .sheet .card.helpcard { max-width: 940px; }
  .helpbody { margin: 0 -1.4rem; padding: 0 1.4rem 1rem; }
  .rulelist { grid-template-columns: 1fr 1fr; gap: 10px; }
  .rule .fig { width: 168px; }
  .keys { display: block; } .keysonly { display: inline; }
  :root[data-theme="gouache"] body { background-image: url(../gg/backdrop-desktop.webp); }
  :root[data-theme="gouache"] #topbar h1 { font: 500 26px/1 var(--font-title); letter-spacing: .18em; text-transform: none; }
  :root[data-theme="gouache"] canvas#board { --frame: 16px; }
}
/* tablet portrait and big phones: same column, more room */
@media (min-width: 600px) and (orientation: portrait) {
  #topbar { min-height: 60px; padding-left: calc(24px + env(safe-area-inset-left)); padding-right: calc(16px + env(safe-area-inset-right)); }
  #topbar h1 { font-size: 1.4rem; } #levelname { font-size: 1.05rem; }
  #boardwrap { padding-top: 12px; }
  .cards { display: grid; grid-template-columns: 1fr 1fr; } .cardshead { grid-column: 1 / -1; }
  button.big { flex-direction: row; gap: .45rem; }
}
/* landscape phone (short window): header on top, board left, a side panel right with the scrolling middle above the
   footer buttons. Nothing scrolls but the panel's middle; the board is sized to the free cell (game.js measures it). */
@media (orientation: landscape) and (max-height: 560px) {
  #topbar { min-height: 44px; padding-top: calc(0px + env(safe-area-inset-top)); padding-bottom: 0; }
  #topbar h1 { font-size: 1.05rem; } #levelname { font-size: .95rem; }
  #app { padding: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left); }
  #play { display: grid; grid-template-columns: minmax(0, 1fr) clamp(250px, 42vw, 380px); grid-template-rows: minmax(0, 1fr) auto;
    grid-template-areas: "board mid" "board ctrl"; column-gap: 12px; align-items: stretch; width: 100%; }
  #boardwrap { grid-area: board; min-height: 0; padding: 4px 0 calc(6px + env(safe-area-inset-bottom)) 8px; overflow: hidden; }
  #mid { grid-area: mid; max-width: none; }
  #msgs { padding: .25rem 8px 0 0; } .cards { padding: 4px 8px 8px 0; }
  #controls, #solbar { grid-area: ctrl; max-width: none; padding: 6px calc(8px) calc(6px + env(safe-area-inset-bottom)) 0; gap: 6px; }
  button.big { min-height: 48px; min-width: 0; font-size: .85rem; padding: .2rem .3rem; }
  button.big svg.ic { width: 18px; height: 18px; }
}
@media (max-width: 380px) { #topbar { gap: .4rem; padding-left: 12px; } #topbar h1 { font-size: 1.1rem; } #topbar h1::after { margin-left: .4rem; } #levelname { font-size: .95rem; gap: .3rem; } }
@media (prefers-reduced-motion: reduce) { button, button:active:not(:disabled) { transform: none !important; transition: none; } #win .card.pop { animation: none; } }
/* touch screens (tablets included): no keyboard-shortcut chips */
@media (hover: none) { .khint, .keysonly { display: none !important; } }
