:root { color-scheme: light; background: #fff; color: #111; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none; }
body { background: #fff; font-family: sans-serif; }
main { position: relative; width: 100%; height: 100%; height: 100dvh; min-height: 240px; }
canvas { display: block; width: 100%; height: 100%; outline: none; touch-action: manipulation; }
canvas:focus-visible { outline: 1px solid #111; outline-offset: -8px; }
#reset { position: absolute; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: 48px; height: 48px; padding: 12px; border: 0; border-radius: 50%; background: #fff; color: #111; cursor: pointer; touch-action: manipulation; }
#reset svg { width: 24px; height: 24px; display: block; }
#reset:hover { background: #f5f5f5; }
#reset:active svg { transform: rotate(-75deg); }
#reset:focus-visible { outline: 1px solid #111; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-height: 440px) { #reset { left: auto; right: 14px; bottom: 8px; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }
