: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:10px}h2{font-size:20px;text-align:center;margin:8px 0}p{margin:0;font-size:14px;line-height:1.6}.muted,.intro{text-align:center;color:#6e626a;font-size:13px}.hud{display:flex;gap:12px;align-items:center;font-size:13px}.hud button{margin-left:auto;padding:8px 12px}.target{text-align:center;background:#fafafa;border-radius:8px;padding:8px}.fraction{display:flex;align-items:center;justify-content:center;gap:12px}.fraction svg{display:block;width:100px;height:100px}.value{display:inline-grid;font-size:20px;line-height:1.15;min-width:28px;text-align:center}.value span:first-child{border-bottom:2px solid currentColor;padding-bottom:3px}.value span:last-child{padding-top:3px}.choices{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.choice{min-width:0;min-height:124px;padding:8px 4px;display:flex;flex-direction:column;justify-content:center;gap:4px}.choice .fraction{gap:8px}.choice svg{width:80px;height:80px}.choice b{font-size:12px;min-height:16px}.choice.correct{border:2px solid #658168;background:#f1f6f1}.choice.wrong{border:2px solid #b46c7e;background:#fff5f7}.feedback{min-height:44px;font-size:14px}.feedback p{font-size:13px}.next{width:100%;font-weight:700}.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}#storage-note{font-size:10px;color:#6e626a;margin-top:12px}@media(max-height:740px){#app{gap:6px}.target .fraction svg{width:82px;height:82px}.choice{min-height:106px}.choice svg{width:66px;height:66px}.companion img{width:48px;height:48px}.companion.large img{width:96px;height:96px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

.target>small{display:block;font-size:11px;color:#6e626a;margin-bottom:2px}

button:not(:disabled):active{background:#e6e8ec}.choice.correct b{color:#355d3b}.choice.wrong b{color:#8d4057}.choice .fraction{pointer-events:none}
