/* Content pages (How to play, About, Articles, Privacy, Contact). Same palette as the game. */
:root {
  --bg: #0E1220;
  --ring: #3A4260;
  --accent: #FFB347;
  --text: #E8EAF2;
  --muted: #8A90A8;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-line: rgba(255, 255, 255, 0.08);
  --g-perfect: #FFD54A;
  --g-great: #4ADE80;
  --g-good: #60A5FA;
  --g-off: #FB923C;
  --g-lost: #F87171;
  --btn-text: #0E1220;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #F6F4EE;
    --ring: #C9CCD8;
    --accent: #D9822B;
    --text: #1B1F33;
    --muted: #5C6178;
    --surface: rgba(27, 31, 51, 0.04);
    --surface-line: rgba(27, 31, 51, 0.1);
    --g-perfect: #B8860B;
    --g-great: #15803D;
    --g-good: #1D4ED8;
    --g-off: #C2410C;
    --g-lost: #B91C1C;
    --btn-text: #F6F4EE;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; } /* same width with or without a scrollbar */
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  /* Sticky footer: on short pages the footer sits at the bottom of the window. */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(720px, 100%); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--surface-line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: "Rubik Dirt", system-ui, sans-serif; font-weight: 400; font-size: 1.3rem; letter-spacing: 0.01em; }
.brand img { width: 28px; height: 28px; }
.play-btn {
  background: var(--accent); color: var(--btn-text); text-decoration: none; font-weight: 600;
  padding: 8px 20px; border-radius: 999px;
}
.play-btn:hover { filter: brightness(1.06); }

/* Content */
/* main also has .wrap (side padding only), so set its padding with a selector that wins. */
main.wrap { padding: 48px 16px 56px; }
h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 12px; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 36px 0 10px; }
h3 { font-size: 1.1rem; margin: 24px 0 6px; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 1.3em; }
li + li { margin-top: 6px; }
.lead { font-size: 1.1rem; color: var(--muted); }
.meta { color: var(--muted); font-size: 0.9rem; }
strong { font-weight: 650; }

.card {
  background: var(--surface); border: 1px solid var(--surface-line); border-radius: 16px;
  padding: 16px 18px; margin: 0 0 14px;
}
.card h3 { margin-top: 0; color: var(--accent); }
.card > :last-child { margin-bottom: 0; }

table { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 0.95rem; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--surface-line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.g-perfect { color: var(--g-perfect); font-weight: 650; }
.g-great { color: var(--g-great); font-weight: 650; }
.g-good { color: var(--g-good); font-weight: 650; }
.g-off { color: var(--g-off); font-weight: 650; }
.g-lost { color: var(--g-lost); font-weight: 650; }

.article-list { list-style: none; padding: 0; }
.article-list li + li { margin-top: 14px; }
.article-list a { font-weight: 650; font-size: 1.1rem; }
.article-list p { margin: 4px 0 0; color: var(--muted); }

.cta { margin-top: 28px; }
.cta a {
  display: inline-block; background: var(--accent); color: var(--btn-text); text-decoration: none;
  font-weight: 600; padding: 12px 28px; border-radius: 999px;
}

/* Footer: see footer.css (shared with the home screen). */
