[data-scoop-speed-run-effect="impossible-stairwell-175"],
[data-scoop-speed-run-effect="tectonic-cutaway-225"],
[data-scoop-speed-run-effect="storm-eye-275"],
[data-scoop-speed-run-effect="freight-train-thunder-325"] {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}

.scoop-speed-run-stairwell,
.scoop-speed-run-stairwell--calm {
  background:
    linear-gradient(135deg, rgba(14, 8, 42, 0.2), transparent 34% 66%, rgba(229, 86, 39, 0.14)),
    rgba(236, 217, 170, 0.08);
  perspective: 980px;
  transform-style: preserve-3d;
}

.scoop-speed-run-stairwell::before,
.scoop-speed-run-stairwell--calm::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(66vmin, 44rem);
  aspect-ratio: 1;
  border: clamp(0.7rem, 2.2vmin, 1.8rem) double rgba(26, 15, 59, 0.82);
  background:
    conic-gradient(from 45deg, rgba(238, 92, 48, 0.42), rgba(255, 223, 139, 0.14), rgba(44, 35, 103, 0.54), rgba(238, 92, 48, 0.42));
  box-shadow:
    0 0 0 clamp(0.35rem, 1vmin, 0.9rem) rgba(255, 239, 194, 0.7),
    0 0 4rem rgba(31, 20, 77, 0.45),
    inset 0 0 3rem rgba(255, 229, 155, 0.42);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%, 17% 50%, 50% 83%, 83% 50%, 50% 17%, 17% 50%);
  content: "";
  opacity: 0;
  transform: translate(-50%, -50%) rotateX(64deg) rotateZ(45deg) scale(0.38);
  animation: scoop-speed-run-stairwell-open 5.9s cubic-bezier(.16, .76, .25, 1) both;
}

.scoop-speed-run-stairwell::after {
  position: absolute;
  inset: -32%;
  background:
    repeating-linear-gradient(0deg, transparent 0 6.8vmin, rgba(21, 12, 58, 0.2) 6.8vmin 7vmin),
    repeating-linear-gradient(90deg, transparent 0 6.8vmin, rgba(233, 91, 45, 0.14) 6.8vmin 7vmin);
  content: "";
  opacity: 0;
  transform: rotateX(63deg) rotateZ(45deg) scale(1.4);
  animation: scoop-speed-run-stairwell-grid 5.9s cubic-bezier(.18, .7, .26, 1) both;
}

.scoop-speed-run-stair-flight {
  position: absolute;
  z-index: 2;
  aspect-ratio: 2.7 / 1;
  border: max(1px, 0.16vmin) solid rgba(255, 239, 193, 0.92);
  background:
    repeating-linear-gradient(90deg, rgba(30, 17, 68, 0.92) 0 8%, rgba(245, 178, 75, 0.94) 8% 11%, rgba(255, 231, 171, 0.78) 11% 15%);
  box-shadow:
    0 var(--stair-depth) 0 rgba(27, 15, 62, 0.5),
    0 calc(var(--stair-depth) + 1.1vmin) 2.3vmin rgba(10, 6, 33, 0.3);
  clip-path: polygon(0 38%, 82% 0, 100% 23%, 18% 63%, 18% 100%, 0 78%);
  opacity: 0;
  transform-origin: center;
  animation: scoop-speed-run-stair-flight 5.6s cubic-bezier(.14, .82, .24, 1) both;
}

.scoop-speed-run-stair-flight--0 { transform-origin: left center; }
.scoop-speed-run-stair-flight--1 { transform-origin: right center; filter: hue-rotate(34deg); }
.scoop-speed-run-stair-flight--2 { transform-origin: center top; filter: hue-rotate(190deg); }
.scoop-speed-run-stair-flight--3 { transform-origin: center bottom; filter: hue-rotate(305deg); }

.scoop-speed-run-tectonic,
.scoop-speed-run-tectonic--calm {
  background:
    linear-gradient(176deg, transparent 0 26%, rgba(42, 18, 21, 0.12) 27% 50%, rgba(88, 34, 19, 0.18) 51% 74%, rgba(25, 10, 23, 0.24) 75%),
    radial-gradient(ellipse at 50% 70%, rgba(255, 95, 31, 0.25), transparent 47%);
}

.scoop-speed-run-tectonic::before,
.scoop-speed-run-tectonic--calm::before {
  position: absolute;
  inset: -8% -14%;
  background:
    repeating-linear-gradient(173deg, rgba(56, 22, 24, 0.88) 0 4.8vh, rgba(202, 86, 35, 0.62) 4.8vh 5.7vh, rgba(110, 56, 41, 0.72) 5.7vh 10vh),
    linear-gradient(rgba(255, 133, 43, 0.35), rgba(20, 7, 22, 0.8));
  clip-path: polygon(0 31%, 12% 28%, 23% 36%, 34% 30%, 44% 42%, 49% 28%, 53% 55%, 59% 34%, 72% 40%, 84% 29%, 100% 34%, 100% 100%, 0 100%);
  content: "";
  opacity: 0;
  transform: translateY(34%);
  animation: scoop-speed-run-tectonic-rise 5.8s cubic-bezier(.18, .76, .28, 1) both;
}

.scoop-speed-run-tectonic::after,
.scoop-speed-run-tectonic--calm::after {
  position: absolute;
  top: 18%;
  bottom: -12%;
  left: 50%;
  width: clamp(2.2rem, 8vw, 8rem);
  background: linear-gradient(90deg, transparent, rgba(255, 237, 118, 0.9) 34%, #ff6824 49% 55%, rgba(111, 16, 25, 0.88) 73%, transparent);
  box-shadow: 0 0 2.4rem rgba(255, 76, 25, 0.75), 0 0 6rem rgba(255, 151, 39, 0.32);
  clip-path: polygon(44% 0, 72% 13%, 45% 26%, 66% 39%, 35% 55%, 55% 70%, 31% 83%, 48% 100%, 16% 100%, 28% 84%, 9% 69%, 34% 52%, 17% 37%, 39% 25%, 25% 11%);
  content: "";
  opacity: 0;
  transform: translateX(-50%) scaleY(0.2);
  transform-origin: top;
  animation: scoop-speed-run-fault-open 5.7s cubic-bezier(.13, .81, .28, 1) both;
}

.scoop-speed-run-fault-slab {
  position: absolute;
  z-index: 2;
  border: max(1px, 0.13vmin) solid rgba(255, 159, 73, 0.72);
  background:
    repeating-linear-gradient(166deg, #271322 0 16%, #6f3025 16% 25%, #d45c26 25% 30%, #49202a 30% 47%);
  box-shadow: 0 1.4vmin 0 rgba(20, 8, 20, 0.66), 0 0 2rem rgba(255, 91, 30, 0.25);
  clip-path: polygon(4% 17%, 29% 3%, 56% 14%, 82% 0, 100% 25%, 94% 84%, 68% 100%, 38% 88%, 8% 100%, 0 62%);
  opacity: 0;
  animation: scoop-speed-run-fault-slab 5.6s cubic-bezier(.14, .76, .23, 1) both;
}

.scoop-speed-run-fault-slab--right { filter: hue-rotate(18deg) brightness(1.15); }

.scoop-speed-run-storm-eye,
.scoop-speed-run-storm-eye--calm {
  background:
    radial-gradient(ellipse at center, rgba(255, 234, 174, 0.12) 0 9%, rgba(17, 29, 52, 0.34) 21%, rgba(63, 92, 116, 0.24) 44%, transparent 76%),
    linear-gradient(150deg, rgba(5, 18, 38, 0.2), rgba(117, 149, 159, 0.12), rgba(15, 35, 57, 0.2));
}

.scoop-speed-run-storm-eye::before,
.scoop-speed-run-storm-eye--calm::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 138vmax;
  aspect-ratio: 1.45;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 16deg, rgba(222, 238, 231, 0.62) 0 8deg, rgba(51, 80, 105, 0.47) 9deg 18deg, transparent 19deg 27deg),
    radial-gradient(ellipse, transparent 0 10%, rgba(17, 34, 56, 0.82) 12% 16%, transparent 29%);
  content: "";
  filter: blur(clamp(0.35rem, 1.4vmin, 1.2rem));
  mask: radial-gradient(ellipse, transparent 0 8%, #000 12% 63%, transparent 76%);
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-24deg) scale(0.48);
  animation: scoop-speed-run-storm-spiral 6s cubic-bezier(.18, .68, .25, 1) both;
}

.scoop-speed-run-storm-eye::after,
.scoop-speed-run-storm-eye--calm::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(32vmin, 17rem);
  aspect-ratio: 1.85;
  border: clamp(0.45rem, 1.5vmin, 1.25rem) solid rgba(199, 229, 224, 0.5);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 224, 151, 0.32), rgba(14, 28, 49, 0.65) 57%, transparent 72%);
  box-shadow: 0 0 5rem rgba(176, 218, 211, 0.38), inset 0 0 2rem rgba(255, 225, 155, 0.32);
  content: "";
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
  animation: scoop-speed-run-storm-eye 5.8s cubic-bezier(.16, .78, .24, 1) both;
}

.scoop-speed-run-storm-band {
  position: absolute;
  z-index: 2;
  border-top: clamp(0.6rem, 2.1vmin, 1.8rem) solid rgba(225, 241, 236, 0.78);
  border-right: clamp(0.2rem, 0.8vmin, 0.7rem) solid rgba(77, 112, 139, 0.6);
  border-radius: 50%;
  background: linear-gradient(175deg, rgba(13, 36, 59, 0.72), rgba(185, 215, 212, 0.38), transparent 72%);
  box-shadow: 0 -1vmin 2.6vmin rgba(183, 221, 216, 0.4);
  filter: blur(clamp(0.08rem, 0.35vmin, 0.3rem));
  opacity: 0;
  transform: translate(-50%, -50%) rotate(var(--storm-angle)) scale(0.3);
  animation: scoop-speed-run-storm-band 5.7s cubic-bezier(.14, .74, .24, 1) both;
}

.scoop-speed-run-freight,
.scoop-speed-run-freight--calm {
  background:
    linear-gradient(180deg, rgba(12, 19, 28, 0.13), rgba(8, 13, 19, 0.34) 62%, rgba(224, 79, 31, 0.18) 63% 100%),
    radial-gradient(ellipse at 72% 58%, rgba(255, 175, 53, 0.26), transparent 28%);
  perspective: 1100px;
}

.scoop-speed-run-freight::before,
.scoop-speed-run-freight--calm::before {
  position: absolute;
  right: -14%;
  bottom: 12vh;
  left: -14%;
  height: 18vh;
  border-top: clamp(0.35rem, 1vmin, 0.8rem) solid rgba(230, 173, 92, 0.82);
  border-bottom: clamp(0.45rem, 1.4vmin, 1rem) solid rgba(27, 26, 30, 0.9);
  background:
    repeating-linear-gradient(104deg, transparent 0 7vw, rgba(244, 201, 123, 0.78) 7vw 7.8vw, transparent 7.8vw 14vw),
    linear-gradient(rgba(57, 53, 54, 0.65), rgba(19, 18, 23, 0.82));
  box-shadow: 0 -1.2rem 3rem rgba(227, 100, 37, 0.2);
  content: "";
  opacity: 0;
  transform: rotateX(67deg) translateY(12vh);
  transform-origin: bottom;
  animation: scoop-speed-run-rail-arrive 5.8s cubic-bezier(.18, .72, .24, 1) both;
}

.scoop-speed-run-freight::after {
  position: absolute;
  inset: 7% -32%;
  background: repeating-linear-gradient(4deg, transparent 0 4.2vh, rgba(255, 193, 84, 0.28) 4.2vh 4.45vh, transparent 4.45vh 8.8vh);
  content: "";
  opacity: 0;
  transform: translateX(-14%);
  animation: scoop-speed-run-freight-streak 5.4s cubic-bezier(.14, .7, .22, 1) both;
}

.scoop-speed-run-train-car {
  position: absolute;
  z-index: 2;
  min-width: 9rem;
  min-height: 7.5rem;
  aspect-ratio: 1.55 / 1;
  border: clamp(0.16rem, 0.5vmin, 0.42rem) solid rgba(225, 144, 52, 0.9);
  border-bottom-width: clamp(0.45rem, 1.2vmin, 0.9rem);
  background:
    repeating-linear-gradient(90deg, transparent 0 9%, rgba(255, 205, 100, 0.9) 9% 15%, rgba(13, 29, 37, 0.92) 15% 24%),
    linear-gradient(165deg, rgba(58, 79, 79, 0.95), rgba(17, 27, 33, 0.97));
  box-shadow: 0 0 2.6rem rgba(242, 119, 35, 0.34), inset 0 0 1.5rem rgba(255, 187, 73, 0.28);
  opacity: 0;
  transform-origin: center bottom;
  animation: scoop-speed-run-freight-pass 5.7s cubic-bezier(.14, .67, .27, 1) both;
}

.scoop-speed-run-train-car::before {
  position: absolute;
  right: 0;
  bottom: -18%;
  left: 0;
  height: 34%;
  background:
    radial-gradient(circle at 22% 50%, #13151b 0 16%, #d99438 17% 23%, #171820 24% 31%, transparent 32%),
    radial-gradient(circle at 78% 50%, #13151b 0 16%, #d99438 17% 23%, #171820 24% 31%, transparent 32%);
  content: "";
}

.scoop-speed-run-train-car::after {
  position: absolute;
  inset: 13% 8% auto;
  height: 18%;
  border-top: max(1px, 0.16vmin) solid rgba(255, 218, 130, 0.88);
  border-bottom: max(1px, 0.16vmin) solid rgba(255, 218, 130, 0.52);
  content: "";
}

.scoop-speed-run-train-car--engine {
  background:
    radial-gradient(circle at 82% 46%, #fff2ad 0 5%, #ff8d2e 6% 12%, transparent 20%),
    linear-gradient(155deg, transparent 0 16%, #ad3027 17% 56%, #301c24 57%);
  clip-path: polygon(0 22%, 36% 22%, 44% 0, 73% 0, 84% 22%, 100% 31%, 100% 100%, 0 100%);
}

.scoop-speed-run-train-car--caboose { filter: hue-rotate(318deg) saturate(1.28); }

.scoop-speed-run-stairwell--calm::before,
.scoop-speed-run-tectonic--calm::before,
.scoop-speed-run-tectonic--calm::after,
.scoop-speed-run-storm-eye--calm::before,
.scoop-speed-run-storm-eye--calm::after,
.scoop-speed-run-freight--calm::before {
  animation: none;
  opacity: 0.62;
}

.scoop-speed-run-stairwell--calm::before { transform: translate(-50%, -50%) rotateX(64deg) rotateZ(45deg) scale(0.7); }
.scoop-speed-run-tectonic--calm::before { transform: translateY(0); opacity: 0.4; }
.scoop-speed-run-tectonic--calm::after { transform: translateX(-50%) scaleY(0.82); opacity: 0.42; }
.scoop-speed-run-storm-eye--calm::before { transform: translate(-50%, -50%) rotate(-18deg) scale(0.62); opacity: 0.32; }
.scoop-speed-run-storm-eye--calm::after { transform: translate(-50%, -50%) scale(0.82); opacity: 0.54; }
.scoop-speed-run-freight--calm::before { transform: rotateX(67deg) translateY(0); opacity: 0.58; }

@keyframes scoop-speed-run-stairwell-open {
  0%, 100% { opacity: 0; transform: translate(-50%, -50%) rotateX(64deg) rotateZ(-8deg) scale(0.32); }
  18%, 78% { opacity: 0.9; }
  48% { opacity: 0.96; transform: translate(-50%, -50%) rotateX(58deg) rotateZ(45deg) scale(1); }
}

@keyframes scoop-speed-run-stairwell-grid {
  0%, 100% { opacity: 0; transform: rotateX(63deg) rotateZ(20deg) scale(1.8); }
  22%, 75% { opacity: 0.74; }
  52% { opacity: 0.86; transform: rotateX(63deg) rotateZ(45deg) scale(1); }
}

@keyframes scoop-speed-run-stair-flight {
  0%, 100% { opacity: 0; transform: translate3d(0, 18vh, -180px) rotate(var(--stair-tilt)) rotateY(78deg) scale(0.4); }
  24%, 77% { opacity: 0.94; }
  50% { opacity: 1; transform: translate3d(0, -2vh, var(--stair-depth)) rotate(var(--stair-tilt)) rotateY(-12deg) scale(1); }
}

@keyframes scoop-speed-run-tectonic-rise {
  0%, 100% { opacity: 0; transform: translateY(34%); }
  22%, 78% { opacity: 0.86; }
  49% { opacity: 0.94; transform: translateY(0); }
}

@keyframes scoop-speed-run-fault-open {
  0%, 100% { opacity: 0; transform: translateX(-50%) scaleY(0.18); }
  24%, 78% { opacity: 0.86; }
  50% { opacity: 0.96; transform: translateX(-50%) scaleY(1); }
}

@keyframes scoop-speed-run-fault-slab {
  0%, 100% { opacity: 0; transform: translate3d(0, 24vh, -80px) rotate(12deg) skewX(var(--fault-skew)); }
  24%, 76% { opacity: 0.92; }
  49% { opacity: 0.98; transform: translate3d(0, var(--fault-lift), 70px) rotate(-4deg) skewX(var(--fault-skew)); }
}

@keyframes scoop-speed-run-storm-spiral {
  0%, 100% { opacity: 0; transform: translate(-50%, -50%) rotate(-34deg) scale(0.42); }
  19%, 80% { opacity: 0.72; }
  52% { opacity: 0.82; transform: translate(-50%, -50%) rotate(96deg) scale(1); }
}

@keyframes scoop-speed-run-storm-eye {
  0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.35); }
  25%, 76% { opacity: 0.88; }
  50% { opacity: 0.96; transform: translate(-50%, -50%) scale(1); }
}

@keyframes scoop-speed-run-storm-band {
  0%, 100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--storm-angle)) scale(0.25); }
  22%, 79% { opacity: 0.9; }
  52% { opacity: 0.96; transform: translate(-50%, -50%) rotate(var(--storm-turn)) scale(1.15); }
}

@keyframes scoop-speed-run-rail-arrive {
  0%, 100% { opacity: 0; transform: rotateX(67deg) translateY(14vh); }
  20%, 80% { opacity: 0.88; }
  48% { opacity: 0.96; transform: rotateX(67deg) translateY(0); }
}

@keyframes scoop-speed-run-freight-streak {
  0%, 100% { opacity: 0; transform: translateX(-18%); }
  21%, 77% { opacity: 0.74; }
  54% { opacity: 0.82; transform: translateX(20%); }
}

@keyframes scoop-speed-run-freight-pass {
  0% { opacity: 0; transform: translate3d(-62vw, 5vh, -180px) rotateY(24deg) rotate(var(--train-rock)) scale(0.78); }
  15% { opacity: 0.98; }
  62% { opacity: 1; transform: translate3d(34vw, 0, 80px) rotateY(-5deg) rotate(var(--train-rock)) scale(1.08); }
  100% { opacity: 0; transform: translate3d(142vw, -2vh, 140px) rotateY(-14deg) rotate(var(--train-rock)) scale(1.18); }
}

@media (max-width: 600px) {
  .scoop-speed-run-stairwell::before,
  .scoop-speed-run-stairwell--calm::before { width: 88vmin; }
  .scoop-speed-run-stair-flight { min-width: 7.5rem; }
  .scoop-speed-run-tectonic::before,
  .scoop-speed-run-tectonic--calm::before { inset: -4% -38%; }
  .scoop-speed-run-fault-slab { min-width: 7rem; min-height: 4.8rem; }
  .scoop-speed-run-storm-eye::before,
  .scoop-speed-run-storm-eye--calm::before { width: 164vmax; }
  .scoop-speed-run-storm-band { min-width: 7.2rem; min-height: 2.2rem; }
  .scoop-speed-run-freight::before,
  .scoop-speed-run-freight--calm::before { right: -34%; left: -34%; }
  .scoop-speed-run-train-car { min-width: 8.4rem; min-height: 6.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .scoop-speed-run-stairwell,
  .scoop-speed-run-stairwell::before,
  .scoop-speed-run-stairwell::after,
  .scoop-speed-run-stair-flight,
  .scoop-speed-run-tectonic,
  .scoop-speed-run-tectonic::before,
  .scoop-speed-run-tectonic::after,
  .scoop-speed-run-fault-slab,
  .scoop-speed-run-storm-eye,
  .scoop-speed-run-storm-eye::before,
  .scoop-speed-run-storm-eye::after,
  .scoop-speed-run-storm-band,
  .scoop-speed-run-freight,
  .scoop-speed-run-freight::before,
  .scoop-speed-run-freight::after,
  .scoop-speed-run-train-car {
    animation: none !important;
  }
}
