:root {
  color-scheme: dark;
  --scene-x: 0px;
  --scene-y: 0px;
  --title-x: 0px;
  --title-y: 0px;
  --logo-x: 0px;
  --logo-y: 0px;
  --accent-x: 0px;
  --accent-y: 0px;
  --glow-x: 50%;
  --glow-y: 50%;
  background: #10090d;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #10090d;
}

body {
  font-family: Impact, "Arial Black", sans-serif;
}

.coming-soon {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #10090d;
  touch-action: manipulation;
}

.scene-wrap {
  position: absolute;
  inset: -48px;
  z-index: -5;
  transform: translate3d(var(--scene-x), var(--scene-y), 0);
  will-change: transform, filter;
}

.scene {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.color-wash {
  position: absolute;
  inset: 0;
  z-index: -4;
  background:
    linear-gradient(90deg, rgba(10, 4, 9, 0.8) 0%, rgba(10, 4, 9, 0.28) 38%, transparent 66%),
    linear-gradient(0deg, rgba(8, 3, 7, 0.88) 0%, transparent 48%);
  pointer-events: none;
}

.color-wash::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 62%, transparent 0 22%, rgba(5, 2, 6, 0.26) 78%, rgba(5, 2, 6, 0.62) 100%);
}

.color-wash::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(255, 213, 0, 0.14), transparent 31%);
  mix-blend-mode: screen;
}

.rush-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  opacity: 0.56;
  pointer-events: none;
  transform: translate3d(var(--accent-x), var(--accent-y), 0);
  transition: opacity 180ms ease;
  will-change: transform;
}

.rush-lines i {
  position: absolute;
  top: var(--y);
  right: -52%;
  width: var(--w);
  height: 3px;
  background: linear-gradient(90deg, transparent, #fff 32%, #28d9ff 70%, transparent);
  box-shadow: 0 0 13px #23cfff;
  transform: skewX(-34deg);
  opacity: 0;
}

.slash {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  transform: skewX(-18deg);
  translate: var(--accent-x) var(--accent-y);
  will-change: translate;
}

.slash-red {
  top: -8vh;
  left: -11vw;
  width: clamp(90px, 12vw, 210px);
  height: 54vh;
  background: rgba(237, 20, 37, 0.9);
  mix-blend-mode: multiply;
}

.slash-yellow {
  right: -8vw;
  bottom: -20vh;
  width: clamp(80px, 9vw, 160px);
  height: 66vh;
  background: rgba(255, 213, 0, 0.84);
  mix-blend-mode: overlay;
}

.logo-shell {
  position: absolute;
  z-index: 8;
  top: max(42px, calc(env(safe-area-inset-top) + 28px));
  left: max(48px, calc(env(safe-area-inset-left) + 30px));
  display: grid;
  place-items: center;
  width: clamp(116px, 11vw, 176px);
  aspect-ratio: 1;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.48));
  translate: var(--logo-x) var(--logo-y);
  will-change: translate;
}

.logo-shell img {
  position: relative;
  z-index: 2;
  width: 74%;
  height: auto;
}

.rev-ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-right-color: #ffd500;
  border-bottom-color: #ed1425;
  border-radius: 50%;
  transform: rotate(-34deg);
}

.rev-ring::before,
.rev-ring::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.55);
  border-radius: 50%;
}

.rev-ring::after {
  inset: 18px;
  border-color: rgba(255, 213, 0, 0.36);
}

.rev-ring i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46%;
  height: 3px;
  background: #ffd500;
  box-shadow: 0 0 12px rgba(255, 213, 0, 0.9);
  transform: rotate(-118deg);
  transform-origin: left center;
}

h1 {
  position: absolute;
  z-index: 7;
  bottom: max(42px, calc(env(safe-area-inset-bottom) + 28px));
  left: max(48px, calc(env(safe-area-inset-left) + 30px));
  margin: 0;
  font-size: clamp(76px, 11.5vw, 190px);
  font-weight: 400;
  line-height: 0.7;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  transform: translate3d(var(--title-x), var(--title-y), 0) skewX(-4deg);
  transition: letter-spacing 180ms ease;
  will-change: transform;
}

h1::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -10% -16% -12% -8%;
  background: linear-gradient(94deg, rgba(8, 3, 7, 0.9) 0%, rgba(8, 3, 7, 0.68) 62%, transparent 100%);
  clip-path: polygon(0 8%, 92% 0, 100% 80%, 8% 100%);
}

.word {
  display: block;
  overflow: hidden;
  margin: -0.14em -0.2em -0.2em -0.1em;
  padding: 0.14em 0.2em 0.2em 0.1em;
}

.word > span {
  display: block;
  transform-origin: left center;
}

.word-img {
  display: block;
  width: auto;
  max-width: none;
  margin: -0.105em 0 0 0.036em;
}

.word-coming .word-img {
  height: 0.8025em;
}

.word-soon .word-img {
  height: 0.7975em;
}

.word-coming {
  color: #fffaf0;
  text-shadow: 6px 6px 0 #171015, 10px 10px 0 rgba(237, 20, 37, 0.95);
}

.word-soon {
  margin-left: 0.48em;
  color: #ffd500;
  text-shadow: 5px 5px 0 #171015, 9px 9px 0 rgba(237, 20, 37, 0.96);
}

.shutter {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.shutter i {
  position: absolute;
  left: -6%;
  width: 112%;
  height: 56%;
  background: #10090d;
}

.shutter i:first-child {
  top: -3%;
  border-bottom: 10px solid #ed1425;
  transform: skewY(-3deg);
}

.shutter i:last-child {
  bottom: -3%;
  border-top: 10px solid #ffd500;
  transform: skewY(-3deg);
}

.motion .shutter {
  display: block;
}

.motion .scene {
  transform: scale(1.22) rotate(0.5deg);
  filter: brightness(0.54) saturate(1.4) blur(2px);
}

.motion .logo-shell,
.motion h1 {
  opacity: 0;
}

.motion .word > span {
  transform: translateY(118%) skewX(-12deg);
}

.motion.is-ready .shutter i:first-child {
  animation: shutter-top 1.05s 180ms cubic-bezier(0.78, 0, 0.2, 1) forwards;
}

.motion.is-ready .shutter i:last-child {
  animation: shutter-bottom 1.05s 180ms cubic-bezier(0.78, 0, 0.2, 1) forwards;
}

.motion.is-ready .scene {
  animation:
    scene-arrive 1.45s 260ms cubic-bezier(0.16, 0.84, 0.22, 1) both,
    scene-breathe 2.8s 1.8s ease-in-out 1 alternate forwards;
}

.motion.is-ready .logo-shell {
  animation: logo-arrive 820ms 820ms cubic-bezier(0.18, 1.45, 0.34, 1) both;
}

.motion.is-ready .rev-ring {
  animation: rev-spin 1.1s 780ms cubic-bezier(0.16, 0.9, 0.24, 1) both;
}

.motion.is-ready .rev-ring i {
  animation: needle-redline 1.05s 820ms cubic-bezier(0.18, 0.84, 0.18, 1) both;
}

.motion.is-ready h1 {
  animation: title-visible 1ms 1.05s forwards;
}

.motion.is-ready .word-coming > span {
  animation: word-slam 700ms 1.05s cubic-bezier(0.18, 1.18, 0.28, 1) forwards;
}

.motion.is-ready .word-soon > span {
  animation: word-slam 700ms 1.19s cubic-bezier(0.18, 1.18, 0.28, 1) forwards;
}

.motion.is-ready .rush-lines i {
  animation: line-rush 2.2s var(--delay) linear 2;
}

.is-boosting .scene-wrap {
  transform: translate3d(var(--scene-x), var(--scene-y), 0) scale(1.035);
  filter: saturate(1.34) contrast(1.08);
}

.is-boosting .rush-lines {
  opacity: 1;
}

.is-boosting .rush-lines i {
  animation: line-burst 420ms linear both !important;
}

.is-boosting h1 {
  letter-spacing: -0.065em;
  transform: translate3d(var(--title-x), var(--title-y), 0) skewX(-7deg) scale(1.025);
}

@keyframes shutter-top {
  0%, 34% { transform: translateX(0) skewY(-3deg); }
  100% { transform: translateX(-108%) skewY(-3deg); }
}

@keyframes shutter-bottom {
  0%, 34% { transform: translateX(0) skewY(-3deg); }
  100% { transform: translateX(108%) skewY(-3deg); }
}

@keyframes scene-arrive {
  0% { transform: scale(1.22) rotate(0.5deg); filter: brightness(0.54) saturate(1.4) blur(2px); }
  58% { transform: scale(1.02) rotate(-0.25deg); filter: brightness(1.08) saturate(1.34) blur(0); }
  100% { transform: scale(1.06); filter: brightness(0.92) saturate(1.13) blur(0); }
}

@keyframes scene-breathe {
  from { transform: scale(1.06); }
  to { transform: scale(1.095) translate3d(-0.8%, -0.4%, 0); }
}

@keyframes logo-arrive {
  0% { opacity: 0; transform: scale(0.28) rotate(-16deg); }
  70% { opacity: 1; transform: scale(1.08) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes rev-spin {
  from { transform: rotate(-210deg) scale(0.72); opacity: 0; }
  to { transform: rotate(-34deg) scale(1); opacity: 1; }
}

@keyframes needle-redline {
  0% { transform: rotate(-118deg); }
  68% { transform: rotate(42deg); }
  82% { transform: rotate(24deg); }
  100% { transform: rotate(34deg); }
}

@keyframes title-visible {
  to { opacity: 1; }
}

@keyframes word-slam {
  0% { transform: translateY(118%) skewX(-12deg); }
  72% { transform: translateY(-6%) skewX(2deg); }
  100% { transform: translateY(0) skewX(0); }
}

@keyframes line-rush {
  0% { right: -52%; opacity: 0; transform: skewX(-34deg) scaleX(0.45); }
  12% { opacity: 0.92; }
  72% { opacity: 0.72; }
  100% { right: 112%; opacity: 0; transform: skewX(-34deg) scaleX(1.3); }
}

@keyframes line-burst {
  0% { right: -52%; opacity: 0; transform: skewX(-34deg) scaleX(0.45); }
  22% { opacity: 1; }
  100% { right: 112%; opacity: 0; transform: skewX(-34deg) scaleX(1.3); }
}

@media (max-width: 680px) {
  .scene {
    object-position: 58% center;
  }

  .color-wash {
    background: linear-gradient(0deg, rgba(8, 3, 7, 0.92) 0%, rgba(8, 3, 7, 0.16) 58%, rgba(8, 3, 7, 0.44) 100%);
  }

  .slash-red {
    left: -20vw;
    width: 31vw;
  }

  .slash-yellow {
    right: -19vw;
    width: 28vw;
  }

  .logo-shell {
    top: max(26px, calc(env(safe-area-inset-top) + 16px));
    left: 50%;
    width: clamp(100px, 29vw, 126px);
    transform: translateX(-50%);
  }

  .motion.is-ready .logo-shell {
    animation: logo-arrive-mobile 820ms 820ms cubic-bezier(0.18, 1.45, 0.34, 1) both;
  }

  h1 {
    right: 22px;
    bottom: max(32px, calc(env(safe-area-inset-bottom) + 22px));
    left: 22px;
    font-size: clamp(62px, 20.5vw, 94px);
    line-height: 0.74;
    text-align: center;
  }

  h1::before {
    inset: -8% -6% -14%;
  }

  .word-soon {
    margin-left: 0;
  }

  .word-img {
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .logo-shell {
    top: max(20px, calc(env(safe-area-inset-top) + 12px));
    left: max(20px, calc(env(safe-area-inset-left) + 12px));
    width: 82px;
    transform: none;
  }

  .motion.is-ready .logo-shell {
    animation: logo-arrive 820ms 820ms cubic-bezier(0.18, 1.45, 0.34, 1) both;
  }

  h1 {
    right: 24px;
    bottom: 22px;
    left: max(28px, calc(env(safe-area-inset-left) + 20px));
    font-size: clamp(50px, 9vw, 76px);
    line-height: 0.76;
    text-align: left;
  }

  .word-soon {
    margin-left: 0.48em;
  }
}

@keyframes logo-arrive-mobile {
  0% { opacity: 0; transform: translateX(-50%) scale(0.28) rotate(-16deg); }
  70% { opacity: 1; transform: translateX(-50%) scale(1.08) rotate(2deg); }
  100% { opacity: 1; transform: translateX(-50%) scale(1) rotate(0); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .shutter,
  .rush-lines {
    display: none !important;
  }

  .scene-wrap,
  .scene,
  .logo-shell,
  h1,
  .word > span,
  .rev-ring,
  .rev-ring i {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    translate: none !important;
  }

  .logo-shell {
    transform: none !important;
  }
}

@media (max-width: 680px) and (prefers-reduced-motion: reduce) {
  .logo-shell {
    transform: translateX(-50%) !important;
  }
}

@media (max-height: 520px) and (orientation: landscape) and (prefers-reduced-motion: reduce) {
  .logo-shell {
    transform: none !important;
  }
}
