/* Neko Revolution — one layout only: a phone held sideways. The stage (#stage) is the whole screen on a phone; on any larger
   window app.js scales an 844×390 stage to fit and the rest is dark letterbox. Every size below is a stage pixel.
   The look is GPT's simple illustration pack v2 (dist/art, dist/ui; tools/art-pack/design-tokens.json): thin dark-brown
   outlines, flat fills, cream paper, ochre for the action, cream for the rest, coral for leaving, teal for the room and
   the cat. The palette below is that pack's tokens. */
:root{--font-body:'Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;--font-display:'Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;--font-num:'Arial Rounded MT Bold','Trebuchet MS','Noto Sans KR','Malgun Gothic',system-ui,sans-serif;
 /* Palette. --ink is the outline and the text on cream; --accent is the one action colour (butter yellow). */
 --ink:#3b2a24;--ink-soft:#6b5346;--cream:#fff8e9;--paper:#f4e7cd;--paper-deep:#e5d3b0;--wood:#97714c;--wood-hi:#b98d61;--wood-dark:#6d4f34;--room:#553a26;--room-deep:#33241a;
 --yellow:#efb94f;--yellow-deep:#c08c2c;--coral:#d77b68;--coral-deep:#a4503f;--teal:#2eaab0;--teal-deep:#268e91;--red:#c8322b;--disabled:#c9bda5;
 --ivory:var(--cream);--mist:#b9a07e;--gold:var(--yellow);--ember:var(--coral);--jade:#7fd6b8;
 --accent:var(--yellow);--accent-deep:var(--yellow-deep);--accent-ink:var(--ink);--focus:#1a8cff;
 /* Motion tokens (mirrored by MOTION_MS in motion.js): tap feedback, quick UI, a card move, a screen change. */
 --t-tick:250ms;--t-tap:140ms;--t-quick:200ms;--t-move:420ms;--t-screen:260ms;--t-stagger:26ms;--t-stagger-slow:110ms;
 --ease-out:cubic-bezier(.2,.75,.25,1);--ease-inout:cubic-bezier(.45,0,.25,1);--ease-in:cubic-bezier(.5,0,.75,.4);
 /* The phone's safe area (a notch in landscape is on one side): screens pad their content with these, never their
    own background, so a strip still reaches both edges. A test can override them to stand in for a notch. */
 --sa-t:env(safe-area-inset-top);--sa-r:env(safe-area-inset-right);--sa-b:env(safe-area-inset-bottom);--sa-l:env(safe-area-inset-left);
 --k:1;--sw:100vw;--sh:100dvh;font-family:var(--font-body);color:var(--ink);background:#1a0f09;font-synthesis:none;-webkit-tap-highlight-color:transparent}
*{box-sizing:border-box}
html,body{margin:0;height:100%;overflow:hidden;overscroll-behavior:none;touch-action:pan-x pan-y}
body{font-size:14px;line-height:1.4;letter-spacing:-.005em;word-break:keep-all;overflow-wrap:break-word;background:#1a0f09}
#stage{position:fixed;left:0;top:0;width:100vw;height:100vh;height:100dvh;overflow:hidden;background:var(--room);color:var(--cream);transform-origin:0 0;isolation:isolate}
.scaled #stage{left:var(--sx);top:var(--sy);width:var(--sw);height:var(--sh);transform:scale(var(--k))}
/* Soft keyboard (device.js watchStage): the stage keeps its size while a field has focus and slides up to show it. */
.kb-freeze:not(.scaled) #stage{height:var(--kb-h)}
.kb-freeze #stage{transition:transform var(--t-quick) var(--ease-out)}
.kb-shift #stage{transform:translateY(var(--kb-shift))}
.kb-shift.scaled #stage{transform:translateY(var(--kb-shift)) scale(var(--k))}
#app{height:100%;min-height:0}
h1,h2,h3,p{margin:0}small{font-size:.75rem}a{color:inherit;text-decoration:none}
button{font:inherit;cursor:pointer;border:0;color:inherit;background:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
button:disabled{cursor:default;opacity:.45}
button:not(:disabled){transition:background-color var(--t-tap),transform var(--t-tap),color var(--t-tap),box-shadow var(--t-tap)}button:not(:disabled):not(.fan-card):active{transform:translateY(1px)}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.boot{display:grid;place-items:center;height:100%}
.boot:before{content:'';width:12px;height:12px;border-radius:50%;background:var(--yellow);border:2px solid var(--ink);box-shadow:20px 0 0 -2px var(--cream),-20px 0 0 -2px var(--coral)}

/* Buttons: the pack's planks (ui/button-*.svg, 320×96) as 9-slice border images, so the rounded ends and the rivets keep
   their shape at any width. Yellow = the action, cream = the rest, coral
   = leaving. Pressed swaps to the pressed plank, whose face sits 10/96 lower, and the label goes down with it; disabled
   is the grey plank; focus gets a blue ring. The label keeps clear of the plank's base (the lower 16/96). The top slice
   (50/96) holds the rivets, so a taller plank stretches only the plain face between them and the base. */
.primary,.secondary,.actions .text-button,.mode-button,.leave-button{--plank:url(ui/button-secondary-normal.svg);--plank-down:url(ui/button-secondary-pressed.svg);--plank-off:url(ui/button-secondary-disabled.svg);
 min-height:48px;padding:0 16px 5px;border:0 solid transparent;border-radius:0;border-image:var(--plank) 50 46 34 46 fill/25px 22px 17px 22px stretch;background:none;box-shadow:none;font-size:15px;font-weight:900;line-height:1.1;letter-spacing:-.01em;display:inline-flex;gap:8px;align-items:center;justify-content:center;white-space:nowrap;color:var(--ink)}
.primary{--plank:url(ui/button-primary-normal.svg);--plank-down:url(ui/button-primary-pressed.svg);--plank-off:url(ui/button-primary-disabled.svg)}
.primary.danger,.leave-button{--plank:url(ui/button-danger-normal.svg);--plank-down:url(ui/button-danger-pressed.svg);--plank-off:url(ui/button-danger-disabled.svg)}
.primary:not(:disabled):active,.secondary:not(:disabled):active,.actions .text-button:not(:disabled):active,.mode-button:not(:disabled):active,.leave-button:not(:disabled):active{border-image-source:var(--plank-down);padding-top:5px;padding-bottom:0}
.primary:disabled,.secondary:disabled,.actions .text-button:disabled,.mode-button:disabled,.leave-button:disabled{border-image-source:var(--plank-off);color:#7d6c55;opacity:1;cursor:default}
.menu-item:not(:disabled):active{transform:translateY(2px);box-shadow:0 1px 0 var(--ink)}
.text-button{min-height:44px;padding:6px 10px;border-radius:12px;font-size:13px;font-weight:800;color:var(--ink);background:var(--paper);border:2px solid var(--ink);box-shadow:0 3px 0 var(--ink)}
.text-button:disabled{box-shadow:none;opacity:.55}
.icon-button{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;font-size:18px;color:var(--ink);background:var(--cream);border:2.5px solid var(--ink);box-shadow:0 3px 0 var(--ink)}
.icon-button .icon{width:24px;height:24px;pointer-events:none}
.pill{display:inline-flex;gap:4px;align-items:center;justify-content:center;padding:2px 10px;line-height:1.3;border-radius:999px;background:var(--cream);color:var(--ink);border:2px solid var(--ink);font-size:11px;font-weight:900;white-space:nowrap}
.pill.your-turn{background:var(--yellow)}.pill.light{background:var(--coral);color:var(--ink)}.pill.table-status{background:var(--paper)}

/* Switch: the state is the knob position and the track colour (plus aria-checked), never a word. */
.switch{appearance:none;-webkit-appearance:none;position:relative;flex-shrink:0;width:44px;height:26px;margin:0;border-radius:13px;background:#d9c7a3;border:2.5px solid var(--ink);cursor:pointer;transition:background-color var(--t-quick)}
.switch:before{content:'';position:absolute;top:2px;left:2px;width:17px;height:17px;border-radius:50%;background:var(--cream);border:2px solid var(--ink);box-sizing:border-box;transition:transform var(--t-quick) var(--ease-out)}
.switch:checked{background:var(--teal)}.switch:checked:before{transform:translateX(18px);background:var(--yellow)}
.switch-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:6px 12px 6px 14px;line-height:1.2;border:2px solid var(--ink);border-radius:12px;background:var(--cream);color:var(--ink);font-size:13px;font-weight:800;cursor:pointer}
.switch-row:has(.switch:checked){background:#e7f6f1}

/* Dialogs: a sheet of cream paper with a thick outline and a wooden header rule. They sit in the top layer, outside the
   scaled stage, so they carry the scale themselves. --age (set by app.js) keeps a repaint of an open dialog from
   replaying its entrance; a closing dialog (app.js `closing`) is inert and takes no clicks. */
dialog{zoom:calc(var(--k) * var(--fit,1));border:3px solid var(--ink);border-radius:18px;padding:16px 20px;width:min(560px,calc(var(--sw) - 32px));max-height:none;overflow:hidden;overscroll-behavior:none;color:var(--ink);background:var(--cream);box-shadow:0 6px 0 var(--ink),0 24px 60px #0008}
dialog:before{content:'';position:absolute;left:0;right:0;top:0;height:8px;background:repeating-linear-gradient(90deg,var(--wood) 0 38px,var(--wood-dark) 38px 40px);border-bottom:2px solid var(--ink);pointer-events:none}
/* Nothing scrolls. A dialog taller than the stage is made wider and, if it must, smaller as a whole (app.js fitDialog). */
dialog.fit{width:calc((var(--sw) - 24px) / var(--fit,1));max-width:none}
dialog[open]{animation:dialog-in var(--t-quick) var(--ease-out) both;animation-delay:var(--age,0ms)}
dialog[open]::backdrop{animation:backdrop-in var(--t-quick) ease both;animation-delay:var(--age,0ms)}
dialog.closing{animation:dialog-out var(--t-tap) var(--ease-in) both;pointer-events:none}dialog.closing::backdrop{animation:backdrop-out var(--t-tap) ease both}
@keyframes dialog-in{from{opacity:0;transform:translateY(10px) scale(.96)}to{opacity:1;transform:none}}
@keyframes dialog-out{to{opacity:0;transform:scale(.96)}}
@keyframes backdrop-in{from{opacity:0}}@keyframes backdrop-out{to{opacity:0}}
dialog::backdrop{background:#1c0f08b8}
.dialog-header{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:32px;margin:0 0 12px}
.dialog-header h2{display:flex;align-items:center;gap:8px;font-family:var(--font-display);font-size:18px;font-weight:900;line-height:1.2;letter-spacing:-.02em}
.dialog-header h2:before{content:'';width:14px;height:14px;border-radius:50%;background:var(--yellow);border:2.5px solid var(--ink)}
.dialog-header .icon-button{width:44px;height:44px;margin:-6px -8px -6px 0;box-shadow:0 2px 0 var(--ink)}.dialog-header .icon-button .icon{width:22px;height:22px}
dialog p{color:var(--ink-soft);line-height:1.6;font-size:13px}
dialog .actions{display:flex;gap:10px;justify-content:flex-end;margin-top:14px}
dialog .actions button{min-width:112px;padding:0 20px 5px}dialog .actions button:not(:disabled):active{padding:5px 20px 0}
.dialog-action{width:100%;min-height:50px;margin-top:14px}
dialog h3{font-size:13px;margin:12px 0 4px;color:var(--ink)}

/* Menus: every item is a little crew card — the face of the one who does that job (app.js officer) over the label.
   Order: continue → table → account → leaving, the last group set apart below a rope. */
.menu-dialog{width:min(520px,calc(var(--sw) - 32px));padding:14px 16px 8px}
.menu-resume{width:100%;min-height:46px;font-size:16px}
.menu-group{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px;margin-top:10px}
.menu-item{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:64px;min-width:0;padding:6px 4px;border:2px solid var(--ink);border-radius:12px;background:var(--paper);color:var(--ink);font-size:12px;font-weight:800;text-align:center;cursor:pointer;box-shadow:0 3px 0 var(--ink)}
.menu-item:not(:disabled):hover{background:#fbeecf}
.menu-item .menu-emblem{display:grid;place-items:center}
.menu-item .menu-emblem .icon{display:block;width:28px;height:28px}
.menu-item>span:last-of-type{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.menu-item .switch-line{display:flex;align-items:center;gap:6px}
.menu-item .switch{width:38px;height:22px}.menu-item .switch:before{width:13px;height:13px}.menu-item .switch:checked:before{transform:translateX(16px)}
.menu-item.menu-switch:has(.switch:checked){background:#e7f6f1}
.menu-leave{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px;margin-top:12px;padding-top:12px;border-top:3px dashed var(--wood)}
.menu-leave .menu-item{flex-direction:row;gap:8px;min-height:48px;background:var(--cream)}
.menu-leave #menu-exit{background:var(--coral)}
.menu-leave .menu-item:not(:disabled):hover{filter:brightness(1.04)}

.confirm-dialog{width:min(420px,calc(var(--sw) - 32px))}
.menu-foot{display:flex;align-items:center;justify-content:center;min-height:32px;margin-top:4px;font-size:11px;font-weight:700;color:var(--ink-soft);text-decoration:underline;text-underline-offset:3px}
/* Google Play 게임즈: the account line — the Play Games name when signed in, a 로그인 control when not. */
.menu-account{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;margin-top:10px;padding:6px 12px;border:2px solid var(--ink);border-radius:12px;background:var(--paper);color:var(--ink);font-size:12px;text-align:left}
.menu-account .pg-mark{width:14px;height:14px;flex-shrink:0;fill:var(--teal)}
.menu-account .pg-label{color:var(--ink-soft);white-space:nowrap}
.menu-account strong{margin-left:auto;font-size:13px;max-width:55%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.menu-account small{color:var(--coral-deep);font-size:11px;font-weight:800}
button.menu-account strong{color:var(--teal-deep)}
.standings-list{list-style:none;padding:0;margin:0 0 10px}
.standings-list li{display:flex;align-items:center;gap:14px;min-height:40px;padding:6px 10px;border-bottom:2px dashed var(--paper-deep);font-size:13px;font-weight:700}
.standings-list li>b{min-width:72px;font-family:var(--font-display)}.standings-list li>span{flex:1;overflow-wrap:anywhere}.standings-list li>strong{font-variant-numeric:tabular-nums;font-family:var(--font-num);font-size:15px}
.standings-list li.me{background:#fff0b3;border-radius:8px}
.dialog-history{columns:2;column-gap:28px;font-size:12px;color:var(--ink-soft);line-height:1.7;padding-left:18px;margin:6px 0 0}

/* Rules: a compact reference — numbered lines, the posts, the thirteen faces. */
.rules-dialog{width:calc(var(--sw) - 24px);max-width:none;padding:14px 20px 16px}
.rules-dialog[open]{display:flex;flex-direction:column;overflow:hidden}
.rules-content{min-height:0}
.rule-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 28px;font-size:12.5px;line-height:1.5;color:var(--ink)}
.rule-list li{display:flex;gap:10px;align-items:flex-start}.rule-list b{flex-shrink:0;min-width:30px;height:20px;line-height:17px;margin-top:0;padding:0 4px;border-radius:6px;background:var(--yellow);border:1.5px solid var(--ink);text-align:center;font-family:var(--font-num);font-size:11px}
.rules-ref{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:0 28px;align-items:start}
.rules-ref .seat-row{display:grid;grid-template-columns:repeat(3,max-content);gap:6px 12px;font-size:11px}.rules-ref .seat-row li{gap:4px}
.rules-content h3 small{display:block;margin:2px 0 0;font-size:11px;font-weight:700;color:var(--ink-soft)}
.rules-content h3{font-size:12.5px;line-height:1.3;letter-spacing:-.01em;color:var(--ink);margin:14px 0 8px;font-weight:900}
.seat-row{display:flex;flex-wrap:wrap;gap:8px 18px;margin:0;padding:0;list-style:none;font-size:12px}
.seat-row li{display:flex;align-items:center;gap:6px}.seat-row small{color:var(--ink-soft);font-size:11px;font-weight:700}
.rules-dialog .dialog-action{flex-shrink:0;min-height:48px;margin-top:10px}

.form-error{min-height:18px;color:var(--coral-deep);font-size:12px;font-weight:800;line-height:1.4;margin:0}
@media(prefers-reduced-motion:reduce){*,*:before,*:after,dialog::backdrop{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
::view-transition-old(root),::view-transition-new(root){animation-duration:var(--t-screen);animation-timing-function:ease}
@media(prefers-reduced-motion:reduce){::view-transition-old(root),::view-transition-new(root){animation:none!important}}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* 0.13 — the career: the start screen's chip, 기록, the match result, and card backs.
   A back is the pack's one painted back re-tinted by a filter (--back-tint); the look is chosen on <body data-back>. */
body[data-back="crimson"],.look-back[data-back="crimson"]{--back-tint:hue-rotate(165deg) saturate(1.25) brightness(.95)}
body[data-back="emerald"],.look-back[data-back="emerald"]{--back-tint:hue-rotate(-45deg) saturate(1.1)}
body[data-back="violet"],.look-back[data-back="violet"]{--back-tint:hue-rotate(70deg) saturate(1.1) brightness(.92)}
body[data-back="gold"],.look-back[data-back="gold"]{--back-tint:sepia(1) saturate(3.2) hue-rotate(-8deg) brightness(1.3) contrast(1.05)}
.look-back[data-back="classic"]{--back-tint:none}
.card-back,.spent-stack i{filter:var(--back-tint,none)}
.coin-icon{display:inline-block;width:1em;height:1em;vertical-align:-.14em;margin-right:.25em;flex-shrink:0}
.career-chip{display:flex;align-items:center;gap:10px;min-height:44px;padding:4px 14px;border:2.5px solid var(--ink);border-radius:22px;background:var(--cream);color:var(--ink);box-shadow:0 3px 0 var(--ink);font-size:13px;font-weight:800;cursor:pointer}
.career-chip b{font-family:var(--font-display);font-size:14px}.career-chip span{font-family:var(--font-num);font-variant-numeric:tabular-nums}
.career-chip i{font-style:normal;font-size:11px;padding:2px 8px;border-radius:10px;background:var(--coral);color:#fff;border:1.5px solid var(--ink)}
.career-grade{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:4px 12px;margin:0 0 8px}
.career-grade b{font-family:var(--font-display);font-size:20px;grid-row:1/3}.career-grade small{font-size:11px;font-weight:700;color:var(--ink-soft)}
.career-bar{display:block;height:10px;border:2px solid var(--ink);border-radius:6px;background:var(--paper-deep);overflow:hidden}.career-bar i{display:block;height:100%;background:var(--yellow)}
.career-stats{display:flex;flex-wrap:wrap;gap:6px 16px;margin:0 0 4px;font-size:13px;font-weight:800;font-variant-numeric:tabular-nums}
.career-note{margin:0 0 8px;font-size:11px;font-weight:700;color:var(--ink-soft)}
.career-dialog h3{margin:8px 0 4px;font-size:13px}
.mission-list{list-style:none;margin:0 0 10px;padding:0}
.mission-list li{display:flex;align-items:center;gap:10px;min-height:34px;padding:4px 2px;border-bottom:2px dashed var(--paper-deep);font-size:13px;font-weight:700}
.mission-list li span{flex:1}.mission-list li em{font-style:normal;font-family:var(--font-num);font-variant-numeric:tabular-nums;color:var(--ink-soft)}.mission-list li b{min-width:44px;text-align:right;font-family:var(--font-num)}
.mission-list li.done span{text-decoration:line-through;color:var(--ink-soft)}.mission-list li.done em{color:var(--teal-deep)}
.career-dialog .menu-item{flex-direction:row;gap:8px;width:100%;min-height:48px;background:var(--cream)}
.match-reward{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:0 0 12px;font-size:14px;font-weight:800}
.match-reward .reward-gold{font-family:var(--font-num);font-size:18px}.match-reward small{font-size:11px;padding:2px 8px;border-radius:10px;background:var(--yellow);border:1.5px solid var(--ink)}
.match-reward .reward-grade{flex-basis:100%;font-family:var(--font-display);font-size:15px}
.shop-dialog .dialog-header{justify-content:flex-start}.shop-dialog .dialog-header h2{flex:1}.shop-gold{font-family:var(--font-num);font-weight:800;font-size:14px;font-variant-numeric:tabular-nums}
.look-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.look-item{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;padding:8px 2px 6px;border:2px solid var(--ink);border-radius:12px;background:var(--paper);color:var(--ink);box-shadow:0 3px 0 var(--ink);font-size:11px;font-weight:800;cursor:pointer}
.look-item b{font-size:11px;white-space:nowrap}.look-item small{font-size:11px;font-family:var(--font-num);color:var(--ink-soft)}
.look-item.worn{background:#fff0b3}.look-item.pick{outline:3px solid var(--yellow);outline-offset:1px}
.look-back{display:block;width:44px;aspect-ratio:2/3;border-radius:6px}
.shop-action{display:grid;min-height:48px;margin-top:10px}
/* The match's ranking runs down two columns so the whole result fits a phone held sideways without scrolling. */
.match-list{display:grid;grid-auto-flow:column;grid-template-rows:repeat(var(--rows,3),auto);column-gap:18px;margin-bottom:8px}
.match-list li{min-height:30px;padding:3px 2px;gap:8px}.match-list li>b{min-width:34px}
.match-dialog .dialog-action{margin-top:0}
/* The back button's hint (back.js toast): a dark pill near the bottom of the stage that fades out by itself. */
.toast{position:absolute;z-index:90;left:50%;bottom:calc(18px + var(--sa-b,0px));transform:translateX(-50%);padding:8px 16px;border-radius:999px;background:#2a1a12e6;color:var(--cream);font-size:13px;font-weight:900;line-height:1.3;white-space:nowrap;pointer-events:none;animation:toast-life calc(var(--t-move) * 4.76) var(--ease-out) both}
@keyframes toast-life{0%{opacity:0;transform:translate(-50%,8px)}10%,80%{opacity:1;transform:translate(-50%,0)}100%{opacity:0}}
/* 소리 in the menu: 배경음 and 효과음 side by side, each a slider with its number. */
.menu-sound{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}
.volume-row{display:grid;grid-template-columns:auto auto minmax(0,1fr) 30px;align-items:center;gap:8px;min-height:48px;padding:4px 10px 4px 8px;border:2px solid var(--ink);border-radius:12px;background:var(--paper);color:var(--ink);font-size:12.5px;font-weight:900;line-height:1.2}
.volume-row .menu-emblem .icon{display:block;width:22px;height:22px}
.volume-row .volume-name{white-space:nowrap}
.volume-row input[type=range]{width:100%;min-width:0;height:28px;margin:0;accent-color:var(--teal)}
.volume-row output{font-family:var(--font-num);font-size:12px;font-weight:900;text-align:right;font-variant-numeric:tabular-nums}
.volume-row:has(input[value="0"]) .menu-emblem{opacity:.4}
/* 화면 가로/세로 in the menu: two choices in the time-limit chooser's look. */
.menu-layout{display:flex;align-items:center;gap:8px;margin-top:8px;min-height:48px;padding:4px 8px 4px 12px;border:2px solid var(--ink);border-radius:12px;background:var(--paper);font-size:12.5px;font-weight:900;color:var(--ink)}
.menu-layout>span{margin-right:auto}
.menu-layout label{position:relative;display:block}
.menu-layout input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.menu-layout label span{display:grid;place-items:center;min-width:64px;height:36px;padding:0 12px;border:2px solid var(--ink);border-radius:10px;background:var(--cream);font-size:13px;font-weight:900}
.menu-layout input:checked+span{background:var(--yellow);box-shadow:inset 0 -3px 0 var(--yellow-deep)}
.menu-layout input:focus-visible+span{outline:3px solid var(--focus);outline-offset:2px}
