/* Shared style for the content pages (How to play, About). */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --border: #e5e7eb;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #2f6feb;
  --accent-soft: #e8f0fe;
  --red: #d32f2f;
}
/* Dark theme, if chosen in the game (same setting, remembered on this device) */
:root[data-theme="dark"] {
  --bg: #111418;
  --surface: #1b1f25;
  --border: #2b313a;
  --text: #e5e8ec;
  --muted: #9aa3ae;
  --accent: #6b9bff;
  --accent-soft: #1c2a45;
  --red: #f07171;
  color-scheme: dark;
}
:root[data-theme="dark"] .play-btn { color: #0d1420; }
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.site-head a.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); text-decoration: none; }
.site-head img { width: 30px; height: 30px; border-radius: 8px; }
.play-btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
main { max-width: 760px; margin: 0 auto; padding: 28px 16px 48px; }
article { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px 28px; }
h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 6px; }
h2 { font-size: 1.25rem; margin: 1.8em 0 0.4em; }
h3 { font-size: 1.05rem; margin: 1.3em 0 0.3em; }
p, li { font-size: 1rem; }
.lead { color: var(--muted); font-size: 1.05rem; margin-top: 0; }
.note { background: var(--accent-soft); border-radius: 12px; padding: 12px 16px; }
.suit-r { color: var(--red); }
table { border-collapse: collapse; width: 100%; margin: 8px 0; font-size: 0.95rem; }
th, td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--bg); }
.table-wrap { overflow-x: auto; margin: 8px 0; }
.table-wrap table { margin: 0; min-width: 480px; }
.cta { text-align: center; margin: 28px 0 4px; }
.site-foot { text-align: center; color: var(--muted); font-size: 0.9rem; padding: 0 16px 32px; }
.site-foot a { color: var(--muted); margin: 0 8px; }
a { color: var(--accent); }
@media (max-width: 600px) {
  article { padding: 18px 16px; }
  h1 { font-size: 1.55rem; }
}
