:root {
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #fbf7ff;
  background: #121023;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #bfeaff; outline-offset: 4px; }

.stage {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(1rem, 3.4vh, 2rem) 1rem;
  border: 1px solid #7f91c16e;
}

.rooms, .avatars, .room, .rooms::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.rooms { z-index: -3; }
.room {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.room.current { opacity: 1; }
.rooms::after {
  content: "";
  background:
    radial-gradient(ellipse at 50% 44%, #100d2060, #100d2058 47%, #100d208a 100%),
    linear-gradient(0deg, #111022f5, transparent 45%, #11102276 100%);
}
.avatars { z-index: -2; }
.avatar {
  position: absolute;
  bottom: 0;
  width: min(36vw, 33rem);
  height: 92%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 1rem 2rem #0d082dc2);
  mask-image: linear-gradient(0deg, transparent, #000 14%);
  opacity: 0;
  transition: opacity 1.2s ease;
}
.avatar.current { opacity: 1; }
.avatar.left { left: max(-3%, calc((100vw - 102rem) / 2)); }
.avatar.right { right: max(-3%, calc((100vw - 102rem) / 2)); }
.studio img { display: block; width: clamp(6.7rem, 10vw, 9rem); height: auto; }

.launch-card {
  width: min(100%, 33rem);
  margin-block: 1rem;
  padding: clamp(1.1rem, 4vw, 2.25rem);
  border: 1px solid #a9aff484;
  border-radius: clamp(1.2rem, 4vw, 2rem);
  background: linear-gradient(160deg, #29223ad9, #141328e8 70%, #211b37e6);
  box-shadow: inset 0 1px #e3e9ff32, 0 1.1rem 4.5rem #0b0719a6;
  backdrop-filter: blur(12px);
  text-align: center;
}
.wordmark { display: block; width: min(100%, 25rem); height: auto; margin: 0 auto .6rem; }
h1 { margin: 0; font-size: clamp(2.25rem, 6vw, 4.1rem); line-height: 1; letter-spacing: -.06em; }
.premise { color: #e7dcff; margin: .8rem 0 0; }
.launch-date { color: #d9c8f8; margin: 1.3rem 0 .75rem; font-size: .92rem; }
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.24rem, 1vw, .6rem);
}
.countdown > div {
  display: grid;
  justify-items: center;
  gap: .22rem;
  padding: .65rem .1rem .58rem;
  border: 1px solid #a7b3fa45;
  border-radius: .75rem;
  background: linear-gradient(180deg, #c5b6ff2c, #432b7940);
  color: #e9dfff;
}
.countdown strong { font-size: clamp(1.35rem, 4.2vw, 2.55rem); font-variant-numeric: tabular-nums; line-height: 1.1; }
.countdown span { font-size: clamp(.61rem, 2.3vw, .78rem); }
.launch-link {
  display: inline-block;
  border: 1px solid #a7b3fa75;
  border-radius: .7rem;
  padding: .68rem 1.1rem;
  background: #251e3ac9;
  color: inherit;
  font-weight: 650;
  text-decoration: none;
}
.launch-social {
  display: flex;
  justify-content: center;
  gap: clamp(.35rem, 2vw, .65rem);
  margin-top: 1rem;
}
.launch-social a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  aspect-ratio: 1;
  border: 1px solid #a7b3fa75;
  border-radius: .65rem;
  background: linear-gradient(165deg, #d6c7ff2e, #37245242 72%);
  box-shadow: inset 0 1px #e3e9ff30;
  color: #fff;
}
.launch-social a:hover {
  border-color: #c9c6ff;
  background: linear-gradient(165deg, #d6c7ff50, #4c34726e 72%);
}
.launch-social svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}
@media (max-width: 760px) {
  .stage { border-bottom: 0; }
  .avatar { width: 48vw; height: 72%; }
  .avatar.left { left: -11vw; }
  .avatar.right { right: -11vw; }
  .launch-card { width: min(88vw, 28rem); }
}
@media (max-width: 520px) and (orientation: portrait) {
  .stage { padding-bottom: .7rem; }
  .launch-card { align-self: end; margin-bottom: clamp(2rem, 13vh, 6rem); }
  .avatar { width: 66vw; height: 72%; bottom: 16%; }
  .avatar.left { left: -16vw; }
  .avatar.right { right: -16vw; }
}
@media (prefers-reduced-motion: reduce) {
  .room, .avatar { transition: none; }
}
