:root { color-scheme:dark; --ink:#f7f3e9; --muted:#aaa89e; --gold:#dfbe75; --night:#090a09; font-family:'DM Sans',sans-serif; background:var(--night); color:var(--ink); }
* { box-sizing:border-box; }
body { margin:0; min-width:320px; min-height:100svh; display:flex; flex-direction:column; background:var(--night); }
[hidden] { display:none!important; }
a { color:inherit; text-decoration:none; }
button { font:inherit; cursor:pointer; }
a,button { -webkit-tap-highlight-color:transparent; }
a:focus-visible,button:focus-visible,video:focus-visible { outline:2px solid var(--gold); outline-offset:5px; }
.atmosphere { position:fixed; inset:0; overflow:hidden; pointer-events:none; z-index:0; }
.aurora { position:absolute; width:min(1000px,150vw); height:650px; left:50%; top:-420px; transform:translateX(-50%); background:radial-gradient(ellipse,#b28c3c22,transparent 70%); animation:breathe 10s ease-in-out infinite alternate; }
.horizon { position:absolute; width:160%; height:340px; left:-30%; bottom:-275px; border-radius:50%; border-top:1px solid #cda55340; box-shadow:0 -40px 100px #bd8d2510; }
.launch-header,main,.launch-footer { position:relative; z-index:1; }
.launch-header { padding:30px clamp(24px,5vw,80px); }
.brand { display:inline-flex; }
.brand img { display:block; width:154px; height:36px; }
main { flex:1; display:grid; place-items:center; padding:32px 24px 64px; }
.launch-stage { width:100%; max-width:940px; text-align:center; }
.stage-kicker { margin:0 0 20px; color:var(--gold); font-size:10px; font-weight:600; letter-spacing:.28em; }
h1 { max-width:670px; margin:0 auto; font-size:clamp(30px,4vw,48px); font-weight:500; line-height:1.18; letter-spacing:-.045em; text-wrap:balance; overflow-wrap:anywhere; }
.intro { margin:18px auto 0; max-width:560px; color:var(--muted); font-size:14px; line-height:1.7; text-wrap:balance; }
.countdown-shell { max-width:540px; margin:42px auto 0; padding:24px 16px; border:1px solid #d5bd7f20; border-radius:20px; background:linear-gradient(145deg,#e7cb8b08,#ffffff02); }
.countdown { display:grid; grid-template-columns:1fr 10px 1fr 10px 1fr 10px 1fr; align-items:start; }
.time-cell { min-width:0; display:grid; gap:9px; }
.time-cell strong { display:block; font-size:clamp(32px,5vw,64px); line-height:1; font-weight:500; letter-spacing:-.05em; font-variant-numeric:tabular-nums; }
.time-cell span { color:var(--muted); font-size:8px; letter-spacing:.2em; }
.separator { padding-top:7px; font-size:32px; line-height:1; color:#a68a4d88; }
.launch-status { margin:22px 0 0; color:var(--muted); font-size:13px; }
.launch-status:empty { display:none; }
.launch-date { margin:20px 0 0; color:#8f8c81; font-size:12px; }
.live-stage { margin-top:28px; }
body[data-phase="live"] .stage-kicker,body[data-phase="reveal"] .stage-kicker { margin-bottom:12px; }
body[data-phase="live"] h1,body[data-phase="reveal"] h1 { font-size:clamp(28px,3.5vw,38px); }
.video-frame { position:relative; aspect-ratio:16/9; overflow:hidden; border:1px solid #d5bd7f26; border-radius:16px; background:#000; box-shadow:0 20px 90px #0008; }
video { display:block; width:100%; height:100%; object-fit:contain; background:#000; }
.video-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 2px 0; min-height:42px; }
.video-toolbar p { margin:0; color:var(--muted); font-size:12px; text-align:left; }
.video-actions { display:flex; gap:8px; margin-left:auto; flex-shrink:0; }
.video-actions button,.settings-error button { border:1px solid #d5bd7f30; border-radius:999px; padding:9px 14px; color:var(--ink); background:#ffffff05; font-size:12px; }
.video-actions button:hover,.settings-error button:hover { border-color:var(--gold); background:#dfbe7510; }
.settings-error { margin-top:24px; font-size:12px; color:var(--muted); }
.settings-error button { margin-left:8px; }
.launch-footer { display:flex; justify-content:space-between; gap:20px; padding:20px clamp(24px,5vw,80px) max(24px,env(safe-area-inset-bottom)); color:#817e73; font-size:11px; }
.launch-footer nav { display:flex; gap:20px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.digit-updated { animation:digit-fade .25s ease-out; }
.reveal-light { position:fixed; inset:0; pointer-events:none; z-index:2; opacity:0; background:radial-gradient(ellipse at center,#ddbc7522,transparent 65%); }
body[data-phase="reveal"] .reveal-light { animation:reveal-fade .8s ease-out both; }
#celebration { position:fixed; inset:50% 0 auto 50%; pointer-events:none; z-index:3; }
.celebration-spark { position:absolute; width:3px; height:3px; background:var(--gold); border-radius:50%; animation:spark var(--duration) var(--delay) ease-out both; }
.page-hidden * { animation-play-state:paused!important; }
@keyframes breathe { to { opacity:.4; } }
@keyframes digit-fade { from { opacity:.6; } to { opacity:1; } }
@keyframes reveal-fade { 15% { opacity:1; } 100% { opacity:0; } }
@keyframes spark { from { opacity:0; } 15% { opacity:.7; } to { opacity:0; transform:translate(var(--x),var(--y)); } }
@media(max-width:600px) { .launch-header { padding:24px; } .brand img { width:136px; height:auto; } main { padding:32px 20px 48px; } .countdown-shell { margin-top:30px; padding:22px 8px; border-radius:16px; } .time-cell strong { font-size:clamp(32px,9vw,48px); } .separator { font-size:24px; padding-top:3px; } .time-cell span { font-size:7px; letter-spacing:.13em; } .video-frame { border-radius:10px; } .video-toolbar { flex-wrap:wrap; justify-content:center; } .video-toolbar p { width:100%; text-align:center; } .video-actions { margin:auto; } .launch-footer { padding-left:24px; padding-right:24px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; } #celebration,.reveal-light { display:none; } }

/* Celebration precedes the clean, control-free film stage. */
.reveal-stage { position:relative; height:280px; display:grid; place-items:center; isolation:isolate; }
.reveal-stage img { width:220px; height:auto; animation:brand-arrive 1s ease-out both; filter:drop-shadow(0 0 26px #d6af5360); }
.celebration-ring { position:absolute; width:180px; height:180px; border:1px solid #e5c67a99; border-radius:50%; box-shadow:0 0 70px #ddba6c30,inset 0 0 50px #ddba6c20; animation:celebration-ring 2.4s ease-out both; z-index:-1; }
body[data-phase="reveal"] .reveal-light { animation:reveal-fade 2.4s ease-out both; }
body[data-phase="live"] .video-frame { animation:film-arrive .5s ease-out both; }
video::-webkit-media-controls { display:none!important; }
@keyframes celebration-ring { from { opacity:0; transform:scale(.6); } 25% { opacity:1; } to { opacity:0; transform:scale(2.7); } }
@keyframes brand-arrive { from { opacity:0; transform:translateY(12px) scale(.94); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes film-arrive { from { opacity:0; } to { opacity:1; } }

/* A quiet brand reveal replaces the video after its final frame. */
.finished-logo { position:relative; display:grid; place-items:center; width:min(320px,80%); margin:0 auto 38px; min-height:92px; animation:brand-arrive .7s ease-out both; isolation:isolate; }
.finished-logo img { display:block; width:min(288px,100%); height:auto; filter:drop-shadow(0 5px 25px #d6af5320); }
.logo-halo { position:absolute; inset:-64px -80px; z-index:-1; background:radial-gradient(ellipse,#d4ae4a18,transparent 65%); pointer-events:none; }
.film-finished #stage-kicker { display:inline-flex; align-items:center; gap:10px; color:#ddc58c; margin-bottom:18px; }
.film-finished #stage-kicker::before { content:''; width:5px; height:5px; border-radius:50%; background:#dfbe75; box-shadow:0 0 12px #dfbe7580; }
body.film-finished h1 { font-size:clamp(34px,4vw,54px); line-height:1.15; white-space:pre-line; background:linear-gradient(130deg,#fffaf0 35%,#d0b477); background-clip:text; -webkit-background-clip:text; color:transparent; }
.finished-stage { animation:film-arrive .7s ease-out both; }
.finished-stage p { margin:22px auto 28px; color:var(--muted); font-size:14px; line-height:1.7; text-wrap:balance; }
.finished-stage button { border:0; border-bottom:1px solid #cbb47750; color:#d5c59e; background:transparent; padding:9px 0; font-size:12px; }
.finished-stage button span { margin-left:10px; }
.finished-stage button:hover { color:var(--ink); border-color:var(--gold); }
@media(max-width:600px) { .finished-logo { margin-bottom:30px; width:240px; } .finished-logo img { width:240px; } .finished-stage p { max-width:270px; font-size:13px; } }
