:root {
  --bg: #14101f;
  --bg-2: #1a1a2e;
  --panel: #221d33;
  --border: #34304a;
  --text: #ece8f5;
  --muted: #a59fbb;
  --gold: #d4af37;
  --gold-2: #f0d77a;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; }

/* HERO */
.hero {
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(212, 175, 55, 0.15), transparent 60%),
    linear-gradient(180deg, #14101f 0%, #1a1a2e 100%);
  border-bottom: 1px solid var(--border);
  padding-bottom: 64px;
}
.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { font-weight: 700; letter-spacing: 0.3px; color: var(--gold); }
.nav-cta {
  text-decoration: none;
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: var(--gold);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
}
.nav-cta:hover { background: rgba(212, 175, 55, 0.12); }

.hero-inner { max-width: 760px; margin: 0 auto; padding: 40px 24px 0; text-align: center; }
.app-icon { border-radius: 26px; box-shadow: 0 12px 40px rgba(0,0,0,0.5); margin-bottom: 24px; }
.hero h1 { font-size: clamp(36px, 7vw, 60px); font-weight: 800; }
.tagline { font-size: clamp(18px, 3vw, 24px); color: var(--gold-2); margin-top: 10px; font-weight: 600; }
.subtitle { color: var(--muted); margin: 18px auto 0; max-width: 560px; font-size: 17px; }
.hero-meta { color: var(--muted); margin-top: 18px; font-size: 14px; }

/* Official App Store badge */
.store-link {
  display: inline-block;
  margin-top: 30px;
  transition: transform 0.15s, filter 0.15s;
}
.store-link img { display: block; height: 60px; width: auto; }
.store-link:hover { transform: translateY(-2px); filter: brightness(1.08); }

/* Sections */
.section { max-width: 1100px; margin: 0 auto; padding: 72px 24px; }
.section h2 { font-size: clamp(26px, 4vw, 36px); text-align: center; }
.section-sub { text-align: center; color: var(--muted); max-width: 560px; margin: 12px auto 0; }

/* Games grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.game-card {
  display: flex;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--c, var(--gold));
  border-radius: 14px;
  padding: 16px;
  align-items: flex-start;
}
.game-icon { width: 56px; height: 56px; border-radius: 12px; flex-shrink: 0; }
.game-icon.emoji {
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; background: rgba(255,255,255,0.04); border: 1px solid var(--border);
}
.game-card h3 { font-size: 18px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.game-sub { color: var(--c, var(--gold)); font-size: 13px; font-weight: 600; margin: 2px 0 6px; }
.game-card p:last-child { color: var(--muted); font-size: 14px; }
.tag {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px;
  background: rgba(212, 175, 55, 0.16); color: var(--gold-2);
  padding: 2px 8px; border-radius: 999px;
}
.tag.classic { background: rgba(120, 150, 200, 0.18); color: #aac2e6; }

/* Features */
.features { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); max-width: none; }
.features > h2, .features > .feature-grid { max-width: 1100px; margin-left: auto; margin-right: auto; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.feature .fi { font-size: 28px; }
.feature h3 { font-size: 17px; margin: 8px 0 4px; }
.feature p { color: var(--muted); font-size: 14px; }

/* Screenshots */
.shots { display: flex; gap: 20px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.shot {
  width: 220px; max-width: 62vw; height: auto;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 14px 44px rgba(0,0,0,0.5);
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 72px 24px;
  background: radial-gradient(900px 400px at 50% 120%, rgba(212, 175, 55, 0.18), transparent 60%);
}
.cta-band h2 { font-size: clamp(26px, 4vw, 36px); }
.cta-band p { color: var(--muted); margin-top: 10px; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 40px 24px; text-align: center; color: var(--muted); }
.footer-brand { color: var(--gold); font-weight: 700; }
.footer-links { display: flex; gap: 20px; justify-content: center; margin: 14px 0; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--text); font-size: 14px; }
.footer-links a:hover { color: var(--gold); }
.copyright { font-size: 12px; opacity: 0.7; margin-top: 8px; }

/* Legal / support pages */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.doc a.back { color: var(--gold); text-decoration: none; font-size: 14px; }
.doc h1 { font-size: 32px; margin: 20px 0 6px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.doc h2 { font-size: 20px; margin: 28px 0 8px; color: var(--gold-2); }
.doc p, .doc li { color: #d4cfe4; }
.doc ul { margin: 8px 0 8px 22px; }
.doc a:not(.back) { color: var(--gold-2); }
