:root {
  color-scheme: dark;
  --ink: #f6fbff;
  --muted: #a9bfd0;
  --night: #06111d;
  --night-soft: #0a1a2b;
  --surface: rgba(12, 34, 54, 0.74);
  --line: rgba(151, 218, 236, 0.2);
  --cyan: #68e5f3;
  --cyan-deep: #1fb5ca;
  --gold: #ffc52f;
  --purple: #d448f1;
  --max: 1180px;
  --radius: 26px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(31, 181, 202, 0.14), transparent 28rem),
    radial-gradient(circle at 86% 64%, rgba(212, 72, 241, 0.09), transparent 30rem),
    var(--night);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--night);
  background: var(--cyan);
  border-radius: 8px;
  transform: translateY(-160%);
}

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

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

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), var(--max));
  min-height: 96px;
  transform: translateX(-50%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.brand img {
  width: 116px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.site-nav a {
  color: rgba(246, 251, 255, 0.82);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: white;
}

.language-link {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.78fr);
  min-height: 860px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 6;
  right: 0;
  bottom: 0;
  left: 0;
  height: 190px;
  background: linear-gradient(transparent, var(--night));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 10;
  align-self: center;
  width: min(100%, 670px);
  margin-left: max(24px, calc((100vw - var(--max)) / 2));
  padding: 150px 54px 126px 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hero-logo {
  width: min(520px, 92%);
  height: auto;
  margin: -32px 0 -14px -28px;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.34));
}

.hero-lead {
  max-width: 620px;
  margin: 0;
  color: #d9e6ef;
  font-size: clamp(1.12rem, 1.9vw, 1.42rem);
  line-height: 1.55;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: var(--gold);
  font-size: 0.79rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.status-dot {
  width: 9px;
  height: 9px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(255, 197, 47, 0.78);
}

.store-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.store-status span {
  padding: 8px 13px;
  color: #bcd0dc;
  background: rgba(5, 16, 28, 0.66);
  border: 1px solid rgba(151, 218, 236, 0.2);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #06111d;
  background: var(--gold);
  box-shadow: 0 12px 34px rgba(255, 197, 47, 0.2);
}

.button-secondary {
  color: white;
  background: rgba(6, 17, 29, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.23);
}

.hero-art {
  position: relative;
  min-height: 860px;
  overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  filter: saturate(0.9) contrast(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--night) 0%, rgba(6, 17, 29, 0.34) 22%, transparent 48%),
    linear-gradient(0deg, rgba(6, 17, 29, 0.85), transparent 40%);
}

.hero-character {
  position: absolute;
  z-index: 3;
  right: clamp(-60px, -3vw, -24px);
  bottom: 48px;
  width: min(620px, 96%);
  height: auto;
  filter: drop-shadow(0 32px 35px rgba(0, 0, 0, 0.46));
}

.section {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 8vw, 110px);
  align-items: end;
  padding: 100px 0 72px;
}

h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.section-lead,
.world-copy p,
.release p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.7vw, 1.2rem);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 26px 0 112px;
}

.feature-card {
  position: relative;
  min-height: 390px;
  padding: 30px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(15, 45, 69, 0.9), rgba(7, 23, 39, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(104, 229, 243, 0.13), transparent 68%);
}

.feature-card img {
  width: 106px;
  height: 106px;
  object-fit: contain;
  margin: 2px 0 34px;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.3));
}

.card-number {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.feature-card h2 {
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.feature-card p:last-child {
  margin: 0;
  color: var(--muted);
}

.world {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: 650px;
  overflow: hidden;
  background: #0b2034;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
}

.world-image {
  min-height: 650px;
  background:
    linear-gradient(90deg, transparent 65%, #0b2034),
    url("/assets/crystal-ruins.webp") center 48% / cover no-repeat;
}

.world-copy {
  align-self: center;
  padding: clamp(42px, 7vw, 84px);
}

.world-copy h2 {
  margin-bottom: 28px;
  font-size: clamp(2.4rem, 4.5vw, 4rem);
}

.world-copy p + p {
  margin-top: 18px;
}

.release {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 110px);
  padding: 126px 0;
}

.release h2 {
  max-width: 570px;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.store-status-large {
  margin-top: 28px;
}

.store-status-large span {
  padding: 11px 16px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 52px 0 36px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: 108px;
  height: auto;
  margin-bottom: 8px;
}

.site-footer p {
  margin: 0;
  font-size: 0.88rem;
}

.site-footer a {
  color: #dceaf2;
  text-underline-offset: 3px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
  align-self: end;
  font-size: 0.86rem;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid rgba(151, 218, 236, 0.12);
}

.legal-body .site-header {
  position: relative;
}

.legal-main {
  width: min(calc(100% - 48px), 840px);
  min-height: 65vh;
  margin: 0 auto;
  padding: 92px 0 120px;
}

.legal-main .eyebrow {
  margin-bottom: 14px;
}

.legal-main h1 {
  margin: 0 0 20px;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.legal-intro {
  margin: 0 0 58px;
  color: #d8e7ef;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.updated {
  display: inline-block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.82rem;
}

.legal-section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin-bottom: 16px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.legal-section h3 {
  margin: 26px 0 8px;
  font-size: 1.08rem;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
}

.legal-section p {
  margin: 0;
}

.legal-section p + p {
  margin-top: 14px;
}

.legal-section ul,
.legal-section ol {
  padding-left: 22px;
}

.legal-section li + li {
  margin-top: 8px;
}

.legal-section a {
  color: var(--cyan);
  text-underline-offset: 3px;
}

.notice {
  margin: 28px 0;
  padding: 22px;
  color: #dcebf2;
  background: rgba(104, 229, 243, 0.08);
  border: 1px solid rgba(104, 229, 243, 0.24);
  border-radius: 18px;
}

.notice strong {
  color: white;
}

.support-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.support-card .button {
  margin-top: 20px;
}

@media (max-width: 900px) {
  .site-header {
    width: min(calc(100% - 32px), var(--max));
  }

  .site-nav a:not(.language-link) {
    display: none;
  }

  .hero {
    display: block;
    min-height: auto;
  }

  .hero-copy {
    width: auto;
    margin: 0;
    padding: 126px 24px 48px;
  }

  .hero-art {
    min-height: 680px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(6, 17, 29, 0.82), transparent 46%);
  }

  .hero-character {
    right: 50%;
    bottom: 16px;
    width: min(570px, 98%);
    transform: translateX(50%);
  }

  .intro,
  .release {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
  }

  .world {
    grid-template-columns: 1fr;
  }

  .world-image {
    min-height: 520px;
    background:
      linear-gradient(0deg, #0b2034, transparent 52%),
      url("/assets/crystal-ruins.webp") center 42% / cover no-repeat;
  }
}

@media (max-width: 560px) {
  .section,
  .site-footer {
    width: min(calc(100% - 32px), var(--max));
  }

  .hero-logo {
    width: 100%;
    margin-left: -14px;
  }

  .hero-art {
    min-height: 540px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .intro {
    padding-top: 76px;
  }

  .feature-grid {
    padding-bottom: 84px;
  }

  .feature-card {
    padding: 26px;
  }

  .world {
    width: 100%;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .world-image {
    min-height: 430px;
  }

  .world-copy {
    padding: 42px 24px 54px;
  }

  .release {
    padding: 88px 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .legal-main {
    width: min(calc(100% - 32px), 840px);
    padding: 64px 0 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
