:root{color-scheme:dark;font-family:system-ui,-apple-system,"Noto Sans JP",sans-serif;color:#edf1e8;background:#050e10}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none}body{display:grid;place-items:center;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
[hidden]{display:none!important}button{font:inherit;color:inherit;cursor:pointer;border:1px solid #819d9280;background:#162c2d;min-width:48px;min-height:48px;touch-action:none;-webkit-tap-highlight-color:transparent;user-select:none}button:hover{background:#2a4240}button:focus-visible{outline:3px solid #f3c57b;outline-offset:4px}button:active,button.held{background:#c5a36d;color:#071719;transform:translateY(1px)}button:disabled{cursor:default;opacity:.4}
#stage{position:relative;width:min(100%,calc((100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom))*1.777778));aspect-ratio:16/9;background:#081719;overflow:hidden;isolation:isolate}#unity-canvas{display:block;width:100%;height:100%;touch-action:none;outline:none}
.screen{position:absolute;inset:0;display:flex;align-items:center;background:linear-gradient(90deg,#051014ed,#0c2528a6),url('sanctuary.jpg') center/cover}.intro{padding:32px clamp(24px,6vw,84px);max-width:660px}.eyebrow{font-size:12px;letter-spacing:.25em;color:#f3c57b}h1{font-size:clamp(34px,5vw,64px);letter-spacing:.06em;margin:12px 0 20px}h2{font-size:24px}p{font-size:16px;line-height:1.8;margin:12px 0 24px}.primary{display:flex;align-items:center;justify-content:space-between;gap:60px;min-height:56px;padding:12px 24px;background:#dbc18a;color:#081719;border-color:#dbc18a;font-weight:650}.primary:hover{background:#f3d89b}.fine{font-size:13px;color:#b3c1b9;margin:20px 0 0;line-height:1.7}progress{width:min(340px,70vw);height:8px;accent-color:#f3c57b}#status{font-size:14px;margin:8px 0}
#controls{position:absolute;inset:0;pointer-events:none}#controls button{pointer-events:auto;border-radius:12px;box-shadow:0 2px 8px #0005;background:#112a2de6;font-size:15px;font-weight:650;text-shadow:0 1px #0004}#controls button.held{background:#dcc38f;color:#081719}#controls .movement{position:absolute;bottom:16px;left:18px;display:flex;gap:10px}#controls .movement button{width:62px;height:66px;font-size:23px}#controls .actions{position:absolute;bottom:16px;right:18px;display:flex;align-items:end;gap:9px}#controls .actions button{width:54px;height:54px}#controls .actions .jump{width:68px;height:70px;border-color:#f3c57b;color:#f3c57b}#controls #interact{position:absolute;right:82px;bottom:72px;width:68px;color:#f3c57b;border-color:#f3c57b}#controls #interact:disabled{opacity:.25;color:#b3c1b9;border-color:#819d9280}
#rotate{display:none;position:fixed;inset:0;z-index:5;text-align:center;justify-content:center;background:#081719}#rotate p{padding:0 20px;color:#b3c1b9}.phone{font-size:64px;color:#f3c57b}#fullscreen{position:absolute;right:12px;bottom:12px;font-size:24px;min-width:48px;min-height:48px;background:#081719b3}
@media(max-height:440px){.intro{padding-top:12px;padding-bottom:12px}h1{font-size:36px;margin:8px 0 12px}p{margin:8px 0 16px;line-height:1.6}.fine{font-size:12px;margin-top:12px}.primary{min-height:48px}}
@media(orientation:portrait){body.touch #rotate{display:flex}}
@media(max-height:340px){#controls .movement{bottom:8px;left:12px}#controls .actions{bottom:8px;right:12px}#controls .movement button{width:54px;height:54px}#controls .actions .jump{width:60px;height:60px}#controls .actions button{width:48px;height:48px}#controls #interact{right:72px;bottom:62px}}
@media(prefers-reduced-motion:reduce){button:active,button.held{transform:none}}
