.sky-scene {
  position: relative;
  display: flow-root;
  isolation: isolate;
}

[data-layout="classic"] .sky-scene .app-shell {
  position: relative;
  z-index: 1;
  /* Keep clouds behind every panel, including transparent child surfaces. */
  background: #201e49;
}

.cloud-scenery {
  position: absolute;
  inset: 0 0 43px;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.cloud-scenery > div {
  position: absolute;
  top: var(--top);
  left: -160px;
  background-repeat: no-repeat;
  animation: scenery-cloud-drift var(--speed) linear var(--delay) infinite;
}

.cloud-scenery > [data-type="1"] {
  width: 60px;
  height: 60px;
  background-image: url("/decoration/tus-clouds/cloudbg1.gif");
}
.cloud-scenery > [data-type="2"] {
  width: 160px;
  height: 160px;
  background-image: url("/decoration/tus-clouds/cloudbg2.gif");
}
.cloud-scenery > [data-type="3"] {
  width: 128px;
  height: 128px;
  background-image: url("/decoration/tus-clouds/cloudbg3.gif");
}
.cloud-scenery > [data-direction="right"] {
  animation-direction: reverse;
}

@keyframes scenery-cloud-drift {
  from {
    left: -160px;
  }
  to {
    left: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cloud-scenery {
    display: none;
  }
}

.classic-masthead > .banner-cloud-scenery {
  inset: 0;
  z-index: -1;
  opacity: 0.75;
  border-radius: inherit;
}

[data-layout="classic"] .app-shell {
  margin-bottom: 0;
}

[data-layout="classic"] .site-footer {
  position: relative;
  padding-bottom: 38px;
}

[data-layout="classic"] .site-footer > span {
  position: relative;
  z-index: 2;
}

.water-scenery {
  position: relative;
  z-index: 1;
  height: 210px;
  /* The GIF has at least 8px of transparent space above each wave crest. */
  margin-top: -43px;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  isolation: isolate;
}

.water-scenery::before {
  content: "";
  position: absolute;
  inset: 48px 0 0;
  background: #323b7e;
}

.water-scenery .waterlayer {
  position: absolute;
  inset-inline: 0;
  top: var(--wave-top);
  height: 48px;
  background: url("/decoration/tus-water/layer.gif") repeat-x;
  background-position: var(--wave-offset) 0;
}

.water-scenery .water-bubbles {
  position: absolute;
  inset: 65px 0 0;
  overflow: hidden;
}

.water-scenery .water-bubbles > div {
  position: absolute;
  left: var(--left);
  bottom: -60px;
  width: 60px;
  height: 60px;
  background-repeat: no-repeat;
  animation: water-bubble-rise var(--speed) linear var(--delay) infinite;
}
.water-scenery .water-bubbles > [data-type="1"] {
  background-image: url("/decoration/tus-water/bubble1.gif");
}
.water-scenery .water-bubbles > [data-type="2"] {
  background-image: url("/decoration/tus-water/bubble2.gif");
}
.water-scenery .water-bubbles > [data-type="3"] {
  background-image: url("/decoration/tus-water/bubble3.gif");
}
.water-scenery .water-bubbles > [data-type="4"] {
  background-image: url("/decoration/tus-water/bubble4.gif");
}

@keyframes water-bubble-rise {
  0% {
    bottom: -60px;
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    bottom: 120%;
    opacity: 0;
  }
}

@media (max-width: 720px) {
  .water-scenery {
    height: 170px;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* GIFs animate independently of CSS: hide them as well as the movement. */
  .water-scenery .waterlayer,
  .water-scenery .water-bubbles {
    display: none;
  }
  .water-scenery::before {
    inset-block-start: 18px;
  }
}

.startup-loading {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: linear-gradient(145deg, #25244c, #41457b);
  overflow: hidden;
}
.startup-loading > .cloud-scenery {
  inset: 0 0 43px;
  z-index: -1;
}
.startup-loading-center {
  position: absolute;
  /* Keep this layer unstacked so the GIF's screen blend reaches the sky. */
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px 24px 100px;
}
.startup-loading-spinner {
  width: min(300px, 65vw);
  height: auto;
  object-fit: contain;
  mix-blend-mode: screen;
  margin-top: -20px;
  animation: none !important;
}
.startup-loading .classic-wordmark.startup-loading-wordmark {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 100%;
  margin: 0 0 24px;
  padding: 8px;
  animation: startup-title-pulse 2.8s ease-in-out infinite;
}
@keyframes startup-title-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.035);
  }
}
.startup-loading-wordmark .classic-wordmark-title {
  font-size: clamp(24px, 4.5vw, 46px);
}
.startup-loading-olympic {
  width: min(320px, 70vw);
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 1;
  filter: brightness(0) invert(1) drop-shadow(0 0 4px #fff)
    drop-shadow(0 0 14px #fff);
  animation: startup-olympic-pulse 2.4s ease-in-out infinite;
}
@keyframes startup-olympic-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.045);
  }
}
@media (prefers-reduced-motion: reduce) {
  .startup-loading .classic-wordmark.startup-loading-wordmark,
  .startup-loading-olympic {
    animation: none;
  }
}
.startup-loading > .water-scenery {
  position: absolute;
  inset: auto 0 0;
  margin: 0;
  height: 170px;
}
.startup-loading-error {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: Arial, Helvetica, sans-serif; color: #fff; background: #25244c; }
.classic-wordmark { display: flex; }
.classic-wordmark-title {
  font-family: Arial, Helvetica, sans-serif; font-weight: 900; font-style: normal;
  line-height: 1.12; letter-spacing: 1px; white-space: nowrap;
  text-shadow: 1px 2px 0 #342759, 2px 3px 1px #342759, 0 0 12px #fff9;
  -webkit-text-stroke: 1px #34275988;
}
.classic-wordmark-title span { display: inline-block; }
.classic-wordmark-title span:nth-child(4n + 1) { color: #51d5ff; transform: rotate(-10deg) translateY(-1px); }
.classic-wordmark-title span:nth-child(4n + 2) { color: #ff547f; transform: rotate(9deg) translateY(2px); }
.classic-wordmark-title span:nth-child(4n + 3) { color: #5eff8f; transform: rotate(-7deg) translateY(-2px); }
.classic-wordmark-title span:nth-child(4n) { color: #ffe13c; transform: rotate(12deg); }
.coming-soon { position: relative; inset: auto; min-height: 100svh; padding-bottom: 170px; overflow: hidden; }
.coming-soon .startup-loading-center { position: relative; min-height: calc(100svh - 170px); padding: 24px 20px; z-index: 1; }
.coming-soon .startup-loading-wordmark { flex-shrink: 0; }
.coming-soon > .cloud-scenery { z-index: 0; }
.coming-soon > .water-scenery { position: absolute; z-index: 2; }
.coming-soon-message { margin: 24px 0 16px; font-size: clamp(16px, 2.5vw, 20px); text-align: center; text-shadow: 0 2px 6px #161334; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: min(520px, 100%); }
.countdown-unit { min-width: 0; padding: 16px 8px 12px; border: 1px solid #a7a6e0; border-radius: 9px; background: linear-gradient(#717ac3, #424b87); box-shadow: 0 7px 24px #15132f55; text-align: center; }
.countdown-value { display: block; font-size: clamp(28px, 6vw, 48px); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; text-shadow: 1px 2px 0 #30275c; }
.countdown-label { display: block; margin-top: 8px; font-size: 12px; letter-spacing: 1px; }
.launch-date { margin: 20px 0 0; font-size: 14px; text-align: center; line-height: 1.6; }
noscript { display: block; text-align: center; margin-top: 12px; }
@media (max-height: 800px) and (min-width: 600px) {
  .coming-soon .startup-loading-wordmark { margin-bottom: 12px; }
  .coming-soon .classic-wordmark-title { font-size: 32px; }
  .coming-soon .startup-loading-olympic { width: 190px; }
  .coming-soon-message { margin-top: 16px; }
  .coming-soon { padding-bottom: 130px; }
  .coming-soon .startup-loading-center { min-height: calc(100svh - 130px); }
  .coming-soon > .water-scenery { height: 130px; }
}
@media (max-width: 420px) { .countdown { gap: 7px; } .countdown-label { font-size: 10px; letter-spacing: 0; } }
