body.poker{display:flex;flex-direction:column;background:var(--color-paper)}
.poker .hud{z-index:2;min-height:48px}
.poker .hud [data-chips]{flex-wrap:nowrap;justify-content:flex-start;gap:8px;overflow:hidden;font-size:13px;font-weight:700;white-space:nowrap}
.poker .hud [data-chips] span{overflow:hidden;color:var(--color-muted);font-weight:500;text-overflow:ellipsis}
body.poker #stage{overflow:clip;isolation:isolate}
.poker:not(.pk-playing) #stage,.poker:not(.pk-playing) #hud{visibility:hidden;pointer-events:none}
#tableView.no-webgl::before{content:"";position:absolute;left:8%;right:8%;top:12%;bottom:10%;border-radius:50%;background:#4c3e46;border:8px solid #32292d}
#fallbackCards{position:absolute;inset:44% 0 auto;display:flex;justify-content:center;gap:5px}
#fallbackCards .pk-card{width:34px;height:48px;font-size:18px;line-height:20px}
#seats{position:absolute;inset:0;pointer-events:none;z-index:2}
#chipLabels{position:absolute;inset:0;pointer-events:none;z-index:1}
#chipLabels>span{position:absolute;transform:translate(-50%,-50%) scale(var(--pk-k,1));white-space:nowrap;font-variant-numeric:tabular-nums}
.pk-wager{padding:1px 6px;border-radius:99px;background:#211920d9;color:#fff6ef;font-size:10px;line-height:14px;font-weight:700}
.pk-pot{position:absolute;z-index:1;transform:translate(-50%,-50%) scale(var(--pk-k,1));display:flex;align-items:baseline;gap:6px;padding:3px 11px;border-radius:99px;background:#211920d9;color:#fff6ef;white-space:nowrap;pointer-events:none}
.is-wide .pk-pot small{display:none}
.pk-pot small{font-size:9px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;opacity:.7}
.pk-pot b{font-size:15px;line-height:20px;font-variant-numeric:tabular-nums}
.pk-seat{position:absolute;transform:translate(-50%,-50%) scale(var(--pk-k,1));display:flex;flex-direction:column;align-items:center;width:max-content;transition:opacity .2s}
.pk-ava{position:relative;z-index:1;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;border:2px solid #fff6ef;color:#fff;font-size:13px;font-style:normal;font-weight:700;line-height:1}
.pk-plate{min-width:56px;max-width:78px;margin-top:-8px;padding:9px 8px 3px;border-radius:9px;background:#211920e6;color:#fff6ef;text-align:center}
.pk-plate b{display:block;overflow:hidden;font-size:10px;font-weight:600;line-height:12px;opacity:.75;white-space:nowrap;text-overflow:ellipsis}
.pk-plate strong{display:block;font-size:13px;line-height:15px;font-variant-numeric:tabular-nums}
.pk-move{margin-top:-1px;padding:1px 7px;overflow:hidden;border-radius:99px;background:var(--color-surface);border:1px solid var(--color-line);color:var(--color-ink);font-size:9px;font-weight:700;line-height:13px;white-space:nowrap;text-overflow:ellipsis}
.pk-move:empty{display:none}
.pk-seat.is-turn .pk-ava{box-shadow:0 0 0 3px var(--color-signal)}
.pk-seat.is-turn .pk-plate{box-shadow:inset 0 0 0 1.5px var(--color-signal)}
.pk-seat.is-folded{opacity:.5}
.pk-seat.is-folded .pk-ava{filter:grayscale(1)}
.pk-seat.is-winner .pk-plate{background:var(--color-signal-deep);color:#fff}
.pk-seat.is-winner .pk-plate b{opacity:1}
.pk-large-cards{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.pk-large-cards .pk-card{width:48px;height:72px;flex:none}
.pk-bottom{max-height:calc(100dvh - 300px)}
.pk-panel{display:flex;flex-direction:column;gap:8px;min-height:0;overflow-x:hidden;overflow-y:auto;touch-action:pan-y;overscroll-behavior:contain}
.pk-hero{flex:none;display:flex;align-items:center;gap:12px;min-height:40px}
.pk-hero-text{flex:1;min-width:0}
#status{overflow:hidden;font-size:14px;font-weight:700;line-height:20px;white-space:nowrap;text-overflow:ellipsis}
#status.is-mine{color:var(--color-signal-ink)}
.pk-stack{flex:none;text-align:right}
.pk-stack small{display:block;color:var(--color-faint);font-size:9px;font-weight:700;letter-spacing:.12em;line-height:12px;text-transform:uppercase}
.pk-stack b{display:block;font-size:20px;line-height:24px;font-variant-numeric:tabular-nums}
.pk-stack b:empty,.pk-stack:has(b:empty){display:none}
#stackLabel{display:block;overflow:hidden;color:var(--color-muted);font-size:11px;line-height:16px;white-space:nowrap;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
/* Свои карты лежат на краю панели и выступают на стол, не закрывая его. */
#myCards{position:relative;z-index:3;flex:none;display:flex;gap:4px;margin:-38px 2px 0;padding:0;border:0;border-radius:8px;background:none;cursor:pointer;touch-action:manipulation}
#myCards:focus-visible{outline:2px solid var(--color-signal-deep);outline-offset:5px}
#myCards.is-folded{opacity:.5}
#myCards .pk-card{width:52px;height:74px;flex:none;box-shadow:0 1px 0 #00000014}
#myCards .pk-card:first-child{transform:rotate(-4deg)}
#myCards .pk-card:last-child{transform:rotate(4deg)}
.pk-card{height:66px;width:46px;flex:none;border:1px solid #ddd6ce;border-radius:7px;background:#fffaf4;color:#29231f;font-weight:700;position:relative}
.pk-card-rank{position:absolute;top:4px;left:5px;font-size:21px;line-height:1}
.pk-card-suit{position:absolute;left:50%;top:53%;transform:translate(-50%,-50%);font-size:29px;line-height:1}
.pk-card-corner{position:absolute;right:4px;bottom:4px;transform:rotate(180deg);font-size:13px;line-height:1}
#myCards .pk-card-rank{font-size:24px}
#myCards .pk-card-suit{font-size:32px}
.pk-card.is-red{color:#be2a63}
.pk-card.is-best,#myCards .pk-card.is-best{border-color:var(--color-signal-deep);box-shadow:0 0 0 2px var(--color-signal-soft)}
.pk-card.is-back{display:grid;place-items:center;background:repeating-linear-gradient(45deg,#68344d,#68344d 3px,#78405a 3px,#78405a 6px);border:3px solid #f7eee4;color:#f7eee4;font-size:18px}
.pk-actions{flex:none;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) minmax(0,1fr);gap:8px;padding:0 3px 4px 0}
.pk-actions .btn{min-height:52px;flex-direction:column;gap:2px;padding:6px 4px;color:var(--color-ink);font-size:14px;font-weight:700}
.pk-actions .btn.primary{color:var(--color-on-ink)}
.pk-actions small{font-size:10px;font-weight:500;line-height:12px;text-align:center;opacity:.65}
.pk-actions .suggested{border-color:var(--color-signal-deep)}
.pk-bottom.is-plain .pk-actions small{display:none}
.pk-bottom.is-plain .pk-actions .btn{min-height:48px}
.pk-coach{position:relative;flex:none;background:var(--color-signal-faint);border:1px solid var(--color-signal-soft);border-radius:var(--radius-lg);padding:7px 10px}
.pk-coach-head{position:absolute;top:4px;right:4px;display:flex;align-items:center;justify-content:space-between;color:var(--color-signal-ink);font-size:9px;letter-spacing:.08em;text-transform:uppercase}
.pk-coach-head>span{display:none}
.pk-coach-head>button{width:28px;height:28px;border:0;background:transparent;color:var(--color-signal-ink);font-size:18px;cursor:pointer}
.pk-coach-hand{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-right:26px;min-height:30px}
.pk-coach-hand>b{font-size:13px;line-height:17px}
#comboCards{display:flex;gap:3px;flex:none}
#comboCards .pk-card{width:21px;height:30px;border-radius:4px}
#comboCards .pk-card-rank{top:2px;left:3px;font-size:10px}
#comboCards .pk-card-suit{top:66%;font-size:13px}
#comboCards .pk-card-corner{display:none}
#comboCards .pk-card.is-best{box-shadow:0 0 0 1px var(--color-signal-soft)}
.pk-coach-summary{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;line-height:14px;color:var(--color-muted)}
.pk-coach-summary>span{min-width:0}
#comboReference{flex:none;min-height:22px;padding:0;border:0;background:transparent;color:var(--color-signal-ink);font:inherit;font-size:10px;font-weight:600;cursor:pointer}
.pk-coach-advice{margin-top:6px;padding-top:6px;border-top:1px solid var(--color-signal-soft)}
.pk-coach-advice>b{font-size:12px;line-height:16px;display:block}
.pk-coach-advice>p,.pk-coach>p{font-size:11px;line-height:16px;color:var(--color-muted);margin-top:4px}
.pk-coach.is-collapsed .pk-coach-advice{display:none}
.pk-coach.is-teaching .pk-coach-head{position:static;margin-bottom:5px}
.pk-coach.is-teaching .pk-coach-head>span{display:block}
.pk-coach.is-teaching .pk-coach-hand{padding-right:0}
#lessonFeedback{color:var(--color-signal-ink);font-weight:600}
#lessonButtons:not(:empty){display:flex;gap:7px;margin-top:9px}
#lessonButtons .btn{flex:1;padding:8px;font-size:12px}
.pk-progress{height:3px;background:var(--color-signal-soft);margin-top:10px;border-radius:2px;overflow:hidden}
.pk-progress::after{content:"";display:block;height:100%;width:var(--progress,0%);background:var(--color-signal-deep);transition:width .2s}
.pk-result{flex:none;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px 12px}
.pk-result>b{font-size:14px;line-height:18px}
.pk-result>p{grid-column:1;color:var(--color-muted);font-size:11px;line-height:15px}
.pk-result>.btn{grid-column:2;grid-row:1/4;min-height:48px;font-size:13px}
.pk-why{grid-column:1;justify-self:start;min-height:24px;padding:0;border:0;background:none;color:var(--color-signal-ink);font:inherit;font-size:11px;font-weight:700;cursor:pointer}
.pk-show{padding:10px 0;border-top:1px solid var(--color-line-soft)}
.pk-show-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:13px}
.pk-show-head em{color:var(--color-signal-ink);font-style:normal;font-weight:700;font-variant-numeric:tabular-nums}
.pk-show>span{display:block;margin-top:2px;font-size:12px;font-weight:600}
.pk-show>p{color:var(--color-muted);font-size:12px;line-height:16px}
.pk-show.is-top>p{color:var(--color-signal-ink);font-weight:600}
.pk-bet{flex:none}
.pk-bet-head{display:flex;align-items:center;gap:8px;font-size:12px}
.pk-bet-head>output{font-size:17px;font-weight:700;flex:1;color:var(--color-signal-ink);font-variant-numeric:tabular-nums}
.pk-bet-head>.btn{min-height:30px;padding:4px 6px;font-size:11px}
#betCost{font-size:10px;line-height:14px;color:var(--color-muted);margin:2px 0 5px}
.pk-bet-presets{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:5px}
.pk-bet-presets>.btn{font-size:11px;padding:4px;min-height:36px}
.pk-bet-presets>.btn.on{border-color:var(--color-signal-deep);background:var(--color-signal-soft);color:var(--color-signal-ink)}
#betRange{width:100%;height:34px;accent-color:var(--color-signal-deep);margin:5px 0;touch-action:none}
.pk-dialog fieldset{margin:0;padding:0;border:0;min-width:0;display:flex;flex-direction:column;gap:8px}
.pk-dialog legend{font-size:12px;font-weight:700;margin-bottom:8px}
.pk-dialog label{font-size:11px;color:var(--color-muted);display:flex;flex-direction:column;gap:5px}
.pk-dialog .seg-b{font-size:11px;padding:10px 5px;min-height:44px}
.pk-dialog summary{font-size:12px;cursor:pointer}
.pk-dialog details p{margin-top:10px}
.pk-combo{padding:12px 8px;border-bottom:1px solid var(--color-line-soft);border-radius:7px}
.pk-combo:last-child{border-bottom:0}
.pk-combo.is-current{background:var(--color-signal-faint);box-shadow:inset 0 0 0 1px var(--color-signal-soft)}
.pk-combo>div:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.pk-combo b{font-size:12px}
.pk-combo em{font-size:10px;color:var(--color-muted);font-style:normal}
.pk-combo.is-current em{color:var(--color-signal-ink);font-weight:600}
.pk-combo-sample{display:flex;gap:6px;margin:8px 0}
.pk-combo-sample .pk-card{width:38px;height:54px}
.pk-combo-sample .pk-card-rank{font-size:17px;left:4px;top:3px}
.pk-combo-sample .pk-card-suit{font-size:23px}
.pk-combo-sample .pk-card-corner{font-size:10px;right:3px;bottom:3px}
.pk-combo p{font-size:11px;color:var(--color-muted);line-height:16px}
.pk-room-bots{margin-top:6px}
.poker .lobby [data-settophost],.poker .lobby [data-settopguest]{width:100%;text-align:left}
.poker .lobby [data-settophost] .seg-b,.poker .lobby [data-settopguest] .seg-b{min-width:44px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:360px){
  .pk-coach{padding:6px 8px}.pk-coach-hand{gap:5px}.pk-coach-hand>b{font-size:12px}
  #myCards .pk-card{width:46px;height:66px}#myCards .pk-card-rank{font-size:21px}#myCards .pk-card-suit{font-size:29px}
  .pk-actions .btn{font-size:13px}
}
@media(max-height:700px) and (orientation:portrait){
  .poker .hud{min-height:42px;padding-block:4px}
  .pk-actions .btn{min-height:46px}.pk-actions small{display:none}.pk-coach-advice>p{font-size:10px;line-height:14px}
  .pk-coach.is-collapsed .pk-coach-summary{display:none}
}
@media(max-height:540px) and (min-width:600px){
  .pk-bottom{max-height:none}
  #myCards{margin-top:0}#myCards .pk-card{width:44px;height:62px}#myCards .pk-card-rank{font-size:21px}#myCards .pk-card-suit{font-size:28px}
  .pk-actions .btn{min-height:44px;font-size:12px}.pk-actions small{font-size:9px}
  .pk-result{grid-template-columns:minmax(0,1fr)}.pk-result>.btn{grid-column:1;grid-row:auto;margin-top:6px}
}
@media(prefers-reduced-motion:reduce){.pk-seat,.pk-progress::after{transition:none}}
