:root {
  --bg: #fdf6ec;
  --surface: #ffffff;
  --surface-alt: #f6ead8;
  --text: #3b2f2a;
  --muted: #7a6a60;
  --accent: #e07a5f;
  --accent-strong: #c65f45;
  --accent-soft: #fbe3d9;
  --green: #81b29a;
  --border: #ecdcc6;
  --shadow: 0 6px 24px rgba(91, 62, 41, 0.08);
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f1a17;
    --surface: #2a2420;
    --surface-alt: #332b26;
    --text: #f3e9df;
    --muted: #b8a89b;
    --accent: #f2967c;
    --accent-strong: #f7ad97;
    --accent-soft: #46302a;
    --green: #9ccbb3;
    --border: #3d342e;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent-strong);
}

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.brand svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-alt);
}

/* Hero */
.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 16px;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 1.1rem;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.button:hover {
  background: var(--accent-strong);
}

/* Sections */
section {
  padding: 48px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 32px;
}

.section-title h2 {
  font-size: 2rem;
  margin: 0 0 8px;
}

.section-title p {
  color: var(--muted);
  margin: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

/* Game cards */
.game-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
}

.game-icon svg {
  width: 52px;
  height: 52px;
}

.game-icon.cafe {
  background: linear-gradient(135deg, #f4a261, #e07a5f);
}

img.game-icon {
  display: block;
  object-fit: cover;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
}

.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-alt);
  padding: 3px 10px;
  border-radius: 999px;
}

/* Support cards */
.support-card .label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 6px;
}

.support-card a.email {
  font-weight: 700;
  font-size: 1.05rem;
  word-break: break-all;
}

/* Legal page */
.legal {
  padding: 48px 0 64px;
}

.legal .card {
  max-width: 820px;
  margin: 0 auto;
}

.legal h1 {
  margin: 0 0 4px;
  font-size: 2.2rem;
  line-height: 1.2;
}

.legal .updated {
  color: var(--muted);
  margin: 0 0 24px;
}

.legal h2 {
  font-size: 1.3rem;
  margin: 32px 0 8px;
}

.legal p,
.legal li {
  color: var(--text);
}

.legal ul {
  padding-left: 22px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--muted);
  margin-left: 16px;
}

.site-footer a:first-child {
  margin-left: 0;
}

@media (max-width: 720px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 48px 0 32px;
  }

  .site-header .container {
    justify-content: center;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .site-footer .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
