/* ===========================================================
   Blackjack Trainer — shared styles
   =========================================================== */

:root {
  --felt-dark: #0b3d2e;
  --felt: #0f5132;
  --felt-light: #146c45;
  --gold: #d4af37;
  --gold-light: #f0d878;
  --cream: #f7f3e8;
  --ink: #1b1b1b;
  --ink-soft: #40403c;
  --white: #ffffff;
  --red: #b3251e;
  --green-ok: #2e7d32;
  --red-bad: #c62828;
  --blue-info: #1a5276;
  --green-bright: #5fd97a;
  --red-bright: #ff6b6b;

  --radius: 10px;
  --shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.18);

  /* strategy chart action colors */
  --act-hit: #c62828;
  --act-stand: #2e7d32;
  --act-double: #1565c0;
  --act-split: #8e24aa;
  --act-surrender: #616161;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(ellipse at top, var(--felt-light) 0%, var(--felt) 45%, var(--felt-dark) 100%);
  background-attachment: fixed;
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--felt-dark);
  line-height: 1.2;
}

a {
  color: inherit;
}

/* ---------------- Header / Nav ---------------- */

header.site-header {
  background: linear-gradient(180deg, var(--felt-dark) 0%, #082a20 100%);
  border-bottom: 3px solid var(--gold);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--cream);
}

.brand-mark {
  font-size: 1.6rem;
}

.brand-name {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--gold-light);
}

nav.main-nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--cream);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

nav.main-nav a:hover {
  background: rgba(212, 175, 55, 0.18);
}

nav.main-nav a.active {
  background: var(--gold);
  color: var(--felt-dark);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold-light);
  border-radius: 8px;
  width: 40px;
  height: 36px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-toggle:hover {
  background: rgba(212, 175, 55, 0.18);
}

@media (max-width: 720px) {
  .header-inner {
    flex-wrap: nowrap;
    position: relative;
  }

  .nav-toggle {
    display: inline-flex;
  }

  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: linear-gradient(180deg, var(--felt-dark) 0%, #082a20 100%);
    border-bottom: 3px solid var(--gold);
    box-shadow: var(--shadow);
    padding: 0.5rem 1.25rem 0.85rem;
  }

  nav.main-nav.nav-open {
    display: flex;
  }

  nav.main-nav a {
    padding: 0.7rem 0.8rem;
    border-radius: 6px;
  }
}

/* ---------------- Layout ---------------- */

main {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.page-lead {
  color: var(--cream);
  max-width: 760px;
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  line-height: 1.55;
}

.card-panel {
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}

.card-panel h2 {
  margin-top: 0;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.5rem;
}

.card-panel h3 {
  margin-bottom: 0.4rem;
}

.card-panel p, .card-panel li {
  line-height: 1.6;
  color: var(--ink-soft);
}

.pill {
  display: inline-block;
  background: var(--gold);
  color: var(--felt-dark);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

.callout {
  border-left: 4px solid var(--blue-info);
  background: #eaf3fa;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  margin: 1rem 0;
}

.callout.warn {
  border-left-color: var(--red-bad);
  background: #fdecea;
}

.callout.good {
  border-left-color: var(--green-ok);
  background: #eaf6ec;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 720px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* ---------------- Home hero ---------------- */

.hero {
  text-align: center;
  color: var(--cream);
  padding: 1.5rem 0 2.5rem;
}

.hero h1 {
  color: var(--gold-light);
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto;
  opacity: 0.92;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.tile {
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border-top: 4px solid var(--gold);
}

.tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}

.tile .tile-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  display: block;
}

.tile h3 {
  margin: 0 0 0.4rem;
}

.tile p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.5;
}

/* ---------------- Buttons ---------------- */

.btn {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1.2rem;
  cursor: pointer;
  transition: filter 0.1s ease, transform 0.05s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--gold);
  color: var(--felt-dark);
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.08);
}

.btn-action {
  background: var(--felt-dark);
  color: var(--cream);
  min-width: 96px;
}

.btn-action:hover:not(:disabled) {
  background: var(--felt-light);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 2px solid var(--gold);
}

/* for use on light (.card-panel) backgrounds, unlike .btn-ghost which assumes felt green */
.btn-secondary {
  background: transparent;
  color: var(--felt-dark);
  border: 2px solid var(--felt-dark);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(15, 81, 50, 0.08);
}

.btn-small {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

/* ---------------- Player profiles ---------------- */

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--gold-light);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.card-panel .link-btn, .profile-modal .link-btn {
  color: var(--blue-info);
}

.profile-bar {
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  padding: 0.55rem 1.25rem;
  text-align: center;
  color: var(--cream);
  font-size: 0.85rem;
}

.profile-bar strong {
  color: var(--gold-light);
}

.profile-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.profile-modal {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  max-width: 380px;
  width: 100%;
  box-shadow: var(--shadow);
  max-height: 90vh;
  overflow-y: auto;
}

.profile-modal h3 {
  margin-top: 0;
  color: var(--felt-dark);
}

.profile-modal p {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.profile-modal label {
  display: block;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--felt-dark);
  margin-top: 0.85rem;
}

.profile-modal input {
  display: block;
  width: 100%;
  padding: 0.6rem 0.75rem;
  margin-top: 0.3rem;
  border: 2px solid #ccc4ad;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}

.profile-modal input:focus {
  outline: none;
  border-color: var(--gold);
}

.profile-error {
  color: var(--red-bad);
  font-size: 0.85rem;
  margin-top: 0.75rem;
  font-weight: 700;
}

/* ---------------- Betting ---------------- */

.bet-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.bet-row-label {
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chip-set {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.chip {
  font-family: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px dashed rgba(247, 243, 232, 0.5);
  background: radial-gradient(circle at 35% 30%, var(--felt-light), var(--felt-dark) 70%);
  color: var(--cream);
  cursor: pointer;
  transition: transform 0.1s ease, filter 0.1s ease;
}

.chip:hover:not(:disabled) {
  filter: brightness(1.2);
}

.chip:active:not(:disabled) {
  transform: translateY(1px);
}

.chip.selected {
  border: 3px solid var(--gold);
  background: radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold) 70%);
  color: var(--felt-dark);
}

.chip:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.hand-bet {
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 0.15rem;
}

/* ---------------- Multiplayer table ---------------- */

.mp-room-header {
  text-align: center;
  color: var(--gold-light);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.seats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0;
}

.seat-card {
  background: rgba(0, 0, 0, 0.18);
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 10px;
  padding: 0.65rem 0.5rem;
  text-align: center;
}

.seat-card.seat-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

.seat-card.seat-me {
  background: rgba(212, 175, 55, 0.14);
}

.seat-card .seat-name {
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.4rem;
  overflow-wrap: break-word;
}

.seat-waiting-note {
  color: var(--cream);
  opacity: 0.7;
  font-size: 0.8rem;
  font-style: italic;
  margin-top: 0.3rem;
}

.lobby-seat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  background: #efe8d3;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--ink);
}

#mp-lobby-link {
  flex: 1;
  padding: 0.55rem 0.7rem;
  border: 2px solid #ccc4ad;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
}

/* ---------------- Trainer layout (table + feedback side by side) ---------------- */

.trainer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.5rem;
  align-items: start;
}

.trainer-side {
  position: sticky;
  top: 84px;
}

@media (max-width: 860px) {
  .trainer-layout {
    grid-template-columns: 1fr;
    /* Reserve space so the fixed feedback dock below never covers the deal button. */
    padding-bottom: min(38vh, 300px);
  }
  /* Docked to the bottom of the screen instead of flowing after the table, so
     feedback stays visible no matter where the table/action buttons are scrolled to. */
  .trainer-side {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 70;
    max-height: min(38vh, 300px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    background: var(--felt-dark);
    border-top: 3px solid var(--gold);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  }
  .trainer-side .feedback-panel {
    margin-bottom: 0;
  }
}

/* ---------------- Trainer table ---------------- */

.table-felt {
  background: radial-gradient(ellipse at center, var(--felt-light) 0%, var(--felt-dark) 100%);
  border: 6px solid #6b4a2b;
  border-radius: 50% / 18%;
  padding: 2.5rem 1.5rem;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.45), var(--shadow);
  margin-bottom: 1.5rem;
}

.dealer-zone, .player-zone {
  text-align: center;
  margin-bottom: 1.25rem;
}

.zone-label {
  color: var(--gold-light);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.hand-total {
  color: var(--cream);
  font-size: 0.95rem;
  margin-top: 0.5rem;
  min-height: 1.3em;
}

.hand-outcome-badge {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: var(--shadow-soft);
}

.hand-outcome-badge.win {
  background: var(--green-ok);
  color: var(--cream);
}

.hand-outcome-badge.lose {
  background: var(--red-bad);
  color: var(--cream);
}

.hand-outcome-badge.push {
  background: var(--blue-info);
  color: var(--cream);
}

.card-row {
  display: flex;
  justify-content: center;
  gap: -10px;
  flex-wrap: wrap;
  min-height: 96px;
  align-items: center;
}

.playing-card {
  width: 62px;
  height: 90px;
  background: var(--white);
  border-radius: 7px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.35rem;
  margin-left: -18px;
  border: 1px solid #ccc;
  user-select: none;
}

.playing-card:first-child {
  margin-left: 0;
}

.playing-card.red { color: var(--red); }
.playing-card.black { color: var(--ink); }

.playing-card .suit {
  font-size: 1.1rem;
  margin-top: 2px;
}

.playing-card.face-down {
  background: repeating-linear-gradient(45deg, var(--felt-dark), var(--felt-dark) 6px, var(--felt-light) 6px, var(--felt-light) 12px);
  border: 2px solid var(--gold);
}

.action-row {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 1.25rem 0;
}

/* Shown in place, right on the felt, as soon as a hand settles (win/lose/push/
   blackjack) so starting the next hand never requires scrolling down to it. */
.deal-next-row {
  display: flex;
  justify-content: center;
  margin: 0.5rem 0 1.5rem;
  animation: deal-next-in 0.2s ease;
}

.btn-deal-next {
  font-size: 1.1rem;
  padding: 0.85rem 1.9rem;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.35), var(--shadow);
}

@keyframes deal-next-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

kbd {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.05rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.35rem;
  vertical-align: 1px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.5);
}

.btn-primary kbd {
  background: rgba(0, 0, 0, 0.15);
  color: var(--felt-dark);
  border-color: rgba(11, 61, 46, 0.35);
}

.btn-action:disabled kbd {
  opacity: 0.5;
}

.kbd-hint {
  text-align: center;
  color: var(--cream);
  opacity: 0.75;
  font-size: 0.82rem;
  margin-top: -0.5rem;
}

.feedback-panel {
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.55;
  display: block;
}

.feedback-panel.pending {
  background: #eef2f5;
  border: 2px dashed #b7c0c7;
  color: #4d5760;
}

.feedback-panel.correct {
  background: #e4f5e6;
  border: 2px solid var(--green-ok);
  color: #1b4d1e;
}

.feedback-panel.incorrect {
  background: #fbe6e5;
  border: 2px solid var(--red-bad);
  color: #6b1a15;
}

.feedback-panel.info {
  background: #e6f0f7;
  border: 2px solid var(--blue-info);
  color: #12384f;
}

.feedback-title {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

#feedback-result:not(:empty) {
  margin-top: 0.7rem;
  padding-top: 0.6rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.25);
  font-weight: 600;
}

.scoreboard {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  color: var(--cream);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.score-item {
  text-align: center;
}

.score-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-light);
  display: block;
}

.score-value.profit { color: var(--green-bright); }
.score-value.loss { color: var(--red-bright); }

.score-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.weak-spot-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  background: #efe8d3;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--ink);
}

.weak-spot-badge {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--felt-dark);
  background: var(--gold-light);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.rules-note {
  text-align: center;
  color: var(--cream);
  opacity: 0.8;
  font-size: 0.85rem;
  margin-top: -0.5rem;
  margin-bottom: 0.75rem;
}

.rules-toggle-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin-bottom: 1.5rem;
}

.switch-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.switch-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-track {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 999px;
  transition: background 0.15s ease;
  flex-shrink: 0;
}

.switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--cream);
  border-radius: 50%;
  transition: transform 0.15s ease;
}

.switch-input:checked + .switch-track {
  background: var(--gold);
  border-color: var(--gold);
}

.switch-input:checked + .switch-track .switch-thumb {
  transform: translateX(18px);
  background: var(--felt-dark);
}

.switch-input:focus-visible + .switch-track {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

/* ---------------- Strategy chart tables ---------------- */

.chart-scroll {
  overflow-x: auto;
  margin-bottom: 1rem;
}

table.strategy-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 640px;
  font-size: 0.88rem;
}

table.strategy-table th, table.strategy-table td {
  border: 1px solid #ccc4ad;
  text-align: center;
  padding: 0.4rem 0.3rem;
}

table.strategy-table th {
  background: var(--felt-dark);
  color: var(--gold-light);
  font-weight: 700;
}

table.strategy-table td.row-label {
  background: #efe8d3;
  font-weight: 700;
  color: var(--ink);
}

table.strategy-table td.act {
  font-weight: 800;
  color: var(--white);
  cursor: default;
}

.act-H { background: var(--act-hit); }
.act-S { background: var(--act-stand); }
.act-D { background: var(--act-double); }
.act-Ds { background: linear-gradient(135deg, var(--act-double) 50%, var(--act-stand) 50%); }
.act-P { background: var(--act-split); }
.act-Rh { background: repeating-linear-gradient(135deg, var(--act-surrender), var(--act-surrender) 6px, var(--act-hit) 6px, var(--act-hit) 12px); }
.act-Rs { background: repeating-linear-gradient(135deg, var(--act-surrender), var(--act-surrender) 6px, var(--act-stand) 6px, var(--act-stand) 12px); }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 0.75rem 0 1.5rem;
  font-size: 0.85rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-swatch {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: inline-block;
}

/* ---------------- Footer ---------------- */

footer.site-footer {
  text-align: center;
  color: var(--cream);
  opacity: 0.75;
  font-size: 0.82rem;
  padding: 1.5rem 1rem 2rem;
}

/* ---------------- Position diagram (table play page) ---------------- */

.seat-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.seat-arc {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.seat {
  background: var(--felt-dark);
  color: var(--cream);
  border: 2px solid var(--gold);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  text-align: center;
  font-size: 0.8rem;
  min-width: 90px;
}

.seat strong {
  display: block;
  color: var(--gold-light);
  font-size: 0.95rem;
}

.dealer-chip {
  background: var(--gold);
  color: var(--felt-dark);
  border-radius: 999px;
  padding: 0.5rem 1.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}
