@font-face {
  font-family: Barlow;
  src: url(assets/display.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url(assets/sans.woff2) format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
.scene {
  --hit: #ff7134;
  --ink: #14130e;
  width: 100%;
  height: 100%;
  position: relative;
  isolation: isolate;
  container-type: size;
  overflow: visible;
  font-family: Manrope, Arial, sans-serif;
  color: #fff8ec;
}
.scene.lime {
  --hit: #c6ec68;
}
.scene.violet {
  --hit: #be94ff;
}
.scene-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.flare {
  position: absolute;
  inset: 8% 3% 2% 45%;
  background: radial-gradient(
    ellipse closest-side,
    color-mix(in srgb, var(--hit) 35%, transparent),
    transparent 100%
  );
  transform: rotate(-20deg);
}
.speedlines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: var(--hit);
  pointer-events: none;
}
.speedlines svg {
  width: 100%;
  height: 100%;
}
.stroke {
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
}
.orbit {
  position: absolute;
  left: 50%;
  top: 27%;
  width: 47%;
  height: 47%;
  border: 1.7px solid var(--hit);
  border-radius: 50%;
  transform: rotate(-21deg);
  opacity: 0.7;
}
.orbit.second {
  left: 54%;
  top: 21%;
  width: 39%;
  height: 61%;
  transform: rotate(26deg);
  border-style: dashed;
  border-width: 1px;
  opacity: 0.35;
}
.stage-copy {
  position: absolute;
  left: 9%;
  top: 50%;
  transform: translateY(-48%) rotate(-4deg);
  z-index: 2;
  width: 56%;
}
.ticket {
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
  background: var(--hit);
  color: #18160f;
  padding: 0.45em 0.9em 0.4em;
  font:
    800 clamp(7px, 1.35cqw, 24px)/1 Manrope,
    Arial,
    sans-serif;
  letter-spacing: 0.12em;
  transform: skew(-8deg);
  box-shadow: -0.35em 0.33em 0 #2b251d;
}
.ticket:before {
  content: "";
  width: 1.2em;
  height: 1em;
  background: repeating-linear-gradient(90deg, #161510 0 1.6px, transparent 1.6px 3px);
}
.burst-title {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0.08em 0 0.09em;
  font:
    italic 700 min(13.4cqw, 35cqh)/0.84 Barlow,
    Impact,
    sans-serif;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-shadow: 0.028em 0.035em 0 #161711;
  overflow-wrap: anywhere;
}
.burst-title span {
  display: block;
}
.burst-title .hit {
  color: var(--hit);
}
.scene.long .burst-title {
  font-size: min(8.1cqw, 23cqh);
}
.scene.longest .burst-title {
  font-size: min(6.5cqw, 18cqh);
}
.receipt {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin: 0.8em 0 0 0.21em;
  max-width: 98%;
  padding: 0.34em 0.72em;
  background: #171710e8;
  border: 1px solid #8c8270;
  color: #fbf5e9;
  font:
    700 clamp(8px, 1.6cqw, 25px)/1.3 Manrope,
    Arial,
    sans-serif;
  transform: rotate(4deg);
  border-radius: 3px;
  overflow: hidden;
}
.receipt span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.receipt i {
  height: 0.65em;
  width: 0.65em;
  transform: rotate(45deg);
  background: var(--hit);
  flex: none;
}
.product-cut {
  position: absolute;
  z-index: 1;
  right: 7.9%;
  top: 14%;
  width: 39%;
  height: 70%;
  object-fit: contain;
  transform: rotate(8deg);
  filter: drop-shadow(0 1.8cqh 1.1cqh #0008);
}
.scene.cap .product-cut {
  transform: rotate(8deg);
  height: 78%;
  top: 9%;
}
.scene.collectible .product-cut {
  transform: rotate(12deg);
  height: 80%;
  top: 8%;
}
.sale-star {
  position: absolute;
  z-index: 2;
  right: 8%;
  top: 9%;
  width: 7.5%;
  height: 17%;
  color: var(--hit);
  filter: drop-shadow(0 0.15em 0 #302114);
}
.sale-star svg {
  width: 100%;
  height: 100%;
}
.scene .dust {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.dust i {
  position: absolute;
  left: var(--left);
  top: var(--top);
  width: 0.7%;
  height: 2%;
  background: var(--hit);
  transform: rotate(var(--rot));
  opacity: 0.72;
}
.scene.running .stage-copy {
  animation: headline-in 0.65s cubic-bezier(0.14, 0.8, 0.23, 1) both;
}
.scene.running .product-cut {
  animation:
    product-in 1s cubic-bezier(0.12, 0.72, 0.23, 1) both,
    product-float 3.8s 1s ease-in-out infinite alternate;
}
.scene.running.lit .flare {
  animation: light-sweep 3.2s ease-in-out infinite alternate;
}
.scene.running.lit .speedlines {
  animation: streak-in 1s ease-out both;
}
.scene.running.lit .dust i {
  animation: confetti 3.7s var(--delay) ease-out infinite;
}
.scene.running .sale-star {
  animation: star-in 0.7s 0.14s ease-out both;
}
.scene:not(.lit) .dust,
.scene:not(.lit) .flare {
  visibility: hidden;
}
@keyframes headline-in {
  from {
    opacity: 0;
    transform: translate(-9%, -45%) rotate(-8deg) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(0, -48%) rotate(-4deg);
  }
}
@keyframes product-in {
  from {
    opacity: 0;
    translate: 18% 6%;
    scale: 0.78;
    rotate: 10deg;
  }
  to {
    opacity: 1;
    translate: 0;
    scale: 1;
    rotate: 0deg;
  }
}
@keyframes product-float {
  to {
    translate: 0 -3%;
    rotate: -3deg;
  }
}
@keyframes star-in {
  from {
    opacity: 0;
    scale: 0.55;
    rotate: -30deg;
  }
  to {
    opacity: 1;
    scale: 1;
    rotate: 0deg;
  }
}
@keyframes streak-in {
  from {
    opacity: 0.2;
    translate: -6% 2%;
  }
  to {
    opacity: 1;
    translate: 0;
  }
}
@keyframes light-sweep {
  from {
    opacity: 0.35;
    scale: 0.92;
  }
  to {
    opacity: 1;
    scale: 1.15;
  }
}
@keyframes confetti {
  0% {
    opacity: 0;
    translate: -12px 9px;
  }
  25% {
    opacity: 0.85;
  }
  85%,
  100% {
    opacity: 0;
    translate: 17px -18px;
    rotate: 60deg;
  }
}
.overlay {
  background: transparent !important;
  margin: 0;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}
.overlay #output {
  position: absolute;
  top: 27%;
  left: 2%;
  width: 96%;
  height: auto;
  aspect-ratio: 1.95;
  max-height: 48vh;
}
.overlay #output:after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 4% 3%;
  background: radial-gradient(ellipse, #17150df2 15%, #171610bb 47%, transparent 71%);
}
.overlay #output .scene {
  position: absolute;
  inset: 0;
}
.overlay #output[hidden],
.overlay [hidden] {
  display: none !important;
}
.overlay #enable-audio {
  position: fixed;
  bottom: 6px;
  left: 6px;
  z-index: 3;
  background: #231e18;
  color: #fbf2dc;
  font: 13px Manrope;
  padding: 7px 10px;
  border: 1px solid #a7957c;
  border-radius: 4px;
}
.overlay .stage-copy {
  filter: drop-shadow(0 0.3cqh 0.6cqh #000b);
}
@media (min-aspect-ratio: 1/1) {
  .overlay #output {
    top: 8%;
    left: 17.5%;
    width: 65%;
    max-height: 77vh;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scene *,
  .scene:before,
  .scene:after {
    animation: none !important;
  }
}
.member-entry .stage-copy {
  width: 61%;
  left: 6%;
  transform: translateY(-48%) rotate(-3deg);
}
.member-title {
  display: block;
  font:
    italic 700 min(10.2cqw, 27cqh)/0.95 Barlow,
    Impact,
    sans-serif;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  margin: 0.12em 0;
  color: #fff0d9;
  text-shadow: 0.025em 0.04em 0 #17150e;
}
.member-handle {
  display: block;
  color: var(--hit);
  font:
    700 min(var(--handle-size), 26cqh)/1.1 Barlow,
    Arial,
    sans-serif;
  text-shadow: 1px 2px 1px #241a12;
  white-space: nowrap;
}
.member-entry .product-cut {
  right: 4.7%;
  width: 33.5%;
}
.member-entry.running .member-handle {
  animation: member-intro 0.7s 0.15s cubic-bezier(0.16, 0.85, 0.22, 1) both;
}
@keyframes member-intro {
  from {
    opacity: 0;
    transform: translateY(0.45em) scale(0.91);
    transform-origin: left;
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .member-entry.running .member-handle {
    animation: none;
  }
}
.overlay #demo-trigger {
  position: fixed;
  bottom: 4%;
  left: 50%;
  translate: -50% 0;
  background: #ff773c;
  color: #19140f;
  border: 1px solid #3d2112;
  border-radius: 5px;
  padding: 9px 15px;
  font:
    700 12px Manrope,
    sans-serif;
  cursor: pointer;
}
