:root{color-scheme:dark}button:focus-visible,a:focus-visible{outline:3px solid #fff;outline-offset:3px}#title h1{font-size:7.5cqw}#title p{margin:1cqw 0 2cqw}.menu{gap:.65cqw}.menu button{font-size:1.65cqw;padding:.6cqw 4cqw}#title .care{font-size:1.12cqw;max-width:88%}#box{min-height:24%;max-height:42%;overflow:visible}#text{max-height:21vh;overflow:auto}#choices{padding:4%;gap:1.1cqw;background:rgba(12,14,22,.78)}.opt{font-size:1.85cqw}.hud{max-width:85%;flex-wrap:wrap;justify-content:flex-end}.hud button{font-size:1.2cqw;min-height:32px}.care a{color:#f2c765}dialog{width:min(720px,94vw);max-height:84dvh;border:1px solid #ad8a51;border-radius:12px;background:#171a24;color:#eee7d8;padding:24px;line-height:1.8;font-size:17px}dialog::backdrop{background:#000b}dialog h2{font-size:25px;color:#e9c583}dialog article{border-top:1px solid #514638;padding:16px 0}dialog button{padding:9px 15px;margin:4px;border:1px solid #9d8055;background:#272a35;color:#f1d5a2;border-radius:6px;font:inherit}dialog a{color:#f2c765}dialog small{color:#c4b8a8}dialog input{width:160px}#extrasClose{float:right;position:sticky;top:0}.status{font-size:14px;color:#b6ad9b}#ch{height:90%;bottom:5%}#box{background:rgba(12,12,20,.95)}
@media(max-width:700px){html,body{height:100dvh}#stage{width:100vw;height:100dvh;aspect-ratio:auto}#bg svg{object-fit:cover}#ch{height:66%;bottom:24%!important;left:55%}#box{left:4%;right:4%;bottom:4%;min-height:25%;max-height:40%;padding:24px 18px 22px;border-radius:12px}#text{font-size:18px;line-height:1.8;max-height:26dvh}#name{font-size:16px;top:-13px;padding:2px 15px}#next{font-size:18px;bottom:4px}#lamp{top:15px;font-size:12px}#lamp svg{width:24px;height:24px}.hud{top:12px;right:12px;max-width:76%;gap:5px}.hud button{font-size:12px;padding:5px 8px;min-height:34px}#choices{padding:90px 18px 30px;gap:14px}.opt{font-size:17px;width:100%;padding:15px;max-height:24dvh;overflow:auto;border-radius:9px}.opt small{font-size:13px}#title h1{font-size:44px;letter-spacing:.1em}#title p{font-size:13px;letter-spacing:.1em;margin:12px 0 22px}.bulb{width:64px;height:64px}.menu{gap:9px}.menu button{font-size:16px;padding:9px 28px}#title .care{position:static;margin-top:24px;font-size:11px;line-height:1.7}#title{padding:60px 18px 25px;overflow:auto;justify-content:center}#bSndT,.back{font-size:14px;padding:8px 15px}#card h1{font-size:34px}#card h2{font-size:18px}#card h4{font-size:15px;margin-top:25px}#end{padding:30px 20px}#end h1{font-size:36px}#end h2{font-size:17px}#end p{font-size:17px;max-width:100%;margin:20px 0}#end .hint,#end .care{font-size:13px;margin-bottom:20px}#diary .sheet{width:90%;font-size:18px;padding:24px;max-height:76%}.cast{height:70%;overflow:auto;flex-wrap:wrap;justify-content:center;align-items:start}.cast div{width:42%;font-size:13px}.cast svg{height:180px}.cast b{font-size:18px}h3{font-size:24px}.endlist{font-size:17px}.endlist em{font-size:12px}#toast{font-size:13px;max-width:90%;white-space:normal;top:20%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
