:root{font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans",sans-serif;color:#2a2328;background:#fff;color-scheme:light}*{box-sizing:border-box}body{margin:0}button{font:inherit;min-height:48px;border:0;border-radius:8px;background:#f3f4f6;color:#2a2328;padding:10px 16px;touch-action:manipulation;font-weight:700}button:disabled{opacity:.5}button:active{transform:scale(.98)}[hidden]{display:none!important}main{max-width:450px;margin:auto;padding:4px 16px max(12px,env(safe-area-inset-bottom));min-height:calc(100dvh - 88px)}.hud{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;font-variant-numeric:tabular-nums}.hud button{min-height:44px;padding:8px 12px}.panel{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;padding:20px 0}.portrait{object-fit:contain}.panel h1,.panel h2{font-size:19px;margin:0}.panel p{font-size:14px;margin:0;line-height:1.6}.panel button{width:100%}.muted{color:#6e626a;font-size:12px}.primary{background:#2a2328;color:#fff}.rule{text-align:center;font-size:14px;margin:14px 0 0}.word-area{height:160px;display:grid;place-items:center;margin:8px 0 16px;border-top:1px solid #e6d9bb;border-bottom:1px solid #e6d9bb;background:#fffdfa}#word{font-size:58px;font-weight:850;letter-spacing:.04em}.answers{display:grid;grid-template-columns:1fr 1fr;gap:12px}.answers button{min-height:72px;font-size:20px;background:#f3f4f6;border:2px solid transparent}.answers button[data-correct=true]{border-color:#187441;background:#eaf5ee;opacity:1}.answers button[data-wrong=true]{border-color:#c72b3c;background:#fff0f0;opacity:1}.feedback{min-height:106px;text-align:center;padding:8px 0}.feedback p{margin:4px 0 8px;font-size:14px;min-height:22px}.feedback button{width:100%}.buddy{display:flex;align-items:center;gap:12px;border-top:1px solid #e8e5e6;padding-top:8px}.buddy img{object-fit:contain}.buddy b{font-size:13px}.buddy p{font-size:13px;line-height:1.5;margin:6px 0}#summary{font-size:20px;font-weight:800;white-space:pre-line}#storage{text-align:center}@media(max-height:720px){.word-area{height:120px;margin-bottom:12px}.rule{margin-top:8px}.answers button{min-height:60px}.feedback{min-height:98px}.portrait{width:120px;height:120px}.panel{padding-top:12px}}@media(prefers-reduced-motion:reduce){button:active{transform:none}}

#meter{display:block;width:100%;height:5px;border:0;margin:5px 0 0;accent-color:#b38c42}#meter::-webkit-progress-bar{background:#eef0f3;border-radius:4px}#meter::-webkit-progress-value{background:#b38c42;border-radius:4px}

#word{font-size:clamp(42px,14.5vw,58px)}.buddy div{min-width:0}.buddy img{flex-shrink:0}.answers button{padding:10px 6px}.hud>span{white-space:nowrap}

@media(max-height:720px){.buddy img{width:72px;height:72px}.feedback{min-height:88px}}
