:root { color-scheme: dark; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; background: #0a0a0a; color: #f2f2ee; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: grid; place-items: center; padding: 40px 22px; }
main { width: min(100%, 400px); }
header { margin-bottom: 28px; }
.eyebrow { margin: 0; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #aaa; }
.eyebrow span { color: #555; padding: 0 8px; }
h1 { margin: 12px 0; font-size: clamp(24px, 6vw, 29px); font-weight: 400; letter-spacing: -.045em; }
.intro, .message { font-size: 12px; line-height: 1.7; color: #aaa; }
.intro { margin: 0; }
.drawing { position: relative; border: 1px solid #333; background: #000; }
#drawing { display: block; width: 100%; height: auto; touch-action: none; cursor: crosshair; }
#status { position: absolute; right: 13px; top: 13px; pointer-events: none; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: #aaa; }
#status::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #d3b56b; }
#status[data-state="ready"]::before { background: #60c79a; }
#status[data-state="error"]::before { background: #ef9c91; }
.actions { display: flex; gap: 12px; margin-top: 14px; }
button { flex: 1; min-height: 48px; border: 1px solid #444; background: transparent; color: #ccc; font: inherit; font-size: 12px; cursor: pointer; }
button.primary { background: #f2f2ee; border-color: #f2f2ee; color: #101010; }
button span { margin-left: 8px; }
button:disabled { opacity: .45; cursor: wait; }
button:focus-visible, a:focus-visible { outline: 2px solid #60c79a; outline-offset: 5px; }
@media (hover: hover) { button:not(:disabled):hover { border-color: #aaa; } button.primary:not(:disabled):hover { background: #d6e8dd; } a:hover { color: #fff; } }
.message { min-height: 42px; margin: 12px 0 0; }
.message[data-error="true"] { color: #ef9c91; }
#result { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; border-top: 1px solid #333; padding-top: 24px; margin-top: 8px; }
#result[hidden] { display: none; }
#digit { display: block; margin-top: 6px; font-size: 76px; line-height: 1.1; font-weight: 300; }
#score { margin: 8px 0 0; font-size: 12px; color: #ccc; }
.preview { text-align: right; }
#preview { width: 70px; height: 70px; margin-top: 12px; border: 1px solid #333; image-rendering: pixelated; }
.note { width: 100%; color: #999; font-size: 10px; line-height: 1.7; margin: 22px 0 0; }
footer { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 28px; padding-top: 22px; border-top: 1px solid #333; font-size: 10px; line-height: 1.7; color: #999; }
a { color: #bbb; text-decoration: none; }
noscript { display: block; margin-top: 16px; color: #ef9c91; font-size: 12px; }
