/* ============================================================
   Poker Night — poker.chebur-net.ru
   ============================================================ */

:root {
  /* ночь */
  --night-0: #0a0620;
  --night-1: #150c33;
  --night-2: #24124f;
  --night-3: #351a70;

  /* фиолетовая палитра панелей */
  --pod-1: #6a37cf;
  --pod-2: #4a1f9e;
  --pod-edge: #1b0b3d;
  --pod-hi: #a479ff;

  --violet: #7b46e8;
  --violet-lt: #a97dff;
  --pink: #ff6fd0;
  --gold: #ffc44d;
  --gold-dk: #d9932a;
  --mint: #57e6b0;
  --danger: #ff5f7e;

  /* стол */
  --felt-1: #2fa46a;
  --felt-2: #12704a;
  --felt-3: #0b4a32;
  --rail-1: #f0cf95;
  --rail-2: #c9974f;
  --rail-3: #8a5f2b;

  --text: #fff6ff;
  --text-dim: #cbb6f5;

  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 9px;

  --shadow-pod: 0 6px 0 var(--pod-edge), 0 10px 22px rgba(0, 0, 0, .45);
  --font-ui: 'Baloo 2', 'Nunito', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--night-0);
  color: var(--text);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============================================================
   ФОН — ночной лес
   ============================================================ */

.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; }

.bg-sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 110%, #3b1d6b 0%, transparent 60%),
    radial-gradient(90% 60% at 78% 8%, #4b2b8e 0%, transparent 55%),
    linear-gradient(180deg, #0a0620 0%, #180d3c 45%, #2a1354 100%);
}

.bg-stars { position: absolute; inset: 0; }
.bg-stars i {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: #fff;
  opacity: .8;
  animation: twinkle 3.6s ease-in-out infinite;
}
.bg-stars i.big { width: 3px; height: 3px; box-shadow: 0 0 6px #fff; }
@keyframes twinkle { 0%, 100% { opacity: .18; } 50% { opacity: .95; } }

.bg-moon {
  position: absolute; top: 6%; right: 9%;
  width: 92px; height: 92px; border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #fff9e6, #ffe6a8 55%, #f2c977);
  box-shadow: 0 0 60px 18px rgba(255, 226, 160, .22), inset -10px -8px 0 rgba(180, 140, 70, .18);
}
.bg-moon::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 62% 28%, rgba(190, 155, 90, .35) 0 7px, transparent 8px),
    radial-gradient(circle at 40% 62%, rgba(190, 155, 90, .28) 0 10px, transparent 11px),
    radial-gradient(circle at 72% 66%, rgba(190, 155, 90, .25) 0 5px, transparent 6px);
}

.bg-hills, .bg-forest { position: absolute; left: 0; right: 0; bottom: 0; }
.bg-hills { height: 46%; opacity: .85; }
.bg-forest { height: 62%; }
.bg-hills svg, .bg-forest svg { width: 100%; height: 100%; display: block; }

.bg-fire {
  position: absolute; left: 5%; bottom: 4%;
  width: 90px; height: 70px;
  filter: drop-shadow(0 0 26px rgba(255, 150, 50, .55));
}
.flame {
  position: absolute; bottom: 14px; left: 50%;
  width: 26px; height: 40px;
  margin-left: -13px;
  background: linear-gradient(180deg, #ffe27a, #ff8a2b 55%, #ff4d2b);
  border-radius: 50% 50% 46% 46% / 68% 68% 32% 32%;
  transform-origin: 50% 100%;
  animation: flicker 1.1s ease-in-out infinite alternate;
}
.flame.f2 {
  width: 16px; height: 26px; margin-left: -8px;
  background: linear-gradient(180deg, #fff6c8, #ffc24b);
  animation-duration: .72s;
  opacity: .9;
}
@keyframes flicker {
  0% { transform: scaleY(.9) scaleX(1.05) rotate(-3deg); }
  100% { transform: scaleY(1.12) scaleX(.94) rotate(3deg); }
}
.logs {
  position: absolute; bottom: 6px; left: 50%; width: 62px; height: 14px;
  margin-left: -31px;
  background: linear-gradient(180deg, #7a4b28, #4a2c17);
  border-radius: 8px;
  box-shadow: 0 -3px 0 rgba(255, 160, 60, .35);
}

.bg-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 45%, transparent 45%, rgba(6, 3, 20, .72) 100%);
  pointer-events: none;
}

/* ============================================================
   КАРКАС
   ============================================================ */

#app {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column;
}

/* --- верхняя панель --- */
.topbar {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
}

.brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 19px; letter-spacing: .5px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .5);
  user-select: none;
}
.brand b { color: var(--gold); }
.brand-ic {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(180deg, var(--pod-1), var(--pod-2));
  box-shadow: 0 4px 0 var(--pod-edge);
  font-size: 18px;
}

.top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 15px;
  border-radius: 999px;
  font-weight: 700; font-size: 14px;
  background: linear-gradient(180deg, var(--pod-1), var(--pod-2));
  box-shadow: 0 4px 0 var(--pod-edge), inset 0 1px 0 rgba(255, 255, 255, .28);
  transition: transform .12s, filter .12s;
}
.pill:hover { filter: brightness(1.12); }
.pill:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--pod-edge); }
.pill.gold {
  background: linear-gradient(180deg, #ffd777, var(--gold-dk));
  color: #4a2a04;
  box-shadow: 0 4px 0 #8a5c14, inset 0 1px 0 rgba(255, 255, 255, .55);
}
.pill.ghost {
  background: rgba(60, 30, 120, .55);
  box-shadow: 0 0 0 2px rgba(160, 120, 255, .35) inset;
}

.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  font-size: 17px;
  background: linear-gradient(180deg, var(--pod-1), var(--pod-2));
  box-shadow: 0 4px 0 var(--pod-edge), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .12s, filter .12s;
}
.icon-btn:hover { filter: brightness(1.15); }
.icon-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--pod-edge); }
.icon-btn.on { background: linear-gradient(180deg, #ffd777, var(--gold-dk)); color: #4a2a04; box-shadow: 0 4px 0 #8a5c14; }

.bank {
  display: flex; flex-direction: column; line-height: 1.05;
  padding: 4px 14px; border-radius: 12px;
  background: rgba(20, 8, 48, .6);
  box-shadow: inset 0 0 0 2px rgba(160, 120, 255, .3);
}
.bank small { font-size: 10px; color: var(--text-dim); letter-spacing: .6px; }
.bank b { font-size: 17px; color: var(--gold); }

/* ============================================================
   СТОЛ
   ============================================================ */

.stage-wrap {
  flex: 1 1 auto;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.stage {
  position: relative;
  width: 1060px; height: 640px;
  transform: scale(var(--scale, 1));
  transform-origin: center center;
  flex: 0 0 auto;
}

.table { position: absolute; left: 150px; right: 150px; top: 62px; bottom: 92px; }

/* Вертикальная сцена для телефонов */
.stage.portrait { width: 700px; height: 940px; }
.stage.portrait .table { left: 80px; right: 80px; top: 150px; bottom: 210px; }
.stage.portrait .felt-logo { font-size: 24px; letter-spacing: 4px; }
.stage.portrait .rail { border-radius: 50% / 34%; }
.stage.portrait .felt { border-radius: 50% / 34%; }
.stage.portrait .felt::after { border-radius: 50% / 34%; }

.rail {
  position: absolute; inset: 0;
  border-radius: 50% / 46%;
  background: linear-gradient(180deg, var(--rail-1), var(--rail-2) 55%, var(--rail-3));
  box-shadow:
    0 16px 0 rgba(60, 30, 10, .45),
    0 26px 50px rgba(0, 0, 0, .55),
    inset 0 3px 0 rgba(255, 255, 255, .5);
}

.felt {
  position: absolute; inset: 20px;
  border-radius: 50% / 46%;
  background:
    radial-gradient(70% 90% at 50% 32%, var(--felt-1) 0%, var(--felt-2) 58%, var(--felt-3) 100%);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .5), inset 0 4px 12px rgba(0, 0, 0, .4);
  overflow: hidden;
}
.felt::after {
  content: ''; position: absolute; inset: 14px;
  border-radius: 50% / 46%;
  border: 2px dashed rgba(255, 255, 255, .13);
}

.felt-logo {
  position: absolute; left: 50%; top: 30%;
  transform: translate(-50%, -50%);
  font-size: 34px; font-weight: 800; letter-spacing: 6px;
  color: rgba(255, 255, 255, .07);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .12);
  white-space: nowrap;
  pointer-events: none;
}

/* --- банк --- */
.pot-wrap {
  position: absolute; left: 50%; top: 33%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  pointer-events: none;
}
.pot-chips { display: flex; gap: -6px; height: 20px; align-items: flex-end; }
.pot-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(10, 40, 26, .78);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .18), 0 4px 12px rgba(0, 0, 0, .4);
  font-weight: 800; font-size: 17px;
  letter-spacing: .4px;
}
.pot-badge small { font-size: 11px; color: #b7f0d2; font-weight: 700; letter-spacing: 1px; }
.pot-badge b { color: var(--gold); }
.pot-badge.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.16); } }

.side-pots { display: flex; gap: 6px; font-size: 11px; color: #bff3d8; font-weight: 700; }
.side-pots span { background: rgba(10, 40, 26, .6); padding: 2px 8px; border-radius: 8px; }

/* --- общие карты --- */
.board {
  position: absolute; left: 50%; top: 56%;
  transform: translate(-50%, -50%);
  display: flex; gap: 9px;
}

.street-tag {
  position: absolute; left: 50%; top: 82%;
  transform: translateX(-50%);
  font-size: 11px; font-weight: 800; letter-spacing: 2.5px;
  color: rgba(255, 255, 255, .4);
  text-transform: uppercase;
}

/* --- крупье --- */
.croupier {
  position: absolute; left: 50%; top: -6px;
  transform: translate(-50%, -50%);
  width: 84px; height: 84px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #6d5bb8, #2c1f5e);
  box-shadow: 0 8px 0 #170e36, 0 0 0 4px rgba(255, 255, 255, .12), 0 0 34px rgba(140, 110, 255, .5);
  font-size: 34px;
  z-index: 4;
  animation: bob 4s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 7px)); } }
.croupier-hat {
  position: absolute; top: -14px; font-size: 26px;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .35));
}
.croupier-say {
  position: absolute; top: 92%; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(20, 8, 48, .92);
  padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .4), inset 0 0 0 2px rgba(160, 120, 255, .4);
  opacity: 0; transition: opacity .25s;
}
.croupier-say.show { opacity: 1; }

/* ============================================================
   МЕСТА ЗА СТОЛОМ
   ============================================================ */

.seats { position: absolute; inset: 0; }

.seat {
  position: absolute;
  left: var(--x); top: var(--y);
  transform: translate(-50%, -50%);
  width: 176px;
  z-index: 5;
}

.seat-row { display: flex; align-items: center; gap: 8px; }
.seat.flip .seat-row { flex-direction: row-reverse; }

.avatar {
  position: relative;
  flex: 0 0 auto;
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 26px;
  background: radial-gradient(circle at 34% 30%, var(--av-1, #7b5cff), var(--av-2, #3a1f8e));
  box-shadow: 0 5px 0 rgba(0, 0, 0, .45), 0 0 0 3px rgba(255, 255, 255, .16);
  transition: box-shadow .2s, transform .2s;
}
.seat.acting .avatar {
  box-shadow: 0 5px 0 rgba(0, 0, 0, .45), 0 0 0 3px var(--gold), 0 0 26px rgba(255, 196, 77, .8);
  transform: scale(1.06);
}
.seat.winner .avatar {
  box-shadow: 0 5px 0 rgba(0, 0, 0, .45), 0 0 0 4px var(--mint), 0 0 34px rgba(87, 230, 176, .9);
  animation: pop 0.5s ease;
}
@keyframes pop { 40% { transform: scale(1.18); } }
.seat.folded { opacity: .48; filter: grayscale(.6); }

.bot-tag {
  position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
  font-size: 9px; font-weight: 800; letter-spacing: .5px;
  padding: 1px 7px; border-radius: 999px;
  background: var(--night-1);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .2);
}
.you-tag { background: linear-gradient(180deg, #ffd777, var(--gold-dk)); color: #4a2a04; }

.pod {
  flex: 1 1 auto;
  min-width: 0;
  padding: 6px 10px 7px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--pod-1), var(--pod-2));
  box-shadow: var(--shadow-pod), inset 0 1px 0 rgba(255, 255, 255, .3);
  position: relative;
  overflow: hidden;
}
.pod::before {                       /* лёгкая «трещинка», как в оригинале */
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .1) 41%, transparent 43%),
    linear-gradient(200deg, transparent 62%, rgba(255, 255, 255, .08) 63%, transparent 65%);
  pointer-events: none;
}
.pod-name {
  font-size: 12px; font-weight: 700; color: #e6d8ff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: .3px;
}
.pod-chips { font-size: 17px; font-weight: 800; line-height: 1.1; }
.pod-chips.low { color: #ffb3b3; }

.pod-bar {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: rgba(0, 0, 0, .3);
  display: none;
}
.seat.acting.me .pod-bar { display: block; }
.pod-bar span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--mint), var(--gold));
}
.pod-bar span.run { width: 0%; transition: width linear; }

.act-badge {
  margin-top: 3px;
  display: inline-block;
  font-size: 11px; font-weight: 800; letter-spacing: .8px;
  padding: 2px 9px; border-radius: 7px;
  background: rgba(12, 5, 32, .55);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22);
  min-height: 18px;
}
.act-badge[data-a="ФОЛД"] { background: rgba(120, 20, 40, .6); color: #ffbccb; }
.act-badge[data-a="ЧЕК"] { color: #cfe9ff; }
.act-badge[data-a="КОЛЛ"] { color: #b9ffdf; }
.act-badge[data-a="БЕТ"], .act-badge[data-a="РЕЙЗ"] { background: rgba(255, 160, 40, .28); color: #ffdf9f; }
.act-badge[data-a="ОЛЛ-ИН"] { background: linear-gradient(180deg, #ff7a5c, #d63a2f); color: #fff; }
.act-badge.empty { visibility: hidden; }

/* карманные карты — выглядывают из-за таблички игрока */
.hole {
  position: absolute;
  left: 50%; bottom: 100%;
  transform: translate(calc(-50% + var(--hx, 0px)), var(--hy, 20px));
  display: flex; gap: 4px;
  z-index: -1;
}
.seat.down .hole { bottom: auto; top: 100%; }
.seat.me .hole { gap: 7px; z-index: 6; }

/* Карты союзника нужно читать, а не угадывать: выносим их перед
   табличкой, как свои. С z-index: -1 они прятались за плашкой имени,
   и в командном режиме половина карты пропадала. */
.seat.mate .hole { z-index: 6; }

/* Верхнее место — особый случай, и не только для союзника.
   Там карты лежат ПОД табличкой, а смещение «выглянуть из-за плашки»
   тянет их вверх: получалось, что карту наполовину закрывает имя, а
   вторую половину съедает золотой борт стола. Опускаем их целиком на
   сукно и выносим вперёд — пусть лучше заходят на стол, там они
   читаются, как у боковых игроков. */
.seat.down .hole {
  z-index: 6;
  transform: translate(calc(-50% + var(--hx, 0px)), 22px);
}
.seat.mate .card-face { box-shadow: 0 3px 0 rgba(0, 0, 0, .35), 0 0 0 2px var(--team-color, #7b5cff); }

/* фишки ставки */
.bet-stack {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(calc(-50% + var(--bx, 0px)), calc(-50% + var(--by, -110px)));
  display: flex; align-items: center; gap: 5px;
  padding: 3px 9px 3px 4px;
  border-radius: 999px;
  background: rgba(8, 30, 20, .8);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .2);
  font-size: 13px; font-weight: 800; color: var(--gold);
  opacity: 0; transition: opacity .2s, transform .3s;
  pointer-events: none;
  white-space: nowrap;
}
.bet-stack.show { opacity: 1; }

.chip-ic {
  width: 16px; height: 16px; border-radius: 50%;
  background: conic-gradient(var(--gold) 0 25%, #fff 0 50%, var(--gold) 0 75%, #fff 0);
  box-shadow: 0 0 0 2px var(--gold-dk);
  flex: 0 0 auto;
}

.dealer-btn {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(calc(-50% + var(--dx, 46px)), calc(-50% + var(--dy, 20px)));
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #fff, #d9d2e8);
  color: #2b1560; font-weight: 800; font-size: 13px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .4);
  z-index: 7;
  transition: transform .35s ease;
}

/* всплывающий стикер */
.sticker-pop {
  position: absolute; left: 50%; top: -10px;
  transform: translateX(-50%);
  font-size: 40px;
  pointer-events: none;
  opacity: 0;
  z-index: 20;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5));
}
.sticker-pop.go { animation: stickerUp 1.9s ease-out forwards; }
@keyframes stickerUp {
  0% { opacity: 0; transform: translateX(-50%) scale(.3) translateY(10px); }
  18% { opacity: 1; transform: translateX(-50%) scale(1.25) translateY(-8px); }
  30% { transform: translateX(-50%) scale(1) translateY(-12px); }
  75% { opacity: 1; transform: translateX(-50%) scale(1) translateY(-24px); }
  100% { opacity: 0; transform: translateX(-50%) scale(.85) translateY(-46px); }
}

/* выигрыш «+250» */
.win-float {
  position: absolute; left: 50%; top: 0;
  transform: translateX(-50%);
  font-weight: 800; font-size: 20px; color: var(--mint);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .55);
  pointer-events: none;
  animation: winUp 1.8s ease-out forwards;
  z-index: 21;
}
@keyframes winUp {
  0% { opacity: 0; transform: translateX(-50%) translateY(6px) scale(.7); }
  25% { opacity: 1; transform: translateX(-50%) translateY(-8px) scale(1.15); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-52px) scale(1); }
}

.hand-tip {
  position: absolute; left: 50%; top: 100%;
  transform: translate(-50%, 6px);
  white-space: nowrap;
  font-size: 11px; font-weight: 800;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(10, 4, 30, .9);
  box-shadow: inset 0 0 0 1.5px rgba(160, 120, 255, .5);
  color: #ffe9a8;
  opacity: 0; transition: opacity .3s;
  z-index: 12;
}
.hand-tip.show { opacity: 1; }

/* У верхних мест карты лежат ПОД табличкой, и плашка с комбинацией
   ложилась ровно на них — из-за этого не читались ни карты союзника,
   ни чужая рука на вскрытии. Там плашка уходит наверх. */
.seat.down .hand-tip {
  top: auto; bottom: 100%;
  transform: translate(-50%, -6px);
}

/* ============================================================
   КАРТЫ
   ============================================================ */

.card {
  --w: 44px;
  width: var(--w);
  height: calc(var(--w) * 1.42);
  perspective: 700px;
  flex: 0 0 auto;
  position: relative;      /* под ::after с подсветкой, см. .card.hl */
}
.card.big { --w: 62px; }
.card.board-card { --w: 58px; }

.card-in {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .42s cubic-bezier(.3, 1.4, .5, 1);
}
.card.up .card-in { transform: rotateY(180deg); }

.card-face {
  position: absolute; inset: 0;
  border-radius: 7px;
  backface-visibility: hidden;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .35), 0 5px 12px rgba(0, 0, 0, .35);
  overflow: hidden;
}

.card-back {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .08) 0 4px, transparent 4px 8px),
    linear-gradient(160deg, #8a5cff, #4b1fa8 60%, #2c1070);
  border: 2px solid #d9c8ff;
}
.card-back::after {
  content: '';
  position: absolute; inset: 22% 26%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffe27a, #e08a2b);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .5);
}

.card-front {
  transform: rotateY(180deg);
  background: linear-gradient(180deg, #fffdf8, #ece2f7);
  border: 2px solid #fff;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: #2a1656;
  font-weight: 800;
  line-height: 1;
}
.card-front .r { font-size: calc(var(--w) * .46); letter-spacing: -1px; }
.card-front .s { font-size: calc(var(--w) * .40); margin-top: 2px; }
.card-front .corner {
  position: absolute; top: 3px; left: 4px;
  font-size: calc(var(--w) * .22);
  line-height: 1;
}
.card-front.red { color: #e0344f; }
.card-front.red .corner { color: #e0344f; }

.card.dim .card-front { filter: grayscale(.75) brightness(.82); }
/* Золотая рамка статична — она на самой грани карты.
   А вот сияние вынесено на внешнюю обёртку и живёт в ::after.

   Раньше анимация box-shadow висела прямо на .card-front, а та
   повёрнута через rotateY(180deg). Браузер перерисовывал трёхмерный
   слой на каждом кадре и каждый раз округлял его положение по-своему —
   от этого масть и ранг мелко дрожали, и в углу, и по центру.
   Обёртка .card в 3D не повёрнута, её перерисовка текст не задевает. */
.card.hl .card-front {
  box-shadow: inset 0 0 0 3px var(--gold);
}
.card.hl::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 9px;
  pointer-events: none;
  animation: cardGlow 1.4s ease-in-out infinite;
}
@keyframes cardGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 196, 77, 0); }
  50%      { box-shadow: 0 0 18px 2px rgba(255, 196, 77, .85); }
}

@media (prefers-reduced-motion: reduce) {
  .card.hl::after { animation: none; box-shadow: 0 0 14px rgba(255, 196, 77, .7); }
}

/* Без fill-mode: если анимация почему-то не проиграется (фоновая вкладка,
   экономия энергии), карта просто окажется на своём месте, а не улетит. */
.card.deal-in { animation: dealIn .34s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes dealIn {
  from { opacity: 0; transform: translate(var(--from-x, 0), var(--from-y, -180px)) scale(.6) rotate(-16deg); }
  to { opacity: 1; transform: none; }
}

.card-slot {
  width: 58px; height: 82px;
  border-radius: 7px;
  border: 2px dashed rgba(255, 255, 255, .12);
  flex: 0 0 auto;
}

/* ============================================================
   ПАНЕЛЬ ДЕЙСТВИЙ
   ============================================================ */

.actionbar {
  flex: 0 0 auto;
  padding: 8px 14px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  min-height: 108px;
  justify-content: center;
}

.act-hint {
  font-size: 13px; font-weight: 700; color: var(--text-dim);
  letter-spacing: .3px;
  text-align: center;
}
.act-hint b { color: var(--gold); }

.bet-row {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; justify-content: center;
}

.quick { display: flex; gap: 6px; }
.quick button {
  height: 30px; padding: 0 11px;
  border-radius: 9px;
  font-size: 12px; font-weight: 800;
  background: rgba(70, 36, 140, .75);
  box-shadow: inset 0 0 0 2px rgba(160, 120, 255, .4);
  transition: filter .12s;
}
.quick button:hover { filter: brightness(1.25); }
.quick button:disabled { opacity: .35; cursor: default; }

.slider-wrap {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(20, 8, 48, .7);
  box-shadow: inset 0 0 0 2px rgba(160, 120, 255, .3);
}
.slider-wrap output {
  min-width: 74px; text-align: center;
  font-weight: 800; font-size: 16px; color: var(--gold);
}

input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 220px; height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--violet-lt) var(--fill, 0%), rgba(255, 255, 255, .18) var(--fill, 0%));
  outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(180deg, #ffd777, var(--gold-dk));
  box-shadow: 0 2px 0 #8a5c14, 0 0 0 3px rgba(255, 255, 255, .25);
  cursor: pointer;
}
input[type=range]::-moz-range-thumb {
  width: 22px; height: 22px; border: none; border-radius: 50%;
  background: linear-gradient(180deg, #ffd777, var(--gold-dk));
  box-shadow: 0 2px 0 #8a5c14, 0 0 0 3px rgba(255, 255, 255, .25);
  cursor: pointer;
}

.main-actions { display: flex; gap: 12px; }

.act-btn {
  min-width: 150px; height: 52px;
  padding: 0 20px;
  border-radius: 15px;
  font-size: 16px; font-weight: 800; letter-spacing: 1.2px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  line-height: 1.05;
  transition: transform .1s, filter .12s;
  box-shadow: 0 5px 0 var(--btn-edge, #241048), inset 0 1px 0 rgba(255, 255, 255, .3);
  background: linear-gradient(180deg, var(--btn-1, #6a37cf), var(--btn-2, #40188f));
}
.act-btn small { font-size: 11px; font-weight: 700; opacity: .85; letter-spacing: .4px; }
.act-btn:hover:not(:disabled) { filter: brightness(1.14); }
.act-btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 var(--btn-edge, #241048); }
.act-btn:disabled { opacity: .35; cursor: default; filter: grayscale(.5); }

.act-btn.fold { --btn-1: #ff6d80; --btn-2: #c02744; --btn-edge: #6d0f22; }
.act-btn.check { --btn-1: #59c7ff; --btn-2: #1f6fc4; --btn-edge: #0d3665; }
.act-btn.bet { --btn-1: #ffd061; --btn-2: #e08a12; --btn-edge: #7d4a05; color: #40230a; }
.act-btn.allin { --btn-1: #ff8f5c; --btn-2: #d63a2f; --btn-edge: #6e1610; }

/* ============================================================
   ЛОГ
   ============================================================ */

/* Старая панель журнала заменена панелью с вкладками (.sidepanel):
   разметка и стили ниже, в разделе «БОКОВАЯ ПАНЕЛЬ». */


/* ============================================================
   СТИКЕРЫ
   ============================================================ */

.stickers {
  position: fixed; right: 12px; bottom: 130px;
  width: 268px; z-index: 40;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #4c25a3, #331673);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .55), inset 0 0 0 2px rgba(180, 140, 255, .35);
  padding: 12px;
  transform-origin: bottom right;
  transition: transform .2s, opacity .2s;
}
.stickers.hide { transform: scale(.85) translateY(12px); opacity: 0; pointer-events: none; }
.stickers h4 {
  margin: 0 0 9px;
  font-size: 13px; letter-spacing: 2px; text-align: center; color: #e2d3ff;
}
.sticker-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.sticker-grid button {
  aspect-ratio: 1; border-radius: 10px;
  font-size: 21px;
  display: grid; place-items: center;
  background: rgba(15, 6, 40, .45);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .12);
  transition: transform .12s, background .12s;
}
.sticker-grid button:hover { transform: scale(1.16); background: rgba(255, 255, 255, .14); }

/* ============================================================
   МОДАЛЬНЫЕ ОКНА
   ============================================================ */

.modal-bg {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8, 3, 24, .72);
  backdrop-filter: blur(4px);
  display: grid; place-items: center;
  padding: 20px;
  animation: fadeIn .18s ease;
}
@keyframes fadeIn { from { opacity: 0; } }
.modal-bg.hide { display: none; }

.modal {
  width: min(560px, 100%);
  max-height: 86vh; overflow-y: auto;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #4c25a3, #2b1268);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6), inset 0 0 0 3px rgba(180, 140, 255, .4);
  padding: 22px 24px;
  animation: modalIn .25s cubic-bezier(.2, 1.3, .4, 1);
}
@keyframes modalIn { from { transform: translateY(24px) scale(.94); opacity: 0; } }

.modal h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: .5px; }
.modal h3 { margin: 18px 0 6px; font-size: 15px; color: var(--gold); letter-spacing: .5px; }
.modal p, .modal li { font-size: 14px; line-height: 1.55; color: #ded1ff; }
.modal ul, .modal ol { margin: 6px 0; padding-left: 20px; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

.rank-list { display: grid; gap: 4px; margin-top: 8px; }
.rank-list div {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 5px 11px; border-radius: 8px;
  background: rgba(15, 6, 40, .4);
  font-size: 13px;
}
.rank-list div b { color: var(--gold); font-weight: 700; }
.rank-list span { color: #bda9f0; font-size: 12px; }

.field { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0; }
.field label { font-size: 14px; font-weight: 700; }
.field small { display: block; font-size: 11.5px; color: #b6a2e6; font-weight: 600; }
.field select, .field input[type=text], .field input[type=number] {
  height: 36px; padding: 0 10px; min-width: 130px;
  border-radius: 10px; border: none;
  background: rgba(12, 5, 32, .7);
  color: var(--text); font-family: inherit; font-weight: 700; font-size: 14px;
  box-shadow: inset 0 0 0 2px rgba(160, 120, 255, .35);
}

.switch {
  position: relative; width: 50px; height: 28px;
  border-radius: 999px;
  background: rgba(12, 5, 32, .7);
  box-shadow: inset 0 0 0 2px rgba(160, 120, 255, .35);
  flex: 0 0 auto;
  transition: background .18s;
}
.switch.on { background: linear-gradient(180deg, #ffd777, var(--gold-dk)); }
.switch::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .4);
  transition: transform .18s cubic-bezier(.3, 1.4, .5, 1);
}
.switch.on::after { transform: translateX(22px); }

/* ============================================================
   ПРОЧЕЕ
   ============================================================ */

.toast {
  position: fixed; left: 50%; bottom: 130px;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(18, 8, 44, .95);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5), inset 0 0 0 2px rgba(160, 120, 255, .4);
  font-weight: 700; font-size: 14px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 90;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.banner {
  position: absolute; left: 50%; top: 44%;
  transform: translate(-50%, -50%) scale(.7);
  padding: 12px 34px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffd777, var(--gold-dk));
  color: #3d2205;
  font-size: 26px; font-weight: 800; letter-spacing: 1px;
  text-align: center;
  box-shadow: 0 10px 0 #8a5c14, 0 18px 40px rgba(0, 0, 0, .5);
  opacity: 0; pointer-events: none;
  z-index: 30;
  white-space: nowrap;
}
.banner small { display: block; font-size: 13px; opacity: .8; letter-spacing: 0; }
.banner.show { animation: bannerIn 2.4s ease forwards; }
@keyframes bannerIn {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
  12% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
  20% { transform: translate(-50%, -50%) scale(1); }
  82% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(.94); }
}

/* летящая фишка */
.fly-chip {
  position: absolute;
  width: 16px; height: 16px; border-radius: 50%;
  background: conic-gradient(var(--gold) 0 25%, #fff 0 50%, var(--gold) 0 75%, #fff 0);
  box-shadow: 0 0 0 2px var(--gold-dk);
  z-index: 25;
  pointer-events: none;
  transition: transform .5s cubic-bezier(.4, 0, .3, 1), opacity .5s;
}

.fx { position: absolute; inset: 0; pointer-events: none; z-index: 24; }

/* ============================================================
   АДАПТИВ
   ============================================================ */

@media (max-width: 900px) {
  .bg-moon { width: 66px; height: 66px; top: 3%; right: 5%; }
  .bg-fire { transform: scale(.75); left: 2%; }
  .brand span:last-child { display: none; }
  .stickers { right: 8px; bottom: 120px; width: 232px; }
}

@media (max-width: 620px) {
  .topbar { padding: 7px 8px; gap: 5px; flex-wrap: nowrap; }
  .top-actions { gap: 5px; }
  .bank-hand, #btnKickBot, #btnLog { display: none; }
  #btnAddBot { font-size: 0; padding: 0 10px; }
  #btnAddBot::before { content: '＋'; font-size: 16px; }
  .pill { height: 32px; padding: 0 11px; font-size: 12.5px; }
  .icon-btn { width: 33px; height: 33px; font-size: 15px; }
  .bank { padding: 3px 10px; }
  .bank b { font-size: 15px; }
  .act-btn { min-width: 0; flex: 1 1 0; height: 48px; font-size: 14px; padding: 0 8px; letter-spacing: .5px; }
  .main-actions { width: 100%; padding: 0 6px; }
  input[type=range] { width: 150px; }
  .actionbar { padding: 4px 6px 10px; gap: 7px; min-height: 96px; }
  .quick button { height: 27px; padding: 0 8px; font-size: 11px; }
  .slider-wrap { padding: 4px 10px; gap: 7px; }
  .slider-wrap output { min-width: 60px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================================================
   СЕТЕВАЯ ВЕРСИЯ: пустые места, автопилот, состояние связи
   ============================================================ */

/* --- пустое место: прозрачный кружок с пунктиром и серым плюсом --- */

.seat-empty {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: none;
}
.seat.is-empty .seat-empty { display: block; }
.seat.is-empty .seat-row,
.seat.is-empty .bet-stack,
.seat.is-empty .dealer-btn,
.seat.is-empty .hand-tip { display: none; }

.seat-plus {
  width: 58px; height: 58px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 26px; font-weight: 700; line-height: 1;
  color: rgba(214, 200, 255, .45);
  background: rgba(20, 10, 46, .35);
  border: 2px dashed rgba(180, 150, 255, .4);
  backdrop-filter: blur(2px);
  transition: transform .15s, border-color .15s, color .15s, background .15s;
}
.seat-plus:hover {
  transform: scale(1.1);
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(60, 30, 120, .5);
}

/* подсказка-облачко со стрелкой к кружку */
.seat-hint {
  position: absolute;
  left: 50%; bottom: 100%;
  transform: translate(-50%, -14px);
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff8e6, #ffe9b0);
  color: #4a2f05;
  font-size: 13px; font-weight: 800;
  box-shadow: 0 5px 0 rgba(140, 95, 20, .5), 0 10px 22px rgba(0, 0, 0, .4);
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.seat-hint::after {
  content: '';
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #ffe9b0;
}
.seat.hinting .seat-hint {
  opacity: 1;
  animation: hintWave 1.4s ease-in-out infinite;
}
@keyframes hintWave {
  0%, 100% { transform: translate(-50%, -14px); }
  50%      { transform: translate(-50%, -22px); }
}
.seat.hinting .seat-plus {
  border-color: var(--gold);
  color: var(--gold);
  animation: plusPulse 1.4s ease-in-out infinite;
}
@keyframes plusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 196, 77, .5); }
  50%      { box-shadow: 0 0 0 10px rgba(255, 196, 77, 0); }
}

/* --- плашка «за игрока играет бот» --- */

.ai-tag {
  position: absolute;
  left: -6px; bottom: -6px;
  padding: 1px 6px;
  border-radius: 6px;
  background: #2a0a12;
  color: #ff6b80;
  font-size: 9px; font-weight: 800; letter-spacing: .6px;
  box-shadow: 0 0 0 1.5px #ff6b80;
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}
.ai-tag.on {
  animation: aiIn .45s cubic-bezier(.2, 1.5, .4, 1) forwards;
}
@keyframes aiIn {
  0%   { transform: scale(0) translate(14px, -10px); opacity: 0; }
  60%  { transform: scale(1.25) translate(0, 0); opacity: 1; }
  100% { transform: scale(1) translate(0, 0); opacity: 1; }
}

/* --- индикатор связи --- */

.net-status {
  display: none;
  align-items: center; gap: 7px;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 12.5px; font-weight: 700;
  background: rgba(20, 8, 48, .7);
  box-shadow: inset 0 0 0 2px rgba(160, 120, 255, .3);
}
.net-status.show { display: inline-flex; }
.net-status::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
  animation: blink 1.1s ease-in-out infinite;
}
.net-status.bad { color: #ff8ea0; }
.net-status.wait { color: #ffd777; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* --- таймер краснеет на исходе --- */

.pod-bar span.warn {
  background: linear-gradient(90deg, #ff6b80, #ffb14d);
}

/* --- характер бота приписан к имени, поэтому имя мельче --- */

.pod-name { font-size: 11.5px; }

/* --- выбор аватарки в окне входа --- */

/* Аватарок полторы сотни — сетка прокручивается, иначе окно
   регистрации растянулось бы на три экрана */
.ava-pick {
  display: grid;
  grid-template-columns: repeat(auto-fill, 38px);
  gap: 6px;
  max-width: 300px;
  max-height: 184px;
  overflow-y: auto;
  padding-right: 6px;
}
.ava-pick::-webkit-scrollbar { width: 6px; }
.ava-pick::-webkit-scrollbar-thumb { background: rgba(160, 120, 255, .45); border-radius: 3px; }
.ava-opt {
  width: 38px; height: 38px;
  border-radius: 10px;
  font-size: 19px;
  display: grid; place-items: center;
  background: rgba(15, 6, 40, .45);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .12);
  transition: transform .12s, box-shadow .12s;
}
.ava-opt:hover { transform: scale(1.12); }
.ava-opt.on {
  box-shadow: inset 0 0 0 2.5px var(--gold);
  background: rgba(255, 196, 77, .18);
}

/* ссылка для друзей растягивается на всю ширину поля */
#sLink { flex: 1 1 auto; min-width: 0; font-size: 12.5px; }

@media (max-width: 620px) {
  #btnSit { font-size: 0; padding: 0 10px; }
  #btnSit::before { content: 'Сесть'; font-size: 12.5px; }
  .net-status { padding: 4px 9px; font-size: 11px; }
}

/* ============================================================
   АККАУНТЫ: вкладки входа, код восстановления, карточка профиля
   ============================================================ */

.tabs {
  display: flex; gap: 6px;
  margin: 14px 0 18px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(15, 6, 40, .45);
}
.tab {
  flex: 1 1 0;
  height: 36px;
  border-radius: 9px;
  font-size: 14px; font-weight: 700;
  color: #c9b6f5;
  transition: background .15s, color .15s;
}
.tab:hover { color: #fff; }
.tab.on {
  background: linear-gradient(180deg, var(--pod-1), var(--pod-2));
  color: #fff;
  box-shadow: 0 2px 0 var(--pod-edge);
}

.form-msg {
  min-height: 20px;
  margin-top: 10px;
  font-size: 13.5px; font-weight: 700;
  color: #ffb3c0;
}
.form-msg.bad::before { content: '⚠ '; }

.field input[type=password] {
  height: 36px; padding: 0 10px; min-width: 130px;
  border-radius: 10px; border: none;
  background: rgba(12, 5, 32, .7);
  color: var(--text); font-family: inherit; font-weight: 700; font-size: 14px;
  box-shadow: inset 0 0 0 2px rgba(160, 120, 255, .35);
}

.recovery-code {
  margin: 16px 0;
  padding: 16px;
  border-radius: 12px;
  background: rgba(12, 5, 32, .75);
  box-shadow: inset 0 0 0 2px var(--gold);
  color: var(--gold);
  font-family: 'Nunito', monospace;
  font-size: clamp(17px, 4.4vw, 24px);
  font-weight: 800;
  letter-spacing: 3px;
  text-align: center;
  user-select: all;
  word-break: break-all;
}

.acc-card {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  margin: 10px 0;
  border-radius: 12px;
  background: rgba(15, 6, 40, .45);
  box-shadow: inset 0 0 0 1.5px rgba(160, 120, 255, .3);
}
.acc-emoji {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  font-size: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #7b5cff, #3a1f8e);
  flex: 0 0 auto;
}
.acc-card b { display: block; font-size: 16px; }
.acc-card small { display: block; font-size: 12px; color: #b6a2e6; }

/* бейдж «кто вы» в шапке */
.acc-badge {
  display: none;
  align-items: center;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 12.5px; font-weight: 700;
  background: rgba(20, 8, 48, .7);
  box-shadow: inset 0 0 0 2px rgba(255, 196, 77, .4);
  color: var(--gold);
  max-width: 130px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.acc-badge:not(:empty) { display: inline-flex; }
.acc-badge { cursor: pointer; transition: filter .14s, transform .14s; }
.acc-badge:hover { filter: brightness(1.25); transform: translateY(-1px); }
.acc-badge.guest { color: #b6a2e6; box-shadow: inset 0 0 0 2px rgba(160, 120, 255, .3); }

@media (max-width: 620px) {
  .acc-badge { display: none !important; }
}

/* ============================================================
   КОМАНДНЫЕ РЕЖИМЫ
   ============================================================ */

/* Команда читается цветом каймы — союзники сидят через одного,
   поэтому по месту их не опознать */
.seat[data-team] .pod {
  box-shadow:
    var(--shadow-pod),
    inset 0 1px 0 rgba(255, 255, 255, .3),
    inset 0 0 0 2px var(--team-color);
}
.seat[data-team] .avatar {
  box-shadow: 0 5px 0 rgba(0, 0, 0, .45), 0 0 0 3px var(--team-color);
}
.seat[data-team].acting .avatar {
  box-shadow:
    0 5px 0 rgba(0, 0, 0, .45),
    0 0 0 3px var(--team-color),
    0 0 26px var(--team-color);
}

/* Полоска команды поверх таблички */
.seat[data-team] .pod::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--team-color);
}

/* Союзник — его карты открыты, помечаем явно */
.seat.mate .pod-name::before {
  content: '★ ';
  color: var(--team-color);
}
.seat.mate .hole .card .card-front {
  box-shadow: inset 0 0 0 2px var(--team-color);
}

/* Счёт команд в шапке */
.team-scores { display: flex; gap: 6px; align-items: center; }
.team-pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 11px;
  border-radius: 999px;
  font-size: 13px; font-weight: 800;
  background: rgba(20, 8, 48, .7);
  box-shadow: inset 0 0 0 2px var(--tc);
  color: var(--tc);
  white-space: nowrap;
}
.team-pill i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--tc);
  flex: 0 0 auto;
}
.team-pill.mine { background: color-mix(in srgb, var(--tc) 22%, rgba(20, 8, 48, .7)); }
.team-pill b { color: #fff; font-weight: 800; }

/* И на четырёх, и на шести местах верхнее место приходится ровно туда,
   где сидел крупье. Сдвигаем его в промежуток между верхним и левым
   местом — так стол остаётся без дыр, а крупье никуда не девается.
   Вертикальный стол уже, промежуток там другой — отсюда вторая строчка. */
.croupier { left: 17%; }
.stage.portrait .croupier { left: 28.7%; top: -3.4%; }

@media (max-width: 900px) {
  .team-pill { height: 26px; padding: 0 8px; font-size: 11.5px; }
}
@media (max-width: 620px) {
  .team-scores { display: none; }
}

/* выбор режима в настройках */
.mode-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.mode-opt {
  padding: 10px 12px;
  border-radius: 12px;
  text-align: left;
  background: rgba(15, 6, 40, .45);
  box-shadow: inset 0 0 0 1.5px rgba(160, 120, 255, .3);
  transition: box-shadow .15s, background .15s;
}
.mode-opt b { display: block; font-size: 14.5px; font-weight: 800; }
.mode-opt small { display: block; font-size: 11.5px; color: #b6a2e6; margin-top: 2px; }
.mode-opt:hover { background: rgba(60, 30, 120, .5); }
.mode-opt.on {
  box-shadow: inset 0 0 0 2.5px var(--gold);
  background: rgba(255, 196, 77, .16);
}
.mode-pending { color: var(--gold); font-weight: 700; font-size: 13px; }

/* ============================================================
   ЗАКРЕПЛЕНИЕ КАРТЫ
   ============================================================ */

.pin-row {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #4c25a3, #2f1570);
  box-shadow: 0 6px 0 var(--pod-edge), inset 0 0 0 2px var(--gold);
  position: relative;
  overflow: hidden;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  animation: pinIn .3s cubic-bezier(.2, 1.3, .4, 1);
}
@keyframes pinIn { from { transform: translateY(14px); opacity: 0; } }

.pin-head { display: flex; flex-direction: column; max-width: 300px; }
.pin-head b { font-size: 14.5px; color: var(--gold); }
.pin-hint { font-size: 11.5px; color: #cbb6f5; line-height: 1.35; }

.pin-cards { display: flex; gap: 8px; }
.pin-card {
  width: 52px; height: 74px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fffdf8, #ece2f7);
  color: #2a1656;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-weight: 800; line-height: 1;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .35);
  transition: transform .13s, box-shadow .13s;
}
.pin-card .r { font-size: 22px; }
.pin-card .s { font-size: 19px; margin-top: 3px; }
.pin-card.red { color: #e0344f; }
.pin-card:hover {
  transform: translateY(-5px) scale(1.06);
  box-shadow: 0 8px 0 rgba(0, 0, 0, .35), 0 0 0 3px var(--gold);
}

.pin-skip { height: 36px; padding: 0 16px; }

.pin-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 4px;
  background: rgba(0, 0, 0, .3);
}
.pin-bar span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--mint), var(--gold));
}

/* Закреплённая карта помечается прямо на столе */
.card.pinned .card-front::after {
  content: '★';
  position: absolute;
  right: 3px; bottom: 2px;
  font-size: 13px;
  color: var(--team-color, var(--gold));
  text-shadow: 0 0 3px rgba(0, 0, 0, .4);
}
.card.pinned .card-front {
  box-shadow: inset 0 0 0 2.5px var(--team-color, var(--gold));
}

@media (max-width: 620px) {
  .pin-row { gap: 8px; padding: 8px 10px; }
  .pin-head { max-width: 100%; text-align: center; }
  .pin-head b { font-size: 13px; }
  .pin-hint { font-size: 10.5px; }
  .pin-card { width: 44px; height: 62px; }
  .pin-card .r { font-size: 18px; }
}

/* ============================================================
   БОКОВАЯ ПАНЕЛЬ: ЧАТ И ЖУРНАЛ
   ============================================================ */

.sidepanel {
  position: fixed; right: 12px; top: 62px;
  width: 288px;
  max-height: min(58vh, 520px);
  z-index: 30;
  display: flex; flex-direction: column;
  border-radius: var(--r-lg);
  background: rgba(18, 8, 44, .9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5), inset 0 0 0 2px rgba(160, 120, 255, .28);
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: transform .28s ease, opacity .28s;
}
.sidepanel.hide { transform: translateX(calc(100% + 20px)); opacity: 0; pointer-events: none; }

.side-head {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px 6px 10px;
  border-bottom: 2px solid rgba(160, 120, 255, .2);
}
.side-tabs { display: flex; gap: 4px; flex: 1 1 auto; }
.side-tab {
  padding: 5px 12px;
  border-radius: 9px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .4px;
  color: #a894d8;
  transition: background .15s, color .15s;
}
.side-tab:hover { color: #fff; }
.side-tab.on { background: rgba(120, 80, 220, .5); color: #fff; }
.side-tab span { opacity: .6; font-weight: 700; }

.side-close {
  width: 26px; height: 26px;
  border-radius: 8px;
  font-size: 19px; line-height: 1;
  color: #a894d8;
  flex: 0 0 auto;
}
.side-close:hover { color: #fff; background: rgba(255, 255, 255, .1); }

.side-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.side-body.hide { display: none; }
.side-body::-webkit-scrollbar { width: 6px; }
.side-body::-webkit-scrollbar-thumb { background: rgba(160, 120, 255, .4); border-radius: 3px; }

/* --- чат --- */

#chatPane { display: flex; flex-direction: column; overflow: hidden; }

.chat-list {
  flex: 1 1 auto; min-height: 120px;
  overflow-y: auto;
  padding: 8px 12px;
  font-size: 13px; line-height: 1.45;
  display: flex; flex-direction: column; gap: 3px;
}
.chat-list::-webkit-scrollbar { width: 6px; }
.chat-list::-webkit-scrollbar-thumb { background: rgba(160, 120, 255, .4); border-radius: 3px; }

.chat-msg { color: #ded1ff; word-break: break-word; }
.chat-who { color: var(--gold); font-weight: 800; }
.chat-msg.team { color: #fff; }
.chat-msg.team .chat-who { color: var(--tc, var(--gold)); }
.chat-msg.system { color: #8f79c9; font-style: italic; font-size: 12px; }

.chat-input {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 5px;
  padding: 7px;
  border-top: 2px solid rgba(160, 120, 255, .2);
  background: rgba(12, 5, 32, .5);
}

/* Кнопка канала: серо-белая для общего, цвет команды — для командного */
.chat-channel {
  flex: 0 0 auto;
  height: 32px; padding: 0 11px;
  border-radius: 9px;
  font-size: 12px; font-weight: 800;
  background: rgba(255, 255, 255, .12);
  color: #e8e2f5;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3);
  transition: background .15s, color .15s, box-shadow .15s;
  white-space: nowrap;
}
.chat-channel:hover { background: rgba(255, 255, 255, .2); }
.chat-channel.team {
  color: var(--tc);
  background: color-mix(in srgb, var(--tc) 20%, transparent);
  box-shadow: inset 0 0 0 2px var(--tc);
}

.chat-input input {
  flex: 1 1 auto; min-width: 0;
  height: 32px; padding: 0 10px;
  border: none; border-radius: 9px;
  background: rgba(12, 5, 32, .8);
  color: var(--text);
  font-family: inherit; font-size: 13px; font-weight: 600;
  box-shadow: inset 0 0 0 1.5px rgba(160, 120, 255, .3);
}
.chat-input input::placeholder { color: #8f79c9; }
.chat-input input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--violet-lt); }

.chat-send {
  flex: 0 0 auto;
  width: 32px; height: 32px;
  border-radius: 9px;
  font-size: 14px;
  background: linear-gradient(180deg, var(--pod-1), var(--pod-2));
  box-shadow: 0 2px 0 var(--pod-edge);
}
.chat-send:active { transform: translateY(2px); box-shadow: none; }

/* счётчик непрочитанного на кнопке в шапке */
#btnLog { position: relative; }
#btnLog[data-unread]::after {
  content: attr(data-unread);
  position: absolute; top: -4px; right: -4px;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 10px; font-weight: 800;
  display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--night-1);
}

/* журнал внутри той же панели */
.log-body { padding: 8px 12px; font-size: 12.5px; line-height: 1.5; }
.log-body p { margin: 0 0 3px; color: #d9caff; }
.log-body p b { color: #fff; }
.log-body p i { font-style: normal; color: var(--mint); }
.log-body p.hl { color: var(--gold); font-weight: 700; }
.log-body p.win { color: var(--mint); font-weight: 700; }
.log-body p.sys { color: #8f79c9; font-style: italic; }

@media (max-width: 900px) {
  .sidepanel {
    display: flex;
    right: 8px; top: 56px;
    width: min(300px, calc(100vw - 16px));
    max-height: min(62vh, 460px);
  }
}

/* ============================================================
   ПРОФИЛЬ, УРОВЕНЬ, СТАТИСТИКА
   ============================================================ */

.prof-head {
  display: flex; align-items: center; gap: 14px;
  margin: 14px 0 12px;
}
.prof-emoji {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  font-size: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #7b5cff, #3a1f8e);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .4), 0 0 0 3px rgba(255, 255, 255, .15);
  flex: 0 0 auto;
  transition: transform .14s;
}
.prof-emoji:hover { transform: scale(1.08) rotate(-6deg); }

.prof-id { flex: 1 1 auto; min-width: 0; }
.prof-id b { display: block; font-size: 19px; }
.prof-id small { display: block; font-size: 12px; color: #b6a2e6; }

.prof-level { text-align: center; flex: 0 0 auto; }
.lvl-num {
  display: block;
  font-size: 30px; font-weight: 800; line-height: 1;
  color: var(--gold);
}
.prof-level small { font-size: 11.5px; color: #b6a2e6; }

.xp-bar {
  height: 9px;
  border-radius: 999px;
  background: rgba(12, 5, 32, .7);
  box-shadow: inset 0 0 0 1.5px rgba(160, 120, 255, .3);
  overflow: hidden;
}
.xp-bar span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--mint), var(--gold));
  transition: width .5s ease;
}
.xp-note { font-size: 12.5px; color: #b6a2e6; margin: 6px 0 0; }

.stat-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin: 16px 0 4px;
}
.stat-cell {
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(15, 6, 40, .45);
  box-shadow: inset 0 0 0 1.5px rgba(160, 120, 255, .25);
}
.stat-cell small { display: block; font-size: 11.5px; color: #b6a2e6; }
.stat-cell b { display: block; font-size: 18px; margin-top: 2px; }

/* --- история раздач --- */

.hist { display: flex; flex-direction: column; gap: 3px; max-height: 220px; overflow-y: auto; }
.hist::-webkit-scrollbar { width: 6px; }
.hist::-webkit-scrollbar-thumb { background: rgba(160, 120, 255, .4); border-radius: 3px; }

.hist-row {
  display: grid;
  grid-template-columns: 58px 74px 1fr auto;
  gap: 8px; align-items: baseline;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(15, 6, 40, .35);
  font-size: 12.5px;
}
.hist-when { color: #8f79c9; font-variant-numeric: tabular-nums; }
.hist-mode {
  color: #b6a2e6; font-size: 11.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hist-hand { color: #ded1ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-delta { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hist-delta.up { color: var(--mint); }
.hist-delta.down { color: #ff8ea0; }

/* --- таблица лидеров --- */

.lb { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; }
.lb-row {
  display: grid;
  grid-template-columns: 26px 34px 1fr auto auto;
  gap: 10px; align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(15, 6, 40, .4);
}
.lb-row.me { box-shadow: inset 0 0 0 2px var(--gold); background: rgba(255, 196, 77, .12); }
.lb-place { font-weight: 800; color: var(--gold); text-align: center; }
.lb-emoji {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  font-size: 17px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #7b5cff, #3a1f8e);
}
.lb-name { min-width: 0; }
.lb-name b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-name small { display: block; font-size: 11px; color: #b6a2e6; }
.lb-num { text-align: right; font-size: 15px; font-weight: 800; }
.lb-num small { display: block; font-size: 10px; font-weight: 700; color: #b6a2e6; }

.muted { color: #8f79c9; font-size: 13px; }

@media (max-width: 620px) {
  .stat-grid { grid-template-columns: 1fr; }
  .hist-row { grid-template-columns: 52px 1fr auto; }
  .hist-mode { display: none; }
  .lb-row { grid-template-columns: 22px 30px 1fr auto; }
  .lb-row .lb-num:last-child { display: none; }
}

/* ============================================================
   ПОДСКАЗКА С КОМБИНАЦИЕЙ И СПРАВОЧНИК
   ============================================================ */

/* Своя комбинация: видна всю раздачу и открывает справочник.
   Живёт в нижней панели, а не над табличкой — там её перекрывала
   подсказка хода, и на узких экранах места ей не хватало. */
.hint-row {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap;
}

.combo-pill {
  flex: 0 0 auto;
  font: inherit;
  font-size: 12.5px; font-weight: 800; letter-spacing: .3px;
  padding: 5px 13px; border-radius: 999px;
  background: rgba(10, 4, 30, .92);
  border: 1.5px solid var(--gold);
  color: var(--gold);
  cursor: pointer;
  transition: transform .14s, box-shadow .14s, background .14s;
}
.combo-pill::after { content: ' ?'; opacity: .55; }
.combo-pill:hover {
  transform: translateY(-2px);
  background: rgba(255, 196, 77, .16);
  box-shadow: 0 0 16px rgba(255, 196, 77, .45);
}
.combo-pill:active { transform: translateY(0); }

/* --- справочник комбинаций --- */

.combo-now { color: var(--gold); }

.combos { display: flex; flex-direction: column; gap: 4px; margin: 14px 0 4px; }

.combo-row {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 6, 40, .38);
  transition: background .15s;
}
.combo-row:hover { background: rgba(15, 6, 40, .6); }
.combo-row.now {
  background: rgba(255, 196, 77, .14);
  box-shadow: inset 0 0 0 2px var(--gold);
}

.combo-head { display: flex; align-items: center; gap: 9px; }
.combo-head b { font-size: 15px; }
.combo-rank {
  width: 21px; height: 21px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  font-size: 11px; font-weight: 800;
  color: #b6a2e6;
  flex: 0 0 auto;
}
.combo-row.now .combo-rank { background: var(--gold); color: #40230a; }
.combo-badge {
  margin-left: auto;
  font-size: 10.5px; font-weight: 800; letter-spacing: .4px;
  padding: 2px 8px; border-radius: 999px;
  background: var(--gold); color: #40230a;
}

/* Карты лежат стопкой внахлёст — иначе строка расползлась бы */
.combo-cards {
  display: flex;
  /* верхний отступ — это место, куда выплывает карта при наведении;
     без него она наползала бы на название комбинации */
  padding: 26px 0 6px;
}

.combo-card {
  width: 44px; height: 62px;
  flex: 0 0 auto;
  margin-left: -10px;        /* нахлёст: карты лежат стопкой */
  position: relative;
  z-index: calc(10 - var(--i));
  transition: transform .28s cubic-bezier(.2, 1.1, .4, 1), margin-right .28s;
  cursor: pointer;
}
.combo-card:first-child { margin-left: 0; }

.combo-card-in {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  width: 100%; height: 100%;
  border-radius: 7px;
  background: linear-gradient(180deg, #fffdf8, #ece2f7);
  color: #2a1656;
  font-weight: 800; line-height: 1;
  /* тонкий тёмный кант: без него белые карты в стопке сливаются в полосу */
  box-shadow: 0 0 0 1.5px rgba(38, 16, 84, .85),
              4px 0 9px rgba(0, 0, 0, .38);
  transition: box-shadow .28s;
}
.combo-card.red .combo-card-in { color: #e0344f; }
.combo-card-in b { font-size: 17px; letter-spacing: -.5px; }
.combo-card-in i { font-size: 15px; font-style: normal; margin-top: 3px; }

/* Наведение (а на телефоне — касание): карта выплывает и мягко парит */
.combo-card:hover,
.combo-card.up {
  z-index: 20;
  transform: translateY(-18px) scale(1.14);
  margin-right: 10px;
}
.combo-card:hover .combo-card-in,
.combo-card.up .combo-card-in {
  animation: levitate 2.6s ease-in-out infinite;
  box-shadow: 0 0 0 2px var(--gold), 0 14px 24px rgba(0, 0, 0, .5);
}

/* Внутренний слой качается сам по себе — так подъём остаётся плавным,
   а при уходе мыши карта не дёргается, а спокойно уезжает обратно */
@keyframes levitate {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50%      { transform: translateY(-5px) rotate(1.2deg); }
}

.combo-note {
  margin: 0;
  font-size: 12.5px;
  color: #b6a2e6;
  line-height: 1.4;
}

.modal::-webkit-scrollbar { width: 7px; }
.modal::-webkit-scrollbar-track { background: transparent; }
.modal::-webkit-scrollbar-thumb { background: rgba(160, 120, 255, .45); border-radius: 4px; }

@media (max-width: 620px) {
  .combo-card { width: 38px; height: 53px; margin-left: -12px; }
  .combo-card-in b { font-size: 14px; }
  .combo-card-in i { font-size: 12px; }
  .combo-note { font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .combo-card:hover .combo-card-in,
  .combo-card.up .combo-card-in { animation: none; }
}

/* ============================================================
   АДМИНКА
   ============================================================ */

.icon-btn.admin {
  box-shadow: inset 0 0 0 1.5px rgba(255, 196, 77, .55);
  color: var(--gold);
}

.admin-list {
  display: flex; flex-direction: column; gap: 8px;
  margin: 12px 0 4px;
}

.admin-row {
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(15, 6, 40, .42);
}

.admin-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-head b { font-size: 15px; }
.admin-ava { font-size: 20px; line-height: 1; }
.admin-login { font-size: 12px; color: #8f7fc4; }
.admin-tag {
  font-size: 10.5px; font-weight: 800; letter-spacing: .4px;
  padding: 2px 8px; border-radius: 999px;
  background: var(--gold); color: #40230a;
}

.admin-meta {
  margin-top: 5px;
  font-size: 12px; color: #b6a2e6; line-height: 1.4;
}

.admin-acts {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 9px;
}
.admin-acts button {
  font: inherit;
  font-size: 11.5px; font-weight: 700;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(123, 92, 255, .18);
  box-shadow: inset 0 0 0 1px rgba(160, 120, 255, .45);
  color: #d6c8ff;
  cursor: pointer;
  transition: background .14s, transform .14s;
}
.admin-acts button:hover {
  background: rgba(123, 92, 255, .34);
  transform: translateY(-1px);
}
/* Права — единственное необратимое действие в списке, красим отдельно */
.admin-acts button.danger {
  background: rgba(224, 52, 79, .16);
  box-shadow: inset 0 0 0 1px rgba(224, 52, 79, .5);
  color: #ff9fae;
}
.admin-acts button.danger:hover { background: rgba(224, 52, 79, .3); }

/* --- журнал действий --- */

.alog { display: flex; flex-direction: column; gap: 4px; margin: 12px 0 4px; }
.alog-row {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  padding: 8px 11px; border-radius: 10px;
  background: rgba(15, 6, 40, .38);
  font-size: 12.5px;
}
.alog-at { font-size: 11px; color: #8f7fc4; flex: 0 0 auto; }
.alog-detail { color: #b6a2e6; }

@media (max-width: 620px) {
  .admin-acts button { font-size: 11px; padding: 5px 9px; }
  .admin-meta { font-size: 11.5px; }
}

/* ============================================================
   СВОИ АВАТАРКИ
   ============================================================ */

/* Картинка ложится поверх эмодзи внутри того же кружка: не загрузится —
   под ней остаётся рожица, и место за столом не станет пустым */
.ava-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  z-index: 1;
}

.prof-emoji img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.ava-tools {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 4px;
}
.ava-tools .pill { height: 36px; padding: 0 16px; }
.ava-tools .form-msg { margin: 0; font-size: 12.5px; }

.admin-ava img {
  width: 22px; height: 22px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.admin-tag.ban { background: #e0344f; color: #fff; }

/* Действия над столом целиком — отдельно от списка игроков */
.admin-table {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  margin: 12px 0 6px;
  border-radius: 12px;
  background: rgba(224, 52, 79, .1);
  box-shadow: inset 0 0 0 1px rgba(224, 52, 79, .35);
}
.admin-table .muted { font-size: 12px; }
.pill.ghost.danger {
  height: 38px; padding: 0 16px;
  box-shadow: inset 0 0 0 1.5px rgba(224, 52, 79, .6);
  color: #ff9fae;
}
.pill.ghost.danger:hover { background: rgba(224, 52, 79, .18); }

/* ============================================================
   ПРЕДЛОЖЕНИЕ ПОКАЗАТЬ КАРТЫ
   ============================================================ */

/* Тот же ряд, что и окно закрепления: оба перехватывают панель
   действий и никогда не открыты одновременно */
.show-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 18px 14px;
  border-radius: var(--r-md);
  background: rgba(20, 10, 46, .78);
  box-shadow: inset 0 0 0 2px rgba(255, 196, 77, .5);
}

.show-head { display: flex; flex-direction: column; gap: 2px; flex: 1 1 240px; }
.show-head b { font-size: 15.5px; color: var(--gold); }
.show-hint { font-size: 12.5px; color: var(--text-dim); line-height: 1.35; }

.show-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.show-acts .pill { height: 38px; padding: 0 18px; }

@media (max-width: 620px) {
  .show-row { padding: 10px 14px 12px; gap: 10px; }
  .show-head b { font-size: 14.5px; }
}
