/* ══════════════════════════════════════════════════════════
   Styles for the static content pages (about, privacy, terms,
   how-to-play, strategy).  Shares the design tokens used by
   the game in stylesheet.css so the two feel like one site.
   ══════════════════════════════════════════════════════════ */

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

:root {
  --bg: #0c0c10;
  --surface: #14141c;
  --surface2: #1c1c28;
  --border: #2a2a3d;
  --gold: #c9a84c;
  --gold2: #e8c97a;
  --cream: #f0e6cc;
  --muted: #8a8aa6;
  --radius: 6px;
  --radius-lg: 12px;
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 700px at 50% -10%, #1a1622 0%, transparent 60%),
    var(--bg);
  color: var(--cream);
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* ── Site header ───────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(12, 12, 16, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.brand {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--gold2);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.brand img { width: 24px; height: 24px; }
.site-nav {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  font-size: 0.94rem;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.site-nav a:hover { color: var(--cream); border-bottom-color: var(--gold); }
.site-nav a[aria-current="page"] { color: var(--gold2); border-bottom-color: var(--gold); }

/* ── Article body ──────────────────────────────────────── */
main {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

h1 {
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--gold2);
  margin-bottom: 0.6rem;
}
.lede {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 2rem;
  font-style: italic;
}
h2 {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  margin: 2.4rem 0 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
h3 {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cream);
  margin: 1.7rem 0 0.5rem;
}
p, ul, ol, table { margin-bottom: 1.1rem; }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.4rem; }

a { color: var(--gold2); }
a:hover { color: var(--cream); }

strong { color: var(--gold2); font-weight: 600; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  color: var(--cream);
}

blockquote {
  border-left: 3px solid var(--gold);
  background: var(--surface);
  padding: 0.9rem 1.2rem;
  margin: 1.4rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
blockquote p:last-child { margin-bottom: 0; }

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.3rem;
  margin: 1.6rem 0;
}
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout .callout-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.table-scroll { overflow-x: auto; margin-bottom: 1.2rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
th { background: var(--surface2); color: var(--gold); font-weight: 600; }

/* ── Call-to-action button ─────────────────────────────── */
.cta {
  display: inline-block;
  margin: 1.4rem 0 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--gold2), var(--gold));
  color: #14141c;
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.cta:hover { filter: brightness(1.08); color: #14141c; }

/* ── Ad slots ──────────────────────────────────────────────
   Reserved, clearly-separated blocks that sit in the article
   flow between sections.  They are never placed beside a
   control, never inside a dialog, and never fixed/overlaid,
   so a click on one is always a deliberate click.
   ─────────────────────────────────────────────────────────*/
.ad-slot {
  margin: 2.6rem 0;
  padding-top: 0.4rem;
  min-height: 100px;          /* reserve space, avoid layout shift */
  text-align: center;
  clear: both;
}
.ad-slot::before {
  content: 'Advertisement';
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #55556e;
  margin-bottom: 0.5rem;
}
.ad-slot ins { display: block; }

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding: 2rem 1.25rem calc(2rem + env(safe-area-inset-bottom));
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer .inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
}
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--gold2); text-decoration: underline; }
.footer-meta { font-size: 0.84rem; color: #6b6b88; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-header .inner { gap: 0.7rem; }
  .site-nav { font-size: 0.88rem; gap: 0.85rem; }
  main { padding-top: 1.8rem; }
}
