/* ═══ 3D-карты KVN (все карточные игры) ═══
   .card.c3 > .c3-in > .c3-front + .c3-back. Размер карты задаёт .card, всё внутри в em от ширины. */
.card.c3 { display: block; padding: 0; background: none; box-shadow: none; perspective: 800px; font-size: 16px;
  container-type: size; animation: c3-show .16s linear var(--d, 0ms) backwards; }
@supports (width: 1cqw) { .card.c3 .c3-in { font-size: 20cqw; } }
.card.c3.still, .card.c3.fliponly { animation: none; }
.c3-in { position: absolute; inset: 0; transform-style: preserve-3d; border-radius: .62em;
  animation: c3-deal .7s cubic-bezier(.2,.75,.25,1) var(--d, 0ms) backwards; }
.card.c3.down .c3-in { transform: rotateY(180deg); animation-name: c3-deal-down; animation-duration: .45s; }
.card.c3.fliponly .c3-in { animation: c3-flip .55s cubic-bezier(.3,1.25,.5,1) var(--d, 0ms) backwards; }
.card.c3.still .c3-in { animation: none; }
.c3-front, .c3-back { position: absolute; inset: 0; border-radius: .62em; -webkit-backface-visibility: hidden; backface-visibility: hidden; overflow: hidden; }

.c3-front { display: flex; flex-direction: column; justify-content: space-between; padding: .34em .36em; color: #1f1533;
  background: linear-gradient(155deg, #fff 0%, #f7f2fd 55%, #ebe2f7 100%);
  box-shadow: 0 .3em .8em #0007, inset 0 0 0 1px #2a14501c; }
.card.c3.red .c3-front { color: #c8102e; }
.c3-front::before { content: ""; position: absolute; inset: .2em; border-radius: .45em; border: 1px solid #b78a3a59; pointer-events: none; }
.c3-front::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(118deg, transparent 32%, #ffffffa6 46%, transparent 58%); opacity: .55; mix-blend-mode: soft-light; }
.card.c3 .tl, .card.c3 .br { position: relative; z-index: 1; width: 1.05em; font: 800 1.02em/.92 Georgia, "Times New Roman", serif; text-align: center; }
.card.c3 .br { transform: rotate(180deg); align-self: flex-end; }
.c3-mid { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.35em; line-height: 1; text-shadow: 0 .04em 0 #fff, 0 .06em .1em #0002; }
.c3-ace { position: absolute; inset: 0; display: grid; place-items: center; }
.c3-ring { grid-area: 1 / 1; width: 2.9em; height: 2.9em; color: #6d3fd4; opacity: .16; }
.c3-ring svg, .c3-mini svg { display: block; width: 100%; height: 100%; }
.c3-ace i { grid-area: 1 / 1; font-style: normal; font-size: 2.5em; line-height: 1; filter: drop-shadow(0 .05em .05em #0003); }
.c3-face { position: absolute; inset: 1.18em .62em; border-radius: .38em; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #f4d797; background: radial-gradient(circle at 50% 30%, #6a3fc0, #3b1f78 55%, #22104a);
  box-shadow: inset 0 0 0 1px #f4d79780, inset 0 0 0 .14em #22104a, inset 0 0 0 .19em #f4d79755; }
.c3-face b { font: 900 1.9em/1 Georgia, "Times New Roman", serif; text-shadow: 0 .05em 0 #0006; }
.c3-face i { font-style: normal; font-size: .9em; line-height: 1; color: #fff; }
.card.c3.red .c3-face i { color: #ff8197; }
.c3-mini { position: absolute; bottom: .22em; width: .62em; height: .62em; color: #f4d797; opacity: .75; }
.c3-back { transform: rotateY(180deg); background: #2b1550 url(/static/menu-v22/img/card-back.webp) center / cover no-repeat;
  box-shadow: 0 .3em .8em #0007, inset 0 0 0 1px #f4d7972e; }
.c3-back svg { display: none; }

@keyframes c3-show { from { opacity: 0; } }
@keyframes c3-deal {
  0% { transform: translate3d(5em, -7em, 0) rotateZ(-16deg) rotateY(180deg); }
  58% { transform: translate3d(0, 0, 0) rotateZ(0) rotateY(180deg); }
  100% { transform: rotateY(0); } }
@keyframes c3-deal-down {
  0% { transform: translate3d(5em, -7em, 0) rotateZ(-16deg) rotateY(180deg); }
  100% { transform: rotateY(180deg); } }
@keyframes c3-flip { from { transform: rotateY(180deg); } to { transform: rotateY(0); } }

.poker-cards .card.c3 { font-size: 18.4px; }

/* ═══ Онлайн-столы: общее ═══ */
.tb [hidden] { display: none !important; }
.tb-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; }
.tb-picker button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 11px; border-radius: 11px; text-align: left;
  background: #2a1d3d; border: 1px solid #ffffff12; color: var(--text); transition: border-color .15s, background .15s; }
.tb-picker button:hover { background: #33244a; }
.tb-picker button.on { border-color: #b252ff; box-shadow: inset 0 0 0 1px #b252ff; }
.tb-picker b { font-size: 13.5px; }
.tb-picker small { font-size: 12px; color: var(--muted); }
.tb-leave { padding: 10px; border-radius: 11px; background: transparent; border: 1px solid #ffffff22; color: var(--muted); font-weight: 600; }
.tb-leave:hover { color: var(--text); border-color: #ffffff44; }

.tb-felt { position: relative; isolation: isolate; min-height: 540px; padding: 16px 14px 22px; justify-content: flex-start; gap: 12px;
  background: radial-gradient(120% 85% at 50% 0%, #3d2474 0%, #251448 46%, #140a29 100%); }
.tb-felt::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background: radial-gradient(circle, #ffffff0b 1px, transparent 1.5px) 0 0 / 16px 16px; }
.tb-status { position: relative; z-index: 2; align-self: center; padding: 7px 15px; border-radius: 999px; text-align: center; font-size: 13.5px;
  color: #e9def8; background: #0b0617a6; border: 1px solid #ffffff1c; }
.tb-status b { color: var(--gold); font-variant-numeric: tabular-nums; }
.tb-status.mine { color: #311c36; background: linear-gradient(#ecca82, #cf9b54); border-color: #f9dfa3; animation: tb-pulse 1.3s ease-in-out infinite; }
.tb-status.mine b { color: #311c36; }

.tb .cards { gap: 0; min-height: 0; flex-wrap: nowrap; }
.tb-plate { position: relative; z-index: 2; display: flex; align-items: center; gap: 7px; max-width: 100%; padding: 5px 11px 5px 5px; border-radius: 999px;
  background: #0d0719e0; border: 1px solid #ffffff1f; box-shadow: 0 6px 14px #0007; transition: box-shadow .2s, border-color .2s; }
.tb-ava { flex: none; width: 30px; height: 30px; border-radius: 50%; object-fit: cover; display: grid; place-items: center;
  background: #4a2a86; color: #fff; font-weight: 800; font-size: 13px; }
.tb-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.tb-who b { max-width: 92px; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-who small { font-size: 11px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tb-who small.tb-won { color: #5ee69a; font-weight: 800; }
.tb-seat.me .tb-plate, .pk-seat.me .tb-plate { border-color: #cf9b54; }
.tb-seat.turn .tb-plate, .pk-seat.turn .tb-plate { border-color: #f4d797; box-shadow: 0 0 0 2px #f4d797, 0 0 22px #f4d79780; }
.tb-timer { display: block; width: 78%; height: 3px; border-radius: 3px; background: #f4d797; transform-origin: left center; animation: tb-time linear both; }
.tb-chip { position: relative; z-index: 2; width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font-size: 10px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px #000a;
  background: radial-gradient(circle, #7b40e2 0 54%, #f4d797 55% 58%, transparent 59%), repeating-conic-gradient(#f4d797 0 14deg, #5b25b0 14deg 45deg);
  box-shadow: 0 3px 0 #250f4a, 0 7px 14px #0009; animation: tb-chip-in .35s cubic-bezier(.3,1.5,.5,1); }

/* ═══ 🃏 Блэкджек онлайн ═══ */
.tb-bj .tb-felt::before { content: ""; position: absolute; z-index: -1; left: 3%; right: 3%; top: -34%; height: 108%; border-radius: 50%;
  border: 2px solid #f4d79730; box-shadow: 0 0 0 10px #ffffff05; pointer-events: none; }
.tb-dealer-box { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tb-dealer { min-height: 103px; }
.tb-dealer .card { width: 72px; height: 103px; }
.tb-dealer .card + .card { margin-left: -28px; }
.tb .who-lbl { color: #d8c9ee; font-size: 13px; }
.tb .who-lbl b { color: #fff; font-size: 17px; }
.tb-arc { position: relative; z-index: 1; text-align: center; font-size: 11.5px; font-weight: 800; letter-spacing: .32em; color: #f4d7975c; }
.tb-bj-seats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; align-items: end; margin-top: auto; }
.tb-seat { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.tb-seat:nth-child(1), .tb-seat:nth-child(5) { transform: translateY(-48px); }
.tb-seat:nth-child(2), .tb-seat:nth-child(4) { transform: translateY(-14px); }
.tb-hands { display: flex; align-items: flex-end; justify-content: center; flex-wrap: wrap; gap: 6px; min-height: 120px; }
.tb-hand { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px; border-radius: 10px; }
.tb-hand.act { box-shadow: 0 0 0 2px var(--gold); }
.tb-hand .card { width: 54px; height: 77px; }
.tb-hand .card + .card { margin-left: -36px; }
.tb-total { padding: 2px 9px; border-radius: 999px; font-size: 11.5px; color: #d8c9ee; background: #0b0617cc; white-space: nowrap; }
.tb-total b { color: #fff; font-size: 13px; }
.tb-hand .res { margin-top: 0; font-size: 11.5px; padding: 2px 8px; }
.tb-seat.empty { justify-content: flex-end; }
.tb-empty { width: 62px; height: 62px; margin-bottom: 4px; border-radius: 50%; border: 2px dashed #ffffff26; display: grid; place-items: center;
  font-size: 10.5px; color: #ffffff5c; }

/* ═══ ♠️ Покер онлайн ═══ */
.pk-felt { padding: 14px; gap: 10px; justify-content: flex-start; background: radial-gradient(110% 95% at 50% 50%, #261440, #0f0819 85%); }
.pk-table { position: relative; width: 100%; aspect-ratio: 16 / 11; min-height: 440px; }
.pk-oval { position: absolute; inset: 13% 9% 15%; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 36%, #53309a 0%, #2f195e 55%, #1c0e3a 100%);
  border: 12px solid #2a1838; box-shadow: 0 0 0 2px #cf9b5580, inset 0 0 0 2px #f4d79738, inset 0 14px 44px #000a, 0 26px 60px #000b; }
.pk-center { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pk-logo { position: absolute; z-index: -1; left: 50%; top: 50%; width: 150px; transform: translate(-50%, -50%); color: #ffffff0d; pointer-events: none; }
.pk-logo svg { display: block; width: 100%; height: auto; }
.pk-pot { padding: 4px 13px; border-radius: 999px; font-size: 13px; color: #e9def8; background: #0b0617a6; white-space: nowrap; }
.pk-pot b { color: var(--gold); font-variant-numeric: tabular-nums; }
.pk-board { gap: 6px; }
.pk-board .card { width: 60px; height: 86px; }
.card.pk-slot { background: #ffffff06; border: 1.5px dashed #ffffff21; box-shadow: none; animation: none; padding: 0; }
.pk-banner { min-height: 20px; text-align: center; font-size: 13.5px; color: #efe3ff; }
.pk-banner > div { animation: tb-pop .45s cubic-bezier(.3,1.5,.5,1); }
.pk-banner .win { color: #5ee69a; }

.pk-ring { position: absolute; inset: 0; pointer-events: none; }
.pk-seat { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 3px;
  width: 132px; transition: opacity .3s; }
.pk-seat.pos0 { left: 50%; top: 88%; } .pk-seat.pos1 { left: 11%; top: 70%; } .pk-seat.pos2 { left: 11%; top: 25%; }
.pk-seat.pos3 { left: 50%; top: 10%; } .pk-seat.pos4 { left: 89%; top: 25%; } .pk-seat.pos5 { left: 89%; top: 70%; }
.pk-hole { position: relative; z-index: 1; margin-bottom: -14px; }
.pk-hole .card { width: 46px; height: 66px; }
.pk-hole .card + .card { margin-left: -14px; }
.pk-hole .card:first-child { transform: rotate(-6deg); }
.pk-hole .card:nth-child(2) { transform: rotate(6deg) translateY(2px); }
.pk-seat.me .pk-hole .card { width: 60px; height: 86px; }
.pk-seat.folded { opacity: .45; }
.pk-seat.won .tb-plate { border-color: #5ee69a; box-shadow: 0 0 0 2px #5ee69a, 0 0 24px #5ee69a88; }
.pk-dealer { position: absolute; z-index: 3; right: 4px; top: 50%; width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: #1f1533; font-size: 11px; font-weight: 900; box-shadow: 0 2px 6px #0009; }
.pk-tag { padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; color: #d8c9ee; background: #0b0617d0; white-space: nowrap; }
.pk-tag.allin { background: #c8102e; color: #fff; }
.pk-bet { position: absolute; width: 36px; height: 36px; font-size: 9px; }
.pk-seat.pos0 .pk-bet { top: -40px; left: 50%; margin-left: -18px; }
.pk-seat.pos3 .pk-bet { bottom: -40px; left: 50%; margin-left: -18px; }
.pk-seat.pos1 .pk-bet, .pk-seat.pos2 .pk-bet { right: -34px; top: 34%; }
.pk-seat.pos4 .pk-bet, .pk-seat.pos5 .pk-bet { left: -34px; top: 34%; }
.pk-won { text-align: center; font-size: 13px; font-weight: 900; color: #5ee69a; animation: tb-pop .45s cubic-bezier(.3,1.5,.5,1); white-space: nowrap; }
.pk-won small { display: block; font-size: 10.5px; font-weight: 700; color: #efe3ff; }
.pk-won.lost small { color: var(--muted); }
.pk-seat.empty { width: 70px; height: 70px; border-radius: 50%; border: 2px dashed #ffffff33; background: #0d071980; color: #ffffffb3;
  font-size: 12px; font-weight: 700; justify-content: center; cursor: pointer; }
.pk-seat.empty:not(:disabled):hover { border-color: #cf9b54; color: #f4d797; }
.pk-seat.empty:disabled { cursor: default; opacity: .55; }

.pk-buy { display: flex; flex-direction: column; gap: 8px; }
.pk-acts { display: flex; flex-direction: column; gap: 8px; }
.pk-acts-row { display: grid; grid-template-columns: 1fr 1.25fr 1.25fr; gap: 6px; }
.pk-acts button { padding: 12px 6px; border-radius: 11px; font-weight: 800; }
.pk-acts button:disabled { opacity: .4; cursor: default; }
.pk-fold { background: #3d1628; color: #ffb6c4; }
.pk-call { background: #173a2b; color: #a3f2c8; }
.pk-raise { background: linear-gradient(#ecca82, #cf9b54); color: #311c36; }
.pk-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pk-quick:empty { display: none; }
.pk-acts .pk-quick button { padding: 8px 4px; border-radius: 9px; background: var(--panel2); font-size: 12.5px; font-weight: 700; }
.pk-raise-row { display: flex; gap: 8px; align-items: center; }
.pk-raise-row input[type=range] { flex: 1; min-width: 0; accent-color: #cf9b54; }
.pk-raise-n { width: 96px; }

/* ═══ Лобби: 3D-рендер карт ═══ */
.card-bjt { background: radial-gradient(circle at 50% 30%, #7d52ff, #3a1f8f 55%, #150a3a); }
.card-pkt { background: radial-gradient(circle at 50% 30%, #ff5c8a, #8a1f6e 50%, #240a3a); }
.mell-card-art img.tb-art { width: 118%; max-width: none; max-height: none; filter: drop-shadow(0 14px 18px #0008); }
.promo-pkt { background: linear-gradient(135deg, #e0447a, #6a2bd1 55%, #1d0b4a); }
.promo-pkt .mell-promo-art { right: -6%; bottom: -4%; width: 62%; }

@keyframes tb-time { from { transform: scaleX(1); } to { transform: scaleX(0); background: #ff5c6e; } }
@keyframes tb-pulse { 0%, 100% { box-shadow: 0 0 0 0 #f4d79700; } 50% { box-shadow: 0 0 0 6px #f4d79733; } }
@keyframes tb-pop { from { transform: scale(.5); opacity: 0; } }
@keyframes tb-chip-in { from { transform: translateY(-24px) scale(.6); opacity: 0; } }

@media (max-width: 760px) {
  .card.c3 { font-size: 12.4px; }
  .poker-cards .card.c3 { font-size: 11.6px; }
  .tb-felt { min-height: 460px; padding: 12px 6px 16px; }
  .tb-arc { font-size: 9.5px; letter-spacing: .2em; }
  .tb-dealer { min-height: 80px; }
  .tb-dealer .card { width: 56px; height: 80px; }
  .tb-dealer .card + .card { margin-left: -22px; }
  .tb-bj-seats { gap: 3px; }
  .tb-seat:nth-child(1), .tb-seat:nth-child(5) { transform: translateY(-28px); }
  .tb-seat:nth-child(2), .tb-seat:nth-child(4) { transform: translateY(-8px); }
  .tb-hands { min-height: 84px; gap: 2px; }
  .tb-hand { padding: 2px; }
  .tb-hand .card { width: 38px; height: 54px; }
  .tb-hand .card + .card { margin-left: -26px; }
  .tb-total { font-size: 10px; padding: 1px 6px; } .tb-total b { font-size: 11px; }
  .tb-plate { flex-direction: column; gap: 2px; padding: 4px 5px; border-radius: 12px; text-align: center; }
  .tb-ava { width: 24px; height: 24px; font-size: 11px; }
  .tb-who { align-items: center; }
  .tb-who b { max-width: 60px; font-size: 10.5px; }
  .tb-who small { font-size: 9.5px; }
  .tb-chip { width: 32px; height: 32px; font-size: 8.5px; }
  .tb-empty { width: 46px; height: 46px; font-size: 9px; }
  .pk-felt { padding: 10px 6px; }
  .pk-table { aspect-ratio: 3 / 4; min-height: 0; }
  .pk-oval { inset: 12% 13% 15%; border-width: 8px; }
  .pk-seat { width: 86px; }
  .pk-seat.pos0 { top: 89%; } .pk-seat.pos1 { left: 13%; top: 69%; } .pk-seat.pos2 { left: 13%; top: 31%; }
  .pk-seat.pos3 { top: 9%; } .pk-seat.pos4 { left: 87%; top: 31%; } .pk-seat.pos5 { left: 87%; top: 69%; }
  .pk-hole { margin-bottom: -10px; }
  .pk-hole .card { width: 32px; height: 46px; }
  .pk-hole .card + .card { margin-left: -10px; }
  .pk-seat.me .pk-hole .card { width: 46px; height: 66px; }
  .pk-board { gap: 3px; }
  .pk-board .card { width: 38px; height: 54px; }
  .pk-logo { width: 96px; }
  .pk-pot, .pk-banner { font-size: 11.5px; }
  .pk-dealer { width: 17px; height: 17px; font-size: 9px; right: 0; }
  .pk-bet { width: 28px; height: 28px; font-size: 7.5px; }
  .pk-seat.pos0 .pk-bet { top: -30px; margin-left: -14px; } .pk-seat.pos3 .pk-bet { bottom: -30px; margin-left: -14px; }
  .pk-seat.pos1 .pk-bet, .pk-seat.pos2 .pk-bet { right: -22px; } .pk-seat.pos4 .pk-bet, .pk-seat.pos5 .pk-bet { left: -22px; }
  .pk-seat.empty { width: 52px; height: 52px; font-size: 10.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .card.c3, .c3-in, .tb-chip, .pk-won, .pk-banner > div, .tb-status.mine { animation: none !important; }
  .card.c3.down .c3-in { transform: rotateY(180deg); }
}

/* ═══ 09.11 menu-v22: блэкджек и покер в стиле Originals ═══
   Ширина карты — от ширины стола (container query), карт много — веер внахлёст, а не сжатие. */
.cg-board { container-type: inline-size; }
.cg-felt { position: relative; min-height: 470px; border-radius: 14px; padding: 22px 16px 26px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 14px;
  background: radial-gradient(120% 80% at 50% 0%, #2a7a52 0%, #145236 46%, #0c3524 100%); border: 1px solid #ffffff14;
  box-shadow: inset 0 0 0 6px #0b2a1d, inset 0 0 0 8px #c9a86a33, inset 0 18px 60px #0007; overflow: hidden;
  --cw: clamp(56px, calc((100cqw - 70px) / 5.6), 104px); }
.cg-felt.poker { justify-content: center; gap: 22px; --cw: clamp(52px, calc((100cqw - 74px) / 5), 112px); }
.cg-felt .card.c3 { width: var(--cw); height: calc(var(--cw) * 1.42); flex: none; }
.cg-zone { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.cg-felt .cg-fan { display: flex; justify-content: center; flex-wrap: nowrap; gap: 0; min-height: calc(var(--cw) * 1.42); }
.cg-fan .card + .card { margin-left: calc(var(--cw) * -.38); }
.cg-fan .card { box-shadow: -4px 6px 14px #0006; border-radius: calc(var(--cw) * .1); }
.cg-felt .cg-hands { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; width: 100%; }
.cg-hands .hand { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 14px; transition: box-shadow .2s, background .2s; }
.cg-hands .hand.act { background: #ffffff0d; box-shadow: 0 0 0 2px #f4d797aa, 0 0 24px #f4d79733; }
.cg-total { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; color: #d6f0e2; font-size: 13px; font-weight: 650; }
.cg-total small { color: #9cc9b2; font-size: 11px; }
.cg-pill { display: inline-flex; align-items: baseline; gap: 2px; min-width: 30px; justify-content: center; padding: 2px 9px; border-radius: 999px; background: #0b2a1dcc; border: 1px solid #ffffff2a; color: #fff; font-size: 15px; font-weight: 850; font-variant-numeric: tabular-nums; }
.cg-pill.gold { color: #2b1b00; background: linear-gradient(#ffe39a, #e8b54a); border-color: #fff3c4; }
.cg-pill.bust { background: #6e1620; border-color: #ff8a95; }
.cg-pill small { font-size: 10px; font-weight: 700; opacity: .8; }
.cg-arc { color: #f4d797b5; font-size: 10px; font-weight: 800; letter-spacing: .22em; text-align: center; text-transform: uppercase; border-top: 1px solid #f4d79740; border-bottom: 1px solid #f4d79740; padding: 5px 14px; }
.cg-acts { grid-template-columns: 1fr 1fr; }
.cg-acts button { font-weight: 750; }
.cg-acts .cg-act-hit:not(:disabled) { background: #1f7a4c; color: #fff; }
.cg-acts .cg-act-stand:not(:disabled) { background: #8a2433; color: #fff; }
.cg-acts .cg-act-double:not(:disabled) { background: #8a6a1c; color: #fff; }
.cg-acts .cg-act-split:not(:disabled) { background: #3a4fa0; color: #fff; }
.cg-acts button:not(:disabled):hover { filter: brightness(1.15); }
.cg-felt .cg-row { display: flex; justify-content: center; gap: clamp(5px, 1.6cqw, 14px); flex-wrap: nowrap; min-height: auto; }
.cg-row .slotc { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cg-row .slotc.pick { cursor: pointer; }
.cg-row .card.held { transform: translateY(-12px); box-shadow: 0 0 0 3px #f4d797, 0 14px 24px #0008; }
.cg-row .card { transition: transform .18s; }
.cg-row .slotc.pick:hover .card:not(.held) { transform: translateY(-4px); }
.cg-row .hold-lbl { height: 18px; font-size: 11px; font-weight: 850; letter-spacing: .08em; color: #f4d797; text-transform: uppercase; }
.cg-row .hold-lbl:empty { visibility: hidden; }
.cg-row .slotc:not(:has(.held)) .hold-lbl { color: #ffffff59; font-weight: 650; letter-spacing: 0; text-transform: none; }
.cg-hint { color: #cfe9da; font-size: 13px; min-height: 18px; text-align: center; }
.cg-banner { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.6); opacity: 0; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 12px 26px; border-radius: 16px; background: #120a1ce6; border: 1px solid #ffffff22; box-shadow: 0 18px 40px #000a; transition: transform .35s cubic-bezier(.3,1.6,.5,1), opacity .2s; z-index: 3; }
.cg-banner.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cg-banner b { font-family: var(--display, inherit); font-size: 28px; font-weight: 900; letter-spacing: -.02em; }
.cg-banner small { font-size: 15px; font-weight: 800; }
.cg-banner.win { border-color: #f4d797; } .cg-banner.win b { color: #ffe39a; text-shadow: 0 0 22px #f4d79788; } .cg-banner.win small { color: #6bf0a6; }
.cg-banner.lose b { color: #ff8a95; } .cg-banner.lose small { color: #c9b6d6; font-weight: 600; font-size: 12px; }
.cg-banner.push b { color: #c7d2fe; }
.cg-res .stat b.win { color: #6bf0a6; }
.cg-game .paytable td { padding: 5px 6px; border-bottom-color: #ffffff12; }
@media (max-width: 650px) {
  .cg-felt { min-height: 400px; padding: 16px 8px 20px; }
  .cg-arc { font-size: 8.5px; letter-spacing: .14em; padding: 4px 8px; }
  .cg-banner b { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .cg-banner { transition: opacity .2s; } }

/* ═══ Апгрейд (menu-v22): Originals + режим скинов ═══ */
.up-board { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 470px; padding: 18px 10px;
  border-radius: 14px; background: radial-gradient(80% 70% at 50% 40%, #2c1d44 0%, #1a1027 70%); border: 1px solid #ffffff10; }
.up-board .ring { width: min(340px, 86%); }
.up-board .ring .center .m { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-board .up-amounts { margin-top: 0; align-items: center; flex-wrap: wrap; }
.up-modes { margin: 0; }
.up-ctrl-box, .up-mode-ctrl { display: flex; flex-direction: column; gap: 11px; }
.up-mode-ctrl .originals-box { display: flex; flex-direction: column; gap: 8px; }
.up-mode-ctrl .lbl { display: flex; justify-content: space-between; align-items: center; }
.up-sum { font-size: 12px; color: #f4d797; }
.up-sk-list { display: flex; flex-direction: column; gap: 5px; max-height: 210px; overflow: auto; padding-right: 2px; }
.up-sk-list.target { max-height: 260px; }
.up-sk { display: grid; grid-template-columns: 26px 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 7px; text-align: left; width: 100%;
  background: color-mix(in srgb, var(--rc) 9%, #281c36); border: 1px solid color-mix(in srgb, var(--rc) 35%, transparent); border-radius: 9px; padding: 6px 8px; color: #ead9fa; }
.up-sk .up-sk-ico { grid-row: 1 / 3; font-size: 18px; text-align: center; }
.up-sk b { font-size: 12.5px; color: var(--rc); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-sk small { grid-column: 2; font-size: 10px; color: #b397c8; }
.up-sk i { grid-column: 3; grid-row: 1 / 3; font-style: normal; font-size: 11px; font-weight: 750; color: #f4d797; white-space: nowrap; }
.up-sk.on { background: color-mix(in srgb, var(--rc) 24%, #281c36); box-shadow: 0 0 0 2px var(--rc); }
.up-sk.big { width: auto; min-width: 190px; padding: 9px 12px; }
.up-sk.big b { font-size: 16px; }
.up-coins { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #b397c8; }
.up-coins input { flex: 1; min-width: 0; }
.up-kinds { gap: 4px; }
.up-kinds button { min-width: 0; padding: 5px 8px; font-size: 13px; }
.up-target { display: flex; justify-content: center; }
@media (max-width: 650px) { .up-board { min-height: 380px; } .up-sk-list, .up-sk-list.target { max-height: 220px; } }

/* menu-v22: звук на столах и раскладка — на средней ширине стол не уезжает в узкую колонку */
.tb-sound { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #b397c8; }
.tb-sound .originals-sound { width: 34px; height: 34px; }
@media (max-width: 760px) {
  .game { grid-template-columns: minmax(0, 1fr) !important; }
  .game .ctrl { order: 2; }
}
