/* LeisureGame.net - Solitaire & Classic Card Games */
:root {
  --felt: #0e3b2c;
  --felt-dark: #09281d;
  --felt-panel: #134a37;
  --gold: #eab308;
  --gold-soft: rgba(234, 179, 8, 0.18);
  --ink: #f8fafc;
  --ink-muted: #cbd5e1;
  --card-bg: #fffdf8;
  --card-border: #d6d3cb;
  --red: #dc2626;
  --black: #18181b;
  --radius: 10px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #134b38 0%, var(--felt-dark) 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
}
a { color: #fde047; text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 14px;
}

/* Header */
.site-header {
  background: rgba(6, 29, 21, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  max-width: 1120px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.brand-badge {
  background: var(--gold);
  color: #14261c;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.9rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nav-link {
  color: var(--ink-muted);
  padding: 6px 11px;
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 600;
}
.nav-link:hover, .nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
}
.nav-link.active {
  border: 1px solid rgba(234, 179, 8, 0.45);
  color: #fde047;
}

/* AdSense CLS-safe slots */
.ad-slot {
  margin: 12px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}
.ad-leaderboard { min-height: 90px; max-width: 970px; }
.ad-rectangle { min-height: 250px; max-width: 728px; }
.ad-placeholder {
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.16);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Game Shell */
.game-shell {
  background: rgba(9, 40, 29, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px;
  margin-top: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.game-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 12px;
}
.game-title-wrap h1 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}
.game-subtitle {
  margin: 2px 0 0;
  font-size: 0.84rem;
  color: var(--ink-muted);
}
.hud-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.stat-pill {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.82rem;
  color: var(--ink-muted);
}
.stat-pill strong { color: #fff; margin-left: 4px; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--felt-panel);
  color: #fff;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease;
}
.btn:hover:not(:disabled) { background: #195d46; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-gold {
  background: var(--gold);
  color: #14261c;
  border-color: #facc15;
}
.btn-gold:hover:not(:disabled) { background: #facc15; }
.btn-active {
  background: rgba(234, 179, 8, 0.22);
  border-color: var(--gold);
  color: #fde047;
}
.select-ctrl {
  background: var(--felt-panel);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.86rem;
  font-weight: 600;
}

.toast {
  min-height: 24px;
  font-size: 0.86rem;
  color: #fde047;
  font-weight: 600;
  margin-bottom: 8px;
}

/* Playing Cards */
.card-table {
  user-select: none;
  -webkit-user-select: none;
}
.top-row-spider {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.foundations-row, .stock-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.slot-box {
  width: 64px;
  height: 88px;
  border-radius: 8px;
  border: 2px dashed rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}
.slot-box.filled {
  border-style: solid;
  border-color: rgba(234, 179, 8, 0.6);
  background: var(--card-bg);
  color: var(--black);
}
.stock-btn {
  width: 68px;
  height: 92px;
  border-radius: 8px;
  border: 2px solid #fde047;
  background: repeating-linear-gradient(45deg, #1d4ed8, #1d4ed8 6px, #1e40af 6px, #1e40af 12px);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}
.stock-btn:disabled {
  opacity: 0.35;
  border-color: rgba(255, 255, 255, 0.2);
  cursor: not-allowed;
}

.tableau-10 {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
  min-height: 360px;
}
.tableau-8 {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  min-height: 340px;
}
.fc-top-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.pile-col {
  position: relative;
  min-height: 110px;
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.12);
}
.pile-col.drop-target {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.pcard {
  position: absolute;
  left: 0;
  right: 0;
  height: 92px;
  border-radius: 7px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  color: var(--black);
  cursor: pointer;
  transition: box-shadow 0.12s ease, transform 0.12s ease;
  overflow: hidden;
}
.pcard.red { color: var(--red); }
.pcard.face-down {
  background: repeating-linear-gradient(135deg, #1e3a8a, #1e3a8a 5px, #1d4ed8 5px, #1d4ed8 10px);
  border: 1px solid #93c5fd;
  cursor: default;
}
.pcard.selected {
  outline: 3px solid var(--gold);
  box-shadow: 0 0 14px rgba(234, 179, 8, 0.7);
  z-index: 25 !important;
}
.pcard.hinted {
  outline: 3px solid #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.85);
}
.pcard-top {
  display: flex;
  justify-content: space-between;
  padding: 3px 5px 0;
  font-weight: 800;
  font-size: 0.84rem;
  line-height: 1.05;
}
.pcard-center {
  text-align: center;
  font-size: 1.65rem;
  line-height: 54px;
  opacity: 0.9;
}

/* Yahtzee */
.yahtzee-wrap {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  align-items: start;
}
.dice-tray {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.dice-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 14px 0;
}
.die-btn {
  height: 56px;
  border-radius: 10px;
  border: 2px solid #d4d4d8;
  background: #fffdf8;
  color: #18181b;
  font-size: 1.55rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.die-btn.held {
  border-color: var(--gold);
  background: #fef9c3;
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(234, 179, 8, 0.3);
}
.die-hold-tag {
  font-size: 0.56rem;
  text-transform: uppercase;
  color: #854d0e;
  letter-spacing: 0.05em;
  margin-top: -4px;
}
.scorecard-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.88rem;
}
.scorecard-table th, .scorecard-table td {
  padding: 7px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}
.scorecard-table th { background: rgba(0, 0, 0, 0.25); color: #fde047; }
.score-btn {
  background: rgba(234, 179, 8, 0.16);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.45);
  border-radius: 6px;
  padding: 3px 10px;
  font-weight: 700;
  cursor: pointer;
  min-width: 52px;
}
.score-btn:hover { background: var(--gold); color: #14261c; }

/* Variant Switcher & SEO Guide */
.section-card {
  background: rgba(9, 40, 29, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 20px;
  margin: 18px 0;
}
.section-card h2 {
  margin-top: 0;
  font-size: 1.28rem;
  color: #fde047;
}
.section-card h3 {
  font-size: 1.05rem;
  color: #f8fafc;
  margin-bottom: 6px;
}
.variant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}
.variant-card {
  display: block;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 14px;
  color: #fff;
}
.variant-card:hover {
  border-color: var(--gold);
  text-decoration: none;
  background: rgba(234, 179, 8, 0.1);
}
.variant-card p { margin: 6px 0 0; font-size: 0.86rem; color: var(--ink-muted); }

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 0;
}
.faq-item:last-child { border-bottom: none; }

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 14px 36px;
  margin-top: 24px;
  text-align: center;
  font-size: 0.84rem;
  color: var(--ink-muted);
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

@media (max-width: 780px) {
  .yahtzee-wrap { grid-template-columns: 1fr; }
  .tableau-10 { gap: 3px; }
  .tableau-8, .fc-top-grid { gap: 4px; }
  .pcard { height: 74px; }
  .pcard-top { font-size: 0.68rem; padding: 2px 3px 0; }
  .pcard-center { font-size: 1.1rem; line-height: 44px; }
  .slot-box { width: 40px; height: 58px; font-size: 0.68rem; }
  .stock-btn { width: 48px; height: 66px; font-size: 0.7rem; }
}

/* Quick-Start Bar, Tutorial Modal, Catalog Grid & New Card Games */
.quickstart-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 10px;
}
.qs-item { font-size: 0.8rem; color: var(--ink-muted); display: flex; gap: 6px; align-items: flex-start; }
.qs-num {
  background: var(--gold); color: #14261c; font-weight: 800; border-radius: 50%;
  width: 18px; height: 18px; min-width: 18px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.72rem; margin-top: 2px;
}
.qs-item strong { color: #fff; }

.tut-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.68); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 14px;
}
.tut-backdrop.open { display: flex; }
.tut-modal {
  background: #0d3326; color: #f8fafc; border: 1px solid rgba(234, 179, 8, 0.45);
  border-radius: 16px; max-width: 560px; width: 100%; padding: 20px; box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  max-height: 90vh; overflow-y: auto;
}
.tut-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.tut-head h2 { margin: 4px 0 2px; font-size: 1.3rem; color: #fde047; }
.tut-sub { margin: 0; font-size: 0.84rem; color: #cbd5e1; }
.tut-badge { background: rgba(234,179,8,0.2); color: #fde047; padding: 2px 8px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; }
.tut-close { background: transparent; border: none; color: #cbd5e1; font-size: 1.6rem; cursor: pointer; line-height: 1; }
.tut-goal { background: rgba(0,0,0,0.24); border-left: 3px solid var(--gold); padding: 8px 12px; border-radius: 6px; font-size: 0.88rem; margin-bottom: 12px; }
.tut-steps { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.tut-step { display: flex; gap: 10px; align-items: flex-start; background: rgba(255,255,255,0.05); padding: 9px 11px; border-radius: 9px; }
.tut-num { background: var(--gold); color: #14261c; font-weight: 800; width: 22px; height: 22px; min-width: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; }
.tut-step p { margin: 2px 0 0; font-size: 0.82rem; color: #cbd5e1; }
.tut-box { font-size: 0.84rem; margin-bottom: 10px; }
.tut-box ul { margin: 4px 0 0 18px; padding: 0; color: #cbd5e1; }
.tut-tip { background: rgba(56, 189, 248, 0.14); border: 1px solid rgba(56, 189, 248, 0.3); padding: 8px 11px; border-radius: 8px; font-size: 0.84rem; margin-bottom: 14px; }
.tut-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 12px; }
.tut-check { font-size: 0.82rem; color: #cbd5e1; display: flex; gap: 6px; align-items: center; cursor: pointer; }
.tut-start { background: var(--gold); color: #14261c; border: none; padding: 9px 18px; border-radius: 8px; font-weight: 800; cursor: pointer; font-size: 0.9rem; }

.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 10px; }
.catalog-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 6px;
  background: rgba(0,0,0,0.24); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 12px; color: #fff;
}
.catalog-card:hover { border-color: var(--gold); text-decoration: none; background: rgba(234,179,8,0.09); }
.catalog-card.current { border-color: var(--gold); background: rgba(234,179,8,0.14); }
.catalog-card p { margin: 0; font-size: 0.8rem; color: var(--ink-muted); }
.badge-pill { display: inline-block; align-self: flex-start; font-size: 0.7rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(234,179,8,0.2); color: #fde047; }

/* Extra Card Games */
.kl-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.kl-stock-waste, .kl-foundations { display: flex; gap: 8px; align-items: center; }
.tableau-7 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; min-height: 320px; }
.pyr-board { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 14px; }
.pyr-row { display: flex; gap: 6px; justify-content: center; }
.inline-card {
  width: 62px; height: 86px; border-radius: 7px; background: var(--card-bg); border: 1px solid var(--card-border);
  color: var(--black); display: flex; flex-direction: column; justify-content: space-between; padding: 4px 5px;
  font-weight: 800; cursor: pointer; position: relative; box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.inline-card.red { color: var(--red); }
.inline-card.face-down { background: repeating-linear-gradient(135deg, #1e3a8a, #1e3a8a 5px, #1d4ed8 5px, #1d4ed8 10px); color: transparent; border-color: #93c5fd; }
.inline-card.selected { outline: 3px solid var(--gold); }
.inline-card.hinted { outline: 3px solid #38bdf8; }
.inline-card.blocked { opacity: 0.76; cursor: not-allowed; }
.inline-card.gone { visibility: hidden; pointer-events: none; }
.inline-card-center { text-align: center; font-size: 1.45rem; line-height: 1; }
.tp-peaks { display: grid; grid-template-columns: repeat(10, 58px); gap: 4px; justify-content: center; margin-bottom: 14px; }
.bj-table { display: flex; flex-direction: column; gap: 16px; align-items: center; padding: 12px 0; }
.bj-hand { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; min-height: 92px; }
.spades-arena { display: grid; grid-template-columns: 1fr; gap: 12px; text-align: center; }
.spades-table { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 440px; margin: 0 auto; align-items: center; background: rgba(0,0,0,0.22); padding: 14px; border-radius: 12px; }
.spades-hand { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.mem-grid { display: grid; gap: 8px; max-width: 520px; margin: 0 auto; }
.mem-card { aspect-ratio: 3/4; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2); background: #1e3a8a; color: #fff; font-weight: 800; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.mem-card.open { background: var(--card-bg); color: var(--black); }
.mem-card.open.red { color: var(--red); }
.mem-card.matched { opacity: 0.5; border-color: var(--gold); cursor: default; }

@media (max-width: 780px) {
  .quickstart-bar { grid-template-columns: 1fr; }
  .inline-card { width: 42px; height: 60px; font-size: 0.72rem; }
  .inline-card-center { font-size: 1rem; }
  .tp-peaks { grid-template-columns: repeat(10, minmax(0, 1fr)); }
}

/* +15 Card & Dice Expansion Games */
.inline-card.playable {
  box-shadow: 0 0 0 2px #38bdf8, 0 4px 12px rgba(56, 189, 248, 0.35);
}
.inline-card.held {
  outline: 3px solid var(--gold);
  transform: translateY(-8px);
  box-shadow: 0 8px 18px rgba(234, 179, 8, 0.45);
}
.inline-card.in-meld {
  outline: 2px solid #4ade80;
  background: #f0fdf4;
}
.vp-hold-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #14261c;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}
.vp-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.vp-paytable {
  width: 100%;
  max-width: 620px;
  margin: 0 auto 12px;
  border-collapse: collapse;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.82rem;
}
.vp-paytable th, .vp-paytable td {
  padding: 5px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: right;
}
.vp-paytable th:first-child, .vp-paytable td:first-child { text-align: left; }
.vp-paytable th { background: rgba(0, 0, 0, 0.32); color: #fde047; }
.vp-paytable tr.active-hand { background: rgba(234, 179, 8, 0.24); color: #fef08a; font-weight: 800; }
.vp-paytable td.col-active, .vp-paytable th.col-active { background: rgba(234, 179, 8, 0.14); }

.poker-table {
  background: radial-gradient(ellipse at center, #14533c 0%, #0a2e21 100%);
  border: 2px solid rgba(234, 179, 8, 0.35);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.poker-seats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 660px;
}
.poker-seat {
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}
.poker-seat.active-turn { border-color: var(--gold); box-shadow: 0 0 14px rgba(234, 179, 8, 0.25); }
.poker-community {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  min-height: 90px;
  align-items: center;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 12px;
}
.hand-badge {
  display: inline-block;
  background: rgba(234, 179, 8, 0.2);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.4);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.suits-picker {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--gold);
  border-radius: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.suit-pick-btn {
  min-width: 58px;
  font-size: 1.15rem;
  font-weight: 800;
}

.crib-track {
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.crib-bar-row {
  display: grid;
  grid-template-columns: 72px 1fr 48px;
  gap: 8px;
  align-items: center;
  margin: 4px 0;
  font-size: 0.82rem;
}
.crib-bar {
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}
.crib-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 999px;
  transition: width 0.25s ease;
}
.crib-fill.ai { background: #38bdf8; }
.crib-breakdown {
  background: rgba(0, 0, 0, 0.22);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.82rem;
  color: var(--ink-muted);
  text-align: center;
}

.clock-board {
  position: relative;
  width: 100%;
  max-width: 540px;
  height: 460px;
  margin: 8px auto;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0.22) 72%);
  border: 2px dashed rgba(234, 179, 8, 0.25);
}
.clock-pile {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 68px;
  min-height: 86px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 4px;
  cursor: pointer;
  color: #fff;
  font-size: 0.74rem;
}
.clock-pile.active-pile {
  border: 2px solid var(--gold);
  box-shadow: 0 0 18px rgba(234, 179, 8, 0.75);
  z-index: 5;
}
.clock-pile.done-pile {
  border-color: #4ade80;
  background: rgba(22, 101, 52, 0.35);
}
.clock-label {
  font-weight: 800;
  font-size: 0.72rem;
  color: #fde047;
}
.clock-card-mini {
  width: 48px;
  height: 52px;
  border-radius: 5px;
  background: var(--card-bg);
  color: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}
.clock-card-mini.red { color: var(--red); }
.clock-card-mini.down {
  background: repeating-linear-gradient(135deg, #1e3a8a, #1e3a8a 4px, #1d4ed8 4px, #1d4ed8 8px);
  color: transparent;
  border: 1px solid #93c5fd;
}

.aces-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 460px;
  margin: 10px auto;
}
.aces-pile {
  min-height: 220px;
  position: relative;
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.16);
}

.bacc-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 600px;
  margin: 0 auto 12px;
}
.bacc-box {
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.bacc-box.winner { border-color: var(--gold); box-shadow: 0 0 14px rgba(234, 179, 8, 0.35); }
.bacc-roads {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}
.road-bead {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
}
.road-bead.P { background: #2563eb; }
.road-bead.B { background: #dc2626; }
.road-bead.T { background: #16a34a; }

.war-arena {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  max-width: 560px;
  margin: 12px auto;
  background: rgba(0, 0, 0, 0.22);
  padding: 16px;
  border-radius: 12px;
  text-align: center;
}
.war-pot {
  font-size: 0.85rem;
  color: #fde047;
  font-weight: 800;
}

.farkle-dice-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  max-width: 480px;
  margin: 14px auto;
}
.die-btn.locked {
  opacity: 0.55;
  border-color: #4ade80;
  background: #dcfce7;
  cursor: default;
}
.farkle-rules-mini {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 6px;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 10px;
  padding: 10px;
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 10px;
}

.stb-tiles {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 8px;
  max-width: 620px;
  margin: 12px auto;
}
.stb-tile {
  height: 82px;
  border-radius: 8px;
  border: 2px solid #d97706;
  background: linear-gradient(180deg, #f59e0b 0%, #b45309 100%);
  color: #1c1917;
  font-size: 1.45rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.14s ease, opacity 0.15s ease;
}
.stb-tile.picked {
  outline: 3px solid #fef08a;
  transform: translateY(-6px);
  background: linear-gradient(180deg, #fde047 0%, #eab308 100%);
}
.stb-tile.shut {
  background: #292524;
  border-color: #57534e;
  color: #78716c;
  transform: scaleY(0.75);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.5);
  cursor: default;
}
.stb-dice-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 12px 0;
}

.pig-arena {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}
.pig-die-big {
  width: 84px;
  height: 84px;
  margin: 0 auto;
  border-radius: 14px;
  background: #fffdf8;
  color: #18181b;
  border: 3px solid var(--gold);
  font-size: 3.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

@media (max-width: 640px) {
  .clock-board { height: auto; border-radius: 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px; }
  .clock-pile { position: static; transform: none; width: 100%; min-height: 76px; }
  .farkle-dice-grid { grid-template-columns: repeat(3, 1fr); }
  .stb-tiles { grid-template-columns: repeat(3, 1fr); }
  .stb-tile { height: 60px; font-size: 1.2rem; }
  .poker-seats, .bacc-table { grid-template-columns: 1fr; }
}

/* +10 Card & Dice Expansion Games (25 -> 35) */
.eu-table {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 8px;
  max-width: 640px;
  margin: 0 auto 12px;
  align-items: center;
}
.eu-seat {
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 8px;
  text-align: center;
  min-height: 78px;
}
.eu-seat.active-turn {
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(234, 179, 8, 0.35);
}
.eu-north { grid-column: 2; grid-row: 1; }
.eu-west { grid-column: 1; grid-row: 2; }
.eu-center {
  grid-column: 2;
  grid-row: 2;
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed rgba(234, 179, 8, 0.45);
  border-radius: 12px;
  padding: 10px;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.eu-east { grid-column: 3; grid-row: 2; }
.eu-south { grid-column: 2; grid-row: 3; }
.eu-dealer-tag {
  display: inline-block;
  background: var(--gold);
  color: #14261c;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 4px;
}
.eu-bid-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(234, 179, 8, 0.45);
  border-radius: 10px;
}

.gf-opponents {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
  margin: 0 auto 12px;
}
.gf-opp-card {
  background: rgba(0, 0, 0, 0.24);
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  color: #fff;
  transition: border-color 0.14s ease, transform 0.1s ease;
}
.gf-opp-card:hover:not(:disabled) { border-color: rgba(234, 179, 8, 0.65); }
.gf-opp-card.selected {
  border-color: var(--gold);
  background: rgba(234, 179, 8, 0.16);
  box-shadow: 0 0 14px rgba(234, 179, 8, 0.28);
}
.gf-opp-card:disabled { opacity: 0.48; cursor: not-allowed; }
.gf-books-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 10px;
  font-size: 0.84rem;
}

.om-seats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.om-seat {
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}
.om-seat.active-turn {
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(234, 179, 8, 0.35);
}
.om-seat.safe-out { opacity: 0.6; border-color: #4ade80; }
.om-fan {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}
.om-pick-card {
  width: 30px;
  height: 44px;
  border-radius: 5px;
  border: 1px solid #93c5fd;
  background: repeating-linear-gradient(135deg, #1e3a8a, #1e3a8a 4px, #1d4ed8 4px, #1d4ed8 8px);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.om-pick-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(234, 179, 8, 0.55);
  border-color: var(--gold);
}
.inline-card.old-maid {
  border: 2px solid #f43f5e;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.45);
}

.cf-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  align-items: flex-start;
}
.cf-left, .cf-right {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.tableau-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
  min-height: 290px;
}
.waste-fan {
  display: flex;
  gap: 4px;
  min-width: 110px;
  min-height: 92px;
  align-items: center;
}

.bw-frames {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 12px;
}
.bw-frame {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 4px 2px;
  text-align: center;
  font-size: 0.72rem;
}
.bw-frame.active { border-color: var(--gold); background: rgba(234, 179, 8, 0.16); }
.bw-frame-num { font-weight: 800; color: #fde047; border-bottom: 1px solid rgba(255, 255, 255, 0.1); margin-bottom: 2px; }
.bw-frame-rolls { font-size: 0.72rem; min-height: 16px; color: #cbd5e1; }
.bw-frame-tot { font-weight: 800; font-size: 0.85rem; margin-top: 2px; }
.bw-pins {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}
.bw-pin-row { display: flex; gap: 10px; justify-content: center; }
.bw-pin {
  width: 58px;
  height: 76px;
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--black);
  border: 2px solid var(--card-border);
  font-weight: 900;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 4px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}
.bw-pin.red { color: var(--red); }
.bw-pin.selected { outline: 3px solid var(--gold); transform: translateY(-4px); }
.bw-pin.knocked { opacity: 0.22; border-style: dashed; cursor: default; background: rgba(0, 0, 0, 0.25); color: #94a3b8; }
.bw-pin.locked { opacity: 0.72; cursor: not-allowed; }
.bw-balls {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.bw-pile-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.ld-players {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 640px;
  margin: 0 auto 12px;
}
.ld-player {
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}
.ld-player.active-turn { border-color: var(--gold); box-shadow: 0 0 14px rgba(234, 179, 8, 0.3); }
.ld-player.eliminated { opacity: 0.42; }
.ld-bid-box {
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-radius: 12px;
  padding: 12px;
  max-width: 560px;
  margin: 0 auto 12px;
  text-align: center;
}
.ld-dice-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 10px 0;
}
.ld-die {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #fffdf8;
  color: #18181b;
  border: 2px solid #d4d4d8;
  font-size: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.ld-die.wild { border-color: var(--gold); background: #fef9c3; }
.ld-die.hidden-die {
  background: #1e3a8a;
  color: #93c5fd;
  border-color: #60a5fa;
  font-size: 1.2rem;
  font-weight: 800;
}

.cr-board {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 660px;
  margin: 0 auto;
}
.cr-points-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.cr-pt-box {
  background: rgba(0, 0, 0, 0.28);
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 8px 4px;
  text-align: center;
  position: relative;
}
.cr-pt-box.puck-on {
  border-color: var(--gold);
  background: rgba(234, 179, 8, 0.16);
}
.cr-puck {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  background: #18181b;
  color: #cbd5e1;
  border: 2px solid #71717a;
}
.cr-puck.on {
  background: #f8fafc;
  color: #18181b;
  border-color: var(--gold);
}
.cr-bets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}
.cr-bet-zone {
  background: rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  color: #fff;
  cursor: pointer;
}
.cr-bet-zone:hover:not(:disabled) { border-color: var(--gold); }
.cr-bet-zone.has-bet {
  border-color: #4ade80;
  background: rgba(22, 101, 52, 0.35);
}
.cr-dice-tray {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 12px;
  flex-wrap: wrap;
}

@media (max-width: 780px) {
  .eu-table { grid-template-columns: 1fr; }
  .eu-north, .eu-west, .eu-center, .eu-east, .eu-south { grid-column: 1; grid-row: auto; }
  .gf-opponents, .om-seats, .ld-players { grid-template-columns: 1fr; }
  .bw-frames { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cr-points-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bw-pin { width: 46px; height: 62px; font-size: 0.78rem; }
}


/* +10 Card & Dice Expansion Games (35 -> 45) */
.mc-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  max-width: 370px;
  margin: 10px auto;
}
.mc-cell {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 86px;
}
.mc-empty {
  opacity: 0.35;
}
.inline-card.adj-match {
  outline: 3px solid #4ade80;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.55);
}

.bd-tableau {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  gap: 5px;
  margin-top: 10px;
}
.bd-col {
  min-height: 150px;
}
.bd-card {
  height: 78px;
}
.bd-card .pcard-top {
  font-size: 0.76rem;
  padding: 2px 4px 0;
}
.bd-card .pcard-center {
  font-size: 1.35rem;
  line-height: 44px;
}

.ac-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 10px 0;
}
.ac-pile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.ac-meta {
  font-size: 0.68rem;
  color: var(--ink-muted);
  font-weight: 700;
}
.inline-card.ac-target {
  outline: 3px solid #4ade80;
  box-shadow: 0 0 14px rgba(74, 222, 128, 0.6);
}

.cal-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.cal-stock-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.cal-found-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.cal-step-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #fde047;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-radius: 999px;
  padding: 1px 8px;
}
.cal-hint-box {
  outline: 3px solid #38bdf8;
}
.cal-wastes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
}
.cal-waste-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cal-park-btn {
  width: 100%;
  padding: 5px 6px;
  font-size: 0.78rem;
}
.cal-waste-col {
  min-height: 120px;
}

.lbl-fans {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.lbl-fan {
  position: relative;
  height: 92px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 4px;
}
.lbl-fan.empty {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lbl-card {
  position: absolute;
  top: 4px;
  width: 58px;
  height: 82px;
  border-radius: 7px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--black);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.lbl-card.red { color: var(--red); }
.lbl-card.clickable { cursor: pointer; }
.lbl-card.buried { opacity: 0.9; cursor: default; }
.lbl-card.selected { outline: 3px solid var(--gold); z-index: 20 !important; }
.lbl-card.hinted { outline: 3px solid #38bdf8; z-index: 19 !important; }

.rd-cards-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.rd-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.rd-lbl {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--ink-muted);
}
.rd-spread-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-top: 6px;
}
.rd-pip {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--ink-muted);
}
.rd-pip.bound {
  background: var(--gold);
  color: #14261c;
  border-color: #fde047;
}
.rd-pip.inside {
  background: rgba(22, 163, 74, 0.45);
  color: #bbf7d0;
  border-color: #4ade80;
}
.rd-pip.hit3 {
  outline: 2px solid #fff;
  background: #16a34a;
  color: #fff;
}
.rd-pip.miss3 {
  outline: 2px solid #f87171;
  background: #dc2626;
  color: #fff;
}

.sb-dice-tray {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px;
  background: rgba(0, 0, 0, 0.24);
  border-radius: 12px;
  margin-bottom: 12px;
}
.sb-die {
  width: 62px;
  height: 62px;
  border-radius: 12px;
  background: #fffdf8;
  color: #18181b;
  border: 2px solid var(--gold);
  font-size: 2.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}
.sb-die.rolling {
  transform: rotate(12deg) scale(1.06);
  border-color: #38bdf8;
}
.sb-board {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sb-section-lbl {
  font-size: 0.78rem;
  font-weight: 800;
  color: #fde047;
  margin-top: 4px;
}
.sb-main-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.sb-triples-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}
.sb-sums-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.sb-bet-btn {
  position: relative;
  background: rgba(0, 0, 0, 0.28);
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  padding: 7px 4px;
  color: #fff;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.sb-bet-btn:hover { border-color: var(--gold); }
.sb-bet-btn.has-bet {
  border-color: #4ade80;
  background: rgba(22, 101, 52, 0.42);
}
.sb-bet-btn.win-hit {
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.65);
  border-color: #fde047;
}
.sb-bet-title { font-weight: 800; font-size: 0.84rem; }
.sb-bet-sub { font-size: 0.7rem; color: var(--ink-muted); }
.sb-chip-tag {
  margin-top: 3px;
  display: inline-block;
  background: var(--gold);
  color: #14261c;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 0 6px;
  border-radius: 999px;
}

.b21-top {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.b21-card-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--ink-muted);
}
.b21-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 640px;
  margin: 0 auto;
}
.b21-col {
  background: rgba(0, 0, 0, 0.26);
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 8px;
  min-height: 210px;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  text-align: left;
}
.b21-col:hover:not(:disabled) { border-color: var(--gold); }
.b21-col.hot { border-color: #facc15; background: rgba(234, 179, 8, 0.12); }
.b21-col-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 0.78rem;
  color: var(--ink-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 4px;
}
.b21-sum {
  font-size: 1rem;
  color: #fde047;
}
.b21-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}
.b21-mini-card {
  background: var(--card-bg);
  color: var(--black);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 5px 8px;
  font-weight: 800;
  font-size: 0.92rem;
  text-align: center;
}
.b21-mini-card.red { color: var(--red); }
.b21-empty-hint {
  text-align: center;
  margin-top: 36px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 900px) {
  .bd-tableau { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .lbl-fans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .mc-cell { min-height: 60px; }
  .sb-main-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sb-triples-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sb-sums-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .b21-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cal-wastes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* +10 Card & Dice Expansion Games (45 -> 55) */
/* Osmosis Solitaire */
.os-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 14px;
  align-items: start;
}
.os-reserves, .os-foundations {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.os-reserve-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 6px 10px;
}
.os-row-lbl {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--ink-muted);
  min-width: 64px;
}
.os-reserve-cards {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
}
.os-mini-down {
  width: 24px !important;
  height: 76px !important;
  padding: 0 !important;
}
.os-found-row {
  width: 100%;
  background: rgba(0, 0, 0, 0.24);
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 8px 10px;
  color: #fff;
  cursor: pointer;
  text-align: left;
}
.os-found-row:hover { border-color: rgba(234, 179, 8, 0.55); }
.os-found-row.drop-ready { border-color: var(--gold); background: rgba(234, 179, 8, 0.14); }
.os-found-row.hint-ready { border-color: #38bdf8; box-shadow: 0 0 12px rgba(56, 189, 248, 0.45); }
.os-found-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.os-suit-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--card-bg);
  color: var(--black);
  font-weight: 900;
}
.os-suit-tag.red { color: var(--red); }
.os-suit-tag.muted { background: rgba(255, 255, 255, 0.14); color: var(--ink-muted); font-size: 0.72rem; }
.os-rank-strip {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  gap: 3px;
}
.os-rank-pip {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.35);
}
.os-rank-pip.open {
  background: rgba(56, 189, 248, 0.22);
  color: #7dd3fc;
  border: 1px dashed rgba(56, 189, 248, 0.5);
}
.os-rank-pip.have {
  background: var(--gold);
  color: #14261c;
}

/* Beleaguered Castle */
.bc-arena {
  display: grid;
  grid-template-columns: 1fr 78px 1fr;
  gap: 10px;
  align-items: start;
}
.bc-col-wings {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bc-center {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.bc-found-slot {
  width: 68px;
  height: 86px;
  cursor: pointer;
}
.bc-found-slot.red { color: var(--red); }
.bc-found-slot.hinted { outline: 3px solid #38bdf8; }
.bc-wing {
  position: relative;
  height: 88px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
}
.bc-wing.drop-target { border-color: var(--gold); background: rgba(234, 179, 8, 0.12); }
.bc-wing.hint-target { border-color: #38bdf8; }
.bc-empty {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}
.bc-card {
  position: absolute;
  top: 3px;
  width: 60px;
  height: 82px;
  border-radius: 7px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--black);
  padding: 3px 5px;
  font-weight: 800;
  font-size: 0.78rem;
  line-height: 1.05;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.32);
}
.bc-card.red { color: var(--red); }
.bc-card.selected { outline: 3px solid var(--gold); z-index: 30 !important; }
.bc-card.hinted { outline: 3px solid #38bdf8; z-index: 29 !important; }
.bc-card-mid {
  text-align: center;
  font-size: 1.35rem;
  margin-top: 6px;
}

/* Cruel Solitaire */
.cr-piles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.cr-pile {
  position: relative;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.14);
  border: 1px dashed rgba(255, 255, 255, 0.16);
}
.cr-pile.empty { display: flex; align-items: center; justify-content: center; }
.cr-pile.drop-target { border-color: #38bdf8; background: rgba(56, 189, 248, 0.12); }

/* Montana Gaps */
.gm-grid {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  gap: 5px;
  padding: 8px 2px;
}
.gm-card, .gm-gap {
  height: 68px;
  border-radius: 7px;
  font-weight: 800;
  font-size: 0.86rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 2px;
}
.gm-card {
  background: var(--card-bg);
  color: var(--black);
  border: 1px solid var(--card-border);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.28);
}
.gm-card.red { color: var(--red); }
.gm-card.locked {
  background: #dcfce7;
  border-color: #22c55e;
  box-shadow: inset 0 0 0 1px #4ade80;
}
.gm-card.playable { box-shadow: 0 0 0 2px #38bdf8, 0 4px 10px rgba(56, 189, 248, 0.3); }
.gm-card.selected { outline: 3px solid var(--gold); }
.gm-card.hinted { outline: 3px solid #38bdf8; }
.gm-gap {
  background: rgba(0, 0, 0, 0.28);
  border: 2px dashed rgba(234, 179, 8, 0.45);
  color: #fde047;
  font-size: 0.72rem;
}
.gm-gap.dead {
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.3);
}
.gm-gap.target-ready {
  border-color: #4ade80;
  background: rgba(22, 163, 74, 0.35);
}

/* Pai Gow, Let It Ride, BJ Switch */
.pg-zone {
  width: 100%;
  max-width: 680px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 10px 12px;
}
.pg-zone-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.pg-split-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.pg-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.pg-group-lbl {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--ink-muted);
}
.pg-cards {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.lr-bets-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.lr-bet-spot {
  min-width: 104px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px dashed rgba(255, 255, 255, 0.22);
  text-align: center;
}
.lr-bet-spot.active {
  border-style: solid;
  border-color: var(--gold);
  background: rgba(234, 179, 8, 0.16);
}
.lr-bet-spot.pulled {
  opacity: 0.55;
  border-color: rgba(248, 113, 113, 0.5);
}
.lr-bet-lbl { font-size: 0.72rem; color: var(--ink-muted); font-weight: 700; }
.lr-bet-amt { font-size: 0.96rem; font-weight: 900; color: #fde047; }
.bsw-hands {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 680px;
}

/* Bunco & Chicago Dice */
.bn-table {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.bn-seat {
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}
.bn-seat.active-turn {
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(234, 179, 8, 0.35);
}
.bn-seat-name { font-weight: 800; font-size: 0.9rem; }
.bn-seat-score { font-size: 1.15rem; font-weight: 900; color: #fde047; margin-top: 2px; }
.bn-seat-meta { font-size: 0.74rem; color: var(--ink-muted); }
.bn-hit-die { border-color: #4ade80 !important; background: #dcfce7 !important; }

.cd-arena {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 540px;
  margin: 0 auto 14px;
}
.cd-tray {
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}
.cd-tray-lbl { font-weight: 800; font-size: 0.86rem; margin-bottom: 8px; color: #fde047; }
.cd-dice-pair { display: flex; gap: 10px; justify-content: center; margin-bottom: 6px; }
.cd-sum { font-size: 0.82rem; font-weight: 700; color: var(--ink-muted); }
.cd-hit { color: #4ade80; font-weight: 800; }

@media (max-width: 820px) {
  .os-layout { grid-template-columns: 1fr; }
  .bc-arena { grid-template-columns: 1fr; }
  .bc-center { flex-direction: row; justify-content: center; order: -1; }
  .cr-piles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gm-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .bn-table { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .bsw-hands, .cd-arena { grid-template-columns: 1fr; }
  .gm-card, .gm-gap { height: 52px; font-size: 0.72rem; }
}
