:root { color-scheme: dark; --background: #000; --text: #f4f1eb; --muted: #aaa6a0; --accent: #e8b88c; --line: #292622; font-family: "Saira", system-ui, sans-serif; background: var(--background); color: var(--text); font-synthesis: none; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; height: 100vh; height: 100dvh; display: flex; flex-direction: column; font-size: 16px; line-height: 1.6; }
a { color: inherit; text-underline-offset: 5px; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .4; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p { margin: 0; }
.wrap { width: min(1600px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; z-index: 10; top: 12px; left: 12px; padding: 10px 18px; background: var(--text); color: var(--background); transform: translateY(-180%); }
.skip:focus { transform: none; }
.site-header { flex-shrink: 0; min-height: 104px; padding-block: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
main { flex: 1; min-height: 0; display: flex; flex-direction: column; padding-bottom: 16px; }
#desktop-playground { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.brand { flex-shrink: 0; display: flex; align-items: center; gap: 14px; text-decoration: none; font-weight: 500; letter-spacing: -.03em; }
.brand img { flex: 0 0 48px; width: 48px; border: 1px solid #69645e; border-radius: 11px; }
.header-actions { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.back { display: inline-flex; align-items: center; min-height: 44px; gap: 6px; font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.store-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 6px; text-decoration: none; }
.store-link img { width: auto; max-width: none; height: 40px; }
.store-link:hover { opacity: .85; }
.eyebrow { color: var(--accent); font-size: 11px; letter-spacing: .17em; text-transform: uppercase; }
h1 { font-size: clamp(24px, 3.2vw, 40px); line-height: 1.2; font-weight: 400; letter-spacing: -.035em; margin-top: 6px; }
h2 { font-size: clamp(24px, 3vw, 36px); line-height: 1.25; font-weight: 400; letter-spacing: -.035em; }
.stage { flex: 1; position: relative; width: 100%; height: 100%; min-height: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #000; }
.stage canvas { display: block; width: 100%; height: 100%; outline: none; }
.stage canvas:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.loading-panel, .error-panel { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; overflow: auto; text-align: center; background: radial-gradient(ellipse at 50% 45%, #17110c 0%, #080605 36%, #000 70%); }
.primary-button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 12px 24px; gap: 12px; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: #15100c; font: inherit; font-size: 14px; font-weight: 500; text-decoration: none; }
.primary-button:hover { background: #f3cda8; border-color: #f3cda8; color: #15100c; }
.loading-panel progress { width: min(320px, 85%); height: 6px; accent-color: var(--accent); }
.loading-panel progress::-webkit-progress-bar { background: #332e29; border-radius: 4px; }
.loading-panel progress::-webkit-progress-value { background: var(--accent); border-radius: 4px; }
#loading-percent { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.error-panel p { max-width: 580px; }
#error-message { color: var(--muted); overflow-wrap: anywhere; }
.runtime-message { position: absolute; z-index: 5; left: 16px; right: 16px; bottom: 16px; padding: 12px 16px; border: 1px solid #8b6b50; border-radius: 6px; background: #100c08ee; color: var(--text); font-size: 13px; overflow-wrap: anywhere; }
.stage:fullscreen { width: 100%; height: 100%; border: 0; border-radius: 0; }
.stage:-webkit-full-screen { width: 100%; height: 100%; border: 0; border-radius: 0; }
.device-check { flex: 1; display: grid; place-items: center; color: var(--muted); }
.mobile-gate { flex: 1; min-height: 0; max-width: 620px; margin: 0 auto; padding: 36px 0; overflow: auto; text-align: center; }
.mobile-icon { width: 96px; height: 96px; margin: 0 auto 28px; border: 1px solid #69645e; border-radius: 21px; }
.mobile-gate h1 { margin-top: 14px; font-size: clamp(30px, 8vw, 46px); }
.mobile-gate > p:not(.eyebrow) { margin-top: 22px; color: var(--muted); }
.store-button { margin-top: 28px; }
.coming-soon { font-size: 14px; }
.mobile-back { display: inline-block; margin-top: 28px; font-size: 14px; }
.no-script { padding: 40px 0; text-align: center; color: var(--muted); }
@media (max-width: 800px) {
 .wrap { width: calc(100% - 32px); }
 .site-header { min-height: 88px; gap: 12px 16px; }
 .brand { font-size: 15px; gap: 10px; }
 .brand img { flex-basis: 40px; width: 40px; border-radius: 9px; }
 .back { font-size: 12px; }
 .store-link img { height: 36px; }
 .loading-panel, .error-panel { padding: 20px; gap: 14px; }
}
@media (max-width: 420px) {
 .site-header { align-items: center; gap: 12px; }
 .brand span { max-width: 160px; line-height: 1.3; }
 .header-actions { justify-content: flex-start; }
 .mobile-gate { padding-top: 24px; }
}
