:root { color-scheme: dark; font-family: system-ui, sans-serif; background: #101713; color: #f1f8ee; }
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(940px, 100%); margin: auto; padding: 32px 20px 48px; }
a { color: #c5f76b; text-underline-offset: 4px; }
h1 { font-size: clamp(2rem, 8vw, 4rem); letter-spacing: -.045em; margin: 8px 0 14px; }
h2 { font-size: 1.2rem; margin: 0; }
p { line-height: 1.6; max-width: 68ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: #c5f76b; }
.panel { border: 2px solid #62725b; border-radius: 12px; padding: 18px; background: #18221a; }
.topbar, .actions, .touch-controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.topbar { justify-content: space-between; margin-bottom: 14px; }
button { background: #c5f76b; color: #101713; border: 2px solid #c5f76b; border-radius: 7px; min-height: 48px; padding: 10px 16px; font: inherit; font-weight: 750; cursor: pointer; touch-action: manipulation; }
button.secondary { background: #18221a; color: #f1f8ee; border-color: #8ea17e; }
button:focus-visible, a:focus-visible, canvas:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
button:disabled { background: #33422d; border-color: #62725b; color: #e0edce; cursor: default; }
button[aria-pressed="true"] { background: #fff; color: #101713; }
.touch-controls { margin: 12px 0; }
.touch-controls button { flex: 1; min-width: 62px; user-select: none; touch-action: none; }
canvas { display: block; width: 100%; height: auto; border: 2px solid #8ea17e; border-radius: 5px; background: #101713; touch-action: pan-y; }
.status { min-height: 3.2em; margin: 12px 0; font-weight: 650; }
.instructions { margin-bottom: 0; font-size: .95rem; }
.versions { margin-top: 24px; font-size: .9rem; }
[hidden] { display: none !important; }
@media (max-width: 420px) { main { padding: 20px 12px 36px; } .panel { padding: 10px; } button { padding: 10px 12px; } .topbar .actions { width: 100%; } .topbar .actions button { flex: 1; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }
