/* Shared stylesheet for the static content pages (rules, scoring, how-to-play, faq, online, about, press, 404).
   Same walnut and gold palette as privacy.html. No JavaScript, no web fonts: text paints immediately.
   Dark by default (the brand); a light variant follows the device setting. */
:root {
  color-scheme: dark light;
  --bg: #1a1008; --panel: #271709; --panel-line: #4a3017; --text: #fbf0d6; --muted: #dccaa3;
  --gold: #ffd76a; --gold-soft: #ffe9a8; --link: #ffd76a; --btn-bg: #ffd76a; --btn-text: #1a1008; --warn: #f0846b;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbf3df; --panel: #fff9ea; --panel-line: #e2cfa2; --text: #2b1a0a; --muted: #6a5232;
    --gold: #8a5a06; --gold-soft: #6b4505; --link: #7a4d00; --btn-bg: #2b1a0a; --btn-text: #fbf0d6; --warn: #a53a22;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
a { color: var(--link); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--btn-bg); color: var(--btn-text); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 8px; }

.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; max-width: 760px; margin: 0 auto; padding: 14px 16px 6px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); text-decoration: none; font: 400 22px/1 'Arial Rounded MT Bold', 'Trebuchet MS', system-ui, sans-serif; }
.brand img { width: 32px; height: 32px; }
.site-nav ul, .site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-nav a { display: inline-block; padding: 6px 0; font-size: 15px; }
.site-nav a[aria-current="page"] { color: var(--text); text-decoration: none; font-weight: 700; }

main { max-width: 760px; margin: 0 auto; padding: 8px 16px 48px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs ol { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 8px; }
.crumbs li + li::before { content: '/'; margin-right: 8px; opacity: .6; }
h1 { font: 400 clamp(30px, 6vw, 44px)/1.1 'Arial Rounded MT Bold', 'Trebuchet MS', system-ui, sans-serif; color: var(--gold); margin: 14px 0 10px; }
h2 { font-size: 22px; line-height: 1.25; margin: 34px 0 6px; color: var(--gold-soft); }
h3 { font-size: 18px; margin: 22px 0 4px; color: var(--gold-soft); }
p, ul, ol { margin: 0 0 14px; }
li { margin-bottom: 4px; }
.answer { font-size: 18px; background: var(--panel); border: 1px solid var(--panel-line); border-left: 4px solid var(--gold); border-radius: 10px; padding: 14px 16px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 16px 0 4px; }
.btn { display: inline-block; background: var(--btn-bg); color: var(--btn-text); text-decoration: none; font-weight: 800; padding: 11px 20px; border-radius: 999px; }
.updated, .meta { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.note { border: 2px solid var(--panel-line); background: var(--panel); border-radius: 12px; padding: 12px 16px; margin: 18px 0; }
.note strong:first-child { color: var(--gold-soft); }
table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: 16px; }
caption { text-align: left; font-weight: 700; color: var(--gold-soft); padding-bottom: 6px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--panel-line); }
th { color: var(--gold-soft); }
.table-wrap { overflow-x: auto; }
figure { margin: 16px 0; }
figure img { max-width: 100%; height: auto; background: var(--panel); border-radius: 12px; }
figcaption { color: var(--muted); font-size: 14px; }
details { border-bottom: 1px solid var(--panel-line); padding: 8px 0; }
summary { cursor: pointer; font-weight: 700; color: var(--gold-soft); }
dl { margin: 0 0 14px; }
dt { font-weight: 700; color: var(--gold-soft); margin-top: 10px; }
dd { margin: 0; }
.step-list { padding-left: 22px; }
.step-list li { margin-bottom: 12px; }

.site-footer { max-width: 760px; margin: 0 auto; padding: 18px 16px 40px; border-top: 1px solid var(--panel-line); color: var(--muted); font-size: 14px; }
.site-footer p { margin: 12px 0 0; }
@media (max-width: 480px) { body { font-size: 17px; } .answer { font-size: 17px; } }
@media print { .site-header, .site-footer, .cta, .skip { display: none; } body { background: #fff; color: #000; } }
