:root {
  --bg: #f1f3f8;
  --card: #ffffff;
  --muted: #6b7280;
  --accent: #6366f1;
  --accent-dark: #4f46e5;
  --dark: #0f172a;
  --dark2: #1e293b;
  --text: #0f172a;
  --radius: 14px;
}

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

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

/* ── Header ── */
.site-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #312e81 100%);
  color: #fff;
  padding: 36px 20px 32px;
  text-align: center;
}
.site-header h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #a5b4fc, #e879f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.site-header .tagline {
  margin-top: 6px;
  color: #94a3b8;
  font-size: 0.95rem;
}

/* ── Layout ── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-body {
  padding: 28px 0 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Card ── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.07);
}
.card h2 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 12px;
}
.card p { color: #334155; }
.card ul { margin: 8px 0 8px 20px; color: #334155; }
.card ul li { margin-bottom: 4px; }
.card a { color: var(--accent); text-decoration: none; }
.card a:hover { text-decoration: underline; }

/* ── Section label ── */
.section-intro p {
  font-size: 1rem;
  color: #475569;
  max-width: 640px;
}

/* ── Game Grid ── */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

.game-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.18);
}
.game-card img {
  width: 96px;
  height: 96px;
  object-fit: cover;
}
.game-card h3 {
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  color: var(--text);
  line-height: 1.3;
}
.game-card .badges {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

/* ── Badge buttons ── */
.badge-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  text-decoration: none;
  font-size: 0.7rem;
  line-height: 1.2;
  transition: background 0.15s;
  width: 100%;
}
.badge-btn:hover { background: #1e293b; text-decoration: none; }
.badge-btn svg { flex-shrink: 0; }
.badge-btn .badge-label { display: flex; flex-direction: column; }
.badge-btn .badge-store { font-size: 0.6rem; opacity: 0.7; }
.badge-btn .badge-name { font-weight: 700; font-size: 0.75rem; }

.badge-btn.disabled {
  background: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
  pointer-events: none;
}
.badge-btn.disabled svg { opacity: 0.4; }

/* ── Contact ── */
.contact-card {
  text-align: center;
}
.contact-card a {
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
}

/* ── Legal pages ── */
.legal-content h2 { margin-top: 20px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content section + section { margin-top: 18px; }
code { background: #f3f4f6; padding: 2px 6px; border-radius: 6px; font-size: 0.9em; }

/* ── Footer ── */
.site-footer {
  background: var(--dark);
  color: #64748b;
  font-size: 0.85rem;
  padding: 18px 20px;
  text-align: center;
}
.site-footer a { color: #94a3b8; text-decoration: none; margin: 0 8px; }
.site-footer a:hover { color: #e2e8f0; }
.footer-links { margin-top: 6px; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .site-header { padding: 24px 16px 20px; }
  .site-header h1 { font-size: 1.5rem; }
  .container { padding: 0 14px; }
  .card { padding: 18px 16px; }
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .game-card img { width: 80px; height: 80px; }
}
