:root{color-scheme:light;font-family:system-ui,-apple-system,'Hiragino Kaku Gothic ProN',sans-serif;color:#2a2328;background:#fff}*{box-sizing:border-box}body{margin:0;min-height:100svh;-webkit-tap-highlight-color:transparent}button{font:inherit;min-height:44px;border:1px solid #dedade;border-radius:8px;color:inherit;background:#f3f4f6;padding:8px;touch-action:manipulation}button:disabled{opacity:.48}[hidden]{display:none!important}.shell{width:100%;max-width:450px;margin:0 auto;padding:6px 12px max(10px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:8px}.hud{display:flex;gap:12px;align-items:center;font-size:12px}.hud button{margin-left:auto;font-size:12px}.play{position:relative;border-radius:12px;border:1px solid #e3dfe3;padding:10px}.task{display:flex;align-items:center;gap:10px;font-size:13px;margin-bottom:10px}.task strong{font-size:36px;line-height:1.4}.task #selected{margin-left:auto;color:#6e626a;font-size:12px}.board{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}.board button{font-size:29px;height:56px;padding:0;background:#fff}.board [aria-pressed=true]{background:#eef0f3;border:2px solid #a65378}.board [aria-pressed=true]::after{top:2px;right:4px;content:'✓';font-size:11px;color:#8b3e60;position:absolute}.board button{position:relative}#feedback{min-height:36px;font-size:12px;line-height:1.5;margin:10px 0 6px}#confirm{width:100%;font-weight:700}.panel{position:absolute;inset:0;z-index:2;border-radius:12px;background:#fffffff7;display:flex;padding:14px}.panel-content{margin:auto;width:100%;display:flex;align-items:center;flex-direction:column;gap:10px;text-align:center}.panel-content img{object-fit:contain}.panel h2{font-size:20px;margin:0}.panel p{font-size:13px;line-height:1.6;margin:0}.panel .rule,#best,.cast-name{font-size:12px;color:#6e626a}.panel button{width:100%;font-weight:700}.companion{display:flex;gap:8px;align-items:center}.companion img{object-fit:contain;flex-shrink:0}.companion b{font-size:11px;color:#6e626a}.companion p{font-size:13px;line-height:1.5;margin:3px 0}#save-note{font-size:11px;line-height:1.5;margin:0;color:#6e626a}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

.task strong{display:grid;place-items:center;min-width:52px;border-radius:8px;background:#f3f4f6}.board button:focus-visible,#confirm:focus-visible{outline:3px solid #a65378;outline-offset:2px}

@media(max-height:740px){.shell{gap:5px}.board button{height:48px}.task{margin-bottom:6px}.companion img{width:52px;height:52px}.panel-content{gap:7px}.panel-content img{width:88px;height:88px}.panel h2{font-size:18px}}

@media(max-width:350px){.shell{padding-left:8px;padding-right:8px}.play{padding:8px}.task{gap:6px}.task strong{min-width:44px}.task #selected{font-size:11px}.hud{gap:8px}.board{gap:4px}.board button{font-size:27px}.panel-content{gap:7px}}
