/* Стол тренажёра: два вида и цвета к каждому (stol.js, 2026-11-20). Раскладка в % от коробки, размеры в px.
   Коробка смотрит на ширину своего контейнера (.table-wrap): уже 480 px - стол выше, карты и места крупнее относительно стола */
.stl { position: relative; margin: 14px 0 6px; font-family: "WMT", system-ui, sans-serif; color: var(--ink);
  --pk: 50px; --hw: 58px; --hh: 80px; --bw: 40px; --bh: 54px; --fs: 13px; --st: 10.5px; }
#root .table-wrap.stl-wrap { max-width: 680px; } /* на широком экране стол крупнее прежнего: подписи должны читаться */
@container (max-width: 479px) { .stl { --pk: 44px; --hw: 54px; --hh: 74px; --bw: 34px; --bh: 46px; --fs: 12px; } }
@container (min-width: 600px) { .stl { --pk: 60px; --hw: 70px; --hh: 96px; --bw: 50px; --bh: 68px; --fs: 15px; --st: 12px; } }

/* карты: те же .mc, что в уроках и эквити, поэтому колода из настроек действует и на столе */
.stl-hc, .stl-bd { display: flex; justify-content: center; }
.stl-hc { gap: 6px; } .stl-bd { gap: 4px; }
.stl-hc .mc, .stl-bd .mc { flex-direction: column; gap: 0; padding: 0; min-width: 0; border-width: 2px; }
.stl-hc .mc { width: var(--hw); height: var(--hh); border-radius: 10px; box-shadow: 0 4px 0 0 var(--ink); font-size: calc(var(--hw) * .46); }
.stl-bd .mc { width: var(--bw); height: var(--bh); border-radius: 7px; box-shadow: 0 3px 0 0 var(--ink); font-size: calc(var(--bw) * .46); }
.stl-hc .mc i, .stl-bd .mc i { font-size: 1.08em; margin-top: .04em; }
.stl-pot { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.stl-pot small { font: 600 calc(var(--st) + .5px)/1 "WMT"; } .stl-pot b { font: 700 var(--fs)/1 "WMD"; }
.stl-d { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font: 800 10px/1 "WMD"; font-style: normal; }

.stl-oval { aspect-ratio: 100 / 62; }
.stl-oval > * { position: absolute; }
.stl-oval .stl-t { inset: 7% 4% 25% 4%; border-radius: 999px; }
.stl-oval .stl-f { position: absolute; border-radius: 999px; }
.stl-oval .stl-mid { left: 50%; top: 40%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 7px; }
.stl-oval .stl-mid.has-bd { top: 42%; }
.stl-oval .stl-s { transform: translate(-50%, -50%); z-index: 2; }
.stl-oval .stl-s b { display: grid; place-items: center; font: 700 var(--fs)/1 "WMD"; }
.stl-oval .stl-s small { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 4px; font: 600 var(--st)/1.3 "WMT"; white-space: nowrap; }
.stl-oval .s1 { left: 8%; top: 60.5%; } .stl-oval .s2 { left: 8%; top: 21.5%; } .stl-oval .s3 { left: 50%; top: 7%; }
.stl-oval .s4 { left: 92%; top: 21.5%; } .stl-oval .s5 { left: 92%; top: 60.5%; }
.stl-oval .stl-b { transform: translate(-50%, -50%); display: flex; align-items: center; gap: 4px; white-space: nowrap; z-index: 1; }
.stl-oval .stl-b b { font: 700 calc(var(--fs) - 1px)/1 "WMD"; }
.stl-oval .b0 { left: 50%; top: 57%; } .stl-oval .b1 { left: 24%; top: 54%; } .stl-oval .b2 { left: 24%; top: 27%; }
.stl-oval .b3 { left: 50%; top: 26%; } .stl-oval .b4 { left: 76%; top: 27%; } .stl-oval .b5 { left: 76%; top: 54%; }
.stl-oval .stl-d { transform: translate(-50%, -50%); z-index: 1; }
.stl-oval .d0 { left: 33%; top: 66%; } .stl-oval .d1 { left: 17%; top: 66%; } .stl-oval .d2 { left: 17%; top: 16%; }
.stl-oval .d3 { left: 40%; top: 14%; } .stl-oval .d4 { left: 83%; top: 16%; } .stl-oval .d5 { left: 83%; top: 66%; }
.stl-oval .stl-h { left: 50%; top: 75%; transform: translate(-50%, -50%); z-index: 3; }
.stl-oval .stl-hl { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 9px; white-space: nowrap; font: 600 var(--fs)/1 "WMD"; }
@container (max-width: 479px) {
  .stl-oval { aspect-ratio: 1 / 1; }
  .stl-oval .stl-t { inset: 6% 5% 24% 5%; }
  .stl-oval .s1 { left: 9%; top: 59%; } .stl-oval .s2 { left: 9%; top: 23%; } .stl-oval .s3 { top: 6%; }
  .stl-oval .s4 { left: 91%; top: 23%; } .stl-oval .s5 { left: 91%; top: 59%; }
  .stl-oval .b0 { top: 58%; } .stl-oval .b1 { left: 28%; top: 55%; } .stl-oval .b2 { left: 28%; top: 27%; }
  .stl-oval .b3 { top: 25%; } .stl-oval .b4 { left: 72%; top: 27%; } .stl-oval .b5 { left: 72%; top: 55%; }
  .stl-oval .d0 { left: 26%; top: 65%; } .stl-oval .d1 { left: 21%; top: 64%; } .stl-oval .d2 { left: 21%; top: 17%; }
  .stl-oval .d3 { left: 36%; top: 13%; } .stl-oval .d4 { left: 79%; top: 17%; } .stl-oval .d5 { left: 79%; top: 64%; }
  .stl-oval .stl-h { top: 76%; }
}

/* «Сукно»: мягкие формы без обводки. Цвета - переменные, палитры cv-* ниже (борт --sr, сукно --sf, плашка банка --pb, фишки --k1) */
.stl-sukno { --sr: #5a3d8a; --sf: #fbb53c; --pb: rgba(27,27,27,.8); --k1: #6b4bb0; --k1s: #3d2a63; }
.stl-sukno.cv-zel { --sr: #143c29; --sf: #2c8f5d; --pb: rgba(0,0,0,.38); --k1: #f47b2a; --k1s: #7a3505; }
.stl-sukno.cv-fiol { --sr: #33215a; --sf: #6f4fb6; --pb: rgba(0,0,0,.34); --k1: #f47b2a; --k1s: #7a3505; }
.stl-sukno.cv-sin { --sr: #1b2d62; --sf: #3766c9; --pb: rgba(0,0,0,.34); --k1: #f47b2a; --k1s: #7a3505; }
.stl-sukno.cv-bord { --sr: #4a1420; --sf: #a8374a; --pb: rgba(0,0,0,.34); --k1: #f6b23c; --k1s: #7a4a05; }
.stl-sukno.cv-noch { --sr: #0f0f13; --sf: #2d2d36; --pb: rgba(255,255,255,.16); --k1: #f47b2a; --k1s: #7a3505; }
.stl-sukno .stl-t { background: var(--sr); }
.stl-sukno .stl-f { inset: 9px; background: var(--sf); }
.stl-sukno .stl-f::after { content: ""; position: absolute; inset: 8px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.6); }
.stl-sukno:not(.cv-ryzh) .stl-f::after { border-color: rgba(255,255,255,.32); }
.stl-sukno .stl-s b { width: var(--pk); height: var(--pk); border-radius: 50%; background: #fff; box-shadow: 0 2px 7px rgba(27,27,27,.22); }
.stl-sukno .stl-s small { padding: 1px 8px; border-radius: 99px; background: #fff; color: var(--sub); }
.stl-sukno .stl-s.is-fold b { background: #d8d1e6; background: color-mix(in srgb, var(--sr) 22%, #fff); color: #8a8499; color: color-mix(in srgb, var(--sr) 50%, #fff); box-shadow: none; }
.stl-sukno .stl-s.is-fold small { background: #efedf3; color: #8b8b92; }
.stl-sukno .stl-s.is-raise b, .stl-sukno .stl-s.is-bet b { box-shadow: 0 0 0 3px var(--ink), 0 2px 7px rgba(27,27,27,.22); }
.stl-sukno .stl-s.is-raise small, .stl-sukno .stl-s.is-bet small { background: var(--ink); color: #fff; }
.stl-sukno .stl-ck { width: 15px; height: 18px; }
.stl-sukno .stl-ck .k1 { fill: var(--k1); stroke: var(--k1s); stroke-width: 1.5; } .stl-sukno .stl-ck .k2 { fill: #fff; }
.stl-sukno .stl-b b { padding: 3px 8px; border-radius: 99px; background: #fff; }
.stl-sukno .stl-pot { padding: 5px 12px; border-radius: 99px; background: var(--pb); color: #fff; }
.stl-sukno .stl-pot small { color: rgba(255,255,255,.78); }
.stl-sukno .stl-d { background: #fff; color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); }
.stl-sukno .stl-hc .mc:first-child { transform: rotate(-4deg); } .stl-sukno .stl-hc .mc:last-child { transform: rotate(4deg); }
.stl-sukno .stl-hl { padding: 5px 13px; border-radius: 99px; background: #e2d5fc; }

/* «Лист»: язык платформы - белый лист, тонкая тёмная линия с кромкой снизу, места плитками */
.stl-list .stl-t { background: #fff; border: 2px solid var(--ink); box-shadow: 0 4px 0 0 var(--ink); }
.stl-list { --lf: #efe8fd; --lc: #f47b2a; }
.stl-list.cv-zel { --lf: #d9f1e2; } .stl-list.cv-pes { --lf: #fdebc8; --lc: #7b55e0; } .stl-list.cv-neb { --lf: #dbe9fb; }
.stl-list.cv-bel { --lf: #fff; }
.stl-list .stl-f { inset: 7px; background: var(--lf); }
.stl-list.cv-bel .stl-f { inset: 9px; border: 1.5px dashed #cfc9dc; }
.stl-list .stl-s b { min-width: calc(var(--pk) + 2px); height: calc(var(--pk) - 14px); padding: 0 8px; border-radius: 11px; background: #fff; border: 2px solid var(--ink); box-shadow: 0 3px 0 0 var(--ink); }
.stl-list .stl-s small { color: var(--sub); margin-top: 6px; padding: 1px 6px; border-radius: 6px; background: #fff; }
.stl-list .stl-s.is-fold b { border: 2px dashed #c4bfd2; box-shadow: none; background: #faf9fc; color: #a29eae; }
.stl-list .stl-s.is-fold small { color: #a29eae; margin-top: 3px; background: #faf9fc; }
.stl-list .stl-s.is-raise b, .stl-list .stl-s.is-bet b { background: var(--ink); color: #fff; }
.stl-list .stl-s.is-raise small, .stl-list .stl-s.is-bet small { color: var(--ink); font-weight: 700; }
.stl-list .stl-co { width: 14px; height: 14px; border-radius: 50%; background: var(--lc); border: 2px solid var(--ink); box-shadow: 0 2px 0 0 var(--ink); }
.stl-list .stl-pot small { color: var(--sub); }
.stl-list .stl-pot b { font-size: calc(var(--fs) + 2px); }
.stl-list .stl-d { background: var(--ink); color: #fff; }
.stl-list .stl-hl { padding: 6px 13px; border-radius: 11px; background: var(--acc, #5a3d8a); color: #fff; box-shadow: 0 3px 0 0 var(--accD, #3f2a63); }
