/* ===============================
   Base / Reset
=============================== */
* { box-sizing: border-box; }

:root {
  --gauge-w: 160px;
  --gauge-h: 180px;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  background: #3f9442;
  color: #f5f5f5;
  text-align: center;
}

#game-container { width: 100%; margin: 0 auto; position: relative; }

/* ===============================
   Header / Nav / Sections
=============================== */
header { background: black; padding: 2rem; text-align: center; }
header h1 { margin: 0; font-size: 3rem; color: #ff3d00; }

nav {
  display: flex; justify-content: center; gap: 2rem;
  background: #1a1a1a; padding: 1rem 0; font-size: 1.1rem;
}
nav a { color: #f5f5f5; text-decoration: none; transition: color .3s; }
nav a:hover { color: #ff3d00; }

section { padding: 4rem 2rem; max-width: 900px; margin: auto; }
section h2 { font-size: 2rem; color: #ff3d00; }
section p { line-height: 1.6; margin-bottom: 1rem; }

footer {
  text-align: center;
  padding: 2rem;
  font-size: .9rem;
  background: #eef4ef;
  color: #4a5a50;
  border-top: 1px solid var(--divider);
}

/* ===============================
   Menu (Start screen)
=============================== */
#menu-container {
  background-color: #0d330d; padding: 3rem 2rem; margin: 2rem auto;
  max-width: 700px; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,.5);
}
#menu-container h1 { font-size: 2rem; margin-bottom: 2rem; }
#form-fields { display: flex; }
.field-group { display: flex; align-items: center; margin-right: 1.5rem; }
.field-group label { margin: 0 .5rem 0 0; }
#menu-container label { display: inline-block; margin: .5rem 0 .25rem; vertical-align: middle; }
#menu-container input, #menu-container select {
  margin: 0 1rem; padding: .4rem; border-radius: 4px; border: none; font-size: 1rem; vertical-align: middle;
}
#start-game-button {
  margin-top: 1rem; padding: .5rem 1.2rem; font-size: 1rem;
  border: none; background-color: #ff3d00; color: white; border-radius: 4px; cursor: pointer; transition: background .3s;
}
#start-game-button:hover { background-color: #e03600; }

/* ===============================
   Table / Hands
=============================== */
#table { display: flex; flex-direction: row; justify-content: center; align-items: flex-start; gap: 60px; margin-bottom: 20px; }
#player-area { display: flex; flex-direction: column; align-items: center; gap: 15px; }


.cards {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 10px;
  box-shadow: none;
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 10px; background-color: #1e1e1e; border: 1px solid #444; border-radius: 8px;
}

#dealer-hand.cards,
#player-hand.cards,
#player-hand-2.cards {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

#player-hand-2 { background: transparent !important; border: none !important; padding: 0 !important; }
img { width: 80px; height: auto; }

/* ===============================
   Bet / Buttons
=============================== */
#bet-controls { display: flex; justify-content: center; align-items: center; gap: 15px; margin-bottom: 20px; }
#bet-controls label, #bet-controls input, #bet-controls button, #bet-controls #credits-display { font-size: 18px; }
#bet-controls input, #bet-controls span, #bet-controls label { font-family: 'Roboto', sans-serif !important; }
#bet-fixed-label { font-weight: 500; font-size: 18px; }

/* Action bar: shrink-wrap horizontally but keep a fixed vertical footprint */
#buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: 44px;            /* <- fixed height stops vertical layout shift */
  margin: 12px auto 0;     /* center the whole strip */
}

/* Buttons still collapse away when hidden */
#buttons .is-hidden { display: none !important; }

/* Optional: keep all buttons same footprint so baselines never jitter */
#buttons button {
  flex: 0 0 92px;
  height: 32px;
  line-height: 32px;
}

/* ===============================
   Anti-shift guards
=============================== */
#reshuffle-message { min-height: 22px; }
#result-message   { min-height: 30px; }
.result-text      { min-height: 22px; white-space: nowrap; }
#dealer-score, #player-score, #player-score-2 { min-height: 24px; }

/* ===============================
   Gauges
=============================== */
#gauges-container { position: relative; z-index: 20; overflow: visible; display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 20px; width: 100%; margin: 20px auto 0; }

.gauge-box {
  background: #194d19; border-radius: 16px; padding: 20px 10px 10px;
  display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 2px 8px #0006;
  width: var(--gauge-w); height: var(--gauge-h);
  flex: 0 0 var(--gauge-w);
  position: relative; overflow: visible; box-sizing: border-box;
}

.gauge-box canvas { width: 120px !important; height: 120px !important; display: block; margin: 0 auto; pointer-events: none; }

.gauge-toggle {
  position: absolute; top: 8px; right: 8px; z-index: 5;
  background: #333; color: #fff; border: none; border-radius: 50%;
  width: 28px; height: 28px; font-size: 1.2em; cursor: pointer; opacity: .85;
}

/* center numeric value over arc */
#gauges-container .gauge-box:not(#suggestion-box) .gauge-label {
  position: absolute; left: 50%; transform: translateX(-50%);
  top: 42px; width: 120px; text-align: center;
  font-size: 2rem; font-weight: 700; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.65); pointer-events: none;
}

/* title as footer, with space for the (i) icon */
#gauges-container .gauge-box .gauge-title {
  position: absolute; left: 10px; right: 10px; bottom: 10px; margin: 0; padding-right: 26px;
  text-align: center;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  white-space: normal; overflow: hidden;
}
#gauges-container .gauge-box .gauge-title .help-icon { position: absolute; right: 6px; bottom: 0; margin: 0; line-height: 1; font-size: 1.05em; color: #ffd700; }

/* Suggested Action matches gauge size */
#suggestion-box {
  width: var(--gauge-w); height: var(--gauge-h);
  padding: 20px 10px 10px; background: #194d19;
  border-radius: 16px; box-shadow: 0 2px 8px #0006; position: relative; overflow: visible; box-sizing: border-box;
}
#suggestion-text {
  position: absolute; top: 12px; left: 10px; right: 10px; bottom: 42px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6em; font-weight: 700; color: #fff; line-height: 1.2; text-align: center; overflow: hidden;
}

/* Hide contents (keep footprint) when toggled off */
.gauge-box.gauge-hidden canvas,
.gauge-box.gauge-hidden .gauge-label,
.gauge-box.gauge-hidden #suggestion-text { visibility: hidden; }

/* ===============================
   Charts
=============================== */
#charts-container { position: relative; z-index: 0; display: flex; flex-direction: column; align-items: center; width: 100%; gap: 20px; }
.chart-row { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; width: 100%; }
.chart-box {
  background: rgba(0,0,0,.1); padding: 10px; border-radius: 8px; box-shadow: 0 0 10px rgba(0,0,0,.2);
  position: relative; z-index: 0; width: 300px; min-height: 200px; max-height: 400px; overflow: visible;
}
.chart-box canvas { width: 100% !important; height: 100% !important; max-height: 400px; }
.chart-box .help-icon { position: absolute; top: 8px; right: 10px; z-index: 2; font-size: 1.2rem; color: #ffd700; }

/* ===============================
   Tooltips / Help
=============================== */
.help-icon { display: inline-block; position: absolute; cursor: pointer; color: #ffd700; font-size: 1.1em; margin-left: 6px; }

/* tooltip floats above everything; JS positions it */
.help-tooltip {
  display: none;
  position: fixed;
  left: 0; top: 0; transform: translate(-50%, -100%);
  z-index: 2147483647;
  min-width: 180px; max-width: 260px;
  background: #ffd700; color: #000;
  padding: 8px 14px; border-radius: 8px; font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.4); text-align: center;
  white-space: normal; word-break: normal; overflow-wrap: break-word;
  pointer-events: auto; box-sizing: border-box;
}

/* IMPORTANT: no hover-to-show; visibility is handled by JS */
/* (delete any previous .help-icon:hover/.help-tooltip:hover rules) */

/* ===============================
   Recording Mode (optional)
=============================== */
body.fixed-layout, .fixed-layout #game-container {
  width: 1325px; height: 824px; margin: 0 auto; overflow: hidden;
}
.fixed-layout #gauges-container { flex-wrap: nowrap; justify-content: space-around; gap: 40px; }
.fixed-layout .gauge-box { width: var(--gauge-w) !important; height: var(--gauge-h) !important; flex: 0 0 var(--gauge-w); }
.fixed-layout #charts-container { flex-direction: row; flex-wrap: nowrap; justify-content: space-around; gap: 40px; }
.fixed-layout .chart-box { width: 300px !important; height: 250px !important; flex: 0 0 auto; }

/* ===============================
   Mobile tweaks
=============================== */
@media (max-width: 768px) {
  header { max-height: 10vh; overflow: hidden; padding: .5rem; }
  header h1 { font-size: 1.6rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  nav { flex-wrap: wrap; gap: 1rem; font-size: 1rem; padding: .75rem 0; }
  #menu-container { padding: 2rem 1rem; margin: 1rem auto; max-width: 95%; }
  #menu-container h1 { font-size: 1.5rem; }
  #menu-container input, #menu-container select { display: block; width: 100%; margin: .5rem 0; }
  #start-game-button { display: block; width: 100%; margin-top: 1rem; }
  #bet-controls { flex-direction: column; align-items: center; gap: 12px; padding: 1rem; }
  #bet-controls input { width: 80%; max-width: 200px; text-align: center; }
  #bet-controls button { width: 80%; max-width: 200px; }
  #table { flex-direction: column; gap: 30px; }
  #charts-container { gap: 20px; }
}

@media (max-width: 410px) {
  #gauges-container { flex-direction: column; gap: 10px; }
}


/* Tighter, wider content area for index sections */
.section {
  max-width: 1100px;         /* more room than the default 900px */
  padding: 3rem 1.5rem;      /* reduce huge vertical padding */
  margin: 0 auto;
  text-align: left;          /* copy blocks read better left-aligned */
}

/* Small eyebrow label above H2 */
.eyebrow {
  display: block;
  font-size: 0.85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ff3d00;
  margin-bottom: .25rem;
}

/* Two-column explainer near the top */
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  align-items: start;
}

/* Hero GIF / screenshot */
.dashboard-shot img {
  width: min(850px, 95%);
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

/* Grid of “Gauges & Metrics Explained” items */
.gauge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: start;
}

/* Each item uses <details> */
.gauge-item {
  background: rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 12px 14px;
}

/* Clickable summary header with thumbnail + title */
.gauge-item > summary {
  list-style: none;                       /* remove default marker */
  display: grid;
  grid-template-columns: 120px 1fr;
  column-gap: 12px;
  align-items: center;
  cursor: pointer;
}
.gauge-item > summary::-webkit-details-marker { display: none; }
.gauge-item > summary img {
  width: 120px; height: auto; display: block; border-radius: 8px;
}
.gauge-item > summary h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #fff;
}

/* Body copy inside details */
.gauge-item .gauge-body {
  margin-top: 10px;
  color: #e6e6e6;
  font-size: .95rem;
  line-height: 1.6;
}

/* Make the main H2 here feel like a section headline */
#blackjack-overview h2,
#gauge-explained h2 {
  text-align: center;
  margin-top: 2rem;
}

/* Responsive tweaks */
@media (max-width: 700px) {
  .gauge-item > summary {
    grid-template-columns: 80px 1fr;
    column-gap: 10px;
  }
  .gauge-item > summary img { width: 80px; }
}
/* "Click to expand" hint on index cards */
.gauge-item > summary {
  position: relative;
  padding-bottom: 22px;         /* make room for the hint line */
}

.gauge-item > summary::after {
  content: "Click to expand";
  position: absolute;
  right: 12px;
  bottom: 6px;
  font-size: .85rem;
  letter-spacing: .02em;
  color: #cfeedd;               /* subtle, readable */
  opacity: .85;
}

.gauge-item[open] > summary::after {
  content: "Click to collapse";
}

/* make the top toolbar stick */
/* center the Launch Game row */
.cta-center{
  display: flex;
  justify-content: center;
  margin: 24px 0 0;
}
/* Bet controls: hidden means removed from layout */
#bet-controls .is-hidden { display: none !important; }


.topnav > ul > li{ position:relative; }
.topnav > ul > li > a{
  display:inline-block;
  padding:.75rem 0;            /* same vertical padding for all top links */
  line-height:1;
  color:#f5f5f5;
  text-decoration:none;
  font-size:1.1rem;
}
.topnav a:hover{ color:#ff3d00; }

/* caret on the parent link */
.topnav .has-submenu > .menu-trigger::after{
  content:"▾";
  margin-left:.35rem;
  font-size:.9em;
  opacity:.8;
}

/* hover bridge that doesn't affect layout */
.topnav .has-submenu::after{
  content:"";
  position:absolute;
  left:0; right:0;
  height:8px;                 /* covers the gap */
  bottom:-8px;
}

/* submenu: no gap; fade/slide in; non-interactive when hidden */
.topnav .submenu{
  position:absolute;
  left:0;
  top:100%;                   /* flush under the parent */
  min-width:220px;
  background:#1a1a1a;
  border-radius:8px;
  padding:.4rem 0;
  margin:0;
  visibility:hidden;
  opacity:0;
  transform:translateY(6px);
  transition:opacity .15s ease, transform .15s ease, visibility 0s .15s;
  pointer-events:none;
  box-shadow:0 8px 24px rgba(0,0,0,.35);
  z-index:1100;
}
.topnav .submenu li{ white-space:nowrap; }
.topnav .submenu a{ display:block; padding:.6rem 1rem; }
.topnav .submenu a:hover{ background:#2a2a2a; color:#ff3d00; }

.topnav .has-submenu:hover > .submenu,
.topnav .has-submenu:focus-within > .submenu{
  visibility:visible;
  opacity:1;
  transform:translateY(0);
  transition-delay:0s;
  pointer-events:auto;
}
/* Remove bullets in the index content sections */
#blackjack .two-col ul,
#gauge-explained .gauge-body ul {
  list-style: none;
  padding-left: 0;  /* no left indent */
  margin-left: 0;
}

/* Keep a comfy line rhythm for items */
#blackjack .two-col li,
#gauge-explained .gauge-body li {
  margin: .35rem 0;
}

section ul { list-style: none; padding-left: 0; margin-left: 0; }

/* Header (unchanged) */
header {
  background: black;
  padding: 2rem;
  text-align: center;
}
header h1 { margin: 0; font-size: 3rem; color: #ff3d00; }

/* Fixed nav that sits under header at top, then snaps to 0 on scroll */
nav.topnav {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--nav-top, 0);   /* we control this via JS */
  z-index: 1000;
  background: #1a1a1a;
  transition: top 150ms ease, box-shadow 150ms ease;
}

/* When scrolled past the header */
nav.topnav.stuck {
  --nav-top: 0;                               /* snap to top */
  box-shadow: 0 1px 0 rgba(0,0,0,.35);
}

/* Spacer right after nav to prevent overlap with content */
#nav-spacer {
  width: 100%;
  height: 0;                                   /* JS sets the height */
}

/* Keep your existing nav layout styles */
.topnav > ul {
  list-style: none; display: flex; gap: 2rem;
  align-items: center; justify-content: center;
  margin: 0; padding: 1rem 0;
}
.topnav a { color: #f5f5f5; text-decoration: none; transition: color .2s; }
.topnav a:hover { color: #ff3d00; }

/* Fixed nav; we will set nav.style.top in JS */
nav.topnav {
  position: fixed;
  left: 0; right: 0;
  top: 0;                /* default */
  z-index: 1000;
  background: #1a1a1a;
  transition: top 150ms ease, box-shadow 150ms ease;
}
nav.topnav.stuck {       /* just visuals when stuck */
  box-shadow: 0 1px 0 rgba(0,0,0,.35);
}

/* spacer under the nav so content never hides behind it */
#nav-spacer { width: 100%; height: 0; }


/* remove bullets ONLY from nav dropdowns */
.topnav .submenu,
.topnav .submenu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* restore bullets in normal content sections */
.section ul {
  list-style: disc;      /* classic solid bullet */
  padding-left: 1.5rem;  /* add indentation so bullets are visible */
  margin-left: 0;
}
.settings-card{
  max-width: 720px;
  margin: 0 auto;
  padding: 24px;
  border-radius: 16px;
  background: #113d1f;      /* your green panel */
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
}

.settings-row{
  display: flex;
  align-items: end;          /* align inputs and button along their bottoms */
  flex-wrap: wrap;           /* wrap on narrow screens */
  gap: 16px;
}

.settings-row label{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Make sure the button isn’t absolutely positioned anywhere */
.start-btn{
  position: static !important;
  margin-left: auto;         /* pushes it to the right but stays inside */
}

/* Optional: on small screens, put the button on its own line full-width */
@media (max-width: 560px){
  .start-btn{
    width: 100%;
    margin-left: 0;
  }
}
/* TOP nav (under the header) should scroll away */
#navbar-top nav.topnav {
  position: static !important;
  top: auto !important;
  box-shadow: none;
}

/* FLOATING copy is the only fixed one */
.floating-nav {                     /* the wrapper you created */
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1100;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .16s ease, opacity .16s ease, box-shadow .16s ease;
}
.floating-nav.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* (optional) style of the inner nav when floating */
.floating-nav > nav.topnav { box-shadow: 0 1px 0 rgba(0,0,0,.35); }

:root{
  --bg-page: #3f9442;          /* page background */
  --bg-band-1: #f3f7f6;        /* light band */
  --bg-band-2: #e6efe8;        /* slightly darker light band */
  --text-body: #1e2a22;        /* dark text on light bands */
  --text-accent: #0b6e3f;      /* headings / links */
  --divider: rgba(0,0,0,.06);
}

/* Global page background (keeps your dark header/nav contrast) */
body{ background: var(--bg-page); color:#f5f5f5; }

/* A centered content wrapper so sections read like a site */
.page{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Section “card/band” look */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.section-band {
  background: var(--bg-band-1);
  color: var(--text-body);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  padding: 56px 0;
}
.section-band.alt { background: var(--bg-band-2); }

.section-band .container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 12px;
}

.section-band h2 {
  color: var(--text-accent);
  margin: 0 0 12px;
  font-size: 2rem;
}
.section-lead {
  margin: 0 0 28px;
  border-bottom: 1px solid var(--divider);
  padding-bottom: 12px;
  color: #34443a;
}
.section-band ul { list-style: disc; padding-left: 1.25rem; }

.section-band .launch-button { background:#0b6e3f; }
.section-band .launch-button:hover { background:#095e36; }


/* Light, modern base */
:root{
  --page-bg: #f6f8fb;           /* very light neutral */
  --ink: #1f2328;               /* dark text */
  --muted: #5b636a;
  --brand: #2e7d32;             /* rich green accent */
  --accent: #0ea5e9;            /* soft cyan accent */
  --card: #ffffff;
  --ring: rgba(15, 23, 42, .06);
}

body {
  background: var(--page-bg);
  color: var(--ink);
  text-align: initial;          /* body copy left-aligned by default */
}

/* HERO */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 40px;
  background:
    radial-gradient(1200px 600px at 75% -100px, rgba(14,165,233,.18), transparent 60%),
    radial-gradient(900px 500px at -200px 0px, rgba(46,125,50,.18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.9));
}

.hero .inner {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: center;
}
@media (max-width: 980px){ .hero .inner { grid-template-columns: 1fr; } }

.hero .eyebrow { color: var(--brand); letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.hero h1 { font-size: clamp(2rem, 4.8vw, 3.5rem); line-height: 1.05; margin: .35rem 0 .75rem; }
.hero p.lead { color: var(--muted); font-size: 1.12rem; margin: 0 0 1.25rem; }

.hero .cta-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.1rem; border-radius: 12px; border: 1px solid var(--ring);
  background: var(--ink); color: #fff; font-weight: 600; text-decoration: none;
}
.btn.secondary { background: #fff; color: var(--ink); }
.btn.accent { background: var(--brand); }

.hero .media {
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(2,6,23,.10), 0 0 0 1px var(--ring) inset;
  overflow: hidden;
}
.hero .media img, .hero .media video { display: block; width: 100%; height: auto; }

/* LIGHT “CARD” SECTIONS */
.section-band {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--ring);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(2,6,23,.06);
  padding: 36px 24px;
  max-width: 1100px;
  margin: 28px auto;
}

.section-band h2 { margin: 0 0 10px; font-size: 1.75rem; }
.section-lead { color: var(--muted); border-bottom: 1px solid var(--ring); padding-bottom: 10px; margin-bottom: 18px; }

/* Keep your dark header + nav look */
header { background: #0f1113; color: #fff; }
header h1 { color: #fff; }

/* Nav spacing to sit under header at top */
#navbar-top nav.topnav { background:#0f1113; }
.floating-nav > nav.topnav { background:#0f1113; }

/* Put at the end of style.css */
.hero h1,
.hero p.lead {
  color: #111;    /* near black for high contrast */
}
/* Make hero look like a card (same as .section-band) */
.hero {
  background: #fff;                /* white card */
  border: 1px solid var(--divider);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(2,6,23,.06);
  padding: 56px 24px;              /* same vertical rhythm */
  max-width: 1100px;
  margin: 28px auto;               /* center, with same spacing */
}

/* inner layout still grid */
.hero .inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero .inner { grid-template-columns: 1fr; }
}

/* Reset background visuals so it looks clean */
.hero::before {
  content: none;
}
/* Leave space for the fixed nav when scrolling to anchors */
section[id] {
  scroll-margin-top: 80px;   /* adjust this to your nav height */
}
.gauge-item > summary h3 { color: var(--ink); }
.gauge-item .gauge-body { color: var(--ink); }
.gauge-item > summary::after { color: var(--ink); }
#kelly-widget {
  scroll-margin-top: 80px;  /* match your nav height */
}
/* Site-wide card look (same as index) */
.game-section{
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--ring);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(2,6,23,.06);
  padding: 24px;
  max-width: 1100px;
  margin: 28px auto;
}

/* Felt table surface inside the game card */
.felt{
  background: #0e2b0e;                    /* dark felt */
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset;
}

/* Use dark-on-light text by default inside cards */
.game-section, .game-section label, .game-section .inline-note {
  color: var(--ink);
}

/* Settings row tidy */
.settings-card{
  background: transparent;   /* outer card provides the white bg */
  box-shadow: none;
  padding: 0;
}
.settings-row{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, auto));
  gap: 16px;
  align-items: end;
}
.settings-row input,
.settings-row select{
  border: 1px solid var(--ring);
  border-radius: 10px;
  padding: .5rem .6rem;
  background: #fff;
  color: var(--ink);
}
.start-btn{ margin-left: 0; }

/* Keep table content centered and not too wide */
#table-container{ max-width: 1000px; margin: 0 auto; }
#table{ gap: 40px; }

/* Neutralize dark text assumptions inside felt area */
#bet-controls, #buttons, #gauges-container, #charts-container, .inline-note{
  color: #e8f5e9;               /* readable on dark felt */
}

/* Buttons match the rest of the site */
#bet-controls button, #buttons button, #auto-play-button{
  border: 1px solid var(--ring);
  border-radius: 10px;
  padding: .5rem .9rem;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
}
#bet-controls button:hover, #buttons button:hover, #auto-play-button:hover{
  box-shadow: 0 2px 8px rgba(2,6,23,.12);
}

/* Inputs in bet bar */
#bet-controls input{
  border: 1px solid var(--ring);
  border-radius: 10px;
  padding: .35rem .5rem;
  background: #fff;
  color: var(--ink);
}

/* Charts & gauges boxes look cleaner on felt */
.chart-box{
  background: #0b2410;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: none;
}
.gauge-box, #suggestion-box{
  background: #0b2410;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: none;
}

/* Footer spacing for game page (optional) */
body .game-section + footer{ margin-top: 24px; }

button:disabled,
.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
#buttons button {
  display: inline-flex;       /* use flexbox */
  align-items: center;        /* vertical center */
  justify-content: center;    /* horizontal center */
  text-align: center;         /* ensure text is centered */
  padding: 8px 16px;          /* tweak as needed */
  font-size: 14px;            /* optional for consistency */
  line-height: 1.2;           /* keeps text properly aligned */
}
.inline-note {
  color: #fff;           /* high contrast */
  opacity: 1;            /* ensure not faded */
  font-weight: 600;
  text-align: center;
  margin-top: 8px;
}

#result-message { margin-top: 10px; }
#outcome-message { margin-top: 6px; }
#reshuffle-message { margin-top: 6px; }
#bet-controls, #result-message, #outcome-message, #reshuffle-message {
  position: relative;
  z-index: 2;          /* keep above canvas/gauges */
}
.inline-note { color:#fff !important; opacity:1 !important; }
#buttons .is-hidden { display: none !important; }
/* Visual style for disabled buttons (Deal/Skip, action buttons) */
#bet-controls button:disabled,
#buttons button:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
  background: #dfe4e8;      /* subtle grey */
  color: #7a828a;
  border-color: rgba(2,6,23,.08);
  pointer-events: none;
}
/* force white text inside the settings card */
#settings-card {
  color: #fff !important;
}
#settings-card label,
#settings-card h2 {
  color: #222 !important;
}