/* The app opening (launch.js), "Night falls" (14 Nov 2026). The native launch image, this still and the opening share the
   same midnight-blue ground and the same art size: 64% of the width, at most 280 px. The sky, the stars and the gold
   bead's bloom are layers whose timing tools/opening/make_opening.py writes below (from scene.py). Only opacity
   animates, so the compositor plays it even while the app is still starting on the main thread. */
html.zk-opening-on{background:#172c57}
html.zk-opening-on::after{content:"";position:fixed;inset:0;z-index:2147483645;background:#172c57 url(launch-first.png) center/min(64vw,280px) no-repeat}
.zk-opening{position:fixed;inset:0;z-index:2147483646;background:#172c57;display:grid;place-items:center;opacity:0;transition:opacity 300ms ease;direction:ltr;touch-action:none;cursor:pointer;overflow:hidden}
/* Shown once the art has decoded: until then the still above (::after) is what shows, so nothing blinks. */
.zk-opening.ready{opacity:1;transition:none}
.zk-opening-art{position:relative;width:min(64vw,280px);aspect-ratio:1}
.zk-opening-art img{position:absolute;inset:0;width:100%;height:100%;display:block}
.zk-opening.leaving{opacity:0;pointer-events:none;transition:opacity 300ms ease}
@media (prefers-reduced-motion:reduce){.zk-opening *{animation:none!important}}
/* opening:generated (tools/opening/make_opening.py; do not edit by hand) */
.zk-opening{--zk-dur:2.4s}
.zk-night{position:absolute;inset:0;pointer-events:none;opacity:1}
.zk-opening.playing .zk-night{animation:zkNightOut 2.4s linear both}
@keyframes zkNightOut{0%,89.58%{opacity:1}100%{opacity:0}}
.zk-sky{position:absolute;inset:0;background:radial-gradient(90% 55% at 50% 22%,#2B4890 0,#16295C 48%,#070D26 100%);opacity:0}
.zk-opening.playing .zk-sky{animation:zkIn 1.20s cubic-bezier(.37,0,.63,1) 0.10s both}
@keyframes zkIn{from{opacity:0}to{opacity:1}}
.zk-star{position:absolute;width:calc(var(--s)*2.6vmin);height:calc(var(--s)*2.6vmin);margin:calc(var(--s)*-1.3vmin) 0 0 calc(var(--s)*-1.3vmin);border-radius:50%;opacity:0;background:radial-gradient(circle,#E9EEFF 0 13%,rgba(233,238,255,.42) 20%,rgba(233,238,255,0) 70%)}
.zk-opening.playing .zk-star{animation:zkIn 0.30s cubic-bezier(.37,0,.63,1) both}
.zk-star:nth-child(1){left:14%;top:22%;--s:1.1}.zk-opening.playing .zk-star:nth-child(1){animation-delay:0.25s}
.zk-star:nth-child(2){left:78%;top:17%;--s:0.8}.zk-opening.playing .zk-star:nth-child(2){animation-delay:0.37s}
.zk-star:nth-child(3){left:88%;top:34%;--s:0.7}.zk-opening.playing .zk-star:nth-child(3){animation-delay:0.49s}
.zk-star:nth-child(4){left:10%;top:58%;--s:0.75}.zk-opening.playing .zk-star:nth-child(4){animation-delay:0.61s}
.zk-star:nth-child(5){left:20%;top:80%;--s:0.9}.zk-opening.playing .zk-star:nth-child(5){animation-delay:0.73s}
.zk-star:nth-child(6){left:84%;top:76%;--s:1.0}.zk-opening.playing .zk-star:nth-child(6){animation-delay:0.85s}
.zk-star:nth-child(7){left:62%;top:10%;--s:0.6}.zk-opening.playing .zk-star:nth-child(7){animation-delay:0.97s}
.zk-star:nth-child(8){left:46%;top:88%;--s:0.7}.zk-opening.playing .zk-star:nth-child(8){animation-delay:1.09s}
.zk-gold{position:absolute;left:65.12%;top:46.64%;width:41.33%;aspect-ratio:1;translate:-50% -50%;border-radius:50%;opacity:0;background:radial-gradient(circle,rgba(246,216,148,1) 0,rgba(246,216,148,.35) 40%,rgba(246,216,148,0) 70%)}
.zk-opening.playing .zk-gold{animation:zkGold 1.20s cubic-bezier(.37,0,.63,1) 0.70s both}
@keyframes zkGold{0%,100%{opacity:0}50%{opacity:0.7}}
/* opening:end */
