:root {
  --background: #02040a;
  --gold: #d4af37;
  --gold-light: #f5d878;
  --text: #f7f7f8;
  --muted: #9198a3;
  --line: rgba(255, 255, 255, 0.09);
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--background);
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  background: var(--background);
  font-family: Bahnschrift, "Segoe UI Variable", "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

button,
select {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
  user-select: none;
}

::selection {
  color: #0d0a03;
  background: var(--gold-light);
}

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  color: #0d0a03;
  background: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

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

.cinema__navy,
.cinema__gold {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -52%);
}

.cinema__navy {
  width: min(112vmin, 68rem);
  height: min(112vmin, 68rem);
  background: radial-gradient(
    circle,
    rgba(7, 17, 28, 0.94) 0%,
    rgba(3, 9, 16, 0.52) 42%,
    rgba(2, 4, 10, 0) 72%
  );
  opacity: 0;
  animation: background-in 2.4s var(--ease) 100ms forwards;
}

.cinema__gold {
  width: min(48vmin, 25rem);
  height: min(48vmin, 25rem);
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.17) 0%,
    rgba(212, 175, 55, 0.045) 43%,
    transparent 72%
  );
  filter: blur(36px);
  opacity: 0;
  animation:
    gold-in 1.9s var(--ease) 550ms forwards,
    gold-breathe 6s ease-in-out 2.5s infinite;
}

.cinema__particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: var(--gold-light);
  opacity: 0;
  animation: particle-drift var(--duration) ease-in-out var(--delay) infinite;
}

.particle:nth-child(1) { --size: 1.9px; --delay: 0.3s; --duration: 14s; --opacity: 0.18; left: 8%; top: 68%; }
.particle:nth-child(2) { --size: 2.4px; --delay: 1.1s; --duration: 17s; --opacity: 0.22; left: 15%; top: 23%; }
.particle:nth-child(3) { --size: 1.4px; --delay: 3.2s; --duration: 13s; --opacity: 0.16; left: 23%; top: 82%; }
.particle:nth-child(4) { --size: 2.1px; --delay: 2.4s; --duration: 19s; --opacity: 0.2; left: 31%; top: 37%; }
.particle:nth-child(5) { --size: 1.6px; --delay: 4.7s; --duration: 16s; --opacity: 0.14; left: 39%; top: 13%; }
.particle:nth-child(6) { --size: 2.8px; --delay: 0.8s; --duration: 20s; --opacity: 0.19; left: 45%; top: 72%; }
.particle:nth-child(7) { --size: 1.3px; --delay: 5.1s; --duration: 15s; --opacity: 0.2; left: 52%; top: 25%; }
.particle:nth-child(8) { --size: 2.2px; --delay: 1.8s; --duration: 18s; --opacity: 0.17; left: 59%; top: 87%; }
.particle:nth-child(9) { --size: 1.7px; --delay: 3.8s; --duration: 13s; --opacity: 0.23; left: 66%; top: 44%; }
.particle:nth-child(10) { --size: 2.5px; --delay: 0.1s; --duration: 21s; --opacity: 0.16; left: 74%; top: 16%; }
.particle:nth-child(11) { --size: 1.5px; --delay: 2.9s; --duration: 15s; --opacity: 0.19; left: 81%; top: 69%; }
.particle:nth-child(12) { --size: 2px; --delay: 4.2s; --duration: 18s; --opacity: 0.14; left: 89%; top: 34%; }
.particle:nth-child(13) { --size: 1.8px; --delay: 1.5s; --duration: 16s; --opacity: 0.21; left: 11%; top: 47%; }
.particle:nth-child(14) { --size: 2.3px; --delay: 5.6s; --duration: 20s; --opacity: 0.15; left: 28%; top: 59%; }
.particle:nth-child(15) { --size: 1.2px; --delay: 2.1s; --duration: 14s; --opacity: 0.24; left: 57%; top: 56%; }
.particle:nth-child(16) { --size: 2.6px; --delay: 3.5s; --duration: 19s; --opacity: 0.17; left: 71%; top: 78%; }
.particle:nth-child(17) { --size: 1.6px; --delay: 0.6s; --duration: 17s; --opacity: 0.2; left: 85%; top: 52%; }
.particle:nth-child(18) { --size: 2.1px; --delay: 4.9s; --duration: 15s; --opacity: 0.13; left: 94%; top: 83%; }

.launch {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100svh;
  padding: max(1.25rem, env(safe-area-inset-top)) 1.25rem
    max(5.5rem, calc(env(safe-area-inset-bottom) + 4.5rem));
  place-items: center;
}

.launch__content {
  display: flex;
  width: min(100%, 40rem);
  align-items: center;
  flex-direction: column;
  text-align: center;
  transform: translateY(-1.25rem);
}

.mark {
  position: relative;
  width: clamp(13.5rem, 34vw, 25rem);
  opacity: 0;
  filter: blur(18px);
  transform: scale(0.92);
  animation: mark-in 1.8s var(--ease) 350ms forwards;
}

.mark__halo {
  position: absolute;
  z-index: -1;
  inset: 14% 10%;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.11);
  filter: blur(45px);
}

.mark__image {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 42px rgba(0, 0, 0, 0.36));
}

.launch__message {
  display: flex;
  margin-top: clamp(1.25rem, 2.7vh, 2rem);
  align-items: center;
  flex-direction: column;
}

.wordmark,
.status,
.tagline,
.intro,
.platforms {
  opacity: 0;
  transform: translateY(12px);
  animation: content-in 650ms var(--ease) forwards;
}

.wordmark {
  width: clamp(8.6rem, 17vw, 11.5rem);
  height: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.06));
  animation-delay: 1.75s;
}

.status {
  display: inline-flex;
  min-height: 2rem;
  padding: 0 0.8rem;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 999px;
  align-items: center;
  gap: 0.55rem;
  background: rgba(212, 175, 55, 0.055);
  animation-delay: 1.9s;
}

.status__dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1), 0 0 14px var(--gold);
  animation: status-pulse 2.6s ease-in-out infinite;
}

h1 {
  margin: 0;
  color: #e8d9a0;
  font-size: clamp(0.72rem, 1.5vw, 0.82rem);
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.tagline {
  margin: 1rem 0 0;
  color: #d6d9df;
  font-size: clamp(0.94rem, 2vw, 1.06rem);
  font-weight: 650;
  letter-spacing: -0.015em;
  animation-delay: 2.05s;
}

.intro {
  max-width: 28rem;
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: clamp(0.78rem, 1.65vw, 0.88rem);
  line-height: 1.65;
  animation-delay: 2.2s;
}

.platforms {
  display: flex;
  margin-top: 1.25rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  animation-delay: 2.35s;
}

.platform-icon {
  display: inline-grid;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
  color: #7f8792;
  background: rgba(255, 255, 255, 0.018);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.platform-icon:hover {
  border-color: rgba(212, 175, 55, 0.3);
  color: #d8c98f;
  background: rgba(212, 175, 55, 0.055);
  transform: translateY(-2px);
}

.platform-icon svg {
  width: 1rem;
  height: 1rem;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.platform-icon--android svg,
.platform-icon--apple svg {
  fill: currentColor;
  stroke: none;
}

.site-footer {
  position: fixed;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  min-height: 4rem;
  padding: 0.8rem 1.2rem max(0.8rem, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: #656d78;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(2, 4, 10, 0.3));
  font-size: 0.68rem;
  opacity: 0;
  animation: footer-in 700ms var(--ease) 2.6s forwards;
  backdrop-filter: blur(5px);
}

.site-footer__divider {
  width: 1px;
  height: 0.75rem;
  background: rgba(255, 255, 255, 0.09);
}

.language-picker {
  display: inline-flex;
  height: 1.9rem;
  padding: 0 0.3rem 0 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  align-items: center;
  background: rgba(255, 255, 255, 0.025);
}

.language-picker select {
  min-width: 2.8rem;
  border: 0;
  outline: 0;
  color: #a4abb4;
  background: transparent;
  cursor: pointer;
  font-size: 0.67rem;
  font-weight: 800;
}

.language-picker option {
  color: var(--text);
  background: #070b11;
}

.noscript {
  position: fixed;
  z-index: 20;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  padding: 0.8rem;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 0.75rem;
  color: #ddd2aa;
  background: #090b0f;
  font-size: 0.78rem;
  text-align: center;
}

.is-loading .launch__content,
.is-loading .site-footer {
  visibility: hidden;
}

.is-paused .particle,
.is-paused .cinema__gold,
.is-paused .status__dot {
  animation-play-state: paused;
}

@keyframes background-in {
  to {
    opacity: 1;
  }
}

@keyframes gold-in {
  from {
    opacity: 0;
    transform: translate(-50%, -52%) scale(0.7);
  }
  to {
    opacity: 0.76;
    transform: translate(-50%, -52%) scale(1);
  }
}

@keyframes gold-breathe {
  0%,
  100% {
    opacity: 0.56;
    transform: translate(-50%, -52%) scale(1);
  }
  50% {
    opacity: 0.76;
    transform: translate(-50%, -52%) scale(1.04);
  }
}

@keyframes mark-in {
  to {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

@keyframes content-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes footer-in {
  to {
    opacity: 1;
  }
}

@keyframes particle-drift {
  0% {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }
  18%,
  80% {
    opacity: var(--opacity);
  }
  100% {
    opacity: 0;
    transform: translate3d(12px, -46px, 0);
  }
}

@keyframes status-pulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.94);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

[dir="rtl"] .language-picker {
  padding: 0 0.55rem 0 0.3rem;
}

@media (max-height: 680px) {
  .launch__content {
    transform: translateY(-0.5rem);
  }

  .mark {
    width: clamp(10rem, 29vw, 15rem);
  }

  .launch__message {
    margin-top: 0.75rem;
  }

  .wordmark {
    width: 8rem;
    margin-bottom: 0.65rem;
  }

  .tagline {
    margin-top: 0.7rem;
  }

  .platforms {
    margin-top: 0.8rem;
  }
}

@media (max-width: 520px) {
  .launch {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .launch__content {
    transform: translateY(-0.75rem);
  }

  .mark {
    width: min(72vw, 17rem);
  }

  .site-footer {
    gap: 0.6rem;
  }

  .particle:nth-child(n + 11) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .particle {
    display: none;
  }
}