@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Cinzel:wght@600;700&family=Karla:wght@400;500;700&family=IBM+Plex+Mono:wght@400;600&display=swap');

/* ============================================================================
   XtremeIdiots Casino - shared stylesheet (premium skin)
   ----------------------------------------------------------------------------
   Same language as slots.css: dark graphite, muted gold, restrained glow. Every
   selector the game scripts rely on is kept; only the look changes. Generated art
   is optional and wired by casino-art.js through the CSS variables noted below.
   ========================================================================== */

:root {
  /* legacy names, still used by per-game sheets */
  --felt: #0e4a37;
  --felt-dark: #082e21;
  --carpet: #0a090d;
  --carpet-2: #14121a;
  --gold: #c9a54b;
  --gold-bright: #e8c874;
  --cream: #ede6d6;
  --chip-red: #a3242a;
  --marquee-pink: #e8c874;
  --ink: #0d0b10;
  --radius: 10px;

  /* premium tokens */
  --bg: #0a090d;
  --graphite: #1a181f;
  --graphite-2: #242129;
  --gold-pale: #f4e3b2;
  --gold-dim: #7a5f25;
  --dim: #8f8778;
  --line: rgba(201, 165, 75, 0.28);
  --line-soft: rgba(255, 255, 255, 0.06);
  --green: #6fcf8a;
  --red-soft: #ff8c8c;
  --rail-1: #3a2a20;
  --rail-2: #1c1410;
  --cushion-1: #2c1b20;
  --cushion-2: #170d10;

  --f-display: 'Bebas Neue', 'Anton', 'Impact', sans-serif;
  --f-serif: 'Cinzel', 'Times New Roman', serif;
  --f-body: 'Karla', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', 'Consolas', monospace;

  /* art hooks (set by casino-art.js when the file exists) */
  --page-bg: none;
  --felt-art: none;
  --card-back-art: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(201, 165, 75, 0.07), transparent 70%),
    radial-gradient(ellipse 50% 40% at 90% 100%, rgba(138, 28, 36, 0.10), transparent 70%);
  color: var(--cream);
  font-family: var(--f-body);
  min-height: 100vh;
}
body.has-page-bg {
  background:
    linear-gradient(180deg, rgba(10, 9, 13, 0.60) 0%, rgba(10, 9, 13, 0.82) 55%, rgba(10, 9, 13, 0.97) 100%),
    var(--page-bg) center top / cover no-repeat fixed,
    #0a090d;
}

h1, h2, h3, .marquee { font-family: var(--f-display); letter-spacing: 0.06em; }
.mono { font-family: var(--f-mono); }
a { color: var(--gold-bright); }

button {
  font-family: var(--f-body);
  font-weight: 700;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  transition: transform 0.1s ease, filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
button:hover:not(:disabled) { filter: brightness(1.1); }
button:active:not(:disabled) { transform: scale(0.97); }
button:disabled { opacity: 0.4; cursor: not-allowed; }

/* the gold headline treatment shared by page titles and table names */
.gold-title, .marquee-banner h1, .table-title-text, .vp-title, .vp-landing-title {
  background: linear-gradient(180deg, var(--gold-pale) 0%, var(--gold-bright) 45%, var(--gold) 55%, var(--gold-bright) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.9)) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.8));
}

/* ---------- marquee header (hub) ---------- */

.marquee-banner {
  position: relative;
  text-align: center;
  padding: 26px 20px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent);
}
.marquee-banner h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  margin: 0;
  line-height: 1;
  display: inline-block;
  padding: 0 24px;
}
.marquee-banner h1.has-img { background: none; filter: none; -webkit-text-fill-color: initial; line-height: 0; }
.marquee-banner h1.has-img img { height: clamp(70px, 9vw, 120px); width: auto; max-width: 92vw; display: block; margin: 0 auto; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 24px rgba(232, 200, 116, 0.25)); }
.marquee-banner .tag {
  color: var(--dim);
  margin-top: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.bulb-row { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.bulb {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 6px 1px rgba(232, 200, 116, 0.6);
  animation: chase 1.6s infinite;
}
.bulb:nth-child(odd) { animation-delay: 0.2s; }
.bulb:nth-child(3n) { animation-delay: 0.4s; }
@keyframes chase { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bulb { animation: none; opacity: 0.85; } }

/* ---------- floor layout ---------- */

.floor { max-width: 1180px; margin: 0 auto; padding: 30px 20px 60px; }
.section-label {
  font-family: var(--f-display); font-size: 1.5rem; color: var(--gold);
  border-bottom: 1px solid var(--line); padding-bottom: 6px; margin: 40px 0 18px; letter-spacing: 0.06em;
}

/* legacy entrance block (kept for any page still using it) */
.table-entrance {
  background: radial-gradient(ellipse at center, var(--felt) 0%, var(--felt-dark) 100%);
  border: 4px solid var(--gold); border-radius: 40px 40px 14px 14px; padding: 34px;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.4), 0 8px 30px rgba(0, 0, 0, 0.5);
}
.table-entrance .felt-arc { flex: 1; min-width: 240px; }
.table-entrance h2 { margin: 0 0 6px; font-size: 2.4rem; color: var(--cream); }
.table-entrance p { opacity: 0.85; line-height: 1.5; }
.table-entrance ul { margin: 10px 0 18px; padding-left: 20px; opacity: 0.85; }
.enter-btn { background: var(--chip-red); color: var(--cream); padding: 14px 30px; font-size: 1.1rem; border-radius: 999px; border: 2px solid var(--gold-bright); }

/* the game card's picture. Without art it is a dark plaque with the old icon;
   with card_<game> art it becomes a full-width key-art banner. */
.dealer-avatar {
  width: 92px; height: 92px; border-radius: 50%;
  border: 1px solid var(--gold);
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.10), transparent 45%), #0c0b0f;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden;
  box-shadow: 0 0 0 4px #0a090d, 0 0 0 5px var(--line), 0 10px 24px rgba(0, 0, 0, 0.7);
}
.dealer-avatar svg { width: 84%; height: 84%; filter: saturate(0.85) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.9)); }
.dealer-avatar-caption {
  font-family: var(--f-body); font-size: 0.64rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--dim); margin-bottom: 6px;
}

/* wallet pill, shown everywhere */
.wallet {
  position: fixed; top: 14px; right: 14px; z-index: 40;
  display: flex; align-items: center; gap: 10px;
  background: #0d0806; border: 1px solid var(--gold); border-radius: 999px;
  padding: 7px 8px 7px 16px;
  font-family: var(--f-mono); font-weight: 600; font-size: 0.85rem; color: var(--gold-bright);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
}
.wallet #walletAmount { color: var(--cream); }
.sound-toggle-btn {
  background: none; border: 1px solid transparent; color: var(--gold-bright); cursor: pointer;
  font-size: 0.95rem; line-height: 1; padding: 4px 8px; margin: 0; border-radius: 999px; vertical-align: middle;
  opacity: 0.8; transition: opacity 0.15s, border-color 0.15s;
}
.sound-toggle-btn:hover { opacity: 1; border-color: var(--line); }
.conn-pill { font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.conn-pill.ok { background: rgba(111, 207, 138, 0.14); color: var(--green); border: 1px solid rgba(111, 207, 138, 0.3); }
.conn-pill.down { background: rgba(163, 36, 42, 0.18); color: var(--red-soft); border: 1px solid rgba(163, 36, 42, 0.4); }

footer.floor-footer { text-align: center; color: var(--dim); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 26px 20px; }

/* ---------- table page frame ---------- */

.bj-wrap { max-width: 1300px; margin: 0 auto; padding: 84px 18px 40px; }
.bj-main-row { display: flex; gap: 22px; align-items: flex-start; justify-content: center; flex-wrap: nowrap; }
@media (max-width: 860px) { .bj-main-row { flex-wrap: wrap; } }
.bj-main-row .chat-panel { width: 330px; max-width: 100%; margin: 0; }

.back-link { display: inline-block; margin-bottom: 14px; opacity: 0.75; text-decoration: none; font-size: 0.85rem; }
.back-link:hover { opacity: 1; }

.phase-banner {
  text-align: center;
  font-family: var(--f-display); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-bright); font-size: 1.05rem; margin-bottom: 10px;
}
.phase-banner .countdown { color: var(--cream); margin-left: 8px; font-family: var(--f-mono); font-size: 0.85em; }
.global-error {
  text-align: center; min-height: 1.1em; margin: -4px 0 10px;
  color: var(--red-soft); font-size: 0.78rem; font-family: var(--f-mono);
}

.table-stage { position: relative; padding-top: 34px; max-width: 900px; flex: 1 1 auto; min-width: 380px; }
.chat-panel { flex-shrink: 0; }

/* rail, cushion, felt */
.table-rail {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 6px),
    linear-gradient(160deg, var(--rail-1), var(--rail-2));
  border-radius: 28px; padding: 9px;
  border: 1px solid var(--gold-dim);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 20px rgba(0, 0, 0, 0.5);
}
.table-cushion {
  background: linear-gradient(180deg, var(--cushion-1) 0%, var(--cushion-2) 100%);
  border-radius: 21px; padding: 7px;
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.6), inset 0 -2px 6px rgba(255, 255, 255, 0.04);
}
.felt-table {
  position: relative; text-align: center;
  background:
    var(--felt-art) center / cover no-repeat,
    radial-gradient(ellipse at 50% 12%, rgba(255, 255, 255, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.45) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") center / 180px repeat,
    radial-gradient(ellipse at 50% 20%, var(--felt) 0%, var(--felt-dark) 80%);
  background-blend-mode: normal, screen, normal, normal, normal;
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 14px 34px 20px;
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.55), inset 0 0 0 5px rgba(0, 0, 0, 0.25);
}
.felt-table::before {
  content: ""; position: absolute; inset: 8px; border-radius: 12px; pointer-events: none;
  border: 1px solid rgba(232, 200, 116, 0.22);
}
.felt-table::after {
  content: "XTREMEIDIOTS";
  position: absolute; bottom: 12px; left: 0; right: 0; text-align: center;
  font-family: var(--f-serif); font-weight: 700; letter-spacing: 0.5em; font-size: 0.62rem;
  color: rgba(232, 200, 116, 0.22); pointer-events: none;
}
.table-legend {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: min(90%, 480px); height: auto; pointer-events: none; z-index: 1; opacity: 0.8;
}

.table-title { position: relative; text-align: center; margin-bottom: 2px; z-index: 2; }
.table-crest { width: 30px; height: 20px; margin: 0 auto -2px; display: block; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); opacity: 0.9; }
.table-title-text {
  font-family: var(--f-serif); font-weight: 700; margin: 0;
  font-size: clamp(1.4rem, 4vw, 2.1rem); letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.1;
}
.table-title-text.has-img { background: none; filter: none; -webkit-text-fill-color: initial; line-height: 0; }
.table-title-text.has-img img { height: clamp(48px, 7vw, 84px); width: auto; max-width: 80%; display: block; margin: 0 auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.85)); }

.pays-ribbon { position: relative; max-width: 560px; margin: 2px auto 0; height: 52px; display: flex; align-items: center; justify-content: center; z-index: 2; }
.pays-ribbon-shape { position: absolute; inset: 0; width: 100%; height: 100%; }
.ribbon-flourish { position: absolute; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; opacity: 0.85; z-index: 1; }
.ribbon-flourish.left { left: 4%; }
.ribbon-flourish.right { right: 4%; }
.ribbon-text { position: relative; z-index: 2; display: flex; align-items: center; gap: 16px; font-family: var(--f-serif); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream); font-size: clamp(0.8rem, 2.6vw, 1.15rem); }
.ribbon-divider { width: 1px; height: 22px; background: rgba(232, 200, 116, 0.5); }
.pays-sub {
  text-align: center; font-family: var(--f-body); font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.62rem; color: rgba(232, 200, 116, 0.75); margin: 4px 0 8px;
}

.table-corner-totals {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  background: rgba(6, 8, 7, 0.65); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px;
  font-family: var(--f-body); letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.6rem;
  color: var(--dim); text-align: left; line-height: 1.7;
}
.table-corner-totals span { color: var(--gold-bright); font-family: var(--f-mono); font-size: 0.9rem; letter-spacing: 0; margin-left: 4px; }

.main-menu-btn {
  position: absolute; top: 0; left: 4px; z-index: 3;
  background: rgba(0, 0, 0, 0.5); border: 1px solid var(--line); color: var(--gold-bright);
  font-family: var(--f-body); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.7rem;
  padding: 8px 14px; border-radius: 999px; text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.main-menu-btn:hover { border-color: var(--gold); background: rgba(201, 165, 75, 0.10); }
.table-chips { position: absolute; top: -6px; right: 10px; width: 46px; height: 46px; z-index: 3; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)) saturate(0.85); }
.table-chips.has-img { width: 74px; height: 74px; top: -14px; }

/* the dealer's spot: a dark glass plaque, with a portrait when dealer_<game> exists */
.dealer-area {
  position: relative;
  text-align: center; margin-bottom: 14px; padding: 12px 22px 14px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.3));
  border-radius: 14px; border: 1px solid var(--line);
  display: inline-block; min-width: 260px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 24px rgba(0, 0, 0, 0.4);
}
.dealer-portrait {
  position: absolute; left: -46px; top: 50%; transform: translateY(-50%);
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--gold); box-shadow: 0 0 0 4px #0a090d, 0 10px 24px rgba(0, 0, 0, 0.7);
  display: none;
}
.dealer-area.has-portrait { margin-left: 40px; }
.dealer-area.has-portrait .dealer-portrait { display: block; }
.hand-row { display: flex; gap: 8px; justify-content: center; margin-top: 8px; min-height: 118px; flex-wrap: wrap; }

/* ---------- playing cards ---------- */
.card {
  width: 74px; height: 104px; border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 40%),
    #f6f1e4;
  color: #171417;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.4rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 8px 16px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.25);
  line-height: 1.1;
  transition: transform 0.25s ease;
  animation: cardLand 0.32s ease-out;
  position: relative;
  font-family: var(--f-serif);
}
@keyframes cardLand { from { transform: translateY(-26px) scale(0.85); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
.card.red { color: #b3202c; }

.bc-corner {
  position: absolute; top: 5px; left: 6px; z-index: 1;
  display: flex; flex-direction: column; align-items: center; line-height: 1;
  font-size: 0.82rem; font-weight: 700;
}
.bc-corner span { font-size: 0.7rem; font-family: var(--f-body); }
.bc-corner-br { top: auto; left: auto; bottom: 5px; right: 6px; transform: rotate(180deg); }
.bc-pips { position: absolute; inset: 18px 9px; display: grid; grid-template-rows: repeat(5, 1fr); grid-template-columns: repeat(3, 1fr); font-family: var(--f-body); }
.bc-pip { justify-self: center; align-self: center; font-size: 0.95rem; line-height: 1; }
.bc-pip-ace { font-size: 1.8rem; }
.bc-face {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  font-size: 1.6rem; font-weight: 700; line-height: 1;
}
.bc-face::before {
  content: ""; position: absolute; inset: 20px 10px; border-radius: 4px;
  border: 1px solid rgba(201, 165, 75, 0.55);
  background: linear-gradient(180deg, rgba(201, 165, 75, 0.10), rgba(201, 165, 75, 0.02));
}
.bc-face span { font-size: 1.3rem; font-family: var(--f-body); position: relative; }
.card.back {
  position: relative;
  background:
    var(--card-back-art) center / cover no-repeat,
    repeating-linear-gradient(45deg, transparent 0 6px, rgba(232, 200, 116, 0.10) 6px 7px),
    repeating-linear-gradient(-45deg, transparent 0 6px, rgba(232, 200, 116, 0.10) 6px 7px),
    radial-gradient(circle at 50% 40%, #241d2c 0%, #14111a 60%, #0c0a10 100%);
  border: 2px solid var(--gold);
  box-shadow: inset 0 0 0 3px #0e0c12, inset 0 0 0 4px rgba(232, 200, 116, 0.35), 0 8px 16px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.card.back::after {
  content: "XI";
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--f-serif); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.06em;
  color: var(--gold-bright);
  text-shadow: 0 0 10px rgba(232, 200, 116, 0.5), 0 2px 3px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}
.has-card-back .card.back::after { display: none; }
.hand-total { font-family: var(--f-display); letter-spacing: 0.1em; font-size: 1rem; color: var(--gold-bright); text-align: center; margin-top: 6px; }

/* ---------- seats ---------- */
.seat-ring { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
/* five seats in a gentle arc: a flex row, the middle seats nudged down */
.bj-seat-ring { display: flex; align-items: flex-start; justify-content: center; gap: 10px; margin: 10px 0 8px; min-height: 0; }
.bj-seat-ring .seat { position: static; flex: 1 1 0; min-width: 0; max-width: 176px; transform: none; padding: 10px; min-height: 150px; }
.bj-seat-ring .seat.empty { flex: 0 0 84px; align-self: center; }
.bj-seat-ring .seat:nth-child(2), .bj-seat-ring .seat:nth-child(4) { margin-top: 14px; }
.bj-seat-ring .seat:nth-child(3) { margin-top: 24px; }
@media (max-width: 720px) {
  .bj-seat-ring { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
  .bj-seat-ring .seat, .bj-seat-ring .seat:nth-child(2), .bj-seat-ring .seat:nth-child(3), .bj-seat-ring .seat:nth-child(4) { margin-top: 0; max-width: none; }
}
.seat {
  background: linear-gradient(180deg, rgba(14, 12, 18, 0.88), rgba(8, 7, 11, 0.9));
  border: 1px solid var(--line); border-radius: 12px;
  padding: 12px; min-height: 200px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.seat.empty {
  align-items: center; justify-content: center; opacity: 0.9;
  background: rgba(0, 0, 0, 0.25); border: 1px dashed rgba(232, 200, 116, 0.5); border-radius: 50%;
  width: 84px; height: 84px; min-height: 0; padding: 0; box-shadow: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.seat.empty:hover { border-color: var(--gold-bright); background: rgba(201, 165, 75, 0.10); box-shadow: 0 0 18px rgba(232, 200, 116, 0.25); }
.seat.empty .sit-btn {
  width: 100%; height: 100%; border-radius: 50%; border: none; background: transparent;
  font-family: var(--f-body); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-bright); opacity: 1;
}
.seat.you { border-color: var(--gold-bright); box-shadow: 0 0 0 1px rgba(232, 200, 116, 0.5), 0 12px 26px rgba(0, 0, 0, 0.5); }
.seat.turn { border-color: var(--gold-bright); box-shadow: 0 0 22px rgba(232, 200, 116, 0.35), 0 0 0 1px var(--gold-bright); }
.seat-name { font-family: var(--f-display); letter-spacing: 0.08em; font-size: 1.05rem; color: var(--gold-pale); display: flex; justify-content: space-between; align-items: baseline; }
.seat-name .countdown { font-family: var(--f-mono); font-size: 0.75rem; color: var(--cream); }
.seat-balance { font-family: var(--f-mono); font-size: 0.7rem; color: var(--dim); }
.sit-btn {
  background: transparent; border: 1px solid var(--line); color: var(--gold-bright);
  border-radius: 999px; padding: 8px 14px; opacity: 0.9;
  font-family: var(--f-body); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.sit-btn:hover:not(:disabled) { opacity: 1; border-color: var(--gold); background: rgba(201, 165, 75, 0.10); }

.hands-mini { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-hand { background: rgba(0, 0, 0, 0.35); border-radius: 9px; padding: 6px; border: 1px solid var(--line-soft); text-align: center; }
.mini-hand.active { border-color: var(--gold-bright); background: rgba(232, 200, 116, 0.10); box-shadow: 0 0 0 1px var(--gold-bright), 0 0 16px rgba(232, 200, 116, 0.35); transform: scale(1.03); }
.playing-tag { font-family: var(--f-body); letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.56rem; color: var(--gold-bright); margin-bottom: 4px; }
.mini-hand .cards { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; max-width: 160px; }
.mini-card {
  width: 44px; height: 58px; border-radius: 6px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 40%), #f6f1e4;
  color: #171417; font-family: var(--f-serif); font-size: 0.92rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  animation: cardLand 0.32s ease-out; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.45); border: 1px solid rgba(0, 0, 0, 0.25);
}
.mini-card span { font-family: var(--f-body); }
.mini-card.red { color: #b3202c; }
.mini-hand .meta { font-family: var(--f-mono); font-size: 0.68rem; color: var(--cream); opacity: 0.8; margin-top: 3px; text-align: center; }
.bet-tag { font-family: var(--f-body); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-bright); margin-top: 2px; }
.result-banner {
  font-family: var(--f-display); font-size: 0.95rem; letter-spacing: 0.12em;
  padding: 2px 0; margin-bottom: 5px; border-radius: 5px; font-weight: 700;
}
.result-banner.win, .result-banner.blackjack { color: var(--green); text-shadow: 0 0 10px rgba(111, 207, 138, 0.5); }
.result-banner.lost, .result-banner.bust { color: var(--red-soft); }
.result-banner.push { color: var(--gold-bright); }

/* ---------- action bars ---------- */
.action-bar {
  position: sticky; bottom: 12px; margin-top: 20px;
  background: linear-gradient(180deg, #17151c 0%, #0d0c10 100%);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.action-bar span { color: var(--cream); font-family: var(--f-display) !important; letter-spacing: 0.12em !important; font-size: 0.95rem; }
.action-bar button {
  font-family: var(--f-display); font-size: 1rem; letter-spacing: 0.14em;
  padding: 11px 20px; border-radius: 999px;
  background: transparent; color: var(--gold-bright); border: 1px solid var(--gold);
}
.action-bar button:hover:not(:disabled) { background: rgba(201, 165, 75, 0.12); filter: none; }
.action-bar button.primary {
  background: linear-gradient(180deg, var(--gold-pale), var(--gold) 55%, var(--gold-dim));
  color: #1a1205; border-color: var(--gold-pale);
  box-shadow: 0 0 18px rgba(201, 165, 75, 0.25);
}
.action-bar button.primary:hover:not(:disabled) { filter: brightness(1.08); background: linear-gradient(180deg, var(--gold-pale), var(--gold) 55%, var(--gold-dim)); }
.bet-panel { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.bet-panel label { font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); display: flex; flex-direction: column; gap: 5px; align-items: center; }
.bet-panel input[type=number] {
  width: 96px; background: #0a090d; border: 1px solid var(--line); border-radius: 999px;
  color: var(--cream); font-family: var(--f-mono); font-weight: 600; font-size: 0.95rem; padding: 7px 10px; text-align: center;
}
.bet-panel input[type=number]:focus { outline: none; border-color: var(--gold); }
.hand-count-toggle { display: flex; gap: 4px; }
.hand-count-toggle button {
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--cream); font-family: var(--f-mono); font-size: 0.8rem;
}
.hand-count-toggle button.selected { background: var(--gold-bright); color: #1a1205; border-color: var(--gold-bright); font-weight: 700; }

/* ---------- login gate ---------- */
.name-gate {
  max-width: 380px; margin: 120px auto; text-align: center;
  background: linear-gradient(180deg, #1c1921, #0e0d11);
  border: 1px solid var(--gold); border-radius: 16px; padding: 30px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
}
.name-gate h2 { font-family: var(--f-serif); font-size: 1.3rem; letter-spacing: 0.1em; color: var(--gold-bright); }
.name-gate input { width: 100%; padding: 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--ink); color: var(--cream); font-family: var(--f-body); margin: 14px 0; text-align: center; }
.name-gate button {
  width: 100%; padding: 12px; border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-pale), var(--gold) 55%, var(--gold-dim));
  color: #1a1205; border: none; font-family: var(--f-display); letter-spacing: 0.14em; font-size: 1rem;
}

.log-strip { font-family: var(--f-mono); font-size: 0.7rem; color: var(--dim); margin: 12px 0 0; text-align: center; }

/* ---------- chat ---------- */
.chat-panel {
  max-width: 480px; margin: 16px auto 0;
  background: linear-gradient(180deg, rgba(20, 18, 24, 0.95), rgba(10, 9, 13, 0.95));
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-align: left;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.chat-header {
  font-family: var(--f-body); letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.62rem;
  color: var(--gold-bright); padding: 10px 14px; border-bottom: 1px solid var(--line-soft);
}
.chat-messages { height: 150px; max-height: 150px; overflow-y: auto; overflow-x: hidden; padding: 8px 14px; display: flex; flex-direction: column; gap: 4px; }
.chat-msg { font-family: var(--f-body); font-size: 0.8rem; color: var(--cream); word-break: break-word; }
.chat-name { color: var(--gold-bright); font-weight: 700; }
.chat-empty-hint { font-family: var(--f-body); font-size: 0.76rem; color: var(--dim); }
.chat-input-row { display: flex; gap: 6px; padding: 8px 10px; border-top: 1px solid var(--line-soft); }
.chat-input-row input {
  flex: 1; min-width: 0; background: #0a090d; border: 1px solid var(--line-soft); border-radius: 999px;
  color: var(--cream); padding: 7px 12px; font-family: var(--f-body); font-size: 0.8rem;
}
.chat-input-row input:focus { outline: none; border-color: var(--gold); }
.chat-input-row button {
  font-family: var(--f-display); letter-spacing: 0.12em; font-size: 0.85rem;
  padding: 6px 16px; background: transparent; color: var(--gold-bright); border: 1px solid var(--gold); border-radius: 999px; cursor: pointer;
}

/* ---------- hub: game cards ---------- */
.lobby-floor { max-width: 1600px; margin: 0 auto; padding: 28px 20px 30px; }
.lobby-row { display: flex; gap: 20px; align-items: stretch; flex-wrap: wrap; justify-content: center; }
.lobby-main-col { flex: 1 1 auto; min-width: 0; }
.lobby-side-col { flex: 0 0 260px; max-width: 100%; display: flex; flex-direction: column; gap: 12px; }
.lobby-side-col .support-panel { width: 100%; max-width: 100%; margin: 0; }
@media (max-width: 1000px) { .lobby-side-col { flex-basis: 100%; } }

.entrance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

.entrance-card {
  position: relative; display: flex; flex-direction: column;
  text-decoration: none; color: var(--cream);
  background: linear-gradient(180deg, var(--graphite-2) 0%, var(--graphite) 40%, #100e13 100%);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 0; overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.entrance-card::before {
  content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 1px; z-index: 2;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent); opacity: 0.9;
}
.entrance-card:hover {
  transform: translateY(-6px); border-color: var(--gold);
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.7), 0 0 40px rgba(201, 165, 75, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.entrance-glow { position: absolute; inset: -40% -40% auto auto; width: 220px; height: 220px; border-radius: 50%; filter: blur(50px); opacity: 0.16; pointer-events: none; }
.bj-glow { background: var(--chip-red); }
.slots-glow { background: var(--gold); }

/* card head: the art banner (or the plaque icon on a dark field) */
.entrance-card .dealer-avatar {
  width: 100%; height: 150px; border-radius: 0; border: none; box-shadow: none; margin: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 100%, rgba(201, 165, 75, 0.16), transparent 70%),
    linear-gradient(180deg, #08070a, #121016);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.entrance-card .dealer-avatar svg { width: 84px; height: 84px; }
.entrance-card .dealer-avatar::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, rgba(255, 255, 255, 0.05) 0%, transparent 35%); }
.entrance-card .dealer-avatar.has-art { background: #000; }
.entrance-card .dealer-avatar.has-art svg { display: none; }
.entrance-card .dealer-avatar .card-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.entrance-card .dealer-avatar.has-art::after { background: linear-gradient(180deg, transparent 55%, #121016 100%); }
.entrance-card .dealer-avatar-caption { padding: 16px 18px 0; margin: 0; }
.entrance-card h2 {
  margin: 4px 0 8px; padding: 0 18px;
  font-family: var(--f-serif); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold-bright); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.9);
}
.entrance-card h2.has-img { line-height: 0; }
.entrance-card h2.has-img img { height: 54px; width: auto; max-width: 100%; display: block; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.85)); }
.entrance-card p { padding: 0 18px; opacity: 0.8; line-height: 1.45; margin: 0 0 8px; font-size: 0.84rem; }
.entrance-card ul { margin: 0 0 14px; padding: 0 18px 0 34px; color: var(--dim); font-size: 0.78rem; line-height: 1.5; }
.entrance-cta {
  display: block; margin: auto 18px 18px; text-align: center;
  font-family: var(--f-display); letter-spacing: 0.22em; font-size: 1.05rem;
  color: var(--gold-bright); border: 1px solid var(--gold); border-radius: 999px;
  background: linear-gradient(180deg, rgba(201, 165, 75, 0.14), rgba(201, 165, 75, 0.04));
  padding: 9px 18px; transition: background 0.2s ease;
}
.entrance-card:hover .entrance-cta { background: linear-gradient(180deg, rgba(201, 165, 75, 0.30), rgba(201, 165, 75, 0.12)); }

/* ---------- featured signature machine card (legacy) ---------- */
.vb-feature-card { position: relative; display: block; text-decoration: none; color: var(--cream); background: radial-gradient(ellipse at 30% 0%, #1c1108 0%, #0c0805 100%); border: 1px solid var(--gold); border-radius: 14px; padding: 22px 26px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.vb-feature-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--gold-bright); }
.vb-feature-glow { position: absolute; inset: -30% -10% auto auto; width: 260px; height: 260px; border-radius: 50%; background: var(--chip-red); filter: blur(60px); opacity: 0.2; pointer-events: none; }
.vb-feature-badge { display: inline-block; font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.06em; color: #241a04; background: var(--gold-bright); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.vb-feature-name { font-family: var(--f-display); font-size: 2.2rem; letter-spacing: 0.06em; color: var(--gold-bright); }
.vb-feature-sub { opacity: 0.8; font-size: 0.85rem; margin: 6px 0 14px; max-width: 46ch; }
.section-badge { font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.06em; color: #241a04; background: var(--gold-bright); padding: 2px 8px; border-radius: 999px; vertical-align: middle; margin-left: 10px; }
.vb-feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.vb-feature-card-sm { padding: 18px 20px; }
.vb-feature-card-sm .vb-feature-name { font-size: 1.5rem; }
.vb-feature-card-sm .vb-feature-sub { font-size: 0.78rem; min-height: 34px; }
.vb-feature-card-sm .vb-feature-glow { opacity: 0.35; }

/* ---------- donation / support panel ---------- */
.support-panel {
  max-width: 620px; margin: 28px auto 0; padding: 18px 20px 20px;
  background: linear-gradient(180deg, rgba(20, 18, 24, 0.9), rgba(10, 9, 13, 0.9));
  border: 1px solid var(--line-soft); border-radius: 12px; text-align: center;
}
.support-panel h3 { margin: 0 0 6px; font-family: var(--f-body); letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.66rem; color: var(--gold-bright); }
.support-panel p { margin: 0 0 14px; font-size: 0.82rem; line-height: 1.5; color: var(--cream); opacity: 0.8; }
.support-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.support-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--gold-bright);
  font-family: var(--f-display); letter-spacing: 0.14em; font-size: 0.95rem; text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.support-btn:hover { border-color: var(--gold); background: rgba(201, 165, 75, 0.12); }
.support-note { margin-top: 12px; font-size: 0.68rem; color: var(--dim); font-family: var(--f-body); }

/* in-column placements */
.bj-chat-col { display: flex; flex-direction: column; gap: 14px; width: 330px; max-width: 100%; flex-shrink: 0; }
.bj-chat-col .chat-panel { width: 100%; margin: 0; }
.bj-chat-col .support-panel { width: 100%; max-width: 100%; margin: 0; }
.bj-chat-col .action-bar { position: static; margin-top: 0; width: 100%; }
.bc-side-col .support-panel { width: 100%; max-width: 100%; margin: 0; }
.bj-chat-col .support-panel, .bc-side-col .support-panel { padding: 14px 14px 16px; }
.bj-chat-col .support-panel p, .bc-side-col .support-panel p { font-size: 0.78rem; margin-bottom: 12px; }
.bj-chat-col .support-btn, .bc-side-col .support-btn { padding: 7px 14px; font-size: 0.88rem; }

/* ---------- betting countdown on the felt (bet-clock.js) ---------- */
.bet-clock {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.94); z-index: 6;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 14px 32px; border-radius: 14px;
  background: rgba(6, 8, 7, 0.72); border: 1px solid var(--line);
  backdrop-filter: blur(3px); pointer-events: none; opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}
.bet-clock.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.bet-clock-secs { font-family: var(--f-display); font-size: clamp(2.6rem, 7vw, 4.2rem); line-height: 1; color: var(--gold-bright); text-shadow: 0 0 22px rgba(232, 200, 116, 0.45); }
.bet-clock-secs i { font-style: normal; font-size: 0.42em; opacity: 0.7; margin-left: 2px; }
.bet-clock-label { font-family: var(--f-body); letter-spacing: 0.24em; text-transform: uppercase; font-size: 0.64rem; color: var(--cream); opacity: 0.85; }
.bet-clock-hint { font-family: var(--f-mono); font-size: 0.64rem; color: var(--dim); min-height: 0.9em; }
.bet-clock.urgent { border-color: var(--chip-red); }
.bet-clock.urgent .bet-clock-secs { color: #ff9a9a; text-shadow: 0 0 22px rgba(255, 90, 90, 0.55); animation: betClockPulse 1s ease-in-out infinite; }
@keyframes betClockPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .bet-clock.urgent .bet-clock-secs { animation: none; } }
@media (max-width: 600px) { .bet-clock { padding: 10px 20px; } }

/* ============================================================================
   FEEL (casino-fx.js)
   ========================================================================== */
/* cards come out of the shoe: slide in from the top-right with a turn */
.card { animation: cardDeal 0.38s cubic-bezier(0.2, 0.9, 0.3, 1.1); }
@keyframes cardDeal {
  from { transform: translate(90px, -70px) rotate(10deg) scale(0.9); opacity: 0; }
  60% { opacity: 1; }
  to { transform: none; opacity: 1; }
}
.mini-card { animation: cardDealMini 0.3s ease-out; }
@keyframes cardDealMini { from { transform: translateY(-16px) scale(0.85); opacity: 0; } to { transform: none; opacity: 1; } }

/* whose turn it is breathes; empty seats invite */
.seat.turn { animation: turnBreath 1.6s ease-in-out infinite; }
@keyframes turnBreath {
  0%, 100% { box-shadow: 0 0 14px rgba(232, 200, 116, 0.25), 0 0 0 1px var(--gold-bright); }
  50% { box-shadow: 0 0 30px rgba(232, 200, 116, 0.5), 0 0 0 1px var(--gold-pale); }
}
.playing-tag { animation: tagBlink 1s steps(2) infinite; }
@keyframes tagBlink { 50% { opacity: 0.45; } }
.seat.empty .sit-btn:not(:disabled) { animation: sitPulse 2.4s ease-in-out infinite; }
@keyframes sitPulse { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }

/* phase banner flashes when it changes */
.phase-banner.fx-flash { animation: phaseFlash 0.7s ease-out; }
@keyframes phaseFlash { 0% { color: #fff; text-shadow: 0 0 18px rgba(232, 200, 116, 0.9); transform: scale(1.04); } 100% { transform: none; } }

/* result banners land with a pop */
.bc-result-banner:not(:empty) { animation: bannerPop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1); }
.result-banner.win, .result-banner.blackjack { animation: bannerPop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1); }
@keyframes bannerPop { from { transform: scale(0.85); opacity: 0; } to { transform: none; opacity: 1; } }

/* coin burst */
.fx-coins { position: absolute; z-index: 500; pointer-events: none; overflow: visible; }
.fx-coins i {
  position: absolute; top: 30%; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3b0, #e8c874 40%, #b8862e 75%, #6e4a10);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6), inset 0 0 0 2px rgba(122, 95, 37, 0.6);
  animation-name: coinPop; animation-timing-function: cubic-bezier(0.2, 0.6, 0.6, 1); animation-fill-mode: forwards;
}
@keyframes coinPop {
  0% { transform: translate(0, 0) scale(0.4) rotate(0); opacity: 0; }
  15% { opacity: 1; transform: translate(calc(var(--dx) * 0.4), -60px) scale(1) rotate(calc(var(--rot) * 0.3)); }
  100% { transform: translate(var(--dx), 140px) scale(0.8) rotate(var(--rot)); opacity: 0; }
}

/* chat lines slide in */
.chat-msg.fx-new { animation: chatIn 0.25s ease-out; }
@keyframes chatIn { from { transform: translateX(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* video poker win banner */
.fx-bigwin {
  position: fixed; inset: 0; z-index: 900; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: radial-gradient(ellipse 55% 55% at 50% 50%, rgba(201, 165, 75, 0.22), rgba(0, 0, 0, 0.82) 72%);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.25s ease, visibility 0.25s;
}
.fx-bigwin.active { opacity: 1; visibility: visible; }
.fx-bigwin-title {
  font-family: var(--f-display); font-size: clamp(3.4rem, 10vw, 8rem); line-height: 0.95; letter-spacing: 0.12em;
  background: linear-gradient(180deg, #fff 0%, var(--gold-pale) 25%, var(--gold-bright) 50%, var(--gold) 58%, var(--gold-bright) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.9)) drop-shadow(0 0 30px rgba(232, 200, 116, 0.55)) drop-shadow(0 14px 20px rgba(0, 0, 0, 0.9));
}
.fx-bigwin.active .fx-bigwin-title { animation: bigWinPulse 1.1s ease-in-out infinite alternate; }
@keyframes bigWinPulse { from { transform: scale(1); } to { transform: scale(1.04); } }
.fx-bigwin-amt {
  font-family: var(--f-mono); font-weight: 600; font-size: clamp(1.6rem, 3.6vw, 3rem);
  color: var(--cream); padding: 8px 34px; border-radius: 999px; background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--gold); box-shadow: 0 0 30px rgba(201, 165, 75, 0.35);
}
.fx-bigwin-amt::before { content: attr(data-hand); display: block; text-align: center; font-family: var(--f-body); font-size: 0.6rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 4px; }

@media (prefers-reduced-motion: reduce) {
  .card, .mini-card, .seat.turn, .playing-tag, .seat.empty .sit-btn, .phase-banner.fx-flash, .fx-coins i { animation: none !important; }
}

/* felt art: blended in as printing on the cloth, not a poster under the game */
.felt-table.has-felt-art { background-image:
    radial-gradient(ellipse at 50% 12%, rgba(255, 255, 255, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.45) 100%),
    radial-gradient(ellipse at 50% 20%, var(--felt) 0%, var(--felt-dark) 80%);
  background-blend-mode: screen, normal, normal; }
.felt-table.has-felt-art { isolation: isolate; }
.felt-table.has-felt-art::before {
  inset: 0; border: none; border-radius: 14px; z-index: -1;
  background: var(--felt-art) center / cover no-repeat;
  opacity: 0.6;
}
.felt-table.has-felt-art .pays-sub { display: none; }
.felt-table.has-felt-art .table-title { margin-bottom: 10px; }
/* plaques sit solid on top of any printing */
.has-felt-art .dealer-area, .has-felt-art .bc-hand-block, .has-felt-art .uth-community-area, .has-felt-art .table-corner-totals {
  background: linear-gradient(180deg, rgba(8, 7, 11, 0.82), rgba(8, 7, 11, 0.72));
}
/* dealer portrait on tables without a dealer plaque (baccarat, roulette) */
.dealer-portrait-float {
  display: block; position: absolute; top: 14px; right: 16px; z-index: 4;
  width: 76px; height: 76px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--gold); box-shadow: 0 0 0 4px #0a090d, 0 10px 24px rgba(0, 0, 0, 0.7);
}
.rl-wheel-area .dealer-portrait-float { top: 12px; left: 12px; right: auto; width: 60px; height: 60px; }
@media (max-width: 700px) { .dealer-portrait-float { display: none; } }
.dealer-portrait-float { left: auto; transform: none; }
.rl-wheel-area { position: relative; }
.rl-wheel-area .dealer-portrait-float { left: 12px; right: auto; }

/* ============================================================================
   PLAYING CARDS v2 (casino-fx.js tags each card with its suit and face rank)
   ========================================================================== */
:root {
  --suit-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 6C50 6 12 40 12 60c0 12 9 20 20 20 7 0 13-3 17-8-1 8-5 14-11 19h24c-6-5-10-11-11-19 4 5 10 8 17 8 11 0 20-8 20-20C88 40 50 6 50 6z'/%3E%3C/svg%3E");
  --suit-h: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 92C30 74 8 56 8 34 8 20 18 10 31 10c8 0 15 4 19 11 4-7 11-11 19-11 13 0 23 10 23 24 0 22-22 40-42 58z'/%3E%3C/svg%3E");
  --suit-d: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 4 88 50 50 96 12 50z'/%3E%3C/svg%3E");
  --suit-c: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 8c-11 0-19 8-19 18 0 4 1 7 3 10-2-1-5-2-8-2-11 0-20 8-20 19s9 19 20 19c7 0 13-4 17-9-1 9-5 16-11 22h36c-6-6-10-13-11-22 4 5 10 9 17 9 11 0 20-8 20-19s-9-19-20-19c-3 0-6 1-8 2 2-3 3-6 3-10 0-10-8-18-19-18z'/%3E%3C/svg%3E");
  --card-black: #1b1719;
  --card-red: #a8202a;
  --face-J: none; --face-Q: none; --face-K: none; --ace-spade: none;
}
.card.dressed, .mini-card.dressed {
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.025) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.02) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 30%, #fbf8f0 0%, #f2ecdd 70%, #e9e1cf 100%);
  border: 1px solid #c8bfa9;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 10px 18px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.5);
  color: var(--card-black);
}
.card.dressed.red, .mini-card.dressed.red { color: var(--card-red); }
/* the glyph is hidden, the shape is drawn from the suit mask in the card's colour */
.card.dressed .bc-pip, .card.dressed .bc-corner span, .card.dressed .bc-face span, .mini-card.dressed span {
  font-size: 0; line-height: 0; color: transparent; display: inline-block;
  background: currentColor; -webkit-mask: var(--suit) center / contain no-repeat; mask: var(--suit) center / contain no-repeat;
}
.card.dressed .bc-pip { background: var(--card-black); }
.card.dressed .bc-corner span { background: var(--card-black); }
.card.dressed .bc-face span { background: var(--card-black); }
.mini-card.dressed span { background: var(--card-black); }
.card.dressed.red .bc-pip, .card.dressed.red .bc-corner span, .card.dressed.red .bc-face span, .mini-card.dressed.red span { background: var(--card-red); }
.suit-s { --suit: var(--suit-s); } .suit-h { --suit: var(--suit-h); } .suit-d { --suit: var(--suit-d); } .suit-c { --suit: var(--suit-c); }

.card.dressed .bc-corner { font-family: var(--f-serif); font-weight: 700; font-size: 0.9rem; gap: 2px; top: 5px; left: 6px; }
.card.dressed .bc-corner span { width: 0.62rem; height: 0.62rem; }
.card.dressed .bc-pips { inset: 20px 12px; }
.card.dressed .bc-pip { width: 0.95rem; height: 0.95rem; }
.card.dressed .bc-pip-ace { width: 2.1rem; height: 2.1rem; }
/* the ace of spades gets the big ornament */
.card.dressed.suit-s .bc-pip-ace { width: 2.9rem; height: 2.9rem; }
.has-ace-art .card.dressed.suit-s .bc-pip-ace { -webkit-mask: none; mask: none; background: var(--ace-spade) center / contain no-repeat; width: 3.2rem; height: 3.2rem; }
.mini-card.dressed { gap: 3px; font-family: var(--f-serif); }
.mini-card.dressed span { width: 0.7rem; height: 0.7rem; }

/* court cards: a framed panel, mirrored rank, the suit in the middle; a portrait when art exists */
.card.dressed.face .bc-face { inset: 0; padding: 0; font-size: 0; }
.card.dressed.face .bc-face::before {
  inset: 19px 9px; border-radius: 3px;
  border: 1px solid rgba(201, 165, 75, 0.9);
  box-shadow: inset 0 0 0 2px #f6f1e4, inset 0 0 0 3px rgba(201, 165, 75, 0.5);
  background:
    linear-gradient(135deg, rgba(201, 165, 75, 0.18) 0%, transparent 45%, transparent 55%, rgba(201, 165, 75, 0.18) 100%),
    repeating-linear-gradient(45deg, rgba(168, 32, 42, 0.06) 0 4px, transparent 4px 9px),
    #f3ecdc;
}
.card.dressed.face .bc-face::after {
  content: attr(data-rank); position: absolute; inset: 19px 9px; display: flex; align-items: center; justify-content: center;
  font-family: var(--f-serif); font-weight: 700; font-size: 1.9rem; color: currentColor; opacity: 0.85;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}
.card.dressed.face .bc-face span { position: absolute; left: 50%; top: 50%; width: 0.9rem; height: 0.9rem; transform: translate(-50%, -50%); z-index: 2; opacity: 0; }
.has-face-art .card.dressed.face-J .bc-face::before { background: var(--face-J) center / cover no-repeat; }
.has-face-art .card.dressed.face-Q .bc-face::before { background: var(--face-Q) center / cover no-repeat; }
.has-face-art .card.dressed.face-K .bc-face::before { background: var(--face-K) center / cover no-repeat; }
.has-face-art .card.dressed.face .bc-face::after { display: none; }
/* small hole cards in hold'em seats */
.seat-hole .card.dressed .bc-corner { font-size: 0.62rem; top: 3px; left: 4px; }
.seat-hole .card.dressed .bc-corner span { width: 0.45rem; height: 0.45rem; }
.seat-hole .card.dressed .bc-pips { inset: 12px 6px; }
.seat-hole .card.dressed .bc-pip { width: 0.5rem; height: 0.5rem; }
.seat-hole .card.dressed .bc-pip-ace, .seat-hole .card.dressed.suit-s .bc-pip-ace { width: 1.2rem; height: 1.2rem; }
.seat-hole .card.dressed.face .bc-face::before, .seat-hole .card.dressed.face .bc-face::after { inset: 12px 6px; }
.seat-hole .card.dressed.face .bc-face::after { font-size: 1rem; }
/* art swaps fade in instead of popping */
.has-img img, .card-art, .dealer-portrait, .table-chips.has-img { animation: artIn 0.45s ease both; }
@keyframes artIn { from { opacity: 0; } to { opacity: 1; } }
/* standard pip layouts (casino-fx.js rebuilds the pips as positioned spans) */
.card.dressed .bc-pips.pips-v2 { display: block; inset: 17px 8px; }
.card.dressed .bc-pips.pips-v2 .bc-pip { position: absolute; transform: translate(-50%, -50%); width: 0.95rem; height: 0.95rem; }
.card.dressed .bc-pips.pips-v2 .bc-pip.flip { transform: translate(-50%, -50%) rotate(180deg); }
.seat-hole .card.dressed .bc-pips.pips-v2 { inset: 11px 5px; }
.seat-hole .card.dressed .bc-pips.pips-v2 .bc-pip { width: 0.5rem; height: 0.5rem; }
.bc-card-slot .card.dressed .bc-pips.pips-v2 { inset: 14px 7px; }
.bc-card-slot .card.dressed .bc-pips.pips-v2 .bc-pip { width: 0.78rem; height: 0.78rem; }
.vp-card-slot .card.dressed .bc-pips.pips-v2 { inset: 20px 10px; }
.vp-card-slot .card.dressed .bc-pips.pips-v2 .bc-pip { width: 1.05rem; height: 1.05rem; }
/* the second index belongs in the bottom-right corner, rotated */
.card.dressed .bc-corner.bc-corner-br { top: auto; left: auto; bottom: 5px; right: 6px; }
.seat-hole .card.dressed .bc-corner.bc-corner-br { top: auto; left: auto; bottom: 3px; right: 4px; }
