:root { color-scheme: dark; font-family: Arial, Helvetica, sans-serif; background: #000; color: #eee; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
[hidden] { display: none !important; }
main { position: fixed; inset: 0; background: #000; }
#intro { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; pointer-events: none; }
.loading-screen { z-index: 2; overflow: hidden; opacity: 1; transition: opacity .65s ease; }
.loading-screen.is-leaving { opacity: 0; pointer-events: none; }
.loading-content { text-align: center; transform: translateY(-12px); }
.brand-stage { position: relative; display: grid; place-items: center; width: min(300px, 68vw, 47svh); margin: 0 auto 42px; isolation: isolate; }
.brand-stage::before { content: ""; position: absolute; inset: -18%; z-index: -1; background: radial-gradient(ellipse, rgb(171 16 13 / 16%), transparent 63%); animation: glow 3.8s ease-in-out infinite; }
.brand-logo { position: relative; user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 8px 18px rgb(109 9 9 / 20%)); }
.orbit { position: absolute; inset: 0; border: 1px solid #28100f; border-radius: 50%; }
.orbit::before { content: ""; position: absolute; inset: -1px; border: 1px solid transparent; border-top-color: #bf2d26; border-bottom-color: #501612; border-radius: 50%; animation: orbit 5s linear infinite; }
.orbit::after { content: ""; position: absolute; inset: 8px; border: 1px dashed #261210; border-radius: 50%; opacity: .55; }
.loading-actions { min-height: 112px; }
.loading-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 15px; }
#loading-title { color: #b7aaa8; font-size: 10px; font-weight: 700; letter-spacing: .28em; }
.loading-number { font-size: 27px; font-weight: 400; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.percent-sign { margin-left: 4px; font-size: 11px; color: #9f706b; letter-spacing: 0; }
.progress-track { width: 100%; overflow: hidden; }
.progress-fill { position: relative; width: 100%; background: linear-gradient(90deg, #851a17, #f14b3d); transition: transform .18s linear; box-shadow: 0 0 14px rgb(229 46 33 / 55%); }
.progress-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgb(255 218 208 / 65%) 50%, transparent 70%); animation: scan 1.9s ease-in-out infinite; }
.loading-message { min-height: 32px; margin: 17px 0 0; color: #92827f; font-size: 11px; line-height: 1.7; letter-spacing: .07em; }
.loading-footer { position: absolute; bottom: max(24px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 13px; color: #65514e; font-size: 8px; letter-spacing: .28em; }
.loading-footer span { width: 23px; height: 1px; background: #3e1a16; }
.loading-screen.is-error .orbit::before, .loading-screen.is-error .progress-fill::after { animation-play-state: paused; }
.loading-screen.is-error .loading-message { color: #d29c94; }
#entry-actions { animation: arrive .4s ease both; }
button { font: inherit; cursor: pointer; color: #fff; -webkit-tap-highlight-color: transparent; }
button:disabled { opacity: .55; cursor: wait; }
button:focus-visible, input:focus-visible { outline: 2px solid #f48b7c; outline-offset: 5px; }
.primary-button { display: flex; align-items: center; justify-content: center; gap: 20px; width: 100%; min-height: 52px; padding: 14px 20px; border: 1px solid #b53a2f; border-radius: 3px; background: linear-gradient(110deg, #541410, #8b211a); box-shadow: 0 5px 25px rgb(129 29 21 / 20%); font-size: 13px; font-weight: 600; letter-spacing: .06em; transition: background .2s, border-color .2s; }
.primary-button:hover { background: #9a3025; border-color: #ed6b58; }
.primary-button span { color: #f3b4a8; font-size: 20px; font-weight: 400; }
.secondary-button { border: 1px solid #74352d; background: #1f0e0b; padding: 10px 14px; border-radius: 3px; font-size: 12px; }
.audio-toggle { position: absolute; right: max(22px, env(safe-area-inset-right)); top: max(22px, env(safe-area-inset-top)); display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgb(255 255 255 / 23%); border-radius: 50%; background: rgb(9 6 6 / 78%); box-shadow: 0 4px 20px #0006; }
.game-version { position: absolute; right: max(22px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom)); z-index: 6; color: #eee3dc; font-size: 9px; letter-spacing: .14em; text-shadow: 0 1px 5px #000; pointer-events: none; }
#audio-toggle[hidden] + .game-version { display: none; }
.audio-toggle:hover { background: #361512; border-color: #b66355; }
svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.audio-dialog { width: min(390px, calc(100% - 32px)); max-height: calc(100dvh - 48px); margin: auto; padding: 27px; color: #f2ebe8; background: #130e0d; border: 1px solid #533028; border-radius: 10px; box-shadow: 0 25px 100px #000b; }
.audio-dialog::backdrop { background: rgb(0 0 0 / 58%); }
.audio-dialog[open] { animation: arrive .2s ease both; }
.audio-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; margin-bottom: 30px; }
.eyebrow { margin: 0 0 8px; color: #b78377; font-size: 9px; letter-spacing: .23em; }
h1 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -.03em; }
.close-button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid #49332d; background: transparent; border-radius: 50%; }
.close-button:hover { background: #39221b; }
.volume-control { margin: 0 0 26px; }
.volume-label { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; margin-bottom: 13px; }
.volume-label label { font-size: 13px; color: #e6d9d5; }
.volume-label output { color: #d99280; font-size: 12px; font-variant-numeric: tabular-nums; }
input[type="range"] { display: block; width: 100%; height: 24px; margin: 0; accent-color: #df6150; cursor: pointer; }
.audio-note { color: #a18b83; font-size: 11px; line-height: 1.7; margin: 5px 0 20px; }
.save-status { min-height: 32px; color: #e5bdaa; font-size: 12px; line-height: 1.5; margin: 14px 0 0; }
.notice { position: absolute; z-index: 3; left: 50%; bottom: max(28px, env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: min(480px, calc(100% - 145px)); padding: 12px 17px; margin: 0; color: #ead9d3; background: #160e0eee; border: 1px solid #6f4438; border-radius: 6px; font-size: 12px; line-height: 1.5; text-align: center; }
noscript { position: absolute; bottom: 12px; padding: 12px; font-size: 12px; }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes glow { 50% { opacity: .5; transform: scale(.94); } }
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-height: 500px) { .brand-stage { margin-bottom: 14px; width: min(150px, 34svh); height: min(150px, 34svh); }.loading-content { transform: translateY(-6px); }.loading-footer { bottom: 10px; }.audio-dialog { padding: 20px; }.volume-control { margin-bottom: 16px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; } }

#connection-diagnostics{white-space:pre-wrap;font-size:12px;line-height:1.5}
