/* PokerEFX — shared styles. Tokens first (light), dark redefinitions, then components. */
:root {
  --bg: #f6f3ec; --bg2: #ede8dd; --card: #fffdf8; --ink: #1d211f; --ink2: #4a514d; --muted: #7a807b; --line: #ddd6c7;
  --felt: #17584c; --felt2: #0f3f37; --on-felt: #eef6f2; --brass: #b8862f; --brass-ink: #2a1d05; --accent: #17584c;
  --raise: #c8553d; --call: #3b7d5c; --fold: #c9cfd6; --allin: #7a2e8c; --limp: #d6a23a; --good: #2e7d4f; --warn: #b7791f; --bad: #b4372b;
  --shadow: 0 1px 2px rgba(30, 25, 10, .06), 0 8px 24px rgba(30, 25, 10, .07);
  --display: 'Fraunces', Georgia, 'Times New Roman', serif; --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 14px; --max: 1180px; color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #111513; --bg2: #171c19; --card: #1b211e; --ink: #ecefe9; --ink2: #c3c9c3; --muted: #8d958f; --line: #2c3430;
  --felt: #1d6b5c; --felt2: #0d332c; --brass: #d7a54a; --brass-ink: #1b1203; --accent: #4fb39a; --fold: #3b444b; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35); color-scheme: dark } }
:root[data-theme="dark"] { --bg: #111513; --bg2: #171c19; --card: #1b211e; --ink: #ecefe9; --ink2: #c3c9c3; --muted: #8d958f; --line: #2c3430;
  --felt: #1d6b5c; --felt2: #0d332c; --brass: #d7a54a; --brass-ink: #1b1203; --accent: #4fb39a; --fold: #3b444b; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35); color-scheme: dark }
* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body); }
a { color: var(--accent); text-underline-offset: 3px }
img { max-width: 100% }
[hidden] { display: none !important }
.wrap, .fp-wrap { max-width: var(--max); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }
h1, h2, h3 { font-family: var(--display); font-weight: 650; line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; margin: 0 0 .5em }
h1 { font-size: clamp(2rem, 5vw, 3.4rem) } h2 { font-size: clamp(1.4rem, 3vw, 2rem) } h3 { font-size: 1.2rem }
p { margin: 0 0 1em; max-width: 68ch }
.eyebrow { font: 600 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--brass) }
.small { font-size: 13.5px; color: var(--muted) }
/* header */
.fp-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line) }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--bg) }
.fp-top .fp-wrap { display: flex; align-items: center; gap: 18px; height: 60px }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 20px/1 var(--display) }
.brand svg { width: 30px; height: 30px; flex: none }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap }
.nav a { color: var(--ink2); text-decoration: none; padding: 7px 11px; border-radius: 9px; font-weight: 500; font-size: 15px }
.nav a:hover, .nav a[aria-current="page"] { background: var(--bg2); color: var(--ink) }
.navbtn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; color: var(--ink); font: inherit }
.theme { display: inline-grid; place-items: center; background: none; border: 1px solid var(--line); border-radius: 9px; width: 36px; height: 34px; color: var(--ink); cursor: pointer }
@media (max-width: 860px) { .navbtn { display: block } .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 16px 14px } .nav.open { display: flex } }
/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 11px; padding: 10px 16px; font: 600 15px/1.2 var(--body); text-decoration: none; cursor: pointer }
.btn:hover { border-color: var(--ink2) }
.btn.pri { background: var(--brass); border-color: var(--brass); color: var(--brass-ink) }
.btn.pri:hover { filter: brightness(1.05) }
.btn.felt { background: var(--felt); border-color: var(--felt); color: var(--on-felt) }
.btn:focus-visible, .nav a:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px }
/* cards and sections */
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)) }
section { padding-block: 44px }
.tag { display: inline-block; font: 600 11.5px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; background: var(--bg2); color: var(--ink2) }
/* hero */
.fp-hero { position: relative; overflow: hidden; background: radial-gradient(120% 140% at 85% 0%, var(--felt) 0%, var(--felt2) 62%); color: var(--on-felt) }
.fp-hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-block: 64px }
.fp-hero p { color: color-mix(in srgb, var(--on-felt) 82%, transparent); font-size: 18px }
.fp-hero .eyebrow { color: #e8c46e }
.fp-hero h1 em { font-style: italic; color: #f0cf7e }
@media (max-width: 860px) { .fp-hero .wrap { grid-template-columns: 1fr; padding-block: 40px } }
/* forms */
label.f { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; color: var(--ink2); font-weight: 500 }
select, input[type=text], input[type=number], input[type=email], input[type=password] { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; min-width: 0; max-width: 100% }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end }
/* tables */
.tw { overflow-x: auto } table.t { border-collapse: collapse; width: 100%; font-size: 14.5px } table.t th, table.t td { padding: 7px 9px; border-bottom: 1px solid var(--line); text-align: right } table.t th:first-child, table.t td:first-child { text-align: left } table.t th { font: 600 12px var(--body); text-transform: uppercase; letter-spacing: .05em; color: var(--muted) }
/* ads: reserved boxes so the layout does not jump; filled only with consent */
.ad { display: grid; place-items: center; min-height: 100px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 12px; margin-block: 24px; background: var(--bg2) }
/* footer */
.fp-foot { border-top: 1px solid var(--line); margin-top: 40px; padding-block: 30px calc(30px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 14px }
.fp-foot .fp-wrap { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between }
.fp-foot a { color: var(--ink2) }
/* cookie banner */
.consent { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 50; max-width: 720px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 16px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap }
.consent p { margin: 0; flex: 1 1 320px; font-size: 14px }
/* poker cards */
.pc { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 42px; height: 58px; border-radius: 7px; background: #fff; color: #111; border: 1px solid #d8d8d8; font: 700 21px/1 var(--display); box-shadow: 0 2px 6px rgba(0, 0, 0, .15) }
.pc small { font-size: 16px } .pc.h, .pc.d { color: #c0392b } .pc.d { color: #1f62c9 } .pc.c { color: #1d7a3e }
.prose { max-width: 72ch } .prose h2 { margin-top: 1.4em } .prose li { margin-bottom: .4em }
.kpi { display: flex; flex-direction: column; gap: 2px } .kpi b { font: 700 28px/1.1 var(--display) } .kpi span { color: var(--muted); font-size: 13px }
