/* =====================================================================
   קזינו המאוחדת — עיצוב
   ===================================================================== */
:root {
  --gold: #e6b647;
  --gold-2: #ffd36b;
  --red: #cf2033;
  --bg: #0b0507;
  --glass: rgba(18, 8, 12, 0.82);
  --line: rgba(230, 182, 71, 0.28);
  --txt: #f7efe6;
  --dim: #bfaea2;
  --green: #7dffa8;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--txt);
  font-family: Heebo, -apple-system, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button {
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
a {
  color: inherit;
  text-decoration: none;
}
#floor {
  position: fixed;
  inset: 0;
  display: block;
  touch-action: none;
}
.display {
  font-family: "Secular One", Heebo, sans-serif;
}

/* ===================== כפתורים ===================== */
.btn {
  border: 0;
  border-radius: 14px;
  padding: 12px 20px;
  font-weight: 800;
  font-size: 16px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition:
    transform 0.12s,
    box-shadow 0.2s,
    background 0.2s;
}
.btn small {
  font-weight: 400;
  font-size: 12px;
  opacity: 0.8;
}
.btn:not(:disabled):hover {
  transform: translateY(-2px);
}
.btn:not(:disabled):active {
  transform: translateY(1px) scale(0.98);
}
.btn.gold {
  color: #2a1a00;
  background: linear-gradient(180deg, #ffe08a, #e6b647 55%, #b8862a);
  box-shadow:
    0 6px 0 #7a5614,
    0 10px 24px rgba(230, 182, 71, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn.gold:not(:disabled):active {
  box-shadow: 0 2px 0 #7a5614;
}
.btn.ghost {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
}
.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}
.btn.act {
  min-width: 110px;
  color: #fff;
  background: linear-gradient(180deg, #a3162a, #6d0c19);
  box-shadow:
    0 5px 0 #3f050d,
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn.act.sel {
  outline: 3px solid var(--gold-2);
}
.btn.big {
  font-size: 19px;
  padding: 15px 34px;
}
.link {
  background: none;
  border: 0;
  color: var(--gold);
  font-weight: 700;
  text-decoration: underline;
  padding: 4px;
}

/* ===================== סרגל עליון ===================== */
.hud {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  padding-top: max(10px, env(safe-area-inset-top));
  background: linear-gradient(180deg, rgba(10, 4, 6, 0.92), rgba(10, 4, 6, 0));
  pointer-events: none;
}
.hud > * {
  pointer-events: auto;
}
.hud-back {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.hud-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hud-logo img {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 10px rgba(230, 182, 71, 0.5));
}
.hud-logo b {
  display: block;
  font-family: "Secular One", Heebo, sans-serif;
  font-size: 21px;
  color: var(--gold-2);
  text-shadow: 0 0 14px rgba(255, 190, 70, 0.6);
  line-height: 1;
}
.hud-logo small {
  font-size: 10px;
  letter-spacing: 3px;
  color: #ff8fa3;
}
.hud-right {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hud-online {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--dim);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
}
.hud-online i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: blink 2s infinite;
}
.hud-online b {
  color: var(--txt);
}
.hud-wallet {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(230, 182, 71, 0.6);
  background: linear-gradient(180deg, #2b1a05, #170d02);
  box-shadow: 0 0 18px rgba(230, 182, 71, 0.25);
  font-size: 19px;
  font-weight: 900;
  color: var(--gold-2);
  direction: ltr;
}
.hud-wallet .coin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff1b8, #e6b647 55%, #9c6f17);
  color: #4a3000;
  font-size: 15px;
  box-shadow: inset 0 0 0 2px rgba(122, 86, 20, 0.6);
}
.hud-btn {
  height: 40px;
  min-width: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.5);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}
.hud-me {
  padding: 0;
  width: 42px;
  overflow: hidden;
  justify-content: center;
}
.hud-me img {
  width: 40px;
  height: 80px;
  margin-top: 38px;
}
body.at-table .hud,
body.at-table .hint,
body.at-table .net-banner {
  display: none;
}

.hint {
  position: fixed;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--dim);
  white-space: nowrap;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  transition: 0.5s;
  pointer-events: none;
}
.hint.gone {
  opacity: 0;
  transform: translate(-50%, 20px);
}
.hint .kb {
  color: var(--gold);
}
.net-banner {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  padding: 8px 16px;
  border-radius: 12px;
  background: rgba(80, 30, 0, 0.9);
  border: 1px solid #ffb24a;
  font-size: 13px;
  max-width: calc(100% - 24px);
  text-align: center;
}

/* ===================== כרטיס שולחן ===================== */
.sheet {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 14px;
  width: min(500px, calc(100% - 20px));
  max-height: calc(100% - 90px);
  overflow: auto;
  transform: translate(-50%, 30px);
  opacity: 0;
  transition: 0.25s;
  padding: 20px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 80% 0%, rgba(207, 32, 51, 0.25), transparent 60%),
    linear-gradient(180deg, rgba(30, 12, 18, 0.97), rgba(14, 6, 10, 0.97));
  border: 1px solid rgba(230, 182, 71, 0.45);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(230, 182, 71, 0.12);
}
.sheet.on {
  transform: translate(-50%, 0);
  opacity: 1;
}
.sheet-x {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}
.sheet-head {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-inline-end: 40px;
}
.sheet-ic {
  font-size: 34px;
  width: 62px;
  height: 62px;
  flex: none;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.45);
  border: 2px solid var(--c);
  box-shadow: 0 0 18px var(--c);
}
.sheet-head h3 {
  margin: 0;
  font-family: "Secular One", Heebo, sans-serif;
  font-size: 23px;
  color: var(--gold-2);
}
.sheet-head p {
  margin: 4px 0 0;
  color: var(--dim);
  font-size: 14px;
}
.sheet-status {
  margin: 14px 0;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 14px;
  color: var(--dim);
}
.sheet-status.live {
  color: var(--green);
  background: rgba(125, 255, 168, 0.08);
}
.buyin {
  display: grid;
  gap: 6px;
  text-align: center;
}
.buyin > span {
  font-weight: 700;
}
.buyin small {
  color: var(--dim);
}
.amt-big {
  font-size: 40px;
  font-weight: 900;
  color: var(--gold-2);
  direction: ltr;
  text-shadow: 0 0 20px rgba(255, 190, 70, 0.4);
}
input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
  height: 28px;
}
.sheet-btns {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sheet-empty {
  text-align: center;
  padding: 18px;
  font-size: 17px;
  line-height: 1.6;
}
.sheet-rules,
.rules ul {
  font-size: 14px;
  line-height: 1.6;
  color: var(--dim);
}
.sheet-rules ul,
.rules ul {
  padding-inline-start: 18px;
  margin: 6px 0;
}
.sheet-rules b,
.rules b {
  color: var(--txt);
}

/* ===================== הצעת בירה מהמלצרית ===================== */
.offer {
  position: fixed;
  z-index: 32;
  left: 50%;
  bottom: 70px;
  transform: translateX(-50%);
  width: min(420px, calc(100% - 20px));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 12px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(40, 14, 20, 0.97), rgba(16, 6, 10, 0.97));
  border: 1px solid rgba(230, 182, 71, 0.6);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  animation: toastIn 0.35s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.offer img {
  width: 64px;
  height: 86px;
  object-fit: cover;
  object-position: 50% 0;
  flex: none;
}
.offer b {
  color: var(--gold-2);
}
.offer p {
  margin: 2px 0 8px;
  font-size: 15px;
}
.offer-btns {
  display: flex;
  gap: 8px;
}
.offer-btns .btn {
  padding: 8px 14px;
  font-size: 14px;
}
body.at-table .offer {
  display: none;
}

/* ===================== רשימת שולחנות ===================== */
.drawer,
.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}
.drawer-card,
.modal-card {
  width: min(520px, 100%);
  max-height: 100%;
  overflow: auto;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, #1e0c12, #0e060a);
  border: 1px solid rgba(230, 182, 71, 0.45);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
  position: relative;
}
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.drawer-head h3 {
  margin: 0;
  font-family: "Secular One", Heebo, sans-serif;
  color: var(--gold-2);
}
.drawer-head .sheet-x {
  position: static;
}
.tbl-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 12px;
  text-align: start;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-inline-start: 4px solid var(--c);
  background: rgba(255, 255, 255, 0.04);
}
.tbl-row:hover {
  background: rgba(255, 255, 255, 0.09);
}
.tbl-row .ic {
  font-size: 26px;
}
.tbl-row b {
  display: block;
}
.tbl-row small {
  color: var(--dim);
}
.tbl-row small.live {
  color: var(--green);
}
.tbl-row .go {
  margin-inline-start: auto;
  color: var(--gold);
  font-size: 20px;
}

/* ===================== פרופיל ===================== */
.modal-card {
  width: min(680px, 100%);
}
.modal-card h2 {
  margin: 0 0 6px;
  font-family: "Secular One", Heebo, sans-serif;
  color: var(--gold-2);
  font-size: 26px;
}
.pf-hero {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
}
.pf-hero img {
  width: 64px;
  filter: drop-shadow(0 0 14px rgba(230, 182, 71, 0.6));
}
.pf-hero p {
  margin: 0;
  color: var(--dim);
}
.pf-hero b {
  color: var(--gold-2);
}
.pf-grid {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  margin: 12px 0 18px;
}
.pf-prev {
  position: relative;
  border-radius: 18px;
  background: radial-gradient(ellipse at 50% 85%, #6b1220, #2a0710 70%);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 10px;
  min-height: 280px;
}
.pf-prev img {
  width: 120px;
  height: 240px;
  position: relative;
  z-index: 1;
  animation: breathe 3s ease-in-out infinite;
}
.pf-floor {
  position: absolute;
  bottom: 22px;
  width: 110px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
}
.pf-opts {
  display: grid;
  gap: 10px;
  align-content: start;
}
.pf-name {
  display: grid;
  gap: 4px;
  font-weight: 700;
}
.pf-name input {
  font: inherit;
  font-size: 17px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.4);
  color: var(--txt);
}
.pf-name input.err {
  border-color: #ff4d6d;
  box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.25);
}
.pf-row {
  display: grid;
  gap: 4px;
}
.pf-row > span {
  font-size: 13px;
  color: var(--dim);
}
.sw {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sw button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: var(--c);
}
.sw button.on {
  border-color: var(--gold-2);
  box-shadow: 0 0 0 2px var(--gold-2);
}
.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.seg button {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
}
.seg button.on {
  background: var(--gold);
  color: #2a1a00;
  font-weight: 800;
}
.pf-go {
  width: 100%;
}
.pf-card {
  width: min(860px, 100%);
}
.pf-card .pf-grid {
  grid-template-columns: 220px 1fr;
}
.pf-prev {
  align-content: center;
  gap: 10px;
}
.pf-prev img {
  width: 150px;
  height: 300px;
}
.pf-rands {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 6px;
}
.pf-rands .btn {
  padding: 6px 10px;
  font-size: 13px;
}
.pf-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.pf-tabs button {
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 700;
  font-size: 14px;
}
.pf-tabs button.on {
  border-color: var(--gold);
  background: rgba(230, 182, 71, 0.16);
  color: var(--gold-2);
}
.pf-pane {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 280px;
  max-height: 46vh;
  overflow: auto;
  padding-inline-end: 4px;
}
.pf-num {
  width: 90px;
  font: inherit;
  font-size: 17px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.4);
  color: var(--txt);
}
.pf-note {
  margin: 0;
  color: var(--dim);
  font-size: 13px;
}
.pf-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 8px;
}
.pf-ph {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 12px;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.05);
}
.pf-ph img,
.pf-ph .none {
  width: 64px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  font-size: 34px;
  background: rgba(0, 0, 0, 0.3);
}
.pf-ph small {
  font-size: 12px;
  color: var(--dim);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pf-ph.on {
  border-color: var(--gold-2);
  background: rgba(230, 182, 71, 0.15);
}

/* ===================== הודעות ===================== */
#toasts {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: grid;
  gap: 8px;
  justify-items: center;
  pointer-events: none;
  width: min(440px, calc(100% - 20px));
}
.toast {
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(20, 10, 14, 0.95);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  text-align: center;
  font-size: 15px;
  animation: toastIn 0.35s cubic-bezier(0.2, 1.4, 0.4, 1);
  transition: 0.4s;
}
.toast small {
  color: var(--dim);
}
.toast.win {
  border-color: var(--gold-2);
  background: linear-gradient(180deg, #3a2a05, #1d1302);
  color: var(--gold-2);
  font-size: 19px;
}
.toast.lose {
  border-color: rgba(255, 77, 109, 0.5);
}
.toast.out {
  opacity: 0;
  transform: translateY(-10px);
}

.loading {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  background: var(--bg);
  transition: 0.6s;
}
.loading img {
  width: 90px;
  animation: breathe 1.6s infinite;
}
.loading.gone {
  opacity: 0;
  visibility: hidden;
}
.nojs {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
}

/* =====================================================================
   מסך השולחן
   ===================================================================== */
.tview {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr 230px;
  grid-template-rows: auto auto 1fr auto;
  grid-template-areas:
    "top top"
    "say say"
    "stage side"
    "ctl ctl";
  background:
    radial-gradient(ellipse at 50% 120%, rgba(207, 32, 51, 0.35), transparent 60%),
    radial-gradient(ellipse at 50% -10%, rgba(230, 182, 71, 0.18), transparent 50%),
    linear-gradient(180deg, #1a070c, #0b0507);
  animation: fadeIn 0.4s;
}
.tv-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.tv-lights {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 200, 120, 0.22) 0 2px, transparent 40px),
    radial-gradient(circle at 30% 8%, rgba(255, 120, 150, 0.2) 0 2px, transparent 50px),
    radial-gradient(circle at 70% 12%, rgba(255, 200, 120, 0.22) 0 2px, transparent 46px),
    radial-gradient(circle at 88% 22%, rgba(120, 200, 255, 0.18) 0 2px, transparent 50px),
    radial-gradient(circle at 50% 4%, rgba(255, 220, 160, 0.3) 0 3px, transparent 70px);
  animation: twinkle 5s ease-in-out infinite alternate;
}
.tv-crowd img {
  position: absolute;
  top: 9%;
  width: calc(70px * var(--s));
  height: calc(140px * var(--s));
  filter: blur(1.6px) brightness(0.55) saturate(0.8);
  animation: breathe 3.2s ease-in-out infinite;
  animation-delay: var(--d);
}
.tv-walker {
  position: absolute;
  top: 12%;
  width: 66px;
  height: 132px;
  filter: blur(1px) brightness(0.65);
  animation: walkAcross 26s linear infinite;
}
.tv-top {
  grid-area: top;
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  padding-top: max(10px, env(safe-area-inset-top));
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
}
.tv-btn {
  height: 40px;
  min-width: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.5);
  font-weight: 800;
  font-size: 15px;
}
.tv-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tv-ic {
  font-size: 28px;
}
.tv-title b {
  display: block;
  font-family: "Secular One", Heebo, sans-serif;
  font-size: 20px;
  color: var(--gold-2);
  line-height: 1.1;
}
.tv-title small {
  color: var(--dim);
  font-size: 12px;
}
.tv-net .net {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}
.tv-net .net.ok {
  color: var(--green);
}
.tv-net .net.wait {
  color: var(--gold-2);
}
.tv-money {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px 4px 14px;
  border-radius: 999px;
  border: 1px solid rgba(230, 182, 71, 0.5);
  background: rgba(30, 18, 4, 0.8);
}
.tv-money div {
  display: grid;
  line-height: 1.1;
  text-align: center;
}
.tv-money small {
  font-size: 10px;
  color: var(--dim);
}
.tv-money b {
  color: var(--gold-2);
  font-size: 17px;
  direction: ltr;
}
.tv-topup {
  height: 32px;
  min-width: 32px;
  padding: 0;
  font-size: 20px;
  color: var(--gold-2);
}
.tv-stage {
  grid-area: stage;
  position: relative;
  overflow: hidden;
  min-height: 0;
}
.scene {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center;
}
.tv-side {
  grid-area: side;
  position: relative;
  z-index: 3;
  margin: 8px 0 8px 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: auto;
  font-size: 13px;
}
.tv-side h4 {
  margin: 4px 0 8px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 1px;
}
.person {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 10px;
}
.person.me {
  background: rgba(230, 182, 71, 0.12);
}
.person img {
  width: 26px;
  height: 52px;
  margin: -12px 0 -14px;
  object-fit: cover;
  object-position: top;
  height: 30px;
}
.person b {
  margin-inline-start: auto;
  color: var(--gold-2);
  direction: ltr;
}
.tv-log div {
  padding: 4px 0;
  color: var(--dim);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.tv-log div:first-child {
  color: var(--txt);
}
.tv-controls {
  grid-area: ctl;
  position: relative;
  z-index: 5;
  padding: 12px 14px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.55));
  border-top: 1px solid var(--line);
  min-height: 84px;
}
.tv-controls .ctl {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
}
.tv-controls[data-mode="bet"] .c-bet,
.tv-controls[data-mode="play"] .c-play,
.tv-controls[data-mode="wait"] .c-wait,
.tv-controls[data-mode="idle"] .c-idle {
  display: flex;
  animation: fadeUp 0.25s;
}
.ctl-info {
  font-size: 15px;
  color: var(--dim);
}
.ctl[data-hint]::before {
  content: attr(data-hint);
  flex-basis: 100%;
  text-align: center;
  color: var(--gold-2);
  font-weight: 800;
  font-size: 16px;
}
.ctl-info b {
  color: var(--gold-2);
  font-size: 18px;
}
.ctl-info small {
  color: var(--dim);
}
.ctl-info .warn {
  color: #ff8fa3;
}
.ctl-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.wait-txt {
  color: var(--dim);
  font-size: 16px;
  text-align: center;
}
.chip-bar {
  display: flex;
  gap: 8px;
}
.chip-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background:
    radial-gradient(circle, var(--c) 0 52%, transparent 53%),
    repeating-conic-gradient(var(--c) 0 20deg, #fff 20deg 40deg);
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.5),
    0 0 0 2px rgba(0, 0, 0, 0.35),
    inset 0 0 0 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.12s;
}
.chip-btn span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: auto;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.65);
  font-weight: 900;
  font-size: 14px;
  color: #fff;
  text-shadow: 0 1px 2px #000;
}
.chip-btn[data-v="1"] span {
  color: #222;
  text-shadow: none;
  border-color: rgba(0, 0, 0, 0.35);
}
.chip-btn:hover {
  transform: translateY(-4px) rotate(-8deg);
}
.chip-btn:active {
  transform: translateY(1px) scale(0.95);
}
.tv-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.6);
}
.tv-dialog {
  width: min(440px, 100%);
  max-height: 100%;
  overflow: auto;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, #1e0c12, #0e060a);
  border: 1px solid rgba(230, 182, 71, 0.45);
  text-align: center;
}
.tv-dialog.rules {
  text-align: start;
}
.tv-dialog h3 {
  margin: 0 0 8px;
  font-family: "Secular One", Heebo, sans-serif;
  color: var(--gold-2);
}
.tv-dialog p {
  color: var(--dim);
  margin: 0;
}
.tv-dialog-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
}

/* ===== הדילר ===== */
.dealer {
  position: absolute;
  left: 50%;
  top: -2%;
  z-index: 1;
  transform: translateX(-50%);
  width: 124px;
}
.dealer img {
  width: 124px;
  height: 248px;
  display: block;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6));
  animation: breathe 3.4s ease-in-out infinite;
  transform-origin: bottom center;
}
.dealer.move img {
  animation: dealMove 0.35s ease-out;
}
/* הודעות הדילר — שורה משלהן מעל השולחן, כדי שלא יסתירו קלפים או שחקנים */
.tv-say {
  grid-area: say;
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px 4px;
}
.tv-say-av {
  width: 30px;
  height: 30px;
  object-fit: cover;
  object-position: 50% 8%;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: #2a0e14;
}
.dealer-say {
  max-width: min(720px, calc(100% - 50px));
  padding: 7px 16px;
  border-radius: 999px;
  background: #fff8e8;
  color: #2a1a00;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.35;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  opacity: 0.55;
}
.dealer-say:empty {
  visibility: hidden;
}
.dealer-say.pop {
  animation: sayStay 0.45s cubic-bezier(0.2, 1.5, 0.4, 1) forwards;
}
@keyframes sayStay {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.shoe {
  position: absolute;
  top: 12%;
  left: 74%;
  z-index: 3;
  width: 72px;
  height: 64px;
  border-radius: 8px 8px 14px 14px;
  background: linear-gradient(180deg, #2a2a30, #0f0f12);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.5),
    inset 0 0 0 2px rgba(230, 182, 71, 0.5);
}
.shoe i {
  position: absolute;
  top: 8px;
  left: 10px;
  width: 50px;
  height: 36px;
  border-radius: 4px;
  background: repeating-linear-gradient(45deg, #9b1022 0 4px, #c9283a 4px 8px);
  border: 2px solid #fff;
}
.shoe i:nth-child(2) {
  top: 12px;
}
.shoe i:nth-child(3) {
  top: 16px;
}
.g-race .shoe,
.g-race .dealer {
  display: none;
}

/* ===== הבד ===== */
.felt {
  position: absolute;
  z-index: 2;
  border: 18px solid #5a3417;
  background: radial-gradient(ellipse at 50% 30%, #24a85c, #0e5a30 55%, #08331b);
  box-shadow:
    0 0 0 3px #c9a43f,
    0 0 0 6px #2a1408,
    0 30px 60px rgba(0, 0, 0, 0.6),
    inset 0 0 60px rgba(0, 0, 0, 0.45),
    inset 0 0 0 3px rgba(230, 182, 71, 0.35);
}
.felt-print {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(255, 220, 140, 0.32);
  white-space: nowrap;
  pointer-events: none;
}
.felt-print b {
  display: block;
  font-family: "Secular One", Heebo, sans-serif;
  font-size: 26px;
  letter-spacing: 3px;
}
.felt-print span {
  font-size: 15px;
}
.felt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../favicon.svg") center 62% / 110px no-repeat;
  opacity: 0.07;
  pointer-events: none;
}
.bj-felt {
  left: 3%;
  right: 3%;
  top: 25%;
  height: 74%;
  border-top-width: 10px;
  border-radius: 6px 6px 50% 50% / 6px 6px 100% 100%;
}
.bj-felt .felt-print {
  top: 34%;
}
.pk-felt {
  left: 5%;
  right: 5%;
  top: 22%;
  bottom: 13%;
  border-radius: 999px;
}
.pk-felt .felt-print {
  top: 62%;
}
.hilo-felt {
  left: 8%;
  right: 8%;
  top: 24%;
  bottom: 10%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 30%, #5a44c8, #2b1d7a 55%, #150d40);
}
.hilo-felt .felt-print {
  top: 49%;
}
.race-felt {
  left: 3%;
  right: 3%;
  top: 6%;
  bottom: 24%;
  border-radius: 26px;
  border-width: 14px;
  background: #1a0f08;
  overflow: hidden;
}
.race-felt::after {
  display: none;
}
.race-cv {
  width: 100%;
  height: 100%;
  display: block;
}
.race-hist {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  font-size: 12px;
  color: var(--dim);
}
.race-hist:empty {
  display: none;
}
.race-hist i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--m) 40%);
}
.portrait .bj-felt {
  top: 22%;
  height: 72%;
  left: 2%;
  right: 2%;
}
.portrait .pk-felt {
  top: 20%;
  bottom: 18%;
  left: 7%;
  right: 7%;
  border-radius: 46% / 30%;
}
.portrait .race-felt {
  bottom: 30%;
}
.portrait .hilo-felt {
  top: 22%;
  bottom: 14%;
  left: 4%;
  right: 4%;
}

/* ===== קלפים ===== */
.cards {
  display: flex;
  direction: ltr;
  perspective: 900px;
}
.pc {
  position: relative;
  width: 64px;
  height: 90px;
  flex: none;
}
.pc + .pc {
  margin-left: -28px;
}
.pc-in {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateY(180deg);
  transition: transform 0.5s cubic-bezier(0.3, 1.3, 0.5, 1);
}
.pc.up .pc-in {
  transform: none;
}
.pc-f,
.pc-b {
  position: absolute;
  inset: 0;
  border-radius: 7px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.2);
}
.pc-f {
  background: linear-gradient(160deg, #fff, #f1ece2);
  color: #15151a;
}
.pc.red .pc-f {
  color: #c8102e;
}
.pc-b {
  transform: rotateY(180deg);
  background:
    radial-gradient(circle, rgba(230, 182, 71, 0.9) 0 7px, transparent 8px),
    repeating-linear-gradient(45deg, #8f0f20 0 5px, #b51c30 5px 10px);
  border: 3px solid #fff;
}
.ci {
  position: absolute;
  top: 4px;
  left: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
}
.ci i {
  font-style: normal;
  font-size: 14px;
}
.ci.b {
  top: auto;
  left: auto;
  bottom: 4px;
  right: 6px;
  transform: rotate(180deg);
}
.cs {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 34px;
}
.pc.fly {
  animation: fly 0.5s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
.pc.hl .pc-f {
  box-shadow:
    0 0 0 3px var(--gold-2),
    0 0 20px var(--gold-2);
}
.cards.big .pc {
  width: 96px;
  height: 134px;
}
.cards.big .ci {
  font-size: 24px;
}
.cards.big .cs {
  font-size: 54px;
}
.cards.big .pc + .pc {
  margin-left: 8px;
}

/* ===== מושבים ===== */
.seat {
  position: absolute;
  z-index: 4;
  transform: translate(-50%, -50%);
  width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.3s;
}
.seat-av {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: visible;
}
.seat-av::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #4a1a24, #1a080c);
  border: 3px solid rgba(230, 182, 71, 0.7);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}
.seat-av img {
  position: absolute;
  left: 50%;
  top: 3px;
  width: 62px;
  height: 124px;
  transform: translateX(-50%);
  clip-path: inset(0 0 50% 0 round 0 0 30px 30px);
  animation: breathe 3.5s ease-in-out infinite;
}
.seat-av .ring {
  position: absolute;
  inset: -6px;
  width: 80px;
  height: 80px;
  transform: rotate(-90deg);
  pointer-events: none;
}
.seat-av .ring circle {
  fill: none;
  stroke: var(--gold-2);
  stroke-width: 3.5;
  stroke-dasharray: 125.7;
  stroke-dashoffset: 125.7;
  stroke-linecap: round;
}
.seat-av .ring.run circle {
  animation: ring linear forwards;
  animation-duration: inherit;
}
.seat-plate {
  margin-top: -6px;
  position: relative;
  z-index: 1;
  min-width: 96px;
  padding: 4px 10px;
  border-radius: 12px;
  text-align: center;
  background: rgba(8, 4, 6, 0.88);
  border: 1px solid rgba(230, 182, 71, 0.4);
  line-height: 1.15;
}
.seat-plate .nm {
  display: block;
  font-size: 13px;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.seat-plate .stk {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-2);
  direction: ltr;
  display: inline-block;
}
.seat.empty {
  opacity: 0.4;
}
.seat.empty .seat-av::before {
  border-style: dashed;
  background: rgba(0, 0, 0, 0.35);
}
.seat.empty .seat-av img,
.seat.empty .bj-spot {
  display: none;
}
.seat.empty .seat-plate {
  background: transparent;
  border-color: transparent;
}
.seat.me .seat-av::before {
  border-color: var(--gold-2);
  box-shadow:
    0 0 0 3px rgba(255, 211, 107, 0.25),
    0 0 22px rgba(255, 211, 107, 0.45);
}
.seat.me .seat-plate {
  border-color: var(--gold-2);
}
.seat.turn .seat-av::before {
  animation: turnGlow 1s ease-in-out infinite alternate;
}
.seat.out {
  opacity: 0.5;
  filter: grayscale(0.7);
}
.seat.gone {
  opacity: 0.3;
}
.seat.won .seat-av::before {
  border-color: var(--gold-2);
  animation: winGlow 0.8s ease-in-out infinite alternate;
}
.seat.lost .seat-plate {
  border-color: rgba(255, 77, 109, 0.6);
}
.seat-say {
  position: absolute;
  bottom: calc(100% + 2px);
  z-index: 6;
  padding: 5px 11px;
  border-radius: 12px;
  background: #fff8e8;
  color: #2a1a00;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}
.seat-say.pop {
  animation: say 2.8s forwards;
}
.chips {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 52px;
}
.chips i {
  position: absolute;
  left: 0;
  bottom: calc(var(--i) * 4px + 16px);
  width: 38px;
  height: 14px;
  border-radius: 50%;
  background: var(--c);
  border: 2px dashed rgba(255, 255, 255, 0.75);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
  animation: chipDrop 0.3s backwards;
  animation-delay: calc(var(--i) * 0.03s);
}
.chips b {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  padding: 0 7px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--gold-2);
  white-space: nowrap;
  direction: ltr;
}

/* ===== בלאק ג'ק ===== */
.dealer-hand {
  position: absolute;
  top: 29%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dealer-hand .total,
.bj-hand .tot {
  min-width: 30px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  text-align: center;
}
.dealer-hand .total:empty,
.bj-hand .tot:empty,
.bj-hand .res:empty {
  display: none;
}
.bj-spot {
  position: absolute;
  bottom: calc(100% - 4px);
  min-width: 46px;
  min-height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(255, 220, 140, 0.35);
}
.bj-hands {
  position: absolute;
  bottom: calc(100% + 48px);
  display: flex;
  gap: 14px;
}
.bj-hand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  transition: 0.2s;
}
.bj-hand .cards .pc + .pc {
  margin-left: -40px;
  margin-top: -6px;
}
.bj-hand.active {
  background: rgba(255, 211, 107, 0.16);
  box-shadow: 0 0 0 2px var(--gold-2);
}
.bj-hand .res {
  position: absolute;
  top: 30%;
  padding: 3px 10px;
  border-radius: 8px;
  font-weight: 900;
  font-size: 14px;
  background: #333;
  white-space: nowrap;
  animation: pop 0.4s;
}
.r-win .res,
.r-bj .res {
  background: linear-gradient(180deg, #ffe08a, #c9962a);
  color: #2a1a00;
}
.r-bust .res,
.r-lose .res {
  background: #8f0f20;
}
.r-push .res {
  background: #555;
}

/* ===== גבוה־נמוך ===== */
.hilo-mid {
  position: absolute;
  top: 31%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 36px;
}
.hilo-slot {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
}
.hilo-slot small {
  color: rgba(255, 230, 180, 0.7);
  font-size: 13px;
}
.hl-ghost {
  width: 96px;
  height: 134px;
  border-radius: 9px;
  border: 3px dashed rgba(255, 230, 180, 0.35);
  display: grid;
  place-items: center;
}
.hl-ghost::after {
  content: "?";
  font-size: 50px;
  color: rgba(255, 230, 180, 0.35);
  font-weight: 900;
}
.hilo-arrows {
  display: grid;
  gap: 4px;
  font-size: 34px;
  color: var(--gold-2);
  text-shadow: 0 0 14px rgba(255, 190, 70, 0.7);
  animation: breathe 1.6s infinite;
}
.hilo-hist {
  position: absolute;
  top: 66%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 4px;
  direction: ltr;
}
.hilo-hist span {
  padding: 2px 6px;
  border-radius: 5px;
  background: #fff;
  color: #111;
  font-weight: 800;
  font-size: 12px;
}
.hilo-hist span.red {
  color: #c8102e;
}
.hilo-felt .felt-print {
  display: none;
}
.hilo-ladder {
  position: absolute;
  top: 59%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
  white-space: nowrap;
}
.hilo-ladder span {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--gold-2);
  font-weight: 800;
  font-size: 14px;
}
.streak {
  position: absolute;
  top: -8px;
  inset-inline-end: -14px;
  font-style: normal;
  font-weight: 900;
  font-size: 13px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #b3262e;
  color: #fff;
  animation: pop 0.4s;
}
.pk-hand.lose {
  color: var(--dim);
}
.pc.hl {
  transform: translateY(-8px);
  transition: transform 0.3s;
}
.btn.act small {
  color: var(--gold-2);
  opacity: 1;
  font-weight: 800;
}

/* ===== מירוץ ===== */
.g-race .seat-av {
  width: 56px;
  height: 56px;
}
.g-race .seat-av img {
  width: 52px;
  height: 104px;
}
.g-race .seat-av .ring {
  display: none;
}
.g-race .seat {
  width: 100px;
}
.race-bets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
  margin-top: 3px;
  max-width: 110px;
}
.race-bets span {
  font-size: 11px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--m);
  color: #fff;
  text-shadow: 0 1px 2px #000;
  direction: ltr;
}
.race-bets span.w {
  outline: 2px solid var(--gold-2);
  animation: pop 0.5s;
}
.marble-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.marble-btn {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas: "dot name" "dot odd";
  align-items: center;
  gap: 0 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  text-align: start;
}
.marble-btn i {
  grid-area: dot;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--m) 35%, #000 130%);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}
.marble-btn span {
  grid-area: name;
  font-weight: 800;
  font-size: 14px;
}
.marble-btn small {
  grid-area: odd;
  color: var(--gold-2);
  font-size: 12px;
}
.marble-btn b {
  position: absolute;
  top: -8px;
  inset-inline-end: -6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--gold);
  color: #2a1a00;
  font-size: 11px;
  direction: ltr;
}
.marble-btn b:empty {
  display: none;
}
.marble-btn.sel {
  border-color: var(--m);
  box-shadow: 0 0 14px var(--m);
}
.marble-btn:not(:disabled):hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ===== פוקר ===== */
.pk-board {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 368px;
  height: 90px;
}
.pk-slots {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 12px;
  direction: ltr;
}
.pk-slots i {
  width: 64px;
  height: 90px;
  border-radius: 8px;
  border: 2px dashed rgba(255, 230, 180, 0.22);
}
.pk-bcards {
  position: absolute;
  inset: 0;
  z-index: 1;
  gap: 12px;
}
.pk-bcards .pc + .pc {
  margin-left: 0;
}
.pk-pot {
  position: absolute;
  top: 58%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pk-pot span {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  font-size: 14px;
}
.pk-pot b {
  color: var(--gold-2);
}
.pk-pot .chips {
  height: 46px;
}
.pk-bet {
  position: absolute;
  z-index: 3;
  transform: translate(-50%, -50%);
}
.pk-dbtn {
  position: absolute;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff, #ddd);
  color: #111;
  font-weight: 900;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
  transition:
    left 0.5s,
    top 0.5s;
}
.pk-cards {
  position: absolute;
  bottom: calc(100% - 22px);
  z-index: -1;
}
.pk-cards .pc {
  width: 44px;
  height: 62px;
}
.pk-cards .pc + .pc {
  margin-left: -18px;
}
.pk-cards .ci {
  font-size: 14px;
}
.pk-cards .ci i {
  font-size: 11px;
}
.pk-cards .cs {
  font-size: 22px;
}
.seat.me .pk-cards {
  bottom: auto;
  top: -6px;
  left: calc(100% - 18px);
  z-index: 2;
}
.seat.me .pk-cards .pc {
  width: 68px;
  height: 96px;
}
.seat.me .pk-cards .pc + .pc {
  margin-left: -16px;
}
.seat.me .pk-cards .ci {
  font-size: 19px;
}
.seat.me .pk-cards .cs {
  font-size: 34px;
}
.pk-hand {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 800;
  color: var(--gold-2);
  white-space: nowrap;
}
.pk-hand:empty {
  display: none;
}
.c-play .pk-raise {
  display: grid;
  gap: 4px;
  min-width: 260px;
}
.pk-presets {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.pk-presets button {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
}

/* ===== אנימציות בלאק ג'ק ===== */
.bj-fx {
  position: absolute;
  z-index: 30;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 12px 26px;
  border-radius: 18px;
  white-space: nowrap;
  pointer-events: none;
  text-align: center;
  animation: fxPop 2.4s cubic-bezier(0.2, 1.5, 0.4, 1) forwards;
}
.bj-fx b {
  font-family: "Secular One", Heebo, sans-serif;
  font-size: 40px;
  line-height: 1.1;
}
.bj-fx span {
  font-size: 17px;
  font-weight: 800;
  direction: ltr;
}
.fx-bust {
  background: radial-gradient(ellipse at 50% 60%, #ff7a1a, #b3121f 60%, #3a0508);
  border: 3px solid #ffcf3a;
  color: #fff;
  box-shadow:
    0 0 40px #ff5a1a,
    0 0 90px rgba(255, 90, 26, 0.6);
  animation-name: fxBust;
}
.fx-bust span {
  direction: rtl;
}
.fx-bust b {
  text-shadow: 0 3px 0 #6b0a10;
}
.fx-win {
  background: linear-gradient(180deg, #fff1b8, #e6b647 55%, #a8761c);
  border: 3px solid #fff;
  color: #3a2500;
  box-shadow:
    0 0 30px rgba(255, 211, 107, 0.9),
    0 0 80px rgba(255, 211, 107, 0.5);
}
.dealer-hand.busted .pc-f {
  animation: burn 0.9s ease-in-out infinite alternate;
}
.dealer-hand.busted .total {
  background: #b3121f;
}
.seat.fx-winner .seat-av::before {
  animation: winGlow 0.35s ease-in-out infinite alternate;
}
.seat.fx-winner .seat-av img {
  animation: jump 0.5s ease-in-out 4;
}
.confetti {
  position: absolute;
  z-index: 29;
  pointer-events: none;
}
.confetti i {
  position: absolute;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  background: var(--c);
  animation: confetti 1.9s cubic-bezier(0.15, 0.8, 0.4, 1) var(--d) forwards;
}
@keyframes fxPop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
  }
  12% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.12);
  }
  20% {
    transform: translate(-50%, -50%) scale(1);
  }
  85% {
    opacity: 1;
    transform: translate(-50%, -60%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -80%) scale(0.9);
  }
}
@keyframes fxBust {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.2);
  }
  10% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.92);
  }
  14%,
  22%,
  30% {
    transform: translate(-54%, -50%) rotate(-3deg);
  }
  18%,
  26% {
    transform: translate(-46%, -50%) rotate(3deg);
  }
  34%,
  85% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.3);
  }
}
@keyframes burn {
  from {
    box-shadow: 0 0 6px #ff5a1a;
  }
  to {
    box-shadow:
      0 0 18px #ff5a1a,
      0 0 30px #ffcf3a;
  }
}
@keyframes jump {
  50% {
    transform: translateX(-50%) translateY(-12px);
  }
}
@keyframes confetti {
  0% {
    transform: translate(0, 0) rotate(0);
    opacity: 1;
  }
  100% {
    transform: translate(var(--x), calc(var(--y) + 260px)) rotate(var(--r));
    opacity: 0;
  }
}

/* ===== צ'אט ===== */
.tv-chat-btn {
  position: relative;
}
.chat-badge {
  position: absolute;
  top: -5px;
  inset-inline-end: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e53950;
  color: #fff;
  font-style: normal;
  font-size: 11px;
  line-height: 19px;
  animation: pop 0.3s;
}
.tv-chat {
  flex: 1;
  min-height: 220px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(230, 182, 71, 0.35);
  overflow: hidden;
}
.tv-side {
  display: flex;
  flex-direction: column;
}
.tv-people {
  max-height: 128px;
  overflow: auto;
  flex: none;
}
.tv-people .person img {
  width: 26px;
  height: 30px;
  margin: 0;
  object-fit: cover;
  object-position: 50% 12%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}
.tv-log {
  max-height: 92px;
  overflow: auto;
  flex: none;
  font-size: 12px;
}
.chat-x {
  display: none;
}
.tv-react {
  position: absolute;
  z-index: 60;
  top: 62px;
  inset-inline-end: 12px;
  width: min(330px, calc(100% - 24px));
  padding: 10px;
  border-radius: 16px;
  background: rgba(14, 6, 10, 0.97);
  border: 1px solid rgba(230, 182, 71, 0.5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  animation: fadeUp 0.15s;
}
.react-emoji {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}
.react-emoji button {
  font-size: 24px;
  padding: 6px 0;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}
.react-emoji button:hover,
.react-text button:hover {
  background: rgba(230, 182, 71, 0.2);
}
.react-text {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}
.react-text button,
.chat-quick.phrases button {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
}
.chat-quick.phrases {
  max-height: 64px;
  overflow: auto;
}
.chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--gold-2);
}
.chat-x {
  background: none;
  border: 0;
  font-size: 16px;
}
.chat-list {
  flex: 1;
  overflow: auto;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.chat-msg {
  align-self: flex-start;
  max-width: 88%;
  padding: 6px 10px;
  border-radius: 12px 12px 12px 4px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.chat-msg b {
  display: block;
  font-size: 11px;
  color: var(--gold);
}
.chat-msg.me {
  align-self: flex-end;
  border-radius: 12px 12px 4px 12px;
  background: rgba(230, 182, 71, 0.2);
}
.chat-msg.sys {
  background: rgba(125, 255, 168, 0.1);
}
.chat-msg.sys b {
  color: var(--green);
}
.chat-quick {
  display: flex;
  gap: 4px;
  padding: 6px 8px 0;
  flex-wrap: wrap;
}
.chat-quick button {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  font-size: 15px;
}
.chat-form {
  display: flex;
  gap: 6px;
  padding: 8px;
}
.chat-in {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 15px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.4);
  color: var(--txt);
}
.chat-form .btn {
  padding: 8px 14px;
  font-size: 14px;
}
.seat-chat {
  position: absolute;
  bottom: calc(100% + 34px);
  z-index: 9;
  max-width: 200px;
  width: max-content;
  padding: 6px 12px;
  border-radius: 14px 14px 14px 4px;
  background: #fff;
  color: #1a1010;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  animation: chatBubble 4.5s forwards;
}
.seat-chat.emoji {
  padding: 2px 8px;
  font-size: 38px;
  background: transparent;
  box-shadow: none;
  animation: emojiFloat 2.6s ease-out forwards;
}
.seat.chatting {
  z-index: 20;
}
@keyframes emojiFloat {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.4);
  }
  15% {
    opacity: 1;
    transform: translateY(0) scale(1.25);
  }
  25% {
    transform: scale(1);
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-50px);
  }
}
@keyframes chatBubble {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.7);
  }
  8% {
    opacity: 1;
    transform: none;
  }
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@media (max-width: 860px) {
  .chat-open .tv-side {
    display: flex;
    position: fixed;
    z-index: 70;
    inset: 104px 8px 96px;
    margin: 0;
    background: rgba(14, 6, 10, 0.97);
    border-color: rgba(230, 182, 71, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  }
  .chat-open .tv-side > h4,
  .chat-open .tv-people,
  .chat-open .tv-log {
    display: none;
  }
  .chat-open .tv-chat {
    margin: 0;
    min-height: 0;
  }
  .chat-x {
    display: block;
  }
}

/* ===== פרפקט פייר ===== */
.pp-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px 12px;
  border-radius: 999px;
  background: rgba(124, 77, 255, 0.15);
  border: 1px solid rgba(178, 140, 255, 0.5);
  font-size: 14px;
}
.pp-row b {
  color: #d7c4ff;
}
.pp-row small {
  color: var(--dim);
}
.pp-row button {
  min-width: 34px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(178, 140, 255, 0.6);
  background: rgba(124, 77, 255, 0.25);
  font-weight: 800;
}
.pp-chip {
  position: absolute;
  bottom: -4px;
  inset-inline-start: calc(100% + 2px);
  padding: 1px 7px;
  border-radius: 999px;
  background: #5b3bd6;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  direction: ltr;
}
.pp-chip.won {
  background: linear-gradient(180deg, #e9dcff, #9c7bff);
  color: #2a1060;
  animation: pop 0.4s;
}
.pp-chip.lost {
  opacity: 0.5;
}
.bj-spot {
  overflow: visible;
}
.fx-pp {
  background: linear-gradient(180deg, #f1e9ff, #9c7bff 60%, #5b3bd6);
  color: #1e0b4d;
}

/* ===== חגיגות ===== */
.tv-banner {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 40;
  transform: translate(-50%, -55%);
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 240px;
  max-width: calc(100% - 30px);
  padding: 8px 22px;
  border-radius: 18px;
  text-align: center;
  pointer-events: none;
  background: rgba(10, 5, 8, 0.88);
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  animation: bannerIn 0.45s cubic-bezier(0.2, 1.5, 0.4, 1);
  transition:
    opacity 0.35s,
    transform 0.35s;
}
.tv-banner b {
  font-family: "Secular One", Heebo, sans-serif;
  font-size: 24px;
  line-height: 1.1;
}
.tv-banner span {
  font-size: 14px;
  color: var(--dim);
}
.tv-banner.win {
  border-color: var(--gold-2);
  background: linear-gradient(180deg, rgba(70, 50, 5, 0.95), rgba(25, 16, 2, 0.95));
}
.tv-banner.win b {
  color: var(--gold-2);
  text-shadow: 0 0 20px rgba(255, 200, 80, 0.7);
}
.tv-banner.lose {
  border-color: rgba(255, 77, 109, 0.7);
}
.tv-banner.lose b {
  color: #ff8fa3;
}
.tv-banner.info b {
  color: #7dffa8;
  font-size: 22px;
}
.tv-banner.out {
  opacity: 0;
  transform: translate(-50%, -75%);
}
@keyframes bannerIn {
  from {
    opacity: 0;
    transform: translate(-50%, -55%) scale(0.6);
  }
}
.coin-burst {
  position: absolute;
  left: 50%;
  top: 45%;
  z-index: 60;
  pointer-events: none;
}
.coin-burst i {
  position: absolute;
  width: 26px;
  height: 26px;
  margin: -13px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 900;
  font-size: 14px;
  color: #5a3d00;
  background: radial-gradient(circle at 35% 30%, #fff1b8, #e6b647 55%, #9c6f17);
  animation: coin 1.5s cubic-bezier(0.2, 0.7, 0.4, 1) forwards;
  animation-delay: var(--d);
}

/* ===================== מובייל ===================== */
@media (max-width: 860px) {
  .tview {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "top"
      "say"
      "stage"
      "ctl";
  }
  .tv-side {
    display: none;
  }
  .tv-net,
  .tv-title small,
  .tv-leave span {
    display: none;
  }
  .tv-title b {
    font-size: 16px;
  }
  .tv-ic {
    font-size: 22px;
  }
  .tv-top {
    gap: 6px;
    padding-inline: 8px;
  }
  .tv-money {
    gap: 8px;
    padding-inline-start: 10px;
  }
  .hud-logo div,
  .hud-online span,
  .hud-btn span,
  .hud-back span {
    display: none;
  }
  .hud {
    gap: 8px;
    padding-inline: 10px;
  }
  .chip-btn {
    width: 46px;
    height: 46px;
  }
  .chip-btn span {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }
  .btn {
    padding: 10px 14px;
    font-size: 15px;
  }
  .btn.act {
    min-width: 84px;
  }
  .tv-controls {
    padding: 8px;
  }
  .tv-controls .ctl {
    gap: 8px;
  }
  .marble-btn {
    padding: 6px 10px 6px 8px;
  }
  .marble-btn i {
    width: 22px;
    height: 22px;
  }
  .pf-grid,
  .pf-card .pf-grid {
    grid-template-columns: 1fr;
  }
  .pf-prev {
    min-height: 200px;
  }
  .pf-prev img {
    width: 90px;
    height: 180px;
  }
  .pf-pane {
    max-height: none;
    min-height: 0;
  }
  .sheet-btns {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .tv-ic,
  .tv-snd {
    display: none;
  }
  .tv-top .tv-btn {
    width: 34px;
    height: 34px;
    min-width: 0;
  }
  .tv-title {
    min-width: 0;
  }
  .tv-title b {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ===================== אנימציות ===================== */
@keyframes fly {
  from {
    transform: translate(var(--fx, 0), var(--fy, -200px)) rotate(-30deg) scale(0.6);
    opacity: 0.4;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes breathe {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}
.seat-av img {
  animation-name: breatheX;
}
@keyframes breatheX {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-2px);
  }
}
@keyframes dealMove {
  0% {
    transform: none;
  }
  40% {
    transform: rotate(-3deg) translateY(-3px);
  }
  100% {
    transform: none;
  }
}
@keyframes say {
  0% {
    opacity: 0;
    transform: scale(0.6) translateY(8px);
  }
  8% {
    opacity: 1;
    transform: scale(1.08);
  }
  14% {
    transform: none;
  }
  82% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes ring {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes turnGlow {
  from {
    box-shadow: 0 0 0 0 rgba(255, 211, 107, 0.6);
  }
  to {
    box-shadow:
      0 0 0 6px rgba(255, 211, 107, 0.25),
      0 0 30px rgba(255, 211, 107, 0.7);
  }
}
@keyframes winGlow {
  from {
    box-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
  }
  to {
    box-shadow:
      0 0 0 8px rgba(255, 211, 107, 0.25),
      0 0 40px #ffd36b;
  }
}
@keyframes chipDrop {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
}
@keyframes pop {
  0% {
    transform: scale(0.5);
  }
  70% {
    transform: scale(1.15);
  }
  100% {
    transform: none;
  }
}
@keyframes coin {
  0% {
    transform: translate(0, 0) scale(0.4);
    opacity: 1;
  }
  60% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--x), calc(var(--y) + 240px)) scale(1) rotate(360deg);
    opacity: 0;
  }
}
@keyframes toastIn {
  from {
    transform: translateY(-20px) scale(0.9);
    opacity: 0;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@keyframes blink {
  50% {
    opacity: 0.4;
  }
}
@keyframes twinkle {
  to {
    opacity: 0.55;
  }
}
@keyframes walkAcross {
  from {
    transform: translateX(-10vw);
  }
  to {
    transform: translateX(110vw);
  }
}

.smoke-corner {
  position: fixed;
  z-index: 65;
  left: max(12px, env(safe-area-inset-left));
  bottom: max(12px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 24px);
  box-sizing: border-box;
  padding: 8px;
  border: 1px solid #68cda7;
  border-radius: 8px;
  background: #102b28;
  box-shadow: 0 12px 40px #0009;
  color: #e3fff0;
}
.smoke-corner[hidden],
.at-table .smoke-corner {
  display: none;
}
.smoke-head,
.smoke-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.smoke-head b {
  font-size: 13px;
  white-space: nowrap;
}
.smoke-head {
  display: contents;
}
.smoke-head button {
  order: 3;
  width: 26px;
  height: 26px;
  flex: none;
  padding: 0;
  border: 1px solid #80e3bb66;
  border-radius: 4px;
  background: transparent;
  color: inherit;
}
.smoke-actions {
  gap: 6px;
}
.smoke-actions .btn {
  flex: none;
  min-width: 0;
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 6px;
}
@media (max-width: 480px) {
  .hud {
    gap: 6px;
    padding-inline: 8px;
  }
  .hud-logo,
  .hud-online {
    display: none;
  }
  .hud-back {
    padding: 6px 9px;
  }
  .hud-right {
    gap: 4px;
    min-width: 0;
  }
  .hud-right > * {
    flex-shrink: 0;
  }
  .hud-wallet {
    gap: 4px;
    padding: 6px 8px;
    font-size: 16px;
  }
  .hud-wallet .coin {
    width: 20px;
    height: 20px;
    font-size: 13px;
  }
  .hud-btn {
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
  }
  .hud-me img {
    width: 34px;
    height: 68px;
    margin-top: 28px;
  }
  #smokingBtn {
    width: 32px;
    min-width: 32px;
    padding-inline: 0;
  }
}

/* ===== אולטימייט הולדם ===== */
.uth-felt {
  background: radial-gradient(ellipse at 50% 30%, #2a78c8, #12407a 55%, #0a2448);
}
.uth-felt .felt-print {
  top: 44%;
}
.uth-mid {
  position: absolute;
  z-index: 3;
  top: 31%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: flex-start;
  gap: 30px;
  direction: ltr;
}
.portrait .uth-mid {
  top: 30%;
  gap: 14px;
}
.uth-mid .pk-board {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
}
.uth-dbox {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 134px;
}
.uth-dcards {
  min-height: 90px;
}
.uth-dcards .pc + .pc {
  margin-left: 6px;
}
.uth-dl {
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  direction: rtl;
}
.uth-dl.q {
  background: #1f7a43;
  color: #fff;
}
.uth-dl.nq {
  background: #8f0f20;
  color: #fff;
}
.uth-cards {
  position: absolute;
  bottom: calc(100% + 28px);
}
.uth-cards .pc + .pc {
  margin-left: -22px;
}
.seat.me .uth-cards .pc {
  width: 72px;
  height: 100px;
}
.uth-bets {
  position: absolute;
  bottom: calc(100% + 2px);
  display: flex;
  gap: 3px;
  direction: ltr;
}
.uth-bets span {
  padding: 1px 6px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  text-shadow: 0 1px 2px #000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: 0.3s;
}
.uth-bets .ante {
  background: #c62828;
}
.uth-bets .blind {
  background: #1f5fbf;
}
.uth-bets .play {
  background: linear-gradient(180deg, #ffe08a, #c9962a);
  color: #2a1a00;
  text-shadow: none;
  animation: pop 0.4s;
}
.uth-bets .trips {
  background: #7b2cbf;
}
.uth-bets .won {
  outline: 2px solid var(--gold-2);
  box-shadow: 0 0 12px var(--gold-2);
}
.uth-bets .lost {
  opacity: 0.35;
  text-decoration: line-through;
}
.uth-bets .push {
  opacity: 0.75;
}
.uth-res {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 800;
  color: var(--gold-2);
  white-space: nowrap;
}
.uth-res:empty {
  display: none;
}
.uth-pay {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 8px;
  transform-origin: top left;
}
.portrait .uth-pay {
  transform: scale(0.8);
}
.uth-pay > div {
  min-width: 112px;
  padding: 6px 9px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(230, 182, 71, 0.35);
  font-size: 11px;
  line-height: 1.45;
}
.uth-pay b {
  display: block;
  color: var(--gold-2);
  font-size: 12px;
  text-align: center;
}
.uth-pay span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.uth-pay i,
.uth-pay em {
  font-style: normal;
}
.uth-pay em {
  color: var(--gold-2);
  direction: ltr;
}

/* ===== רולטה ===== */
.g-roulette .shoe,
.g-roulette .dealer {
  display: none;
}
.g-roulette .seat {
  width: 100px;
}
.g-roulette .seat-av {
  width: 56px;
  height: 56px;
}
.g-roulette .seat-av img {
  width: 52px;
  height: 104px;
}
.g-roulette .seat-av .ring {
  display: none;
}
.g-roulette .seat:not(.empty) .seat-av::before {
  border-color: var(--pc);
  box-shadow:
    0 0 0 2px rgba(0, 0, 0, 0.5),
    0 0 14px var(--pc);
}
.rl-bet {
  margin-top: 3px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--pc);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-shadow: 0 1px 2px #000;
  direction: ltr;
}
.rl-bet:empty {
  display: none;
}
.rl-felt {
  left: 10px;
  right: 10px;
  top: 10px;
  bottom: 27%;
  border-radius: 30px;
  border-width: 14px;
}
.portrait .rl-felt {
  bottom: 31%;
}
.rl-felt::after {
  display: none;
}
.rl-wheel {
  position: absolute;
  z-index: 3;
  left: 24px;
  top: 30px;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}
.portrait .rl-wheel {
  left: 170px;
  top: 22px;
  width: 300px;
  height: 300px;
}
.rl-wheel canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.rl-big {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #161616;
  border: 4px solid var(--gold-2);
  box-shadow: 0 0 40px rgba(255, 211, 107, 0.8);
  color: #fff;
  font:
    900 44px "Secular One",
    Heebo,
    sans-serif;
  opacity: 0;
  transform: scale(0.3);
  transition:
    opacity 0.3s,
    transform 0.45s cubic-bezier(0.3, 1.6, 0.6, 1);
  pointer-events: none;
}
.rl-big.r {
  background: #c8102e;
}
.rl-big.g {
  background: #0f8a3c;
}
.rl-big.show {
  opacity: 1;
  transform: none;
}
.rl-big small {
  position: absolute;
  top: calc(100% + 8px);
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.75);
  font: 800 13px Heebo, sans-serif;
  white-space: nowrap;
}
.rl-hist {
  position: absolute;
  z-index: 3;
  left: 24px;
  top: 356px;
  width: 310px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
  direction: ltr;
  color: var(--dim);
}
.portrait .rl-hist {
  left: 20px;
  top: 330px;
  width: 600px;
}
.rl-hist i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
}
.rl-hist i.r {
  background: #c8102e;
}
.rl-hist i.g {
  background: #0f8a3c;
}
.rl-hist i:first-child {
  width: 28px;
  height: 28px;
  font-size: 13px;
  border: 2px solid var(--gold-2);
  animation: pop 0.5s;
}
.rl-board {
  position: absolute;
  z-index: 3;
  left: 350px;
  top: 40px;
  width: 628px;
  height: 305px;
  direction: ltr;
}
.portrait .rl-board {
  left: 26px;
  top: 370px;
  width: 588px;
  height: 236px;
}
.rl-cell {
  position: absolute;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  font-weight: 900;
  font-size: 17px;
  pointer-events: none;
  transition:
    filter 0.15s,
    box-shadow 0.15s;
}
.rl-cell.r span,
.rl-cell.b span,
.rl-cell.g span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #c8102e;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.3);
}
.rl-cell.b span {
  background: #161616;
}
.rl-cell.g span {
  background: #0f8a3c;
  width: 36px;
  height: 60px;
  font-size: 22px;
}
.rl-cell.o {
  font-size: 14px;
  color: #ffe6a8;
}
.rl-cell.red span,
.rl-cell.black span {
  font-size: 30px;
  color: #c8102e;
  text-shadow: 0 0 2px #fff;
}
.rl-cell.black span {
  color: #111;
}
.rl-cell.hov {
  z-index: 1;
  filter: brightness(1.35);
  box-shadow:
    inset 0 0 0 3px var(--gold-2),
    0 0 16px rgba(255, 211, 107, 0.7);
}
.rl-cell.win {
  z-index: 1;
  animation: rlWin 0.7s ease-in-out infinite alternate;
}
@keyframes rlWin {
  to {
    filter: brightness(1.6);
    box-shadow:
      inset 0 0 0 3px #fff,
      0 0 26px #ffd36b;
  }
}
.rl-hot {
  position: absolute;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}
.rl-hot.z1 {
  z-index: 2;
}
.rl-hot.z2 {
  z-index: 3;
}
.rl-hot.z3 {
  z-index: 4;
  border-radius: 50%;
}
.rl-hot.z2:hover,
.rl-hot.z3:hover {
  background: rgba(255, 211, 107, 0.45);
}
.rl-hot:focus-visible {
  outline: 2px solid var(--gold-2);
}
.rl-board.closed .rl-hot {
  pointer-events: none;
}
.rl-board.closed .rl-cell:not(.win) {
  filter: saturate(0.6) brightness(0.8);
}
.rl-chips {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}
.rl-chip {
  --dx: 0px;
  --dy: 0px;
  position: absolute;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, var(--c) 0 55%, transparent 56%),
    repeating-conic-gradient(var(--c) 0 30deg, #fff 30deg 60deg);
  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.55),
    0 5px 10px rgba(0, 0, 0, 0.5);
  transform: translate(var(--dx), var(--dy));
  animation: rlDrop 0.4s cubic-bezier(0.3, 1.6, 0.6, 1) backwards;
}
.rl-chip span {
  font-size: 10px;
  font-weight: 900;
  color: #fff;
  text-shadow:
    0 0 2px #000,
    0 1px 2px #000;
}
.rl-chip i {
  position: absolute;
  bottom: calc(100% + 4px);
  padding: 0 6px;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffe08a, #c9962a);
  color: #2a1a00;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  animation: fadeUp 0.4s;
}
@keyframes rlDrop {
  from {
    transform: translate(var(--dx), calc(var(--dy) - 46px)) scale(1.7);
    opacity: 0;
  }
}
.rl-chip.bump {
  animation: rlBump 0.3s;
}
@keyframes rlBump {
  50% {
    transform: translate(var(--dx), calc(var(--dy) - 6px)) scale(1.2);
  }
}
.rl-chip.win {
  z-index: 2;
  animation: rlChipWin 0.6s ease-in-out infinite alternate;
}
@keyframes rlChipWin {
  to {
    transform: translate(var(--dx), calc(var(--dy) - 4px)) scale(1.18);
    box-shadow:
      0 0 0 3px #ffd36b,
      0 0 20px #ffd36b;
  }
}
.rl-chip.lose {
  animation: rlLose 0.9s 1.2s ease-in forwards;
}
@keyframes rlLose {
  to {
    transform: translate(-180px, -60px) scale(0.4);
    opacity: 0;
  }
}
.portrait .rl-chip.lose {
  animation-name: rlLoseP;
}
@keyframes rlLoseP {
  to {
    transform: translate(0, -200px) scale(0.4);
    opacity: 0;
  }
}
.rl-dolly {
  position: absolute;
  z-index: 3;
  width: 22px;
  height: 30px;
  margin: -34px 0 0 -11px;
  border-radius: 50% 50% 35% 35% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 40% 30%, #fff, #dcdcdc 55%, #8a8a8a);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.6);
  animation: rlDolly 0.6s cubic-bezier(0.3, 1.5, 0.6, 1);
}
@keyframes rlDolly {
  from {
    transform: translateY(-60px);
    opacity: 0;
  }
}
.rl-tip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  direction: rtl;
  pointer-events: none;
}
.rl-tip:empty {
  display: none;
}
.rl-flash {
  position: absolute;
  z-index: 9;
  left: 50%;
  top: 34%;
  padding: 10px 30px;
  border-radius: 18px;
  background: rgba(140, 10, 30, 0.9);
  border: 2px solid var(--gold-2);
  color: #fff;
  font:
    900 38px "Secular One",
    Heebo,
    sans-serif;
  white-space: nowrap;
  text-shadow: 0 3px 8px #000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  animation: rlFlash 1.7s forwards;
}
@keyframes rlFlash {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  15% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
  25%,
  80% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}
.rl-me {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  vertical-align: middle;
  background: var(--c);
  box-shadow: 0 0 8px var(--c);
}
.rl-cd {
  color: #ffd36b;
  font-weight: 800;
}
.g-roulette .chip-btn.sel {
  transform: translateY(-6px) scale(1.08);
  box-shadow:
    0 0 0 3px var(--gold-2),
    0 8px 16px rgba(0, 0, 0, 0.5);
}
.tv-walker {
  left: 0;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
