:root{font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans",sans-serif;color:#2a2328;background:#fff;-webkit-text-size-adjust:100%}*{box-sizing:border-box}body{margin:0}button,select{font:inherit;color:inherit;background:#f3f4f6;border:0;border-radius:8px;min-height:44px;touch-action:manipulation}button{padding:8px 12px;cursor:pointer}button:disabled{opacity:.4}button:focus-visible,select:focus-visible{outline:3px solid #9c617d;outline-offset:2px}[hidden]{display:none!important}.shell{max-width:450px;margin:auto;padding:3px 5px max(8px,env(safe-area-inset-bottom))}.stage{position:relative;border:1px solid #c7b283;border-radius:14px;overflow:hidden;background:radial-gradient(ellipse at 50% 0,#235660,#102d34);color:#fff}.hud{display:flex;gap:8px;align-items:center;padding:3px 8px;min-height:46px;font-size:12px}.hud #level{flex:1}.hud strong{font-size:16px;color:#ffe1a0}.hud button{width:44px;background:#ffffff14;color:#fff}.progress{display:flex;gap:4px;padding:0 12px;height:4px}.progress i{height:3px;background:#ffffff25;flex:1;border-radius:2px}.progress i.done{background:#f5cc70}.progress i.current{background:#fff1c3}.board-wrap{width:100%;padding:0 2px;line-height:0}#board{width:100%;display:block;touch-action:none;user-select:none;-webkit-user-select:none;overflow:visible}#board text{font-family:inherit;font-weight:800;pointer-events:none}#board .piece{filter:drop-shadow(0 .05px .035px #0007)}#board .selected .outline{stroke:#fff5be;stroke-width:.055}#board .hinted{animation:hint-glow 1s ease-in-out 3}#board .piece path{stroke-linejoin:round}#board .piece text{fill:#fff;text-shadow:0 .02px .04px #173841;font-size:.32px}.readout{display:flex;justify-content:space-between;padding:0 12px 7px;font-size:12px;color:#d1e1df}.readout #target{color:#f6d38c}.actions{display:flex;gap:6px;padding:0 8px}.actions button{flex:1;background:#ffffff13;color:#fff;border:1px solid #ffffff29}.direction-row{display:flex;gap:4px;align-items:center;padding:4px 8px 7px}.direction-row>span{flex:1;font-size:11px;line-height:1.4;color:#d1e1df}.directions{display:flex;gap:3px}.directions button{min-width:44px;padding:5px;background:#ffffff14;color:#fff;font-size:20px}.buddy{display:flex;align-items:center;gap:8px;min-height:74px;padding:2px 8px;border-bottom:1px solid #eee}.buddy img{width:76px;height:76px;object-fit:contain;flex-shrink:0}.buddy strong{font-size:11px;color:#6e626a}.buddy p{font-size:13px;line-height:1.5;margin:3px 0}.buddy img.cheer{animation:cheer .5s ease-out}.overlay{position:absolute;inset:0;z-index:3;background:#082126dd;backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:10px}.panel{width:min(100%,340px);max-height:100%;overflow:auto;background:white;color:#2a2328;border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:8px;text-align:center;box-shadow:0 8px 30px #0004}.panel #cover{width:100%;height:clamp(110px,25svh,190px);object-fit:cover;object-position:50% 35%;border-radius:8px}.panel h2{font-size:18px;margin:0}.panel p{font-size:12px;line-height:1.55;margin:0}.panel button.primary{background:#f3d490;color:#31271a;font-weight:800}.panel #record{font-size:11px;color:#6e626a}.panel select{max-width:75%;padding:4px 8px}.panel label{font-size:12px}#cast-picker{justify-content:center;margin:0;padding:2px 0}#cast-picker>button{background:linear-gradient(#e8e9eb,#c4c8cb)}#save-status{font-size:11px;line-height:1.4;margin:2px 8px;color:#916026}.help{font-size:12px;line-height:1.6;color:#6e626a;padding:0 9px}.help summary{min-height:44px;padding:12px 0;touch-action:manipulation}.help p{margin:4px 0 10px}.help label{display:flex;align-items:center;gap:6px;min-height:44px}.help input{width:20px;height:20px}.game-title-accessible{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}@keyframes cheer{50%{transform:translateY(-5px) rotate(-4deg)}}@keyframes hint-glow{50%{filter:drop-shadow(0 0 .09px #fff6a4)}}@media(max-height:700px){.shell{max-width:390px}.buddy{min-height:56px}.buddy img{width:58px;height:58px}.panel{gap:6px;padding:10px}.panel #cover{height:115px}.direction-row{padding-top:2px;padding-bottom:3px}#cast-picker>button{height:78px;min-width:60px;width:60px;flex-basis:60px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}:root.reduced *, :root.reduced *::before,:root.reduced *::after{animation:none!important;transition:none!important}
