/* Scatterhaus Originals v2: the shared shell for every instant-game demo (play money only).
   Layout borrowed from the market leaders (control panel left, stage right, history strip on top),
   look is ours: every game sets --acc, --acc2, --bg1, --bg2 on <body> for its own saturated world. */
@import url('../assets/brand.css');
html, body { height: 100%; }
body { --acc: #c8ff2e; --acc2: #8b5cff; --acc-ink: #10140a; --bg1: #1b1240; --bg2: #07060d;
  overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: manipulation; background: var(--bg2); }
.app { position: relative; height: 100%; display: grid; grid-template-rows: auto 1fr; grid-template-columns: minmax(0, 1fr); isolation: isolate; }
.app::before { content: ''; position: absolute; inset: 0; z-index: -2; background: radial-gradient(120% 90% at 70% 10%, var(--bg1), var(--bg2) 70%); }
.app::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1.5px) 0 0/24px 24px;
  mask-image: radial-gradient(ellipse 70% 60% at 65% 45%, #000 30%, transparent 100%); }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,.06); background: rgba(5,4,10,.35); backdrop-filter: blur(10px); }
.title { display: flex; align-items: center; gap: 12px; font: 800 clamp(15px, 2vw, 20px)/1 var(--display); letter-spacing: -.02em; }
.title img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-3px) rotate(-5deg); } }
.title small { display: flex; align-items: center; gap: 6px; margin-top: 5px; font: 700 9px/1 var(--mono); letter-spacing: .16em; color: var(--acc); text-transform: uppercase; }
.title small::before { content: ''; width: 7px; height: 7px; background: currentColor; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.right { display: flex; align-items: center; gap: 8px; }
.wallet { display: flex; align-items: center; gap: 10px; padding: 7px 12px 7px 8px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08); }
.wallet::before { content: ''; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3c4, #ffc443 50%, #b8780a); box-shadow: 0 0 10px rgba(255,196,67,.5); }
.wallet b { display: block; font: 700 16px/1.1 var(--mono); }
.wallet span { display: block; font: 600 9px/1 var(--mono); letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.wallet.up b { animation: up .9s ease; }
@keyframes up { 30% { color: var(--acc); transform: scale(1.12); text-shadow: 0 0 18px var(--acc); } }
.snd { width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.35); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.snd:hover { color: var(--acc); border-color: var(--acc); }

/* main: panel + stage */
.main { display: grid; grid-template-columns: 320px 1fr; min-height: 0; }
.panel { display: flex; flex-direction: column; gap: 14px; padding: 16px; background: rgba(8,7,16,.72); border-right: 1px solid rgba(255,255,255,.06); overflow-y: auto; backdrop-filter: blur(14px); }
.stage { position: relative; display: grid; grid-template-rows: auto 1fr; min-height: 0; min-width: 0; padding: 12px 16px 14px; gap: 10px; }
.arena { position: relative; display: grid; place-items: center; min-height: 0; }
.panel > * { flex-shrink: 0; } /* a scrolling panel must not squash the Go button to 2 px */
@media (max-width: 900px) {
  .main { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .stage { order: -1; padding: 8px 10px; }
  .panel { border-right: 0; border-top: 1px solid rgba(255,255,255,.06); padding: 12px; gap: 10px; max-height: 46vh; }
  .panel .opt-desk { display: none; }
}
/* short landscape phones: stacking leaves a ~150 px stage, so go back to panel left / stage right */
@media (max-width: 900px) and (max-height: 520px) and (orientation: landscape) {
  .main { grid-template-columns: minmax(220px, 34vw) 1fr; grid-template-rows: none; }
  .stage { order: 0; }
  .panel { border-top: 0; border-right: 1px solid rgba(255,255,255,.06); max-height: none; }
}
/* narrow phones: the header must fit in 375 px */
@media (max-width: 440px) {
  .top { padding: 8px 10px; gap: 8px; }
  .title { gap: 8px; min-width: 0; font-size: 15px; }
  .title img { width: 30px; height: 30px; }
  .title small, .wallet span { display: none; }
  .right { gap: 6px; }
  .wallet { gap: 6px; padding: 6px 10px 6px 6px; }
  .wallet b { font-size: 14px; }
  .snd { width: 36px; height: 36px; }
}

/* history strip */
.hist { display: flex; gap: 6px; overflow: hidden; min-height: 30px; mask-image: linear-gradient(90deg, #000 85%, transparent); }
.hist i { flex: none; padding: 6px 10px; border-radius: 999px; font: 700 12px/1 var(--mono); font-style: normal; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.07); animation: hin .45s cubic-bezier(.2,1.5,.4,1); }
@keyframes hin { from { transform: translateX(-24px) scale(.8); opacity: 0; } }
.hist .c1 { color: #4de1ff; } .hist .c2 { color: #b48cff; } .hist .c3 { color: #ff5fb0; } .hist .c4 { color: #ffc443; } .hist .c0 { color: #9a93ab; } .hist .lose { color: #ff6b81; }
.funmode { position: absolute; top: 0; left: 50%; transform: translateX(-50%); padding: 4px 14px; border-radius: 0 0 10px 10px; background: var(--acc); color: var(--acc-ink); font: 800 10px/1.2 var(--mono); letter-spacing: .14em; z-index: 3; }

/* panel controls */
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 14px; background: rgba(0,0,0,.4); }
.tabs button { border: 0; background: transparent; color: var(--muted); padding: 10px; border-radius: 10px; font: 700 13px/1 var(--body); cursor: pointer; transition: .2s; }
.tabs button.on { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label { display: flex; justify-content: space-between; font: 600 11px/1 var(--body); color: var(--muted); }
.field > label em { font-style: normal; color: var(--dim); }
.amount { display: flex; align-items: center; height: 46px; border-radius: 12px; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.amount .cur { width: 30px; height: 30px; margin: 0 4px 0 8px; flex: none; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3c4, #ffc443 50%, #b8780a); }
.amount output, .amount input { flex: 1; min-width: 0; font: 700 16px/1 var(--mono); color: #fff; background: none; border: 0; outline: 0; }
.amount button { height: 100%; padding: 0 12px; border: 0; border-left: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.04); color: var(--text); font: 700 13px/1 var(--mono); cursor: pointer; }
.amount button:hover { background: rgba(255,255,255,.1); color: var(--acc); }
.chips5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.chips5 button { padding: 8px 0; border-radius: 9px; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.04); color: var(--muted); font: 700 12px/1 var(--mono); cursor: pointer; }
.chips5 button:hover { color: #fff; border-color: rgba(255,255,255,.2); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0,0,0,.4); }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 9px 4px; border-radius: 9px; font: 700 12px/1 var(--mono); cursor: pointer; transition: .2s; }
.seg button.on { background: color-mix(in srgb, var(--acc) 22%, transparent); color: var(--acc); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 45%, transparent); }
.box { display: flex; align-items: center; height: 46px; padding: 0 12px; border-radius: 12px; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.08); font: 700 15px/1 var(--mono); }
.box input, .box select { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font: inherit; }
.box select option { background: #15121e; }
.box small { color: var(--muted); }
input[type=range].slide { width: 100%; accent-color: var(--acc); }
.go { position: relative; overflow: hidden; width: 100%; height: 54px; border-radius: 14px; border: 0; cursor: pointer;
  background: linear-gradient(180deg, color-mix(in srgb, var(--acc) 82%, #fff), var(--acc)); color: var(--acc-ink); font: 800 17px/1 var(--display); letter-spacing: -.01em;
  box-shadow: 0 10px 30px -10px var(--acc), inset 0 -4px 0 rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.5); transition: transform .1s, filter .2s; }
.go small { display: block; font: 700 11px/1.3 var(--mono); opacity: .8; }
.go::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: shine 3.2s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.go:hover { filter: brightness(1.07); }
.go:active { transform: translateY(2px); box-shadow: 0 4px 16px -8px var(--acc), inset 0 -1px 0 rgba(0,0,0,.18); }
.go:disabled { filter: grayscale(1) brightness(.5); cursor: default; box-shadow: none; }
.go:disabled::after { display: none; }
.go.cash { background: linear-gradient(180deg, #ffd27a, #ff9d1c); color: #2a1200; box-shadow: 0 10px 30px -8px #ff9d1c, inset 0 -4px 0 rgba(0,0,0,.18); }
.ghost { width: 100%; height: 42px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: var(--text); font: 700 13px/1 var(--body); cursor: pointer; }
.ghost:hover:not(:disabled) { border-color: var(--acc); color: var(--acc); }
.ghost:disabled { opacity: .35; cursor: default; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.row2 input { width: 100%; min-width: 0; }
.stat { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.3); font: 600 12px/1 var(--mono); color: var(--muted); }
.stat b { color: #fff; }
.panel .spacer { flex: 1; }
.note { font: 500 10px/1.4 var(--mono); color: var(--dim); text-align: center; }

/* generic glass card on stage */
.glass { background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.1); border-radius: 24px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08); }

/* callouts */
.toast { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.5); opacity: 0; pointer-events: none; z-index: 20; text-align: center; transition: transform .5s cubic-bezier(.2,1.7,.4,1), opacity .25s; }
.toast.show { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.toast b { display: block; font: 800 clamp(34px, 7vw, 66px)/1 var(--display); letter-spacing: -.04em; color: #fff; text-shadow: 0 4px 0 rgba(0,0,0,.4), 0 0 30px color-mix(in srgb, var(--acc) 70%, transparent); }
.toast { width: max-content; max-width: 94vw; }
.toast span { white-space: nowrap; }
.toast span { display: inline-block; margin-top: 10px; padding: 8px 16px; border-radius: 999px; background: rgba(9,8,13,.85); border: 1px solid rgba(255,255,255,.12); font: 700 17px/1 var(--mono); }
.toast.lose b { color: #ffd0d6; text-shadow: 0 4px 0 rgba(0,0,0,.4), 0 0 30px rgba(255,90,110,.6); font-size: clamp(26px, 5vw, 46px); }

/* big win overlay */
.bigwin { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: radial-gradient(circle, rgba(0,0,0,.35), rgba(0,0,0,.82)); opacity: 0; pointer-events: none; transition: opacity .3s; cursor: pointer; }
.bigwin.on { opacity: 1; pointer-events: auto; }
.bigwin .rays { position: absolute; width: 160vmax; height: 160vmax; background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--acc) 30%, transparent) 0 8deg, transparent 8deg 22deg); mask-image: radial-gradient(circle, #000 0, transparent 45%); animation: spin 12s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bigwin .inner { position: relative; text-align: center; transform: scale(.4); transition: transform .6s cubic-bezier(.2,1.6,.4,1); }
.bigwin.on .inner { transform: scale(1); }
.bigwin .tier { font: 800 clamp(48px, 11vw, 120px)/.95 var(--display); letter-spacing: -.04em;
  background: linear-gradient(180deg, #fff 10%, #ffe39a 40%, #ffb21d 60%, #b8590a); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 0 #5a2600) drop-shadow(0 0 40px rgba(255,180,40,.6)); animation: pulse 1s ease-in-out infinite; }
.bigwin .amt { margin-top: 16px; font: 800 clamp(30px, 6vw, 58px)/1 var(--mono); color: #fff; text-shadow: 0 0 30px rgba(255,255,255,.4); }
.bigwin .mul { margin-top: 10px; display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--acc); color: var(--acc-ink); font: 800 16px/1 var(--mono); }
.bigwin .skip { margin-top: 26px; font: 600 12px/1 var(--mono); color: rgba(255,255,255,.55); }
@keyframes pulse { 50% { transform: scale(1.05); } }

/* loader */
.loader { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, var(--bg1), var(--bg2) 70%); transition: opacity .5s, visibility .5s; }
.loader.done { opacity: 0; visibility: hidden; }
.loader .lw { display: grid; justify-items: center; gap: 16px; }
.loader img { width: 120px; height: 120px; object-fit: contain; animation: lbob 1.2s ease-in-out infinite; filter: drop-shadow(0 20px 30px rgba(0,0,0,.5)); }
@keyframes lbob { 50% { transform: translateY(-12px) rotate(-8deg) scale(1.05); } }
.loader h1 { margin: 0; font: 800 clamp(26px, 5vw, 42px)/1 var(--display); letter-spacing: -.03em; }
.loader small { font: 700 10px/1 var(--mono); letter-spacing: .2em; color: var(--acc); text-transform: uppercase; }
.loader .bar { width: 220px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.loader .bar i { display: block; height: 100%; width: 0; background: var(--acc); box-shadow: 0 0 12px var(--acc); transition: width .2s; }

.shake { animation: shake .45s cubic-bezier(.36,.07,.19,.97); }
@keyframes shake { 10%, 90% { transform: translate(-2px, 1px); } 20%, 80% { transform: translate(4px, -2px); } 30%, 50%, 70% { transform: translate(-7px, 3px); } 40%, 60% { transform: translate(7px, -3px); } }
.fx-flash { position: fixed; inset: 0; pointer-events: none; z-index: 25; background: radial-gradient(circle, color-mix(in srgb, var(--acc) 45%, transparent), transparent 70%); opacity: 0; }
.fx-flash.on { animation: fx-flash .6s ease-out; }
@keyframes fx-flash { 0% { opacity: .9; } 100% { opacity: 0; } }

/* thumbnail mode (live previews on the site): stage only */
.thumb .panel, .thumb .snd, .thumb .loader { display: none; }
.thumb .main { grid-template-columns: 1fr; }
canvas.fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 45; }

/* meta layer: level chip, missions drawer, rules modal, achievement pop */
.lvl { position: relative; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; padding: 0; color: #fff; }
.lvl svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.lvl circle { fill: rgba(0,0,0,.35); stroke-width: 3.5; }
.lvl .t { stroke: rgba(255,255,255,.12); }
.lvl .p { fill: none; stroke: var(--acc); stroke-dasharray: 94.2; stroke-dashoffset: 94.2; stroke-linecap: round; transition: stroke-dashoffset .6s; filter: drop-shadow(0 0 4px var(--acc)); }
.lvl b { position: relative; font: 800 14px/40px var(--mono); }
.lvl .dot { display: none; position: absolute; top: 0; right: 0; width: 10px; height: 10px; border-radius: 50%; background: #ff3d7f; box-shadow: 0 0 0 2px var(--bg2); animation: ping 1.4s infinite; }
@keyframes ping { 50% { transform: scale(1.3); } }
.right > .snd:first-child { font: 800 16px var(--display); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; width: min(360px, 92vw); padding: 18px; overflow-y: auto; background: rgba(10,8,20,.96); border-left: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(16px); transform: translateX(105%); transition: transform .45s cubic-bezier(.2,1,.3,1); box-shadow: -30px 0 60px rgba(0,0,0,.5); }
.drawer.on { transform: none; }
.drawer header { display: flex; justify-content: space-between; align-items: center; font: 800 16px var(--display); }
.drawer .x, .modal .x { width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); color: #fff; cursor: pointer; }
.drawer h4 { margin: 20px 0 10px; font: 700 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.drawer .lv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; margin-top: 16px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.04); }
.drawer .lv b { font: 800 32px/1 var(--display); color: var(--acc); }
.drawer .lv small { color: var(--muted); font: 600 11px var(--mono); }
.drawer .lv > small { grid-column: 2; }
.xpbar { height: 10px; border-radius: 5px; background: rgba(255,255,255,.08); overflow: hidden; }
.xpbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--acc), #fff); transition: width .6s; }
.mis { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.04); margin-bottom: 8px; border: 1px solid transparent; }
.mis b { display: block; font: 700 14px var(--body); }
.mis small { color: var(--muted); font: 600 11px var(--mono); }
.mis .pb { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.mis .pb i { display: block; height: 100%; background: var(--acc); }
.mis.done { border-color: color-mix(in srgb, var(--acc) 50%, transparent); }
.mis.done b::after { content: '  ✓ done'; color: var(--acc); font: 700 11px var(--mono); }
.achs { display: grid; gap: 6px; }
.ach { display: grid; grid-template-columns: 26px 1fr; gap: 0 8px; align-items: center; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.03); opacity: .45; }
.ach.on { opacity: 1; background: rgba(255,196,67,.1); }
.ach span { grid-row: span 2; font-size: 20px; color: #ffc443; }
.ach b { font: 700 13px var(--body); } .ach small { color: var(--muted); font-size: 11px; }
#dChart { width: 100%; height: 90px; border-radius: 12px; background: rgba(255,255,255,.03); }
.sst { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.sst div { padding: 10px; border-radius: 12px; background: rgba(255,255,255,.04); }
.sst small { display: block; color: var(--muted); font: 600 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.sst b { font: 700 15px var(--mono); }
.modal { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.7); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.modal.on { opacity: 1; pointer-events: auto; }
.mbox { position: relative; width: min(560px, 100%); max-height: 86vh; overflow-y: auto; padding: 26px; border-radius: 22px; background: #120f1f; border: 1px solid rgba(255,255,255,.1); }
.mbox .x { position: absolute; top: 14px; right: 14px; }
.mbox h3 { margin: 0 0 12px; font: 800 22px var(--display); }
.mbox h4 { margin: 18px 0 8px; font: 700 13px var(--body); color: var(--acc); }
.mbox p, .mbox li { color: #cfc8db; font-size: 14px; }
.mbox kbd { padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.1); font: 700 12px var(--mono); }
.achpop { position: fixed; left: 50%; top: 70px; z-index: 70; display: flex; gap: 12px; align-items: center; padding: 12px 18px 12px 12px; border-radius: 16px; background: linear-gradient(135deg, #1d1830, #2a2140); border: 1px solid color-mix(in srgb, var(--acc) 50%, transparent); box-shadow: 0 20px 50px rgba(0,0,0,.6), 0 0 30px color-mix(in srgb, var(--acc) 25%, transparent); transform: translate(-50%, -30px) scale(.9); opacity: 0; transition: .45s cubic-bezier(.2,1.5,.4,1); pointer-events: none; }
.achpop.on { transform: translate(-50%, 0) scale(1); opacity: 1; }
.achpop span { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--acc); color: var(--acc-ink); font: 800 20px var(--display); }
.achpop b { display: block; font: 800 14px var(--display); } .achpop small { color: var(--muted); font-size: 12px; }
@media (max-width: 900px) { .panel .go { order: -1; } }

/* game-feel helpers */
.npop { position: fixed; z-index: 46; transform: translate(-50%, -50%); pointer-events: none; font: 800 22px/1 var(--display); color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.45), 0 0 18px var(--acc); animation: npop 1.1s cubic-bezier(.2,1.2,.3,1) forwards; }
@keyframes npop { 0% { transform: translate(-50%, -30%) scale(.4); opacity: 0; } 18% { transform: translate(-50%, -80%) scale(1.25); opacity: 1; } 60% { transform: translate(-50%, -140%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -190%) scale(.9); opacity: 0; } }
.stage.freeze * { animation-play-state: paused !important; }
.calm-row { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.04); font: 600 13px var(--body); }
.calm-row input { width: 18px; height: 18px; accent-color: var(--acc); }
/* The viewport lets people zoom (no maximum-scale). On touch screens, text fields stay at 16px or more so iOS Safari
   does not zoom in on focus; touch-action: manipulation on body already stops double-tap zoom on the game. */
@media (pointer: coarse) { input:not([type=range]):not([type=checkbox]):not([type=radio]), select, textarea { font-size: max(16px, 1em); } }
