: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 #dadde0;border-radius:8px;background:#f3f4f6;color:inherit;padding:6px;touch-action:manipulation}button:disabled{opacity:.5}[hidden]{display:none!important}.shell{max-width:450px;width:100%;margin:auto;padding:4px 6px max(8px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:5px}.aquarium{position:relative;height:clamp(260px,43svh,430px);border:2px solid #b0ced3;border-radius:12px;overflow:hidden;background:linear-gradient(#ecf9fa,#bde4e9 75%,#a3d6dd)}.hud{position:absolute;top:7px;left:8px;right:8px;display:flex;justify-content:space-between;gap:4px;font-size:12px;z-index:1}.hud>*{background:#ffffffe0;border-radius:6px;padding:5px}.grid{position:absolute;inset:45px 12px 20px;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:6px;z-index:1}.slot{background:#ffffff35;border:1px dashed #69979e;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;color:#365d65}.slot.filled{background:#ffffff7a;border:1px solid #a5ccd1}.slot span{font-size:32px;line-height:1.25}.slot small{font-size:10px}.sand{position:absolute;bottom:0;width:100%;height:24px;background:#dfd4b3;border-radius:50% 50% 0 0}.panel{position:absolute;inset:0;z-index:3;background:#fffffff5;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;padding:10px;overflow:auto}.panel img{object-fit:contain}.panel h2{font-size:19px;margin:0}.panel p{font-size:12px;line-height:1.6;margin:0}.panel button{width:100%;font-weight:700}.meters{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.meter{background:#f3f4f6;border-radius:8px;padding:6px;font-size:11px}.meter b{display:block;font-size:13px}.meter small{font-size:10px}.meter.warn{background:#fff0e5;color:#793d18}.choices{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}.choices button{min-width:0;font-size:12px}.choices small{display:block;font-size:9px;margin-top:3px}.choices [aria-pressed=true]{border:2px solid #5a8991;background:#eef0f3}.choices [aria-pressed=true]::before{content:'✓ '}.actions{display:flex;gap:6px}.actions button{flex:1}#next{background:#e3eff0;border-color:#729ca3;font-weight:700}#hint{font-size:11px;min-height:16px;margin:0}.rules{font-size:11px}.rules summary{min-height:32px;display:flex;align-items:center}.rules summary::before{content:'＋ ';margin-right:5px}.rules p{line-height:1.6;margin:5px}.companion{display:flex;gap:7px;align-items:center}.companion img{object-fit:contain;flex-shrink:0}.companion b{font-size:11px;color:#6e626a}.companion p{font-size:12px;margin:3px 0;line-height:1.5}#save-note,#record{font-size:10px;color:#6e626a;margin:0}@media(max-height:700px){.aquarium{height:260px}.panel img{width:72px;height:72px}.companion img{width:44px;height:44px}.panel{gap:6px}}@media(prefers-reduced-motion:reduce){*{animation:none!important}}
