@import url("fonts/GenJyuuGothic-Regular.css");

@import url("fonts/GenJyuuGothic-Bold.css");

:root {
  --ink: #242834;
  --coral: #e58d8c;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
   line-break: strict;
  word-break: normal;
  overflow-wrap: anywhere;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "GenJyuuGothic", "Noto Sans TC", sans-serif;
   -webkit-user-select: none;
  user-select: none;
}



.station1-copy,
.station2-subtitle,
.station2-description,
.station3-copy,
.station3-description,
.station4-copy,
.dialog-body {
  line-break: strict;
  word-break: normal;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.section {
  height: 104vw;
  position: relative;
  padding: 1vw 0vw 0vw 0vw;
}

.logo {
  width: 30vw;
}

.hero {
  z-index: 0;
  place-items: center;
  background: #fff url("images/topBg.jpg") top center / cover fixed no-repeat;
}

.hero-content {
  width: 40vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.parallax {
  will-change: transform;
}

.asset {
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.asset img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}



.ribbons {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.ribbons img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.asset-fallback {
  padding: 1vw;
  letter-spacing: .14em;
  font-size: 1.4vw;
  font-weight: bold;
}

.asset:has(img:not([hidden])) .asset-fallback {
  display: none;
}

.scroll-arrow {
  display: grid;
  place-items: center;
  width: 8vw;
  cursor: pointer;
}

.scroll-arrow img {
  display: block;
  width: 5vw;
  margin-top: -6vw;
  height: auto;
  animation: arrowFloat 1s ease-in-out infinite;
}

.scroll-arrow:focus-visible {
  outline: .15vw solid var(--coral);
  outline-offset: .3vw;
}

@keyframes arrowFloat {
  0%,
  100% {
    transform: translateY(-.5vw);
  }

  50% {
    transform: translateY(.5vw);
  }
}

.hero-time {
  width: 80%;
  margin: 0;
  display: grid;
  place-items: center;
  background: #5b609f;
  border-radius: 50vw;
  font-size: 1.4vw;
  color: #fff;
  font-weight: 700;
}

.floating-nav {
  position: fixed;
  right: 1.4vw;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: grid;
  gap: .8vw;
}

.nav-button {
  display: grid;
  place-items: center;
  width: 3.4vw;
  height: 3.4vw;
  padding: 0;
  border-radius: 50%;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-button:hover,
.nav-button:focus-visible {
  filter: brightness(1.08);
  outline: .2vw solid var(--coral);
  outline-offset: .2vw;
}

.nav-button[hidden] {
  display: none;
}

.station1 {
  height: 97vw;
    margin-top: -61vw;
  display: grid;
  place-items: center;
  padding: 0vw 10vw;
  background: url(images/st1bg.png) top center / cover no-repeat;
}

.station1-content {
  width: min(100%, 76vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3vw;
  text-align: center;
  margin-top: -40vw;
  margin-bottom: 2vw;
}

.download-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2vw;
}

.download-links a {
  display: block;
  width: 12vw;
  aspect-ratio: 3.4 / 1;
  overflow: hidden;
}

.download-links img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* .station1-copy {
  color: #674f53;
} */

.station1-copy p {
  margin: 0;
  font-size: 1.2vw;
  line-height: 1.6;
  font-weight: bold;
  color: #202020;
}

.mobile-br {
  display: none;
}

.station1-links-slot {
  width: 100%;
}

.station1-links.is-fixed {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 59vw;
  z-index: 30;
  background: transparent;
  isolation: isolate;
  padding: .5vw 0;
}

.station1-links.is-fixed::before {
  content: "";
  position: absolute;
  inset-block: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background-color: #adadd3;
  z-index: -1;
  pointer-events: none;
}

.station1-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2vw;
  width: 80%;
  margin-inline: auto;
}

.station1-links a {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.55 / 0.34;
  overflow: hidden;
  color: #424297;
  text-decoration: none;
  font-size: 1.8vw;
  font-weight: 900;
}

.station1-links img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  object-fit: cover;
}

.station1-links span {
  position: relative;
  z-index: 1;
}

.download-links a:hover,
.station1-links a:hover {
  transform: translateY(-.3vw);
}

.download-links a:focus-visible,
.station1-links a:focus-visible {
  outline: .25vw solid #e87571;
  outline-offset: .3vw;
}

dialog {
  width: 47vw;
  height: 40vw;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e87571;
  overflow: visible;
}

dialog::backdrop {
  background: #0009;
}

.dialog-card {
  width: 48vw;
  height: 42vw;
  padding: 1.6vw 3vw 3vw;
  border: .5vw solid #ee7a74;
  border-radius: 4vw;
  background: #fffef2;
}

.dialog-card h2 {
  margin: 0;
  text-align: center;
  font-size: 1.8vw;
  line-height: 1.35;
  letter-spacing: .07em;
  font-weight: 700;
}

.dialog-card h2 span {
  white-space: nowrap;
}

.dialog-body {
  max-height: 64vw;
  margin-top: 1vw;
  padding: 0 1vw 2vw;
  overflow-y: auto;
  color: #655a52;
  font-size: .8vw;
  font-weight: bold;
  line-height: 1;
  text-align: left;
  overflow-wrap: anywhere;
}

.dialog-body p {
  margin: 0 0 1vw;
}

.dialog-body h3 {
  margin: 2vw 0 0.8vw;
  color: #e87571;
  font-size: 1vw;
  line-height: 1.2;
}

.notice-list,
.notice-list ul {
  margin: 0;
  padding-left: 1.7em;
}

.notice-list {
  list-style: none;
  padding-left: 0;
}

.notice-list>li {
  margin-bottom: 1.2vw;
}

.notice-list>li::before {
  content: "※";
  font-weight: bold;
  margin-right: 0.4em;
  color: #e87571;
}

.notice-list>li>ul {
  margin-top: 0.35vw;
  list-style: none;
}

.notice-list>li>ul>li {
  position: relative;
  margin-bottom: 0.45vw;
}

.notice-list>li>ul>li::before {
  content: "・";
  font-weight: bold;
  position: absolute;
  left: -1.2em;
  color: #e87571;
}

.dialog-close {
  position: absolute;
  top: -3.4vw;
  right: -3.4vw;
  z-index: 2;
  width: 3.8vw;
  height: 3.8vw;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.dialog-close::before,
.dialog-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: .85vw;
  border-radius: 1vw;
  background: #ee7a74;
  transform: translate(-50%, -50%) rotate(45deg);
}

.dialog-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.dialog-close:focus-visible {
  outline: .2vw solid #ad514e;
  outline-offset: .4vw;
}

.dialog-character {
  position: absolute;
 left: -8vw;
    bottom: -2.2vw;
  z-index: 1;
  width: 12vw;
  height: auto;
  pointer-events: none;
}

.station2 {
  position: relative;
  z-index: 2;
  margin-top: -59vw;
  padding: calc(9vw + 3vw) 8vw 17vw;
  background: url(images/st2bg.png) top center / cover no-repeat;
}

.station2-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2vw;
  text-align: center;
}

.station2-title {
  display: block;
  width: 34vw;
  margin-top: 1vw;
  height: auto;
}

.station2-subtitle {
  margin: 0;
  color: #202020;
  font-size: 2vw;
  font-weight: bold;
  line-height: 1.2;
}

.station2-description {
  margin: 0;
  padding: 0.2vw 3vw;
  border-radius: 99vw;
  background: #202020;
  font-size: 1.2vw;
  font-weight: bold;
  color: #fde24f;
}

.station2-rewards {
  width: 80%;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5vw;
  margin-top: 1vw;
}

.station2-reward {
  position: relative;
  width: 100%;
    justify-self: center;
    aspect-ratio: 171 / 182;
  overflow: hidden;
  background: url("images/rewards/st3rewardsSbg.png") center / 100% 100% no-repeat;
  margin-bottom: 1vw;
}

.station2-reward-date {
  position: absolute;
  top: 7.5%;
  left: 0;
  width: 100%;
  color: #ffe84c;
  font-size: 1.3vw;
  font-weight: 900;
  line-height: 1.2;
}

.station2-reward-image {
  position: absolute;
  top: 32%;
  left: 14%;
  width: 72%;
  height: 48%;
  object-fit: contain;
}

.station2-reward-count {
  position: absolute;
  right: 8%;
  bottom: 29%;
  color: #fff;
  font-size: 1vw;
  font-weight: 900;
  -webkit-text-stroke: .3vw black;
  paint-order: stroke fill;
}

.station2-reward-name {
  position: absolute;
  bottom: 4%;
  left: 5%;
  width: 90%;
  margin: 0;
  color: #222;
  font-size: .8vw;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.station2-reward:has(img[src$="rewards13.png"]) .station2-reward-name {
  text-align: left;
}

.station2-content2 {
  width: 100%;
  padding: 0 12vw;
  margin-top: 1vw;
  display: flex;
  justify-content: center;
}

.station2-milestones {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3vw
    minmax(0, 1fr) 3vw
    minmax(0, 1fr);
  align-items: center;
  gap: 0.5vw;
  margin: 0;
}

.station2-milestone {
  position: relative;
  width: 100%;
  aspect-ratio: 367 / 232;
  background: url("images/rewards/st3rewardsSbgB.png")
    center / 100% 100% no-repeat;
  text-align: center;
}

.station2-milestone-day {
  position: absolute;
  top: 5%;
  left: 4%;
  width: 92%;
  margin: 0;
  color: #ffe84c;
  font-size: 1.3vw;
  font-weight: 900;
  line-height: 1.2;
}

.station2-milestone-reward {
  position: absolute;
  top: 23%;
  left: 20%;
  width: 61%;
  height: 65%;
  object-fit: contain;
}

.station2-milestone:last-of-type .station2-milestone-reward {
  transform: scale(1.8);
  transform-origin: center;
}

.station2-milestone-name {
  position: absolute;
  bottom: 4%;
  left: 5%;
  width: 90%;
  margin: 0;
  color: #222;
  font-size: .8vw;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.station2-milestone-arrow {
  display: block;
  width: 100%;
  height: auto;
  justify-self: center;
   animation: station2ArrowShakeX 0.8s ease-in-out infinite;
}

@keyframes station2ArrowShakeX {
  0%, 100% { translate: -0.4vw 0; }
  50% { translate: 0.4vw 0; }
}

.station2-content3 {
  width: 100%;
  margin-top: 9vw;
}

.station2-craft {
  position: relative;
  width: 57%;
  margin-inline: auto;
  aspect-ratio: 1070 / 440;
  isolation: isolate;
  box-sizing: border-box;
  border: 0.25vw solid #000;
  border-radius: 2vw;
  background-color: #fff;
}

.station2-craft-background {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  border-radius: 2vw;
}

.station2-craft-mask {
  position: absolute;
  top: -58%;
  left: 34%;
  right: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  object-fit: contain;
  transform-origin: center;
  animation: station2MaskSpin 20s linear infinite;
  pointer-events: none;
}

@keyframes station2MaskSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.station2-craft-left {
  position: absolute;
  inset: 0;
}

.station2-craft-character {
  position: absolute;
  left: -21%;
  bottom: -16%;
  width: 39%;
  height: 93%;
  object-fit: contain;
}

.station2-craft-dialog {
  position: absolute;
  top: -37%;
  left: 0%;
  width: 50%;
  aspect-ratio: 460 / 278;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .5vw;
  background: url(images/craftDialog.png) center / 100% 100% no-repeat;
  text-align: center;
}

.station2-craft-dialog-title,
.station2-craft-dialog-copy {
  margin: 0;
  font-weight: 900;
  line-height: 1.2;
}

.station2-craft-dialog-title {
  color: #ef5149;
  font-size: 2vw;
}

.station2-craft-dialog-copy {
  color: #3946bf;
  font-size: 1.35vw;
}

.station2-craft-right {
  position: absolute;
  inset: 0;
}

.station2-craft-items {
  position: absolute;
  left: 21%;
  top: 38%;
  width: 45%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4vw minmax(0, 1fr);
  align-items: center;
  gap: 0.1vw;
}

.station2-craft-item {
  min-width: 0;
  margin: 0;
}

.station2-craft-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.station2-craft-item figcaption {
  margin-top: 0.5vw;
  width: 22vw;
  color: #222;
  font-size: .8vw;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.station2-craft-plus {
  color: #333;
  font-size: 2.8vw;
  font-weight: 900;
  text-align: center;
}

.station2-craft-arrow {
  position: absolute;
  left: 68%;
  top: 58%;
  width: 5%;
  height: auto;
  animation: station2ArrowShakeX 0.8s ease-in-out infinite;
}

.station2-craft-result {
  position: absolute;
  right: -4%;
  top: -28%;
  width: 30%;
  height: 140%;
  object-fit: contain;
}

.station2-craft-notes {
  width: 69%;
  margin: 3vw auto;
  padding: 0.2vw 3vw;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  border-radius: 99vw;
  background: #292929;
  text-align: center;
}

.station2-craft-notes p {
  margin: 0;
  color: #ffe84c;
  font-size: 1.2vw;
  font-weight: 900;
  line-height: 1.5;
}

.station3 {
  position: relative;
  z-index: 3;
  margin-top: -20vw;
  padding: calc(10vw + 5vw) 8vw 7vw;
  background: url(images/st3bg.png) center top / cover no-repeat;
}

.station3-content {
  width: 100%;
  max-width: 84vw;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3vw;
  text-align: center;
  margin-top: -1.5vw;
  margin-bottom: 10vw;
}

.station3-title {
  display: block;
  width: 38vw;
  height: auto;
}

.station3-main {
  width: 60%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  margin-top: -5vw;
}

.station3-copy {
  min-width: 0;
  color: #292929;
  /* font-size: 2vw; */
  font-weight: 900;
  /* line-height: 1.3; */
  overflow-wrap: anywhere;
}

.station3-copy h3 {
  color: #fff;
  font-size: 2vw;
  line-height: 1;
  /* font-weight: 900; */
  -webkit-text-stroke: .4vw #5e9ad5;
  paint-order: stroke fill;
}

.station3-copy p {
  margin: 0;
  font-size: 1.2vw;
  /* font-weight: bold; */
}

.station3-copy p + p {
  margin-top: 1.5vw;
}

.station3-copy strong,
.station3-copy span {
  color: #e95148;
}

.station3-images {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1vw;
  margin-top: 5vw;
}

.station3-word {
  display: block;
  width: 70%;
  height: auto;
}

.station3-gift {
  display: block;
  width: 100%;
  height: auto;
}

.station3-description {
  width: 100%;
  color: #292929;
  font-weight: 900;
}

.station3-description h3 {
  margin: -4vw 0 1.5vw;
  color: #fff;
  font-size: 2vw;
  line-height: 1;
  font-weight: 900;
  -webkit-text-stroke: .4vw #5e9ad5;
  paint-order: stroke fill;
}

.station3-description p {
  margin: 0;
  font-size: 1.2vw;
  font-weight: bold;
}

.station3-mobile-break {
  display: none;
}

.station3-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 23%;
  aspect-ratio: 1.55 / 0.34;
  overflow: hidden;
  color: #2171b7;
  text-decoration: none;
  font-size: 2vw;
  font-weight: 900;
  animation: station3ButtonBreathe 1.5s ease-in-out infinite;
}

@keyframes station3ButtonBreathe {
  0%,
  100% {
    scale: 1;
  }

  50% {
    scale: 1.05;
  }
}

.station3-button:hover {
  transform: translateY(-0.3vw);
}

.station3-button img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  object-fit: cover;
}

.station3-button span {
  position: relative;
  z-index: 1;
}

.station4 {
  position: relative;
  z-index: 3;
  margin-top: -18vw;
  padding: calc(12vw + 1vw) 6vw 4vw;
  background: url("images/st4bg.png")
    center top / cover no-repeat;
}

.station4-content {
  width: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2vw;
}

.station4-title {
  display: block;
  width: 29vw;
  height: auto;
}

.station4-panels {
  width: 75%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2vw;
}

.station4-panel {
  position: relative;
  min-width: 0;
  box-sizing: border-box;
  padding: 0 2vw 1vw;
  display: flex;
  flex-direction: column;
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.station4-panel-a {
  --panel-color: #4b5add;
  background-image: url("images/st4rewardsBgA.png");
}

.station4-panel-b {
  --panel-color: #f45459;
  background-image: url("images/st4rewardsBgB.png");
}

.station4-panel-header {
  display: grid;
  grid-template-columns: 31% minmax(0, 1fr);
  align-items: end;
  gap: 1vw;
}

.station4-panel-header h3 {
  display: flex;
  justify-content: center;
  gap: 0.5vw;
  margin-top: 0.7vw;
}

.station4-panel-header h3 span {
  font-size: 2.5vw;
}

.station4-panel-header h3 b {
  font-size: 4vw;
  font-weight: 900;
  margin-top: -1.5vw;
}

.station4-period {
  font-size: 1.2vw;
  font-weight: 900;
  text-align: right;
}

.station4-panel-a {
  --title-outline: #293da7;
}

.station4-panel-b {
  --title-outline: #b93639;
}

.station4-period-a {
  color: #0f259b;
}

.station4-period-b {
  color: #9c0a0c;
}

.station4-panel-header h3 {
  color: #fff;
  -webkit-text-stroke: 0.4vw var(--title-outline);
  paint-order: stroke fill;
}

.station4-copy {
  margin: -1vw 0 1.2vw;
  color: #292929;
  font-size: 1.2vw;
  font-weight: 900;
  line-height: 1.2;
}

.station4-copy strong {
  color: var(--panel-color);
  font-size: 2.1vw;
}


.station4-rewards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2vw;
  margin-top: auto;
  padding-inline: 1vw;
}

.station4-reward {
  position: relative;
  min-width: 0;
  margin: 0;
  aspect-ratio: 1;
  background: url("images/st4rewardsBg.png")
    center / 100% 100% no-repeat;
}

.station4-reward img {
  position: absolute;
  top: 8%;
  left: 10%;
  width: 80%;
  height: 72%;
  object-fit: contain;
  animation: station4RewardFloat 2.5s ease-in-out infinite;
}

@keyframes station4RewardFloat {
  0%,
  100% {
    translate: 0 -0.2vw;
  }

  50% {
    translate: 0 0.2vw;
  }
}

.station4-reward figcaption {
  position: absolute;
  left: 5%;
  bottom: 6%;
  width: 90%;
  color: #292929;
  font-size: .8vw;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}

.station4-deadline {
  margin: 0;
  padding: 0.2vw 3vw;
  border-radius: 99vw;
  background: #ffd5d7;
  color: #f45459;
  font-size: 1.2vw;
  font-weight: 900;
  text-align: center;
}

.footer {
  position: relative;
  z-index: 4;
  padding: 1vw 5vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5vw;
  background: #fff;
  text-align: center;
}

.footer-logo {
  display: block;
  width: 40vw;
  height: auto;
}

.footer-copyright {
  margin: 0;
  color: #333;
  font-size: .6vw;
  line-height: 1.6;
  font-weight: bold;
}

.station-between-characters {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 0;
  pointer-events: none;
}

.station-between-characters img {
  position: absolute;
    top: 0;
    padding: 0 3vw;
    width: 18vw;
    height: auto;
    transform: translateY(-50%);
     animation: bgCharacterHop 1.5s ease-in-out infinite;
}

.station-between-characters .bg-character-right {
  animation-delay: -.5s;
}

@keyframes bgCharacterHop {
  0%, 40%, 100% {
    translate: 0 0;
    scale: 1;
  }

  50% {
    translate: 0 0.2vw;
    scale: 1.03 0.97;
  }

  65% {
    translate: 0 -1.5vw;
    scale: 0.98 1.02;
  }

  80% {
    translate: 0 0;
    scale: 1.03 0.97;
  }

  90% {
    translate: 0 -0.3vw;
    scale: 1;
  }
}

.between-1-2{
  top:-45vw;
}

.between-1-2 .bg-character-left {
  top: -5vw;
}

.between-1-2 .bg-character-right {
  top: 3vw;
}

.between-2-3{
  top:-5vw;
  
}

.between-2-3 img{
  width: 20vw;
}

/* 右高左低 */
.between-2-3 .bg-character-left {
  top: 2vw;
}

.between-2-3 .bg-character-right {
  top: -5vw;
}

.bg-character-left {
  left: 0;
}

.bg-character-right {
  right: 0;
}

.between-3-4{
  top: -10vw;
}

.between-3-4 img{
  width: 27vw;
}

.snow-effect {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow: hidden;
  pointer-events: none;
}

.snow-effect img {
  position: absolute;
  top: -8vw;
  left: var(--start-x);
  width: var(--size);
  height: auto;
  opacity: 0;
  backface-visibility: visible;
  animation: ribbonScatter var(--duration) linear infinite;
  animation-delay: var(--delay);
}

@keyframes ribbonScatter {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0)
      rotateZ(0deg) rotateY(0deg);
  }

  8% {
    opacity: 1;
  }

  25% {
    transform:
      translate3d(
        calc(var(--spread) * 0.65),
        calc(22dvh + 8vw),
        0
      )
      rotateZ(calc(var(--spin) * 0.25))
      rotateY(180deg);
  }

  60% {
    opacity: 1;
    transform:
      translate3d(
        calc(var(--spread) + var(--sway)),
        calc(60dvh + 8vw),
        0
      )
      rotateZ(calc(var(--spin) * 0.6))
      rotateY(540deg);
  }

  100% {
    opacity: 0;
    transform:
      translate3d(
        var(--spread),
        calc(100dvh + 16vw),
        0
      )
      rotateZ(var(--spin))
      rotateY(900deg);
  }
}


html,
body {
  overflow-x: hidden;
}

@supports (overflow-x: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

body {
  touch-action: pan-y pinch-zoom;
} 