/* Splash & Loading - the 20 splash screens (s01 - s20). Loaded only when a splash can show (or on the pages that preview them).
   Every splash is "background + decoration + logo / name / wish / tagline + a thin progress bar"; --sms (set by exp.js) is how long it stays. */
.exs { position: absolute; inset: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--sbg, #0b1020); color: var(--sink, #fff);
    --sa: var(--accent, #10b981); --sb: var(--accent-2, #34d399); --sms: 2.2s; }
.exs, .exs * { box-sizing: border-box; }
.exs-bg, .exs-d { position: absolute; inset: 0; pointer-events: none; }
.exs-core { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 24px; max-width: 92vw; }
.exs-logo { width: 96px; height: 96px; object-fit: contain; border-radius: 22px; animation: exs-pop .9s cubic-bezier(.2, .9, .3, 1.2) both; }
.exs-brand { font-size: clamp(26px, 7vw, 40px); font-weight: 800; letter-spacing: .02em; line-height: 1.15; animation: exs-up .8s .25s ease both; }
.exs-wish { font-size: clamp(18px, 4.8vw, 27px); font-weight: 800; line-height: 1.3; color: var(--swish, #fde68a); opacity: 0; animation: exs-up .8s .55s ease forwards; }
.exs-tag { font-size: 14px; font-weight: 500; opacity: .8; animation: exs-up .8s .7s ease both; }
.exs-bar { position: absolute; left: 50%; bottom: calc(44px + env(safe-area-inset-bottom)); width: 128px; height: 3px; margin-left: -64px; border-radius: 3px; background: rgba(128, 128, 128, .3); overflow: hidden; z-index: 3; }
.exs-bar i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--sa), var(--sb)); animation: exs-bar var(--sms) linear forwards; }
@keyframes exs-bar { to { transform: scaleX(1); } }
@keyframes exs-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes exs-pop { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: scale(1); } }
@keyframes exs-spin { to { transform: rotate(360deg); } }

/* light screens */
.exs-s06, .exs-s12, .exs-s13, .exs-s15, .exs-s18 { --sbg: #fff; --sink: #0f172a; --swish: #b45309; }
.exs-s06 .exs-bar, .exs-s12 .exs-bar, .exs-s13 .exs-bar, .exs-s15 .exs-bar { background: rgba(15, 23, 42, .12); }

/* s01 Aurora */
.exs-s01 { --sbg: #070b1a; }
.exs-s01 .exs-d i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(70px); opacity: .55; animation: exs-drift 7s ease-in-out infinite alternate; }
.exs-s01 .exs-d i:nth-child(1) { left: -20vmax; top: -25vmax; background: var(--sa); } .exs-s01 .exs-d i:nth-child(2) { right: -25vmax; bottom: -25vmax; background: var(--sb); animation-delay: -2s; } .exs-s01 .exs-d i:nth-child(3) { left: 20vmax; top: 15vmax; background: #7c3aed; opacity: .4; animation-delay: -4s; }
@keyframes exs-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(8vmax, 6vmax) scale(1.15); } }
/* s02 Pulse */
.exs-s02 { --sbg: #06111f; }
.exs-s02 .exs-d i { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; margin: -75px; border-radius: 50%; border: 2px solid var(--sa); opacity: 0; animation: exs-ring 2.6s ease-out infinite; }
.exs-s02 .exs-d i:nth-child(2) { animation-delay: .65s; border-color: var(--sb); } .exs-s02 .exs-d i:nth-child(3) { animation-delay: 1.3s; } .exs-s02 .exs-d i:nth-child(4) { animation-delay: 1.95s; border-color: var(--sb); }
.exs-s02 .exs-logo { animation: exs-pop .9s cubic-bezier(.2, .9, .3, 1.2) both, exs-breath 2.2s 1s ease-in-out infinite; }
@keyframes exs-ring { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(4.2); opacity: 0; } }
@keyframes exs-breath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.09); } }
/* s03 Orbit */
.exs-s03 { --sbg: #0a0f1f; }
.exs-s03 .exs-d i { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .16); animation: exs-spin 6s linear infinite; }
.exs-s03 .exs-d i::after { content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--sa); box-shadow: 0 0 14px var(--sa); }
.exs-s03 .exs-d i:nth-child(1) { width: 190px; height: 190px; margin: -95px; animation-duration: 3.2s; } .exs-s03 .exs-d i:nth-child(2) { width: 270px; height: 270px; margin: -135px; animation-duration: 5s; animation-direction: reverse; }
.exs-s03 .exs-d i:nth-child(2)::after { background: var(--sb); box-shadow: 0 0 14px var(--sb); } .exs-s03 .exs-d i:nth-child(3) { width: 350px; height: 350px; margin: -175px; animation-duration: 7s; }
/* s04 Curtain */
.exs-s04 { --sbg: #0b1020; }
.exs-s04 .exs-d i { position: absolute; top: 0; bottom: 0; width: 50.5%; z-index: 4; }
.exs-s04 .exs-d i:nth-child(1) { left: 0; background: linear-gradient(90deg, var(--sa), var(--sb)); animation: exs-curtain-l 1s .7s cubic-bezier(.7, 0, .3, 1) forwards; }
.exs-s04 .exs-d i:nth-child(2) { right: 0; background: linear-gradient(270deg, var(--sa), var(--sb)); animation: exs-curtain-r 1s .7s cubic-bezier(.7, 0, .3, 1) forwards; }
.exs-s04 .exs-core { animation: exs-up .8s .9s ease both; }
@keyframes exs-curtain-l { to { transform: translateX(-102%); } } @keyframes exs-curtain-r { to { transform: translateX(102%); } }
/* s05 Typewriter */
.exs-s05 { --sbg: #0c1222; }
.exs-type { display: inline-block; overflow: hidden; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; border-right: 3px solid var(--sa); max-width: 92vw;
    width: calc(var(--n) * 1ch); animation: exs-typing 1.5s steps(var(--n)) .35s both, exs-caret .7s step-end infinite; }
@keyframes exs-typing { from { width: 0; } to { width: calc(var(--n) * 1ch); } } @keyframes exs-caret { 50% { border-right-color: transparent; } }
/* s06 Ripple (light) */
.exs-s06 .exs-d i { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px; border-radius: 50%; border: 2px solid var(--sa); opacity: 0; animation: exs-ring 2.8s ease-out infinite; }
.exs-s06 .exs-d i:nth-child(2) { animation-delay: .7s; border-color: var(--sb); } .exs-s06 .exs-d i:nth-child(3) { animation-delay: 1.4s; } .exs-s06 .exs-d i:nth-child(4) { animation-delay: 2.1s; border-color: var(--sb); }
/* s07 Neon */
.exs-s07 { --sbg: #05060f; }
.exs-s07 .exs-d svg { position: absolute; left: 50%; top: 50%; width: 230px; height: 230px; margin: -115px; transform: rotate(-90deg); }
.exs-s07 .exs-d circle { fill: none; stroke: var(--sa); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 553; stroke-dashoffset: 553; filter: drop-shadow(0 0 7px var(--sa)) drop-shadow(0 0 16px var(--sb)); animation: exs-draw 1.7s .2s ease-out forwards; }
.exs-s07 .exs-logo { animation: exs-pop .9s .5s cubic-bezier(.2, .9, .3, 1.2) both; filter: drop-shadow(0 0 12px var(--sb)); }
@keyframes exs-draw { to { stroke-dashoffset: 0; } }
/* s08 Zoom */
.exs-s08 { --sbg: radial-gradient(circle at 50% 45%, #1b2750, #050814 70%); }
.exs-s08 .exs-logo { animation: exs-zoom 1.3s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes exs-zoom { from { opacity: 0; transform: scale(2.6); filter: blur(18px); } to { opacity: 1; transform: scale(1); filter: blur(0); } }
/* s09 Particles */
.exs-s09 { --sbg: #07101c; }
.exs-s09 .exs-d i { position: absolute; bottom: -10px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; background: var(--sa); box-shadow: 0 0 9px var(--sa); opacity: 0; animation: exs-rise var(--d) var(--w) linear infinite; }
.exs-s09 .exs-d i:nth-child(even) { background: var(--sb); box-shadow: 0 0 9px var(--sb); }
@keyframes exs-rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .95; } 100% { transform: translateY(-110vh); opacity: 0; } }
/* s10 Liquid */
.exs-s10 { --sbg: #0b1020; }
.exs-s10 .exs-d { overflow: hidden; }
.exs-s10 .exs-d i { position: absolute; left: 50%; top: 100%; width: 260vmax; height: 260vmax; margin-left: -130vmax; border-radius: 41%; background: var(--sa); opacity: .55; animation: exs-lift 2.2s ease-out forwards, exs-spin 11s linear infinite; }
.exs-s10 .exs-d i:nth-child(2) { background: var(--sb); opacity: .5; border-radius: 38%; animation-duration: 2.4s, 8s; animation-direction: normal, reverse; }
@keyframes exs-lift { to { top: 38%; } }
/* s11 Spotlight */
.exs-s11 { --sbg: #04060d; }
.exs-s11 .exs-d i { position: absolute; inset: 0; background: radial-gradient(circle, rgba(255, 255, 255, .26), transparent 62%) no-repeat; background-size: 70vmax 70vmax; animation: exs-spot 2.2s ease-in-out forwards; }
.exs-s11 .exs-core { animation: exs-reveal 2s ease both; }
@keyframes exs-spot { 0% { background-position: -40% 30%; } 60% { background-position: 140% 70%; } 100% { background-position: 50% 50%; } }
@keyframes exs-reveal { 0%, 35% { opacity: .04; filter: blur(4px); } 100% { opacity: 1; filter: blur(0); } }
/* s12 Rise (light) */
.exs-s12 { --sbg: linear-gradient(#ffffff, #eef2ff); }
.exs-rise { display: flex; justify-content: center; flex-wrap: wrap; overflow: hidden; padding: 4px 0; animation: none; }
.exs-rise span { display: inline-block; transform: translateY(120%); opacity: 0; animation: exs-letter .6s calc(var(--i) * .05s + .2s) cubic-bezier(.2, .9, .3, 1.2) forwards; }
@keyframes exs-letter { to { transform: translateY(0); opacity: 1; } }
/* s13 Confetti (light) */
.exs-s13 .exs-d i { position: absolute; left: 50%; top: 46%; width: var(--z); height: calc(var(--z) * .5); margin: -3px; border-radius: 1px; opacity: 0; animation: exs-conf 2s var(--t) ease-out infinite; }
.exs-s13 .exs-d i:nth-child(6n+1) { background: #f97316; } .exs-s13 .exs-d i:nth-child(6n+2) { background: #ec4899; } .exs-s13 .exs-d i:nth-child(6n+3) { background: #6366f1; }
.exs-s13 .exs-d i:nth-child(6n+4) { background: #10b981; } .exs-s13 .exs-d i:nth-child(6n+5) { background: #eab308; } .exs-s13 .exs-d i:nth-child(6n) { background: #06b6d4; }
@keyframes exs-conf { 0% { transform: rotate(var(--a)) translateY(0) rotate(0); opacity: 1; } 100% { transform: rotate(var(--a)) translateY(calc(var(--r) * -1)) rotate(540deg); opacity: 0; } }
/* s14 Diya */
.exs-s14 { --sbg: radial-gradient(circle at 50% 70%, #3b1d07, #120802 75%); --swish: #fcd34d; }
.exs-diyas { position: absolute; left: 0; right: 0; bottom: 17%; display: flex; justify-content: center; gap: clamp(14px, 5vw, 38px); }
.exs-diyas b { position: relative; display: block; width: 46px; height: 40px; }
.exs-diyas b u { position: absolute; bottom: 0; left: 0; right: 0; height: 17px; border-radius: 0 0 46px 46px; background: linear-gradient(#f59e0b, #b45309); box-shadow: 0 6px 18px rgba(245, 158, 11, .35); }
.exs-diyas b i { position: absolute; bottom: 15px; left: 50%; width: 13px; height: 24px; margin-left: -6.5px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: radial-gradient(#fff7c2, #fbbf24 55%, #f97316); box-shadow: 0 0 22px 9px rgba(251, 191, 36, .55); transform-origin: 50% 100%; animation: exs-flame .22s ease-in-out infinite alternate; }
.exs-diyas b:nth-child(2) i { animation-delay: -.07s; } .exs-diyas b:nth-child(3) i { animation-delay: -.14s; } .exs-diyas b:nth-child(4) i { animation-delay: -.05s; } .exs-diyas b:nth-child(5) i { animation-delay: -.11s; }
.exs-s14 .exs-d > i { position: absolute; bottom: 20%; left: var(--x); width: 4px; height: 4px; border-radius: 50%; background: #fde68a; box-shadow: 0 0 8px #fbbf24; opacity: 0; animation: exs-rise var(--d) var(--w) linear infinite; }
@keyframes exs-flame { from { transform: scale(1, .94) rotate(-3deg); } to { transform: scale(.92, 1.06) rotate(3deg); } }
/* s15 Colours (light) */
.exs-s15 .exs-d i { position: absolute; width: 52vmax; height: 52vmax; border-radius: 50%; mix-blend-mode: multiply; opacity: 0; filter: blur(3px); animation: exs-bloom 1.7s ease-out forwards; }
.exs-s15 .exs-d i:nth-child(1) { left: -14vmax; top: -14vmax; background: #ec4899; } .exs-s15 .exs-d i:nth-child(2) { right: -14vmax; top: -10vmax; background: #06b6d4; animation-delay: .2s; }
.exs-s15 .exs-d i:nth-child(3) { left: -12vmax; bottom: -14vmax; background: #facc15; animation-delay: .4s; } .exs-s15 .exs-d i:nth-child(4) { right: -14vmax; bottom: -12vmax; background: #22c55e; animation-delay: .6s; }
.exs-s15 .exs-d i:nth-child(5) { left: 50%; top: 50%; margin: -26vmax; background: #fb923c; animation-delay: .8s; } .exs-s15 .exs-d i:nth-child(6) { left: 50%; top: -12vmax; margin-left: -26vmax; background: #8b5cf6; animation-delay: 1s; }
.exs-s15 .exs-core { background: rgba(255, 255, 255, .86); border-radius: 26px; box-shadow: 0 10px 40px rgba(15, 23, 42, .16); animation: exs-up .8s .5s ease both; }
@keyframes exs-bloom { 0% { transform: scale(.1); opacity: 0; } 100% { transform: scale(1); opacity: .55; } }
/* s16 Snowfall */
.exs-s16 { --sbg: linear-gradient(#0b1a33, #1a2f55); --swish: #bfdbfe; }
.exs-s16 .exs-d i { position: absolute; top: -12px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; background: #fff; opacity: 0; animation: exs-fall var(--d) var(--w) linear infinite; }
@keyframes exs-fall { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: .9; } 100% { transform: translate(24px, 110vh); opacity: .2; } }
/* s17 Fireworks */
.exs-s17 { --sbg: #04050c; }
.exs-burst { position: absolute; left: var(--bx); top: var(--by); }
.exs-burst i { position: absolute; left: -2.5px; top: -2.5px; width: 5px; height: 5px; border-radius: 50%; opacity: 0; transform: rotate(var(--a)) translateY(0); animation: exs-burst 1.9s var(--bd) ease-out infinite; }
.exs-burst i:nth-child(5n+1) { background: #fbbf24; box-shadow: 0 0 8px #fbbf24; } .exs-burst i:nth-child(5n+2) { background: #f472b6; box-shadow: 0 0 8px #f472b6; } .exs-burst i:nth-child(5n+3) { background: #60a5fa; box-shadow: 0 0 8px #60a5fa; }
.exs-burst i:nth-child(5n+4) { background: #34d399; box-shadow: 0 0 8px #34d399; } .exs-burst i:nth-child(5n) { background: #fff; box-shadow: 0 0 8px #fff; }
@keyframes exs-burst { 0% { transform: rotate(var(--a)) translateY(0); opacity: 1; } 70% { opacity: 1; } 100% { transform: rotate(var(--a)) translateY(-92px) scale(.4); opacity: 0; } }
/* s18 Tricolour */
.exs-s18 { --sbg: #fff; --sink: #0b1f4d; --swish: #9a3412; }
.exs-s18 .exs-d i { position: absolute; left: 0; right: 0; height: 34%; transform: scaleX(0); transform-origin: left; animation: exs-band .9s cubic-bezier(.7, 0, .3, 1) forwards; }
.exs-s18 .exs-d i:nth-child(1) { top: 0; background: #ff9933; } .exs-s18 .exs-d i:nth-child(2) { top: 33%; background: #fff; animation-delay: .15s; } .exs-s18 .exs-d i:nth-child(3) { top: 66%; height: 34%; background: #138808; animation-delay: .3s; }
.exs-s18 .exs-d svg { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; margin: -75px; opacity: .2; animation: exs-spin 9s linear infinite; }
.exs-s18 .exs-d circle, .exs-s18 .exs-d line { fill: none; stroke: #0b1f4d; stroke-width: 2; }
.exs-s18 .exs-core { background: rgba(255, 255, 255, .9); border-radius: 26px; box-shadow: 0 10px 40px rgba(11, 31, 77, .18); animation: exs-up .8s .5s ease both; }
.exs-s18 .exs-bar { background: rgba(11, 31, 77, .2); }
@keyframes exs-band { to { transform: scaleX(1); } }
/* s19 Hearts */
.exs-s19 { --sbg: linear-gradient(#3b0a2a, #7a1b4f); --sa: #fb7185; --sb: #f472b6; --swish: #fecdd3; }
.exs-s19 .exs-d b { position: absolute; bottom: -40px; left: var(--x); width: var(--s); height: var(--s); background: var(--sa); transform: rotate(-45deg); opacity: 0; animation: exs-heart var(--d) var(--w) linear infinite; }
.exs-s19 .exs-d b::before, .exs-s19 .exs-d b::after { content: ""; position: absolute; width: 100%; height: 100%; border-radius: 50%; background: inherit; }
.exs-s19 .exs-d b::before { top: -50%; left: 0; } .exs-s19 .exs-d b::after { left: 50%; top: 0; }
.exs-s19 .exs-d b:nth-child(even) { background: var(--sb); }
@keyframes exs-heart { 0% { transform: translateY(0) rotate(-45deg); opacity: 0; } 15% { opacity: .85; } 100% { transform: translateY(-115vh) rotate(-45deg); opacity: 0; } }
/* s20 Crescent */
.exs-s20 { --sbg: #071f2d; --sa: #facc15; --sb: #2dd4bf; --swish: #fde68a; }
.exs-moon { position: absolute; left: 50%; top: 20%; width: 96px; height: 96px; margin-left: -48px; animation: exs-pop 1s .2s cubic-bezier(.2, .9, .3, 1.2) both; }
.exs-moon i:nth-child(1) { position: absolute; inset: 0; border-radius: 50%; background: #facc15; box-shadow: 0 0 44px rgba(250, 204, 21, .55); }
.exs-moon i:nth-child(2) { position: absolute; left: 24px; top: -8px; width: 88px; height: 88px; border-radius: 50%; background: #071f2d; }
.exs-s20 .exs-d > i { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fde68a; animation: exs-twinkle 1.8s var(--w) ease-in-out infinite; }
@keyframes exs-twinkle { 0%, 100% { opacity: .2; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.3); } }

@media (max-height: 520px) { .exs-logo { width: 64px; height: 64px; } .exs-core { gap: 6px; } }
