* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0f0f13;
  --surface: #1a1a24;
  --surface2: #22222f;
  --accent: #6c63ff;
  --accent2: #a78bfa;
  --text: #f0f0f5;
  --text-muted: #8888aa;
  --radius: 16px;
  --ios: #007aff;
  --android: #3ddc84;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.05) 1.8px, transparent 1.8px),
    radial-gradient(circle, rgba(255,255,255,0.05) 0.8px, transparent 0.8px),
    radial-gradient(circle, rgba(255,255,255,0.05) 1.8px, transparent 1.8px),
    radial-gradient(circle, rgba(255,255,255,0.05) 0.8px, transparent 0.8px);
  background-size: 24px 40px, 24px 40px, 24px 40px, 24px 40px;
  background-position: 0 0, 12px 0, 12px 20px, 0 20px;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, var(--bg) 100%);
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

/* NAV */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: rgba(30,30,42,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent2);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

/* HERO */
.hero {
  text-align: center;
  padding: 32px 20px 24px;
  background: radial-gradient(ellipse at top, rgba(108,99,255,0.15) 0%, transparent 60%);
}

.hero h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  background: linear-gradient(135deg, #fff 30%, var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.hero p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 500px;
  margin: 0 auto;
}

/* GAMES GRID */
.section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 20px 28px;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 28px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.game-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(108,99,255,0.4);
  box-shadow: 0 12px 40px rgba(108,99,255,0.15);
}

.game-card img {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  object-fit: cover;
}

.game-card .game-name {
  font-size: 0.95rem;
  font-weight: 600;
}

.game-card .game-platforms {
  display: flex;
  gap: 6px;
}

.badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-ios {
  background: rgba(0,122,255,0.18);
  color: #60a5fa;
  border: 1px solid rgba(0,122,255,0.3);
}

.badge-android {
  background: rgba(61,220,132,0.15);
  color: #4ade80;
  border: 1px solid rgba(61,220,132,0.3);
}

/* HOME LAYOUT */
.home-layout {
  display: flex;
  gap: 0;
  max-width: 1100px;
  margin: 40px auto 60px;
  padding: 0 24px;
  align-items: flex-start;
}

.home-column {
  flex: 1;
  min-width: 0;
}

.home-divider {
  width: 1px;
  background: rgba(255,255,255,0.07);
  align-self: stretch;
  margin: 0 32px;
  flex-shrink: 0;
}

.column-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.game-tagline {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin: 0;
}

/* GAME PAGE */
.game-page {
  max-width: 560px;
  margin: 60px auto;
  padding: 0 20px 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 40px;
  padding: 10px 20px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.game-page .back-link:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
}

.game-icon {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  object-fit: cover;
  margin: 0 auto 20px;
  display: block;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.game-page h1 {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.game-page .tagline {
  color: var(--text-muted);
  margin-bottom: 48px;
  font-size: 0.95rem;
}

.store-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 240px;
}

.store-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.15s, opacity 0.15s;
  border: none;
  cursor: pointer;
}

.store-btn svg,
.store-btn img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.store-btn:hover {
  transform: scale(1.02);
  opacity: 0.92;
}

.store-btn-ios {
  background: var(--ios);
  color: #fff;
}

.store-btn-android {
  background: #1a1a2e;
  color: #fff;
  border: 1px solid rgba(61,220,132,0.4);
}

.store-btn svg {
  flex-shrink: 0;
}

.store-btn-only {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* SUPPORT PAGE */
.support-page {
  max-width: 560px;
  margin: 60px auto;
  padding: 0 20px 80px;
}

.support-page h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.support-page .sub {
  color: var(--text-muted);
  margin-bottom: 40px;
}

.support-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}

.support-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.support-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.email-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.email-btn:hover { opacity: 0.85; }

/* PRIVACY PAGE */
.privacy-page {
  max-width: 700px;
  margin: 60px auto;
  padding: 0 20px 80px;
}

.privacy-page h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.last-updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 28px;
}

.intro {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  font-size: 0.95rem;
}

.policy-section {
  margin-bottom: 36px;
}

.policy-section h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--accent2);
}

.policy-section p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.policy-section ul {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
  padding-left: 20px;
  margin-bottom: 10px;
}

.service-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
}

.service-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.service-link {
  color: var(--accent2);
  font-size: 0.82rem;
  text-decoration: none;
}

.service-link:hover { text-decoration: underline; }

/* FOOTER */
footer {
  text-align: center;
  padding: 32px 20px;
  color: var(--text-muted);
  font-size: 0.8rem;
  background: rgba(30,30,42,0.95);
  border-top: 1px solid rgba(255,255,255,0.18);
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
}

footer a:hover { color: var(--text); }

/* PLATFORM DETECTION MSG */
.detected-msg {
  display: inline-block;
  background: var(--surface2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

@media (max-width: 600px) {
  nav {
    padding: 14px 16px;
  }
  .nav-brand {
    font-size: 1rem;
  }
  .nav-links {
    gap: 14px;
  }
  .nav-links a {
    font-size: 0.82rem;
  }

  .hero {
    padding: 24px 16px 18px;
  }

  .section {
    padding: 16px 14px 20px;
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .game-card img {
    width: 64px;
    height: 64px;
    border-radius: 14px;
  }

  .game-card {
    padding: 16px 12px;
    gap: 10px;
  }

  .game-card .game-name {
    font-size: 0.8rem;
  }

  .game-page {
    margin: 32px auto;
    padding: 0 16px 60px;
  }

  .game-icon {
    width: 90px;
    height: 90px;
  }

  .game-page h1 {
    font-size: 1.4rem;
  }

  .store-buttons {
    width: 100%;
  }

  .store-btn {
    width: 100%;
  }

  .support-page {
    margin-top: 32px;
    padding: 0 16px 60px;
  }

  .privacy-page {
    padding: 0 16px 60px;
    margin: 32px auto;
  }
}
