/* ==========================================================================
   pokerAceTrainer, gedeelde stylesheet (zelfde basis als traintheace.be)
   Mobile-first. Design tokens in :root.
   ========================================================================== */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/montserrat-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;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/montserrat-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;
}

:root {
  --bg: #f5efdf;
  --bg-alt: #ece3cb;
  --surface: #fffaf0;
  --text: #1a1408;
  --muted: #5a4a2a;
  --accent: #10261d;
  --accent-text: #f5efdf;
  --gold: #b8871f;
  --gold-soft: #e0b445;
  --line: #d9cba6;
  --radius: 14px;
  --max: 1080px;
  --font: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
/* A button that looks like a link: sign out is a POST form (button form="logout"). */
.linkbtn { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.linkbtn:hover { color: var(--gold); }
.site-nav .linkbtn { text-decoration: none; white-space: nowrap; }
:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 32px; } }

/* --- Header --------------------------------------------------------------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.2px; }
.brand img, .brand picture { width: 44px; height: 44px; flex: none; }
.brand__name b { color: var(--gold-soft); font-weight: 800; }
.site-nav { display: flex; align-items: center; gap: 20px; font-weight: 600; font-size: 0.95rem; }
.site-nav a { text-decoration: none; }
.site-nav .nav-hide-sm { display: none; }
@media (min-width: 720px) { .site-nav .nav-hide-sm { display: inline; } }
.site-nav a { white-space: nowrap; }
@media (max-width: 719px) {
  .site-header__inner { flex-wrap: wrap; row-gap: 4px; padding-top: 10px; padding-bottom: 10px; }
  .site-nav { flex-wrap: wrap; gap: 6px 16px; font-size: 0.9rem; }
}
.lang { border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 0.85rem; }

/* --- Hero ----------------------------------------------------------------- */
.hero { padding: 56px 0 64px; }
.hero__inner { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .hero__inner { grid-template-columns: 1.3fr 1fr; } }
.eyebrow { margin: 0 0 12px; font-size: 0.85rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.5px; margin: 0 0 16px; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: 0; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 38em; margin: 0 0 28px; }
.hero__mark { max-width: 360px; width: 80%; margin: 0 auto; filter: drop-shadow(0 18px 24px rgba(0,0,0,.28)); }

.btn {
  display: inline-block; padding: 13px 24px; border-radius: 999px;
  background: var(--accent); color: var(--accent-text); font-weight: 700;
  text-decoration: none; border: 2px solid var(--accent);
}
.btn:hover { color: var(--accent-text); filter: brightness(1.15); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { color: var(--text); border-color: var(--gold); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Sections ------------------------------------------------------------- */
.section { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }
.section__intro { max-width: 40em; color: var(--muted); margin: 0 0 32px; }
.grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--2 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { margin: 0; color: var(--muted); }
.card__icon { font-size: 1.6rem; font-weight: 800; line-height: 1; margin-bottom: 14px; color: var(--gold); }

.feature { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .feature { grid-template-columns: 1fr 1fr; } }
.feature > *, .hero__inner > * { min-width: 0; }
.panel { background: var(--accent); color: var(--accent-text); border-radius: var(--radius); padding: 32px; }
.panel .muted { color: #bfb597; }
.wordmark { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 500; letter-spacing: -1px; margin: 0 0 6px; line-height: 1.1; }
.wordmark b { font-weight: 800; color: var(--gold-soft); }
.formula { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 0.95rem; background: rgba(255,255,255,.06); border: 1px solid rgba(224,180,69,.35); border-radius: 10px; padding: 14px 16px; margin: 20px 0 0; overflow-x: auto; white-space: nowrap; }

.checklist { list-style: none; padding: 0; margin: 0 0 24px; }
.checklist li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.checklist li::before { content: "\2660"; position: absolute; left: 0; color: var(--gold); }

.badge { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--gold-soft); color: var(--gold); margin-bottom: 16px; }
.note { font-size: 0.9rem; color: var(--muted); }

/* --- Footer --------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: 0.9rem; color: var(--muted); }
.site-footer p { margin: 0; }
.card .card__action { margin-top: 18px; }


/* --- Dark theme (volgt de systeeminstelling) ------------------------------ */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1411;
    --bg-alt: #10261d;
    --surface: #13241c;
    --text: #f5efdf;
    --muted: #bfb597;
    --accent: #e0b445;
    --accent-text: #10261d;
    --gold: #e0b445;
    --gold-soft: #e0b445;
    --line: #2a3d33;
  }
  .hero { background: radial-gradient(circle at 75% 40%, #1d3027 0%, #0c1411 65%); }
  .panel { background: #0c1411; color: var(--text); border: 1px solid var(--line); }
}

/* --- Ledenpagina's: lessen, tabellen, startkaarten-raster ----------------- */
:root {
  --pos-utg: #10261d; --pos-utg-text: #f5efdf;
  --pos-hj: #2f5a45;  --pos-hj-text: #f5efdf;
  --pos-co: #b8871f;  --pos-co-text: #1a1408;
  --pos-btn: #ecd596; --pos-btn-text: #1a1408;
}
.lesson { max-width: 46em; }
.lesson h2 { margin-top: 0; }
.lesson h3 { margin: 28px 0 10px; }
.lesson p, .lesson li { color: var(--text); }
.lesson .muted, .lesson figcaption { color: var(--muted); }
.lesson ul, .lesson ol { padding-left: 1.3em; }
.lesson li { margin-bottom: 6px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 8px; list-style: none; }
.toc a { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.toc a:hover { border-color: var(--gold); }
.table-wrap { overflow-x: auto; margin: 12px 0 8px; }
table.plain { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
table.plain th, table.plain td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.plain th { font-weight: 700; }
table.plain td.num, table.plain th.num { text-align: right; white-space: nowrap; }
.callout { border-left: 4px solid var(--gold); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 18px; margin: 16px 0; }
.callout p { margin: 0; }
.callout[hidden] { display: none; }
.hand-grid { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 2px; max-width: 560px; margin: 16px 0 10px; font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; }
.hand-grid span { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: clamp(0.5rem, 2.1vw, 0.78rem); font-weight: 700; border-radius: 3px; background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.hand-grid .utg { background: var(--pos-utg); color: var(--pos-utg-text); border-color: transparent; }
.hand-grid .hj  { background: var(--pos-hj);  color: var(--pos-hj-text);  border-color: transparent; }
.hand-grid .co  { background: var(--pos-co);  color: var(--pos-co-text);  border-color: transparent; }
.hand-grid .btn-pos { background: var(--pos-btn); color: var(--pos-btn-text); border-color: transparent; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 0; margin: 0 0 8px; list-style: none; font-size: 0.9rem; }
.legend li { display: flex; align-items: center; gap: 8px; margin: 0; }
.legend i { width: 16px; height: 16px; border-radius: 3px; display: inline-block; border: 1px solid var(--line); }
.legend .utg { background: var(--pos-utg); } .legend .hj { background: var(--pos-hj); }
.legend .co { background: var(--pos-co); } .legend .btn-pos { background: var(--pos-btn); }
.legend .fold { background: var(--surface); }
.quiz details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 14px 18px; margin-bottom: 12px; }
.quiz summary { cursor: pointer; font-weight: 600; }
.quiz details p { margin: 10px 0 0; }
.seats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 12px 0; text-align: center; font-size: 0.85rem; }
.seats div { border: 1px solid var(--line); border-radius: 10px; padding: 8px 4px; background: var(--surface); }
.seats b { display: block; font-size: 1rem; }
@media (prefers-color-scheme: dark) {
  :root {
    --pos-utg: #e0b445; --pos-utg-text: #10261d;
    --pos-hj: #a8842f;  --pos-hj-text: #0c1411;
    --pos-co: #4d7a62;  --pos-co-text: #f5efdf;
    --pos-btn: #d9cfb3; --pos-btn-text: #10261d;
  }
}

/* --- Formulieren (aanmelden / registreren) -------------------------------- */
.auth-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 860px) { .auth-grid { grid-template-columns: 1fr 1fr; } }
.auth-grid > * { min-width: 0; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.form input[type="email"], .form input[type="text"] {
  font: inherit; font-weight: 500; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; width: 100%;
}
.form input:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 1px; }
.form .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.form .check input { margin-top: 5px; flex: none; width: 18px; height: 18px; accent-color: var(--gold); }
.form button { justify-self: start; cursor: pointer; font-family: inherit; font-size: 1rem; }
.auth-grid .card > p { margin: 0 0 14px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: var(--radius); padding: 14px 18px; margin: 0 0 24px; border: 1px solid var(--gold); background: var(--surface); }
.notice[hidden] { display: none; }
.notice--error { border-color: #b4412f; }
.key-input { text-transform: uppercase; letter-spacing: 1px; font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; }

/* --- Oefentafel (/leden/oefentafel/) -------------------------------------- */
:root {
  --felt: radial-gradient(ellipse at 50% 40%, #2c6e4f 0%, #1a4a35 60%, #10261d 100%);
  --felt-text: #f5efdf;
  --card-bg: #fffdf7;
  --card-text: #1a1408;
  --card-red: #b4232c;
  --pos: #1f7a4a;
  --neg: #b4412f;
}
.pt-hero { padding: 40px 0 32px; }
.pt-settings { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; margin: 0 0 20px; }
.pt-settings label { display: grid; gap: 4px; font-size: 0.85rem; font-weight: 700; }
.pt-settings label[hidden] { display: none; }
.pt-settings label.pt-check { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; font-weight: 600; padding: 9px 0; cursor: pointer; }
.pt-settings .pt-check input { width: 18px; height: 18px; padding: 0; accent-color: var(--gold); }
.pt-settings select { font: inherit; font-size: 0.95rem; font-weight: 500; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.pt-settings .btn, .pt-tools .btn, .pt-actions .btn { cursor: pointer; font-family: inherit; font-size: 1rem; padding: 11px 20px; }
.pt .btn:disabled { opacity: .5; cursor: default; filter: none; }

.pt-table { background: var(--felt); color: var(--felt-text); border-radius: 28px; border: 6px solid #5a3d1a; box-shadow: inset 0 0 40px rgba(0,0,0,.35); padding: 20px 14px; display: grid; gap: 18px; justify-items: center; text-align: center; }
.pt-seats { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.pt-seat { display: grid; justify-items: center; gap: 2px; font-size: 0.85rem; }
.pt-name { font-weight: 700; }
.pt-action { color: #d9cfb3; }
.pt-action--bet { color: #ffd76a; font-weight: 700; }
.pt-cards, .pt-board { display: flex; gap: 6px; justify-content: center; }
.pt-street { font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #d9cfb3; margin-bottom: 6px; }
.pt-pot { margin-top: 8px; font-size: 1rem; }
.pt-pot b { color: #ffd76a; font-size: 1.15rem; }
.pt-pot span { color: #ffd76a; }
.pt-hand { margin-top: 6px; font-size: 0.95rem; }

.pcard { width: 40px; height: 56px; border-radius: 6px; background: var(--card-bg); color: var(--card-text); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; box-shadow: 0 2px 4px rgba(0,0,0,.35); font-family: var(--font); }
.pcard b { font-size: 1.05rem; font-weight: 800; }
.pcard i { font-style: normal; font-size: 1.05rem; }
.pcard--red { color: var(--card-red); }
.pcard--big { width: 52px; height: 72px; }
.pcard--big b, .pcard--big i { font-size: 1.35rem; }
.pcard--back { width: 28px; height: 40px; background: repeating-linear-gradient(45deg, #b8871f 0 4px, #8a6414 4px 8px); border: 2px solid #f5efdf; }
.pcard--empty { background: transparent; border: 1px dashed rgba(245,239,223,.35); box-shadow: none; }
@media (min-width: 560px) {
  .pcard { width: 48px; height: 68px; }
  .pcard b, .pcard i { font-size: 1.25rem; }
  .pcard--big { width: 62px; height: 86px; }
  .pcard--big b, .pcard--big i { font-size: 1.6rem; }
  .pcard--back { width: 32px; height: 46px; }
  .pt-table { padding: 28px 24px; }
}

.pt-question { font-weight: 700; font-size: 1.1rem; margin: 22px 0 12px; }
.pt-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pt-act--fold { background: transparent; color: var(--text); border-color: var(--neg); }
.pt-act--fold:hover { color: var(--text); }
.pt-tools { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 14px 0 0; }
.pt-score { font-size: 0.95rem; }
.pt-progress { min-height: 1.6em; margin: 10px 0 0; font-variant-numeric: tabular-nums; }

.pt-result { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-top: 6px; }
.pt-result[hidden] { display: none; }
.pt-result h3 { margin: 18px 0 8px; }
.pt-sim h3 { margin-top: 0; }
.pt-result p { margin: 0 0 10px; }
.pt-verdict { font-weight: 800; font-size: 1.15rem; margin: 0 0 14px !important; }
.pt-verdict--good { color: var(--pos); }
.pt-verdict--bad { color: var(--neg); }
.pt-settings input { font: inherit; font-size: 0.95rem; font-weight: 500; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; width: 8.5em; }
.pt-settings input:focus-visible, .pt-settings select:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 1px; }
.pt-mode { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.pt-mode .btn { cursor: pointer; font-family: inherit; font-size: 1rem; padding: 10px 18px; }
.pt-mode .btn[aria-pressed="false"] { background: transparent; color: var(--text); border-color: var(--line); }
.pt-rangebox { max-width: 16em; text-align: center; font-size: 0.8rem; color: #d9cfb3; line-height: 1.35; }
.pt-checks { list-style: none; padding: 0; margin: 0 0 14px; }
.pt-checks li { margin: 4px 0; font-weight: 600; }
.pt-checks .ok { color: var(--pos); }
.pt-checks .no { color: var(--neg); }
.pt-outs { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 14px; }
.pt-outs .pcard { transform: scale(.8); transform-origin: left top; margin-right: -8px; margin-bottom: -10px; }
.pro-tour { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 10px 14px; margin: 0 0 14px; font-size: 0.9rem; }
.pro-tour[hidden] { display: none; }
.pro-tour p { margin: 2px 0; }

/* --- Pro table: an oval table with the seats around it ---------------------
   The table keeps its own dark colours in both themes. tafel.js places the seats and the
   bets (left/top in %); everything here is centred on that point. */
.pro-table { position: relative; height: 640px; margin: 0 0 18px; color: #f5efdf; font-size: 0.8rem; line-height: 1.25; }
.pro-table__felt { position: absolute; inset: 30px 22px; border-radius: 999px; background: radial-gradient(ellipse at 50% 42%, #2f7a57 0%, #1d5a40 55%, #123c2b 100%); border: 14px solid #241a12; box-shadow: 0 0 0 2px #0b0806, 0 0 0 4px #7a5a22, 0 18px 34px rgba(0,0,0,.4), inset 0 0 0 2px rgba(0,0,0,.45), inset 0 0 60px rgba(0,0,0,.45); }
.pro-table__felt::after { content: ""; position: absolute; inset: 16px; border-radius: 999px; border: 1px solid rgba(245,239,223,.16); }
.pro-table__mid { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 6px; text-align: center; }
.pro-table__mid .pt-street { margin: 0; white-space: nowrap; font-size: 0.68rem; letter-spacing: 1.5px; }
.pro-table__mid .pt-board { gap: 3px; }
.pro-table__mid .pcard { width: 30px; height: 42px; border-radius: 4px; }
.pro-table__mid .pcard b, .pro-table__mid .pcard i { font-size: 0.9rem; }
.pro-pot { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px 3px 6px; border-radius: 999px; background: rgba(0,0,0,.38); white-space: nowrap; font-size: 0.85rem; }
.pro-pot b { color: #ffd76a; font-size: 1rem; }
.pro-pot:empty { display: none; }

.pro-chip { flex: none; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle, #f5efdf 0 30%, #b4232c 34% 100%); border: 2px dashed #f5efdf; box-shadow: 0 1px 2px rgba(0,0,0,.6); }
.pro-chip--pot { background: radial-gradient(circle, #fff6d8 0 30%, #b8871f 34% 100%); }
.pro-bet { position: absolute; transform: translate(-50%, -50%); z-index: 3; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 3px; border-radius: 999px; background: rgba(0,0,0,.5); color: #ffd76a; font-weight: 700; font-size: 0.78rem; white-space: nowrap; font-variant-numeric: tabular-nums; }

.pro-seat { position: absolute; transform: translate(-50%, -50%); z-index: 2; width: 80px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.pro-seat__cards { display: flex; justify-content: center; gap: 2px; height: 26px; }
.pro-seat__cards .pcard { width: 30px; height: 42px; border-radius: 4px; }
.pro-seat__cards .pcard b, .pro-seat__cards .pcard i { font-size: 0.9rem; }
.pro-seat__cards .pcard--back { width: 26px; height: 36px; margin-top: 4px; border-width: 2px; background: repeating-linear-gradient(45deg, #8f1d24 0 3px, #6d141a 3px 6px); }
.pro-seat__cards .pcard--back:first-child { transform: rotate(-7deg); }
.pro-seat__cards .pcard--back:last-child { transform: rotate(7deg); margin-left: -8px; }
.pro-seat--hero .pro-seat__cards { height: 38px; }
.pro-seat--shown .pro-seat__cards { height: 49px; }
.pro-seat__plate { position: relative; z-index: 1; width: 100%; padding: 5px 6px 4px; border-radius: 10px; background: linear-gradient(#262b30, #14181b); border: 1px solid #454c53; box-shadow: 0 3px 8px rgba(0,0,0,.5); }
.pro-seat__name { display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; }
.pro-seat__name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.pro-seat__stack { color: #ffd76a; font-weight: 700; font-variant-numeric: tabular-nums; }
.pro-tag { position: absolute; top: -9px; left: -9px; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 999px; background: #1c4f7a; color: #fff; font-size: 0.6rem; font-weight: 800; line-height: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.6); }
.pro-dealer { position: absolute; top: -9px; right: -9px; width: 20px; height: 20px; border-radius: 50%; background: #fffdf7; color: #1a1408; font-size: 0.7rem; font-weight: 800; line-height: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.6), inset 0 0 0 2px #d9cba6; }
.pro-seat__act { position: absolute; left: 50%; top: 0; transform: translate(-50%, -62%); max-width: 118%; padding: 1px 8px; border-radius: 999px; background: #3a4046; color: #f5efdf; font-size: 0.68rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 1px 3px rgba(0,0,0,.5); }
.pro-seat__act--call { background: #1f7a4a; }
.pro-seat__act--raise, .pro-seat__act--allin { background: #b4412f; }
.pro-seat__act--win { background: #ffd76a; color: #1a1408; }
.pro-seat__hud, .pro-seat .pro-profile { margin-top: 2px; padding: 0 6px; border-radius: 999px; background: rgba(0,0,0,.55); font-size: 0.66rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; color: #d9cfb3; }
.pro-seat__hud i { display: none; font-style: normal; font-weight: 500; opacity: .75; margin-right: 3px; }
.pro-seat__hud span + span::before { content: " / "; opacity: .6; }
.pro-seat--folded .pro-seat__plate, .pro-seat--folded .pro-seat__cards, .pro-seat--folded .pro-seat__hud, .pro-seat--folded .pro-profile { opacity: .62; }
.pro-seat--out { opacity: .4; }
.pro-seat--turn .pro-seat__plate { border-color: #ffd76a; box-shadow: 0 0 0 2px #ffd76a, 0 0 16px 3px rgba(255,215,106,.65); animation: pro-turn 1.4s ease-in-out infinite alternate; }
.pro-seat--win .pro-seat__plate { border-color: #ffd76a; box-shadow: 0 0 0 2px #ffd76a, 0 0 14px 2px rgba(255,215,106,.5); }
@keyframes pro-turn { to { box-shadow: 0 0 0 2px #ffd76a, 0 0 6px 1px rgba(255,215,106,.35); } }
@media (prefers-reduced-motion: reduce) { .pro-seat--turn .pro-seat__plate { animation: none; } }
.pro-seat--hero { width: 96px; }
.pro-seat--hero .pro-seat__cards .pcard { width: 38px; height: 54px; border-radius: 5px; margin-top: -16px; }
.pro-seat--hero .pro-seat__cards .pcard b, .pro-seat--hero .pro-seat__cards .pcard i { font-size: 1.1rem; }
.pro-seat--hero .pro-seat__plate { border-color: #b8871f; }

.pro-profile { font-weight: 800; text-transform: uppercase; letter-spacing: .5px; font-size: 0.75rem; color: var(--gold); }
.pro-profile--fish, .pro-profile--shark { color: var(--neg); }
.pro-seat .pro-profile { color: #ffd76a; }
.pro-seat .pro-profile--fish, .pro-seat .pro-profile--shark { background: #b4412f; color: #fff; }

@media (min-width: 720px) {
  .pro-table { height: 540px; font-size: 0.9rem; }
  .pro-table__felt { inset: 44px 56px; border-width: 18px; }
  .pro-table__mid { gap: 10px; }
  .pro-table__mid .pt-street { font-size: 0.75rem; letter-spacing: 2px; }
  .pro-table__mid .pt-board { gap: 6px; }
  .pro-table__mid .pcard { width: 50px; height: 70px; border-radius: 6px; }
  .pro-table__mid .pcard b, .pro-table__mid .pcard i { font-size: 1.3rem; }
  .pro-pot { font-size: 0.95rem; }
  .pro-pot b { font-size: 1.15rem; }
  .pro-bet { font-size: 0.88rem; }
  .pro-seat { width: 150px; }
  .pro-seat__hud i { display: inline; }
  .pro-seat__hud span + span::before { content: " · "; }
  .pro-seat__cards { height: 30px; }
  .pro-seat__cards .pcard { width: 38px; height: 54px; border-radius: 5px; }
  .pro-seat__cards .pcard b, .pro-seat__cards .pcard i { font-size: 1.1rem; }
  .pro-seat__cards .pcard--back { width: 32px; height: 44px; }
  .pro-seat--shown .pro-seat__cards { height: 62px; }
  .pro-seat--hero .pro-seat__cards { height: 46px; }
  .pro-seat__plate { padding: 7px 10px 6px; border-radius: 12px; }
  .pro-seat__act { font-size: 0.75rem; }
  .pro-seat__hud, .pro-seat .pro-profile { font-size: 0.68rem; }
  .pro-seat--hero { width: 160px; }
  .pro-seat--hero .pro-seat__cards .pcard { width: 52px; height: 74px; border-radius: 6px; margin-top: -30px; }
  .pro-seat--hero .pro-seat__cards .pcard b, .pro-seat--hero .pro-seat__cards .pcard i { font-size: 1.4rem; }
}
@media (max-width: 719px) { .pro-table--many { height: 700px; } }

/* The premium practice table: the same table with two seats, top and bottom, in normal flow. */
.pro-table--duo { height: auto; min-height: 470px; max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 14px; padding: 6px 0 4px; }
.pro-table--duo .pro-table__felt { inset: 34px 0; }
.pro-table--duo > :not(.pro-table__felt) { position: relative; z-index: 1; }
.pro-duo__seat, .pro-duo__mid { display: grid; justify-items: center; gap: 8px; text-align: center; }
.pro-table--duo > .pro-duo__seat:last-child { padding-top: 18px; }
.pro-duo__seats { display: flex; justify-content: center; align-items: flex-start; gap: 10px; }
.pro-table--duo .pro-duo__seats .pro-seat { min-width: 96px; }
/* Three players follow the curve of the rail: the outer two sit lower. */
.pro-duo__seats > :first-child:nth-last-child(3), .pro-duo__seats > :last-child:nth-child(3) { margin-top: 40px; }
.pro-seat .pro-duo__hand { font-size: 0.8rem; padding: 2px 10px; margin-top: 4px; }
.pro-duo__hand b { color: #ffd76a; }
.pro-table--duo .pro-seat, .pro-table--duo .pro-bet { position: static; transform: none; }
.pro-table--duo .pro-seat { width: auto; min-width: 132px; }
.pro-table--duo .pro-seat__plate { padding-top: 9px; padding-bottom: 8px; }
.pro-duo__mid .pt-street { margin: 0; }
.pro-duo__mid .pt-board { gap: 4px; }
.pro-seat .pro-duo__range { max-width: 230px; width: max-content; white-space: normal; border-radius: 10px; padding: 3px 10px; line-height: 1.35; font-size: 0.8rem; margin-top: 4px; }
@media (min-width: 720px) {
  .pro-table--duo { min-height: 520px; }
  .pro-table--duo .pro-table__felt { inset: 40px 0; }
  .pro-table--duo .pro-seat { min-width: 170px; }
  .pro-duo__seats { gap: 28px; }
  .pro-table--duo .pro-duo__seats .pro-seat { min-width: 150px; }
  .pro-table--duo > .pro-duo__seat:last-child { padding-top: 32px; }
  .pro-duo__mid .pt-board { gap: 6px; }
  .pro-seat .pro-duo__range { max-width: 380px; }
}

.pro-act--go, .pt-act--call, .pt-act--check { background: var(--pos); border-color: var(--pos); color: #fff; }
.pro-act--go:hover, .pt-act--call:hover, .pt-act--check:hover { color: #fff; }
.pro-hud th[scope="row"] { font-weight: 700; white-space: nowrap; }
.pro-hud abbr { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
.pro-hud__out { opacity: .5; }
.pro-hud__you > * { background: var(--surface); }
.pro-hud__you td:last-child { font-size: 0.9rem; color: var(--muted); }
.pro-hud__note { font-size: 0.9rem; max-width: 46em; }
.pro-mini { font-weight: 700; margin-right: 3px; }
.pro-mini--red { color: var(--card-red); }
.pro-raises .btn { font-size: 0.9rem; padding: 9px 14px; }
.pro-raises { margin-top: 10px; }
.pro-custom { margin-top: 12px; }
.pro-log { font-size: 0.9rem; color: var(--muted); margin: 14px 0; }
.pro-log p { margin: 2px 0; }
.pro-sim { padding-left: 1.2em; }
.pro-sim li { margin: 0 0 10px; }
.pro-v--good > b { color: var(--pos); }
.pro-v--bad > b, .pro-v--bluff > b { color: var(--neg); }
.pt-bar { position: relative; height: 22px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); margin: 34px 0 40px; }
.pt-bar__fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--gold); }
.pt-mark { position: absolute; top: -6px; bottom: -6px; width: 3px; background: var(--text); transform: translateX(-50%); }
.pt-mark em { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); white-space: nowrap; font-style: normal; font-size: 0.75rem; font-weight: 700; padding-bottom: 2px; }
.pt-mark--2 em { bottom: auto; top: 100%; padding: 2px 0 0; }
.pt-mark--l em { left: 0; transform: none; }
.pt-mark--r em { left: auto; right: 0; transform: none; }
@media (max-width: 559px) {
  .pt-ev { font-size: 0.85rem; }
  .pt-ev th, .pt-ev td { padding: 8px 6px; }
  .pt-ev th:nth-child(4), .pt-ev td:nth-child(4) { display: none; }
  table.plain.pt-ev th.num { white-space: normal; }
  .pt-result { padding: 16px 14px; }
}
.pt-ev .pos { color: var(--pos); font-weight: 700; }
.pt-ev .neg { color: var(--neg); font-weight: 700; }
.pt-ev tr.pt-best td:first-child::after { content: " \2605"; color: var(--gold); }
.pt-ev tr.pt-chosen td:first-child { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.pt-why { padding-left: 1.3em; }
.pt-why li { margin-bottom: 8px; }
.pt-model { font-size: 0.85rem; }
@media (prefers-color-scheme: dark) {
  :root { --pos: #6fd39b; --neg: #ef8a75; --card-bg: #f5efdf; }
  .pro-act--go, .pro-act--go:hover, .pt-act--call, .pt-act--call:hover, .pt-act--check, .pt-act--check:hover { color: #0c1411; }
  .pro-mini--red { color: #ef8a75; }
  .pt-table { border-color: #3a2a12; }
}

/* --- blackjackAceTrainer: tables, strategy chart, counting drills ----------
   The felt keeps its own dark colours in both themes (like .pt-table above). */
.bj-table { gap: 22px; padding: 22px 12px 26px; max-width: 760px; margin-inline: auto; }
.bj-side { display: grid; justify-items: center; gap: 8px; }
.bj-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; min-height: 56px; align-items: center; }
.bj-plate { display: inline-block; padding: 4px 14px; border-radius: 999px; background: rgba(0,0,0,.45); font-size: 0.9rem; font-weight: 600; color: #f5efdf; }
.bj-plate b { color: #ffd76a; }
.bj-plate--hero { border: 1px solid #b8871f; }
.bj-rules { font-size: 0.85rem; color: var(--muted); margin: 10px 0 0; text-align: center; }
.bj-act--stand { background: var(--neg); border-color: var(--neg); color: #fff; }
.bj-act--hit { background: var(--pos); border-color: var(--pos); color: #fff; }
.bj-act--stand:hover, .bj-act--hit:hover { color: #fff; }
.bj-act--surrender, .bj-act--decline { background: transparent; color: var(--text); border-color: var(--line); }
.bj-act--surrender:hover, .bj-act--decline:hover { color: var(--text); }

/* Full table: the dealer on top, the players in a row, the member's seat marked. */
.bj-seats { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 14px 18px; }
.bj-seat { display: grid; justify-items: center; gap: 6px; min-width: 84px; }
.bj-seat--hero .bj-plate { border: 1px solid #b8871f; }
.bj-hands { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.bj-hand { display: grid; justify-items: center; gap: 4px; padding: 6px 6px 4px; border-radius: 12px; border: 2px solid transparent; }
.bj-hand--turn { border-color: #ffd76a; box-shadow: 0 0 14px 2px rgba(255,215,106,.5); }
.bj-hand .bj-cards { gap: 0; min-height: 0; flex-wrap: nowrap; }
.bj-hand .pcard { width: 34px; height: 48px; border-radius: 5px; }
.bj-hand .pcard b, .bj-hand .pcard i { font-size: 0.95rem; }
.bj-hand .pcard + .pcard { margin-left: -12px; }
.bj-seat--hero .bj-hand .pcard { width: 44px; height: 62px; }
.bj-seat--hero .bj-hand .pcard b, .bj-seat--hero .bj-hand .pcard i { font-size: 1.15rem; }
.bj-seat--hero .bj-hand .pcard + .pcard { margin-left: -14px; }
.bj-total { font-size: 0.8rem; font-weight: 700; color: #f5efdf; font-variant-numeric: tabular-nums; }
.bj-bet { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px 1px 3px; border-radius: 999px; background: rgba(0,0,0,.5); color: #ffd76a; font-weight: 700; font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.bj-out { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; padding: 1px 8px; border-radius: 999px; background: #3a4046; color: #f5efdf; }
.bj-out--win, .bj-out--blackjack { background: #ffd76a; color: #1a1408; }
.bj-out--lose, .bj-out--bust { background: #b4412f; color: #fff; }
.bj-dealer .pcard--back { width: 40px; height: 56px; }
.bj-shoe { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; color: #d9cfb3; }
.bj-status { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin: 14px 0 0; font-size: 0.95rem; }
.bj-status b { font-variant-numeric: tabular-nums; }
.bj-count { padding: 2px 12px; border-radius: 999px; border: 1px solid var(--gold); font-weight: 700; }
.bj-count[hidden] { display: none; }
.bj-betrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 0; }
.bj-betrow .btn { cursor: pointer; font-family: inherit; font-size: 0.95rem; padding: 9px 16px; }
.bj-betrow[hidden], .pt-actions[hidden] { display: none; }
.bj-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 12px 0 0; }
.bj-form label { display: grid; gap: 4px; font-size: 0.85rem; font-weight: 700; }
.bj-form input { font: inherit; font-size: 1rem; font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; width: 7em; }
.bj-form input:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 1px; }
.bj-form .btn { cursor: pointer; font-family: inherit; font-size: 1rem; padding: 10px 18px; }
.bj-form[hidden] { display: none; }
.bj-fb { list-style: none; padding: 0; margin: 0 0 12px; }
.bj-fb li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.bj-fb li:last-child { border-bottom: 0; }
.bj-fb .pcard { width: 26px; height: 36px; border-radius: 4px; vertical-align: middle; }
.bj-fb .pcard b, .bj-fb .pcard i { font-size: 0.75rem; }
.bj-fb .pcard + .pcard { margin-left: 2px; }
.bj-fb__vs { margin: 0 6px; color: var(--muted); font-size: 0.85rem; }
.bj-fb__line { display: block; margin-top: 4px; font-size: 0.92rem; }
.bj-good { color: var(--pos); font-weight: 800; }
.bj-bad { color: var(--neg); font-weight: 800; }
.bj-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
@media (min-width: 720px) { .bj-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bj-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.bj-kpi span { display: block; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.bj-kpi b { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.bj-kpi small { display: block; font-size: 0.78rem; color: var(--muted); }

/* Strategy chart: a letter in every cell, colour only as a second cue. */
.bs-chart { border-collapse: separate; border-spacing: 2px; font-size: 0.82rem; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.bs-chart th { padding: 4px 6px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.bs-chart th[scope="row"] { text-align: right; }
.bs-chart td { min-width: 30px; padding: 5px 2px; border-radius: 4px; color: #fff; }
.bs-chart caption { text-align: left; font-weight: 800; font-size: 1rem; padding: 14px 0 6px; color: var(--text); }
.bs-chart .a-H { background: #a8392b; }
.bs-chart .a-S { background: #ecd596; color: #1a1408; }
.bs-chart .a-D { background: #1f6f45; }
.bs-chart .a-P { background: #1c4f7a; }
.bs-chart .a-R { background: #5a5f66; }
.bs-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0; margin: 10px 0 0; list-style: none; font-size: 0.88rem; }
.bs-legend li { display: flex; align-items: center; gap: 6px; margin: 0; }
.bs-legend i { display: inline-block; min-width: 30px; padding: 2px 4px; border-radius: 4px; font-style: normal; font-weight: 700; font-size: 0.8rem; text-align: center; color: #fff; }
.bs-legend .a-H { background: #a8392b; } .bs-legend .a-S { background: #ecd596; color: #1a1408; }
.bs-legend .a-D { background: #1f6f45; } .bs-legend .a-P { background: #1c4f7a; } .bs-legend .a-R { background: #5a5f66; }
.bs-charts { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.bs-charts > * { min-width: 0; max-width: 100%; }
.bs-edge { font-weight: 700; }

/* Counting drills. */
.bj-flash { background: var(--felt); border-radius: 22px; border: 6px solid #5a3d1a; min-height: 200px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 22px 14px; max-width: 620px; }
.bj-flash .pcard { width: 76px; height: 106px; border-radius: 9px; }
.bj-flash .pcard b, .bj-flash .pcard i { font-size: 2rem; }
.bj-flash p { color: #f5efdf; font-weight: 700; font-size: 1.1rem; margin: 0; text-align: center; }
.bj-flash--row .pcard { width: 44px; height: 62px; border-radius: 6px; }
.bj-flash--row .pcard b, .bj-flash--row .pcard i { font-size: 1.15rem; }
.bj-trayrow { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 22px; }
.bj-tray { position: relative; width: 130px; height: 220px; border: 4px solid var(--text); border-top: 0; border-radius: 0 0 8px 8px; background: var(--bg-alt); }
.bj-tray__stack { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: repeating-linear-gradient(0deg, #fffdf7 0 2px, #b9ad8c 2px 3px); border-top: 2px solid #8a6414; }
.bj-tray--sm { width: 34px; height: 54px; border-width: 2px; border-color: #d9cfb3; background: rgba(0,0,0,.3); }
.bj-big { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.bj-ramp td.bj-ramp__bar { width: 40%; }
.bj-ramp .pt-bar { height: 12px; margin: 4px 0; }
@media (prefers-color-scheme: dark) {
  .bj-act--stand, .bj-act--stand:hover, .bj-act--hit, .bj-act--hit:hover { color: #0c1411; }
}
@media (prefers-reduced-motion: no-preference) {
  .bj-flash .pcard { animation: bj-in .12s ease-out; }
  @keyframes bj-in { from { transform: scale(.92); opacity: .4; } }
}

/* Long option texts must not push a page wider than a phone. */
.pt-settings label { min-width: 0; max-width: 100%; grid-template-columns: minmax(0, 1fr); }
.pt-settings select { max-width: 100%; min-width: 0; text-overflow: ellipsis; }
#tb-session h3 { margin-top: 26px; }
