/* Animated episode thumbnails. Sizes use container units so they scale from cards to the phone. */
.scene { position: absolute; inset: 0; overflow: hidden; container-type: size; font-family: "Montserrat", sans-serif; }
.scene * { position: absolute; display: block; font-style: normal; }
.paused .scene *, .paused .scene { animation-play-state: paused !important; }
@keyframes spinz { to { transform: rotate(360deg); } }
@keyframes fade { 50% { opacity: .25; } }

.star { width: var(--s); height: var(--s); border-radius: 50%; background: #fff; animation: twinkle 3s var(--d) ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .2; transform: scale(.6); } }
.moon { width: 22cqw; aspect-ratio: 1; border-radius: 50%; top: 9%; right: 12%; background: radial-gradient(circle at 35% 35%, #fff, #dfe4ff 60%, #b8c0ee); box-shadow: 0 0 30px 6px rgba(200,210,255,.35); }
.rain { inset: -20% 0 0 0; background: repeating-linear-gradient(105deg, transparent 0 9px, rgba(255,255,255,.18) 9px 10px); background-size: 100% 40px; animation: rain .6s linear infinite; }
.rain.heavy { background: repeating-linear-gradient(110deg, transparent 0 5px, rgba(220,230,255,.28) 5px 6px); background-size: 100% 30px; animation-duration: .35s; }
@keyframes rain { to { background-position: -10px 40px; } }

/* lighthouse */
.sc-lighthouse { background: linear-gradient(180deg, #070b26, #1a2468 55%, #2c3d8f 70%, #0a1033); }
.sc-lighthouse .tower { left: 0; bottom: 8%; width: 100%; height: 62%; }
.sc-lighthouse .lamp { fill: #fff6c4; animation: lamp 4s var(--lag) ease-in-out infinite; }
@keyframes lamp { 50% { fill: #ffd86b; } }
.sc-lighthouse .beam { left: 50%; top: 42.5%; width: 160cqw; height: 22cqw; margin-top: -11cqw; transform-origin: 0 50%; background: linear-gradient(90deg, rgba(255,246,196,.85), transparent 80%); clip-path: polygon(0 45%, 100% 0, 100% 100%, 0 55%); animation: sweep 4s var(--lag) ease-in-out infinite; }
@keyframes sweep { 0% { transform: scaleX(1); } 45% { transform: scaleX(.05); opacity: .2; } 50% { transform: scaleX(-.05); opacity: .2; } 95%, 100% { transform: scaleX(-1); } }
.sc-lighthouse .wave { left: -50%; width: 200%; height: 14%; bottom: 0; background: radial-gradient(ellipse 12% 60% at 50% 100%, var(--c) 60%, transparent 62%) 0 0 / 25% 100% repeat-x; animation: drift 6s linear infinite; }
.sc-lighthouse .w2 { bottom: -4%; filter: brightness(.55); animation-duration: 4s; animation-direction: reverse; }
@keyframes drift { to { transform: translateX(25%); } }

/* signal */
.sc-signal { background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--c) 45%, #050816), #03040c 75%); }
.sc-signal .mast { left: 0; bottom: 0; width: 100%; height: 70%; }
.sc-signal .tip { fill: #ff4040; animation: fade 1s steps(1) infinite; }
.sc-signal .ring { left: 50%; top: 31%; width: 20cqw; height: 20cqw; margin: -10cqw; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--c) 60%, #fff); animation: ringout 3s linear infinite; }
@keyframes ringout { from { transform: scale(.2); opacity: 1; } to { transform: scale(6); opacity: 0; } }

/* sunset (low tide) */
.sc-sunset { background: linear-gradient(180deg, #2a0f3d, #c2410c 50%, #fb923c 58%, #3b1d12 59%, #1c0c08); }
.sc-sunset .sun { width: 50cqw; aspect-ratio: 1; left: 25cqw; top: 40%; border-radius: 50%; background: radial-gradient(#fff7d6, #fdba74 55%, #f97316); box-shadow: 0 0 60px 20px rgba(251,146,60,.5); animation: sink 10s ease-in-out infinite alternate; }
@keyframes sink { to { transform: translateY(18%); } }
.sc-sunset .sea { left: 0; right: 0; top: 59%; bottom: 0; background: linear-gradient(#5b2a12, #120604); }
.sc-sunset .refl { left: 30%; right: 30%; top: 60%; height: 30%; background: repeating-linear-gradient(180deg, rgba(253,186,116,.8) 0 3px, transparent 3px 9px); -webkit-mask: linear-gradient(#000, transparent); mask: linear-gradient(#000, transparent); animation: shimmer 2s ease-in-out infinite alternate; }
@keyframes shimmer { to { transform: scaleX(1.4); opacity: .6; } }
.sc-sunset .gull, .sc-sunrise .bird { width: 12px; height: 6px; top: 22%; left: -10%; border: 2px solid #1a0a05; border-color: #1a0a05 transparent transparent; border-radius: 50% 50% 0 0; animation: fly 7s linear infinite; }
.sc-sunset .g2 { top: 30%; animation-delay: -3s; transform: scale(.7); }
@keyframes fly { 0% { left: -10%; } 100% { left: 110%; } }

/* deep */
.sc-deep { background: linear-gradient(180deg, #0e7490, #083344 55%, #020617); }
.sc-deep .ray { top: -10%; width: 12%; height: 80%; background: linear-gradient(rgba(255,255,255,.35), transparent); transform: skewX(-12deg); animation: sway 5s ease-in-out infinite alternate; }
@keyframes sway { to { transform: skewX(12deg); opacity: .4; } }
.sc-deep .bub { bottom: -5%; width: var(--s); height: var(--s); border-radius: 50%; border: 1.5px solid rgba(255,255,255,.7); animation: bubrise 5s linear infinite; }
@keyframes bubrise { to { transform: translate(8px, -115cqh); } }
.sc-deep .diver { width: 55%; left: 22%; top: 44%; animation: bob 4s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translate(-6%, 8%) rotate(-4deg); } }
.sc-deep .kelp { bottom: 0; width: 6px; height: 40%; border-radius: 6px; background: #022c22; transform-origin: bottom; animation: kelp 3s ease-in-out infinite alternate; }
.sc-deep .k1 { left: 15%; } .sc-deep .k2 { left: 78%; height: 55%; animation-delay: -1.5s; }
@keyframes kelp { to { transform: rotate(10deg); } }

/* tv static */
.sc-tvstatic { background: #222; }
.sc-tvstatic .noise { inset: -50%; background: repeating-radial-gradient(circle at 17% 32%, #fff 0 1px, #000 1px 2px, #888 2px 3px); opacity: .55; animation: noise .25s steps(4) infinite; }
@keyframes noise { 25% { transform: translate(-5%, 3%); } 50% { transform: translate(4%, -6%); } 75% { transform: translate(-3%, 5%); } }
.sc-tvstatic .roll { left: 0; right: 0; height: 18%; background: linear-gradient(transparent, rgba(255,255,255,.35), transparent); animation: roll 2.5s linear infinite; }
@keyframes roll { from { top: -20%; } to { top: 110%; } }
.sc-tvstatic .ns { inset: 0; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 9cqw; letter-spacing: .1em; text-shadow: 2px 0 var(--c), -2px 0 #00e5ff; animation: fade 1.2s steps(1) infinite; }
.sc-tvstatic .vig { inset: 0; background: radial-gradient(transparent 40%, rgba(0,0,0,.8)); }

/* storm */
.sc-storm { background: linear-gradient(180deg, #0b0f1a, #1e293b 60%, #0f172a); }
.sc-storm .clouds { left: -20%; right: -20%; top: -5%; height: 40%; background: radial-gradient(ellipse 30% 50% at 20% 60%, #334155, transparent 70%), radial-gradient(ellipse 30% 50% at 60% 40%, #475569, transparent 70%), radial-gradient(ellipse 25% 45% at 90% 60%, #334155, transparent 70%); animation: drift2 12s linear infinite alternate; }
@keyframes drift2 { to { transform: translateX(10%); } }
.sc-storm .flash { inset: 0; background: #fff; opacity: 0; animation: flash 5s var(--lag) infinite; }
.sc-storm .bolt { width: 26%; left: 40%; top: 18%; opacity: 0; filter: drop-shadow(0 0 8px #bfdbfe); animation: flash 5s var(--lag) infinite; }
@keyframes flash { 0%, 80%, 86%, 100% { opacity: 0; } 81%, 83% { opacity: .9; } 82% { opacity: .2; } }
.sc-storm .ship { width: 60%; left: 20%; bottom: 14%; animation: rock 3s ease-in-out infinite alternate; }
@keyframes rock { from { transform: rotate(-6deg) translateY(0); } to { transform: rotate(5deg) translateY(6%); } }
.sc-storm .swell { left: -20%; right: -20%; bottom: 0; height: 18%; background: radial-gradient(ellipse 15% 60% at 50% 100%, #0f172a 60%, transparent 62%) 0 0 / 20% 100% repeat-x; animation: drift 3s linear infinite; }

/* sunrise (mountains) */
.sc-sunrise { background: linear-gradient(180deg, #fde68a, #fdba74 40%, #f472b6 70%); }
.sc-sunrise .sun { width: 44cqw; aspect-ratio: 1; left: 28cqw; top: 45%; border-radius: 50%; background: #fff7ed; box-shadow: 0 0 60px 20px rgba(255,255,255,.6); animation: up 9s ease-out infinite; }
@keyframes up { from { transform: translateY(40%); } to { transform: translateY(-30%); } }
.sc-sunrise .hill { left: -20%; right: -20%; border-radius: 50% 50% 0 0; }
.sc-sunrise .h1 { bottom: 10%; height: 40%; background: color-mix(in srgb, var(--c) 40%, #9d174d); left: -40%; right: 20%; }
.sc-sunrise .h2 { bottom: 0; height: 32%; background: color-mix(in srgb, var(--c) 30%, #701a40); left: 10%; right: -40%; }
.sc-sunrise .h3 { bottom: -8%; height: 22%; background: #3b0a24; }
.sc-sunrise .bird { border-color: #3b0a24 transparent transparent; animation-duration: 9s; }

/* clock */
.sc-clock { background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--c) 40%, #0b0718), #05030c 75%); }
.sc-clock .face { left: 14%; right: 14%; aspect-ratio: 1; top: 22%; border-radius: 50%; border: 3px solid rgba(255,255,255,.85); box-shadow: 0 0 40px color-mix(in srgb, var(--c) 60%, transparent); }
.sc-clock .tick { left: 50%; top: 0; width: 2px; height: 100%; margin-left: -1px; background: linear-gradient(#fff 0 7%, transparent 7% 93%, #fff 93%); }
.sc-clock .hand { left: 50%; bottom: 50%; transform-origin: 50% 100%; border-radius: 3px; background: #fff; }
.sc-clock .hr { width: 4px; height: 24%; margin-left: -2px; transform: rotate(96deg); }
.sc-clock .mn { width: 3px; height: 38%; margin-left: -1.5px; animation: hand 8s linear infinite; }
.sc-clock .sc { width: 1.5px; height: 42%; margin-left: -.75px; background: var(--c); animation: hand 2s steps(60) infinite; }
@keyframes hand { from { transform: rotate(72deg); } to { transform: rotate(432deg); } }
.sc-clock .pin { left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--c); }
.sc-clock .dig { left: 0; right: 0; top: 76%; text-align: center; color: #ff4d4d; font-weight: 900; font-size: 13cqw; letter-spacing: .05em; text-shadow: 0 0 12px #ff4d4d; animation: fade 1s steps(1) infinite; }

/* city + city at dawn */
.sc-city { background: linear-gradient(180deg, #0b0418, color-mix(in srgb, var(--c) 55%, #0b0418) 70%, #ff9a5a); }
.sc-city .moon { width: 16cqw; top: 12%; right: 18%; background: radial-gradient(circle at 35% 35%, #fff, #ffd9c2); }
.sky { inset: 0; width: 100%; height: 100%; }
.sky .bldg rect { fill: #0a0612; }
.sky .win rect { fill: #ffd27a; animation: flick 6s steps(1) infinite; }
@keyframes flick { 61%, 80% { opacity: .1; } }
.sc-city .car { bottom: 4%; left: -30%; width: 26%; height: 2px; background: linear-gradient(90deg, transparent, #ff3b3b); box-shadow: 0 0 8px 2px rgba(255,59,59,.6); animation: car 3.2s var(--lag) linear infinite; }
.sc-city .c2 { bottom: 7%; background: linear-gradient(270deg, transparent, #fff6d0); animation-direction: reverse; animation-duration: 4.4s; }
@keyframes car { to { left: 110%; } }
.sc-citydawn { background: linear-gradient(180deg, #1e1b4b, #7c3aed 40%, #fb7185 70%, #fdba74); }
.sc-citydawn .sun { width: 40cqw; aspect-ratio: 1; left: 30cqw; top: 52%; border-radius: 50%; background: #fff1d6; box-shadow: 0 0 50px 20px rgba(255,200,150,.6); animation: up 10s ease-out infinite; }
.sc-citydawn .sky .bldg rect { fill: #1a0b2e; }
.sc-citydawn .mist { left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(transparent, rgba(255,200,220,.4)); animation: fade 6s ease-in-out infinite; }

/* eye */
.sc-eye { background: radial-gradient(circle, #1a0505, #000 70%); }
.sc-eye .eyeball { left: 8%; right: 8%; top: 36%; height: 26%; border-radius: 50% / 100% 100% 100% 100%; background: radial-gradient(#fff, #e8d8d8); overflow: hidden; clip-path: ellipse(50% 50% at 50% 50%); }
.sc-eye .iris { width: 34%; aspect-ratio: 1; left: 33%; top: 50%; margin-top: -17%; border-radius: 50%; background: radial-gradient(circle, #000 0 30%, var(--c) 32%, color-mix(in srgb, var(--c) 40%, #000) 70%); animation: look 5s ease-in-out infinite; }
.sc-eye .pupil { display: none; }
@keyframes look { 0%, 30% { transform: translateX(0); } 40%, 60% { transform: translateX(-70%); } 70%, 90% { transform: translateX(70%); } }
.sc-eye .lid { inset: 0; background: #0a0202; transform: scaleY(0); transform-origin: top; animation: blink 4s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(0); } 95% { transform: scaleY(1); } }
.sc-eye .mirror { left: 10%; right: 10%; top: 30%; height: 38%; border: 3px solid #2a2a2a; border-radius: 14px; }

/* road */
.sc-road { background: linear-gradient(180deg, #050510, #1a0b2e 45%, color-mix(in srgb, var(--c) 60%, #000) 50%); }
.sc-road .glow { left: 20%; right: 20%; top: 40%; height: 14%; border-radius: 50%; background: radial-gradient(color-mix(in srgb, var(--c) 80%, #fff), transparent 70%); animation: fade 3s ease-in-out infinite; }
.sc-road .asphalt { left: -60%; right: -60%; top: 50%; bottom: 0; background: #0b0b12; clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); }
.sc-road .lane { left: 49%; width: 2%; top: 50%; bottom: 0; background: repeating-linear-gradient(180deg, #ffd166 0 14px, transparent 14px 32px); clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); animation: lane .5s linear infinite; }
@keyframes lane { to { background-position: 0 32px; } }
.sc-road .pole { bottom: 50%; width: 2px; height: 10%; background: #888; animation: pole 1.4s linear infinite; }
.sc-road .p1 { left: 40%; transform-origin: bottom; } .sc-road .p2 { left: 60%; animation-delay: -.7s; }
@keyframes pole { from { transform: translate(0,0) scale(.3); opacity: 0; } to { transform: translate(var(--x, -400%), 300%) scale(4); opacity: 1; } }
.sc-road .p2 { --x: 400%; }

/* counter */
.sc-counter { background: linear-gradient(160deg, #0a0a0a, color-mix(in srgb, var(--c) 35%, #0a0a0a)); }
.sc-counter .digits { left: 6%; right: 6%; top: 38%; height: 16cqw; display: flex; justify-content: center; gap: 2%; font-weight: 900; font-size: 15cqw; line-height: 16cqw; color: #7CFFB2; text-shadow: 0 0 12px rgba(124,255,178,.6); }
.sc-counter .digits span { position: relative; height: 16cqw; width: 11cqw; overflow: hidden; background: rgba(255,255,255,.06); border-radius: 6px; }
.sc-counter .digits span b { position: relative; display: block; text-align: center; animation: odo2 var(--dur) steps(10) var(--del) infinite; }
@keyframes odo2 { to { transform: translateY(-1000%); } }
.sc-counter .unit { left: 0; right: 0; top: 62%; text-align: center; color: rgba(255,255,255,.5); font-weight: 800; font-size: 5cqw; letter-spacing: .2em; }

/* neon */
.sc-neon { background: linear-gradient(180deg, #12002b, #4b0a6b 45%, var(--c) 60%, #12002b 61%); }
.sc-neon .sun { width: 60cqw; aspect-ratio: 1; left: 20cqw; top: 28%; border-radius: 50%; background: linear-gradient(#ffe259, var(--c)); -webkit-mask: repeating-linear-gradient(180deg, #000 0 8px, transparent 8px 11px); mask: repeating-linear-gradient(180deg, #000 0 8px, transparent 8px 11px); }
.sc-neon .grid { left: -50%; right: -50%; bottom: 0; height: 40%; transform-origin: 50% 0; transform: perspective(120px) rotateX(60deg); background: linear-gradient(90deg, rgba(255,90,200,.7) 1px, transparent 1px) 0 0 / 12% 100%, linear-gradient(0deg, rgba(255,90,200,.7) 1px, transparent 1px) 0 0 / 100% 18px; animation: grid 1s linear infinite; }
@keyframes grid { to { background-position: 0 0, 0 18px; } }
.sc-neon .haze { left: 0; right: 0; top: 55%; height: 10%; background: linear-gradient(transparent, rgba(255,90,200,.35), transparent); }

/* ecg */
.sc-ecg { background: #020a06; }
.sc-ecg .mgrid { inset: 0; background: linear-gradient(rgba(34,197,94,.12) 1px, transparent 1px) 0 0 / 100% 12px, linear-gradient(90deg, rgba(34,197,94,.12) 1px, transparent 1px) 0 0 / 12px 100%; }
.sc-ecg .line { left: 0; top: 30%; width: 100%; height: 30%; }
.sc-ecg .line path { fill: none; stroke: #22c55e; stroke-width: 2.5; stroke-dasharray: .35 .65; filter: drop-shadow(0 0 4px #22c55e); animation: ecg 2s linear infinite; }
@keyframes ecg { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.sc-ecg .o2 { left: 0; right: 0; top: 66%; text-align: center; color: #ef4444; font-weight: 900; font-size: 14cqw; text-shadow: 0 0 14px #ef4444; animation: fade .8s steps(1) infinite; }
.sc-ecg .alarm { inset: 0; box-shadow: inset 0 0 40px rgba(239,68,68,.6); animation: fade .8s steps(1) infinite; }

/* orbit */
.sc-orbit { background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--c) 30%, #02030a), #02030a 70%); }
.sc-orbit .sys { left: 50%; top: 45%; width: 0; height: 0; }
.sc-orbit .planet { width: 46cqw; aspect-ratio: 1; left: -23cqw; top: -23cqw; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff 0, color-mix(in srgb, var(--c) 70%, #fff) 18%, var(--c) 45%, #050a24 100%); box-shadow: 0 0 40px 4px color-mix(in srgb, var(--c) 50%, transparent); }
.sc-orbit .ring { width: 86cqw; height: 86cqw; left: -43cqw; top: -43cqw; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); border-top-color: transparent; animation: ospin var(--t) linear infinite; transform: rotateX(74deg); }
@keyframes ospin { to { transform: rotateX(74deg) rotateZ(360deg); } }
.sc-orbit .sat { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 3px #fff; left: -3.5px; top: -3.5px; animation: orbit 5s var(--lag) linear infinite; }
@keyframes orbit { from { transform: rotate(var(--o)) translateX(40cqw); } to { transform: rotate(calc(var(--o) + 360deg)) translateX(40cqw); } }
.sc-orbit .streak { width: 30%; height: 1px; background: linear-gradient(90deg, #fff, transparent); transform: rotate(-25deg); animation: shoot 5s var(--lag) ease-in infinite; }
@keyframes shoot { 0%, 70% { left: 110%; top: 10%; opacity: 0; } 72% { opacity: 1; } 100% { left: -40%; top: 40%; opacity: 0; } }

/* tunnel (airlock) */
.sc-tunnel { background: radial-gradient(circle, color-mix(in srgb, var(--c) 50%, #000), #000 60%); }
.sc-tunnel .hoop { left: 50%; top: 50%; width: 30cqw; height: 30cqw; margin: -15cqw; border-radius: 22%; border: 3px solid color-mix(in srgb, var(--c) 70%, #fff); animation: hoop 3.5s linear infinite; }
@keyframes hoop { from { transform: scale(.05) rotate(0); opacity: 0; } 20% { opacity: 1; } to { transform: scale(5) rotate(45deg); opacity: 0; } }
.sc-tunnel .door { left: 50%; top: 50%; width: 10cqw; height: 10cqw; margin: -5cqw; border-radius: 50%; background: #fff; box-shadow: 0 0 30px 10px #fff; animation: fade 1.5s ease-in-out infinite; }

/* warp */
.sc-warp { background: radial-gradient(circle, #0b1026, #000 70%); }
.sc-warp .w { left: 50%; top: 50%; width: 30%; height: 1.5px; transform-origin: 0 50%; background: linear-gradient(90deg, transparent, #fff); animation: warp 1s linear infinite; }
@keyframes warp { from { transform: rotate(var(--a)) translateX(0) scaleX(.1); opacity: 0; } 30% { opacity: 1; } to { transform: rotate(var(--a)) translateX(120%) scaleX(1); opacity: 0; } }

/* dish */
.sc-dish { background: linear-gradient(180deg, #000, #0b1a33); }
.sc-dish .earth { width: 70cqw; aspect-ratio: 1; right: -20cqw; top: 6%; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #7dd3fc, #0369a1 50%, #082f49); box-shadow: 0 0 40px rgba(125,211,252,.5); animation: spinz 60s linear infinite; }
.sc-dish .dsh { width: 70%; left: 6%; bottom: 4%; }
.sc-dish .wav { left: 52%; top: 46%; width: 30cqw; height: 30cqw; border: 3px solid transparent; border-top-color: var(--c); border-right-color: var(--c); border-radius: 50%; transform: rotate(-15deg); animation: wav 1.8s ease-out infinite; }
@keyframes wav { from { transform: rotate(-15deg) scale(.2); opacity: 1; } to { transform: rotate(-15deg) translate(30%, -30%) scale(1.4); opacity: 0; } }

/* eclipse */
.sc-eclipse { background: #000; }
.sc-eclipse .corona { left: 50%; top: 42%; width: 70cqw; height: 70cqw; margin: -35cqw; border-radius: 50%; background: radial-gradient(circle, #fff 0 36%, color-mix(in srgb, var(--c) 70%, #fff) 38%, transparent 70%); filter: blur(4px); animation: corona 4s ease-in-out infinite alternate; }
@keyframes corona { to { transform: scale(1.12) rotate(20deg); opacity: .8; } }
.sc-eclipse .disk { left: 50%; top: 42%; width: 50cqw; height: 50cqw; margin: -25cqw; border-radius: 50%; background: #000; }
.sc-eclipse .flare { left: 50%; top: 42%; width: 6cqw; height: 6cqw; margin: -3cqw 0 0 14cqw; border-radius: 50%; background: #fff; box-shadow: 0 0 20px 8px #fff; animation: fade 3s ease-in-out infinite; }

/* meteor (re-entry) */
.sc-meteor { background: linear-gradient(180deg, #05010f, #1e0b2b 70%, #3b0d0d); }
.sc-meteor .fire { width: 12cqw; height: 12cqw; border-radius: 50%; background: radial-gradient(#fff, #fde047 30%, #f97316 60%, transparent 70%); box-shadow: 0 0 30px 10px rgba(249,115,22,.7); animation: fall 3s ease-in infinite; }
.sc-meteor .fire::after { content: ""; position: absolute; left: 50%; top: 50%; width: 70cqw; height: 5cqw; margin-top: -2.5cqw; transform-origin: 0 50%; transform: rotate(-125deg); background: linear-gradient(90deg, rgba(249,115,22,.9), transparent); border-radius: 50%; }
@keyframes fall { from { left: 90%; top: -10%; } to { left: 20%; top: 80%; } }
.sc-meteor .horizon { left: -30%; right: -30%; bottom: -60%; height: 80%; border-radius: 50%; background: radial-gradient(circle at 50% 0, color-mix(in srgb, var(--c) 60%, #1e3a8a), #020617 60%); box-shadow: 0 -6px 30px color-mix(in srgb, var(--c) 70%, transparent); }

/* notifications */
.sc-notif { background: linear-gradient(160deg, color-mix(in srgb, var(--c) 70%, #1a0010), #0d0007); }
.sc-notif .glowbg { inset: 0; background: radial-gradient(circle at 50% 30%, rgba(255,255,255,.18), transparent 60%); }
.sc-notif .pill { left: 8%; right: 8%; top: 70%; padding: 3.5cqw 4cqw 3.5cqw 13cqw; border-radius: 4cqw; background: rgba(255,255,255,.92); color: #111; font-weight: 800; font-size: 5.2cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: pop 6s ease-in-out infinite; opacity: 0; }
.sc-notif .pill b { left: 3cqw; top: 50%; width: 7cqw; height: 7cqw; margin-top: -3.5cqw; border-radius: 50%; background: var(--c); }
@keyframes pop { 0% { transform: translateY(40%) scale(.9); opacity: 0; } 8% { transform: none; opacity: 1; } 25% { transform: translateY(-140%); opacity: 1; } 45% { transform: translateY(-280%); opacity: .6; } 60%, 100% { transform: translateY(-420%); opacity: 0; } }

/* typing (seen) */
.sc-typing { background: #0b0b0f; }
.sc-typing .bub2 { padding: 3cqw 5cqw; border-radius: 5cqw; font-weight: 700; font-size: 6cqw; animation: inq 6s ease infinite both; }
.sc-typing .them { left: 8%; top: 24%; background: #2a2a33; color: #fff; }
.sc-typing .me { right: 8%; top: 40%; background: var(--c); color: #fff; animation-delay: .6s; }
@keyframes inq { 0% { opacity: 0; transform: translateY(20%); } 10%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.sc-typing .dots { left: 8%; top: 58%; padding: 3.5cqw 4cqw; border-radius: 5cqw; background: #2a2a33; display: flex; gap: 1.6cqw; }
.sc-typing .dots b { position: relative; width: 2.4cqw; height: 2.4cqw; border-radius: 50%; background: #aaa; animation: dot 1s ease-in-out infinite; }
.sc-typing .dots b:nth-child(2) { animation-delay: .15s; } .sc-typing .dots b:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { transform: translateY(-60%); background: #fff; } }
.sc-typing .seen { right: 9%; top: 52%; color: #888; font-size: 4.5cqw; font-weight: 700; }

/* glitch */
.sc-glitch { background: #07070a; }
.sc-glitch .scan { inset: 0; z-index: 3; background: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px); animation: scan 8s linear infinite; }
@keyframes scan { to { background-position: 0 100px; } }
.sc-glitch .gw { inset: 0; display: grid; place-items: center; font-weight: 900; font-size: 30cqw; letter-spacing: -.06em; color: #fff; }
.sc-glitch .gw span { position: relative; animation: jitter 2.4s var(--lag) steps(1) infinite; }
.sc-glitch .gw::before, .sc-glitch .gw::after { content: attr(data-t); position: absolute; inset: 0; display: grid; place-items: center; mix-blend-mode: screen; }
.sc-glitch .gw::before { color: var(--c); animation: rgb1 2.4s var(--lag) steps(1) infinite; }
.sc-glitch .gw::after { color: #00e5ff; animation: rgb2 2.4s var(--lag) steps(1) infinite; }
@keyframes jitter { 90% { transform: translate(-3px, 1px) skewX(10deg); } 94% { transform: translate(3px, -1px); } }
@keyframes rgb1 { 0%, 100% { transform: translate(-2px, 0); } 30% { transform: translate(-5px, 2px); clip-path: inset(20% 0 50% 0); } 60% { transform: translate(4px, -2px); clip-path: inset(60% 0 10% 0); } }
@keyframes rgb2 { 0%, 100% { transform: translate(2px, 0); } 40% { transform: translate(5px, -1px); clip-path: inset(10% 0 70% 0); } 75% { transform: translate(-4px, 2px); clip-path: inset(45% 0 30% 0); } }
.sc-glitch .bar { left: 0; right: 0; height: 6%; background: var(--c); mix-blend-mode: difference; opacity: 0; animation: bar 3s var(--lag) steps(1) infinite; }
.sc-glitch .b1 { top: 22%; } .sc-glitch .b2 { top: 58%; height: 3%; background: #00e5ff; animation-delay: -1.1s; } .sc-glitch .b3 { top: 74%; height: 9%; animation-delay: -2.2s; }
@keyframes bar { 85%, 92% { opacity: .9; transform: translateX(-8%); } 93% { opacity: 0; } }
.sc-glitch .rec { top: 9%; right: 12%; width: 8px; height: 8px; border-radius: 50%; background: #ff2e2e; animation: fade 1s steps(1) infinite; }

/* hearts */
.sc-hearts { background: linear-gradient(180deg, #2b0015, color-mix(in srgb, var(--c) 60%, #2b0015)); }
.sc-hearts .h { bottom: -10%; color: #fff; font-size: var(--s); text-shadow: 0 0 10px var(--c); animation: hrise 4s ease-in infinite; }
@keyframes hrise { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(10px, -110cqh) scale(1.2); opacity: 0; } }
.sc-hearts .fcount { left: 0; right: 0; top: 40%; text-align: center; color: #fff; font-weight: 900; font-size: 13cqw; letter-spacing: -.03em; animation: beat 1s ease-in-out infinite; }
@keyframes beat { 50% { transform: scale(1.08); } }

/* live */
.sc-live { background: linear-gradient(160deg, #111, #2a0a0f); }
.sc-live .face2 { left: 30%; right: 30%; top: 30%; aspect-ratio: .8; border-radius: 50% 50% 45% 45%; background: radial-gradient(circle at 50% 40%, #3a3a3a, #111); filter: blur(1px); animation: glitchy 3s steps(1) infinite; }
.sc-live .face2::after { content: ""; position: absolute; left: -40%; right: -40%; top: 105%; height: 80%; border-radius: 50% 50% 0 0; background: #1a1a1a; }
@keyframes glitchy { 80% { transform: translateX(6%) skewX(8deg); filter: hue-rotate(90deg) blur(1px); } 84% { transform: none; } }
.sc-live .corner { width: 10%; aspect-ratio: 1; border: 3px solid #fff; }
.sc-live .c1 { left: 8%; top: 18%; border-right: 0; border-bottom: 0; } .sc-live .c2 { right: 8%; top: 18%; border-left: 0; border-bottom: 0; }
.sc-live .c3 { left: 8%; bottom: 26%; border-right: 0; border-top: 0; } .sc-live .c4 { right: 8%; bottom: 26%; border-left: 0; border-top: 0; }
.sc-live .badge { left: 8%; top: 8%; padding: 1cqw 3cqw; border-radius: 1.5cqw; background: #ef4444; color: #fff; font-weight: 900; font-size: 5cqw; animation: fade 1.2s steps(1) infinite; }
.sc-live .viewers { left: 32%; top: 8%; padding: 1cqw 3cqw; border-radius: 1.5cqw; background: rgba(0,0,0,.6); color: #fff; font-weight: 800; font-size: 5cqw; }

/* matrix */
.sc-matrix { background: #000; }
.sc-matrix .col { top: -100%; width: 8%; color: var(--c); font-weight: 800; font-size: 6.5cqw; line-height: 1.05; text-align: center; word-break: break-all; text-shadow: 0 0 8px var(--c); -webkit-mask: linear-gradient(transparent, #000 70%, #fff); mask: linear-gradient(transparent, #000 70%); animation: mfall 3s linear infinite; }
@keyframes mfall { to { top: 110%; } }

/* boot */
.sc-boot { background: radial-gradient(circle, color-mix(in srgb, var(--c) 25%, #050505), #000 70%); }
.sc-boot .spinner { left: 50%; top: 40%; width: 34cqw; height: 34cqw; margin: -17cqw; border-radius: 50%; border: 4px solid rgba(255,255,255,.1); border-top-color: var(--c); animation: spinz 1s linear infinite; }
.sc-boot .logo { left: 50%; top: 40%; transform: translate(-50%, -50%); color: #fff; font-size: 12cqw; }
.sc-boot .pbar { left: 18%; right: 18%; top: 64%; height: 2cqw; border-radius: 2cqw; background: rgba(255,255,255,.12); overflow: hidden; }
.sc-boot .pbar b { left: 0; top: 0; bottom: 0; width: 100%; background: var(--c); transform-origin: left; animation: load 3s ease-in-out infinite; }
@keyframes load { from { transform: scaleX(0); } 80%, to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) { .scene *, .scene { animation: none !important; } }
