:root{font-family:"Yu Gothic","Hiragino Kaku Gothic ProN",system-ui,sans-serif;color:#1b3440;background:#152d3b;--paper:#f6f2e8;--gold:#dcc18c}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{overscroll-behavior:none}button{font:inherit;cursor:pointer;border:1px solid #cbd4cb;border-radius:12px;background:#e6ebe3;color:#1a3545;padding:13px 17px;min-height:48px;font-weight:650;touch-action:manipulation}button:active{filter:brightness(.9)}button:focus-visible{outline:3px solid #507e93;outline-offset:2px}button:disabled{opacity:.5;cursor:default}.primary{background:var(--gold);border-color:#cba96a}#canvas{display:block;width:100%;height:100%;touch-action:none;outline:none}.loading{position:fixed;inset:0;display:grid;place-items:center;background:linear-gradient(155deg,#173b4ce8,#0d222de8),url('cover.jpg') center/cover;color:var(--paper);z-index:20;text-align:center;padding:24px}.intro{max-width:450px}.eyebrow{font-size:11px;letter-spacing:.14em;line-height:1.6}.badge{font-size:24px;color:var(--gold);margin:22px auto 4px;width:48px;height:54px;border:1px solid #c8b179;border-radius:10px 10px 22px 22px;display:grid;place-items:center}h1{font-size:23px;font-weight:400;letter-spacing:.12em;line-height:1.5;margin:18px}h1 strong{font-size:48px;letter-spacing:.16em}p{line-height:1.8}.intro button{width:100%;margin:14px 0 4px}.intro small{font-size:11px;color:#afc2c7;line-height:1.8}#loadStatus{font-size:13px;min-height:2.5em}progress{width:100%;accent-color:var(--gold);height:8px}#hud{position:fixed;top:max(12px,env(safe-area-inset-top));left:max(14px,env(safe-area-inset-left));right:max(14px,env(safe-area-inset-right));display:flex;align-items:flex-start;justify-content:space-between;gap:12px;pointer-events:none;z-index:3}.status{display:flex;flex-direction:column;padding:13px 17px;background:#142f43e8;color:#f4f2e8;border:1px solid #ffffff19;border-radius:14px;box-shadow:0 3px 14px #00172222}.status .eyebrow{color:var(--gold)}.status strong{font-size:20px;line-height:1.6}.status>span:last-child{font-size:12px;color:#dce8df}.tools{display:flex;gap:7px;pointer-events:auto}.tools button{padding:9px 12px;font-size:12px;min-height:42px;background:#f6f2e8ed}#guide{position:fixed;top:116px;left:18px;background:#f6f2e8df;padding:9px 14px;border-radius:10px;white-space:pre-line;font-size:12px;line-height:1.7;pointer-events:none}#banner{position:fixed;top:24%;left:50%;transform:translateX(-50%);max-width:85vw;width:max-content;z-index:4;padding:12px 20px;border:1px solid #d8b87d;background:#773e2de8;color:white;border-radius:12px;text-align:center;font-size:14px}#lookPad{position:fixed;inset:115px 0 0 40%;touch-action:none}#lookPad span{position:absolute;bottom:20px;left:25px;font-size:11px;color:white;opacity:.7;pointer-events:none;text-shadow:0 1px 3px #000}#joystick{position:fixed;left:max(28px,env(safe-area-inset-left));bottom:max(32px,env(safe-area-inset-bottom));width:132px;height:132px;border-radius:50%;background:#17334762;border:1px solid #ffffff7a;box-shadow:inset 0 0 30px #fff1;touch-action:none;user-select:none}#joystick i{position:absolute;inset:22px;border:1px solid #ffffff2a;border-radius:50%}#stick{position:absolute;width:54px;height:54px;left:38px;top:38px;background:#f7f3e9cb;border:1px solid white;border-radius:50%;box-shadow:0 3px 15px #122d4660;pointer-events:none}#joystick small{position:absolute;width:100%;bottom:9px;text-align:center;color:white;font-size:10px;pointer-events:none}#actions{position:fixed;right:max(22px,env(safe-area-inset-right));bottom:max(36px,env(safe-area-inset-bottom));display:flex;align-items:end;gap:12px}#interact{width:102px;height:82px;border-radius:24px;font-size:19px}#run{border-radius:50%;width:62px;height:62px;padding:0;background:#f6f2e8d9;font-size:14px}#run[aria-pressed=true]{background:var(--gold)}#prompt{position:fixed;bottom:135px;right:22px;max-width:min(350px,55vw);font-size:14px;color:white;background:#142d43d9;border-radius:8px;padding:8px 12px;pointer-events:none}#prompt:empty{display:none}#modal{position:fixed;inset:0;display:grid;place-items:center;background:#0b233567;z-index:5;padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}#panel{background:var(--paper);border:1px solid #babbab;border-radius:20px;padding:25px 28px;width:min(600px,100%);max-height:100%;overflow-y:auto;overscroll-behavior:contain;box-shadow:0 18px 65px #071b3240;scrollbar-width:thin}#tag{color:#577967;font-size:11px}h2{font-size:26px;line-height:1.45;margin:9px 0 18px;padding-bottom:16px;border-bottom:1px solid #d9d9cd}#body p{font-size:16px;white-space:pre-line;line-height:1.85;margin:0 0 15px}#body img{display:block;width:100%;max-height:36vh;object-fit:contain}#choices{display:grid;gap:10px;margin-top:19px}#choices button{text-align:left;line-height:1.55;width:100%;font-size:15px;min-height:50px}.scrollHint{font-size:10px;color:#748177;margin:16px 0 0}#modal.dialogue{background:transparent;place-items:center end}#modal.dialogue #panel{width:min(47vw,570px);max-height:90dvh}#modal[hidden],#loading[hidden],[hidden]{display:none!important}
@media(max-width:600px) and (orientation:portrait){#hud{gap:6px}.status{padding:10px 12px;max-width:64vw}.status strong{font-size:15px}.status .eyebrow{font-size:9px}.status>span:last-child{font-size:10px}.tools{display:grid;grid-template-columns:1fr 1fr;gap:5px}.tools button{font-size:10px;min-height:36px;padding:7px}#fullscreen{grid-column:1/-1}#guide{top:110px;font-size:11px}#panel{padding:21px 21px;border-radius:17px}h2{font-size:24px}#modal.dialogue{place-items:end center;padding:10px 10px max(10px,env(safe-area-inset-bottom))}#modal.dialogue #panel{width:100%;max-height:64dvh}#modal.dialogue #body p{font-size:15px}#joystick{left:22px;bottom:max(28px,env(safe-area-inset-bottom));width:120px;height:120px}#stick{left:32px;top:32px}#actions{right:18px;gap:8px}#interact{width:89px;height:78px}#lookPad span{bottom:13px;left:12px;font-size:9px}#prompt{bottom:130px;font-size:12px}.intro h1 strong{font-size:42px}}
@media(max-height:500px){.status{padding:8px 12px}.status strong{font-size:16px}#guide{top:100px;font-size:10px;padding:7px 10px}#panel{padding:18px 22px}h2{font-size:23px;margin:5px 0 12px;padding-bottom:10px}#body p{font-size:15px;margin-bottom:12px}#choices{margin-top:12px;gap:8px}#joystick{width:112px;height:112px;bottom:22px}#stick{top:28px;left:28px}#actions{bottom:22px}.intro{max-width:600px}.intro h1{margin:0;font-size:18px}.intro h1 br{display:none}.intro h1 strong{font-size:32px}.badge{display:none}.intro p{font-size:13px;margin:10px 0}.intro button{max-width:350px;margin:5px 0}.intro small{display:none}}
