:root {
  color-scheme: dark;
  --ink: #f8fbff;
  --muted: #adc4d8;
  --navy: #050d27;
  --navy-2: #0a1b42;
  --cyan: #5ff1ed;
  --aqua: #16c9de;
  --gold: #ffd34e;
  --coral: #ff6a68;
  --line: rgba(126, 224, 240, 0.24);
  --panel: rgba(7, 20, 52, 0.78);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--navy);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 74% 10%, rgba(38, 201, 221, 0.19), transparent 34%),
    linear-gradient(135deg, #050c25 0%, #08173c 46%, #072a50 100%);
  font-family:
    Avenir Next,
    Nunito Sans,
    ui-rounded,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -4;
  background-image:
    linear-gradient(rgba(92, 225, 238, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 225, 238, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.ocean-glow {
  position: fixed;
  z-index: -3;
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
}

.ocean-glow--one {
  top: -35vw;
  right: -20vw;
  width: 72vw;
  height: 72vw;
  border: 2px solid rgba(63, 236, 241, 0.13);
  box-shadow:
    0 0 0 5vw rgba(42, 207, 227, 0.035),
    0 0 0 11vw rgba(42, 207, 227, 0.025);
}

.ocean-glow--two {
  bottom: -32vw;
  left: -25vw;
  width: 65vw;
  height: 65vw;
  background: rgba(23, 179, 214, 0.08);
}

.foam {
  position: fixed;
  z-index: -2;
  width: 38vw;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(90, 232, 240, 0.34), transparent);
  filter: blur(1px);
  transform: rotate(-10deg);
}

.foam--one {
  right: -4vw;
  bottom: 24vh;
}

.foam--two {
  left: -12vw;
  bottom: 14vh;
  opacity: 0.5;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1440px, calc(100% - 72px));
  margin: 0 auto;
  padding: 30px 0;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(89, 232, 239, 0.45);
  border-radius: 13px;
  box-shadow: 0 10px 32px rgba(0, 196, 229, 0.25);
}

.beta-pill {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #dffcff;
  background: rgba(10, 31, 66, 0.62);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.beta-pill i,
.game-toolbar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

main {
  width: min(1440px, calc(100% - 72px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.88fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
  min-height: 670px;
  padding: 26px 0 58px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(66px, 7.5vw, 122px);
  font-weight: 950;
  letter-spacing: -0.075em;
  line-height: 0.78;
  text-wrap: balance;
}

h1 span {
  display: block;
  margin-top: 0.18em;
  color: transparent;
  background: linear-gradient(95deg, var(--cyan), #b9fff6 55%, var(--gold));
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 0 24px rgba(76, 235, 235, 0.18));
}

.lede {
  max-width: 600px;
  margin: 32px 0 28px;
  color: var(--muted);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.65;
}

.unlock-card {
  width: min(100%, 620px);
  padding: 20px;
  border: 1px solid rgba(89, 231, 239, 0.27);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(14, 42, 83, 0.92), rgba(6, 18, 47, 0.88));
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.26),
    inset 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px);
}

.unlock-card.is-unlocked {
  border-color: rgba(255, 211, 78, 0.48);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.28),
    0 0 44px rgba(255, 211, 78, 0.08);
}

.unlock-copy {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-bottom: 16px;
}

.unlock-copy .lock-mark {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 211, 78, 0.4);
  border-radius: 13px;
  color: var(--gold);
  background: rgba(255, 211, 78, 0.07);
  box-shadow: inset 0 0 18px rgba(255, 211, 78, 0.07);
}

.unlock-copy strong,
.unlock-copy small {
  display: block;
}

.unlock-copy strong {
  margin-bottom: 2px;
  font-size: 16px;
}

.unlock-copy small {
  color: #8fb2ca;
  font-size: 13px;
}

.password-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.password-row input {
  min-width: 0;
  height: 52px;
  padding: 0 17px;
  border: 1px solid rgba(122, 211, 230, 0.25);
  border-radius: 14px;
  outline: none;
  color: var(--ink);
  background: rgba(3, 12, 35, 0.7);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.password-row input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(95, 241, 237, 0.1);
}

.password-row input::placeholder {
  color: #6d8aa2;
}

.password-row button,
.play-button {
  min-height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  color: #07122f;
  background: linear-gradient(135deg, #78fff3, #45dce9 58%, #ffd34e);
  box-shadow: 0 12px 32px rgba(38, 221, 230, 0.22);
  font-weight: 900;
  letter-spacing: 0.01em;
  transition:
    transform 160ms ease,
    filter 160ms ease;
}

.password-row button {
  display: flex;
  gap: 20px;
  align-items: center;
}

.password-row button:hover,
.play-button:hover {
  filter: brightness(1.07);
  transform: translateY(-2px);
}

.password-row button:disabled {
  cursor: wait;
  filter: saturate(0.5);
  transform: none;
}

.play-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
}

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

.form-status {
  min-height: 18px;
  margin: 10px 2px -2px;
  color: #ffaaa7;
  font-size: 12px;
}

.quick-facts {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 25px;
  color: #789bb7;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.quick-facts b {
  margin-right: 4px;
  color: var(--gold);
  font-size: 17px;
}

.hero-art {
  position: relative;
  align-self: stretch;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(98, 230, 239, 0.2);
  border-radius: 42px 42px 160px 42px;
  background: #0a2247;
  box-shadow:
    0 50px 120px rgba(0, 0, 0, 0.32),
    0 0 70px rgba(0, 201, 225, 0.08);
  transform: rotate(1.5deg);
}

.hero-art::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(7, 16, 48, 0.08), transparent 58%),
    linear-gradient(90deg, rgba(4, 12, 37, 0.22), transparent 35%);
  content: "";
  pointer-events: none;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: scale(1.015) rotate(-1.5deg);
}

.art-halo {
  position: absolute;
  z-index: 3;
  right: -18%;
  bottom: -22%;
  width: 70%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 211, 78, 0.44);
  border-radius: 50%;
  box-shadow:
    0 0 0 38px rgba(255, 211, 78, 0.04),
    0 0 0 78px rgba(255, 211, 78, 0.025);
}

.speed-tag {
  position: absolute;
  z-index: 4;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: white;
  background: rgba(5, 15, 42, 0.7);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.speed-tag span {
  color: var(--gold);
}

.speed-tag--top {
  top: 24px;
  right: 24px;
}

.speed-tag--bottom {
  bottom: 35px;
  left: 24px;
}

.beta-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.beta-strip article {
  display: flex;
  gap: 17px;
  min-height: 126px;
  align-items: center;
  padding: 24px clamp(14px, 2.6vw, 38px);
}

.beta-strip article + article {
  border-left: 1px solid var(--line);
}

.strip-number {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.beta-strip strong {
  display: block;
  margin-bottom: 7px;
  font-size: 15px;
}

.beta-strip p {
  margin: 0;
  color: #789bb7;
  font-size: 13px;
  line-height: 1.5;
}

footer {
  display: flex;
  justify-content: space-between;
  width: min(1440px, calc(100% - 72px));
  margin: 0 auto;
  padding: 28px 0 42px;
  color: #6688a3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  grid-template-rows: 54px minmax(0, 1fr);
  background: #020713;
}

.game-overlay[hidden] {
  display: none;
}

.game-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 18px;
  border-bottom: 1px solid rgba(86, 216, 232, 0.2);
  background: #07142f;
}

.game-toolbar > div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.game-toolbar strong {
  font-size: 13px;
  letter-spacing: 0.03em;
}

.game-actions button {
  padding: 8px 12px;
  border: 1px solid rgba(106, 222, 235, 0.25);
  border-radius: 9px;
  color: #d9f7fa;
  background: rgba(18, 53, 89, 0.7);
  font-size: 12px;
  font-weight: 800;
}

.game-overlay iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #020713;
}

@media (max-width: 980px) {
  .site-header,
  main,
  footer {
    width: min(100% - 38px, 720px);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 44px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-art {
    min-height: min(900px, 118vw);
  }

  .beta-strip {
    grid-template-columns: 1fr;
  }

  .beta-strip article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-top: 20px;
  }

  .brand span {
    display: none;
  }

  .hero {
    gap: 30px;
    padding-top: 24px;
  }

  h1 {
    font-size: clamp(58px, 21vw, 88px);
  }

  .password-row {
    grid-template-columns: 1fr;
  }

  .password-row button {
    justify-content: space-between;
  }

  .hero-art {
    min-height: 540px;
    border-radius: 30px 30px 100px 30px;
  }

  .quick-facts {
    gap: 14px;
  }

  footer {
    gap: 14px;
    flex-direction: column;
  }

  .game-toolbar strong,
  #fullscreen-button {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: rise-in 720ms cubic-bezier(0.2, 0.78, 0.25, 1) both;
  }

  .hero-art {
    animation: art-in 900ms 100ms cubic-bezier(0.2, 0.78, 0.25, 1) both;
  }

  .beta-pill i,
  .game-toolbar i {
    animation: pulse 1.8s ease-in-out infinite;
  }

  @keyframes rise-in {
    from {
      opacity: 0;
      transform: translateY(26px);
    }
  }

  @keyframes art-in {
    from {
      opacity: 0;
      transform: translateX(34px) rotate(2deg) scale(0.98);
    }
  }

  @keyframes pulse {
    50% {
      opacity: 0.5;
      transform: scale(0.75);
    }
  }
}

