
.capy--hero .c-arm-r { transform: rotate(-125deg); }
.capy--hero .c-arm-l { transform: rotate(35deg); }
.capy--hero .c-cape { transform-origin: 50% 0; animation: capeFlap .22s ease-in-out infinite alternate; }

.capy--cool .c-all { animation: capyBreathe 3.2s ease-in-out infinite; }
.capy--cool .c-arm-r { animation: capyWave 1s ease-in-out infinite; }

.capy--dance .c-all { animation: capyDance .5s ease-in-out infinite; }
.capy--dance .c-arm-l { animation: capyCheerL .5s ease-in-out infinite; }
.capy--dance .c-arm-r { animation: danceR .5s ease-in-out infinite; }

.capy--lift .c-arm-l { animation: liftL 1s ease-in-out infinite; }
.capy--lift .c-arm-r { animation: liftR 1s ease-in-out infinite; }
.capy--lift .c-all { animation: liftSquat .5s ease-in-out infinite; }
.capy--lift .c-sweat { transform-origin: 50% 0; animation: capyDrip 1s ease-in infinite; }

.capy--champ .c-arm-r { transform: rotate(-125deg); }
.capy--champ .c-arm-l { animation: capyCheerL .6s ease-in-out infinite; }
.capy--champ .c-all { animation: capyHop .6s ease-out infinite; }

.capy--relax .c-all { animation: capyBreathe 4s ease-in-out infinite; }
.capy--relax .c-head { animation: capyTilt 4s ease-in-out infinite; }

.capy--party .c-all { animation: capyHop .6s ease-out infinite; }
.capy--party .c-arm-l { animation: capyCheerL .6s ease-in-out infinite; }
.capy--party .c-arm-r { animation: capyCheerR .6s ease-in-out infinite; }

.capy--umbrella .c-arm-r { transform: rotate(-125deg); }
.capy--umbrella .c-arm-l { transform: rotate(-30deg); }
.capy--umbrella .c-all { animation: shiver .18s linear infinite; }

.capy--skate .c-arm-l { animation: balanceL 1s ease-in-out infinite; }
.capy--skate .c-arm-r { animation: balanceR 1s ease-in-out infinite; }

@keyframes capeFlap { from { transform: skewX(-7deg) scaleY(.97); } to { transform: skewX(7deg) scaleY(1.03); } }
@keyframes capyDance {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  25% { transform: rotate(0) translateY(-8%); }
  50% { transform: rotate(8deg) translateY(0); }
  75% { transform: rotate(0) translateY(-8%); }
}
@keyframes danceR { 0%, 100% { transform: rotate(-20deg); } 50% { transform: rotate(-140deg); } }
@keyframes liftL { 0%, 100% { transform: rotate(15deg); } 50% { transform: rotate(150deg); } }
@keyframes liftR { 0%, 100% { transform: rotate(-150deg); } 50% { transform: rotate(-15deg); } }
@keyframes liftSquat { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.04, .96); } }
@keyframes shiver { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(1.5%); } }
@keyframes balanceL { 0%, 100% { transform: rotate(60deg); } 50% { transform: rotate(80deg); } }
@keyframes balanceR { 0%, 100% { transform: rotate(-80deg); } 50% { transform: rotate(-60deg); } }

.scene {
  position: fixed; inset: 0; z-index: 40; cursor: pointer; overflow: hidden;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  animation: fadeIn .18s ease-out;
}
.scene.out { animation: fadeOut .22s ease-in forwards; }
.scene .stage { position: relative; width: 100%; height: min(62vh, 520px); overflow: visible; }
.scene .say { text-align: center; padding: 0 16px; opacity: 0; animation: sayIn .4s cubic-bezier(.2, 1.4, .4, 1) forwards; animation-delay: var(--say, .3s); }
@keyframes sayIn { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
.scene .say b { display: block; font-family: var(--display); font-size: 32px; font-weight: 600; color: var(--orange-ink); line-height: 1.1; }
.scene .say span { display: block; font-size: 18px; font-weight: 800; color: var(--muted); margin-top: 6px; }
.scene .mid { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.scene .capy { margin: 0; }

.burst { position: absolute; z-index: 1; left: 50%; top: 42%; width: min(80vw, 380px); transform: translate(-50%, -50%) scale(0); }
.burst svg { width: 100%; height: auto; display: block; }
.burst b {
  position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(34px, 10vw, 54px); font-weight: 900;
  color: #e5484d; -webkit-text-stroke: 2px #4a2c17; letter-spacing: -.02em; transform: rotate(-8deg);
}

.scene--hero .stage { animation: shake .35s ease-in-out .8s 1; }
.scene--hero .fly { position: absolute; z-index: 2; left: 0; top: 30%; animation: heroFly 1.9s cubic-bezier(.45, .05, .35, 1) forwards; }
.scene--hero .fly .capy { transform: rotate(28deg); }
.scene--hero .lines i { position: absolute; left: 100%; height: 6px; border-radius: 6px; background: var(--line); animation: speedLine .5s linear infinite; }
.scene--hero .burst { animation: burstIn .5s cubic-bezier(.2, 1.6, .4, 1) .75s forwards, burstOut .3s ease-in 1.9s forwards; }
@keyframes heroFly {
  0% { transform: translate(-110%, 30%); }
  45% { transform: translate(calc(50vw - 50%), -5%); }
  55% { transform: translate(calc(50vw - 45%), -10%); }
  100% { transform: translate(110vw, -60%); }
}
@keyframes speedLine { from { transform: translateX(0); } to { transform: translateX(-130vw); } }
@keyframes burstIn { 0% { transform: translate(-50%, -50%) scale(0) rotate(-30deg); } 100% { transform: translate(-50%, -50%) scale(1) rotate(0); } }
@keyframes burstOut { to { transform: translate(-50%, -50%) scale(1.3); opacity: 0; } }
@keyframes shake { 0%, 100% { transform: translate(0); } 20% { transform: translate(-8px, 4px); } 40% { transform: translate(7px, -5px); } 60% { transform: translate(-5px, 3px); } 80% { transform: translate(4px, -2px); } }

.scene--rocket .rocket { position: absolute; left: 50%; bottom: 4%; width: min(46vw, 210px); transform: translateX(-50%); animation: rocketShake .08s linear infinite, rocketLaunch 1.1s cubic-bezier(.6, 0, .9, .4) 1.35s forwards; }
.scene--rocket .rocket svg { width: 100%; height: auto; display: block; overflow: visible; }
.scene--rocket .flame { transform-box: fill-box; transform-origin: 50% 0; animation: flame .1s linear infinite alternate; }
.scene--rocket .count { position: absolute; left: 50%; top: 14%; transform: translateX(-50%); font-size: 84px; font-weight: 900; color: var(--purple); }
.scene--rocket .count i { position: absolute; left: 50%; transform: translateX(-50%) scale(0); font-style: normal; animation: countPop .42s ease-out forwards; }
.scene--rocket .count i:nth-child(2) { animation-delay: .42s; }
.scene--rocket .count i:nth-child(3) { animation-delay: .84s; }
.scene--rocket .smoke i { position: absolute; bottom: 2%; width: 60px; height: 60px; border-radius: 50%; background: #d7dcd3; animation: puff 1s ease-out infinite; }
.scene--rocket .stars i { position: absolute; width: 4px; height: 26px; border-radius: 4px; background: var(--gold); opacity: 0; animation: starFall .5s linear 1.5s infinite; }
@keyframes rocketShake { 0%, 100% { margin-left: 0; } 50% { margin-left: 2px; } }
@keyframes rocketLaunch { to { transform: translate(-50%, -150vh); } }
@keyframes flame { from { transform: scaleY(.85); } to { transform: scaleY(1.2); } }
@keyframes countPop { 0% { transform: translateX(-50%) scale(0); opacity: 1; } 40% { transform: translateX(-50%) scale(1.2); opacity: 1; } 99% { opacity: 0; } 100% { transform: translateX(-50%) scale(1); opacity: 0; } }
@keyframes puff { 0% { transform: scale(.3); opacity: .9; } 100% { transform: translate(var(--dx), -30px) scale(1.8); opacity: 0; } }
@keyframes starFall { 0% { transform: translateY(-20vh); opacity: 1; } 100% { transform: translateY(80vh); opacity: 0; } }

.scene--skate .roll { position: absolute; left: 0; bottom: 6%; animation: skateRoll 2.2s linear forwards; }
.scene--skate .jump { animation: skateJump 2.2s ease-in-out forwards; }
.scene--skate .ground { position: absolute; left: 0; right: 0; bottom: 6%; height: 4px; background: var(--line); border-radius: 4px; }
@keyframes skateRoll { from { transform: translateX(-110%); } to { transform: translateX(110vw); } }
@keyframes skateJump {
  0%, 38% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-45%) rotate(-180deg); }
  62% { transform: translateY(0) rotate(-360deg); }
  66% { transform: translateY(0) scale(1.08, .92) rotate(-360deg); }
  70%, 100% { transform: translateY(0) rotate(-360deg); }
}

.scene--lift .reps { position: absolute; right: 8%; top: 8%; font-size: 64px; font-weight: 900; color: var(--orange); }
.scene--lift .reps i { position: absolute; right: 0; font-style: normal; opacity: 0; animation: repPop 1s ease-out forwards; }
.scene--lift .reps i:nth-child(2) { animation-delay: 1s; }
.scene--lift .reps i:nth-child(3) { animation-delay: 2s; }
@keyframes repPop { 0% { transform: scale(0); opacity: 1; } 30% { transform: scale(1.2); opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(-30px) scale(1); opacity: 0; } }

.scene--champ .rays {
  position: absolute; left: 50%; top: 45%; width: min(130vw, 760px); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%); animation: spin 8s linear infinite;
  background: repeating-conic-gradient(color-mix(in srgb, var(--gold) 45%, transparent) 0 12deg, transparent 12deg 24deg);
  mask: radial-gradient(circle, #000 30%, transparent 70%); -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%);
}
.scene--champ .mid { animation: riseUp .6s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes riseUp { from { transform: translate(-50%, 40%) scale(.5); opacity: 0; } }

.scene--disco .ball { position: absolute; left: 50%; top: 0; width: 70px; height: 70px; margin-left: -35px; border-radius: 50%;
  background: repeating-linear-gradient(0deg, #cfd8e3 0 9px, #8ea0b6 9px 11px), #cfd8e3; box-shadow: inset -10px -10px 0 rgba(0, 0, 0, .15);
  animation: ballDrop .5s cubic-bezier(.2, 1.4, .4, 1) both, ballSpin 1s linear infinite; border: 3px solid var(--line); }
.scene--disco .spot { position: absolute; top: 30px; left: 50%; width: 120px; height: 75vh; transform-origin: 50% 0; opacity: .35;
  clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%); animation: sweep 1.6s ease-in-out infinite alternate; }
.scene--disco .spot:nth-child(2) { background: #ff5c7a; margin-left: -60px; }
.scene--disco .spot:nth-child(3) { background: #1c9bef; margin-left: -60px; animation-delay: -.8s; }
.scene--disco .spot:nth-child(4) { background: #ffc531; margin-left: -60px; animation-delay: -.4s; animation-direction: alternate-reverse; }
.scene--disco .notes i { position: absolute; bottom: 20%; font-style: normal; font-size: 34px; font-weight: 900; color: var(--purple); animation: noteUp 1.6s ease-out infinite; }
@keyframes ballDrop { from { transform: translateY(-120px); } }
@keyframes ballSpin { to { background-position: 0 22px; } }
@keyframes sweep { from { transform: rotate(-35deg); } to { transform: rotate(35deg); } }
@keyframes noteUp { 0% { transform: translateY(0) rotate(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-40vh) rotate(25deg); opacity: 0; } }

.scene--fireworks .fw { position: absolute; width: 0; height: 0; }
.scene--fireworks .fw i { position: absolute; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: var(--c); opacity: 0;
  animation: spark 1.1s ease-out infinite; animation-delay: var(--d); }
@keyframes spark {
  0% { transform: rotate(var(--a)) translateY(0) scale(1); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: rotate(var(--a)) translateY(-120px) scale(.3); opacity: 0; }
}

.scene--onsen .bath { position: absolute; left: 50%; bottom: 6%; width: min(84vw, 380px); height: 38%; transform: translateX(-50%); }
.scene--onsen .bath .capyhold { position: absolute; z-index: 1; left: 50%; bottom: 20%; transform: translateX(-50%); animation: bob 2.4s ease-in-out infinite; }
.scene--onsen .water { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; border-radius: 0 0 40% 40% / 0 0 30% 30%;
  background: linear-gradient(#8fd0ff, #4fb3f0); border: 4px solid var(--line); z-index: 2; }
.scene--onsen .water::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 26px;
  background: radial-gradient(circle at 12px 14px, #8fd0ff 12px, transparent 13px) 0 0 / 24px 26px repeat-x; animation: waves 1.2s linear infinite; }
.scene--onsen .stones { position: absolute; left: -4%; right: -4%; bottom: -6%; height: 22%; z-index: 3;
  background: radial-gradient(circle at 20px 20px, #9aa39a 18px, transparent 19px) 0 0 / 40px 40px repeat-x; }
.scene--onsen .steam i { position: absolute; bottom: 55%; width: 16px; height: 60px; border-radius: 16px; background: #fff; opacity: 0; z-index: 3;
  filter: blur(3px); animation: steam 2.2s ease-out infinite; }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 4%); } }
@keyframes waves { to { background-position: 24px 0; } }
@keyframes steam { 0% { transform: translateY(0) scaleX(1); opacity: 0; } 30% { opacity: .8; } 100% { transform: translateY(-120px) scaleX(1.6) rotate(10deg); opacity: 0; } }

.scene--rain .cloud { position: absolute; left: 50%; top: 2%; width: min(70vw, 320px); transform: translateX(-50%); animation: cloudAway .8s ease-in 1.5s forwards; z-index: 2; }
.scene--rain .cloud svg { width: 100%; height: auto; display: block; }
.scene--rain .drops { position: absolute; inset: 14% 15% 10% 15%; animation: fadeOut .3s ease-in 1.6s forwards; }
.scene--rain .drops i { position: absolute; top: 0; width: 4px; height: 18px; border-radius: 4px; background: #4fb3f0; animation: drop .55s linear infinite; }
.scene--rain .sun { position: absolute; left: 12%; top: 4%; width: 110px; height: 110px; opacity: 0; transform: scale(0); animation: sunUp .6s cubic-bezier(.2, 1.4, .4, 1) 1.7s forwards; }
.scene--rain .sun::before { content: ""; position: absolute; inset: -30px; border-radius: 50%;
  background: repeating-conic-gradient(var(--gold) 0 8deg, transparent 8deg 30deg); animation: spin 6s linear infinite;
  mask: radial-gradient(circle, transparent 40%, #000 41%, transparent 70%); -webkit-mask: radial-gradient(circle, transparent 40%, #000 41%, transparent 70%); }
.scene--rain .sun::after { content: ""; position: absolute; inset: 15px; border-radius: 50%; background: var(--gold); border: 4px solid var(--line); }
.scene--rain .rainbow { position: absolute; left: 50%; top: 26%; width: min(110vw, 560px); aspect-ratio: 2; transform: translateX(-50%); opacity: 0;
  border-radius: 999px 999px 0 0; background: radial-gradient(circle at 50% 100%, transparent 52%, #8b5cf6 52% 57%, #1c9bef 57% 62%, #2fb344 62% 67%, #ffc531 67% 72%, #ff8a00 72% 77%, #e5484d 77% 82%, transparent 82%);
  animation: fadeInTo .7s ease-out 1.9s forwards; }
.scene--rain .sad, .scene--rain .glad { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); }
.scene--rain .sad { animation: fadeOut .2s linear 1.75s forwards; }
.scene--rain .glad { opacity: 0; animation: fadeInTo .2s linear 1.8s forwards; }
@keyframes cloudAway { to { transform: translateX(80vw); opacity: 0; } }
@keyframes drop { from { transform: translateY(0); opacity: 1; } to { transform: translateY(45vh); opacity: .3; } }
@keyframes sunUp { to { opacity: 1; transform: scale(1); } }
@keyframes fadeInTo { to { opacity: 1; } }


.capy.capy--holding .c-arm-r { transform: rotate(-125deg); animation: holdBob 1.1s ease-in-out infinite; }
@keyframes holdBob { 0%, 100% { transform: rotate(-125deg); } 50% { transform: rotate(-108deg); } }
.capy .c-scan { animation: scan 1s ease-in-out infinite alternate; }
@keyframes scan { to { transform: translateX(64px); } }

.scene--g { background: #8fd0ff; justify-content: flex-start; }
.scene--g .bgx { position: absolute; inset: 0; }
.scene--g .ground {
  position: absolute; left: -5%; right: -5%; bottom: 0; height: 24%;
  border-top: 4px solid #4a2c17; border-radius: 50% 50% 0 0 / 34px 34px 0 0;
}
.scene--g .ground.waves { border-radius: 0; border-top: 0; }
.scene--g .ground.waves::before {
  content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 28px;
  background: radial-gradient(circle at 14px 16px, #4fb3f0 14px, transparent 15px) 0 0 / 28px 28px repeat-x;
  animation: waves 1.2s linear infinite;
}
.scene--g .curtain { position: absolute; top: 0; bottom: 0; width: 16%; z-index: 4;
  background: repeating-linear-gradient(90deg, #b91c1c 0 18px, #991b1b 18px 30px); box-shadow: 0 0 20px rgba(0, 0, 0, .4); }
.scene--g .curtain.l { left: 0; border-radius: 0 0 60% 0; }
.scene--g .curtain.r { right: 0; border-radius: 0 0 0 60%; }
.scene--g .skyline { position: absolute; left: 0; right: 0; bottom: 23%; height: 22%;
  background:
    linear-gradient(#2a2a40, #2a2a40) 4% 100% / 12% 70% no-repeat,
    linear-gradient(#25253a, #25253a) 18% 100% / 9% 95% no-repeat,
    linear-gradient(#2a2a40, #2a2a40) 30% 100% / 14% 55% no-repeat,
    linear-gradient(#25253a, #25253a) 62% 100% / 10% 85% no-repeat,
    linear-gradient(#2a2a40, #2a2a40) 76% 100% / 15% 65% no-repeat,
    linear-gradient(#25253a, #25253a) 94% 100% / 9% 90% no-repeat; }
.scene--g .cloudx { position: absolute; left: 0; width: 120px; height: 40px; border-radius: 40px; background: #fff; opacity: .85;
  animation: drift 14s linear infinite; }
.scene--g .cloudx::before, .scene--g .cloudx::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.scene--g .cloudx::before { width: 54px; height: 54px; left: 18px; top: -26px; }
.scene--g .cloudx::after { width: 40px; height: 40px; left: 60px; top: -18px; }
@keyframes drift { from { transform: translateX(-140px); } to { transform: translateX(110vw); } }

.scene--g .say {
  position: absolute; z-index: 6; left: 0; right: 0; top: max(7%, env(safe-area-inset-top)); margin: 0 auto;
  width: fit-content; max-width: calc(100vw - 32px); background: rgba(255, 255, 255, .94);
  border: 3px solid #4a2c17; border-radius: 22px; padding: 10px 22px; box-shadow: 0 5px 0 rgba(0, 0, 0, .15);
}
.scene--g .say b { font-size: 28px; }
.scene--g .say span { font-size: 16px; }
@media (prefers-color-scheme: dark) { .scene--g .say span { color: #556; } }

.scene--g .actor { position: absolute; z-index: 3; left: 50%; bottom: 17%; transform: translateX(-50%); }
.scene--g .mv { position: relative; }
.scene--g .shout {
  position: absolute; left: 72%; top: -6%; white-space: nowrap; z-index: 5;
  background: #fff; border: 3px solid #4a2c17; border-radius: 18px; padding: 5px 14px;
  font-size: 22px; font-weight: 900; color: #4a2c17; opacity: 0; transform-origin: 0 100%;
  animation: shoutIn .4s cubic-bezier(.2, 1.6, .4, 1) .55s forwards;
}
.scene--g .shout::after { content: ""; position: absolute; left: 14px; bottom: -12px; border: 7px solid transparent; border-top-color: #4a2c17; }
@keyframes shoutIn { from { opacity: 0; transform: scale(0) rotate(-12deg); } to { opacity: 1; transform: scale(1) rotate(-4deg); } }
@media (max-width: 480px) { .scene--g .shout { left: 0; right: 0; margin: 0 auto; width: max-content; top: -46%; font-size: 19px; transform-origin: 50% 100%; } .scene--g .shout::after { left: calc(50% - 7px); } }

.m-rise .mv { animation: mRise .6s cubic-bezier(.2, 1.4, .4, 1) both, mBob 2s ease-in-out .6s infinite; }
.m-float .mv { animation: mFloat 3s ease-in-out infinite; }
.m-floatUp .mv { animation: mFloatUp 2.7s ease-in forwards; }
.m-zoom .mv { animation: mZoom .7s cubic-bezier(.2, 1.4, .4, 1) both, mBob 2s ease-in-out .7s infinite; }
.m-spin .mv { animation: mRise .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.m-spin .capy { animation: mSpin .8s ease-in-out .6s 1; }
.m-surf .mv { animation: mRise .5s ease-out both, mSurf 1.4s ease-in-out .5s infinite; }
.m-shake .mv { animation: mRise .5s ease-out both, mShake .14s linear .5s infinite; }
.m-slide .mv { animation: mSlide .9s cubic-bezier(.2, 1.1, .3, 1) both; }
.m-beam .mv { animation: mBeam 2.7s ease-in-out forwards; }
.m-descend .mv { animation: mDescend 2.6s ease-out both; }
.m-levitate .mv { animation: mRise .6s ease-out both, mLevitate 2s ease-in-out .6s infinite; }
.scene--g .tub { position: absolute; left: 50%; bottom: 4%; width: 108%; transform: translateX(-50%); z-index: 1; overflow: visible; }

.m-stand .mv { animation: mBob 2.4s ease-in-out infinite; }
.m-across, .m-run, .m-hop { left: 0; transform: none; }
.m-across .mv { animation: mAcross 2.6s linear forwards; }
.m-across .capy { transform: rotate(-8deg); }
.m-run .mv { animation: mAcross 2.2s cubic-bezier(.4, 0, .6, 1) forwards; }
.m-run .capy { animation: mRunBob .25s ease-in-out infinite; }
.m-hop .mv { animation: mAcross 2.6s linear forwards; }
.m-hop .capy { animation: mHop .45s ease-out infinite; }
.m-beam::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 180%; height: 120vh; transform: translateX(-50%);
  background: linear-gradient(transparent, rgba(255, 245, 160, .55)); clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); }

@keyframes mRise { from { transform: translateY(80%) scale(.6); opacity: 0; } }
@keyframes mBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4%); } }
@keyframes mFloat { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14%) rotate(6deg); } }
@keyframes mFloatUp { 0% { transform: translateY(20%); } 100% { transform: translateY(-75vh) rotate(-6deg); } }
@keyframes mZoom { from { transform: scale(0) rotate(-180deg); } }
@keyframes mSpin { 0% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-40%) rotate(-180deg); } 100% { transform: translateY(0) rotate(-360deg); } }
@keyframes mSurf { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-8%) rotate(6deg); } }
@keyframes mShake { 0%, 100% { transform: translate(0, 0) rotate(-2deg); } 50% { transform: translate(2%, -2%) rotate(2deg); } }
@keyframes mSlide { from { transform: translateX(80vw) rotate(10deg); } 70% { transform: translateX(-4%) rotate(-6deg); } to { transform: translateX(0); } }
@keyframes mBeam { 0%, 25% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(-60vh) scale(.4); opacity: 0; } }
@keyframes mDescend { 0% { transform: translateY(-75vh) rotate(-8deg); } 40% { transform: translateY(-40vh) rotate(8deg); } 70% { transform: translateY(-10vh) rotate(-5deg); } 100% { transform: translateY(0) rotate(0); } }
@keyframes mLevitate { 0%, 100% { transform: translateY(-4%); } 50% { transform: translateY(-16%); } }
@keyframes mAcross { from { transform: translateX(-110%); } to { transform: translateX(110vw); } }
@keyframes mRunBob { 0%, 100% { transform: translateY(0) rotate(6deg); } 50% { transform: translateY(-6%) rotate(10deg); } }
@keyframes mHop { 0%, 100% { transform: translateY(0) scale(1.05, .95); } 50% { transform: translateY(-28%) scale(.97, 1.03); } }

.scene--g .deco { position: absolute; z-index: 2; line-height: 1; transform: translate(-50%, -50%); }
.d-bob { animation: dBob 2.2s ease-in-out infinite; }
.d-spin { animation: dSpin 6s linear infinite; }
.d-pulse { animation: dPulse 1s ease-in-out infinite; }
.d-pop { animation: dPop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.d-wobble { animation: dWobble 1.2s ease-in-out infinite; }
.d-fly { animation: dFly 3s linear forwards; }
.d-flyR { animation: dFlyR 3s linear forwards; }
.d-rise { animation: dRise 2.7s ease-in forwards; }
.d-peek { animation: dPeek 2.7s ease-in-out both; }
.d-kick { animation: dKick 1s cubic-bezier(.3, .2, .4, 1) .3s both; }
.d-bounce { animation: dBounce .5s ease-in infinite alternate; }
.d-jump { animation: dJump 1.4s ease-in-out infinite; }
.d-jump2 { animation: dJump 1.4s ease-in-out .7s infinite; }
.d-flip { animation: dFlip 1.2s ease-in-out infinite; }
.d-flip2 { animation: dFlip 1.2s ease-in-out .6s infinite; }
.d-hover { animation: dHover 1.6s ease-in-out infinite; }
.d-shrink { animation: dShrink 2.4s ease-in forwards; }
.d-grow { animation: dGrow 1.4s cubic-bezier(.2, 1.4, .4, 1) .3s both; }
.d-grow2 { animation: dGrow 1.4s cubic-bezier(.2, 1.4, .4, 1) .8s both; }
.d-flicker { animation: dFlicker .25s ease-in-out infinite alternate; }
.d-steps { animation: dPop .3s ease-out .2s both; }
.d-steps2 { animation: dPop .3s ease-out .6s both; }

@keyframes dBob { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, -62%); } }
@keyframes dSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes dPulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.2); } }
@keyframes dPop { from { transform: translate(-50%, -50%) scale(0); } }
@keyframes dWobble { 0%, 100% { transform: translate(-50%, -50%) rotate(-10deg); } 50% { transform: translate(-50%, -50%) rotate(10deg); } }
@keyframes dFly { to { transform: translate(calc(-50% + 130vw), -50%); } }
@keyframes dFlyR { to { transform: translate(calc(-50% - 130vw), -50%) scaleX(-1); } }
@keyframes dRise { to { transform: translate(-50%, calc(-50% - 70vh)); } }
@keyframes dPeek { 0% { transform: translate(-50%, 60%); opacity: 0; } 25%, 75% { transform: translate(-50%, -50%); opacity: 1; } 100% { transform: translate(-50%, 60%); opacity: 0; } }
@keyframes dKick { 0% { transform: translate(-50%, -50%); } 100% { transform: translate(calc(-50% + 64vw), calc(-50% - 16vh)) rotate(720deg); } }
@keyframes dBounce { from { transform: translate(-50%, -150%); } to { transform: translate(-50%, -30%) scale(1.1, .9); } }
@keyframes dJump { 0%, 100% { transform: translate(-50%, 0) rotate(0); } 50% { transform: translate(-50%, -140%) rotate(-30deg); } }
@keyframes dFlip { 0%, 100% { transform: translate(-50%, -50%) rotate(0); } 50% { transform: translate(-50%, -150%) rotate(180deg); } }
@keyframes dHover { 0%, 100% { transform: translate(-50%, 0) rotate(-4deg); } 50% { transform: translate(-50%, 12%) rotate(4deg); } }
@keyframes dShrink { 0%, 30% { transform: translate(-50%, -50%) scale(1); } 100% { transform: translate(-50%, -50%) scale(0); opacity: 0; } }
@keyframes dGrow { from { transform: translate(-50%, 0) scale(0); } }
@keyframes dFlicker { from { transform: translate(-50%, -50%) scale(1, 1); } to { transform: translate(-50%, -54%) scale(.92, 1.08); } }

.scene--g .fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.scene--g .fx i { position: absolute; font-style: normal; }
.fx-star { width: 4px; height: 4px; border-radius: 50%; background: #fff; animation: twinkle 1.6s ease-in-out infinite; }
.fx-snow { top: -10px; width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px #c9dcef; animation: snowFall 3s linear infinite; }
.fx-bubble { bottom: -30px; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .2); animation: bubbleUp 3s ease-in infinite; }
.fx-confetti { top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: confettiFall 2.4s linear infinite; }
.fx-emoji { font-size: 26px; line-height: 1; }
.fx-pop { animation: fxPop 1.2s ease-out infinite; opacity: 0; }
.fx-rise { bottom: 10%; animation: fxRise 2s ease-out infinite; }
.fx-fall { top: -30px; animation: fxFall 3s linear infinite; }
.fx-flash { width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(#fff, transparent 70%); opacity: 0; animation: flash .5s ease-out infinite; }
.fx-meteor { width: 120px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, transparent, #ffd36b); transform: rotate(-30deg); animation: meteor 1.2s linear infinite; }
.fx-firefly { width: 7px; height: 7px; border-radius: 50%; background: #fff27a; box-shadow: 0 0 12px 4px rgba(255, 242, 122, .7); animation: firefly 3s ease-in-out infinite; }
.fx-lava { bottom: 50%; width: 12px; height: 12px; border-radius: 50%; background: #ff6a00; box-shadow: 0 0 8px #ffb300; animation: lava 1.2s ease-out infinite; }
.fx-drop { bottom: 22%; width: 8px; height: 12px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #8fd0ff; animation: dropUp 1s ease-out infinite; }
.fx-paint { width: 40px; height: 40px; border-radius: 46% 54% 40% 60%; opacity: 0; animation: splat .4s cubic-bezier(.2, 1.6, .4, 1) forwards; }

@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes snowFall { to { transform: translate(30px, 105vh); } }
@keyframes bubbleUp { to { transform: translate(-20px, -105vh); } }
@keyframes confettiFall { to { transform: translateY(105vh) rotate(720deg); } }
@keyframes fxPop { 0% { transform: scale(0) rotate(0); opacity: 0; } 30% { opacity: 1; transform: scale(1.2) rotate(20deg); } 100% { transform: scale(.4) rotate(60deg); opacity: 0; } }
@keyframes fxRise { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-50vh) rotate(20deg); opacity: 0; } }
@keyframes fxFall { to { transform: translate(40px, 105vh) rotate(300deg); } }
@keyframes flash { 0% { opacity: 0; transform: scale(.3); } 20% { opacity: 1; } 100% { opacity: 0; transform: scale(2); } }
@keyframes meteor { from { transform: translate(0, 0) rotate(-30deg); } to { transform: translate(-90vw, 52vw) rotate(-30deg); } }
@keyframes firefly { 0%, 100% { transform: translate(0, 0); opacity: .3; } 50% { transform: translate(30px, -24px); opacity: 1; } }
@keyframes lava { 0% { transform: translate(0, 0); opacity: 1; } 100% { transform: translate(var(--dx), -40vh); opacity: 0; } }
@keyframes dropUp { 0% { transform: translate(0, 0); opacity: 1; } 100% { transform: translate(var(--dx), -26vh); opacity: 0; } }
@keyframes splat { from { opacity: 0; transform: scale(0); } to { opacity: .8; transform: scale(1); } }

.capy.draw-elchy .c-bell { transform-box: fill-box; transform-origin: 50% 0; animation: bellSwing 2.4s ease-in-out infinite; }
.capy.draw-elchy.capy--happy .c-bell, .capy.draw-elchy.capy--cheer .c-bell, .capy.draw-elchy.capy--party .c-bell,
.capy.draw-elchy.capy--dance .c-bell, .capy.draw-elchy.capy--champ .c-bell { animation: bellRing .25s ease-in-out infinite alternate; }
.capy.draw-elchy .c-antlers { transform-box: fill-box; transform-origin: 50% 100%; }
.capy.draw-elchy.capy--think .c-antlers, .capy.draw-elchy.capy--oops .c-antlers { animation: antlerWiggle .6s ease-in-out infinite alternate; }
.capy.draw-elchy.capy--cheer .c-antlers, .capy.draw-elchy.capy--dance .c-antlers { animation: antlerWiggle .3s ease-in-out infinite alternate; }
.capy.draw-elchy .c-light { animation: lightBlink .9s steps(1) infinite; }
.capy.draw-elchy .c-light1 { animation-delay: .3s; }
.capy.draw-elchy .c-light2 { animation-delay: .6s; }
@keyframes bellSwing { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes bellRing { from { transform: rotate(-22deg); } to { transform: rotate(22deg); } }
@keyframes antlerWiggle { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@keyframes lightBlink { 0% { opacity: 1; } 50% { opacity: .25; } }

.m-fromLeft .mv { animation: fromLeft .7s cubic-bezier(.2, 1.2, .4, 1) both, mBob 2s ease-in-out .7s infinite; }
.m-fromRight .mv { animation: fromRight .7s cubic-bezier(.2, 1.2, .4, 1) both, mBob 2s ease-in-out .7s infinite; }
@keyframes fromLeft { from { transform: translateX(-75vw); } }
@keyframes fromRight { from { transform: translateX(75vw); } }

.scene--g .gburst { z-index: 4; width: min(62vw, 300px); top: 36%;
  animation: burstIn .45s cubic-bezier(.2, 1.6, .4, 1) var(--at) forwards, burstOut .3s ease-in calc(var(--at) + 1.1s) forwards; }

.scene--g .aurora { position: absolute; left: -20%; right: -20%; top: 4%; height: 46%; filter: blur(18px); opacity: .8;
  background: linear-gradient(100deg, transparent 10%, #34d399 30%, transparent 45%, #a78bfa 60%, transparent 75%, #22d3ee 88%, transparent);
  animation: auroraWave 4s ease-in-out infinite alternate; }
@keyframes auroraWave { from { transform: translateX(-6%) skewY(-4deg); } to { transform: translateX(6%) skewY(4deg); } }

.fx-steam { bottom: 20%; width: 28px; height: 70px; border-radius: 28px; background: #fff; filter: blur(6px); opacity: 0; animation: steamUp 2.6s ease-out infinite; }
@keyframes steamUp { 0% { transform: translateY(0) scaleX(1); opacity: 0; } 30% { opacity: .75; } 100% { transform: translateY(-50vh) scaleX(1.8); opacity: 0; } }


.capy.draw-cat .c-tail { transform-box: view-box; transform-origin: 146px 170px; animation: catTail 3s ease-in-out infinite; }
.capy.draw-cat.capy--cheer .c-tail, .capy.draw-cat.capy--happy .c-tail, .capy.draw-cat.capy--dance .c-tail { animation-duration: .7s; }
.capy.draw-cat .c-ears { transform-box: view-box; transform-origin: 100px 40px; }
.capy.draw-cat.capy--idle .c-ears, .capy.draw-cat.capy--think .c-ears { animation: catEars 5s ease-in-out infinite; }
.capy.draw-cat.capy--comfort .c-all { animation: catPurr .09s linear infinite alternate; }
.capy.draw-cat.capy--think .c-whiskers, .capy.draw-cat.capy--oops .c-whiskers { transform-origin: 50% 50%; animation: catWhisk .4s ease-in-out infinite alternate; }
@keyframes catTail { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-14deg); } }
@keyframes catEars { 0%, 88%, 100% { transform: scaleY(1); } 92% { transform: scaleY(.9) rotate(-2deg); } 96% { transform: scaleY(1) rotate(2deg); } }
@keyframes catPurr { from { transform: translateX(-.6px); } to { transform: translateX(.6px); } }
@keyframes catWhisk { from { transform: scaleX(1); } to { transform: scaleX(1.06); } }

.capy.draw-ray .c-tail { transform-box: view-box; transform-origin: 100px 160px; animation: rayTail 2.2s ease-in-out infinite; }
.capy.draw-ray.capy--cheer .c-tail, .capy.draw-ray.capy--dance .c-tail { animation-duration: .6s; }
.capy.draw-ray.capy--idle .c-all, .capy.draw-ray.capy--think .c-all, .capy.draw-ray.capy--comfort .c-all,
.capy.draw-ray.capy--wave .c-all { animation: rayGlide 3s ease-in-out infinite; }
.capy.draw-ray.capy--idle .c-arm-l, .capy.draw-ray.capy--think .c-arm-l { animation: rayFinL 3s ease-in-out infinite; }
.capy.draw-ray.capy--idle .c-arm-r, .capy.draw-ray.capy--think .c-arm-r { animation: rayFinR 3s ease-in-out infinite; }
.capy.draw-ray.capy--happy .c-head { animation: rayGiggle .18s ease-in-out 8 alternate; }
@keyframes rayTail { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(10deg); } }
@keyframes rayGlide { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
@keyframes rayFinL { 0%, 100% { transform: rotate(-16deg); } 50% { transform: rotate(-30deg); } }
@keyframes rayFinR { 0%, 100% { transform: rotate(16deg); } 50% { transform: rotate(30deg); } }
@keyframes rayGiggle { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }

.capy.draw-snail .c-feel { transform-box: view-box; }
.capy.draw-snail .c-feel-l { transform-origin: 80px 30px; animation: feelL 2.4s ease-in-out infinite; }
.capy.draw-snail .c-feel-r { transform-origin: 120px 30px; animation: feelR 2.4s ease-in-out infinite; }
.capy.draw-snail.capy--think .c-feel, .capy.draw-snail.capy--oops .c-feel { animation-duration: .5s; }
.capy.draw-snail .c-slime { animation: slime 1.6s ease-in-out infinite; }
.capy.draw-snail .c-shell { transform-box: view-box; transform-origin: 150px 170px; }
.capy.draw-snail.capy--oops .c-shell { animation: shellHide .5s ease-in-out 2; }
.capy.draw-snail.capy--happy .c-turbo, .capy.draw-snail.capy--cheer .c-turbo, .capy.draw-snail.capy--dance .c-turbo { animation: turbo .35s linear infinite; }
.capy.draw-snail.capy--head .c-feel { animation-duration: 1.6s; }
@keyframes feelL { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-10deg); } }
@keyframes feelR { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(10deg); } }
@keyframes turbo { 0% { opacity: .8; transform: translateX(6px); } 100% { opacity: 0; transform: translateX(-14px); } }
@keyframes slime { 0%, 100% { opacity: .35; } 50% { opacity: .9; } }
@keyframes shellHide { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-8deg) translateX(-4px); } }

.capy.draw-bear .c-ears { transform-box: view-box; transform-origin: 100px 40px; }
.capy.draw-bear.capy--idle .c-ears, .capy.draw-bear.capy--wave .c-ears, .capy.draw-bear.capy--think .c-ears { animation: bearEars 4s ease-in-out infinite; }
.capy.draw-bear.capy--happy .c-ears, .capy.draw-bear.capy--cheer .c-ears, .capy.draw-bear.capy--dance .c-ears { animation: bearEars .5s ease-in-out infinite; }
.capy.draw-bear.capy--comfort .c-all { animation: bearHum 1.4s ease-in-out infinite; }
.capy.draw-bear.capy--dance .c-all { animation: bearSway .9s ease-in-out infinite; }
@keyframes bearEars { 0%, 84%, 100% { transform: rotate(0); } 90% { transform: rotate(-3deg); } 95% { transform: rotate(3deg); } }
@keyframes bearHum { 0%, 100% { transform: scale(1, 1); } 25%, 75% { transform: scale(1.02, .985); } 50% { transform: scale(.99, 1.015); } }
@keyframes bearSway {
  0%, 100% { transform: translateX(-4%) rotate(-9deg); }
  25% { transform: translateX(0) translateY(-5%) rotate(0); }
  50% { transform: translateX(4%) rotate(9deg); }
  75% { transform: translateX(0) translateY(-5%) rotate(0); }
}

.fx-rain { position: absolute; top: -10%; width: 3px; height: 18px; border-radius: 2px; background: #5fa8e6; opacity: .7; animation: rainFall .7s linear infinite; }
@keyframes rainFall { to { transform: translateY(115vh); } }

.capy.draw-snail.capy--hero { overflow: visible; }
.capy.draw-snail.capy--hero .c-cape { transform-box: view-box; transform-origin: 96px 112px; transform: translate(-40px, -10px) rotate(70deg) scale(.95, .85);
  animation: snailCape .22s ease-in-out infinite alternate; }
@keyframes snailCape { from { transform: translate(-40px, -10px) rotate(66deg) scale(.95, .85) skewX(-5deg); }
  to { transform: translate(-40px, -8px) rotate(73deg) scale(.95, .88) skewX(5deg); } }

.scene--turbo { background: radial-gradient(circle at 50% 38%, var(--tc-soft), var(--bg) 72%); }
.scene--turbo .stage { height: min(54vh, 470px); }
.tcard { position: relative; text-align: center; padding: 0 16px; }
.scene--turbo:not(.calm) .tcard { opacity: 0; animation: tcardIn .55s cubic-bezier(.2, 1.6, .4, 1) var(--at) forwards; }
@keyframes tcardIn { 0% { opacity: 0; transform: scale(.3) rotate(-12deg); } 100% { opacity: 1; transform: none; } }
.tcard__x { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.tcard__x .ic { display: block; }
.tcard__x b { font: 700 76px/1 var(--display); color: var(--tc); -webkit-text-stroke: 3px var(--edge); letter-spacing: -.02em; }
.tcard__t { display: block; font: 600 30px/1.1 var(--display); color: var(--tc-ink); margin-top: 4px; }
.tcard__s { display: block; font-size: 18px; font-weight: 800; color: var(--muted); margin-top: 6px; }
.tcard__fx i { position: absolute; left: 50%; top: 50%; font-style: normal; font-size: 22px; opacity: 0;
  animation: tSpark .9s ease-out forwards; }
@keyframes tSpark { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) translateY(0) scale(.4); }
  30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) translateY(-90px) scale(1.1); } }
.scene--turbo .lines i { background: var(--tc); opacity: .45; }
.tx-2 .burst path { fill: #cdb9f5; }
.tx-2 .burst b { color: #fff; -webkit-text-stroke: 2.5px #4a2c17; }
.tx-3 .burst path { fill: #ffc531; }
.tx-3 .c-cape { fill: var(--gold); }
.scene--turbo .mid { top: 54%; }

.t-super .fly .capy { transform: rotate(12deg); }
.t-super .c-turbo { animation: turbo .28s linear infinite; }
.t-super .land { position: absolute; left: 50%; top: 50%; z-index: 2; opacity: 0; transform: translate(-50%, -50%);
  animation: tHeroLand .5s cubic-bezier(.2, 1.5, .4, 1) 1.6s forwards; }
@keyframes tHeroLand { 0% { opacity: 0; transform: translate(-50%, -170%) scale(.6) rotate(-14deg); } 40% { opacity: 1; }
  100% { opacity: 1; transform: translate(-50%, -50%); } }

.t-rakete .count { top: 4%; color: var(--tc); -webkit-text-stroke: 3px var(--edge); }
.t-rakete .smoke i { bottom: 6%; }
.snailrocket { position: absolute; left: 50%; top: 82%; width: var(--fw); transform: translate(-50%, -88%); z-index: 2;
  animation: tRocketFly .8s linear 1.3s forwards; }
.snailrocket .shake { position: relative; animation: rocketShake .07s linear .95s infinite; }
.snailrocket .capy { display: block; }
.snailrocket .jet { position: absolute; left: 58%; top: 88%; width: 26%; height: auto; transform-origin: 50% 0; opacity: 0; z-index: -1;
  animation: tIgnite .25s ease-out .95s forwards, flame .1s linear .95s infinite alternate; }
@keyframes tIgnite { from { opacity: 0; } to { opacity: 1; } }
@keyframes tRocketFly {
  0% { left: 50%; top: 82%; transform: translate(-50%, -88%) rotate(0); }
  32% { left: 50.6%; top: 61%; }
  45% { left: 52.6%; top: 44%; transform: translate(-50%, -88%) rotate(6deg); }
  55% { left: 55.8%; top: 29%; }
  63% { left: 60.2%; top: 16%; transform: translate(-50%, -88%) rotate(16deg); }
  71% { left: 66%; top: 5%; }
  77% { left: 73%; top: -4%; transform: translate(-50%, -88%) rotate(28deg); }
  84% { left: 81.4%; top: -11%; }
  89% { left: 91%; top: -16%; }
  100% { left: 114%; top: -20%; transform: translate(-50%, -88%) rotate(50deg); }
}
.trail i { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #bfe7ff; box-shadow: 0 0 10px 2px rgba(191, 231, 255, .9);
  border: 2px solid #fff; transform: translate(-50%, -50%) scale(0); animation: tDrop .35s cubic-bezier(.2, 1.6, .4, 1) forwards; }
.trail i.glint { width: 18px; height: 18px; background: #fff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); border: 0; }
@keyframes tDrop { to { transform: translate(-50%, -50%) scale(1); } }

.t-ampel .lamps { position: absolute; left: 50%; top: 3%; transform: translateX(-50%); display: flex; gap: 10px; padding: 9px 12px;
  background: #2b2b33; border: 3px solid var(--edge); border-radius: 18px; z-index: 2; }
.t-ampel .lamps i { width: 36px; height: 36px; border-radius: 50%; background: #4a4a55; border: 2px solid #1a1a20; }
.t-ampel .lamps i:nth-child(1) { animation: lampRed .8s step-end .04s; }
.t-ampel .lamps i:nth-child(2) { animation: lampRed .38s step-end .46s; }
.t-ampel .lamps i:nth-child(3) { animation: lampGreen 3s step-end .84s forwards; }
@keyframes lampRed { 0%, 100% { background: #e5484d; box-shadow: 0 0 16px 3px rgba(229, 72, 77, .8); } }
@keyframes lampGreen { 0%, 100% { background: #3daa5c; box-shadow: 0 0 18px 4px rgba(61, 170, 92, .85); } }
.t-ampel .road { position: absolute; left: -4%; right: -4%; bottom: 3%; height: 20%; background: #8d8478; border-top: 3px solid var(--edge); }
.t-ampel .road::after { content: ""; position: absolute; left: 0; right: 0; top: 46%; height: 5px;
  background: repeating-linear-gradient(90deg, #fff 0 24px, transparent 24px 48px); opacity: .85; }
.t-ampel .finish { position: absolute; left: 64%; bottom: 3%; width: 16px; height: 20%; z-index: 1;
  background: repeating-conic-gradient(#222 0 25%, #fff 0 50%) 0 0 / 16px 16px; border-left: 2px solid var(--edge); border-right: 2px solid var(--edge); }
.t-ampel .goalflag { position: absolute; left: calc(64% - 4px); bottom: 23%; font-size: 44px; line-height: 1; transform-origin: 20% 100%; animation: tFlag 1.2s ease-in-out infinite; }
@keyframes tFlag { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
.t-ampel .racer { position: absolute; left: 3%; bottom: 10%; width: var(--fw); z-index: 2; animation: tDash .5s cubic-bezier(.6, 0, .75, 1) .84s forwards; }
.t-ampel .racer .capy { display: block; }
.t-ampel .rv { transform-origin: 50% 100%; animation: tRev .08s linear 10, tLand .35s ease-out 1.34s; }
.t-ampel .c-turbo { animation: turbo .28s linear .84s infinite; }
@keyframes tDash { to { left: calc(98% - var(--fw)); } }
@keyframes tRev { 0%, 100% { transform: translate(0); } 50% { transform: translate(1.5px, -1px); } }
@keyframes tLand { 0% { transform: scale(1.12, .88) skewX(-10deg); } 60% { transform: scale(.96, 1.04); } 100% { transform: none; } }
.t-ampel .dust i { position: absolute; bottom: 11%; width: 46px; height: 46px; border-radius: 50%; background: #d7cfc3; opacity: 0;
  animation: puff .8s ease-out forwards; }
.t-ampel .burst { top: 30%; width: min(64vw, 300px); animation: burstIn .4s cubic-bezier(.2, 1.6, .4, 1) .86s forwards, burstOut .3s ease-in 1.38s forwards; }
.t-ampel .shout2 { position: absolute; right: 3%; bottom: calc(10% + var(--fw) * .92); max-width: 60%; z-index: 3; text-align: center;
  background: var(--card); color: var(--ink); border: 2.5px solid var(--edge); border-radius: 16px; padding: 6px 12px; box-shadow: 0 3px 0 var(--edge);
  font: 600 18px/1.2 var(--display); opacity: 0; animation: sayIn .4s cubic-bezier(.2, 1.4, .4, 1) 1.45s forwards; }

.t-skate .roll { bottom: 8%; }
.t-skate .jump { position: relative; }
.t-skate .c-turbo { animation: turbo .28s linear infinite; }
.t-skate .sparks { position: absolute; left: 22%; bottom: 2%; }
.t-skate .sparks i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #ffc531; box-shadow: 0 0 6px 2px rgba(255, 138, 0, .8);
  animation: tSparkle .42s ease-out infinite; }
@keyframes tSparkle { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(.3); opacity: 0; } }
