:root { color-scheme: dark; font-family: "Segoe UI", system-ui, sans-serif; color: #f8f1e7; background: #171310; --gold: #edbd72; --muted: #c7b9aa; --line: #68503a; }
* { box-sizing: border-box; }
html, body, #astra-root { width: 100%; height: 100%; margin: 0; overflow: hidden; }
html, body { overscroll-behavior: none; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
button:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
#canvas { width: 100%; height: 100%; display: block; border: 0; outline: 0; background: #000; touch-action: none; cursor: auto; }
#astra-root { padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
@supports (height: 100dvh) { html, body, #astra-root { height: 100dvh; } }
#astra-virtual-keyboard { position: fixed; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; font-size: 16px; pointer-events: none; border: 0; padding: 0; }
#astra-status { position: fixed; z-index: 4; inset: auto 16px 16px; padding: 8px 12px; color: #f8f1e7; background: #241d17ed; border: 1px solid var(--line); border-radius: 8px; font: 13px/1.4 ui-monospace, monospace; pointer-events: none; }
#astra-status:empty, [hidden] { display: none !important; }
#chocolate-native-inputs { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.chocolate-native-input { position: fixed; display: block; margin: 0; padding: 0; border: 0; border-radius: 0; outline: 0; min-width: 0; min-height: 0; background: transparent; color: transparent; -webkit-text-fill-color: transparent; caret-color: transparent; font: 16px/1 system-ui, sans-serif; pointer-events: auto; touch-action: manipulation; }
.chocolate-native-input::selection { background: #edbd7240; }
#chocolate-mobile-toolbar { display: none; }
.chocolate-mobile #astra-root { position: fixed; top: var(--chocolate-view-top, 0px); left: var(--chocolate-view-left, 0px); width: var(--chocolate-view-width, 100%); height: var(--chocolate-view-height, 100dvh); }
.chocolate-mobile.chocolate-playing #astra-root { padding-top: calc(env(safe-area-inset-top) + 42px); }
.chocolate-mobile.chocolate-playing #chocolate-mobile-toolbar { position: fixed; z-index: 4; top: calc(var(--chocolate-view-top, 0px) + env(safe-area-inset-top)); left: max(env(safe-area-inset-left), 6px); right: max(env(safe-area-inset-right), 6px); height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #171310; }
#chocolate-mobile-toolbar button { flex: none; min-height: 36px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; background: #241d17; color: #f8f1e7; font-size: 12px; touch-action: manipulation; }
#chocolate-display-hint { font-size: 11px; color: var(--muted); line-height: 1.2; }
@media (max-width: 600px) { #chocolate-display-hint { max-width: 130px; font-size: 10px; } }
#astra-launcher { position: fixed; z-index: 5; inset: 0; overflow: auto; display: flex; flex-direction: column; background: #171310; opacity: 1; transition: opacity 300ms ease; }
#astra-launcher[data-fading] { opacity: 0; pointer-events: none; }
#astra-launcher[data-mode="error"] { transition: none; }
#astra-launcher::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: linear-gradient(90deg, #171310d6, #24180cc2 50%, #171310d6), linear-gradient(0deg, #171310 0%, #17131038 60%, #171310b8), url("launcher-background.png") center / cover; }
#astra-launcher::after { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 40%, #edbd7212, transparent 64%); }
.launcher-nav, .launcher-main, .launcher-footer { position: relative; z-index: 1; }
.launcher-nav { display: flex; justify-content: space-between; align-items: center; padding: 26px 42px; font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.nav-brand { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; color: #f8f1e7; }
.astra-mark { width: 34px; height: 38px; display: grid; place-items: center; background: #36271b; border: 1px solid #bf8e50; border-radius: 6px; box-shadow: inset 0 0 0 3px #171310; }
.astra-mark span { font-family: Georgia, serif; font-size: 27px; color: var(--gold); }
.nav-tag { border: 1px solid #edbd7240; border-radius: 30px; padding: 8px 13px; background: #241d1780; }
.launcher-main { flex: 1; width: min(600px, calc(100% - 40px)); margin: auto; display: flex; flex-direction: column; justify-content: center; padding: 15px 0 26px; text-align: center; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .25em; color: var(--gold); margin: 0 0 14px; }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 5.5vw, 64px); font-weight: 400; letter-spacing: -.035em; line-height: 1.1; text-shadow: 0 5px 36px #edbd7224; }
h1 span { color: var(--gold); }
.launcher-subtitle { margin: 14px 0 25px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.launcher-card { text-align: left; background: linear-gradient(145deg, #30261eec, #1b1612f5); border: 1px solid var(--line); border-radius: 12px; padding: 26px 28px 22px; box-shadow: 0 22px 70px #0008, inset 0 1px 0 #edbd7220; backdrop-filter: blur(14px); }
.card-header { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.package-icon { display: grid; place-items: center; flex: none; width: 43px; height: 43px; background: #edbd7210; color: var(--gold); border: 1px solid #edbd7238; border-radius: 8px; }
.package-icon svg { width: 25px; height: 25px; }
h2 { font-size: 17px; font-weight: 600; margin: 0 0 4px; }
.card-caption { font-size: 12px; margin: 0; line-height: 1.5; color: var(--muted); }
.data-info { margin: 0; padding: 16px 0; border-top: 1px solid #edbd7222; border-bottom: 1px solid #edbd7222; display: grid; gap: 13px; }
.data-info div { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; }
.data-info dt { color: var(--muted); }
.data-info dd { margin: 0; color: #f8f1e7; font-weight: 500; }
#launcher-state { display: inline-flex; gap: 7px; align-items: center; font-size: 12px; color: var(--gold); }
#launcher-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 9px currentColor; }
#launcher-state.ready { color: #acd492; }
#launcher-state.error { color: #f2988c; }
.launcher-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.secondary { color: #eee0cb; background: #edbd720a; border: 1px solid var(--line); border-radius: 6px; padding: 11px 6px; font-size: 12px; transition: background .15s, border-color .15s; }
.secondary:hover:not(:disabled) { background: #edbd7220; border-color: var(--gold); }
.play-button { width: 100%; margin: 13px 0 0; padding: 16px; border: 1px solid #f3c689; border-radius: 6px; background: linear-gradient(110deg, #edbd72, #f6d398 50%, #d9a65f); color: #24190e; font-size: 16px; font-weight: 750; letter-spacing: .04em; box-shadow: 0 5px 24px #edbd7220, inset 0 1px 0 #fff6; transition: filter .15s, box-shadow .15s; }
.play-button:hover:not(:disabled) { filter: brightness(1.1); box-shadow: 0 5px 32px #edbd7240; }
.play-button svg { width: 14px; height: 14px; margin-right: 9px; vertical-align: -1px; }
.launch-message { font-size: 12px; line-height: 1.5; color: var(--muted); min-height: 18px; margin: 14px 0 0; text-align: center; overflow-wrap: anywhere; }
.launch-message.error { color: #f2988c; }
.launcher-progress { width: 100%; height: 5px; accent-color: var(--gold); margin-top: 16px; }
.launcher-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 20px 190px 20px 42px; font-size: 11px; color: var(--muted); }
.launcher-footer span:last-child { font-size: 10px; }
.launcher-confirm { color: #eee0cb; text-align: center; border-top: 1px solid #edbd7222; margin-top: 16px; padding-top: 14px; font-size: 12px; line-height: 1.5; }
.launcher-confirm button { margin: 5px; padding: 8px 18px; }
/* The startup overlay leaves the game canvas at its full, original size. */
#astra-launcher:not([data-mode="manage"])::before { background: radial-gradient(ellipse at 50% 42%, #5233185e, #171310 72%); }
#astra-launcher:not([data-mode="manage"]) .launcher-main { width: min(780px, calc(100% - 36px)); }
#astra-launcher:not([data-mode="manage"]) .launcher-main > :not(#launcher-splash):not(#launcher-reload) { display: none; }
#astra-launcher:not([data-mode="manage"]) .launcher-nav { visibility: hidden; }
#launcher-splash { margin: auto; text-align: center; }
.splash-emblem { display: block; width: min(680px, 88vw, 100vh); max-height: 58vh; height: auto; margin: 0 auto 16px; object-fit: contain; filter: drop-shadow(0 0 28px #edbd7218); }
.splash-kicker { font-size: 10px; letter-spacing: .24em; color: var(--gold); margin: 0 0 14px; }
#splash-title { font: 400 clamp(20px, 3vw, 29px)/1.2 Georgia, serif; color: #f8f1e7; margin: 0 0 12px; }
#splash-message { color: var(--muted); font-size: 13px; line-height: 1.5; min-height: 20px; max-width: 540px; overflow-wrap: anywhere; margin: 0 auto 18px; }
#splash-progress { display: block; width: min(340px, 70vw); height: 5px; margin: auto; accent-color: var(--gold); border: 0; border-radius: 5px; }
#splash-progress::-webkit-progress-bar { background: #443529; border-radius: 5px; }
#splash-progress::-webkit-progress-value { background: linear-gradient(90deg, #ad783c, var(--gold)); border-radius: 5px; }
#splash-progress::-moz-progress-bar { background: var(--gold); border-radius: 5px; }
.splash-caption { color: var(--muted); font-size: 11px; line-height: 1.5; margin-top: 15px; }
#launcher-reload { margin: 22px auto 0; padding: 12px 30px; }
#astra-launcher[data-mode="error"] #splash-message { color: #f2988c; }
#astra-launcher[data-mode="error"] .splash-caption { display: none; }
@media (max-height: 740px) { .launcher-nav { padding-top: 16px; padding-bottom: 14px; } .launcher-card { padding: 22px 26px 20px; } .launcher-main { padding-bottom: 15px; } .launcher-footer { padding-top: 12px; padding-bottom: 12px; } }
@media (max-width: 600px) { .launcher-nav, .launcher-footer { padding-left: 22px; padding-right: 22px; } .nav-tag { display: none; } .launcher-card { padding: 20px; } .launcher-footer span:last-child { display: none; } h1 { font-size: clamp(32px, 8vw, 46px); } }
@media (pointer: coarse) { button { min-height: 44px; } }
@media (max-height: 500px) { .launcher-nav { padding: 10px 22px; } .launcher-main { padding-top: 0; } .eyebrow, .launcher-footer, .nav-tag { display: none; } h1 { font-size: 34px; } .launcher-subtitle { margin: 6px 0 12px; font-size: 13px; } .launcher-card { padding: 14px 20px; } .card-header { margin-bottom: 10px; } .data-info { padding: 8px 0; gap: 6px; } .launcher-actions { margin-top: 10px; } #astra-launcher:not([data-mode="manage"]) .launcher-nav { display: none; } .splash-emblem { width: min(440px, 76vw, 78vh); max-height: 43vh; margin-bottom: 12px; } .splash-kicker { font-size: 9px; margin-bottom: 10px; } #splash-title { font-size: 22px; } .splash-caption { margin-top: 10px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
