/* ============================================================
   Felt Trainer — Shared design tokens, base styles, and
   common components used across all games.

   Sections:
     - Design tokens (:root)
     - Reset
     - Utilities (.hidden)
     - Tooltips
     - Setup screen
     - Header bar
     - Modal overlay / card / close
     - Toast
   ============================================================ */

@import url('/shared/site-footer.css');

/* ==================== Design tokens ==================== */

:root {
  /* Felt Trainer 2026: the same paper, ink, red, teal, and brass language as
     the homepage. Product screens use the dark end of the palette; reading
     surfaces use the light end below. */
  --paper: #f4ecdf;
  --paper-2: #fffaf0;
  --paper-3: #eadcc8;
  --ink: #10272f;
  --ink-2: #17383d;
  --muted-ink: #596a70;
  --brand-red: #c03730;
  --brand-red-dark: #8e2925;
  --brand-teal: #167673;
  --brand-brass: #c89a43;

  --bg: #0c2228;
  --surface: #153239;
  --surface-2: #1b3d41;
  --surface-3: #255052;
  --border: #3a5b5b;
  --text: #fffaf0;
  --text-muted: #c5d1ce;
  --text-dim: #879e9a;

  /* Felt greens */
  --felt: #116b55;
  --felt-dark: #0b4c43;
  --felt-light: #167b60;
  --felt-spot: #1b8d6c;   /* brighter center hotspot — overhead-light effect */

  /* Shared table rail (wood/leather) — gives every felt a real, premium edge
     instead of green-on-green. Tuned to "Bellagio not Circus Circus". */
  --rail: #8d6a35;        /* wood face */
  --rail-hi: #b48a4c;     /* top bevel highlight */
  --rail-lo: #5b431f;     /* bottom bevel / trim */
  --felt-print: rgba(255,250,240,.68); /* legible felt screen-print text */

  /* Table lines (used by craps; harmless elsewhere) */
  --line: rgba(255,255,255,.65);
  --line-heavy: rgba(255,255,255,.8);

  /* Colors */
  --green: #167673;
  --green-bright: #4bc2b6;
  --green-dim: #123f3e;
  --red: #c53b33;
  --red-bright: #eb675e;
  --red-dim: #4a211f;
  --gold: #c89a43;
  --gold-bright: #e5bd69;
  --gold-dim: #5a4723;
  --blue: #5b8ec9;
  --blue-dim: #1a2f45;
  --cyan: #4ea8b8;
  --orange: #d4762a;

  /* Chips */
  --chip-red: #b22828;
  --chip-white: #e8e8e8;
  --chip-blue: #2554a0;
  --chip-green: #1a8a42;
  --chip-black: #1a2420;

  --radius: 4px;
  --radius-lg: 8px;

  /* Typography */
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* ==================== Reset ==================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
}

/* Ambient casino-floor backdrop behind the gameplay screens (scoped to
   .game-screen so content/landing pages are untouched): a soft warm glow above
   the table plus a vignette that darkens the edges, so the felt sits in a
   space instead of floating in a black void. */
.game-screen {
  /* The final layer is the solid base: this rule's `background` shorthand
     overrides `body { background: var(--bg) }`, so without a base color the
     body canvas falls back to transparent/white. Pages whose felt fills the
     viewport hide it, but any scrolling content would expose a white canvas.
     Keep var(--bg) as the bottom layer so every game screen stays dark. */
  background:
    radial-gradient(ellipse 72% 55% at 50% -4%, rgba(31,124,111,.24), transparent 56%) fixed,
    radial-gradient(ellipse 140% 100% at 50% 42%, transparent 44%, rgba(0,0,0,.52) 100%) fixed,
    var(--bg);
}

a { color: var(--brand-red); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--brand-teal);
  outline-offset: 3px;
}

/* ==================== Utilities ==================== */

.hidden { display: none !important; }

/* ==================== Tooltips ==================== */

[data-tooltip] {
  position: relative;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.85);
  color: #e8ede9;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 100;
}
[data-tooltip]:hover::after,
[data-tooltip]:focus::after {
  opacity: 1;
}
/* Tooltips are hover-only and useless on touch; their nowrap text also
   inflates page width near the right edge on narrow screens (horizontal
   scroll). Don't generate them on touch or small viewports. */
@media (hover: none), (max-width: 600px) {
  [data-tooltip]::after { content: none; }
}

.tooltip-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.75);
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1;
  vertical-align: middle;
}

/* ==================== Setup screen ==================== */

.setup-screen {
  --surface: var(--paper-2);
  --surface-2: #f1e6d6;
  --surface-3: #e8d8c1;
  --border: #c9bda9;
  --text: var(--ink);
  --text-muted: var(--muted-ink);
  --text-dim: #6e7778;
  --green: var(--brand-red);
  --green-bright: #dd4d45;
  --green-dim: #f2d7d1;
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 24px;
  background:
    radial-gradient(circle at 86% 10%, rgba(197,59,51,.06) 0 16%, transparent 16.2%),
    radial-gradient(circle at 88% 12%, transparent 0 23%, rgba(197,59,51,.05) 23.2% 24%, transparent 24.2%),
    var(--paper);
}
.setup-card {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg); padding: 42px 38px; max-width: 480px; width: 100%;
  box-shadow: 10px 12px 0 rgba(16,39,47,.12);
}
.setup-brand {
  display: flex; align-items: center; gap: 14px; margin-bottom: 6px;
}
.setup-chip {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--brand-red);
  border: 3px solid rgba(255,255,255,.34);
  box-shadow: inset 0 0 0 1px rgba(142,41,37,.45);
  position: relative;
  flex-shrink: 0;
}
.setup-chip::before {
  content: 'F';
  position: absolute; inset: 2px;
  display: grid; place-items: center;
  border: 2px dashed rgba(255,255,255,.32);
  border-radius: 50%;
  color: white; font-family: var(--font-body); font-size: 15px; font-weight: 800;
}
.setup-brand-text { display: flex; flex-direction: column; min-width: 0; }
.setup-card .setup-wordmark {
  font-family: var(--font-display);
  font-size: 38px; font-weight: 800; color: var(--ink);
  letter-spacing: .01em; text-transform: uppercase; line-height: 1.05;
}
/* The page's real H1 is the game name, not the brand: search engines read it as the topic. */
.setup-card h1.game-label { margin: 2px 0 0; line-height: 1.3; }
.setup-card .subtitle {
  color: var(--text-muted); font-size: 14px; margin-bottom: 32px;
  line-height: 1.6;
}
.game-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-red);
  margin-top: 2px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 11px; font-weight: 800; color: var(--muted-ink);
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: 6px;
}
.form-group input, .form-group select {
  width: 100%; min-height: 44px; padding: 11px 14px; background: #fffdf7; border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: 15px;
  font-family: var(--font-body); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus, .form-group select:focus {
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(22,118,115,.14);
}
.form-group input:focus-visible, .form-group select:focus-visible {
  outline: 3px solid var(--brand-teal);
  outline-offset: 2px;
  box-shadow: none;
}
.btn-start {
  width: 100%; min-height: 50px; padding: 15px; background: var(--brand-red); color: #fff; border: 1px solid var(--brand-red-dark);
  border-radius: var(--radius); font-size: 16px; font-weight: 700; cursor: pointer;
  margin-top: 12px; font-family: var(--font-body);
  letter-spacing: .3px;
  box-shadow: 5px 6px 0 var(--ink);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-start:hover { background: #d84940; box-shadow: 3px 4px 0 var(--ink); transform: translate(2px,2px); }
.btn-start:active { box-shadow: 1px 1px 0 var(--ink); transform: translate(4px,4px); }
.back-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 0.85rem;
  text-decoration: none;
}
.back-link:hover { color: var(--text-muted); }
.setup-nav { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
.setup-nav .back-link { margin-top: 16px; }
.setup-nav .back-link.is-learn { color: var(--brand-teal); }
.setup-nav .back-link.is-learn:hover { color: #0d5b58; filter: none; }

/* ==================== Header bar ==================== */

.header-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--ink); border-bottom: 1px solid rgba(255,250,240,.16);
  padding: 11px 20px; gap: 16px; flex-wrap: wrap;
  color: var(--text);
}
.header-left { display: flex; align-items: center; gap: 12px; }
.header-left h2 {
  font-family: var(--font-display);
  display: flex; align-items: center; gap: 9px;
  font-size: 20px; font-weight: 800; color: var(--paper-2); white-space: nowrap;
  letter-spacing: .02em; text-transform: uppercase;
}
.header-left h2::before {
  content: 'F'; width: 28px; height: 28px; display: grid; place-items: center;
  color: white; background: var(--brand-red); border: 2px solid rgba(255,255,255,.28);
  border-radius: 50%; font: 800 12px var(--font-body);
}
/* Brand doubles as a home link — keep it gold, not the default green link color */
.header-left h2 a {
  color: inherit; text-decoration: none;
  transition: color .15s;
}
.header-left h2 a:hover { color: white; text-decoration: none; }
.header-stats { display: flex; gap: 20px; }
.stat { text-align: center; }
.header-bar .stat-label {
  display: block; font-size: 9px; text-transform: uppercase;
  letter-spacing: .08em; color: #92aaa7; font-weight: 700;
}
.header-bar .stat-value { color: var(--paper-2); font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-value.positive { color: var(--green-bright); }
.stat-value.negative { color: var(--red-bright); }
.header-actions { display: flex; gap: 6px; align-items: center; }
.btn-hdr {
  min-height: 36px; padding: 7px 11px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius); color: #c7d5d2; font-size: 14px; cursor: pointer;
  font-family: var(--font-body);
  transition: all .15s; line-height: 1;
}
.btn-hdr:hover { background: rgba(255,255,255,.12); color: white; }

/* ==================== Modal ==================== */

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 24px;
  backdrop-filter: blur(2px);
}
.modal-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  max-width: 500px; width: 100%; max-height: 85vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.modal-wide { max-width: 780px; }
.modal-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;
}
.modal-header h2 {
  font-family: var(--font-display);
  font-size: 20px; color: var(--gold); font-weight: 400;
}
.btn-close {
  background: none; border: none; color: var(--text-muted);
  font-size: 24px; cursor: pointer; padding: 0 4px; line-height: 1;
}
.btn-close:hover { color: var(--text); }

/* ==================== Toast ==================== */

.toast {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  background: var(--surface); color: var(--text); padding: 10px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 14px; font-weight: 600;
  z-index: 200; transition: opacity .3s, transform .3s;
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.show { opacity: 1; }
.toast.hidden { opacity: 0; pointer-events: none; }

/* ==================== Tutorial ==================== */
/* Shared guided-tutorial chrome: the setup-screen launch button, the
   floating card (fixed bottom-right by default — craps + blackjack), the
   progress bar, step counter, body, buttons, hint, skip, and spotlight.
   Game overrides: roulette docks the card into its own column and adds a
   Move toggle; blackjack right-aligns the step counter beside a Back link. */

.btn-tutorial {
  width: 100%; padding: 12px; background: transparent; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 14px; font-weight: 600; cursor: pointer; margin-top: 10px;
  font-family: var(--font-body);
  transition: all .15s;
}
.btn-tutorial:hover { background: var(--surface-2); color: var(--text); border-color: var(--text-dim); }

.tutorial-card {
  position: fixed; z-index: 60;
  bottom: 24px; right: 24px;
  width: 380px; max-width: calc(100vw - 48px);
  background: var(--paper-2); border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 8px 10px 0 rgba(0,0,0,.24);
  overflow: hidden;
  animation: tutSlideIn .3s ease;
}
@keyframes tutSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tut-progress-bar {
  height: 4px; background: var(--paper-3); width: 100%;
}
.tut-progress-fill {
  height: 100%; background: var(--brand-red);
  transition: width .4s ease;
}
.tut-step-count {
  display: flex;
  align-items: center;
  padding: 14px 18px 0;
}
.tut-step-counter {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--brand-red);
}
.tut-back-link {
  background: transparent;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted-ink);
  cursor: pointer;
  transition: color .15s;
}
.tut-back-link:hover { color: var(--ink); }
.tut-title {
  padding: 4px 18px 0;
  font-family: var(--font-display);
  font-size: 21px; font-weight: 800; color: var(--ink); text-transform: uppercase;
}
.tut-body {
  padding: 10px 18px;
  font-size: 13px; line-height: 1.7; color: var(--muted-ink);
}
.tut-body strong { color: var(--ink); font-weight: 800; }
.tut-actions {
  padding: 0 18px 14px;
}
.tut-btn {
  padding: 10px 22px; border: none; border-radius: var(--radius);
  font-size: 14px; font-weight: 700; cursor: pointer;
  font-family: var(--font-body);
  transition: all .15s;
}
.tut-btn-next { background: var(--brand-red); color: #fff; }
.tut-btn-next:hover { background: #d84940; }
.tut-btn-finish { background: var(--brand-teal); color: white; }
.tut-btn-finish:hover { background: #0f625f; }
.tut-hint {
  font-size: 12px; color: var(--brand-teal); font-weight: 700;
  padding: 6px 0;
  animation: tutPulse 2s ease-in-out infinite;
}
@keyframes tutPulse {
  0%, 100% { opacity: .6; }
  50%      { opacity: 1; }
}
.tut-skip {
  display: block; width: 100%;
  padding: 9px; background: #f0e4d3; border: none; border-top: 1px solid #c9bda9;
  color: var(--muted-ink); font-size: 11px; cursor: pointer;
  font-family: var(--font-body);
  transition: color .15s;
}
.tut-skip:hover { color: var(--ink); }

/* Spotlight — highlight the element a step is pointing at */
.tut-spotlight-target {
  position: relative; z-index: 10;
  box-shadow: 0 0 0 4px rgba(45,159,95,.5), 0 0 20px rgba(45,159,95,.3) !important;
  border-radius: 4px;
}
.tut-pulse {
  animation: tutTargetPulse 1.5s ease-in-out 2;
}
@keyframes tutTargetPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(45,159,95,.5), 0 0 20px rgba(45,159,95,.3); }
  50%      { box-shadow: 0 0 0 8px rgba(45,159,95,.6), 0 0 30px rgba(45,159,95,.5); }
}

@media (max-width: 860px) {
  .tutorial-card {
    bottom: 12px; right: 12px; left: 12px;
    width: auto; max-width: none;
  }
}
@media (max-width: 520px) {
  .tutorial-card {
    bottom: auto; top: 60px; right: 8px; left: 8px;
    width: auto; max-width: none;
    max-height: 45vh; overflow-y: auto;
  }
  .tut-title { font-size: 15px; }
  .tut-body { font-size: 12px; padding: 8px 14px; line-height: 1.6; }
  .tut-step-count { padding: 10px 14px 0; }
  .tut-actions { padding: 0 14px 10px; }
}

/* ============================================================
   SEO / "Learn" content sections (below the game on each page)
   Crawlable, AI-citable reference content. Shared across games.
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(244,236,223,.96); border-bottom: 1px solid #cfc1ad;
  backdrop-filter: blur(10px);
}
.site-skip {
  position: fixed; z-index: 100; top: 10px; left: 10px;
  min-height: 44px; display: inline-flex; align-items: center; padding: 10px 14px;
  color: white; background: var(--ink); border-radius: var(--radius);
  transform: translateY(-160%); font-weight: 800;
}
.site-skip:focus { transform: translateY(0); }
.site-header-inner {
  width: min(1120px, calc(100% - 40px)); min-height: 72px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-size: 16px; font-weight: 800; text-decoration: none;
}
.site-brand:hover { text-decoration: none; }
.site-brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  color: white; background: var(--brand-red); border: 3px solid rgba(255,255,255,.3);
  box-shadow: inset 0 0 0 1px var(--brand-red-dark); font-size: 14px;
}
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a {
  min-height: 40px; display: inline-flex; align-items: center; padding: 0 13px;
  color: var(--muted-ink); border-radius: var(--radius); font-size: 13px; font-weight: 800;
  text-decoration: none;
}
.site-nav a:hover { color: var(--ink); background: rgba(255,255,255,.52); }
.site-nav .site-practice { color: white; background: var(--brand-red); }
.site-nav .site-practice:hover { color: white; background: #d84940; }

.seo-content {
  --surface: var(--paper-2);
  --surface-2: #efe3d2;
  --surface-3: #e4d4bd;
  --border: #cbbda8;
  --text: var(--ink);
  --text-muted: var(--muted-ink);
  --text-dim: #6d7779;
  --green: var(--brand-teal);
  --green-bright: #0f625f;
  --green-dim: #d7e7e2;
  max-width: 920px;
  margin: 0 auto;
  padding: 64px 28px 88px;
  border-top: 0;
  color: var(--ink);
  line-height: 1.75;
}
.seo-content h1 {
  max-width: 16ch; margin: 0 0 18px; color: var(--ink);
  font: 800 3.5rem/.92 var(--font-display); letter-spacing: -.02em;
  text-transform: uppercase; text-wrap: balance;
}
.seo-content h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  margin: 48px 0 14px;
  letter-spacing: .005em;
  text-transform: uppercase;
  text-wrap: balance;
}
.seo-content h2:first-child { margin-top: 0; }
.seo-content h3 {
  font-size: 1.08rem;
  font-weight: 800;
  margin: 26px 0 8px;
}
.seo-content p { max-width: 72ch; color: var(--muted-ink); margin-bottom: 15px; text-wrap: pretty; }
.seo-content ul, .seo-content ol { max-width: 72ch; color: var(--muted-ink); margin: 0 0 16px 1.2em; }
.seo-content li { margin-bottom: 7px; }
.seo-content a { color: var(--brand-red); }
.seo-content strong { color: var(--ink); }
.seo-content .lede { max-width: 66ch; font-size: 1.12rem; color: var(--ink); }
.seo-content .seo-byline { font-size: 0.82rem; color: #6d7779; margin: -4px 0 18px; }
.seo-content .seo-byline a { color: var(--muted-ink); text-decoration: underline; }

.seo-table-wrap { overflow-x: auto; margin: 8px 0 22px; }
.seo-content .seo-table-note { font-size: 0.82rem; color: #6d7779; margin: -14px 0 0; }
.seo-content .seo-aside {
  font-size: 0.9rem;
  color: var(--muted-ink);
  border: 1px solid #cbbda8;
  background: var(--paper-2);
  padding: 14px 16px;
  border-radius: var(--radius);
  margin: 22px 0;
}
.seo-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.seo-content th, .seo-content td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid #cbbda8;
}
.seo-content th {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #687274;
  font-weight: 800;
}
.seo-content td { color: var(--muted-ink); }
.seo-content td:first-child { color: var(--ink); font-weight: 700; }
.edge-good { color: #0f625f; font-weight: 800; }
.edge-bad  { color: var(--brand-red-dark); font-weight: 800; }

.seo-faq details {
  border: 1px solid #cbbda8;
  border-radius: var(--radius);
  padding: 4px 18px;
  margin-bottom: 10px;
  background: var(--paper-2);
}
.seo-faq summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
.seo-faq summary::-webkit-details-marker { display: none; }
.seo-faq summary::after { content: "+"; float: right; color: var(--brand-red); font-size: 1.2rem; }
.seo-faq details[open] summary::after { content: "\2212"; }
.seo-faq details[open] summary { border-bottom: 1px solid #cbbda8; }
.seo-faq p { padding: 12px 0 6px; margin: 0; }

.seo-cross-links {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px;
}
.seo-cross-links a {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid #bcae9b;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  background: rgba(255,250,240,.48);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color .16s, border-color .16s, background .16s, transform .16s;
}
.seo-cross-links a:hover { color: white; border-color: var(--brand-red); background: var(--brand-red); transform: translateY(-1px); }

.guide-finder {
  margin: 30px 0 8px; padding: 22px; color: var(--paper-2); background: var(--ink);
  border-radius: var(--radius-lg); box-shadow: 7px 8px 0 rgba(16,39,47,.12);
}
.guide-finder .guide-finder-kicker {
  color: #ef8179; font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.seo-content .guide-finder h2 { margin: 5px 0 8px; color: white; font-size: 1.65rem; }
.seo-content .guide-finder p { margin: 0 0 14px; color: #b9c9c6; font-size: .82rem; }
.guide-filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.guide-filter-buttons button {
  min-height: 42px; padding: 8px 12px; border: 1px solid #56706f; border-radius: var(--radius);
  color: #d8e2df; background: #17383d; cursor: pointer; font: 800 .73rem var(--font-body);
}
.guide-filter-buttons button:hover { border-color: #91aaa5; color: white; }
.guide-filter-buttons button.is-active { color: var(--ink); background: var(--paper-2); border-color: var(--paper-2); }
.guide-filter-status { width: 100%; min-height: 1rem; color: #91aaa5; font-size: .65rem; }

@media (max-width: 520px) {
  .site-header-inner { width: min(100% - 28px, 1120px); min-height: 62px; }
  .site-nav a:not(.site-practice) { display: none; }
  .site-nav .site-practice { min-height: 38px; }
  .seo-content { padding: 42px 18px 64px; }
  .seo-content h1 { font-size: 2.65rem; }
  .seo-content h2 { font-size: 1.7rem; }
}

/* SEO content-page extras (breadcrumb + practice CTA) */
.seo-crumb { font-size: 0.82rem; color: #737b7d; margin-bottom: 22px; }
.seo-crumb a { color: var(--brand-teal); text-decoration: none; font-weight: 700; }
.seo-crumb a:hover { color: #0f5b58; }
.seo-cta {
  margin: 32px 0;
  padding: 28px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--paper-2);
  text-align: center;
  box-shadow: 7px 8px 0 rgba(16,39,47,.12);
}
.seo-cta-btn {
  display: inline-block;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--brand-red);
  text-decoration: none;
}
.seo-cta-btn:hover { text-decoration: underline; }
.seo-cta-note { font-size: 0.82rem; color: #687274; margin: 8px 0 0; }

/* ============================================================
   Advanced Table Rules — preset picker + disclosure
   (shared/advanced-settings.js). Inherits .form-group styling;
   adds the disclosure chrome, the quiet edge badge, and the
   compact two-column grid for the per-rule toggles.
   ============================================================ */
.adv-root { margin-bottom: 18px; }
.adv-preset .adv-blurb {
  margin: 6px 0 0; font-size: 12px; color: var(--text-muted); line-height: 1.4;
}
.adv-provenance {
  margin: 7px 0 0; color: var(--text-dim); font-size: 10px; line-height: 1.4;
}
.adv-provenance a { color: var(--text-muted); }
.adv-provenance.adv-stale { color: var(--gold); }
.adv-assessment {
  margin-top: 10px; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface-2); font-size: 11px;
}
.adv-assessment:empty { display: none; }
.adv-assessment-heading { display: flex; align-items: center; gap: 8px; }
.adv-grade {
  display: inline-grid; place-items: center; width: 24px; height: 24px;
  border-radius: 6px; background: var(--green-dim); color: var(--green-bright);
  font-weight: 800;
}
.adv-grade-d, .adv-grade-f { background: var(--red-dim); color: var(--red-bright); }
.adv-grade-c { background: var(--gold-dim); color: var(--gold-bright); }
.adv-facts, .adv-warnings { margin: 7px 0 0; padding-left: 17px; color: var(--text-muted); line-height: 1.45; }
.adv-warnings { color: var(--text-dim); }
.adv-share-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; min-height: 28px; }
.adv-share-btn {
  min-height: 40px; display: inline-flex; align-items: center;
  border: 1px solid var(--border); border-radius: 999px; padding: 7px 11px;
  background: transparent; color: var(--green-bright); font: inherit; font-size: 11px;
  font-weight: 700; cursor: pointer;
  text-decoration: none;
}
.adv-share-btn:hover, .adv-share-btn:focus-visible { border-color: var(--green-bright); outline: none; }
.adv-share-status { color: var(--text-dim); font-size: 11px; }
.adv-profile-tools { margin-top: 5px; color: var(--text-dim); font-size: 11px; }
.adv-profile-tools > summary { cursor: pointer; width: fit-content; }
.adv-profile-json {
  width: 100%; min-height: 92px; margin-top: 8px; padding: 8px;
  border: 1px solid var(--border); border-radius: var(--radius); resize: vertical;
  background: var(--surface-2); color: var(--text); font: 10px/1.4 monospace;
}
.advanced-settings {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-2); margin-top: 2px;
}
.advanced-settings > summary {
  list-style: none; cursor: pointer; padding: 11px 14px;
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .8px;
  display: flex; align-items: center; gap: 8px;
}
.advanced-settings > summary::-webkit-details-marker { display: none; }
.advanced-settings > summary::before {
  content: '▸'; color: var(--text-dim); font-size: 11px; transition: transform .15s;
}
.advanced-settings[open] > summary::before { transform: rotate(90deg); }
.advanced-settings > summary:hover { color: var(--text); }
.adv-edge {
  margin-left: auto; font-weight: 600; letter-spacing: .2px; text-transform: none;
  color: var(--text-dim); font-variant-numeric: tabular-nums;
}
.adv-variants {
  padding: 6px 14px 16px; display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px 12px; align-items: stretch;
}
/* Each cell is a flex column so the select can pin to the bottom — this aligns
   the dropdowns across a row even when one cell has help text and its neighbor
   doesn't (the source of the "uneven" look). */
.adv-variants .adv-variant { margin-bottom: 0; display: flex; flex-direction: column; }
/* A lone variant (single-setting games: roulette, video poker, baccarat, craps)
   spans the full width instead of being squeezed into one half-width column —
   fixes the truncated "2x and 3x (standa..." dropdown. */
.adv-variants .adv-variant:only-child { grid-column: 1 / -1; }
.adv-variants .adv-help {
  margin: 4px 0 10px; font-size: 11px; color: var(--text-dim); line-height: 1.35;
}
/* Push the select to the bottom of its cell so dropdowns line up across rows. */
.adv-variants .adv-select { margin-top: auto; }
@media (max-width: 480px) {
  .adv-variants { grid-template-columns: 1fr; }
}

.adv-footnote {
  margin: -8px 0 16px; font-size: 11px; color: var(--text-dim);
  line-height: 1.4; padding-left: 2px;
}
