:root{font-family:system-ui,-apple-system,'Hiragino Kaku Gothic ProN',sans-serif;color:#2a2328;background:#fff;color-scheme:light}*{box-sizing:border-box}body{margin:0;-webkit-tap-highlight-color:transparent}button{font:inherit;min-height:44px;border:1px solid #ddd9de;border-radius:8px;padding:12px;color:inherit;background:#f3f4f6;touch-action:manipulation}button:disabled{opacity:1}button:focus-visible{outline:3px solid #2a2328;outline-offset:2px}.shell{max-width:450px;margin:auto;padding:8px 16px max(12px,env(safe-area-inset-bottom))}#app{display:flex;flex-direction:column;gap:12px}h2{font-size:20px;text-align:center;margin:8px 0}p{margin:0;font-size:14px;line-height:1.6}.intro,.muted{text-align:center;color:#6e626a;font-size:13px}.hud{display:flex;gap:10px;align-items:center;font-size:13px}.hud button{margin-left:auto;padding:8px 12px}.status{font-weight:700;min-height:24px}.progress{display:flex;gap:6px}.progress span{display:grid;place-items:center;min-width:28px;height:28px;background:#f3f4f6;border-radius:50%;font-size:12px}.progress .done{background:#e9eff0;color:#294f4d}.board{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.pad{aspect-ratio:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;background:var(--pad);border:4px solid transparent}.pad strong{font-size:48px;line-height:1.1}.pad span{font-size:12px}.pad small{font-size:12px;min-height:18px;font-weight:700}.pad-0{--pad:#f7eaf0}.pad-1{--pad:#eaf0f7}.pad-2{--pad:#f4efdf}.pad-3{--pad:#e8f1ed}.pad.lit{background:#fff;border:4px solid #2a2328;outline:3px solid var(--pad);outline-offset:0}.pad:active:not(:disabled){border-color:#2a2328}.companion{display:flex;align-items:center;gap:8px;border-top:1px solid #ece9ec;padding-top:8px}.companion img{object-fit:contain;flex-shrink:0}.companion b{font-size:12px;color:#6e626a}.companion p{font-size:13px}.companion.large{border:0;flex-direction:column;text-align:center;padding:18px 0 8px}.result-score{text-align:center;font-weight:700;font-size:22px}.answer-key{text-align:center;overflow-wrap:anywhere;font-size:16px;line-height:1.8}#storage-note{font-size:10px;color:#6e626a;margin-top:12px}@media(max-height:720px){#app{gap:8px}.pad{aspect-ratio:auto;height:124px}.companion img{width:48px;height:48px}.companion.large img{width:96px;height:96px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
