:root { color-scheme: dark; font-family: Arial, Helvetica, sans-serif; background: #100a29; color: #fff; }
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:disabled { opacity: .4; cursor: default; }
[hidden] { display: none !important; }
#game-shell { height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: #100a29; }
header { display: flex; align-items: center; gap: 20px; flex: 0 0 auto; min-height: 44px; padding: 7px max(18px, env(safe-area-inset-right)) 7px max(18px, env(safe-area-inset-left)); border-bottom: 1px solid #3b2456; }
header a { color: #f8edff; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
header a span { color: #b8a7d1; font-weight: 400; }
header p { flex: 1; color: #b8a7d1; font-size: 12px; margin: 0; text-align: right; }
header button { border: 1px solid #725393; border-radius: 7px; padding: 5px 12px; background: #24183c; color: #eee2ff; font-size: 12px; white-space: nowrap; }
button:focus-visible, a:focus-visible { outline: 3px solid #cb9bff; outline-offset: 3px; }
#game-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; }
#unity-canvas { width: 100%; height: 100%; display: block; background: #100a29; touch-action: none; outline: none; }
.overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: auto; padding: 24px; background: radial-gradient(ellipse at 50% 30%, #482074 0%, #21123f 42%, #100a29 78%); }
.loading-card { width: min(100%, 460px); margin: auto; text-align: center; }
.loading-card img { max-width: 100%; border-radius: 26%; box-shadow: 0 0 48px #dc36dc44; }
.eyebrow { color: #dfbdff; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: 22px 0 9px; }
h1 { font-size: clamp(30px, 5vw, 46px); letter-spacing: -.035em; margin: 0; text-shadow: 0 0 24px #d242e880; }
h2 { font-size: 25px; margin: 22px 0 10px; }
.intro, .compact p { color: #cfbfdc; font-size: 15px; line-height: 1.6; margin: 14px 0 22px; }
#progress-track { height: 7px; max-width: 280px; margin: 20px auto 0; border-radius: 10px; background: #ffffff16; overflow: hidden; }
#progress-fill { width: 0%; height: 100%; background: linear-gradient(90deg, #b56cff, #ff6cdb); transition: width .15s; }
#status { color: #dbc8ec; font-size: 13px; line-height: 1.5; margin: 16px 0; }
.primary { border: 1px solid #ee9eec; border-radius: 12px; padding: 13px 30px; background: linear-gradient(110deg, #9342da, #d741bb); color: white; font-size: 16px; font-weight: 700; box-shadow: 0 6px 24px #cc2aad30; }
.hint { font-size: 11px; color: #ac93bd; margin: 25px 0 0; }
#rotate { z-index: 2; }
noscript { position: absolute; inset: 50% 12px auto; text-align: center; }
@media (max-width: 640px) { header p { display: none; } header a { flex: 1; } header { gap: 10px; } }
@media (max-height: 540px) and (orientation: landscape) { .overlay { padding: 15px; } .loading-card img { width: 68px; height: 68px; } .eyebrow { margin-top: 12px; } h1 { font-size: 29px; } .intro { margin: 8px 0; font-size: 13px; } #status { margin: 10px 0; } .hint { margin-top: 13px; } .primary { padding: 10px 24px; } }
