:root {
  color-scheme: dark;
  --ink: #f5f1e8;
  --muted: #a9adc1;
  --cyan: #45e3e8;
  --gold: #ffc857;
  --line: rgba(255, 255, 255, .12);
  --panel: rgba(13, 18, 38, .72);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: #080b18; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 22% 45%, rgba(19, 207, 213, .13), transparent 32rem),
    radial-gradient(circle at 75% 30%, rgba(94, 67, 172, .14), transparent 34rem),
    linear-gradient(145deg, #0a0d1b 0%, #080b18 58%, #100d1d 100%);
}

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

a { color: inherit; }

.page-shell {
  width: min(1160px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(42px, 7vw, 96px);
  padding: 72px 0 56px;
}

.game-art { position: relative; display: grid; place-items: center; }

.game-art::before {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border: 1px solid rgba(69, 227, 232, .16);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 100px rgba(69, 227, 232, .08);
}

.icon-frame {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 1;
  padding: 10px;
  border: 1px solid rgba(125, 238, 241, .3);
  border-radius: 25%;
  background: linear-gradient(145deg, rgba(66, 221, 227, .17), rgba(22, 25, 54, .48));
  box-shadow: 0 32px 90px rgba(0, 0, 0, .48), inset 0 1px rgba(255, 255, 255, .12);
  transform: rotate(-2deg);
}

.icon-frame img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 23%;
  image-rendering: pixelated;
}

.studio {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: .73rem;
  letter-spacing: .24em;
}

.studio strong { color: var(--cyan); font-weight: 700; }

h1 {
  margin: 0;
  font-family: "Bahnschrift Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(3.55rem, 6.8vw, 6.45rem);
  font-stretch: condensed;
  font-weight: 600;
  line-height: .88;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

h1 span { color: var(--gold); text-shadow: 0 4px 28px rgba(255, 200, 87, .13); }

.tagline {
  margin: 32px 0 0;
  color: var(--ink);
  font-size: clamp(1.18rem, 2vw, 1.5rem);
  font-weight: 650;
  line-height: 1.42;
}

.description {
  max-width: 610px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; }
.store-buttons { display: flex; gap: 12px; }

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px 20px 11px 16px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 12px;
  background: #05070d;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .25);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.store-button:hover, .store-button:focus-visible {
  border-color: var(--cyan);
  box-shadow: 0 16px 44px rgba(33, 209, 215, .14);
  transform: translateY(-2px);
}

.store-button svg { width: 30px; fill: #fff; }
.store-button .apple-mark { width: 31px; }
.store-button span { font-size: 1.25rem; line-height: 1; }
.store-button small { display: block; margin-bottom: 4px; font-size: .58rem; letter-spacing: .1em; }

.text-link { color: var(--muted); font-size: .92rem; text-underline-offset: 5px; }
.text-link:hover { color: var(--cyan); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 30px;
  border-top: 1px solid var(--line);
  color: #72778e;
  font-size: .78rem;
}

footer nav { display: flex; gap: 24px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

.legal-shell { width: min(760px, calc(100% - 40px)); margin: 0 auto; padding: 54px 0 72px; }
.legal-back { display: inline-block; margin-bottom: 46px; color: var(--cyan); font-size: .84rem; text-decoration: none; }
.legal-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.legal-kicker { color: var(--gold); font-size: .73rem; letter-spacing: .2em; text-transform: uppercase; }
.legal-shell h1 { margin: 12px 0 18px; font-family: inherit; font-size: clamp(2.5rem, 7vw, 4.5rem); line-height: 1; letter-spacing: -.045em; text-transform: none; }
.legal-updated { color: #72778e; font-size: .82rem; }
.legal-content { margin-top: 48px; }
.legal-content h2 { margin: 38px 0 10px; color: var(--ink); font-size: 1.08rem; }
.legal-content p, .legal-content li { color: var(--muted); line-height: 1.75; }
.legal-content ul { padding-left: 20px; }
.legal-content a { color: var(--cyan); text-underline-offset: 4px; }
.legal-note { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }

@media (max-width: 820px) {
  .page-shell { width: min(100% - 34px, 580px); }
  .hero { grid-template-columns: 1fr; gap: 46px; padding: 48px 0; }
  .game-art { order: 1; }
  .game-copy { order: 2; }
  .icon-frame { width: min(78vw, 340px); }
  h1 { font-size: clamp(3.35rem, 15vw, 5.5rem); }
}

@media (max-width: 620px) {
  .actions { align-items: flex-start; flex-direction: column; }
  .store-buttons { align-items: flex-start; flex-direction: column; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
