/* Table School — marketing site. Dark-first by design (brand guide v1):
   night ink ground, chalk text, felt surfaces, one brass accent per view. */

@font-face { font-family: "Figtree"; src: url("/fonts/Figtree-Variable.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/BarlowCondensed-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/BarlowCondensed-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/IBMPlexMono-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
/* Metric-matched fallbacks keep layout from jumping when the web fonts arrive */
@font-face { font-family: "Figtree Fallback"; src: local("Segoe UI"), local("Arial"); size-adjust: 101%; ascent-override: 95%; descent-override: 25%; line-gap-override: 0%; }
@font-face { font-family: "Barlow Fallback"; src: local("Arial Narrow"), local("Arial"); size-adjust: 88%; ascent-override: 105%; descent-override: 28%; }

:root {
  color-scheme: dark;
  --ink: #0E1822;
  --ink-2: #13202c;
  --ink-3: #1a2a38;
  --line: #26384a;
  --felt: #1E6A4E;
  --felt-deep: #12432F;
  --felt-hi: #25805e;
  --chalk: #F4F5F0;
  --chalk-2: #c9d0d6;
  --slate: #8C9AA6;
  --brass: #C9A04A;
  --brass-hi: #dbb563;
  --good: #3FB27F;
  --warn: #E8B13A;
  --bad: #E0605A;
  --radius: 14px;
  --max: 1120px;
  --read: 68ch;
  --display: "Barlow Condensed", "Barlow Fallback", "Arial Narrow", sans-serif;
  --body: "Figtree", "Figtree Fallback", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 32px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--ink); color: var(--chalk); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--brass-hi); text-underline-offset: 3px; }
a:hover { color: var(--chalk); }
:focus-visible { outline: 3px solid var(--brass-hi); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--chalk); color: var(--ink); padding: 8px 12px; }

h1, h2, h3 { text-wrap: balance; line-height: 1.12; margin: 0 0 .5em; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: .01em; }
h1 { font-size: clamp(38px, 7vw, 68px); text-transform: uppercase; letter-spacing: .02em; }
h2 { font-size: clamp(28px, 4.4vw, 42px); }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--chalk-2); max-width: 60ch; }
.eyebrow { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--brass); font-size: 15px; margin-bottom: 10px; display: block; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--slate); }
.small { font-size: 14px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(14, 24, 34, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--chalk); }
.logo img { width: 34px; height: 34px; border-radius: 8px; }
.logo span { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: .06em; text-transform: uppercase; }
.logo span b { color: var(--brass); font-weight: 700; }
.site-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.site-nav a { color: var(--chalk-2); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 15px; }
.site-nav a:hover { color: var(--chalk); background: var(--ink-3); }
.site-nav .btn { margin-left: 8px; }
/* the header CTA keeps the button's dark-on-brass text (QA D01: .site-nav a was overriding it, 1.6:1) */
.site-nav a.btn-primary, .site-nav a.btn-primary:hover { color: #1b1407; background: var(--brass); }
.site-nav a.btn-primary:hover { background: var(--brass-hi); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--chalk); border-radius: 10px; min-height: 44px; min-width: 44px; font-size: 20px; }
@media (max-width: 820px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--ink); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 16px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 8px; font-size: 17px; }
  .site-nav .btn { margin: 8px 0 0; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; font: 700 16px var(--body); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .08s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brass); color: #1b1407; }
.btn-primary:hover { background: var(--brass-hi); color: #1b1407; }
.btn-ghost { background: transparent; color: var(--chalk); border-color: var(--line); }
.btn-ghost:hover { background: var(--ink-3); color: var(--chalk); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 15px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- sections ---------- */
section { padding-block: clamp(56px, 9vw, 104px); }
section + section { border-top: 1px solid var(--line); }
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(48px, 7vw, 80px); background:
  radial-gradient(1200px 500px at 85% -10%, rgba(30, 106, 78, .35), transparent 60%),
  radial-gradient(700px 400px at -10% 110%, rgba(201, 160, 74, .08), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 56px); align-items: center; }
.hero h1 span { color: var(--brass); }
.hero .trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; color: var(--slate); font-size: 14px; }
.hero .trust span::before { content: "✓ "; color: var(--good); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: center; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card .card-h { font-size: 20px; font-weight: 700; }
.step-num { font-family: var(--mono); color: var(--brass); font-size: 14px; letter-spacing: .08em; }
.feature-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.feature-list li { padding-left: 28px; position: relative; }
.feature-list li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--felt-hi); box-shadow: inset 0 0 0 3px var(--ink-2), 0 0 0 1px var(--felt-hi); }
.game-tag { display: inline-block; font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: 14px; padding: 3px 10px; border-radius: 999px; background: rgba(30,106,78,.25); color: #7fd3ad; border: 1px solid rgba(63,178,127,.35); }
.lead-game { background: linear-gradient(180deg, rgba(30,106,78,.16), transparent 70%); }

/* phone screenshots */
.shot { margin: 0; display: grid; justify-items: center; gap: 10px; }
.shot img { width: min(300px, 78vw); aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 28px; border: 8px solid #05090d; box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 0 0 1px var(--line); background: var(--ink-3); }
.shot figcaption { color: var(--slate); font-size: 14px; text-align: center; max-width: 34ch; }
.shots-row { display: flex; gap: 22px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.shots-row .shot { scroll-snap-align: center; flex: 0 0 auto; }

/* stats strip (real, verifiable numbers only) */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.fact { border-left: 3px solid var(--felt-hi); padding: 4px 0 4px 14px; }
.fact b { display: block; font-family: var(--mono); font-size: 22px; color: var(--chalk); }
.fact span { color: var(--slate); font-size: 14px; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* pricing */
.price-table { width: 100%; border-collapse: collapse; margin-top: 24px; }
.price-table th, .price-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.price-table th { font-family: var(--display); font-size: 20px; text-transform: uppercase; letter-spacing: .06em; }
.price-table td:nth-child(2), .price-table td:nth-child(3), .price-table th:nth-child(2), .price-table th:nth-child(3) { text-align: center; width: 22%; }
.yes { color: var(--good); font-weight: 700; }
.no { color: var(--slate); }
.plan-note { border: 1px dashed var(--line); border-radius: var(--radius); padding: 16px 18px; margin-top: 18px; color: var(--chalk-2); }
.table-wrap { overflow-x: auto; }
.table-wrap:focus-visible { outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* FAQ */
details.faq { border-bottom: 1px solid var(--line); padding: 4px 0; }
details.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 700; font-size: 18px; position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 26px; color: var(--brass); }
details.faq[open] summary::after { content: "–"; }
details.faq div { color: var(--chalk-2); padding-bottom: 16px; max-width: var(--read); }

/* ---------- widgets (interactive funnel) ---------- */
.widget { background: linear-gradient(180deg, #15503b, var(--felt-deep)); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: clamp(16px, 3vw, 24px); color: var(--chalk); box-shadow: 0 20px 60px rgba(0,0,0,.35); max-width: 560px; margin-inline: auto; width: 100%; }
.widget-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.widget-title { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 18px; }
.widget-progress { font-family: var(--mono); font-size: 14px; color: #bfe6d3; }
.w-table { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 14px; }
.w-seat { background: rgba(0,0,0,.18); border-radius: 12px; padding: 12px; text-align: center; }
.w-seat .lbl { font-family: var(--display); letter-spacing: .12em; text-transform: uppercase; font-size: 14px; color: #bfe6d3; }
.w-cards { display: flex; justify-content: center; gap: 6px; margin: 8px 0 6px; min-height: 76px; }
.w-card { width: 52px; height: 74px; border-radius: 7px; background: #fbfbf7; color: #111; display: grid; place-items: center; font: 700 22px var(--body); box-shadow: 0 3px 8px rgba(0,0,0,.35); position: relative; }
.w-card small { position: absolute; top: 4px; left: 6px; font-size: 13px; }
.w-card.red { color: #c0262d; }
.w-card.back { background: repeating-linear-gradient(45deg, #8f2530 0 6px, #a32c38 6px 12px); border: 3px solid #fbfbf7; }
.w-total { font-weight: 700; }
.w-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.w-btn { min-height: 48px; border-radius: 12px; border: 2px solid rgba(255,255,255,.2); background: rgba(8,14,20,.55); color: var(--chalk); font: 800 15px var(--body); letter-spacing: .04em; cursor: pointer; }
.w-btn:hover { background: rgba(8,14,20,.8); }
.w-btn[data-a="hit"] { border-color: #d9534f; } .w-btn[data-a="stand"] { border-color: #2e9e4f; } .w-btn[data-a="double"] { border-color: #2f74d0; } .w-btn[data-a="split"] { border-color: #8a5cd6; } .w-btn[data-a="surrender"] { border-color: #b8702b; }
.w-btn.wide { grid-column: 1 / -1; }
.w-result { background: rgba(8,14,20,.55); border-radius: 12px; padding: 14px; margin-top: 12px; }
.w-verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.w-verdict div { background: rgba(0,0,0,.25); border-radius: 10px; padding: 8px 10px; }
.w-verdict .k { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); display: block; }
.w-verdict .v { font-weight: 800; font-size: 17px; }
.w-good { color: #7ee0ae; } .w-bad { color: #f6c75f; }
.w-rules { font-size: 13px; color: #bfe6d3; margin-top: 10px; }
.w-score { font-family: var(--display); font-size: 34px; font-weight: 700; text-align: center; }
.w-cta { text-align: center; margin-top: 12px; }
.w-dice { display: flex; gap: 10px; justify-content: center; margin: 8px 0; }
.w-die { width: 56px; height: 56px; background: #fbfbf7; border-radius: 10px; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 7px; box-shadow: 0 3px 8px rgba(0,0,0,.35); }
.w-die i { width: 10px; height: 10px; border-radius: 50%; background: #1c1c1c; place-self: center; }
.w-puck { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font: 800 17px var(--body); letter-spacing: .06em; }
.w-puck.off { background: #111; color: #fff; border: 3px solid #fff; }
.w-puck.on { background: #fff; color: #111; border: 3px solid #111; }
.w-craps-state { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 6px 0 10px; }
.w-craps-state .pt { font-family: var(--display); font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.w-bars { display: grid; gap: 8px; margin: 10px 0; }
.w-bar { display: grid; grid-template-columns: 70px 1fr 64px; gap: 8px; align-items: center; font-size: 14px; }
.w-bar .track { height: 14px; background: rgba(0,0,0,.3); border-radius: 7px; overflow: hidden; position: relative; }
.w-bar .fill { height: 100%; border-radius: 7px; }
.w-bar .theory { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--chalk); }
.w-bar .val { font-family: var(--mono); text-align: right; }

/* ---------- article (SEO pages) ---------- */
.article-hero { padding-block: clamp(32px, 6vw, 64px) 12px; }
.crumbs { font-size: 14px; color: var(--slate); margin-bottom: 14px; }
.crumbs a { color: var(--slate); }
.article { max-width: var(--read); }
.article h1 { font-size: clamp(34px, 6vw, 54px); }
.article h2 { font-size: clamp(26px, 3.6vw, 34px); margin-top: 1.6em; }
.article h3 { margin-top: 1.4em; }
.article p, .article li { color: #dde2e5; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin-bottom: .4em; }
.article table { border-collapse: collapse; width: 100%; font-size: 16px; margin: 1em 0 1.4em; }
.article th, .article td { border-bottom: 1px solid var(--line); padding: 9px 8px; text-align: left; vertical-align: top; }
.article th { color: var(--slate); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.article td code, .article p code { font-family: var(--mono); font-size: .92em; }
.article blockquote { margin: 1.2em 0; border-left: 3px solid var(--brass); padding: 4px 0 4px 16px; color: var(--chalk-2); }
.article .key { background: var(--ink-2); border: 1px solid var(--line); border-left: 4px solid var(--felt-hi); border-radius: 10px; padding: 14px 18px; margin: 1.2em 0; }
.article .key p:last-child { margin-bottom: 0; }
.article-meta { color: var(--slate); font-size: 14px; margin-bottom: 20px; }
.article-cta { margin: 2em 0; padding: 22px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(30,106,78,.35), rgba(30,106,78,.1)); border: 1px solid rgba(63,178,127,.35); }
.article-cta h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-size: 22px; }
.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.related a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--chalk); background: var(--ink-2); font-weight: 600; }
.related a:hover { border-color: var(--felt-hi); }
.related a span { display: block; color: var(--slate); font-weight: 400; font-size: 14px; margin-top: 4px; }
.table-wrap table { min-width: 460px; }
.inline-widget { margin: 1.6em 0; }

/* hub listing */
.cluster { margin-top: 36px; }
.cluster h2 { font-size: 30px; }

/* legal */
.draft-banner { background: rgba(232,177,58,.12); border: 1px solid rgba(232,177,58,.5); color: #f6d58c; padding: 12px 16px; border-radius: 10px; margin-bottom: 24px; font-size: 15px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px 56px; color: var(--slate); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot-grid .foot-h { color: var(--chalk); font-family: var(--display); text-transform: uppercase; letter-spacing: .1em; font-size: 15px; margin: 0 0 10px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-grid a { color: var(--chalk-2); text-decoration: none; }
.foot-grid a:hover { color: var(--chalk); text-decoration: underline; }
.disclaimer-strip { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); max-width: 90ch; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* Touch screens: every control is at least 44px tall (QA D10, Apple HIG / WCAG 2.5.5). */
@media (pointer: coarse), (max-width: 820px) {
  .btn-sm { min-height: 44px; }
  .logo { min-height: 44px; }
  .foot-grid ul { gap: 2px; }
  .foot-grid a, .crumbs a, .card .card-h a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
  .related a { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* hero demo tabs */
.demo { width: 100%; max-width: 560px; justify-self: center; }
.tabbar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; padding: 5px; margin-bottom: 12px; }
.tabbar button { min-height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--chalk-2); font: 700 15px var(--body); cursor: pointer; }
.tabbar button[aria-selected="true"] { background: var(--felt); color: var(--chalk); }

.w-actions.w-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) {
  .hero .trust { gap: 4px 14px; font-size: 13px; }
  .widget-head { flex-wrap: wrap; }
}

/* ---------- Casino Readiness Challenge teaser (landing hero, /challenge/) ---------- */
.hero-ready h1 { font-size: clamp(34px, 5.6vw, 60px); }
.hero-ready h1 span { display: block; }
.ready-card { background: linear-gradient(180deg, #15503b, var(--felt-deep)); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: clamp(16px, 3vw, 24px); color: var(--chalk); box-shadow: 0 20px 60px rgba(0,0,0,.35); display: grid; gap: 12px; max-width: 560px; width: 100%; margin-inline: auto; align-self: start; }
.ready-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ready-kicker { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 17px; }
.ready-count { font-family: var(--mono); font-size: 13px; color: #bfe6d3; }
.ready-place { justify-self: start; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: rgba(8,14,20,.45); color: #bfe6d3; padding: 3px 10px; border-radius: 99px; }
.ready-scene { margin: 0; font-size: 17px; line-height: 1.5; }
.ready-q { margin: 0; font-weight: 700; font-size: 18px; }
.ready-opts { display: grid; gap: 8px; }
.ready-opt { text-align: left; min-height: 52px; padding: 10px 14px; border-radius: 12px; border: 2px solid rgba(255,255,255,.18); background: rgba(8,14,20,.55); color: var(--chalk); font: 600 16px/1.35 var(--body); cursor: pointer; }
.ready-opt:hover:not(:disabled) { border-color: var(--brass); background: rgba(8,14,20,.8); }
.ready-opt.correct { border-color: var(--good); background: rgba(63,178,127,.2); }
.ready-opt.wrong { border-color: var(--bad); background: rgba(224,96,90,.16); }
.ready-opt:disabled { cursor: default; }
.ready-opt:disabled:not(.correct):not(.wrong) { opacity: .5; }
.ready-result { background: rgba(8,14,20,.55); border-radius: 12px; padding: 12px 14px; font-size: 15.5px; line-height: 1.5; border-left: 3px solid var(--good); }
.ready-result.bad { border-left-color: var(--warn); }
.ready-go { width: 100%; }
.ready-foot { margin: 0; color: #bfe6d3; text-align: center; }
.rehearse-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.rehearse-grid .card p { margin: 0; color: var(--chalk-2); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tbc { font-style: italic; color: var(--warn); }
.challenge-page .feature-list { margin-top: 8px; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .rehearse-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .grid-4 { grid-template-columns: minmax(0, 1fr); } }
/* Phones: the challenge is the first screen. Headline, one line of copy, then question 1. */
@media (max-width: 900px) {
  .hero-ready .hero-grid { gap: 14px; }
  .hero-ready .hero-copy { display: contents; }
  .hero-ready .hero-copy > * { order: 5; margin-block: 0; }
  .hero-ready .hero-copy > .crumbs, .hero-ready .hero-copy > .eyebrow { order: 1; }
  .hero-ready .hero-copy > h1 { order: 2; }
  .hero-ready .hero-copy > .lede { order: 3; }
  .hero-ready .hero-grid > .ready-card { order: 4; }
  .hero-ready .hero-copy > .eyebrow { font-size: 13px; letter-spacing: .1em; }
  .hero-ready .hero-copy > h1 { font-size: 34px; }
  .hero-ready .hero-copy > .lede { font-size: 17px; }
  .hero-ready .hero-ctas { display: none; }
  .hero-ready .trust { margin-top: 4px; }
}
.ready-restart { justify-self: center; background: none; border: 0; color: #bfe6d3; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 40px; font-family: var(--body); }

/* ---------- App Store CTA (tools/build_web.py appstore_cta) ---------- */
/* Not live: a plain "Coming soon to the App Store" label. Live: Apple's official badge
   (never redrawn), plus a QR code on desktop only. Android hides every App Store CTA. */
.as-cta { display: inline-flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; }
.as-badge { display: inline-block; line-height: 0; border-radius: 8px; }
.as-badge img { height: 40px; width: auto; display: block; }
.as-soon { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px dashed var(--slate); border-radius: 10px; color: var(--chalk-2); font-weight: 600; font-size: 14px; }
.as-qr { display: none; margin: 0; text-align: center; }
.as-qr svg { width: 104px; height: 104px; border-radius: 6px; display: block; margin: 0 auto 4px; }
.as-qr figcaption { font-size: 12px; color: var(--slate); max-width: 16ch; }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) { .as-qr { display: block; } }
html[data-platform="android"] [data-appstore-cta] { display: none !important; }
html[data-platform="ios"] .as-qr { display: none !important; }
.site-nav a.as-badge, .site-nav a.as-badge:hover { padding: 0; background: none; }
.site-nav .as-nav { margin-left: 6px; }
.site-nav .as-nav .as-soon { min-height: 36px; font-size: 13px; padding: 0 10px; }
@media (min-width: 821px) and (max-width: 1100px) { .site-nav .as-nav.as-soon-wrap { display: none; } }
@media (max-width: 820px) { .site-nav .as-nav { margin: 8px 0 0; } }
.hero-appstore { margin-top: 18px; }
.ready-appstore { display: grid; gap: 8px; justify-items: center; text-align: center; }
.ready-appstore p { margin: 0; color: #bfe6d3; }

/* ---------- practice landings (/craps-trainer/, /blackjack-trainer/) ---------- */
.landing-hero h1 { font-size: clamp(32px, 5.4vw, 56px); }
.landing-hero .inline-widget { margin: 20px 0 0; }
.landing-cta { margin: 24px auto 0; max-width: 560px; text-align: center; }
.landing-cta .cta-row { justify-content: center; }
.landing-cta-h { font-weight: 700; margin-bottom: 12px; }
.landing-copy { padding-bottom: 56px; }
.w-toggles { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 0 0 12px; font-size: 14px; color: #bfe6d3; }
.w-toggle { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.w-seg { display: inline-flex; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; overflow: hidden; }
.w-seg button { min-height: 36px; padding: 0 12px; border: 0; background: transparent; color: var(--chalk-2); font: 700 13px var(--body); cursor: pointer; }
.w-seg button[aria-pressed="true"] { background: var(--felt-hi); color: var(--chalk); }
.w-check { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; }
.w-check input { width: 20px; height: 20px; accent-color: var(--brass); }
.w-btn:disabled { opacity: .35; cursor: not-allowed; }
.w-roll { border-color: var(--brass); }
.w-next { color: #bfe6d3; margin: 10px 0; }
.w-stats { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; font-family: var(--mono); font-size: 13px; color: #bfe6d3; margin-top: 12px; }
.w-log { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14px; max-height: 240px; overflow-y: auto; }
.w-log li { background: rgba(0,0,0,.2); border-radius: 8px; padding: 6px 10px; overflow-wrap: anywhere; }
.w-log .n { font-family: var(--mono); color: var(--slate); margin-right: 6px; }
.w-money { font-family: var(--mono); font-weight: 700; }
.w-money.up { color: #7ee0ae; } .w-money.down { color: #f6c75f; }
.w-weak { margin: 10px 0 0; font-size: 14px; color: #bfe6d3; }
@media (pointer: coarse), (max-width: 820px) { .w-seg button { min-height: 44px; } .w-check { min-height: 44px; } }
.w-next-hand { width: 100%; }
