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

:root {
  --red: #C0392B;
  --red-dark: #A93226;
  --bg: #ffffff;
  --bg2: #f7f7f5;
  --border: rgba(0,0,0,0.1);
  --border-med: rgba(0,0,0,0.18);
  --text: #111111;
  --text-2: #555550;
  --text-3: #999990;
  --radius-md: 8px;
  --radius-lg: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --bg2: #1a1a1a;
    --border: rgba(255,255,255,0.1);
    --border-med: rgba(255,255,255,0.18);
    --text: #f0f0ee;
    --text-2: #aaaaaa;
    --text-3: #666660;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* NAV */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 0.5px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-img { display: block; width: 32px; height: 32px; }
.hero-img { display: block; width: 100px; height: 100px; margin: 0 auto; }
.nav-logo-text { font-size: 15px; font-weight: 500; color: var(--text); }
.nav-logo-text span { color: var(--red); }
.nav-links { display: flex; gap: 1.75rem; }
.nav-links a { font-size: 13px; color: var(--text-2); text-decoration: none; }
.nav-links a:hover { color: var(--text); }

/* HERO */
.hero {
  text-align: center;
  padding: 5rem 2rem 4rem;
  border-bottom: 0.5px solid var(--border);
}
.hero-title { font-size: clamp(36px, 8vw, 52px); font-weight: 500; letter-spacing: -1.5px; color: var(--text); margin-top: 1.5rem; line-height: 1; }
.hero-title span { color: var(--red); }
.hero-sub { font-size: 12px; color: var(--text-3); margin-top: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.hero-desc { font-size: 16px; color: var(--text-2); margin-top: 1.5rem; max-width: 400px; margin-left: auto; margin-right: auto; line-height: 1.75; }

/* SECTIONS */
.section { padding: 4rem 2rem; max-width: 900px; margin: 0 auto; }
.section-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--red); font-weight: 500; margin-bottom: 0.5rem; }
.section-title { font-size: 26px; font-weight: 500; color: var(--text); margin-bottom: 1rem; }
.section-body { font-size: 15px; color: var(--text-2); line-height: 1.8; max-width: 600px; }
.divider { border: none; border-top: 0.5px solid var(--border); }

/* GAMES */
.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 2rem; }
.game-card { border: 0.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg); }
.game-card.featured { border-color: var(--red); border-width: 1.5px; }
.game-thumb { height: 140px; display: flex; align-items: center; justify-content: center; }
.game-body { padding: 1rem 1.125rem 1.125rem; border-top: 0.5px solid var(--border); }
.game-name { font-size: 15px; font-weight: 500; color: var(--text); display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.game-desc { font-size: 13px; color: var(--text-2); line-height: 1.65; margin-bottom: 10px; }
.game-footer { display: flex; align-items: center; justify-content: space-between; }
.game-meta { font-size: 11px; color: var(--text-3); }
.pill { display: inline-block; font-size: 10px; padding: 2px 8px; border-radius: 100px; font-weight: 500; white-space: nowrap; }
.pill-soon { background: #fde9e8; color: #A32D2D; }
.pill-dev  { background: var(--bg2); color: var(--text-2); }
.pill-back { background: var(--bg2); color: var(--text-3); }
.store-btn { font-size: 11px; padding: 5px 12px; border-radius: var(--radius-md); border: 0.5px solid var(--border-med); color: var(--text-2); text-decoration: none; background: transparent; cursor: pointer; }
.store-btn:hover { background: var(--bg2); color: var(--text); }

/* side-by-side small game cards */
.game-side { display: flex; flex-direction: column; gap: 16px; }
.game-card-row { border: 0.5px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); }
.game-card-inner { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.125rem; }
.game-icon { width: 52px; height: 52px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
@media (max-width: 540px) { .about-grid { grid-template-columns: 1fr; } }
.about-block h3 { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 0.5rem; }
.about-block p { font-size: 14px; color: var(--text-2); line-height: 1.75; }

/* FOOTER */
.footer {
  padding: 1.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-3);
  border-top: 0.5px solid var(--border);
  flex-wrap: wrap;
  gap: 8px;
}
.footer a { font-size: 12px; color: var(--text-3); text-decoration: none; }
.footer a:hover { color: var(--text-2); }

/* LEGAL / PROSE PAGES */
.legal { max-width: 720px; margin: 0 auto; padding: 4rem 2rem 5rem; }
.legal .section-label { margin-bottom: 0.5rem; }
.legal h1 { font-size: clamp(28px, 5vw, 36px); font-weight: 500; letter-spacing: -0.5px; color: var(--text); margin-bottom: 0.5rem; line-height: 1.2; }
.legal .updated { font-size: 12px; color: var(--text-3); letter-spacing: 0.04em; margin-bottom: 2.5rem; }
.legal h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--red); font-weight: 500; margin-top: 2rem; margin-bottom: 0.6rem; }
.legal h3 { font-size: 15px; font-weight: 600; color: var(--text); margin-top: 1.25rem; margin-bottom: 0.5rem; }
.legal p { font-size: 15px; color: var(--text-2); line-height: 1.8; margin-bottom: 1rem; }
.legal ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.legal li { font-size: 15px; color: var(--text-2); line-height: 1.8; margin-bottom: 0.25rem; }
.legal strong { color: var(--text); font-weight: 600; }
.legal code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; background: var(--bg2); padding: 1px 5px; border-radius: 4px; }
.legal a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-med); text-underline-offset: 3px; }
.legal a:hover { text-decoration-color: var(--red); }

/* POLICY INDEX LIST */
.policy-list { list-style: none; margin-top: 1.5rem; display: flex; flex-direction: column; gap: 10px; }
.policy-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.125rem;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.policy-list a:hover { border-color: var(--red); background: var(--bg2); }
.policy-list .policy-name { font-size: 15px; font-weight: 500; }
.policy-list .policy-meta { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; }
