* { box-sizing: border-box }
body { background: #f5f4f0; color: #292824; margin: 0; font: 16px system-ui,sans-serif }
main { height: 100dvh; display: flex; flex-direction: column; padding: max(12px,env(safe-area-inset-top)) 16px max(12px,env(safe-area-inset-bottom)) }
h1 { font-size: 1.1rem }
canvas { width: 100%; min-height: 0; flex: 1; touch-action: none }
nav { display: flex; gap: 8px; justify-content: center }
button { min-height: 44px; padding: 8px 18px; border: 1px solid #aaa; border-radius: 10px; background: white; color: inherit }
button[aria-pressed=true] { color: white; background: #373b36 }
#status { min-height: 2.5em }
