:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #5c6773;
  --line: #d9dee4;
  --panel: #f6f8fb;
  --accent: #0f766e;
  --accent-ink: #0b4f4a;
  --paper: #ffffff;
  --warn-bg: #fff7ed;
  --warn-line: #fed7aa;
}

* {
  box-sizing: border-box;
}

html {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

body {
  margin: 0;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--accent-ink);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.nav {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  color: var(--ink);
  font-weight: 760;
  font-size: 1.05rem;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  font-size: 0.94rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.container {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.wide-container {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0;
  margin: 0 0 10px;
}

h1 {
  font-size: 3.4rem;
  line-height: 1.04;
  letter-spacing: 0;
  margin: 0 0 18px;
}

.legal-page h1 {
  font-size: 2.65rem;
}

h2 {
  font-size: 1.34rem;
  line-height: 1.25;
  letter-spacing: 0;
  margin: 38px 0 10px;
}

h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 24px 0 8px;
}

p,
li {
  font-size: 1rem;
}

p {
  margin: 0 0 16px;
}

ul,
ol {
  padding-left: 1.35rem;
  margin: 0 0 16px;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.15rem;
}

.updated {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0 0 30px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
}

.card h2 {
  margin: 0 0 8px;
}

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

.notice {
  border: 1px solid var(--warn-line);
  background: var(--warn-bg);
  border-radius: 8px;
  padding: 16px 18px;
  margin: 28px 0;
}

.notice p:last-child {
  margin-bottom: 0;
}

.contact-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--panel);
}

.legal-document {
  overflow-wrap: anywhere;
}

.legal-document > :last-child {
  margin-bottom: 0;
}

.legal-document h2,
.legal-document h3 {
  scroll-margin-top: 20px;
}

.legal-document h2 {
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.legal-document strong {
  font-weight: 760;
}

.legal-toc {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px 18px;
  margin: 24px 0 34px;
}

.legal-toc h2 {
  border: 0;
  padding: 0;
  margin: 0 0 10px;
  font-size: 1rem;
}

.legal-toc ol {
  columns: 2;
  column-gap: 28px;
  margin-bottom: 0;
}

.legal-toc li {
  break-inside: avoid;
  font-size: 0.94rem;
  margin: 0 0 6px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
}

.footer-inner a {
  color: var(--muted);
}

.home-page {
  color-scheme: dark;
  min-height: 100svh;
  overflow-x: hidden;
  color: #f7fbff;
  background:
    radial-gradient(circle at 88% 12%, rgba(80, 245, 212, 0.2), transparent 27rem),
    radial-gradient(circle at 7% 44%, rgba(255, 79, 216, 0.16), transparent 30rem),
    radial-gradient(circle at 76% 72%, rgba(138, 215, 255, 0.12), transparent 34rem),
    radial-gradient(circle at 15% 94%, rgba(255, 209, 102, 0.09), transparent 25rem),
    #05070a;
}

.home-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.home-shell {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.home-nav,
.home-main,
.home-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.home-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f7fbff;
  font-size: 1.18rem;
  font-weight: 820;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.home-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(80, 245, 212, 0.22);
}

.home-nav-links,
.home-actions,
.home-legal {
  display: flex;
  align-items: center;
}

.home-nav-links {
  gap: 10px;
}

.home-nav-link,
.home-download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 0 17px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.home-nav-link {
  color: rgba(247, 251, 255, 0.65);
}

.home-download-link {
  color: #08110f;
  background: linear-gradient(120deg, #74f2ce, #8ad7ff);
  box-shadow: 0 10px 30px rgba(80, 245, 212, 0.18);
}

.home-nav-link:hover {
  color: #ffffff;
}

.home-download-link:hover {
  color: #08110f;
  background: #9bffe2;
}

.home-main {
  flex: 1;
}

.home-hero {
  min-height: min(800px, calc(100svh - 98px));
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: clamp(56px, 8vw, 112px);
  padding: 72px 0 116px;
}

.home-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  color: #74f2ce;
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-kicker > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #74f2ce;
  box-shadow: 0 0 18px rgba(116, 242, 206, 0.8);
}

.home-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(4rem, 8.2vw, 7.2rem);
  line-height: 0.88;
  font-weight: 850;
  letter-spacing: -0.075em;
}

.home-hero h1 span {
  display: block;
  color: #74f2ce;
}

.home-hero h1 em {
  color: #ffffff;
  font-style: normal;
  background: linear-gradient(100deg, #74f2ce 12%, #8ad7ff 56%, #c8a5ff 92%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-hero h1 span {
  width: fit-content;
  background: linear-gradient(95deg, #74f2ce 4%, #8ad7ff 42%, #ff78dc 92%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-lead {
  max-width: 610px;
  margin: 30px 0 0;
  color: rgba(247, 251, 255, 0.7);
  font-size: 1.16rem;
  line-height: 1.68;
}

.home-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.home-primary-action,
.home-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-radius: 999px;
  padding: 0 23px;
  font-size: 0.94rem;
  font-weight: 760;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.home-primary-action {
  color: #08110f;
  background: linear-gradient(115deg, #74f2ce, #8ad7ff);
  box-shadow:
    0 16px 40px rgba(38, 191, 149, 0.2),
    0 0 54px rgba(138, 215, 255, 0.12);
}

.home-secondary-action {
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(247, 251, 255, 0.86);
  background: rgba(255, 255, 255, 0.05);
}

.home-primary-action:hover,
.home-secondary-action:hover {
  transform: translateY(-2px);
}

.home-primary-action:hover {
  color: #08110f;
  background: #9bffe2;
}

.home-secondary-action:hover {
  border-color: rgba(255, 255, 255, 0.32);
  color: #ffffff;
}

.home-meta {
  margin: 18px 0 0;
  color: rgba(247, 251, 255, 0.4);
  font-size: 0.84rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-tags span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 7px 11px;
  color: rgba(247, 251, 255, 0.62);
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.045);
}

.hero-tags span:nth-child(1) { border-color: rgba(116, 242, 206, 0.3); }
.hero-tags span:nth-child(2) { border-color: rgba(138, 215, 255, 0.3); }
.hero-tags span:nth-child(3) { border-color: rgba(255, 120, 220, 0.3); }

.world-stage {
  position: relative;
  aspect-ratio: 0.84;
  width: min(100%, 470px);
  justify-self: end;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 38px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 120, 220, 0.2), transparent 31%),
    radial-gradient(circle at 84% 48%, rgba(138, 215, 255, 0.19), transparent 30%),
    linear-gradient(145deg, rgba(116, 242, 206, 0.15), transparent 46%),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 44px 100px rgba(0, 0, 0, 0.42);
}

.world-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 42%, rgba(5, 7, 10, 0.82));
  pointer-events: none;
}

.stage-glow {
  position: absolute;
  top: 11%;
  left: 50%;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(116, 242, 206, 0.18);
  filter: blur(34px);
  transform: translateX(-50%);
}

.world-orbit {
  position: absolute;
  top: 18%;
  left: 50%;
  border: 1px solid rgba(116, 242, 206, 0.24);
  border-radius: 50%;
  transform: translateX(-50%) rotate(-18deg);
}

.orbit-one {
  width: 76%;
  aspect-ratio: 1.5;
}

.orbit-two {
  top: 13%;
  width: 48%;
  aspect-ratio: 0.92;
  border-color: rgba(255, 79, 216, 0.22);
}

.home-app-icon {
  position: absolute;
  z-index: 2;
  top: 19%;
  left: 50%;
  width: 104px;
  height: 104px;
  border-radius: 24px;
  transform: translateX(-50%) rotate(-4deg);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.16);
}

.world-node {
  position: absolute;
  z-index: 2;
  width: 13px;
  height: 13px;
  border: 3px solid rgba(5, 7, 10, 0.72);
  border-radius: 50%;
  background: #74f2ce;
  box-shadow: 0 0 20px rgba(116, 242, 206, 0.8);
}

.node-one { top: 22%; left: 18%; }
.node-two { top: 43%; right: 15%; background: #ff78dc; }
.node-three { top: 48%; left: 25%; background: #ffd166; }
.node-four { top: 11%; right: 25%; background: #8ad7ff; }

.story-card {
  position: absolute;
  z-index: 3;
  right: 28px;
  bottom: 28px;
  left: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 24px;
  background:
    linear-gradient(110deg, rgba(116, 242, 206, 0.08), rgba(255, 120, 220, 0.06)),
    rgba(11, 15, 20, 0.82);
  backdrop-filter: blur(18px);
}

.story-label {
  color: #74f2ce;
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.12em;
}

.story-card strong {
  max-width: 330px;
  font-size: 1.35rem;
  line-height: 1.25;
}

.story-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(247, 251, 255, 0.5);
  font-size: 0.8rem;
}

.story-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #74f2ce;
}

.worlds-showcase {
  position: relative;
  padding: 112px 0 132px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.worlds-showcase::before {
  content: "";
  position: absolute;
  top: 18%;
  right: -12%;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(172, 126, 255, 0.12);
  filter: blur(70px);
  pointer-events: none;
}

.showcase-heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: end;
  gap: 64px;
  margin-bottom: 58px;
}

.showcase-heading h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.7rem, 5.5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.showcase-heading > p {
  margin: 0 0 8px;
  color: rgba(247, 251, 255, 0.58);
  font-size: 1rem;
  line-height: 1.7;
}

.screen-gallery {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.screen-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  padding: 18px 18px 0;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.screen-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.45;
  pointer-events: none;
}

.screen-mint::before { background: linear-gradient(160deg, rgba(116, 242, 206, 0.38), transparent 42%); }
.screen-violet::before { background: linear-gradient(160deg, rgba(172, 126, 255, 0.42), transparent 42%); }
.screen-amber::before { background: linear-gradient(160deg, rgba(255, 209, 102, 0.38), transparent 42%); }

.screen-number {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin: 2px 0 18px 2px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px 10px;
  color: rgba(247, 251, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 760;
  background: rgba(5, 7, 10, 0.36);
}

.screen-card img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}

.screen-card figcaption {
  position: absolute;
  z-index: 2;
  right: 30px;
  bottom: 24px;
  left: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  padding: 12px 14px;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 730;
  text-align: center;
  background: rgba(5, 7, 10, 0.76);
  backdrop-filter: blur(16px);
}

.home-features {
  padding: 112px 0 132px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.features-heading {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 56px;
}

.features-heading h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 24px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.035);
}

.feature-card::after {
  content: "";
  position: absolute;
  top: -44px;
  right: -38px;
  width: 138px;
  height: 138px;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.24;
  background: #74f2ce;
}

.feature-card:nth-child(2)::after { background: #ac7eff; }
.feature-card:nth-child(3)::after { background: #ffd166; }

.feature-card > span {
  color: #74f2ce;
  font-size: 0.76rem;
  font-weight: 760;
}

.feature-card h3 {
  margin: auto 0 14px;
  font-size: 1.5rem;
}

.feature-card p {
  margin: 0;
  color: rgba(247, 251, 255, 0.56);
  font-size: 0.94rem;
  line-height: 1.65;
}

.home-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 28px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(247, 251, 255, 0.4);
  font-size: 0.84rem;
}

.home-legal { flex-wrap: wrap; gap: 14px; }

.home-legal a,
.home-mail {
  color: rgba(247, 251, 255, 0.68);
  font-size: 0.92rem;
  text-decoration: none;
}

.home-legal a:hover,
.home-mail:hover {
  color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .home-primary-action,
  .home-secondary-action {
    transition: none;
  }
}

@media (max-width: 720px) {
  .container,
  .wide-container {
    width: min(100% - 28px, 1040px);
    padding: 32px 0 48px;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    width: min(100% - 28px, 1040px);
    padding: 14px 0;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 10px 14px;
  }

  h1 {
    font-size: 2.2rem;
    line-height: 1.08;
  }

  .legal-page h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.2rem;
    margin-top: 30px;
  }

  h3 {
    font-size: 1rem;
  }

  p,
  li {
    font-size: 0.98rem;
  }

  .lead {
    font-size: 1.04rem;
  }

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

  .card {
    padding: 18px;
  }

  .legal-toc {
    padding: 14px 16px;
    margin: 20px 0 30px;
  }

  .legal-toc ol {
    columns: 1;
  }

  .home-nav,
  .home-main,
  .home-footer {
    width: min(100% - 28px, 1180px);
  }

  .home-nav {
    padding: 18px 0;
  }

  .home-nav-link {
    display: none;
  }

  .home-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 54px;
    padding: 48px 0 86px;
  }

  .home-kicker {
    font-size: 0.72rem;
    margin-bottom: 18px;
  }

  .home-hero h1 {
    font-size: clamp(3.5rem, 17vw, 5.3rem);
    line-height: 0.91;
  }

  .home-lead {
    margin-top: 24px;
    font-size: 1rem;
  }

  .hero-tags {
    gap: 6px;
  }

  .hero-tags span {
    padding: 6px 9px;
    font-size: 0.7rem;
  }

  .home-actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 28px;
  }

  .home-primary-action,
  .home-secondary-action {
    width: 100%;
  }

  .world-stage {
    width: 100%;
    justify-self: center;
    border-radius: 30px;
  }

  .story-card {
    right: 18px;
    bottom: 18px;
    left: 18px;
    border-radius: 20px;
    padding: 20px;
  }

  .home-features {
    padding: 84px 0 96px;
  }

  .worlds-showcase {
    padding: 82px 0 96px;
  }

  .showcase-heading {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 38px;
  }

  .showcase-heading h2 {
    font-size: 2.7rem;
  }

  .screen-gallery {
    grid-template-columns: 82% 82% 82%;
    gap: 12px;
    overflow-x: auto;
    margin-right: -14px;
    padding: 0 14px 18px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .screen-gallery::-webkit-scrollbar {
    display: none;
  }

  .screen-card {
    scroll-snap-align: start;
    border-radius: 26px;
  }

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

  .features-heading {
    gap: 12px;
    margin-bottom: 38px;
  }

  .features-heading h2 {
    font-size: 2.55rem;
  }

  .feature-card {
    min-height: 220px;
  }

  .home-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 22px;
  }
}


/* Download page */
.download-page {
  color-scheme: dark;
  min-height: 100svh;
  overflow-x: hidden;
  color: #f7fbff;
  background:
    radial-gradient(circle at 18% 18%, rgba(138, 215, 255, 0.16), transparent 28rem),
    radial-gradient(circle at 84% 28%, rgba(141, 255, 111, 0.14), transparent 30rem),
    radial-gradient(circle at 52% 96%, rgba(172, 126, 255, 0.11), transparent 32rem),
    #07090d;
}

.download-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.download-shell {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.device-redirect-screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  color: #ffffff;
  text-align: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(116, 242, 206, 0.18), transparent 22rem),
    #07090d;
}

.device-redirect-screen img {
  width: 72px;
  height: 72px;
  margin-bottom: 8px;
  border-radius: 18px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.42);
}

.device-redirect-screen strong {
  font-size: 1.25rem;
}

.device-redirect-screen a {
  color: rgba(247, 251, 255, 0.58);
  font-size: 0.84rem;
}

.redirect-ios-message,
.redirect-android-message {
  display: none;
}

html[data-redirecting] .device-redirect-screen {
  display: flex;
}

html[data-redirecting] .download-shell {
  visibility: hidden;
}

html[data-redirecting="ios"] .redirect-ios-message,
html[data-redirecting="android"] .redirect-android-message {
  display: block;
}

.download-main,
.download-footer {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
}

.download-main {
  flex: 1;
  padding: 74px 0 92px;
}

.download-heading {
  max-width: 760px;
  margin: 0 auto 52px;
  text-align: center;
}

.download-app-id {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 32px;
  text-align: left;
}

.download-app-icon {
  width: 76px;
  height: 76px;
  border-radius: 19px;
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.14);
}

.download-app-id div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.download-app-id span {
  color: #ffffff;
  font-size: 1.32rem;
  font-weight: 820;
  letter-spacing: -0.045em;
}

.download-app-id small {
  color: rgba(247, 251, 255, 0.5);
  font-size: 0.8rem;
}

.download-kicker {
  margin: 0 0 14px;
  color: #74f2ce;
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.download-heading h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(3.2rem, 7vw, 5.7rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.download-lead {
  max-width: 620px;
  margin: 24px auto 0;
  color: rgba(247, 251, 255, 0.64);
  font-size: 1.05rem;
  line-height: 1.65;
}

.download-platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.platform-download-card {
  position: relative;
  overflow: hidden;
  min-height: 510px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 30px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
}

.platform-download-card::before {
  content: "";
  position: absolute;
  top: -110px;
  right: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.22;
  pointer-events: none;
}

.ios-download-card::before {
  background: #8ad7ff;
}

.android-download-card::before {
  background: #8dff6f;
}

.platform-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}

.platform-symbol {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 17px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.apple-mark {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.play-mark {
  font-size: 1.4rem;
  text-indent: 0.1em;
  background: linear-gradient(135deg, #8dff6f, #74f2ce 48%, #8ad7ff);
}

.platform-status {
  border: 1px solid rgba(116, 242, 206, 0.24);
  border-radius: 999px;
  padding: 7px 10px;
  color: #8ff5d7;
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(116, 242, 206, 0.06);
}

.android-download-card .platform-status {
  border-color: rgba(141, 255, 111, 0.26);
  color: #b1ff9d;
  background: rgba(141, 255, 111, 0.06);
}

.platform-name {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  color: #8ad7ff;
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.android-download-card .platform-name {
  color: #a9ff93;
}

.platform-download-card h2 {
  position: relative;
  z-index: 1;
  max-width: 360px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.platform-description {
  position: relative;
  z-index: 1;
  max-width: 400px;
  margin: 20px 0 0;
  color: rgba(247, 251, 255, 0.58);
  font-size: 0.94rem;
  line-height: 1.65;
}

.platform-details {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 30px;
}

.platform-details span {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 7px 10px;
  color: rgba(247, 251, 255, 0.52);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.035);
}

.platform-action {
  position: relative;
  z-index: 1;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  border-radius: 17px;
  padding: 0 19px;
  color: #08110f;
  font-size: 0.92rem;
  font-weight: 790;
  text-decoration: none;
  background: linear-gradient(115deg, #8ad7ff, #c8a5ff);
  box-shadow: 0 15px 38px rgba(89, 157, 255, 0.16);
  transition: transform 160ms ease, filter 160ms ease;
}

.android-download-card .platform-action {
  background: linear-gradient(115deg, #8dff6f, #74f2ce);
  box-shadow: 0 15px 38px rgba(94, 225, 102, 0.14);
}

.platform-action:hover {
  color: #08110f;
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.platform-secondary {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin: 15px auto 0;
  color: rgba(247, 251, 255, 0.5);
  font-size: 0.8rem;
}

.platform-secondary:hover {
  color: #ffffff;
}

.platform-action:focus-visible,
.platform-secondary:focus-visible,
.download-legal a:focus-visible {
  outline: 3px solid #74f2ce;
  outline-offset: 4px;
}

.download-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(247, 251, 255, 0.42);
  font-size: 0.84rem;
}

.download-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.download-legal a {
  color: rgba(247, 251, 255, 0.62);
  font-size: 0.88rem;
  text-decoration: none;
}

.download-legal a:hover {
  color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .platform-action {
    transition: none;
  }
}

@media (max-width: 720px) {
  .download-main,
  .download-footer {
    width: min(100% - 28px, 1040px);
  }

  .download-main {
    padding: 48px 0 66px;
  }

  .download-heading {
    margin-bottom: 36px;
  }

  .download-app-id {
    margin-bottom: 28px;
  }

  .download-app-icon {
    width: 66px;
    height: 66px;
    border-radius: 17px;
  }

  .download-heading h1 {
    font-size: clamp(3rem, 15vw, 4.4rem);
  }

  .download-lead {
    font-size: 0.98rem;
  }

  .download-platform-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .platform-download-card {
    min-height: 475px;
    border-radius: 26px;
    padding: 24px;
  }

  .platform-card-top {
    margin-bottom: 34px;
  }

  .platform-download-card h2 {
    font-size: 2.25rem;
  }

  .download-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 22px;
  }
}
