:root { color-scheme: dark; font-family: system-ui, sans-serif; background: #091017; color: #dce9e8; }
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
#viewport { position: relative; width: 100%; height: 100%; overflow: hidden; }
/* Presentation always fills the embed; adaptive quality resizes only the offscreen 3D image. */
#game { position: absolute; inset: 0; display: block; width: 100% !important; height: 100% !important; outline: none; touch-action: none; }
#loading { position: absolute; inset: 0; display: grid; place-items: center; overflow: auto; padding: 24px; background: radial-gradient(ellipse at 75% 20%, #233c42 0, #101f29 35%, #091017 75%); }
#loading[hidden] { display: none; }
.panel { width: min(100%, 500px); padding: 36px 0; }
.eyebrow { font-size: 10px; letter-spacing: .24em; color: #8caaa9; }
h1 { margin: 22px 0 12px; font-size: clamp(42px, 9vw, 72px); font-weight: 650; letter-spacing: -.055em; line-height: .97; }
h1 span { color: #e9b766; }
.intro { color: #aabfbe; font-size: 17px; margin: 18px 0 28px; }
#status { min-height: 42px; max-width: 450px; font-size: 14px; line-height: 1.5; color: #d2dfde; }
button { font: inherit; cursor: pointer; }
#launch { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 17px 20px; border: 1px solid #e9b766; background: #e9b766; color: #152127; border-radius: 4px; font-weight: 650; }
#launch:disabled { opacity: .55; cursor: default; }
#launch:hover:enabled { background: #f1c98d; }
button:focus-visible, summary:focus-visible { outline: 2px solid white; outline-offset: 4px; }
.note, details { color: #8caaa9; font-size: 12px; line-height: 1.7; }
.note { margin-top: 18px; }
details { margin-top: 24px; border-top: 1px solid #2b4147; padding-top: 16px; }
summary { cursor: pointer; }
#fullscreen { position: absolute; right: 14px; bottom: 14px; z-index: 2; width: 36px; height: 36px; border: 1px solid #597472; border-radius: 4px; background: #091017c9; color: #dce9e8; font-size: 24px; }
#notice { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); background: #091017ee; padding: 12px 18px; font-size: 13px; border: 1px solid #597472; border-radius: 4px; max-width: 90%; }
@media (max-height: 680px) { .panel { padding: 8px 0; } h1 { font-size: 44px; } .intro { margin: 12px 0; } details { margin-top: 12px; } }
