:root { color-scheme: dark; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: #fbf5e6; background: #142c25; }
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { overscroll-behavior: none; }
button { font: inherit; }
button:focus-visible, canvas:focus-visible { outline: 3px solid #e9c778; outline-offset: 3px; }
[hidden] { display: none !important; }
#game { width: 100%; height: 100%; height: 100dvh; position: relative; isolation: isolate; }
#unity-canvas { display: block; width: 100%; height: 100%; background: #162e25; touch-action: none; }
#loading { position: absolute; inset: 0; display: flex; align-items: flex-end; text-align: left; background: linear-gradient(0deg, #071a18b8 0%, #071a181c 45%, transparent 70%), url("loading-landscape.png") center / cover no-repeat; z-index: 3; padding: clamp(28px, 6vw, 92px); }
.loading-content { width: min(540px, 100%); }
h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(46px, 7vw, 82px); letter-spacing: -0.055em; margin: 0 0 23px; color: #fffaf0; text-shadow: 0 2px 18px #0004; }
.progress-track { height: 3px; width: min(250px, 72%); background: #ffffff40; overflow: hidden; border-radius: 5px; }
#progress-bar { width: 0; height: 100%; background: #e6c678; transition: width 160ms linear; }
#loading-message { min-height: 1.5em; font-size: 12px; color: #fff8e9; line-height: 1.5; margin: 12px 0 0; }
#loading-retry { margin-top: 10px; padding: 10px 16px; border: 1px solid #fff8; border-radius: 4px; background: #17352b; color: #fff8e9; cursor: pointer; }
.is-loading .game-tools { display: none; }
.game-tools { position: absolute; z-index: 4; top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); display: flex; gap: 8px; }
.game-tools button, #close-help { cursor: pointer; min-height: 40px; color: #fff9eb; border: 1px solid #faf4df45; border-radius: 4px; background: #182e27e8; padding: 9px 14px; font-size: 12px; font-weight: 600; }
.game-tools button:hover, #close-help:hover { background: #35523d; }
.game-tools button:disabled { opacity: 0.65; cursor: progress; }
#vr-button { background: #ede0ba; color: #203a2c; border-color: #ede0ba; }
#vr-button:hover { background: #fff0c4; }
#notice { position: absolute; z-index: 5; top: max(66px, calc(env(safe-area-inset-top) + 52px)); right: max(14px, env(safe-area-inset-right)); max-width: min(420px, calc(100% - 28px)); padding: 12px 16px; background: #17352bf2; border: 1px solid #fff3; border-radius: 4px; font-size: 13px; line-height: 1.5; }
#pointer-prompt { position: absolute; z-index: 5; top: 46%; left: 50%; transform: translate(-50%, -50%); width: max-content; max-width: calc(100% - 40px); padding: 16px 22px; background: #172d26ed; border: 1px solid #eee3bd55; border-radius: 6px; text-align: center; pointer-events: none; box-shadow: 0 8px 30px #0003; }
#pointer-prompt strong { display: block; font-size: 17px; font-weight: 600; }
#pointer-prompt span { display: block; margin-top: 7px; font-size: 12px; color: #dedbc8; }
.mouse-captured .game-tools { opacity: .35; pointer-events: none; }
dialog { width: min(540px, calc(100% - 32px)); max-height: calc(100dvh - 40px); margin: auto; padding: 26px; border: 1px solid #68745c; border-radius: 8px; background: #f3ecd9; color: #24392c; box-shadow: 0 18px 80px #07180b88; font-size: 14px; line-height: 1.65; }
dialog::backdrop { background: #06170ebb; }
.help-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
h2 { font-family: Georgia, serif; font-size: 33px; font-weight: 400; line-height: 1.2; margin: 0; }
#close-help { color: #24392c; background: transparent; border-color: #24392c66; font-size: 25px; line-height: 1; width: 40px; padding: 4px; flex-shrink: 0; }
dt { font-weight: 700; margin: 18px 0 3px; }
dd { margin: 0; }
#vr-help { color: #5a6754; font-size: 12px; }
.credit { border-top: 1px solid #8d967244; padding-top: 15px; margin-bottom: 0; color: #68745c; font-size: 11px; letter-spacing: 0.03em; }
@media (max-width: 600px) { #loading { background-position: center, 82% center; padding: 30px 26px max(42px, env(safe-area-inset-bottom)); } .game-tools { gap: 5px; top: max(8px, env(safe-area-inset-top)); right: max(8px, env(safe-area-inset-right)); } .game-tools button { min-height: 36px; padding: 7px 10px; font-size: 11px; } dialog { padding: 20px; } }
@media (max-height: 450px) { #loading { padding: 25px 35px; } h1 { font-size: 43px; margin-bottom: 16px; } }
@media (prefers-reduced-motion: reduce) { #progress-bar { transition: none; } }
