/* Story intros (js/introstory.js). Everything inside a scene is placed from the centre in --u units
   (1% of a phone's width, capped on wide screens), so the same scene works on phones, tablets and TVs. */
.story { position: fixed; inset: 0; z-index: 10000; overflow: hidden; background: #3D8FE0; cursor: pointer; transition: opacity 0.45s; font-family: "Lilita One", var(--title, sans-serif); }
.story.out { opacity: 0; pointer-events: none; }
.story .sskip { position: absolute; z-index: 50; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); padding: 9px 18px; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 16px/1 "Fredoka", var(--head, sans-serif); color: #10357E; background: rgba(255, 255, 255, 0.92); box-shadow: 0 4px 0 rgba(16, 53, 126, 0.45); }
.story .sscene { position: absolute; inset: 0; overflow: hidden; background-size: cover; background-position: center; }
.story .sset { position: absolute; top: 0; bottom: 0; left: 50%; width: min(100vw, 100vh); transform: translateX(-50%); container-type: size; --u: min(1cqw, 0.55cqh); }

/* backgrounds */
.story .bg-sky { background: radial-gradient(circle at 50% 42%, #DDF1FF 0%, #8FCBFF 45%, #3D8FE0 100%); }
.story .bg-lilac { background: radial-gradient(circle at 50% 40%, #F6EEFF 0%, #C9B2FF 45%, #7E5BD8 100%); }
.story .bg-room { background: linear-gradient(transparent 66%, #B5703A 66%, #8A4E1F), repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0 26px, transparent 26px 52px), #FFD49A; }
.story .bg-news { background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 40px), repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 40px),
  radial-gradient(circle at 50% 30%, #2C5BD8, #10357E 60%, #071A45); }
.story .srays { position: absolute; inset: -60%; background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, 0.4) 0 9deg, transparent 9deg 18deg); animation: sSpin 9s linear infinite; }

/* swipes between scenes */
.story .tin-left { animation: sInL 0.6s cubic-bezier(0.7, 0, 0.3, 1) both; }
.story .tout-left { animation: sOutL 0.6s cubic-bezier(0.7, 0, 0.3, 1) forwards; }
.story .tin-up { animation: sInU 0.6s cubic-bezier(0.7, 0, 0.3, 1) both; }
.story .tout-up { animation: sOutU 0.6s cubic-bezier(0.7, 0, 0.3, 1) forwards; }
.story .tin-wipe { animation: sWipe 0.75s cubic-bezier(0.6, 0, 0.3, 1) both; }
.story .swish { position: absolute; inset: 0; z-index: 20; pointer-events: none; }
.story .swish i { position: absolute; left: 100%; width: 70%; height: 5%; background: rgba(255, 255, 255, 0.75); transform: skewX(-25deg); animation: sSwish 0.55s ease-out forwards; }
.story .swish i:nth-child(1) { top: 22%; }
.story .swish i:nth-child(2) { top: 48%; height: 9%; animation-delay: 0.05s; }
.story .swish i:nth-child(3) { top: 73%; animation-delay: 0.1s; }
@keyframes sInL { from { transform: translateX(100%); } }
@keyframes sOutL { to { transform: translateX(-40%); filter: brightness(0.6); } }
@keyframes sInU { from { transform: translateY(100%); } }
@keyframes sOutU { to { transform: translateY(-30%); filter: brightness(0.6); } }
@keyframes sWipe { from { clip-path: circle(0% at 80% 80%); } to { clip-path: circle(150% at 80% 80%); } }
@keyframes sSwish { to { left: -80%; } }
@keyframes sSpin { to { transform: rotate(360deg); } }

/* actors: .act = place + entrance, .mv = first action, .mv2 = second action, .fc = idle wobble + the faces */
.story .act { position: absolute; z-index: 3; width: calc(var(--s) * var(--u)); margin: calc(var(--s) * var(--u) / -2) 0 0 calc(var(--s) * var(--u) / -2); }
.story .act .fc { position: relative; animation: sBob 1.5s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -0.29s); }
.story .act.jost .fc { animation: sJost 0.28s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -0.14s); }
.story .act.still .fc { animation: none; }
.story .act img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%;
  box-shadow: 0 0 0 calc(var(--u) * 0.7) #FFD45E, 0 0 0 calc(var(--u) * 1.2) #B8860B, 0 calc(var(--u) * 1.5) calc(var(--u) * 2.5) rgba(16, 53, 126, 0.35); }
.story .act .sad { position: absolute; inset: 0; opacity: 0; }
.story .act[data-cry] .sad { animation: sSad 0.15s var(--c) forwards; }
.story .act .tear { position: absolute; z-index: 2; top: 55%; left: 25%; width: 9%; aspect-ratio: 0.7; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #5AB8FF; opacity: 0; }
.story .act .tear.t2 { left: 66%; }
.story .act[data-cry] .tear { animation: sTear 0.55s calc(var(--c) + 0.1s) ease-in infinite; }
.story .act[data-cry] .tear.t2 { animation-delay: calc(var(--c) + 0.37s); }
.story .act .hat { position: absolute; left: 50%; top: -42%; width: 62%; transform: translateX(-50%) rotate(-8deg); animation: sHat 0.4s calc(var(--d) + 0.5s) cubic-bezier(0.3, 1.6, 0.5, 1) both; }
.story .act .hat svg { display: block; width: 100%; height: auto; }
.story .act[data-in="L"] { animation: sEnL 0.6s var(--d) cubic-bezier(0.3, 1.35, 0.5, 1) both; }
.story .act[data-in="R"] { animation: sEnR 0.6s var(--d) cubic-bezier(0.3, 1.35, 0.5, 1) both; }
.story .act[data-in="B"] { animation: sEnB 0.6s var(--d) cubic-bezier(0.3, 1.35, 0.5, 1) both; }
.story .act[data-in="T"] { animation: sEnT 0.6s var(--d) cubic-bezier(0.3, 1.35, 0.5, 1) both; }
.story .act[data-in="pop"] { animation: sEnPop 0.5s var(--d) cubic-bezier(0.3, 1.6, 0.5, 1) both; }
@keyframes sEnL { from { transform: translateX(calc(var(--u) * -130)) rotate(-20deg); } }
@keyframes sEnR { from { transform: translateX(calc(var(--u) * 130)) rotate(20deg); } }
@keyframes sEnB { from { transform: translateY(calc(var(--u) * 140)); } }
@keyframes sEnT { from { transform: translateY(calc(var(--u) * -170)); } }
@keyframes sEnPop { from { transform: scale(0); } }
@keyframes sBob { to { transform: translateY(-5%) rotate(2deg); } }
@keyframes sJost { from { transform: translateX(-7%) rotate(-8deg); } to { transform: translateX(7%) rotate(8deg); } }
@keyframes sSad { to { opacity: 1; } }
@keyframes sTear { 0% { opacity: 1; transform: translateY(0) scale(0.6); } 100% { opacity: 0; transform: translateY(170%) scale(1); } }
@keyframes sHat { from { transform: translateX(-50%) translateY(-60%) scale(0); } }

/* actions (data-do on .mv, data-do2 on .mv2) */
.story [data-do="shoveR"] > .mv, .story [data-do2="shoveR"] > .mv > .mv2 { animation: aShoveR 0.45s ease-out; }
.story [data-do="shoveL"] > .mv, .story [data-do2="shoveL"] > .mv > .mv2 { animation: aShoveL 0.45s ease-out; }
.story [data-do="knockR"] > .mv, .story [data-do2="knockR"] > .mv > .mv2 { animation: aKnockR 0.45s cubic-bezier(0.2, 1.4, 0.5, 1) forwards; }
.story [data-do="flyL"] > .mv, .story [data-do2="flyL"] > .mv > .mv2 { animation: aFlyL 0.65s ease-in forwards; }
.story [data-do="flyR"] > .mv, .story [data-do2="flyR"] > .mv > .mv2 { animation: aFlyR 0.65s ease-in forwards; }
.story [data-do="slam"] > .mv, .story [data-do2="slam"] > .mv > .mv2 { animation: aSlam 0.4s ease-out; }
.story [data-do="rage"] > .mv, .story [data-do2="rage"] > .mv > .mv2 { animation: aRage 0.09s linear infinite alternate; }
.story [data-do="jump"] > .mv, .story [data-do2="jump"] > .mv > .mv2 { animation: aJump 0.36s ease-out infinite alternate; }
.story [data-do="run"] > .mv, .story [data-do2="run"] > .mv > .mv2 { animation: aRun var(--ad, 1.6s) linear forwards; }
.story [data-do="runTrip"] > .mv, .story [data-do2="runTrip"] > .mv > .mv2 { animation: aRunTrip var(--ad, 1s) ease-out forwards; }
.story [data-do="trip"] > .mv, .story [data-do2="trip"] > .mv > .mv2 { animation: aTrip 0.5s ease-in forwards; }
.story [data-do="huddle"] > .mv, .story [data-do2="huddle"] > .mv > .mv2 { animation: aHuddle 0.6s ease-in-out forwards; }
.story [data-do] > .mv { animation-delay: var(--a, 0s); }
.story [data-do2] > .mv > .mv2 { animation-delay: var(--a2, 0s); }
@keyframes aShoveR { 40% { transform: translateX(32%) rotate(10deg); } }
@keyframes aShoveL { 40% { transform: translateX(-32%) rotate(-10deg); } }
@keyframes aKnockR { to { transform: translateX(24%) rotate(18deg); } }
@keyframes aFlyL { to { transform: translate(calc(var(--u) * -130), calc(var(--u) * -90)) rotate(-640deg); } }
@keyframes aFlyR { to { transform: translate(calc(var(--u) * 130), calc(var(--u) * -90)) rotate(640deg); } }
@keyframes aSlam { 35% { transform: translateY(14%) scale(1.06, 0.9); } }
@keyframes aRage { from { transform: translateX(-5%) rotate(-4deg); } to { transform: translateX(5%) rotate(4deg); } }
@keyframes aJump { to { transform: translateY(-26%); } }
@keyframes aRun { to { transform: translateX(calc(var(--u) * 150)); } }
@keyframes aRunTrip { to { transform: translateX(calc(var(--u) * 38)); } }
@keyframes aTrip { 55% { transform: translateY(-25%) rotate(-60deg); } 100% { transform: translateY(30%) rotate(-95deg); } }
@keyframes aHuddle { to { transform: translate(calc(var(--hx) * var(--u)), calc(var(--hy) * var(--u))); } }

/* speech bubbles, comic bursts, chapter cards, icons, confetti */
.story .bub { position: absolute; z-index: 8; max-width: calc(var(--u) * 70); width: max-content; padding: 0.45em 0.75em 0.5em; border-radius: 0.7em; text-align: center;
  font: 400 clamp(13px, calc(var(--u) * 4.4), 30px)/1.15 "Lilita One", var(--title, sans-serif); color: #10357E; background: #fff; box-shadow: 0 0.22em 0 rgba(16, 53, 126, 0.35);
  transform: translate(-50%, -100%) scale(0); transform-origin: 50% 110%; animation: sBub 0.3s var(--at) cubic-bezier(0.3, 1.6, 0.5, 1) forwards, sFade 0.2s var(--o) forwards; }
.story .bub.big { font-size: clamp(15px, calc(var(--u) * 5.4), 38px); }
.story .bub::after { content: ""; position: absolute; top: 99%; left: 50%; margin-left: -0.45em; border: 0.45em solid transparent; border-top-color: #fff; }
.story .bub.tl::after { left: 24%; }
.story .bub.tr::after { left: 76%; }
@keyframes sBub { to { transform: translate(-50%, -100%) scale(1); } }
@keyframes sFade { to { opacity: 0; } }
.story .pow { position: absolute; z-index: 9; width: calc(var(--u) * 36); aspect-ratio: 1.3; display: grid; place-items: center; background: #FFE14D; filter: drop-shadow(0 calc(var(--u) * 0.8) 0 #E07B00);
  clip-path: polygon(50% 0, 61% 26%, 90% 8%, 78% 38%, 100% 50%, 78% 62%, 92% 92%, 61% 74%, 50% 100%, 39% 74%, 8% 92%, 22% 62%, 0 50%, 22% 38%, 10% 8%, 39% 26%);
  opacity: 0; transform: translate(-50%, -50%); animation: sPow 0.7s var(--at) cubic-bezier(0.3, 1.6, 0.5, 1) both; }
.story .pow span { font-size: calc(var(--u) * 6.6); color: #D11F3F; transform: rotate(-8deg); }
.story .pow.blue { background: #6BF6FF; filter: drop-shadow(0 calc(var(--u) * 0.8) 0 #3A1690); }
.story .pow.blue span { color: #3A1690; }
@keyframes sPow { 0% { opacity: 1; transform: translate(-50%, -50%) scale(0.2) rotate(-15deg); } 40% { opacity: 1; transform: translate(-50%, -50%) scale(1.12) rotate(4deg); }
  85% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.1); } }
.story .cap { position: absolute; z-index: 10; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 5%); text-align: center; padding-inline: 16px; }
.story .cap span { display: inline-block; padding: 0.35em 0.9em 0.45em; border-radius: 0.6em; font-size: clamp(17px, calc(var(--u) * 5.6), 40px); color: #FFE14D; background: rgba(28, 6, 82, 0.88);
  box-shadow: 0 0 0 0.12em #F5B82E, 0 0.2em 0.5em rgba(0, 0, 0, 0.3); animation: sCap 0.45s var(--at) cubic-bezier(0.3, 1.3, 0.5, 1) both; }
@keyframes sCap { from { transform: translateX(-120vw) skewX(-12deg); } }
.story .sicon { position: absolute; z-index: 4; width: calc(var(--s) * var(--u)); transform: translate(-50%, -50%) scale(0); animation: sIco 0.45s var(--at) cubic-bezier(0.3, 1.6, 0.5, 1) forwards; }
.story .sicon svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 calc(var(--u) * 1) calc(var(--u) * 1.5) rgba(16, 53, 126, 0.35)); }
@keyframes sIco { to { transform: translate(-50%, -50%) scale(1); } }
.story .sconf { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.story .sconf i { position: absolute; left: 50%; top: 35%; width: calc(var(--u) * 2.4); height: calc(var(--u) * 3.6); border-radius: 2px; opacity: 0;
  background: hsl(calc(var(--i) * 47deg) 90% 60%); animation: sConf 1.6s calc(var(--at) + var(--i) * 12ms) cubic-bezier(0.2, 0.7, 0.4, 1) forwards; }
@keyframes sConf { 0% { opacity: 1; transform: rotate(calc(var(--i) * 12.4deg)) translateY(0) rotate(0); }
  100% { opacity: 0; transform: rotate(calc(var(--i) * 12.4deg)) translateY(calc(var(--u) * -75)) rotate(720deg); } }

/* props */
.story .tv { position: absolute; z-index: 2; width: calc(var(--u) * 60); aspect-ratio: 16 / 10; transform: translate(-50%, -50%); border: calc(var(--u) * 2.2) solid #2B2F45; border-radius: calc(var(--u) * 3);
  background: radial-gradient(circle at 50% 40%, #4FA3FF, #1B4FB8); box-shadow: 0 calc(var(--u) * 2) calc(var(--u) * 4) rgba(60, 30, 0, 0.35); animation: sIco 0.4s 0.1s cubic-bezier(0.3, 1.5, 0.5, 1) backwards; }
.story .tv::after { content: ""; position: absolute; left: 35%; right: 35%; top: 100%; height: calc(var(--u) * 5); margin-top: calc(var(--u) * 2.2); background: #2B2F45; border-radius: 0 0 calc(var(--u) * 2) calc(var(--u) * 2); }
.story .tvscreen { position: absolute; inset: 0; display: grid; place-items: center; }
.story .tvscreen svg { width: 42%; height: auto; animation: sBob 0.8s ease-in-out infinite alternate; }
.story .couch { position: absolute; z-index: 4; width: calc(var(--u) * 98); height: calc(var(--u) * 17); transform: translate(-50%, -50%); border-radius: calc(var(--u) * 6) calc(var(--u) * 6) calc(var(--u) * 2.5) calc(var(--u) * 2.5);
  background: linear-gradient(#F0645A, #C93C33); box-shadow: inset 0 calc(var(--u) * -3.5) 0 #A52E27, 0 calc(var(--u) * 2) calc(var(--u) * 3) rgba(60, 20, 0, 0.35); }
.story .score { position: absolute; z-index: 5; left: 50%; top: calc(50% - var(--u) * 52); transform: translate(-50%, -50%); display: flex; align-items: center; gap: 0.25em; padding: 0.15em 0.5em 0.2em;
  font-size: calc(var(--u) * 11); color: #FFE14D; background: #1C0652; border-radius: 0.25em; box-shadow: 0 0 0 0.08em #F5B82E, 0 0 0.6em rgba(255, 200, 80, 0.5); }
.story .score i { font-style: normal; color: #fff; }
.story .score .flip { position: relative; display: inline-grid; }
.story .score .flip span { grid-area: 1 / 1; text-align: center; }
.story .score .flip span:first-child { animation: sFlipOut 0.3s var(--at) forwards; }
.story .score .flip span:last-child { opacity: 0; animation: sFlipIn 0.35s calc(var(--at) + 0.15s) cubic-bezier(0.3, 1.6, 0.5, 1) forwards; color: #6BFF8E; }
@keyframes sFlipOut { to { opacity: 0; transform: translateY(-60%) scaleY(0.3); } }
@keyframes sFlipIn { from { opacity: 1; transform: translateY(60%) scaleY(0.3); } to { opacity: 1; transform: none; } }
.story .podium { position: absolute; z-index: 4; width: calc(var(--u) * 32); height: calc(var(--u) * 26); transform: translate(-50%, -50%); border-radius: calc(var(--u) * 2.5) calc(var(--u) * 2.5) 0 0;
  background: linear-gradient(#8E55F0, #3A1690); box-shadow: inset 0 calc(var(--u) * 1.2) 0 #F5B82E, inset 0 calc(var(--u) * -2) 0 rgba(0, 0, 0, 0.25); }
.story .podium .buzz { position: absolute; left: 50%; top: calc(var(--u) * -4); width: calc(var(--u) * 11); height: calc(var(--u) * 5); margin-left: calc(var(--u) * -5.5); border-radius: 999px 999px 0 0;
  background: #D11F3F; box-shadow: inset 0 calc(var(--u) * 0.8) 0 rgba(255, 255, 255, 0.4); }
.story .podium.hit .buzz { animation: sBuzz 0.5s var(--at) forwards; }
@keyframes sBuzz { 30% { transform: scaleY(0.5); } 100% { background: #FF4D6A; box-shadow: 0 0 calc(var(--u) * 4) #FF4D6A, 0 0 calc(var(--u) * 9) #FFD45E; } }
.story .step { position: absolute; z-index: 2; width: calc(var(--u) * 24); height: calc(var(--h) * var(--u)); transform: translateX(-50%); display: grid; place-items: start center; padding-top: calc(var(--u) * 2);
  border-radius: calc(var(--u) * 2) calc(var(--u) * 2) 0 0; font-style: normal; animation: sStep 0.5s 0.15s cubic-bezier(0.3, 1.3, 0.5, 1) backwards; }
.story .step b { font-weight: 400; font-size: calc(var(--u) * 9); color: #fff; text-shadow: 0 calc(var(--u) * 0.6) 0 rgba(0, 0, 0, 0.25); }
.story .step.s1 { background: linear-gradient(#FFD45E, #E09A0C); }
.story .step.s2 { background: linear-gradient(#E8EEF5, #A9B4C2); }
.story .step.s3 { background: linear-gradient(#F0A86A, #B8642A); }
@keyframes sStep { from { transform: translateX(-50%) translateY(120%); } }
.story .cloud { position: absolute; z-index: 6; left: 50%; top: calc(50% + var(--u) * 52); width: calc(var(--u) * 86); height: calc(var(--u) * 13); transform: translateX(-50%); border-radius: 999px;
  background: radial-gradient(circle at 25% 30%, #9AA5B8 30%, transparent 31%), radial-gradient(circle at 55% 20%, #9AA5B8 35%, transparent 36%), radial-gradient(circle at 80% 40%, #9AA5B8 28%, transparent 29%), linear-gradient(#9AA5B8, #7E889C);
  animation: sCloud 0.5s var(--at) ease-out backwards; }
.story .cloud::after { content: ""; position: absolute; left: 8%; right: 8%; top: 100%; height: calc(var(--u) * 22);
  background: repeating-linear-gradient(100deg, transparent 0 calc(var(--u) * 3), rgba(90, 184, 255, 0.7) calc(var(--u) * 3) calc(var(--u) * 3.5)); animation: sRain 0.35s linear infinite; opacity: 0.8; }
@keyframes sCloud { from { transform: translateX(-50%) translateY(-60%); opacity: 0; } }
@keyframes sRain { from { background-position: 0 0; } to { background-position: calc(var(--u) * -3) calc(var(--u) * 10); } }
.story .track { position: absolute; z-index: 1; left: -10%; right: -10%; width: auto; height: calc(var(--u) * 34); transform: translateY(-50%); margin-left: 0; left: 0;
  background: repeating-linear-gradient(0deg, #D9844A 0 calc(var(--u) * 6.4), #F2F2F2 calc(var(--u) * 6.4) calc(var(--u) * 7.2)); border-radius: calc(var(--u) * 2); box-shadow: inset 0 calc(var(--u) * 1) 0 rgba(255, 255, 255, 0.4); }
.story .sset .track { left: -50vw !important; right: -50vw; }
.story .finish { position: absolute; z-index: 2; width: calc(var(--u) * 4); height: calc(var(--u) * 34); transform: translate(-50%, -50%);
  background: conic-gradient(#222 25%, #fff 0 50%, #222 0 75%, #fff 0) 0 0 / calc(var(--u) * 4) calc(var(--u) * 4); }
.story .half { position: absolute; inset: 0 -50vw; z-index: 1; }
.story .half.l { background: linear-gradient(135deg, #FF5A9E, #A8246A); clip-path: polygon(0 0, 54% 0, 46% 100%, 0 100%); animation: sHalfL 0.45s 0.1s cubic-bezier(0.3, 1.2, 0.5, 1) backwards; }
.story .half.r { background: linear-gradient(135deg, #3E8BFF, #1C3FA8); clip-path: polygon(54% 0, 100% 0, 100% 100%, 46% 100%); animation: sHalfR 0.45s 0.1s cubic-bezier(0.3, 1.2, 0.5, 1) backwards; }
.story .bolt { position: absolute; z-index: 2; left: 50%; top: 0; bottom: 0; width: calc(var(--u) * 7); transform: translateX(-50%) skewX(-8deg); background: #FFE14D;
  clip-path: polygon(40% 0, 70% 0, 50% 30%, 80% 30%, 30% 100%, 45% 45%, 20% 45%); filter: drop-shadow(0 0 8px #fff); animation: sBolt 0.12s 0.5s steps(2) infinite; }
.story .vs { position: absolute; z-index: 5; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0); font-weight: 400; font-size: calc(var(--u) * 16); color: #fff;
  text-shadow: 0 calc(var(--u) * 1) 0 #3A1690, 0 0 calc(var(--u) * 4) #FFE14D; animation: sIco 0.4s var(--at) cubic-bezier(0.3, 1.8, 0.5, 1) forwards, sFade 0.2s 1.35s forwards; }
@keyframes sHalfL { from { transform: translateX(-100%); } }
@keyframes sHalfR { from { transform: translateX(100%); } }
@keyframes sBolt { 50% { opacity: 0.4; } }
.story .rope { position: absolute; z-index: 2; width: calc(var(--u) * 110); height: calc(var(--u) * 2.2); transform: translate(-50%, -50%); border-radius: 999px;
  background: repeating-linear-gradient(60deg, #C8924F 0 calc(var(--u) * 1.5), #9C6A30 calc(var(--u) * 1.5) calc(var(--u) * 3)); animation: sTugRope 0.5s var(--at) ease-in forwards; }
.story .rope::after { content: ""; position: absolute; left: 50%; top: -150%; width: calc(var(--u) * 2.5); height: 400%; background: #D11F3F; border-radius: 3px; }
.story .tugteam { position: absolute; inset: 0; z-index: 3; animation: sTug 0.5s var(--at) ease-in forwards; }
@keyframes sTug { to { transform: translateX(calc(var(--u) * 14)); } }
@keyframes sTugRope { to { transform: translate(-50%, -50%) translateX(calc(var(--u) * 14)); } }
.story .table { position: absolute; z-index: 4; width: calc(var(--u) * 72); height: calc(var(--u) * 24); transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, #C47A3C, #8A4E1F); box-shadow: 0 calc(var(--u) * 2) 0 #5E3412, 0 calc(var(--u) * 4) calc(var(--u) * 4) rgba(60, 20, 0, 0.35);
  animation: sTableFlip 0.75s var(--a) ease-in forwards; }
.story .tboard { position: absolute; left: 50%; top: 50%; width: calc(var(--u) * 26); height: calc(var(--u) * 12); transform: translate(-50%, -55%) skewX(-12deg);
  background: conic-gradient(#fff 25%, #E8344F 0 50%, #fff 0 75%, #E8344F 0) 0 0 / calc(var(--u) * 6.5) calc(var(--u) * 6); border: calc(var(--u) * 0.8) solid #3A1690; }
.story .tdice { position: absolute; left: 70%; top: -10%; width: calc(var(--u) * 10); animation: sDice 0.5s 0.5s linear 2; }
.story .tdice svg { display: block; width: 100%; height: auto; }
@keyframes sDice { 50% { transform: translateY(-80%) rotate(180deg); } 100% { transform: rotate(360deg); } }
@keyframes sTableFlip { 30% { transform: translate(-50%, -50%) rotate(8deg); } 100% { transform: translate(-50%, -50%) translate(calc(var(--u) * 40), calc(var(--u) * -120)) rotate(-220deg) scale(0.7); } }
.story .desk { position: absolute; z-index: 5; width: calc(var(--u) * 86); height: calc(var(--u) * 24); transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: calc(var(--u) * 2) calc(var(--u) * 2) 0 0;
  background: linear-gradient(#FFFFFF, #CFE3FF); box-shadow: inset 0 calc(var(--u) * 1.3) 0 #E8344F, 0 calc(var(--u) * 1.5) calc(var(--u) * 3) rgba(0, 0, 0, 0.35); }
.story .desk span { font-size: calc(var(--u) * 7); color: #10357E; letter-spacing: 0.05em; }
.story .breaking { position: absolute; z-index: 10; left: 50%; white-space: nowrap; top: calc(env(safe-area-inset-top, 0px) + 6%); padding: 0.3em 0.8em 0.35em; font-weight: 400; font-size: clamp(18px, calc(var(--u) * 6.4), 44px);
  color: #fff; background: #E8344F; border-radius: 0.2em; box-shadow: 0 0 0 0.1em #fff; transform: translateX(-50%); animation: sBreak 0.45s var(--at) cubic-bezier(0.3, 1.6, 0.5, 1) backwards, sBlink 0.8s calc(var(--at) + 0.5s) steps(2) 3; }
@keyframes sBreak { from { transform: translateX(-50%) scale(0); } }
@keyframes sBlink { 50% { background: #FF8A3D; } }
.story .ticker { position: absolute; z-index: 12; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 9%); overflow: hidden; white-space: nowrap; background: #E8344F;
  box-shadow: 0 0 0 3px #fff; font-size: clamp(14px, calc(var(--u) * 4.2), 28px); color: #fff; padding: 0.35em 0; }
.story .ticker span { display: inline-block; padding-left: 100%; animation: sTicker 9s linear infinite; }
@keyframes sTicker { to { transform: translateX(-100%); } }

/* ending: the logo crashes down, the tagline pops up */
.story .slogo { position: absolute; z-index: 6; font-size: clamp(48px, calc(var(--u) * 15), 132px); transform: translate(-50%, -50%); animation: sDrop 0.7s 0.45s cubic-bezier(0.3, 1.45, 0.5, 1) backwards; }
.story .slogo > img { display: block; width: calc(var(--u) * 76); height: auto; }
.story .stag { position: absolute; z-index: 6; width: max-content; max-width: 92vw; transform: translate(-50%, -50%); text-align: center; animation: sTag 0.5s 1.05s cubic-bezier(0.3, 1.4, 0.5, 1) backwards; }
.story .stag span { display: inline-block; padding: 0.45em 1em 0.55em; border-radius: 0.6em; color: #fff; font-size: clamp(17px, calc(var(--u) * 5.6), 38px);
  background: linear-gradient(#FFD45E, #F59A0C); text-shadow: 0 2px 0 #B86A00; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.7), 0 5px 0 #B86A00, 0 10px 18px rgba(20, 50, 120, 0.25); }
@keyframes sDrop { 0% { transform: translate(-50%, -50%) translateY(-110vh) rotate(-10deg); } 70% { transform: translate(-50%, -50%) rotate(3deg); } 100% { transform: translate(-50%, -50%); } }
@keyframes sTag { from { opacity: 0; transform: translate(-50%, -50%) translateY(40px) scale(0.8); } }
.story .sset .ticker { left: -50vw; right: -50vw; }
.story .sset .ticker span { padding-left: 100vw; }

/* ---------- "Previously on..." group recap (js/recap.js + recapScenes in introstory.js) ---------- */
.story .bg-vhs { background: radial-gradient(circle at 50% 45%, #2A3F8F, #10194A 60%, #050A24); }
.story .vhslines { position: absolute; inset: -50vw; z-index: 1; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 5px); animation: sVhs 0.3s steps(3) infinite; }
@keyframes sVhs { 50% { transform: translateY(2px); opacity: 0.7; } }
.story .rewind { position: absolute; z-index: 9; left: calc(50% - var(--u) * 46); top: calc(env(safe-area-inset-top, 0px) + 6%); display: flex; align-items: center; gap: 0.2em; font-weight: 400;
  font-size: clamp(16px, calc(var(--u) * 5.5), 36px); color: #fff; letter-spacing: 0.06em; text-shadow: 0 0 8px rgba(255, 255, 255, 0.6); animation: sBlink2 0.9s steps(2) infinite; }
.story .rewind i { width: 0; height: 0; border-top: 0.42em solid transparent; border-bottom: 0.42em solid transparent; border-right: 0.62em solid #fff; margin-right: -0.12em; }
@keyframes sBlink2 { 50% { opacity: 0.35; } }
.story [data-do="zip"] > .mv { animation: aZip 0.75s linear infinite; filter: blur(1px); opacity: 0.85; }
@keyframes aZip { from { transform: translateX(calc(var(--u) * 95)); } to { transform: translateX(calc(var(--u) * -95)); } }
.story .prevcard { position: absolute; z-index: 8; left: 50%; top: 50%; transform: translate(-50%, -50%); width: max-content; max-width: 92%; display: flex; flex-direction: column; align-items: center; gap: 0.1em;
  padding: 0.5em 1em 0.6em; border-radius: 0.5em; background: rgba(28, 6, 82, 0.9); box-shadow: 0 0 0 0.12em #F5B82E, 0 0 1.4em rgba(255, 200, 80, 0.45); font-size: clamp(18px, calc(var(--u) * 6), 44px);
  animation: sPrev 0.6s 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) backwards; }
.story .prevcard small { font-size: 0.7em; color: #CFC8FF; letter-spacing: 0.08em; text-transform: uppercase; }
.story .prevcard b { font-weight: 400; font-size: 1.5em; line-height: 1.05; color: #FFE14D; text-align: center; overflow-wrap: anywhere; }
.story .prevcard span { font-size: 0.62em; color: #fff; opacity: 0.85; }
@keyframes sPrev { from { opacity: 0; transform: translate(-50%, -50%) scale(0.4) rotate(-6deg); } }
.story .act .nm { position: absolute; left: 50%; top: 100%; margin-top: calc(var(--u) * 1.8); transform: translateX(-50%); width: max-content; max-width: calc(var(--u) * 34); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 0.15em 0.55em 0.2em; border-radius: 999px; font-weight: 400; font-size: clamp(11px, calc(var(--u) * 3.6), 26px); color: #10357E; background: #fff; box-shadow: 0 0.15em 0 rgba(16, 53, 126, 0.35); }
.story .act .nbadge { position: absolute; right: -8%; top: -6%; z-index: 3; padding: 0.15em 0.45em; border-radius: 0.4em; font-weight: 400; font-size: clamp(10px, calc(var(--u) * 3.4), 22px); color: #fff;
  background: #E8344F; box-shadow: 0 0 0 0.12em #fff; transform: rotate(12deg) scale(0); animation: sBadge 0.35s var(--at) cubic-bezier(0.3, 1.8, 0.5, 1) forwards; }
@keyframes sBadge { to { transform: rotate(12deg) scale(1); } }
.story .banner { position: absolute; z-index: 9; left: 0; right: 0; bottom: 9%; text-align: center; padding-inline: 16px; }
.story .banner span { display: inline-block; padding: 0.4em 0.9em 0.5em; border-radius: 0.6em; font-size: clamp(16px, calc(var(--u) * 5.2), 38px); color: #fff; background: linear-gradient(#FFD45E, #F59A0C);
  text-shadow: 0 2px 0 #B86A00; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.7), 0 5px 0 #B86A00; animation: sTag2 0.5s var(--at) cubic-bezier(0.3, 1.4, 0.5, 1) backwards; }
@keyframes sTag2 { from { opacity: 0; transform: translateY(40px) scale(0.8); } }
.story .hlcard { position: absolute; z-index: 8; width: max-content; max-width: calc(var(--u) * 44); transform: translate(-50%, -50%) scale(0); display: flex; flex-direction: column; gap: 0.2em;
  padding: 0.5em 0.75em 0.6em; border-radius: 0.5em; text-align: center; background: rgba(20, 11, 54, 0.92); box-shadow: 0 0 0 0.12em #FF4FD8, 0 0 1em rgba(255, 79, 216, 0.45);
  animation: sIco 0.45s var(--at) cubic-bezier(0.3, 1.6, 0.5, 1) forwards; }
.story .hlcard b { font-weight: 400; font-size: clamp(16px, calc(var(--u) * 5.4), 38px); color: #FFF36B; }
.story .hlcard span { font-size: clamp(12px, calc(var(--u) * 3.6), 26px); line-height: 1.25; color: #fff; font-family: "Quicksand", var(--body, sans-serif); font-weight: 700; }
.story .darecard { position: absolute; z-index: 8; left: 50%; top: calc(50% + var(--u) * 30); width: calc(var(--u) * 78); transform: translate(-50%, -50%) rotate(-3deg) scale(0); padding: 0.6em 0.8em 0.8em; border-radius: 0.6em;
  text-align: center; background: linear-gradient(#FF6B81, #D11F3F); box-shadow: 0 0 0 0.15em #fff, 0 0.5em 1.2em rgba(0, 0, 0, 0.3); animation: sCard 0.5s var(--at) cubic-bezier(0.3, 1.5, 0.5, 1) forwards; }
.story .darecard.truth { background: linear-gradient(#5AAEFF, #2E7FE0); }
.story .darecard small { display: block; font-size: clamp(13px, calc(var(--u) * 4), 28px); color: #FFE14D; letter-spacing: 0.1em; }
.story .darecard p { margin: 0.2em 0 0; font-size: clamp(14px, calc(var(--u) * 4.6), 32px); line-height: 1.2; color: #fff; }
@keyframes sCard { to { transform: translate(-50%, -50%) rotate(-3deg) scale(1); } }
.story .cloud.big { top: calc(50% - var(--u) * 46); width: calc(var(--u) * 60); height: calc(var(--u) * 14); }
.story .cloud.big::after { height: calc(var(--u) * 26); }
.story .bigq { position: absolute; z-index: 9; width: max-content; max-width: 92vw; transform: translate(-50%, -50%) scale(0); text-align: center; animation: sIco 0.5s var(--at) cubic-bezier(0.3, 1.6, 0.5, 1) forwards; }
.story .bigq span { display: inline-block; padding: 0.45em 0.9em 0.5em; border-radius: 0.6em; font-size: clamp(17px, calc(var(--u) * 5.8), 42px); color: #fff; background: #E8344F;
  box-shadow: 0 0 0 0.12em #fff, 0 0.3em 0 #8E0D26; }
.story .pow.long { width: calc(var(--u) * 52); aspect-ratio: 1.7; }
.story .pow.long span { font-size: calc(var(--u) * 5); }
.story .cloud { background: none; border-radius: 0; height: auto; filter: drop-shadow(0 calc(var(--u) * 1) calc(var(--u) * 1.5) rgba(16, 53, 126, 0.3)); }
.story .cloud svg { display: block; width: 100%; height: auto; }
.story .cloud::after { top: 88%; }
.story .cloud.big { height: auto; }
.story .cloud:not(.big) { top: calc(50% + var(--u) * 43); width: calc(var(--u) * 66); }

/* ---------- Short-film mode (The Rematch): camera layers, letterbox bars, grain, film cuts ---------- */
.story .cam, .story .cam2 { position: absolute; inset: 0; }
.story .cam { background-size: cover; background-position: center; }
.story .cam-push { animation: camPush var(--dur, 3s) linear forwards; }
.story .cam-pushbig { animation: camPushBig var(--dur, 3s) cubic-bezier(0.3, 0, 0.7, 1) forwards; }
.story .c2-shake { animation: camShake 0.45s var(--k) linear; }
@keyframes camPush { to { transform: scale(1.08); } }
@keyframes camPushBig { to { transform: scale(1.2); } }
@keyframes camShake { 20% { transform: translate(-1.2%, 0.8%) rotate(-0.6deg); } 40% { transform: translate(1.2%, -0.6%) rotate(0.6deg); } 60% { transform: translate(-0.8%, -0.8%); } 80% { transform: translate(0.6%, 0.6%); } }
.story .bg-black { background: #000; }
.story .tin-fade { animation: sFadeIn 0.6s ease-out both; }
.story .tin-whip { animation: sWhipIn 0.4s cubic-bezier(0.6, 0, 0.3, 1) both; }
.story .tout-whip { animation: sWhipOut 0.4s cubic-bezier(0.6, 0, 0.3, 1) forwards; }
.story .tin-iris { animation: sIris 0.7s cubic-bezier(0.6, 0, 0.3, 1) both; }
@keyframes sFadeIn { from { opacity: 0; } }
@keyframes sWhipIn { from { transform: translateX(100%) skewX(-10deg); filter: blur(8px); } }
@keyframes sWhipOut { to { transform: translateX(-100%) skewX(-10deg); filter: blur(8px); } }
@keyframes sIris { from { clip-path: circle(0% at 50% 50%); } to { clip-path: circle(80% at 50% 50%); } }
.story .sflash { position: absolute; inset: 0; z-index: 25; background: #fff; pointer-events: none; animation: sFlash 0.45s ease-out forwards; }
@keyframes sFlash { to { opacity: 0; } }
.story .grain { position: absolute; inset: 0; z-index: 35; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.5) 100%),
    repeating-radial-gradient(circle at 17% 31%, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px),
    repeating-radial-gradient(circle at 71% 63%, rgba(0, 0, 0, 0.05) 0 1px, transparent 1px 4px);
  animation: sGrain 0.24s steps(3) infinite; }
@keyframes sGrain { 33% { background-position: 0 0, 3px 2px, -2px 3px; } 66% { background-position: 0 0, -2px -3px, 3px -1px; } }
.story .lbar { position: absolute; left: 0; right: 0; z-index: 40; height: clamp(34px, 9vh, 96px); background: #000; display: flex; align-items: center; pointer-events: none;
  animation: sBarIn 0.7s cubic-bezier(0.6, 0, 0.3, 1) backwards; }
.story .lbar.t { top: 0; padding-inline: 5vw; padding-top: env(safe-area-inset-top, 0px); }
.story .lbar.b { bottom: 0; justify-content: center; padding-inline: 5vw; padding-bottom: env(safe-area-inset-bottom, 0px); }
@keyframes sBarIn { from { height: 0; } }
.story .lbar span { opacity: 0; }
.story .lbar span.on { opacity: 1; animation: sFadeIn 0.5s 0.25s ease-out backwards; }
.story .lbar.t span { font: 700 clamp(11px, 2.1vh, 20px)/1 "Fredoka", var(--head, sans-serif); letter-spacing: 0.22em; text-transform: uppercase; color: #F2E3B3; }
.story .lbar.b span { font: 700 italic clamp(13px, 2.4vh, 22px)/1.2 "Quicksand", var(--body, sans-serif); color: #fff; text-align: center; max-width: 70vw; }
.story .titlecard { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5em; text-align: center; padding-inline: 16px; }
.story .titlecard small { font: 700 clamp(12px, 2.3vh, 22px)/1.2 "Fredoka", var(--head, sans-serif); letter-spacing: 0.32em; text-transform: uppercase; color: #E8E0C8; animation: sFadeIn 0.6s var(--at) ease-out backwards; }
.story .titlecard b { font-weight: 400; font-size: clamp(42px, 9vh, 104px); line-height: 1; color: #FFD45E; text-shadow: 0 0.04em 0 #B86A00, 0 0 0.4em rgba(255, 200, 80, 0.55);
  animation: sTitle 0.7s var(--at) cubic-bezier(0.3, 1.4, 0.5, 1) backwards; }
@keyframes sTitle { from { opacity: 0; transform: scale(1.6); letter-spacing: 0.2em; } }
.story .dim { position: absolute; inset: -20%; z-index: 1; background: radial-gradient(circle at 50% 50%, rgba(30, 10, 60, 0.1), rgba(30, 10, 60, 0.55)); }
.story .bolt[style*="--at"] { visibility: hidden; z-index: 4; animation: sVis 0s var(--at) forwards, sBolt 0.12s var(--at) steps(2) infinite; }
@keyframes sVis { to { visibility: visible; } }
.story .count { position: absolute; z-index: 9; left: 50%; top: 50%; font-weight: 400; font-size: calc(var(--u) * 42); line-height: 1; color: #fff;
  text-shadow: 0 calc(var(--u) * 1.2) 0 #3A1690, 0 0 calc(var(--u) * 5) rgba(255, 225, 77, 0.8); opacity: 0; transform: translate(-50%, -50%);
  animation: sCount 0.32s var(--at) ease-out both; }
@keyframes sCount { 0% { opacity: 0; transform: translate(-50%, -50%) scale(2); } 30% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); } }
.story .slowmo { position: absolute; inset: -30%; z-index: 1;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, 0.2) 0 1.5deg, transparent 1.5deg 11deg), linear-gradient(rgba(210, 40, 70, 0.3), rgba(120, 0, 50, 0.4));
  animation: sSpin 30s linear infinite; }
.story .bigsay { position: absolute; z-index: 9; left: 50%; top: calc(50% - var(--u) * 52); width: max-content; font-weight: 400; font-size: calc(var(--u) * 13); color: #fff;
  text-shadow: 0 calc(var(--u) * 1) 0 #8E0D26, 0 0 calc(var(--u) * 4) rgba(255, 60, 90, 0.7); transform: translateX(-50%); animation: sSay 2.4s var(--at) cubic-bezier(0.2, 0.7, 0.3, 1) both; }
@keyframes sSay { 0% { opacity: 0; transform: translateX(-50%) scale(0.4); letter-spacing: 0; } 12% { opacity: 1; } 100% { opacity: 1; transform: translateX(-50%) scale(1.05); letter-spacing: 0.12em; } }
.story [data-do="duck"] > .mv, .story [data-do2="duck"] > .mv > .mv2 { animation: aDuck 0.4s ease-out forwards; }
.story [data-do="fallOff"] > .mv, .story [data-do2="fallOff"] > .mv > .mv2 { animation: aFallOff 0.6s ease-in forwards; }
.story [data-do] > .mv { animation-delay: var(--a, 0s); }
.story [data-do2] > .mv > .mv2 { animation-delay: var(--a2, 0s); }
@keyframes aDuck { to { transform: translateY(28%) scale(0.85) rotate(-10deg); } }
@keyframes aFallOff { 40% { transform: translate(calc(var(--u) * 6), calc(var(--u) * -4)) rotate(30deg); } 100% { transform: translate(calc(var(--u) * 9), calc(var(--u) * 26)) rotate(100deg); } }
.story .table.slow { animation-duration: 1.9s; animation-timing-function: cubic-bezier(0.2, 0.6, 0.3, 1); }
/* bubbles with a side tail sit beside the speaker instead of centred on them, so they stay on screen */
.story .bub.tl { transform: translate(-22%, -100%) scale(0); transform-origin: 22% 110%; animation-name: sBubL, sFade; }
.story .bub.tr { transform: translate(-78%, -100%) scale(0); transform-origin: 78% 110%; animation-name: sBubR, sFade; }
@keyframes sBubL { to { transform: translate(-22%, -100%) scale(1); } }
@keyframes sBubR { to { transform: translate(-78%, -100%) scale(1); } }
.story .bub { max-width: calc(var(--u) * 62); }
/* in a film the Skip button sits in the top bar, out of the subtitles' way */
.story.film .sskip { top: calc(env(safe-area-inset-top, 0px) + clamp(34px, 9vh, 96px) / 2); bottom: auto; transform: translateY(-50%); padding: 6px 14px; font-size: 14px;
  color: #fff; background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5); }
.story.film .sset { --u: min(1cqw, 0.48cqh); }

/* ---------- News mode (group recap): SL NEWS bug, a ticker the whole way through, lower-third captions ---------- */
.story.newsmode .grain { background: radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, 0.35) 100%); animation: none; }
.story .newsbug { position: absolute; z-index: 45; left: 16px; top: calc(env(safe-area-inset-top, 0px) + 14px); display: flex; align-items: center; gap: 0.4em; padding: 0.35em 0.7em;
  font: 400 clamp(13px, 2.2vh, 20px)/1 "Lilita One", var(--title, sans-serif); color: #fff; background: rgba(16, 53, 126, 0.85); border-radius: 0.35em; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5); }
.story .newsbug i { width: 0.6em; height: 0.6em; border-radius: 50%; background: #FF3D5A; box-shadow: 0 0 6px #FF3D5A; animation: sBlink2 1s steps(2) infinite; }
.story.newsmode .sskip { top: calc(env(safe-area-inset-top, 0px) + 12px); bottom: auto; }
.story .nticker { position: absolute; z-index: 45; left: 0; right: 0; bottom: 0; padding: 0.45em 0 calc(0.45em + env(safe-area-inset-bottom, 0px)); overflow: hidden; white-space: nowrap;
  font: 400 clamp(14px, 2.6vh, 24px)/1 "Lilita One", var(--title, sans-serif); color: #fff; background: #E8344F; box-shadow: 0 -3px 0 #fff; text-transform: uppercase; letter-spacing: 0.03em; }
.story .nticker span { display: inline-block; padding-left: 100vw; animation: sTicker 22s linear infinite; }
.story .chyron { position: absolute; z-index: 30; left: 4%; right: 4%; bottom: calc(clamp(14px, 2.6vh, 24px) * 2 + 3vh); display: flex; align-items: stretch; max-width: 900px; margin-inline: auto;
  font-family: "Lilita One", var(--title, sans-serif); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.3)); animation: sChyron 0.5s var(--at) cubic-bezier(0.3, 1.2, 0.5, 1) backwards; }
.story .chyron b { flex: none; display: grid; place-items: center; padding: 0.4em 0.7em; font-weight: 400; font-size: clamp(13px, 2.4vh, 24px); color: #fff; background: #E8344F; text-transform: uppercase; letter-spacing: 0.04em; border-radius: 0.3em 0 0 0.3em; }
.story .chyron span { flex: 1; min-width: 0; padding: 0.45em 0.8em; font-size: clamp(14px, 2.6vh, 26px); line-height: 1.15; color: #10357E; background: #fff; border-radius: 0 0.3em 0.3em 0; }
@keyframes sChyron { from { transform: translateX(-110vw); } }
.story .rectag { position: absolute; z-index: 30; right: 16px; top: calc(env(safe-area-inset-top, 0px) + 64px); display: flex; align-items: center; gap: 0.4em; padding: 0.3em 0.65em;
  font-weight: 400; font-size: clamp(13px, 2.2vh, 20px); color: #fff; background: rgba(0, 0, 0, 0.55); border-radius: 0.3em; text-transform: uppercase; letter-spacing: 0.08em;
  animation: sFadeIn 0.3s var(--at) backwards; }
.story .rectag i { width: 0.65em; height: 0.65em; border-radius: 50%; background: #FF3D5A; animation: sBlink2 1s steps(2) infinite; }
.story .newsopen { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3em; text-align: center; padding-inline: 16px; }
.story .newsopen b { font-weight: 400; font-size: clamp(56px, 14vh, 150px); line-height: 1; color: #fff; text-shadow: 0 0.05em 0 #E8344F, 0 0 0.4em rgba(255, 255, 255, 0.4);
  animation: sNewsOpen 0.9s 0.1s cubic-bezier(0.3, 1.3, 0.5, 1) backwards; }
.story .newsopen span { font-size: clamp(16px, 3vh, 30px); color: #FFE14D; letter-spacing: 0.06em; animation: sFadeIn 0.5s 0.8s backwards; }
@keyframes sNewsOpen { from { opacity: 0; transform: scale(2.6) rotate(-8deg); letter-spacing: 0.3em; } }
.story .newsbars { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.story .newsbars i { position: absolute; left: -60%; width: 60%; height: 7%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent); transform: skewX(-25deg); animation: sNewsBar 1.1s ease-in-out infinite; }
.story .newsbars i:nth-child(1) { top: 30%; }
.story .newsbars i:nth-child(2) { top: 50%; animation-delay: 0.25s; height: 3%; }
.story .newsbars i:nth-child(3) { top: 66%; animation-delay: 0.5s; }
@keyframes sNewsBar { to { left: 120%; } }
.story.newsmode .breaking { top: calc(env(safe-area-inset-top, 0px) + 64px); }

/* Comic bursts: the star is drawn behind the words (::before) and grows with them, so long words never get cut off. */
.story .pow { width: auto; aspect-ratio: auto; padding: calc(var(--u) * 5.5) calc(var(--u) * 7); white-space: nowrap; background: none; clip-path: none; }
.story .pow::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #FFE14D; clip-path: polygon(50.0% 0.0%, 58.0% 9.8%, 69.1% 3.8%, 72.8% 15.9%, 85.4% 14.6%, 84.1% 27.2%, 96.2% 30.9%, 90.2% 42.0%, 100.0% 50.0%, 90.2% 58.0%, 96.2% 69.1%, 84.1% 72.8%, 85.4% 85.4%, 72.8% 84.1%, 69.1% 96.2%, 58.0% 90.2%, 50.0% 100.0%, 42.0% 90.2%, 30.9% 96.2%, 27.2% 84.1%, 14.6% 85.4%, 15.9% 72.8%, 3.8% 69.1%, 9.8% 58.0%, 0.0% 50.0%, 9.8% 42.0%, 3.8% 30.9%, 15.9% 27.2%, 14.6% 14.6%, 27.2% 15.9%, 30.9% 3.8%, 42.0% 9.8%); }
.story .pow.blue::before { background: #6BF6FF; }
.story .pow.blue { background: none; }
.story .pow span { position: relative; display: block; }
.story .pow.long { width: auto; aspect-ratio: auto; padding: calc(var(--u) * 7) calc(var(--u) * 11); }
.story .pow.long span { font-size: calc(var(--u) * 5.4); }
/* "Tap for sound" (shown while the browser keeps sound locked; tapping it doesn't skip) */
.story .ssound { position: absolute; z-index: 50; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); padding: 9px 18px; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 16px/1 "Fredoka", var(--head, sans-serif); color: #10357E; background: rgba(255, 255, 255, 0.92); box-shadow: 0 4px 0 rgba(16, 53, 126, 0.45); animation: sSoundPulse 1.6s ease-in-out infinite; }
.story.film .ssound { top: calc(env(safe-area-inset-top, 0px) + clamp(34px, 9vh, 96px) / 2); bottom: auto; transform: translateY(-50%); padding: 6px 14px; font-size: 14px;
  color: #fff; background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5); animation: none; }
.story.newsmode .ssound { left: auto; right: 150px; top: calc(env(safe-area-inset-top, 0px) + 12px); bottom: auto; }
@keyframes sSoundPulse { 50% { transform: scale(1.06); } }
