@charset "UTF-8";
:root { color-scheme: dark; font-family: "Segoe UI", Arial, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none; background: #000; color: #eee; }
body.is-mobile { position: fixed; inset: 0; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
[hidden] { display: none !important; }
.game-stage { position: fixed; inset: 0; width: 100%; height: 100vh; height: 100dvh; overflow: hidden; background: #000; isolation: isolate; }
.canvas-frame { position: absolute; inset: 0; }
#unity-canvas { display: block; width: 100%; height: 100%; border: 0; outline: 0; background: #000; touch-action: none; }
.is-mobile .game-stage { inset: auto; left: 0; top: 0; height: 100vh; height: 100svh; touch-action: none; transform-origin: 0 0; }
.is-mobile .canvas-frame { inset: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
.is-mobile #unity-canvas { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.is-mobile input, .is-mobile textarea { font-size: 16px !important; }
.is-mobile .game-stage:fullscreen { height: 100vh; height: 100dvh; }
.is-mobile .game-stage:-webkit-full-screen { height: 100vh; }
.orientation-gate { position: absolute; z-index: 8; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; margin: 0; padding: 24px; text-align: center; background: #000; color: #eee; font-size: 20px; touch-action: none; }
.orientation-gate p { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.mobile-entry { position: absolute; z-index: 7; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 24px; text-align: center; background: #000d; }
.mobile-entry > div { min-width: 0; width: 100%; max-width: 360px; }
#mobile-play-button { padding: 14px 24px; border: 1px solid #bc9a5e; border-radius: 4px; background: #292217; color: #fff3d6; font: 600 18px/1.3 "Segoe UI", Arial, sans-serif; cursor: pointer; touch-action: manipulation; }
#mobile-fullscreen-note { max-width: 320px; margin: 16px auto 0; color: #bbb; font-size: 14px; line-height: 1.5; }
.game-stage:fullscreen { width: 100vw; height: 100vh; height: 100dvh; }
.game-stage:-webkit-full-screen { width: 100vw; height: 100vh; }
#fullscreen-button { position: absolute; z-index: 4; right: max(8px, env(safe-area-inset-right)); top: max(8px, env(safe-area-inset-top)); width: 32px; height: 32px; padding: 0; border: 1px solid #ffffff30; border-radius: 3px; background: #0008; color: #eee; font: 24px/1 sans-serif; cursor: pointer; opacity: .3; }
#fullscreen-button:hover, #fullscreen-button:focus-visible { opacity: 1; }
#fullscreen-button:disabled, .game-stage:fullscreen #fullscreen-button, .game-stage:-webkit-full-screen #fullscreen-button { display: none; }
.loading-screen { position: absolute; z-index: 5; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); place-items: center; padding: 20px; background: #000; }
.loading-screen.is-loaded { display: none; }
.loading-content { min-width: 0; width: 100%; max-width: 380px; text-align: center; font-size: 14px; overflow-wrap: anywhere; }
#loading-caption { margin: 0 0 22px; max-width: 100%; font-size: 18px; line-height: 1.3; }
.load-progress { min-width: 0; width: 100%; height: 5px; overflow: hidden; background: #252525; }
#load-progress-fill { width: 0; height: 100%; background: #bc9a5e; transition: width .15s linear; }
.loading-details { min-width: 0; display: flex; justify-content: space-between; gap: 8px; color: #bbb; font-size: 12px; }
#load-label { min-width: 0; overflow-wrap: anywhere; }
#load-percent { flex: 0 0 auto; }
#loading-note { margin-top: 20px; color: #888; font-size: 12px; }
button { font: inherit; }
#retry-button, dialog button { padding: 8px 16px; border: 1px solid #777; background: #252525; color: #eee; cursor: pointer; }
.game-message { position: absolute; z-index: 6; left: 50%; top: 16px; transform: translateX(-50%); width: min(520px, calc(100% - 32px)); padding: 12px; background: #351c1c; color: #fff; font-size: 13px; }
dialog { max-width: calc(100% - 32px); border: 1px solid #777; background: #151515; color: #eee; }
dialog::backdrop { background: #000a; }
noscript { position: absolute; inset: 0; display: grid; place-items: center; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
