:root {
  color-scheme: dark;
  --bg: #0a0f1c;
  --bg2: #12203a;
  --surface: #16233f;
  --surface2: #1b2b4d;
  --border: #263a63;
  --text: #e8edf6;
  --muted: #9fb0c9;
  --accent: #e0b23c;      /* overridden per game */
  --accent-ink: #0a0f1c;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 50% -10%, var(--bg2), var(--bg) 60%);
  min-height: 100vh;
  line-height: 1.65;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 22px; }

/* ---- Top bar ---- */
.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 22px; max-width: 1000px; margin: 0 auto;
}
.topbar .brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: 2px; color: var(--text); }
.brand-tile {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--surface); border: 2px solid var(--accent); color: var(--accent);
  font-weight: 900; font-size: 22px;
}
.topbar nav { margin-left: auto; display: flex; gap: 22px; font-size: 15px; }
.topbar nav a { color: var(--muted); font-weight: 600; }

/* ---- Hero ---- */
.hero { text-align: center; padding: 48px 22px 20px; }
.hero .app-icon {
  width: 112px; height: 112px; border-radius: 26px; display: block; margin: 0 auto 22px;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
}
.hero h1 { margin: 0 0 8px; font-size: clamp(30px, 6vw, 46px); letter-spacing: 3px; }
.hero .tagline { color: var(--muted); font-size: 18px; margin: 0 0 28px; }
.hero .lead { color: var(--muted); max-width: 640px; margin: 0 auto 28px; font-size: 17px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
}
.btn-play { background: var(--accent); color: var(--accent-ink); }
.btn-play:hover { text-decoration: none; filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Game grid (landing) ---- */
.section-title { text-align: center; font-size: 14px; letter-spacing: 3px; color: var(--muted); font-weight: 700; margin: 40px 0 22px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; padding-bottom: 40px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card img { width: 84px; height: 84px; border-radius: 20px; margin-bottom: 16px; }
.card h3 { margin: 0 0 6px; font-size: 20px; }
.card p { margin: 0 0 18px; color: var(--muted); font-size: 14px; flex: 1; }
.card .card-links { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---- Content sections (game + privacy pages) ---- */
.content { max-width: 760px; margin: 0 auto; padding: 10px 22px 60px; }
.content h2 { font-size: 22px; margin: 36px 0 12px; }
.content h3 { font-size: 17px; margin: 24px 0 8px; }
.content p, .content li { color: #cdd7e8; }
.features { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.features li { position: relative; padding-left: 28px; }
.features li::before { content: "✦"; position: absolute; left: 0; color: var(--accent); }

.callout {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: 12px; padding: 16px 18px; margin: 24px 0;
}

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--border); margin-top: 40px;
  padding: 26px 22px; text-align: center; color: var(--muted); font-size: 13px;
}
footer a { color: var(--muted); margin: 0 10px; }

.back-link { display: inline-block; margin: 24px 0 0; color: var(--muted); font-weight: 600; }
