/* Shared calm, high-contrast arcade surfaces. No external assets or animation clocks. */
.sa-arcade{width:100%;max-width:430px;margin:0 auto;color:var(--ink,#24382e)}
.sa-hud{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 12px;margin:0 2px 12px;font-size:13px;font-weight:750;font-variant-numeric:tabular-nums}
.sa-surface{width:100%;margin:0 auto;overflow:hidden;border-radius:18px;user-select:none;-webkit-user-select:none}
.sa-surface svg{display:block;width:100%;height:auto}
.sa-breakout{touch-action:none;max-width:405px}
.sa-snake{max-width:340px}
.sa-field{fill:var(--white,#fffefa);stroke:var(--line,#deded2);stroke-width:2}
.sa-brick{stroke:rgba(36,56,46,.2);stroke-width:1}
.sa-brick-0{fill:var(--orange-light,#ffe1ca)}
.sa-brick-1{fill:var(--yellow,#f8dc78)}
.sa-brick-2{fill:var(--mint,#d3e9db)}
.sa-paddle{fill:var(--ink,#24382e)}
.sa-ball{fill:var(--orange,#df4727)}
.sa-bottom-guide{fill:none;stroke:var(--line,#deded2);stroke-width:1;stroke-dasharray:3 5}
.sa-overlay{font-family:inherit;font-size:15px;font-weight:750;fill:var(--ink,#24382e);paint-order:stroke;stroke:var(--white,#fffefa);stroke-width:6;stroke-linejoin:round}
.sa-row{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}
.sa-button{display:inline-flex;align-items:center;justify-content:center;min-width:64px;min-height:48px;padding:12px 22px;border:1px solid var(--line,#deded2);border-radius:15px;background:var(--mint,#d3e9db);color:var(--ink,#24382e);font:inherit;font-weight:800;line-height:1.3;touch-action:manipulation;cursor:pointer}
.sa-button:hover{background:#bedccb}
.sa-button:active{background:#aecdba}
.sa-button:focus-visible,.sa-number:focus-visible{outline:3px solid #216b94;outline-offset:3px}
.sa-number-wrap{max-width:340px}
.sa-number-grid{display:grid;grid-template-columns:repeat(4,minmax(44px,1fr));gap:8px}
.sa-number{display:flex;position:relative;align-items:center;justify-content:center;min-width:44px;min-height:52px;aspect-ratio:1;padding:5px;border:1px solid #b9c8bd;border-radius:15px;background:var(--white,#fffefa);color:var(--ink,#24382e);font-size:clamp(22px,6vw,30px);font-weight:800;line-height:1;touch-action:manipulation;cursor:pointer;font-variant-numeric:tabular-nums}
.sa-number:not(:disabled):hover{background:var(--yellow,#f8dc78)}
.sa-number.is-done{background:var(--mint,#d3e9db);color:#476354;border-color:var(--mint,#d3e9db);cursor:default}
.sa-number.is-done small{position:absolute;bottom:7px;right:7px;font-size:12px;font-weight:650}
.sa-number-next{text-align:center;font-size:14px;margin:12px 0 0;line-height:1.6}
.sa-number-next strong{font-size:24px;margin-left:8px;font-variant-numeric:tabular-nums}
.sa-grid-line{fill:none;stroke:#e9ece5;stroke-width:.7}
.sa-snake-cell{fill:#76a88b;stroke:var(--white,#fffefa);stroke-width:1}
.sa-snake-head{fill:var(--ink,#24382e)}
.sa-eye{fill:var(--white,#fffefa)}
.sa-apple{fill:var(--orange,#df4727)}
.sa-apple-leaf{fill:#427154}
.sa-dpad{display:grid;grid-template-columns:repeat(3,52px);gap:5px;justify-content:center;width:max-content;margin:0 auto}
.sa-dpad .sa-button{min-width:52px;min-height:48px;padding:7px;font-size:23px;border-radius:12px}
.sa-dpad-dot{display:flex;align-items:center;justify-content:center;color:#88a593;font-size:12px;user-select:none}
@media(max-height:700px) and (min-width:360px){.sa-breakout{max-width:315px}.sa-snake{max-width:240px}.sa-hud{margin-bottom:8px}.sa-dpad{gap:3px}}
@media(prefers-reduced-motion:reduce){.sa-button,.sa-number{transition:none}}

/* Difficulty changes the amount to inspect; targets never shrink below 44px. */
.sa-number-grid-3{grid-template-columns:repeat(3,minmax(44px,1fr))}
.sa-number-grid-5{grid-template-columns:repeat(5,minmax(44px,1fr));gap:6px}
.sa-rock{fill:#9eaa9f;stroke:#506658;stroke-width:1}
.sa-rock-mark{fill:none;stroke:#506658;stroke-width:1.5}
@media(max-width:350px){.sa-number-grid-5{grid-template-columns:repeat(4,minmax(44px,1fr))}}
