/* Source Serif 4 Bold (SIL OFL 1.1, /fonts/OFL-SourceSerif4.txt): lining figures, so
   card ranks, bids, scores and the wordmark sit on one line (Georgia's old-style 3 4 5 7 9 dip).
   The Polish-letter subset loads only when such letters appear. */
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/fonts/SourceSerif4-Bold-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/fonts/SourceSerif4-Bold-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Site-wide: nav, article pages, footer. The table itself is in table.css.
   Palette (2026-10-30): taken from the game's own materials (felt green, card-back burgundy,
   ring gold) over green-tinted neutrals, not the generic cream page + green bar. Light for
   reading; the dark scheme uses the table's felt-black. All text pairs pass WCAG AA. */
:root {
  --bg: #ffffff; --surface: #f3f6f4; --fg: #17231d; --muted: #55665c; --line: #dde5df;
  --brand: #1d6b43; --btn: #1d6b43; --mark: #741827; --accent: #ffd166; --red: #c8102e;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0d1f16; --surface: #132a1f; --fg: #e8eee9; --muted: #a6b6ac; --line: #24382d;
    --brand: #8fd3a7; --mark: #e0bd62; --red: #ff7a8a; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--brand); }
.preview-flag { position: fixed; top: 0; right: 0; z-index: 5; font-size: 11px; background: var(--accent); color: #222; padding: 2px 8px; border-bottom-left-radius: 6px; }
.topnav { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 16px; background: var(--bg); color: var(--fg); font-size: 16px; min-height: 44px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.topnav a { color: var(--fg); text-decoration: none; }
.topnav .brand { display: inline-flex; align-items: center; gap: 8px; font: 700 18px/1 "Source Serif 4", Georgia, serif; }
.topnav .brand img { width: 26px; height: 26px; flex: none; }
.topnav .links { display: flex; gap: 12px; overflow-x: auto; }
.topnav .links a[aria-current] { text-decoration: underline 2px var(--mark); text-underline-offset: 6px; }
/* Game page: the nav sits on the table's felt-black, no separate bar. */
body.home .topnav { background: #0b2418; color: #f6f1e4; border-bottom-color: rgba(255,255,255,.08); }
body.home .topnav a { color: #f6f1e4; }
body.home .topnav .links a[aria-current] { text-decoration-color: #e0bd62; }
.content { max-width: 720px; margin: 0 auto; padding: 16px; }
.content h1, .content h2, .content h3 { font-family: "Source Serif 4", Georgia, serif; letter-spacing: -.005em; }
.content h1 { font-size: 30px; line-height: 1.2; margin: 14px 0 12px; }
.content h1 + p:not(.updated) { font-size: 18.5px; }
.content h1 + p strong { font-weight: 600; }
.content .updated { color: var(--muted); font-size: 14px; margin-top: -4px; }
.content h2 { font-size: 22px; margin: 28px 0 8px; }
.content h3 { font-size: 18px; margin: 20px 0 6px; }
.content table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.content th, .content td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.content th { color: var(--muted); font-weight: 600; background: var(--surface); }
.content li { margin: 4px 0; }
.faq h3 { font-size: 17px; }
.cta { margin: 24px 0; }
.button { display: inline-block; background: var(--btn); color: #fff !important; text-decoration: none; padding: 12px 20px; border-radius: 8px; font-weight: 700; }
.foot { max-width: 720px; margin: 24px auto 0; padding: 16px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
/* Home: text under the table, on the dark felt. */
body.home .home-text { color: #e9efe9; }
body.home .home-text a { color: #e0bd62; }
body.home .foot { border-color: rgba(255,255,255,.15); color: #b9d3c3; }
body.home .foot a { color: #e0bd62; }

@media (min-width: 900px) { .preview-flag { top: auto; bottom: 0; right: auto; left: 0; border-radius: 0 6px 0 0; } }
/* Phones: the game page's slim bar has the menu button top right; the preview label hangs below the bar. */
@media (max-width: 899px) { body.home .preview-flag { top: 52px; right: auto; left: 50%; transform: translateX(-50%); border-radius: 0 0 6px 6px; font-size: 9px; padding: 0 6px; } }

/* Cookie consent bar (EEA/UK/CH visitors only; see site/layout.mjs). Accept and refuse are equally
   easy to press, as EU guidance expects; it never blocks the page. */
.consent { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; border-radius: 12px;
  background: #0f2a1d; color: #e8eee9; box-shadow: 0 8px 28px rgba(0,0,0,.35); font-size: 14px; line-height: 1.45; }
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 240px; }
.consent a { color: #e0bd62; }
.consent div { display: flex; gap: 8px; flex: 1 1 auto; justify-content: flex-end; }
.consent .go { flex: 1 1 0; min-width: 120px; height: 42px; padding: 0 16px; border: 0; border-radius: 8px; cursor: pointer;
  font: 700 15px system-ui, sans-serif; background: #e8eee9; color: #17231d; }
.consent .go:hover { filter: brightness(1.06); }
@media (min-width: 900px) { .consent { left: auto; right: 20px; bottom: 20px; width: 420px; } }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); text-decoration: underline; cursor: pointer; }
body.home .linkish { color: #e0bd62; }
