/* Site-wide pages: home page and privacy policy */
:root {
  --bg: #fff8ef;
  --bg2: #ffe9d2;
  --card: #ffffff;
  --ink: #1f2a44;
  --muted: #5d6680;
  --line: #f0dcc4;
  --accent: #d42020;
  --accent-ink: #ffffff;
  --gold: #e8a400;
  --link: #b8366a;
  --shadow: 0 6px 22px rgba(120, 70, 20, .12);
  --head: 'Luckiest Guy', 'Arial Rounded MT Bold', 'Trebuchet MS', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141a2b;
    --bg2: #1d2640;
    --card: #1f2942;
    --ink: #eef2ff;
    --muted: #a9b3cf;
    --line: #2f3b5c;
    --link: #ff9fb8;
    --shadow: 0 6px 22px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  --bg: #141a2b; --bg2: #1d2640; --card: #1f2942; --ink: #eef2ff; --muted: #a9b3cf; --line: #2f3b5c; --link: #ff9fb8;
  --shadow: 0 6px 22px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
a { color: var(--link); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.site-header { padding: 14px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { font: 26px/1 var(--head); color: var(--accent); text-decoration: none; letter-spacing: 1px; }
.nav { display: flex; gap: 16px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }

/* ---------- Hero with the mascots ---------- */
.hero {
  background: linear-gradient(180deg, var(--bg2), var(--bg));
  padding: 8px 0 24px;
  text-align: center;
}
.hero h1 { margin: 8px 0 6px; font: clamp(30px, 6vw, 52px)/1.1 var(--head); color: var(--ink); letter-spacing: 1px; }
.hero p { margin: 0 auto; max-width: 560px; color: var(--muted); font-size: 17px; }
.cast { display: block; width: 100%; max-width: 680px; height: auto; margin: 0 auto; }
.cast-names { display: flex; justify-content: center; gap: clamp(12px, 6vw, 72px); margin: -4px 0 14px; font-size: 13px; font-weight: 600; color: var(--muted); }

/* ---------- Game cards ---------- */
.section { padding: 28px 0; }
.section > .wrap > h2 { margin: 0 0 16px; font: 26px var(--head); letter-spacing: 1px; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.game {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform .12s, box-shadow .12s;
}
.game:hover, .game:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(120, 70, 20, .2); outline: none; }
.game .art { display: flex; align-items: center; justify-content: center; height: 140px; }
.game .art img { width: 92px; height: 92px; border-radius: 18px; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.game .body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 14px 16px 16px; }
.game h3 { margin: 0; font: 22px var(--head); letter-spacing: .5px; }
.game p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tags span { padding: 2px 9px; border-radius: 999px; background: var(--bg2); color: var(--muted); font-size: 12px; font-weight: 600; }
.play {
  align-self: flex-start;
  margin-top: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

/* ---------- Ad slots: kept away from the game cards (AdSense policy) ---------- */
.ad-slot { text-align: center; margin: 28px auto; }
.ad-label { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); opacity: .8; }
.ad-banner ins { display: inline-block; width: 320px; height: 50px; }
@media (min-width: 768px) { .ad-banner ins { width: 728px; height: 90px; } }
.ad-rect ins { display: inline-block; width: 300px; height: 250px; }
.ad-placeholder ins {
  background: repeating-linear-gradient(45deg, var(--bg2), var(--bg2) 10px, var(--line) 10px, var(--line) 20px);
  border: 1px dashed var(--muted);
}

/* ---------- Text content ---------- */
.content { max-width: 760px; }
.content h2 { margin: 32px 0 10px; font: 24px var(--head); letter-spacing: 1px; }
.content h3 { margin: 22px 0 6px; font-size: 18px; }
.content li { margin-bottom: 6px; }
.meet { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 12px 0; }
.meet div { padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.meet b { display: block; font-size: 17px; }

/* ---------- Footer ---------- */
.site-footer { padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; text-align: center; }
.site-footer a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .game { transition: none; }
}
