/* =====================================================================
   table-premium.css — Midnight Black П1: стол-«вещь».
   Подключается ПОСЛЕДНИМ на table.html (и переопределяет table-surface).
   Материалы: фетр с фиброй и виньеткой, кожаный борт с золотой строчкой,
   латунный кант; премиум-карты (серифные индексы, центральный пип,
   гильош-рубашка); золото хода; стеклянные панели; полёт карт.
   ===================================================================== */

/* ---------- кожа + латунь + фетр ---------- */
.table-wrap {
  border-radius: 30px;
  padding: 22px;
  background:
    radial-gradient(140% 120% at 30% 0%, rgba(255,255,255,.05), transparent 40%),
    linear-gradient(160deg, #241a12, #150e0a 70%);
  border: 1px solid rgba(0,0,0,.85);
  box-shadow: 0 30px 70px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.05);
  position: relative;
}
.table-wrap { animation: none; }
.table-wrap::before { /* зерно кожи */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: none; filter: none;
}
.table-wrap::after { /* золотая строчка по коже */
  content: ''; position: absolute; inset: 10px; border-radius: 22px; pointer-events: none;
  border: 1.5px dashed rgba(232,197,105,.32);
  background: none; animation: none; filter: none; box-shadow: none;
}

.poker-table { /* латунный кант вокруг фетра */
  box-shadow:
    0 0 0 4px #6d5220,
    0 0 0 5.5px rgba(246,236,208,.55),
    0 0 0 8px #4a3714,
    0 14px 40px rgba(0,0,0,.7);
  background:
    radial-gradient(90% 130% at 50% -20%, rgba(255,244,200,.10), transparent 55%),
    radial-gradient(120% 160% at 50% 120%, rgba(0,0,0,.6), transparent 60%),
    radial-gradient(circle at 50% 42%, #0f4436, #0b2f25 58%, #051b14 100%);
}
.poker-table::before { /* перекрываем «спотлайты» старого скина мягким тёплым светом */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(60% 46% at 50% 18%, rgba(255,240,190,.10), transparent 70%);
  filter: none; opacity: 1; animation: none; z-index: 0; inset: 0;
}
.poker-table::after { /* фибра фетра (глушим анимируемые прожекторы старого скина) */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .05;
  animation: none; filter: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='90' height='90' filter='url(%23n)'/%3E%3C/svg%3E");
}
.poker-table-inner { /* золотой inlay */
  border: 1px solid rgba(232,197,105,.42);
  background: transparent;
  box-shadow: inset 0 0 34px rgba(0,0,0,.35), 0 0 22px rgba(232,197,105,.10);
}
.table-logo { font-family: var(--font-disp); font-size: 17px; letter-spacing: .3em; color: rgba(246,236,208,.5); }
.table-logo span { font-family: var(--font-ui); font-size: 8.5px; letter-spacing: .42em; color: rgba(246,236,208,.34); }

/* ---------- карты ---------- */
.card {
  width: 34px; height: 48px; border-radius: 6px;
  background: linear-gradient(168deg, #fdfbf4, #efeadb 88%);
  border: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.5), 0 7px 16px rgba(0,0,0,.45), inset 0 1px 0 #fff;
}
.card::after { display: none; } /* убираем старый затемняющий градиент */
.card.red { color: #c22641; }
.card.black { color: #1b1b28; }
/* Типографика карты задана в em от .card: на узких экранах карта ужимается до
   26×36, а пип в 21px наезжал и на малую масть, и на ранг. Теперь всё масштабируется
   вместе с картой — меняется только font-size на .card в медиа-запросах ниже. */
.card { font-size: 15px; }
.card-rank {
  left: .27em; top: .2em; font-size: 1em; line-height: 1;
  font-family: var(--font-disp); font-weight: 700; letter-spacing: -.02em;
}
.card-suit { /* масть под рангом, столбиком (вместо правого нижнего угла) */
  left: .3em; top: 1.35em; right: auto; bottom: auto; font-size: .67em; line-height: 1;
}
.card-pip { /* центральный пип (добавляется в js/table.js) */
  position: absolute; right: .2em; bottom: .07em; font-size: 1.4em; line-height: 1;
  opacity: .92; text-shadow: 0 1px 2px rgba(0,0,0,.18);
}
/* карты комбинации: тонкая неоновая обводка — 1px чёткая линия + два слоя свечения */
.card--highlight {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(250,243,222,.95),
    0 0 7px 1px rgba(232,197,105,.6),
    0 0 18px 4px rgba(232,197,105,.28),
    0 7px 16px rgba(0,0,0,.45);
  animation: mbComboIn calc(.45s * var(--anim-k, 1)) ease-out, mbComboBreath 3s ease-in-out calc(.45s * var(--anim-k, 1)) infinite;
}
@keyframes mbComboIn {
  0%   { box-shadow: 0 0 0 1px rgba(250,243,222,0), 0 0 0 0 rgba(232,197,105,0), 0 0 0 0 rgba(232,197,105,0), 0 7px 16px rgba(0,0,0,.45); }
  60%  { box-shadow: 0 0 0 1px rgba(250,243,222,1), 0 0 12px 2px rgba(232,197,105,.8), 0 0 26px 6px rgba(232,197,105,.4), 0 7px 16px rgba(0,0,0,.45); }
  100% { box-shadow: 0 0 0 1px rgba(250,243,222,.95), 0 0 7px 1px rgba(232,197,105,.6), 0 0 18px 4px rgba(232,197,105,.28), 0 7px 16px rgba(0,0,0,.45); }
}
@keyframes mbComboBreath {
  0%, 100% { box-shadow: 0 0 0 1px rgba(250,243,222,.95), 0 0 7px 1px rgba(232,197,105,.6), 0 0 18px 4px rgba(232,197,105,.28), 0 7px 16px rgba(0,0,0,.45); }
  50%      { box-shadow: 0 0 0 1px rgba(250,243,222,1), 0 0 10px 2px rgba(232,197,105,.72), 0 0 24px 6px rgba(232,197,105,.36), 0 7px 16px rgba(0,0,0,.45); }
}
@media (prefers-reduced-motion: reduce) {
  .card--highlight { animation: none; }
}
/* рубашка: гильош + монограмма */
.card.card-back { background: #101024; border: 2px solid #efe8d5; }
.card-back-inner {
  position: absolute; inset: 2px; border-radius: 4px; overflow: hidden;
  border: 1px solid rgba(232,197,105,.55);
  background-image:
    radial-gradient(circle at 0 0, transparent 6.4px, rgba(232,197,105,.34) 6.9px, transparent 7.4px),
    radial-gradient(circle at 5px 5px, transparent 6.4px, rgba(232,197,105,.34) 6.9px, transparent 7.4px);
  background-size: 10px 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-disp); font-size: 9px; letter-spacing: .04em;
  color: transparent; /* текстовый MB из js прячем — рисуем свой поверх медальона */
}
.card-back-inner::before { /* медальон под монограмму */
  content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  background: #101024; border: 1px solid rgba(232,197,105,.7);
}
.card-back-inner::after { content: 'MB'; position: absolute; color: var(--gold); }

/* полёт карты на борд (js добавляет .card--deal и --deal-i) */
.card--deal {
  animation: mbCardDeal calc(.55s * var(--anim-k, 1)) cubic-bezier(.18,.82,.24,1) both;
  animation-delay: calc(var(--deal-i, 0) * 95ms);
  backface-visibility: hidden;
}
@keyframes mbCardDeal {
  0%   { opacity: 0; transform: perspective(520px) translate(120px, -64px) rotate(9deg) rotateY(88deg) scale(.62); }
  40%  { opacity: 1; transform: perspective(520px) translate(26px, -14px) rotate(4deg) rotateY(62deg) scale(.94); }
  72%  { transform: perspective(520px) translate(2px, 1px) rotate(-1deg) rotateY(-8deg) scale(1.015); }
  100% { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .card--deal { animation: mbCardDealSimple .2s ease both; }
}
@keyframes mbCardDealSimple { from { opacity: 0; } to { opacity: 1; } }

/* карманные карты: прилёт рубашкой со сдвигом... */
.card--deal-hand {
  animation: mbHandDeal calc(.42s * var(--anim-k, 1)) cubic-bezier(.2,.85,.3,1) both;
  animation-delay: calc(var(--deal-i, 0) * 130ms);
}
@keyframes mbHandDeal {
  from { opacity: 0; transform: translate(72px, -44px) rotate(14deg) scale(.68); }
  to   { opacity: 1; transform: none; }
}
/* ...и открытие лица с ребра после паузы */
.card--flip-in {
  animation: mbFlipIn calc(.34s * var(--anim-k, 1)) ease-out both;
  animation-delay: calc(var(--deal-i, 0) * 90ms);
  backface-visibility: hidden;
}
@keyframes mbFlipIn {
  0%  { transform: perspective(460px) rotateY(88deg); }
  70% { transform: perspective(460px) rotateY(-6deg); }
  100% { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .card--deal-hand, .card--flip-in { animation: none; }
}

/* ---------- пот ---------- */
#pot {
  background: rgba(6, 10, 9, .55);
  border: 1px solid rgba(232,197,105,.3);
  border-radius: 999px;
  padding: 5px 14px 5px 26px;
  box-shadow: 0 6px 18px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-feature-settings: 'tnum'; font-variant-numeric: tabular-nums;
}
/* поднимаем над бортом: борд стоит на +6px, карта высотой 48 — иначе бейдж ложится на карты */
#pot { transform: translate(-50%, -50%) translateY(-48px); }
/* пульс — через отдельное свойство scale, чтобы не сбивать центрирующий transform */
#pot.pot-bump { animation: mbPotBump calc(.4s * var(--anim-k, 1)) var(--ease); }
@keyframes mbPotBump {
  0%   { scale: 1; }
  35%  { scale: 1.09; box-shadow: 0 6px 22px rgba(0,0,0,.4), 0 0 16px rgba(232,197,105,.35), inset 0 1px 0 rgba(255,255,255,.06); }
  100% { scale: 1; }
}
#pot::before { /* мини-фишка */
  content: ''; position: absolute; left: 7px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.5), transparent 40%),
    conic-gradient(#e8c569 0 45deg, #101018 45deg 90deg, #e8c569 90deg 135deg, #101018 135deg 180deg,
                   #e8c569 180deg 225deg, #101018 225deg 270deg, #e8c569 270deg 315deg, #101018 315deg 360deg);
  box-shadow: 0 1px 3px rgba(0,0,0,.6);
}
#pot span { color: var(--gold); font-weight: 800; }

/* ---------- место в игре: золото хода ---------- */
.seat { transition: border-color .24s ease, box-shadow .24s ease, opacity .2s ease; }
.seat.active {
  border-color: rgba(232,197,105,.85);
  box-shadow: 0 0 0 1px rgba(232,197,105,.35), 0 0 22px rgba(232,197,105,.35);
  animation: mbSeatPulse 1.6s ease-in-out infinite;
}
@keyframes mbSeatPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(232,197,105,.35), 0 0 16px rgba(232,197,105,.28); }
  50% { box-shadow: 0 0 0 1px rgba(232,197,105,.6), 0 0 30px rgba(232,197,105,.5); }
}
.seat.active .seat-name { color: var(--gold-hi); }
/* победа — золотой ореол поверх существующего pop-эффекта */
.seat--win { border-color: rgba(232,197,105,.9) !important; box-shadow: 0 0 34px rgba(232,197,105,.55) !important; }

/* ---------- стеклянные панели ---------- */
.action-panel, #chat, .bottom-panel .hero-info {
  background: linear-gradient(175deg, rgba(24,24,40,.72), rgba(14,14,26,.78));
  border: 1px solid var(--hairline);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--sh-2), inset 0 1px 0 rgba(255,255,255,.05);
}
/* кнопки действий */
.action-btn {
  font-family: var(--font-ui); font-weight: 800; letter-spacing: .04em;
  border: 1px solid transparent; border-radius: 12px;
  transition: transform var(--t-micro) ease, filter var(--t-micro) ease;
}
.action-btn:not(.is-disabled):hover { filter: brightness(1.1); }
.action-btn:active { transform: scale(.97); }
/* Иерархия панели действий: бет/рейз — единственная заливка, олл-ин — золотой
   контур (эскалация того же действия), фолд и чек — тихие.
   Раньше олл-ин был малиновым градиентом из старой палитры: самое яркое пятно
   стола уводило взгляд на кнопку «поставить всё». */
.action-fold {
  background: rgba(255,255,255,.05) !important; color: #e9cdd6 !important;
  border-color: rgba(226,138,160,.35) !important;
}
.action-fold:not(.is-disabled):hover {
  background: rgba(226,138,160,.14) !important; color: #ffe5ef !important;
  border-color: rgba(226,138,160,.6) !important;
}
.action-check { background: rgba(255,255,255,.07) !important; color: var(--tx-hi) !important; border-color: var(--hairline) !important; }
.action-bet {
  background: var(--gold-grad) !important; color: #181123 !important;
  box-shadow: var(--sh-gold), inset 0 1px 0 rgba(255,255,255,.55) !important;
}
.action-allin {
  background: linear-gradient(180deg, rgba(232,197,105,.18), rgba(22,17,8,.96)) !important;
  color: #f7e7bb !important;
  border-color: rgba(232,197,105,.75) !important;
  box-shadow: inset 0 0 14px rgba(232,197,105,.18) !important;
}
.action-allin:not(.is-disabled):hover {
  background: linear-gradient(180deg, rgba(232,197,105,.3), rgba(30,23,10,.96)) !important;
  color: #fff5d6 !important;
}
.action-btn.is-disabled { filter: grayscale(.5); opacity: .45; }
.range { accent-color: var(--gold); }

/* твой ход: панель действий подсвечивается золотом */
.action-panel.your-turn {
  border-color: rgba(232,197,105,.55);
  box-shadow: 0 0 26px rgba(232,197,105,.2), var(--sh-2), inset 0 1px 0 rgba(255,255,255,.05);
}

/* ---------- фишка дилера ---------- */
.dealer-chip {
  background:
    radial-gradient(circle at 34% 28%, #fffdf4, #efe6cc 55%, #cdbb8d) !important;
  color: #6d5220 !important;
  border: 1.5px solid rgba(154,116,44,.7) !important;
  box-shadow: 0 3px 8px rgba(0,0,0,.55), inset 0 1px 0 #fff !important;
  font-family: var(--font-disp); font-weight: 700;
}

/* ---------- баннер победы ---------- */
.mb-win-banner {
  /* 63% — пустое сукно ниже борда, но выше нижнего места. Раньше стояло 22% — ровно
     на верхнем сиденье; 74% задевало нижнее. Проверено промером на живом столе. */
  position: absolute; left: 50%; top: 63%; transform: translate(-50%, -50%);
  z-index: 40; pointer-events: none; text-align: center; max-width: 86%;
  /* подложка: раньше текст ложился прямо на карты борда и не читался */
  padding: 10px 26px; border-radius: 18px;
  background: radial-gradient(120% 160% at 50% 30%, rgba(8,7,12,.86), rgba(8,7,12,.55) 70%, transparent);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  animation: mbWinIn calc(.5s * var(--anim-k, 1)) var(--ease) both;
}
.mb-win-banner .t {
  font-family: var(--font-disp); font-size: clamp(26px, 4.4vw, 44px); letter-spacing: .22em;
  color: var(--gold); text-shadow: 0 0 24px rgba(232,197,105,.55), 0 0 70px rgba(232,197,105,.3);
}
.mb-win-banner .s {
  margin-top: 4px; font-size: 13px; letter-spacing: .1em; color: rgba(246,236,208,.85);
  font-feature-settings: 'tnum';
}
.mb-win-banner.out { transition: opacity .5s ease, transform .5s ease; opacity: 0; transform: translate(-50%, -60%); }
/* Узкий экран: овал плотный, между бордом и боковыми местами баннер не влезает.
   Уходит на нижний борт — под передний край стола, над панелью героя: там всегда пусто. */
@media (max-width: 900px) {
  .mb-win-banner { top: 85%; padding: 8px 18px; }
  .mb-win-banner .t { font-size: clamp(20px, 6vw, 30px); }
}
@keyframes mbWinIn { from { opacity: 0; transform: translate(-50%, -36%) scale(.92); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

/* ---------- бейдж ставки на месте ---------- */
.seat-bet {
  display: inline-flex; align-items: center; gap: 5px;
  margin-left: 2px; padding: 2px 8px 2px 4px; border-radius: 999px; flex: none;
  background: rgba(6,10,9,.72); border: 1px solid rgba(232,197,105,.4);
  color: var(--gold); font-size: 10px; font-weight: 800;
  animation: mbPop var(--t-panel) var(--ease);
}
.seat-bet::before { /* мини-фишка с сегментной кромкой */
  content: ''; width: 12px; height: 12px; border-radius: 50%; flex: none;
  background:
    radial-gradient(circle at 34% 26%, rgba(255,255,255,.4), transparent 36%),
    radial-gradient(circle, #191926 0 52%, transparent 53%),
    conic-gradient(from 22.5deg,
      #e8c569 0 45deg,  #14141f 45deg 90deg,  #e8c569 90deg 135deg,  #14141f 135deg 180deg,
      #e8c569 180deg 225deg, #14141f 225deg 270deg, #e8c569 270deg 315deg, #14141f 315deg 360deg);
  border: 1px solid rgba(154,116,44,.85);
  box-shadow: inset 0 0 0 2.5px rgba(232,197,105,.3), 0 1px 2px rgba(0,0,0,.6);
}

/* ---------- боковая панель (чат/история) — стекло ---------- */
.side-panel {
  background: linear-gradient(175deg, rgba(24,24,40,.72), rgba(14,14,26,.78)) !important;
  border: 1px solid var(--hairline) !important;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--sh-2), inset 0 1px 0 rgba(255,255,255,.05);
}
.side-tab-btn { font-family: var(--font-ui); letter-spacing: .03em; }
.side-tab-btn-active {
  background: rgba(232,197,105,.14) !important;
  color: var(--gold-hi) !important;
  border-color: var(--hairline-strong) !important;
}
.chat-line-dealer { color: var(--gold) !important; }
.chat-send { background: var(--gold-grad); color: #181123; border: none; font-weight: 800; }
#chatInput:focus { border-color: rgba(232,197,105,.7) !important; box-shadow: 0 0 0 3px rgba(232,197,105,.12); }
.chat-typing { min-height:18px; padding:2px 4px; color:rgba(205,205,220,.72); font-size:11px; font-style:italic; }

/* ---------- летящая фишка ---------- */
.mb-fly-chip {
  position: absolute; width: 20px; height: 20px; border-radius: 50%; z-index: 30; pointer-events: none;
  /* кромка: 8 сегментов золото/чернила, как настоящая фишка */
  background:
    radial-gradient(circle at 34% 26%, rgba(255,255,255,.5), transparent 34%),
    radial-gradient(circle, #191926 0 56%, transparent 57%),
    conic-gradient(from 22.5deg,
      #e8c569 0 45deg,  #14141f 45deg 90deg,  #e8c569 90deg 135deg,  #14141f 135deg 180deg,
      #e8c569 180deg 225deg, #14141f 225deg 270deg, #e8c569 270deg 315deg, #14141f 315deg 360deg);
  border: 1px solid rgba(154,116,44,.9);
  box-shadow:
    inset 0 0 0 4px rgba(232,197,105,.28),   /* внутренний золотой инлей */
    inset 0 -2px 3px rgba(0,0,0,.5),
    0 4px 10px rgba(0,0,0,.55), 0 0 8px rgba(232,197,105,.22);
  will-change: transform;
}
.mb-fly-chip::after { /* пика в центре — фирменный знак */
  content: '\2660'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; line-height: 1; color: rgba(232,197,105,.85);
  text-shadow: 0 0 4px rgba(232,197,105,.5);
}

/* =========================================================
   П4 · МИКРОДЕТАЛИ СТОЛА
   ========================================================= */

/* Гильош-розетка вокруг центральной надписи — тиснение на сукне */
.table-logo::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 300px; height: 300px;
  transform: translate(-50%,-50%);
  pointer-events: none;
  opacity: .10;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Cg fill='none' stroke='%23f6ecd0'%3E%3Ccircle cx='150' cy='150' r='128' stroke-width='0.7'/%3E%3Ccircle cx='150' cy='150' r='122' stroke-width='0.5' stroke-dasharray='1 5'/%3E%3Ccircle cx='150' cy='150' r='104' stroke-width='0.5'/%3E%3Cg stroke-width='0.6'%3E%3Cpath d='M150 22 l0 8M150 270 l0 8M22 150 l8 0M270 150 l8 0'/%3E%3Cpath d='M59.5 59.5 l5.7 5.7M234.8 234.8 l5.7 5.7M240.5 59.5 l-5.7 5.7M65.2 234.8 l-5.7 5.7'/%3E%3C/g%3E%3Cg font-family='Georgia,serif' font-size='13' fill='%23f6ecd0' stroke='none' text-anchor='middle'%3E%3Ctext x='150' y='40'%3E%E2%99%A0%3C/text%3E%3Ctext x='150' y='276'%3E%E2%99%A3%3C/text%3E%3Ctext x='34' y='155'%3E%E2%99%A5%3C/text%3E%3Ctext x='266' y='155'%3E%E2%99%A6%3C/text%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  z-index: -1;
}

/* Медленное «дыхание» света на фетре — стол живой, не статичная картинка */
.poker-table-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(80% 120% at 50% -20%, rgba(246,236,208,.07), transparent 60%);
  animation: mbFeltBreath 16s ease-in-out infinite;
}
@keyframes mbFeltBreath {
  0%, 100% { opacity: .55; }
  50%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .poker-table-inner::after { animation: none; }
}

/* =========================================================
   Адаптив стола: на узких экранах овал становится выше, а места
   компактнее — иначе бейджи игроков и банк наезжают друг на друга.
   ========================================================= */
@media (max-width: 900px) {
  .poker-table { aspect-ratio: 1.7 / 1; }
  .poker-table-inner { inset: 12%; }
  :root {
    --seat-height: 32px;
    --seat-avatar-size: 36px;
    --seat-gap: 6px;
  }
  .seat { font-size: 9px; padding: 3px 8px 3px 0; }
  .seat-1 { top: -6%; }
  .seat-4 { bottom: -6%; }
  .seat-2, .seat-6 { top: 24%; }
  .seat-3, .seat-5 { bottom: 24%; }
  #pot { transform: translate(-50%, -50%) translateY(-40px); font-size: 11px; }
  #board .card { width: 30px; height: 42px; font-size: 13px; }
  .table-logo { font-size: 11px; }
  .table-logo::before { width: 190px; height: 190px; }
}
@media (max-width: 600px) {
  .poker-table { aspect-ratio: 1.32 / 1; }
  :root {
    --seat-height: 28px;
    --seat-avatar-size: 30px;
  }
  .seat { font-size: 8.5px; }
  #pot { transform: translate(-50%, -50%) translateY(-34px); font-size: 10px; }
  #board { gap: 4px; }
  #board .card { width: 26px; height: 36px; font-size: 11px; }
  .table-logo { font-size: 9px; letter-spacing: .18em; }
  .table-logo span { font-size: 7px; }
  .table-logo::before { width: 150px; height: 150px; }
}

/* На узких экранах строка дилера в шапке стола не должна залезать под верхнее место */
@media (max-width: 900px) {
  .dealer-short {
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
    overflow: hidden; text-overflow: ellipsis;
    max-width: calc(100% - 96px);
  }
}

/* =========================================================
   Микродетали: дилер-баттон, плавная смена чисел, ход игрока
   ========================================================= */

/* Дилер-баттон: был синий «сапфир», делаем классический золотой D */
#dealerChip {
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.55), transparent 40%),
    linear-gradient(160deg, #f6ecd0, #e8c569 45%, #b3924a) !important;
  border: 1px solid rgba(154,116,44,.9) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.55), 0 0 10px rgba(232,197,105,.35) !important;
}
#dealerChip::after {
  content: 'D' !important;
  left: 50% !important; top: 50% !important;
  width: auto !important; height: auto !important;
  transform: translate(-50%, -50%) !important;
  background: none !important;
  font: 700 9px/1 var(--font-disp, Georgia, serif);
  color: #2a1f08 !important;
  letter-spacing: .04em;
  box-shadow: none !important;
}

/* Плавная смена чисел (стек, банк): короткий подъём + золотая вспышка */
.num-bump { animation: mbNumBump calc(.42s * var(--anim-k, 1)) var(--ease); }
@keyframes mbNumBump {
  0%   { color: inherit; }
  30%  { color: var(--gold-hi); text-shadow: 0 0 10px rgba(232,197,105,.6); }
  100% { color: inherit; text-shadow: none; }
}

/* Твой ход: деликатное золотое дыхание панели действий */
.action-panel.your-turn {
  animation: mbTurnBreath 2.4s ease-in-out infinite;
}
@keyframes mbTurnBreath {
  0%, 100% { box-shadow: 0 0 0 1px rgba(232,197,105,.28), 0 8px 26px rgba(0,0,0,.4); }
  50%      { box-shadow: 0 0 0 1px rgba(232,197,105,.5), 0 0 18px rgba(232,197,105,.18), 0 8px 26px rgba(0,0,0,.4); }
}
@media (prefers-reduced-motion: reduce) {
  .action-panel.your-turn, .num-bump { animation: none; }
}

/* =========================================================
   Мелочи: пустые места, докупка, компоновка стола
   ========================================================= */

/* Свободные места — деликатный «призрак»: пунктир вместо плотной плашки */
.seat.seat--empty {
  background: rgba(5,5,15,.35);
  border-style: dashed;
  border-color: rgba(246,236,208,.16);
  box-shadow: none;
  opacity: .75;
  transition: opacity .2s ease, border-color .2s ease;
}
.seat.seat--empty .seat-name { color: rgba(246,236,208,.42); letter-spacing: .04em; }
.seat.seat--empty .seat-avatar { opacity: .5; filter: grayscale(.5); }
.seat.seat--empty:hover { opacity: 1; border-color: rgba(232,197,105,.35); }

/* Кнопка докупки — в золоте вместо выбивающегося зелёного */
#btnRebuy {
  border: 1px solid rgba(232,197,105,.55) !important;
  color: #f6ecd0 !important;
  background: radial-gradient(circle at 0 0, rgba(232,197,105,.25), rgba(40,30,8,.9)) !important;
}
.hero-pending-rebuy { color: rgba(232,197,105,.85) !important; }

/* Стол по центру доступной высоты — раньше под панелью действий зияла пустота */
@media (min-width: 951px) {
  .table-wrap { display: flex; flex-direction: column; }
  .table-wrap > .table-top-info { flex: none; }
  .poker-table-shell, .table-center { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }
  .bottom-panel { margin-top: auto; }
}

/* Подсказка суммы на кнопках размера ставки */
.preset-btn { position: relative; }
.preset-btn[data-amount]:hover::after {
  content: attr(data-amount);
  position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%);
  padding: 3px 8px; border-radius: 999px; white-space: nowrap;
  font-size: 10px; letter-spacing: .04em;
  color: #171224; background: linear-gradient(135deg, #f6ecd0, #e8c569);
  box-shadow: 0 4px 12px rgba(0,0,0,.45);
  pointer-events: none; z-index: 20;
}

/* Полоска таймера хода: видно, сколько времени осталось, без чтения цифр */
.action-panel { position: relative; }
.mb-turn-bar {
  position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2px;
  border-radius: 2px; overflow: hidden; background: rgba(255,255,255,.07);
  opacity: 0; transition: opacity .2s ease;
}
.action-panel.your-turn .mb-turn-bar { opacity: 1; }
.mb-turn-bar i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, #9a742c, #e8c569 60%, #f6ecd0);
  transform-origin: left center;
  transition: transform .25s linear, background .3s ease;
}
.mb-turn-bar.is-urgent i { background: linear-gradient(90deg, #a33b3b, #ff6b6b); }

/* =========================================================
   Меню игрока за столом: жалоба и блокировка.
   До этого на спам в чате стола ответом был только выход из-за стола.
   ========================================================= */
.tbl-menu {
  position: fixed; left: 0; top: 0; z-index: 5000; min-width: 190px; max-width: 240px;
  padding: 6px; border-radius: 14px;
  background: linear-gradient(160deg, rgba(30, 25, 44, .99), rgba(12, 10, 20, .99));
  border: 1px solid rgba(232, 197, 105, .35);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
  animation: mbPop var(--t-panel) var(--ease);
}
.tbl-menu__head {
  padding: 7px 10px 8px; font-size: 12px; color: var(--tx-dim);
  border-bottom: 1px solid var(--hairline); margin-bottom: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tbl-menu__item {
  display: block; width: 100%; text-align: left; cursor: pointer;
  padding: 9px 10px; border-radius: 10px; border: 0; background: transparent;
  color: var(--tx-hi); font-family: var(--font-ui); font-size: 13px;
  transition: background var(--t-micro) ease, color var(--t-micro) ease;
}
.tbl-menu__item:hover { background: rgba(255, 255, 255, .08); }
.tbl-menu__item.is-danger { color: #e9cdd6; }
.tbl-menu__item.is-danger:hover { background: rgba(226, 138, 160, .16); color: #ffe5ef; }
.tbl-menu__item.is-quiet { color: var(--tx-dim); font-size: 12.5px; }
.tbl-menu__note { padding: 8px 10px 10px; font-size: 12px; color: var(--tx-dim); line-height: 1.35; }

/* подсказка, что место и строка чата кликабельны */
.seat--actionable { cursor: pointer; }
.seat--actionable:hover .seat-name { color: #f6ead0; }
.chat-line--actionable { cursor: pointer; border-radius: 6px; padding: 1px 4px; margin: 0 -4px; }
.chat-line--actionable:hover { background: rgba(255, 255, 255, .07); }

/* ---------- заметка об игроке ---------- */
.tbl-menu--wide { min-width: 280px; max-width: 320px; }

.tbl-note__tags { display: flex; flex-wrap: wrap; gap: 5px; padding: 4px 8px 8px; }
.tbl-note__tag {
  padding: 4px 10px; border-radius: 999px; cursor: pointer; font-size: 11.5px;
  background: rgba(255,255,255,.05); border: 1px solid var(--hairline); color: var(--tx-dim);
  transition: background var(--t-micro) ease, color var(--t-micro) ease, border-color var(--t-micro) ease;
}
.tbl-note__tag:hover { background: rgba(255,255,255,.1); color: var(--tx-hi); }
.tbl-note__tag.is-on {
  background: linear-gradient(135deg, rgba(232,197,105,.24), rgba(232,197,105,.08));
  border-color: rgba(232,197,105,.5); color: #f6ead0;
}

.tbl-note__text {
  display: block; width: calc(100% - 16px); margin: 0 8px; padding: 8px 10px;
  border-radius: 10px; resize: vertical; min-height: 74px;
  background: rgba(8,8,16,.9); border: 1px solid var(--hairline);
  color: var(--tx-hi); font-family: var(--font-ui); font-size: 12.5px; line-height: 1.4;
}
.tbl-note__text:focus { outline: none; border-color: rgba(232,197,105,.5); }

.tbl-note__row { display: flex; gap: 6px; padding: 8px; }
.tbl-note__btn {
  flex: 1 1 auto; padding: 8px 10px; border-radius: 10px; cursor: pointer; font-size: 12.5px;
  background: rgba(255,255,255,.06); border: 1px solid var(--hairline); color: var(--tx-hi);
}
.tbl-note__btn:hover { background: rgba(255,255,255,.11); }
.tbl-note__btn.is-primary {
  background: linear-gradient(135deg,#efd48a,#c9a34c); border-color: rgba(232,197,105,.9); color: #171224; font-weight: 700;
}
.tbl-note__btn.is-primary:hover { filter: brightness(1.06); }
.tbl-note__btn:disabled { opacity: .55; cursor: default; }

/* метка заметки на месте игрока — иначе о заметке нужно вспоминать самому */
.seat-note {
  position: absolute; top: -21px; left: 50%; transform: translateX(-50%); z-index: 4;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; font-size: 9.5px; font-weight: 700; line-height: 1;
  background: rgba(20,16,30,.96); border: 1px solid rgba(232,197,105,.6); color: #f2e4c2;
  box-shadow: 0 2px 8px rgba(0,0,0,.5);
  pointer-events: none;
}
.seat-note[data-color="fish"]   { border-color: rgba(90,200,140,.7);  color: #cdf5df; }
.seat-note[data-color="maniac"] { border-color: rgba(226,138,160,.7); color: #ffd9e4; }
.seat-note[data-color="reg"]    { border-color: rgba(120,160,255,.7); color: #d8e3ff; }
.seat-note[data-color="nit"]    { border-color: rgba(255,255,255,.35); color: #e6e6f0; }

/* =========================================================================
   ПЕРСОНАЛИЗАЦИЯ ИЗ МАГАЗИНА: рубашки, титулы, стили ника, сукно, эмоции,
   карманки соперников, эффекты победы.
   ========================================================================= */

/* ---------- титул под ником ---------- */
.seat-title {
  display: block; font-size: 8.5px; line-height: 1; letter-spacing: .08em; text-transform: uppercase;
  color: var(--tx-dim); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 84px;
}
.hero-title { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--tx-dim); margin-top: 1px; }

/* стили ника — в css/frames.css (нужны и в профиле, и в магазине) */

/* ---------- сукно стола (видит владелец) ---------- */
[data-felt="midnight_blue"] { background: radial-gradient(90% 130% at 50% -20%, rgba(220,235,255,.10), transparent 55%), radial-gradient(120% 160% at 50% 120%, rgba(0,0,0,.6), transparent 60%), radial-gradient(circle at 50% 42%, #14356e, #0d2650 58%, #071533 100%); }
[data-felt="burgundy"]      { background: radial-gradient(90% 130% at 50% -20%, rgba(255,230,230,.10), transparent 55%), radial-gradient(120% 160% at 50% 120%, rgba(0,0,0,.6), transparent 60%), radial-gradient(circle at 50% 42%, #6a1426, #4a0e1c 58%, #2b0810 100%); }
[data-felt="black_velvet"]  { background: radial-gradient(90% 130% at 50% -20%, rgba(255,255,255,.08), transparent 55%), radial-gradient(120% 160% at 50% 120%, rgba(0,0,0,.7), transparent 60%), radial-gradient(circle at 50% 42%, #1c1c24, #111116 58%, #07070a 100%); }
[data-felt="royal_purple"]  { background: radial-gradient(90% 130% at 50% -20%, rgba(240,220,255,.10), transparent 55%), radial-gradient(120% 160% at 50% 120%, rgba(0,0,0,.6), transparent 60%), radial-gradient(circle at 50% 42%, #3d1a6e, #2a1150 58%, #170a2e 100%); }
[data-felt="gold_dust"] {
  background:
    radial-gradient(circle at 20% 30%, rgba(232,197,105,.35) 0 1px, transparent 2px), radial-gradient(circle at 65% 60%, rgba(232,197,105,.3) 0 1px, transparent 2px),
    radial-gradient(circle at 80% 25%, rgba(246,236,208,.3) 0 1px, transparent 2px), radial-gradient(circle at 40% 75%, rgba(232,197,105,.3) 0 1px, transparent 2px),
    radial-gradient(90% 130% at 50% -20%, rgba(255,244,200,.12), transparent 55%), radial-gradient(circle at 50% 42%, #1f1a0e, #14110a 58%, #0a0806 100%);
  background-size: 37px 37px, 53px 53px, 41px 41px, 47px 47px, 100% 100%, 100% 100%;
}

/* ---------- рубашки карт (data-back) ---------- */
.card.card-back { position: relative; }
.card.card-back[data-back] .card-back-inner::after { content: ''; }
.card.card-back[data-back="classic_blue"]  { background: repeating-linear-gradient(45deg, #2d49b8 0 3px, #1f3690 3px 6px); border-color: #dfe6ff; }
.card.card-back[data-back="classic_blue"] .card-back-inner { border-color: rgba(255,255,255,.55); color: #fff; }
.card.card-back[data-back="gold_monogram"] { background: #0c0a12; border-color: #e8c569; }
.card.card-back[data-back="gold_monogram"] .card-back-inner { border-color: rgba(232,197,105,.8); color: #e8c569; }
.card.card-back[data-back="gold_monogram"] .card-back-inner::after { content: 'MB'; color: #e8c569; }
.card.card-back[data-back="platinum"] { background: linear-gradient(160deg, #b9bdc5, #e9ebf0 50%, #9ea3ad); border-color: #fff; }
.card.card-back[data-back="platinum"] .card-back-inner { border-color: rgba(60,64,72,.6); color: #3a3e46; }
.card.card-back[data-back="platinum"] .card-back-inner::after { content: 'MB'; color: #3a3e46; }
.card.card-back[data-back="emerald"] { background: radial-gradient(circle at 50% 40%, #1f8f57, #0f5a38 70%); border-color: #e8c569; }
.card.card-back[data-back="emerald"] .card-back-inner { border-color: rgba(232,197,105,.75); color: #e8c569; }
.card.card-back[data-back="emerald"] .card-back-inner::after { content: ''; width: 38%; height: 38%; background: #e8c569; transform: rotate(45deg); border-radius: 2px; }
.card.card-back[data-back="ruby_damask"] { background: repeating-conic-gradient(from 45deg, #7a1020 0deg 45deg, #a11a30 45deg 90deg); border-color: #f0c2cc; }
.card.card-back[data-back="ruby_damask"] .card-back-inner { border-color: rgba(255,220,228,.6); color: #ffd9e1; }
.card.card-back[data-back="ruby_damask"] .card-back-inner::after { content: ''; width: 34%; height: 34%; background: #ffd9e1; transform: rotate(45deg); border-radius: 1px; box-shadow: 0 0 0 2px #7a1020, 0 0 0 3px #ffd9e1; }
.card.card-back[data-back="walnut"] { background: repeating-linear-gradient(100deg, #5a3a22 0 2px, #7a4e2e 2px 4px); border-color: #c9a46a; }
.card.card-back[data-back="walnut"] .card-back-inner { border-color: rgba(201,164,106,.6); color: #e9cf9e; }
.card.card-back[data-back="leather"] { background: #4a2f1c; border-color: #e8c569; }
.card.card-back[data-back="leather"] .card-back-inner { border: 1px dashed rgba(232,197,105,.7); color: #e8c569; }
.card.card-back[data-back="circuit"] { background: #061a16 repeating-linear-gradient(0deg, rgba(55,226,199,.25) 0 1px, transparent 1px 6px); border-color: #37e2c7; box-shadow: 0 0 8px rgba(55,226,199,.45); }
.card.card-back[data-back="circuit"] .card-back-inner { border-color: rgba(55,226,199,.8); color: #37e2c7; }
.card.card-back[data-back="bronza_back"] { background: radial-gradient(circle at 30% 20%, #c47a3a, #5a3a1a 70%); border-color: #f0c48a; }
.card.card-back[data-back="bronza_back"] .card-back-inner { border-color: rgba(240,196,138,.7); color: #f5d2a0; }
.card.card-back[data-back="midnight_neon"] { background: #0b0b1a; border-color: #6f7aff; box-shadow: 0 0 8px rgba(111,122,255,.5); }
.card.card-back[data-back="midnight_neon"] .card-back-inner { border-color: rgba(111,122,255,.8); color: #aab2ff; }

/* ---------- карманки соперников у места: видна их рубашка ---------- */
.seat-hole { position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%); display: flex; gap: 0; pointer-events: none; z-index: 3; }
.seat-hole .card { width: 13px; height: 18px; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.6); border-width: 1px; }
.seat-hole .card + .card { margin-left: -5px; transform: rotate(8deg); }
.seat-hole .card:first-child { transform: rotate(-8deg); }
.seat-hole .card-back-inner { inset: 1px; border-width: 1px; font-size: 0; }
.seat-hole .card-back-inner::after { display: none; }
.seat-hole .card-back-inner::before { display: none; }
@media (max-width: 600px) { .seat-hole { display: none; } }

/* ---------- эмоция над местом ---------- */
@keyframes mbEmotePop { 0% { transform: translate(-50%, 6px) scale(.4); opacity: 0; } 18% { transform: translate(-50%, -4px) scale(1.15); opacity: 1; } 30% { transform: translate(-50%, 0) scale(1); } 80% { transform: translate(-50%, 0) scale(1); opacity: 1; } 100% { transform: translate(-50%, -14px) scale(.9); opacity: 0; } }
.seat-emote {
  position: absolute; left: 50%; top: -34px; transform: translateX(-50%); z-index: 6; pointer-events: none;
  font-size: 24px; line-height: 1; padding: 4px 8px; border-radius: 14px;
  background: rgba(12,10,20,.92); border: 1px solid rgba(232,197,105,.45); box-shadow: 0 6px 18px rgba(0,0,0,.55);
  animation: mbEmotePop calc(2.4s * var(--anim-k, 1)) ease-out forwards;
}
.hero-emote { top: -40px; font-size: 28px; }

/* ---------- панель эмоций у чата ---------- */
.emote-btn {
  flex: none; width: 34px; height: 34px; border-radius: 999px; cursor: pointer; font-size: 16px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06); border: 1px solid var(--hairline); color: var(--tx-hi);
}
.emote-btn:hover { background: rgba(255,255,255,.11); border-color: rgba(232,197,105,.45); }
.emote-picker {
  position: fixed; left: 0; top: 0; z-index: 5000; display: flex; flex-wrap: wrap; gap: 4px; width: 236px;
  padding: 8px; border-radius: 14px;
  background: linear-gradient(160deg, rgba(30,25,44,.99), rgba(12,10,20,.99)); border: 1px solid rgba(232,197,105,.35);
  box-shadow: 0 18px 50px rgba(0,0,0,.6); animation: mbPop var(--t-panel) var(--ease);
}
.emote-picker button {
  width: 40px; height: 40px; border-radius: 10px; font-size: 22px; line-height: 1; cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px solid transparent; color: var(--tx-hi);
}
.emote-picker button:hover { background: rgba(255,255,255,.12); border-color: rgba(232,197,105,.4); }
.emote-picker .emote-picker__more { width: 100%; height: auto; font-size: 11px; padding: 6px; color: var(--tx-dim); background: transparent; }
.emote-picker .emote-picker__more:hover { color: #f6ead0; }
.side-body { position: relative; }

/* ---------- эффекты победы (видят все) ---------- */
@keyframes mbFxFlash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
@keyframes mbFxRing  { 0% { transform: translate(-50%,-50%) scale(.2); opacity: .9; } 100% { transform: translate(-50%,-50%) scale(2.6); opacity: 0; } }
@keyframes mbFxCrown { 0% { transform: translate(-50%, 20px) scale(.3) rotate(-12deg); opacity: 0; } 25% { transform: translate(-50%, -8px) scale(1.2) rotate(6deg); opacity: 1; } 40% { transform: translate(-50%, 0) scale(1) rotate(0); } 85% { opacity: 1; } 100% { transform: translate(-50%, -10px) scale(.9); opacity: 0; } }
@keyframes mbFxBolt  { 0% { opacity: 0; transform: translateX(-50%) scaleY(0); } 10% { opacity: 1; transform: translateX(-50%) scaleY(1); } 20% { opacity: .3; } 28% { opacity: 1; } 60% { opacity: .8; } 100% { opacity: 0; } }
.mb-fx-flash { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 40; animation: mbFxFlash .9s ease-out forwards; }
.mb-fx-ring  { position: absolute; left: 50%; top: 50%; width: 140px; height: 140px; border-radius: 50%; pointer-events: none; z-index: 40; border: 3px solid rgba(232,197,105,.9); box-shadow: 0 0 24px rgba(232,197,105,.6); animation: mbFxRing 1.1s ease-out forwards; }
.mb-fx-crown { position: absolute; left: 50%; top: -46px; z-index: 41; font-size: 34px; line-height: 1; pointer-events: none; filter: drop-shadow(0 0 10px rgba(232,197,105,.9)); animation: mbFxCrown 2.6s ease-out forwards; }
.mb-fx-bolt  { position: absolute; left: 50%; top: 0; width: 6px; height: 52%; transform-origin: top; pointer-events: none; z-index: 41;
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(160,220,255,.9) 60%, transparent); box-shadow: 0 0 14px rgba(160,220,255,.9), 0 0 34px rgba(120,200,255,.6);
  clip-path: polygon(50% 0, 100% 30%, 40% 45%, 90% 60%, 30% 80%, 60% 100%, 0 70%, 50% 55%, 10% 40%, 60% 25%); animation: mbFxBolt 1s ease-out forwards; }

/* ---------- вскрытие у места: переворот с рубашки владельца на лицо ---------- */
@keyframes mbSeatFlip { 0% { transform: rotateY(0deg); } 100% { transform: rotateY(180deg); } }
.seat-hole.is-reveal { perspective: 240px; bottom: -14px; gap: 2px; }
.seat-hole.is-reveal .seat-flip {
  position: relative; width: 18px; height: 25px; transform-style: preserve-3d;
  animation: mbSeatFlip calc(.55s * var(--anim-k, 1)) cubic-bezier(.3,.7,.3,1) forwards;
  animation-delay: calc(var(--flip-delay, 0ms) * var(--anim-k, 1));
}
.seat-hole.is-reveal .seat-flip .card {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; transform: none;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; font-size: 8px; border-radius: 3px;
}
.seat-hole.is-reveal .seat-flip .seat-flip__front { transform: rotateY(180deg); }
.seat-hole.is-reveal .seat-flip .card-pip { display: none; }
.seat-hole.is-reveal .seat-flip .card-suit { top: 1.2em; }
@media (max-width: 600px) { .seat-hole.is-reveal { display: flex; bottom: -12px; } .seat-hole.is-reveal .seat-flip { width: 15px; height: 21px; } }

/* ---------- прожектор ---------- */
@keyframes mbFxBeam { 0% { transform: translate(-50%,-50%) rotate(-70deg); opacity: 0; } 12% { opacity: 1; } 85% { transform: translate(-50%,-50%) rotate(70deg); opacity: 1; } 100% { transform: translate(-50%,-50%) rotate(70deg); opacity: 0; } }
.mb-fx-beam {
  position: absolute; left: 50%; top: 50%; width: 120px; height: 160%; pointer-events: none; z-index: 39;
  transform-origin: 50% 50%; mix-blend-mode: screen;
  background: linear-gradient(90deg, transparent, rgba(255,243,207,.55) 40%, rgba(255,243,207,.7) 50%, rgba(255,243,207,.55) 60%, transparent);
  filter: blur(6px); animation: mbFxBeam calc(2.2s * var(--anim-k, 1)) ease-in-out forwards;
}
.seat--spot { box-shadow: 0 0 0 2px rgba(255,243,207,.9), 0 0 40px rgba(232,197,105,.8) !important; }

/* ---------- Режим наблюдателя ---------- */
/* Зритель видит стол и чат, но не интерфейс игрока: «Hero · Стек 0» и мёртвые кнопки
   действий читались как поломка. Панель заменяется одной строкой с приглашением. */
body.is-observer .hero-info,
body.is-observer .action-panel,
body.is-observer .hero-status { display: none; }
.observer-note {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 12px 16px; flex-wrap: wrap;
  color: var(--tx-dim, rgba(200,203,255,.65)); font-size: 13.5px; letter-spacing: .04em;
}
.observer-note .btn-join { min-height: 40px; }
