:root {
  --ink: #10283a;
  --muted: #657684;
  --cream: #fffaf1;
  --lime: #c9ee55;
  --blue: #26a9e8;
  --coral: #ff725e;
  --yellow: #ffd34e;
  --line: rgba(16, 40, 58, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: ui-rounded, "Avenir Next", Avenir, system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
.site-nav, .hero, .mode-strip, .screens-section, footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-nav { min-height: 88px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 900; letter-spacing: -0.03em; }
.brand-icon { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 7px 18px rgba(16, 40, 58, 0.16); }
.nav-links { display: flex; gap: 30px; color: #405563; font-size: 14px; font-weight: 800; }
.nav-links a:hover, footer a:hover { color: #1598d8; }
.hero { min-height: 650px; display: grid; grid-template-columns: 1.02fr 0.98fr; align-items: center; gap: 30px; padding: 42px 0 62px; }
.eyebrow { margin: 0 0 18px; color: #128dc9; font-size: 13px; font-weight: 900; letter-spacing: 0.13em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(54px, 6.3vw, 88px); line-height: 0.94; letter-spacing: -0.065em; font-weight: 900; }
.hero-text { max-width: 600px; margin: 28px 0 32px; color: var(--muted); font-size: 19px; line-height: 1.65; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; }
.app-store-button { display: inline-flex; align-items: center; gap: 11px; border-radius: 14px; background: var(--ink); color: white; padding: 10px 18px; font-size: 19px; font-weight: 900; line-height: 1.05; box-shadow: 0 12px 28px rgba(16, 40, 58, 0.2); }
.app-store-button small { display: block; margin-bottom: 3px; font-size: 9px; font-weight: 700; letter-spacing: 0.04em; }
.apple-mark { font-size: 25px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 900; }
.text-link span { font-size: 20px; transition: transform 180ms ease; }
.text-link:hover span { transform: translateX(4px); }
.hero-art { min-height: 530px; position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 48% 52% 46% 54% / 55% 38% 62% 45%; background: radial-gradient(circle at 72% 22%, #fff 0 4%, transparent 4.5%), linear-gradient(145deg, #80d8f5 0%, #34b1e9 65%, #1998d4 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), 0 26px 70px rgba(38,169,232,.22); }
.hero-art img { position: relative; z-index: 2; width: 112%; max-width: none; transform: translate(1%, 7%); filter: drop-shadow(0 24px 26px rgba(16,40,58,.22)); }
.orbit { position: absolute; border: 2px solid rgba(255,255,255,.35); border-radius: 50%; }
.orbit-one { width: 390px; height: 390px; }
.orbit-two { width: 560px; height: 560px; }
.piece { position: absolute; z-index: 1; width: 62px; height: 62px; border-radius: 17px; transform: rotate(18deg); }
.piece-yellow { top: 13%; left: 12%; background: var(--yellow); box-shadow: 0 12px 24px rgba(110,77,0,.18); }
.piece-coral { right: 11%; bottom: 13%; width: 50px; height: 50px; background: var(--coral); transform: rotate(-13deg); }
.mode-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 0 0 110px; }
.mode-card { display: flex; gap: 18px; align-items: center; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.7); padding: 21px; box-shadow: 0 12px 32px rgba(16,40,58,.05); }
.mode-icon { flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; font-size: 16px; font-weight: 900; letter-spacing: -4px; }
.mode-icon-1 { background: #eaf8bc; color: #597400; }
.mode-icon-2 { background: #d9f3ff; color: #087aaa; }
.mode-icon-3 { background: #ffe2dd; color: #c94231; }
.mode-card h2 { margin: 0 0 4px; font-size: 16px; font-weight: 900; }
.mode-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; font-weight: 650; }
.screens-section { padding: 78px 66px 68px; border-radius: 38px; background: var(--ink); color: white; overflow: hidden; }
.screens-heading { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.screens-section h2 { margin: 0; font-size: clamp(36px, 4.2vw, 58px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 900; }
.screen-gallery { display: grid; grid-template-columns: .72fr .72fr 1.7fr; align-items: center; gap: 24px; }
.game-screen { min-width: 0; margin: 0; }
.game-screen img { display: block; width: 100%; height: auto; border: 4px solid rgba(255,255,255,.92); background: white; box-shadow: 0 24px 50px rgba(0,0,0,.3); }
.phone-screen img { border-radius: 26px; }
.tablet-screen img { border-radius: 24px; }
.game-screen figcaption { margin-top: 18px; color: rgba(255,255,255,.72); text-align: center; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
footer { min-height: 150px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; color: var(--muted); font-size: 13px; font-weight: 700; }
footer p { margin: 0; }
footer > div { display: flex; justify-content: flex-end; gap: 22px; }
.legal-page { min-height: 100vh; background: linear-gradient(180deg, #eaf8ff 0, var(--cream) 360px); }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: #405563; font-size: 14px; font-weight: 800; }
.legal-card { width: min(820px, calc(100% - 40px)); margin: 60px auto 90px; overflow: hidden; border: 1px solid var(--line); border-radius: 30px; background: rgba(255,255,255,.86); box-shadow: 0 24px 70px rgba(16,40,58,.09); }
.legal-heading { padding: 62px 70px 48px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 86% 8%, rgba(201,238,85,.6) 0 70px, transparent 71px), white; }
.legal-heading h1 { margin: 0 0 12px; font-size: clamp(45px, 7vw, 70px); line-height: 1; letter-spacing: -.055em; font-weight: 900; }
.legal-heading > p:last-child { margin: 0; color: var(--muted); font-size: 14px; font-weight: 700; }
.legal-content { padding: 34px 70px 60px; }
.legal-content section { padding: 26px 0; border-bottom: 1px solid var(--line); }
.legal-content section:last-child { border-bottom: 0; padding-bottom: 0; }
.legal-content h2 { margin: 0 0 10px; font-size: 20px; letter-spacing: -.02em; font-weight: 900; }
.legal-content p { margin: 0; color: #506572; font-size: 16px; line-height: 1.75; font-weight: 600; }
.legal-content a { color: #087eaf; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.legal-footer { min-height: 90px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); }
.support-card { max-width: 760px; }
.support-content section:first-child { padding-top: 16px; }
.legal-content .email-button { width: fit-content; display: flex; align-items: center; gap: 10px; margin-top: 26px; border-radius: 14px; background: var(--ink); color: white; padding: 14px 20px; text-decoration: none; box-shadow: 0 12px 28px rgba(16,40,58,.18); }
.email-button span { font-size: 20px; transition: transform 180ms ease; }
.email-button:hover span { transform: translateX(4px); }
.legal-content .email-address { display: inline-block; margin-top: 18px; font-size: 14px; overflow-wrap: anywhere; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 60px; }
  .hero-art { grid-row: 1; min-height: 440px; }
  .mode-strip { grid-template-columns: 1fr; padding-top: 20px; }
  .screens-section { padding: 60px 34px 52px; }
  .screens-heading { margin-bottom: 40px; }
  .screen-gallery { grid-template-columns: 1fr 1fr; gap: 20px; }
  .tablet-screen { grid-column: 1 / -1; margin-top: 12px; }
  footer { grid-template-columns: 1fr; padding: 50px 0; text-align: center; justify-items: center; }
  footer > div { justify-content: center; }
}

@media (max-width: 560px) {
  .site-nav, .hero, .mode-strip, .screens-section, footer { width: min(100% - 28px, 1180px); }
  .nav-links { gap: 14px; font-size: 12px; }
  .nav-links a { display: none; }
  .nav-links a[href="/support/"] { display: inline; }
  .hero h1 { font-size: 50px; }
  .hero-text { font-size: 17px; }
  .hero-art { min-height: 360px; border-radius: 36px; }
  .screens-section { border-radius: 28px; }
  .screens-section { padding-inline: 14px; }
  .screen-gallery { gap: 10px; }
  .phone-screen img { border-width: 3px; border-radius: 18px; }
  .tablet-screen img { border-width: 3px; border-radius: 18px; }
  .game-screen figcaption { margin-top: 10px; font-size: 9px; letter-spacing: .04em; }
  .back-link { font-size: 0; }
  .back-link span { font-size: 21px; }
  .legal-card { width: calc(100% - 28px); margin-top: 30px; border-radius: 24px; }
  .legal-heading { padding: 45px 28px 35px; }
  .legal-content { padding: 22px 28px 44px; }
  .legal-footer { flex-direction: row; padding: 28px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
