/* ───────── Покер: лобби ───────── */
.pkl-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; margin-bottom: 18px; }
@media (max-width: 900px) { .pkl-hero { grid-template-columns: 1fr; } }
.pkl-banner { background: radial-gradient(120% 140% at 0% 0%, #1f8f5b 0%, #0e4d33 55%, #0a2f20 100%); border-radius: 18px; padding: 26px; position: relative; overflow: hidden; border: 1px solid #2c6f52; }
.pkl-banner h1 { font-size: 30px; margin-bottom: 6px; }
.pkl-banner .suits { position: absolute; right: 18px; top: 8px; font-size: 92px; opacity: .12; letter-spacing: 6px; }
.pkl-quick label { display: block; margin: 10px 0 4px; font-size: 13px; color: var(--muted); }
.pkl-quick .val { float: right; color: var(--text); font-weight: 700; }
.pkl-quick input[type=range] { width: 100%; accent-color: var(--good); }
.pkl-table { width: 100%; border-collapse: collapse; }
.pkl-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.pkl-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pkl-table tr:hover td { background: rgba(255,255,255,.03); }
.pkl-dots { display: inline-flex; gap: 3px; vertical-align: middle; }
.pkl-dots i { width: 9px; height: 9px; border-radius: 50%; background: #2e3550; display: block; }
.pkl-dots i.on { background: var(--good); } .pkl-dots i.bot { background: #6c8cff; }
.pkl-pill { display: inline-block; padding: 2px 9px; border-radius: 99px; background: var(--panel2); border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.pkl-filters { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 4px 0 12px; }
.pkl-filters .seg { margin: 0; }
.fld { display: grid; gap: 4px; margin-bottom: 12px; }
.fld > span { font-size: 13px; color: var(--muted); }
.fld input[type=text], .fld input[type=number] { background: var(--panel2); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; }

/* ───────── Покер: стол ───────── */
.pk { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: start; }
@media (max-width: 1000px) { .pk { grid-template-columns: 1fr; } }
.pk-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.pk-top h2 { margin: 0; font-size: 18px; }
.pk-top .grow { flex: 1; }
.pk-wrap { container-type: inline-size; width: 100%; }
.pk-felt { --u: clamp(6.5px, 1.45cqw, 15px); font-size: var(--u); position: relative; width: 100%; aspect-ratio: 16 / 10.2; border-radius: 50% / 46%;
  background: radial-gradient(ellipse at 50% 42%, #23996a 0%, #167650 38%, #0c4c33 80%, #08382a 100%);
  border: 1.6em solid #2a1c14; box-shadow: 0 0 0 .25em #6b4a2f, 0 1.4em 3em rgba(0,0,0,.6), inset 0 0 6em rgba(0,0,0,.45); }
.pk-felt::after { content: ""; position: absolute; inset: 3.2em; border: .18em solid rgba(255,255,255,.1); border-radius: 50% / 46%; pointer-events: none; }
.pk-brand { position: absolute; left: 50%; top: 14%; transform: translateX(-50%); color: rgba(255,255,255,.1); font-weight: 800; letter-spacing: .5em; font-size: 2.1em; white-space: nowrap; pointer-events: none; }
.pk-center { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 1.1em; z-index: 3; }
.pk-board { display: flex; gap: .7em; }
.pk-slot { width: 4.6em; height: 6.5em; border-radius: .55em; border: .15em dashed rgba(255,255,255,.13); }
.pk-pot { display: flex; align-items: center; gap: .6em; background: rgba(0,0,0,.4); padding: .35em 1.1em; border-radius: 99px; font-weight: 700; font-size: 1.35em; color: #ffe08a; }
.pk-sidepots { display: flex; gap: .5em; font-size: 1.05em; color: #d7e9de; }
.pk-sidepots span { background: rgba(0,0,0,.35); padding: .15em .7em; border-radius: 99px; }
.pk-banner { background: linear-gradient(135deg, #f5c542, #c98a14); color: #2a1a00; padding: .45em 1.3em; border-radius: 99px; font-weight: 800; font-size: 1.3em; box-shadow: 0 .4em 1.2em rgba(0,0,0,.5); animation: bannerIn .35s ease-out; white-space: nowrap; }
@keyframes bannerIn { from { transform: scale(.6) translateY(1em); opacity: 0; } }

/* карты */
.pc { width: 4.6em; height: 6.5em; border-radius: .55em; background: linear-gradient(160deg, #fff, #eceff4); color: #15171f; position: relative; box-shadow: 0 .25em .7em rgba(0,0,0,.5); font-weight: 800; flex: none; user-select: none; }
.pc.red { color: #d3202f; }
.pc .r { position: absolute; left: .35em; top: .2em; font-size: 1.55em; line-height: 1; }
.pc .s1 { position: absolute; left: .4em; top: 1.75em; font-size: 1.15em; line-height: 1; }
.pc .s2 { position: absolute; right: .3em; bottom: .05em; font-size: 3em; line-height: 1; }
.pc.back { background: linear-gradient(135deg, var(--a), var(--b)); border: .3em solid #f2f2f2; display: grid; place-items: center; color: rgba(255,255,255,.55); font-size: 1.6em; }
.pc.back::before { content: ""; position: absolute; inset: .25em; border: .1em solid rgba(255,255,255,.35); border-radius: .35em; }
.pc.sm { width: 3.1em; height: 4.4em; border-radius: .4em; }
.pc.sm .r { font-size: 1.1em; left: .25em; } .pc.sm .s1 { display: none; } .pc.sm .s2 { font-size: 1.9em; right: .2em; bottom: .15em; }
.pc.sm.back { font-size: 1.1em; border-width: .2em; }
.pc.lg { width: 5.6em; height: 7.8em; }
.pc.deal { animation: dealIn .45s cubic-bezier(.2,.8,.2,1) backwards; }
@keyframes dealIn { from { transform: translate(-6em, -4em) rotate(-25deg) scale(.5); opacity: 0; } }
.pc.dim { filter: brightness(.55); }
.pc.hot { box-shadow: 0 0 0 .22em #ffd25e, 0 0 1.4em #ffd25e99, 0 .25em .7em rgba(0,0,0,.5); transform: translateY(-.35em); }

/* места */
.pk-seat { position: absolute; transform: translate(-50%, -50%); width: 11em; display: grid; justify-items: center; z-index: 4; transition: opacity .3s; }
.pk-seat.folded { opacity: .45; }
.pk-seat .hole { display: flex; margin-bottom: -1.2em; z-index: 1; min-height: 2.6em; }
.pk-seat .hole .pc { margin: 0 -.45em; }
.pk-seat .hole .pc:first-child { transform: rotate(-7deg); } .pk-seat .hole .pc:last-child { transform: rotate(7deg); }
.pk-seat.me .hole .pc { margin: 0 .15em; } .pk-seat.me .hole .pc:first-child, .pk-seat.me .hole .pc:last-child { transform: none; }
.pk-seat.me .hole { margin-bottom: -1.6em; }
.pk-plate { position: relative; z-index: 2; width: 100%; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .6em; padding: .45em .7em .45em .45em; background: linear-gradient(180deg, #232839, #171b28); border: .12em solid #3a4262; border-radius: 99px; box-shadow: 0 .3em 1em rgba(0,0,0,.5); }
.pk-seat.turn .pk-plate { border-color: #35d49a; box-shadow: 0 0 0 .18em rgba(53,212,154,.35), 0 .3em 1em rgba(0,0,0,.5); }
.pk-seat.win .pk-plate { border-color: #ffd25e; box-shadow: 0 0 0 .2em rgba(255,210,94,.5), 0 0 2em #ffd25e88; animation: winPulse 1s ease-in-out infinite alternate; }
@keyframes winPulse { to { box-shadow: 0 0 0 .35em rgba(255,210,94,.25), 0 0 3em #ffd25ecc; } }
.pk-ring { width: 3.6em; height: 3.6em; border-radius: 50%; padding: .2em; background: conic-gradient(#35d49a calc(var(--p, 0) * 1%), rgba(255,255,255,.12) 0); display: grid; place-items: center; }
.pk-ring .avatar { width: 100% !important; height: 100% !important; font-size: 1.9em !important; padding: .18em; }
.pk-nm { min-width: 0; line-height: 1.15; }
.pk-nm b { display: block; font-size: 1.1em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-nm .stk { color: #ffe08a; font-weight: 700; font-size: 1.05em; }
.pk-nm .st { color: #9fb0d8; font-size: .85em; white-space: nowrap; }
.pk-hand { position: absolute; bottom: -1.7em; left: 50%; transform: translateX(-50%); background: #ffd25e; color: #2a1a00; font-weight: 800; padding: .1em .8em; border-radius: 99px; font-size: .95em; white-space: nowrap; z-index: 5; }
.pk-badge { position: absolute; top: -.6em; right: -.2em; z-index: 6; display: flex; gap: .25em; }
.pk-badge i { font-style: normal; min-width: 2em; height: 2em; padding: 0 .4em; border-radius: 99px; display: grid; place-items: center; font-weight: 800; font-size: .9em; box-shadow: 0 .15em .4em rgba(0,0,0,.5); }
.pk-badge .d { background: #fff; color: #111; } .pk-badge .sb { background: #5ec8ff; color: #04202e; } .pk-badge .bb { background: #ff9f5e; color: #331500; }
.pk-seat.empty .pk-plate { background: rgba(0,0,0,.3); border: .14em dashed rgba(255,255,255,.28); color: rgba(255,255,255,.75); cursor: pointer; justify-content: center; grid-template-columns: 1fr; text-align: center; padding: .9em; }
.pk-seat.empty .pk-plate:hover { background: rgba(53,212,154,.25); border-color: #35d49a; }
.pk-seat.gone { opacity: .35; }
.pk-bet { position: absolute; transform: translate(-50%, -50%); z-index: 3; display: flex; align-items: center; gap: .35em; background: rgba(0,0,0,.45); border-radius: 99px; padding: .15em .7em .15em .3em; font-weight: 700; font-size: 1.1em; color: #fff; transition: left .35s, top .35s; }
.chips { position: relative; width: 1.8em; height: 1.8em; flex: none; }
.chips i { position: absolute; left: 0; width: 1.8em; height: 1.8em; border-radius: 50%; border: .25em dashed rgba(255,255,255,.85); box-shadow: 0 .12em .25em rgba(0,0,0,.55), inset 0 0 0 .12em rgba(0,0,0,.25); }
.chip-1 { background: #e8e8ee; } .chip-5 { background: #d2323f; } .chip-25 { background: #1f8f5b; } .chip-100 { background: #20242e; } .chip-500 { background: #7a3fb8; } .chip-1000 { background: #e0a91a; }

/* панель действий */
.pk-actions { margin-top: 12px; background: linear-gradient(180deg, #1d2232, #151927); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; min-height: 96px; display: grid; gap: 10px; }
.pk-actions .row { justify-content: center; }
.pk-btn { padding: 12px 22px; border-radius: 12px; font-weight: 800; font-size: 15px; min-width: 112px; transition: .12s; box-shadow: 0 3px 0 rgba(0,0,0,.35); }
.pk-btn:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.1); } .pk-btn:active:not(:disabled) { transform: translateY(2px); box-shadow: none; }
.pk-btn:disabled { opacity: .4; cursor: not-allowed; }
.pk-btn.fold { background: #c9374a; } .pk-btn.call { background: #1f9b66; } .pk-btn.raise { background: #3d6cf0; } .pk-btn.allin { background: linear-gradient(135deg, #f0a31a, #e0561a); }
.pk-btn kbd { opacity: .65; font-size: 11px; margin-left: 6px; font-family: inherit; }
.pk-slider { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; }
.pk-slider input[type=range] { width: 100%; accent-color: #3d6cf0; height: 24px; }
.pk-slider input[type=number] { width: 104px; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; font-weight: 700; }
.pk-presets { display: flex; gap: 6px; flex-wrap: wrap; grid-column: 1 / -1; }
.pk-presets button { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 5px 12px; font-size: 13px; }
.pk-presets button:hover { border-color: #3d6cf0; }
.pk-wait { text-align: center; color: var(--muted); padding: 8px; }
.pk-pre { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.pk-pre label { display: flex; gap: 5px; align-items: center; cursor: pointer; }

/* боковая панель */
.pk-side { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 10px; display: grid; gap: 8px; max-height: 88vh; position: sticky; top: 64px; }
.pk-tabs { display: flex; gap: 4px; }
.pk-tabs button { flex: 1; background: var(--panel2); border-radius: 8px; padding: 7px 2px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.pk-tabs button.on { background: var(--accent); color: #fff; }
.pk-pane { height: 360px; overflow-y: auto; font-size: 13px; background: #131622; border-radius: 10px; padding: 8px 10px; }
.pk-pane p { margin: 0 0 5px; } .pk-pane p.hd { color: #ffe08a; font-weight: 700; margin-top: 6px; } .pk-pane p.me { color: #8fb0ff; }
.pk-pane details { margin-bottom: 6px; } .pk-pane summary { cursor: pointer; color: var(--muted); }
.pk-rank { display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.pk-rank .pc { font-size: 4px; }
.pk-rank .pk-rankcards { display: flex; gap: 2px; }
.oddsbox { background: rgba(108,140,255,.12); border: 1px solid var(--accent); border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.bar { height: 8px; border-radius: 99px; background: #2e3550; overflow: hidden; margin: 5px 0; position: relative; } .bar i { display: block; height: 100%; background: linear-gradient(90deg, #35d49a, #6c8cff); }
.pk-over { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5,8,14,.6); border-radius: inherit; z-index: 20; text-align: center; padding: 1em; }
.pk-toast { white-space: nowrap; position: absolute; left: 50%; bottom: 27%; transform: translateX(-50%); background: rgba(0,0,0,.65); padding: .4em 1.2em; border-radius: 99px; z-index: 8; font-size: 1.15em; }
.pk-floating { position: absolute; z-index: 9; font-weight: 900; font-size: 1.6em; color: #7dffb8; text-shadow: 0 .1em .4em #000; animation: floatUp 1.8s ease-out forwards; pointer-events: none; }
@keyframes floatUp { from { transform: translate(-50%, 0); opacity: 1; } to { transform: translate(-50%, -3.5em); opacity: 0; } }

.pk-banner-slot { height: 2.4em; }

@media (max-width: 700px) {
  .pk-felt { --u: 2.1cqw; aspect-ratio: 3 / 3.9; border-width: 1.1em; }
  .pk-seat { width: 12em; } .pk-top h2 { font-size: 15px; }
}

/* турнирный зал ожидания */
.pk-seatgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 16px auto 0; max-width: 760px; }
.pk-slotcard { background: var(--panel2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 8px; display: grid; justify-items: center; gap: 4px; min-height: 108px; align-content: center; }
.pk-slotcard.empty { border-style: dashed; background: transparent; }
.pk-slotcard.you { border-color: var(--good); box-shadow: 0 0 0 2px rgba(53,212,154,.25); }

/* код стола и моя комбинация */
.pkl-pill.code { cursor: pointer; background: rgba(255,210,94,.12); border-color: rgba(255,210,94,.45); color: #ffe08a; letter-spacing: .5px; }
.pkl-pill.code:hover { background: rgba(255,210,94,.25); }
.pk-mine { display: flex; align-items: center; justify-content: center; gap: .6em; flex-wrap: wrap; padding: 8px 12px; border-radius: 12px; background: rgba(108,140,255,.14); border: 1px solid rgba(108,140,255,.5); font-size: 15px; }
.pk-mine .lbl { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .8px; }
.pk-mine b { font-size: 17px; }
.pk-mine.strong { background: rgba(53,212,154,.16); border-color: var(--good); }
.pk-mine.fresh { animation: mineIn .5s ease-out; box-shadow: 0 0 0 3px rgba(255,210,94,.55), 0 0 22px rgba(255,210,94,.4); }
.pk-mine .up { background: #ffd25e; color: #2a1a00; font-weight: 800; padding: 1px 10px; border-radius: 99px; font-size: 13px; }
@keyframes mineIn { from { transform: scale(.92); opacity: .4; } }
.pk-mine .hint { color: var(--muted); font-size: 13px; }
