*{box-sizing:border-box} :root{color-scheme:dark;font-family:Manrope,Inter,Segoe UI,Arial,sans-serif} body{margin:0;min-width:320px;min-height:100vh;background:#080b0a;color:#f7f4ea} button,input{font:inherit} button{color:inherit}.game{min-height:100svh;padding:16px 26px 22px;overflow:hidden;background:radial-gradient(circle at 50% 42%,#20251f 0,#0d110f 44%,#070908 100%)}
.topbar{position:relative;z-index:5;max-width:1180px;height:48px;margin:0 auto 8px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:10px;letter-spacing:.24em;font-size:14px;font-weight:800}.brand-mark{display:grid;place-items:center;width:34px;height:34px;color:#111;background:#d9be73;border-radius:50%;font-size:19px}.top-actions{display:flex;align-items:center;gap:7px}.ghost{border:1px solid #ffffff24;background:#ffffff0b;border-radius:12px;padding:9px 16px;cursor:pointer}.ghost:hover{background:#ffffff15}.reset-button{color:#b8c1bd;font-size:11px}.reset-button:hover{border-color:#d46f6f55;color:#efb0b0;background:#7b29291f}
.table-wrap{max-width:1180px;margin:auto}.rail{height:calc(100svh - 96px);min-height:650px;max-height:780px;padding:18px;border-radius:48%;background:linear-gradient(135deg,#5e3821,#2a160e 35%,#7b4b2b 58%,#28140c);box-shadow:0 34px 90px #000c,inset 0 2px 3px #d49d6566}.felt{position:relative;width:100%;height:100%;border-radius:inherit;overflow:hidden;background:radial-gradient(ellipse at center,#147354 0,#0b5a40 52%,#06422f 100%);border:5px solid #0c281f;box-shadow:inset 0 0 90px #001a11aa,inset 0 0 0 2px #ffffff0b}.felt:after{content:"";position:absolute;inset:13%;border:1px solid #f3dca51a;border-radius:48%;pointer-events:none}
.seat{position:absolute;z-index:2;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center}.bot-seat{top:20px}.human-seat{bottom:96px}.player-line{display:flex;align-items:center;gap:9px;padding:6px 12px 6px 7px;min-width:145px;border-radius:17px;background:#07120fcc;box-shadow:0 8px 22px #001b}.player-line>div{display:flex;flex-direction:column}.player-line strong{font-size:13px}.player-line small{color:#c8d5cf;font-size:11px}.avatar{display:grid;place-items:center;width:32px;height:32px;flex:none;border-radius:12px;background:#9a633e;font-weight:800}.avatar.human{background:#d8b860;color:#1a160a}.dealer{display:grid;place-items:center;width:21px;height:21px;margin-left:auto;border-radius:50%;background:#eee8d6;color:#14221d;font-size:10px;font-weight:800}
.hole{display:flex;justify-content:center;margin-top:7px;filter:drop-shadow(0 8px 8px #0018)}.hole .card+.card{margin-left:-25px;transform:rotate(3deg)}.hole .card:first-child{transform:rotate(-3deg)}.card{width:76px;aspect-ratio:2.5/3.5;object-fit:contain;user-select:none}.card.small{width:clamp(56px,6.2vw,75px)}.placeholder{border-radius:5px;border:1px dashed #dcead936;background:#062f2480}
.center{position:absolute;z-index:2;top:47%;left:50%;width:72%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center}.pot{margin-bottom:10px;padding:7px 14px;border-radius:999px;color:#c7d4ce;background:#04261db8;font-size:10px;letter-spacing:.15em}.pot strong{margin-left:6px;color:#f3ce69;font-size:14px;letter-spacing:normal}.board{display:flex;gap:clamp(4px,.7vw,9px);min-height:105px}.status{margin-top:11px;padding:8px 16px;border-radius:10px;background:#061d17bb;color:#e9eee9;font-size:13px;font-weight:700;text-align:center;box-shadow:0 8px 20px #0015}.status.finished{background:#e2c164;color:#1a180d}.results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;width:min(100%,430px);margin-top:8px}.result{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;padding:7px 9px;border:1px solid #ffffff16;border-radius:9px;background:#061d17df}.result span{color:#9baba4;font-size:9px;font-weight:800;text-transform:uppercase}.result strong{overflow:hidden;color:#f4e4b2;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.bet{position:absolute;white-space:nowrap;color:#f3d783;font-size:11px;font-weight:700}.bot-bet{top:155px;left:calc(50% + 92px)}.human-bet{bottom:150px;left:calc(50% + 98px)}.history{position:absolute;z-index:3;top:50%;left:5%;width:190px;transform:translateY(-50%);display:flex;flex-direction:column;gap:5px;color:#c4d1cb;font-size:10px}.history:before{content:"ДЕЙСТВИЯ";margin:0 0 2px 8px;color:#8fa098;font-size:8px;font-weight:800;letter-spacing:.16em}.history span{padding:6px 9px;border-left:2px solid #d7bb6344;border-radius:0 8px 8px 0;background:#041d16a6;animation:history-in .2s ease-out}.history span:last-child{border-left-color:#e2c568;color:#fff;background:#061f18dd}@keyframes history-in{from{opacity:0;transform:translateX(-5px)}to{opacity:1;transform:none}}
.actions{position:absolute;z-index:4;bottom:18px;left:50%;transform:translateX(-50%);width:min(94%,730px);display:flex;justify-content:center;gap:8px;padding:9px;border:1px solid #ffffff17;border-radius:17px;background:#07110ee8;box-shadow:0 12px 28px #0018}.actions button{min-width:92px;border:1px solid #ffffff20;border-radius:11px;padding:10px 14px;background:#26352f;cursor:pointer;font-size:12px;font-weight:800}.actions button:hover:not(:disabled){background:#354a42;transform:translateY(-1px)}.actions button:disabled{opacity:.38;cursor:not-allowed}.actions .primary{border-color:#ecd37b;background:#d7bb63;color:#18160d}.actions .primary:hover:not(:disabled){background:#eed57e}.raise{display:flex;align-items:stretch;gap:7px}.amount{display:flex;align-items:center;gap:7px;padding:0 8px 0 10px;border:1px solid #ffffff20;border-radius:11px;background:#101c18}.amount label{color:#aebbb5;font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.amount input{width:76px;border:0;outline:0;padding:7px 3px;background:transparent;color:#f3d783;font-size:14px;font-weight:800;text-align:right}.actions .max{min-width:52px;padding-inline:8px;color:#e8cc76}.next{min-width:180px!important}
.backdrop{position:fixed;z-index:20;inset:0;display:none;place-items:center;padding:20px;background:#020504d8;backdrop-filter:blur(7px)}.backdrop.open{display:grid}.modal{position:relative;width:min(760px,100%);max-height:92vh;overflow:auto;padding:24px;border:1px solid #ffffff1c;border-radius:22px;background:#111a17;box-shadow:0 30px 100px #000}.close{position:absolute;top:12px;right:15px;border:0;background:transparent;color:#adb6b1;font-size:28px;cursor:pointer}.guide-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:0 36px 14px 0}.guide-head h2{margin:3px 0 0;color:#e4c96f}.guide-head p{margin:0;color:#93a29b;font-size:11px}.eyebrow{color:#8d9b95;font-size:9px;font-weight:800;letter-spacing:.16em}.guide{display:grid;gap:5px}.guide-row{display:grid;grid-template-columns:24px 150px 1fr;align-items:center;gap:10px;min-height:58px;padding:6px 10px;border:1px solid #ffffff0e;border-radius:12px;background:#ffffff05}.guide-row:first-child{border-color:#d9bd6155;background:#d9bd610d}.rank{color:#d8bd69;font-size:12px;font-weight:800;text-align:center}.guide-copy{display:flex;flex-direction:column;gap:2px}.guide-copy strong{font-size:13px}.guide-copy small{color:#91a099;font-size:9px}.guide-cards{display:flex;justify-content:flex-end;min-width:0;filter:drop-shadow(0 4px 4px #0006)}.guide-card{width:38px;aspect-ratio:2.5/3.5;object-fit:contain}.guide-card+.guide-card{margin-left:-7px}.modal-ok{width:100%;margin-top:12px;border:0;border-radius:11px;padding:11px;background:#d7bb63;color:#18160d;font-weight:800;cursor:pointer}.confirm-modal{width:min(410px,100%);overflow:visible;padding:30px;text-align:center}.confirm-icon{display:grid;place-items:center;width:48px;height:48px;margin:0 auto 14px;border-radius:16px;background:#d7bb6318;color:#e4c96f;font-size:26px}.confirm-modal h2{margin:0 0 9px;font-size:20px}.confirm-modal p{margin:0;color:#9eaaa5;font-size:12px;line-height:1.6}.confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:22px}.confirm-actions button{border-radius:11px;padding:11px;border:1px solid #ffffff1d;cursor:pointer;font-weight:800}.danger{background:#b84a43;color:#fff}.danger:hover{background:#cf5a51}
@media(max-width:760px){.game{padding:10px;overflow:auto}.topbar{height:44px;margin-bottom:5px}.rail{height:calc(100svh - 69px);min-height:650px;padding:9px;border-radius:145px}.felt{border-width:3px}.bot-seat{top:16px}.human-seat{bottom:110px}.center{top:46%;width:96%}.card{width:66px}.card.small{width:min(16vw,62px)}.board{min-height:88px}.bet{display:none}.history{top:44%;left:3%;width:105px;gap:3px;font-size:8px}.history:before{margin-left:5px;font-size:7px}.history span{padding:4px 6px}.history span:nth-last-child(n+4){display:none}.actions{bottom:12px;width:96%;gap:5px;padding:7px;flex-wrap:wrap}.actions button{min-width:76px;padding:9px 9px;font-size:11px}.amount{padding-left:7px}.amount label{display:none}.amount input{width:58px;font-size:12px}.actions .max{min-width:45px}.results{width:92%;grid-template-columns:1fr;gap:4px}.result{padding:5px 8px}.modal{padding:20px 12px 14px}.guide-head{margin-left:8px}.guide-row{grid-template-columns:20px 96px 1fr;gap:5px;padding:5px 6px}.guide-copy strong{font-size:11px}.guide-copy small{display:none}.guide-card{width:min(8.2vw,34px)}.guide-card+.guide-card{margin-left:-8px}}

/* Фишки и управление ставкой */
.felt{overflow:visible}.seat{z-index:5}.bot-seat{top:12px}.human-seat{bottom:72px}.center{top:45%}.actions{bottom:12px;width:min(97%,880px);align-items:center;padding:8px 10px}.bet-controls{display:flex;align-items:center;justify-content:center;gap:8px;width:100%}.turn-buttons{display:flex;gap:6px}.actions .turn-buttons button{min-width:78px}.chip-tray{display:flex;align-items:flex-end;justify-content:center;gap:5px}.bot-tray{margin-top:4px;transform:scale(.72);transform-origin:top center}.chip-control{position:relative;display:flex;flex-direction:column;align-items:center;width:56px}.chip-count{min-width:30px;margin-bottom:-7px;padding:2px 5px;border:1px solid #ffffff24;border-radius:999px;background:#06130f;color:#fff;font-size:9px;font-weight:900;text-align:center;z-index:2}.chip-stack{position:relative;width:52px;height:48px;min-width:0!important;padding:0!important;border:0!important;background:transparent!important;filter:drop-shadow(0 5px 4px #0008)}.chip-stack img{position:absolute;left:50%;bottom:0;width:45px;transform:translateX(-50%);pointer-events:none}.chip-stack:before,.chip-stack:after{content:"";position:absolute;left:50%;bottom:4px;width:45px;height:45px;border-radius:50%;background-image:var(--chip-image);background-size:contain;transform:translateX(-50%);pointer-events:none}.chip-stack:before{bottom:7px}.chip-stack:after{bottom:3px}.chip-stack img{z-index:2}.chip-stack:disabled{filter:grayscale(.5);opacity:.35}.chip-denom{position:absolute;right:0;bottom:0;z-index:3;display:grid;place-items:center;min-width:19px;height:19px;padding:0 4px;border-radius:8px;background:#06130f;color:#f4d778;font-size:9px;font-weight:900}.chip-minus{position:absolute;left:-2px;bottom:0;z-index:4;display:grid!important;place-items:center!important;width:18px!important;height:18px!important;min-width:0!important;padding:0!important;border-radius:7px!important;background:#26352f!important;font-size:13px!important}.chip-minus:disabled{display:none!important}.pending-panel{display:flex;flex-direction:column;align-items:stretch;gap:4px;min-width:126px}.pending-value{text-align:center;color:#b8c5bf;font-size:9px}.pending-value strong{color:#f3ce69;font-size:14px}.pending-actions{display:flex;gap:4px}.actions .pending-actions button{min-width:58px;padding:8px 7px;font-size:10px}.actions .bet-submit{min-width:115px}.actions .exchange-button{min-width:72px;color:#ead17d}.bot-chip-area{position:absolute;top:9px;left:calc(50% + 120px);z-index:4}.bot-chip-area .chip-count{font-size:8px}.bot-chip-area .chip-control{width:38px}.bot-chip-area .chip-stack{width:36px;height:34px}.bot-chip-area .chip-stack img,.bot-chip-area .chip-stack:before,.bot-chip-area .chip-stack:after{width:32px;height:32px}.bot-chip-area .chip-denom{display:none}.pot-zone{display:flex;flex-direction:column;align-items:center;margin-bottom:6px}.pot-zone .pot{margin-bottom:0}.pot-chip-tray{display:flex;align-items:flex-end;gap:1px;height:38px;margin-top:1px}.pot-chip-tray .chip-control{width:34px}.pot-chip-tray .chip-count{min-width:23px;margin-bottom:-10px;padding:1px 4px;font-size:7px}.pot-chip-tray .chip-stack{width:33px;height:33px}.pot-chip-tray .chip-stack img,.pot-chip-tray .chip-stack:before,.pot-chip-tray .chip-stack:after{width:30px;height:30px}.pot-chip-tray .chip-denom{right:-1px;min-width:15px;height:15px;padding:0 3px;font-size:7px}.pot-chip-tray .empty{opacity:.25;filter:grayscale(1)}.chip-fx{position:fixed;z-index:50;inset:0;pointer-events:none;overflow:hidden}.flying-chip{position:fixed;width:42px;height:42px;object-fit:contain;filter:drop-shadow(0 8px 7px #000b);transition:transform .68s cubic-bezier(.2,.72,.22,1),opacity .68s ease;will-change:transform,opacity}.exchange-modal{width:min(470px,100%)}.exchange-modal h2{margin:5px 0 6px;color:#e4c96f}.exchange-modal>p{margin:0;color:#9eaaa5;font-size:12px;line-height:1.55}.exchange-quantity{margin-top:18px}.exchange-quantity label,.exchange-fields label{display:flex;flex-direction:column;gap:7px;color:#9eaaa5;font-size:10px;font-weight:800;text-transform:uppercase}.exchange-quantity select,.exchange-fields select{width:100%;border:1px solid #ffffff20;border-radius:11px;padding:11px;background:#1a2924;color:#fff;font-size:14px;font-weight:800}.exchange-fields{display:grid;grid-template-columns:1fr 28px 1fr;align-items:end;gap:8px;margin-top:10px}.exchange-arrow{padding-bottom:10px;color:#e4c96f;text-align:center}.exchange-preview{min-height:35px;margin-top:12px;padding:9px;border-radius:10px;background:#ffffff08;color:#d7e0dc;font-size:12px;text-align:center}.primary-modal{border:1px solid #ecd37b!important;background:#d7bb63!important;color:#18160d!important}.no-exact{color:#efbb89!important}
@media(max-width:760px){.rail{min-height:720px}.bot-seat{top:12px}.human-seat{bottom:148px}.center{top:43%}.actions{bottom:8px}.bet-controls{flex-wrap:wrap;gap:5px}.chip-tray{order:-1;width:100%}.chip-control{width:49px}.chip-stack{width:47px;height:44px}.chip-stack img,.chip-stack:before,.chip-stack:after{width:41px;height:41px}.pending-panel{min-width:112px}.turn-buttons{flex:1}.actions .turn-buttons button{flex:1;min-width:62px}.bot-chip-area{top:3px;left:calc(50% + 86px);transform:scale(.82)}.history{top:46%}.exchange-fields{grid-template-columns:1fr 20px 1fr}}
.actions .all-in-button{border-color:#d76a624f;color:#f0a39b;background:#542a27}.actions .all-in-button:hover:not(:disabled){background:#71332f}.actions .all-in-button.selected{border-color:#ecd37b;color:#18160d;background:#d7bb63}.actions .pending-actions{flex-wrap:wrap;justify-content:center}
.felt.showdown .center{top:41%}.felt.showdown .human-seat{bottom:78px}.felt.showdown .human-seat .card{width:68px}.felt.showdown .human-seat .hole{margin-top:2px}.felt.showdown .multi-results{max-height:88px;margin-top:5px}.felt.showdown .multi-results .result{min-height:27px;padding:5px 8px}
@media (max-height:850px) and (min-width:761px){.felt.showdown .center{top:39%}.felt.showdown .human-seat{bottom:70px}.felt.showdown .human-seat .card{width:60px}.felt.showdown .human-seat .player-line{padding-block:4px}.felt.showdown .player-notice{margin-bottom:0;padding:5px 12px;font-size:11px}.felt.showdown .multi-results{max-height:72px}.felt.showdown .multi-results .result{min-height:24px;padding:3px 7px}}
@media(max-width:760px){.felt.showdown .center{top:40%}.felt.showdown .human-seat{bottom:148px}.felt.showdown .human-seat .card{width:58px}.felt.showdown .multi-results{max-height:70px}}
.balance-wallet-button{width:100%;margin-top:10px;border:1px solid #e3c86d66;border-radius:11px;padding:11px;background:#d7bb6317;color:#f0d477;font-weight:900;cursor:pointer}.balance-wallet-button:hover{border-color:#e3c86daa;background:#d7bb6328}.exchange-modal>.confirm-actions{margin-top:10px}
.card.human-winning-card{position:relative;z-index:3;border-radius:7px;box-shadow:0 0 0 3px #ffd75f,0 0 19px 7px #ffc928b8;filter:brightness(1.08) saturate(1.08)}.card.bot-winning-card{position:relative;z-index:3;border-radius:7px;box-shadow:0 0 0 3px #59e58b,0 0 19px 7px #22cf68a6;filter:brightness(1.08) saturate(1.08)}.card.human-winning-card.bot-winning-card{box-shadow:-3px 0 0 3px #ffd75f,3px 0 0 3px #59e58b,-7px 0 18px 4px #ffc92891,7px 0 18px 4px #22cf6887}
.player-notice{max-width:min(82vw,430px);margin:0 0 2px;padding:7px 15px;animation:notice-in .2s ease-out;white-space:normal}.human-seat .hole{margin-top:4px}@keyframes notice-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@media(max-width:760px){.player-notice{max-width:78vw;padding:6px 11px;font-size:11px}}

/* Разводим карты игрока и нижнюю панель фишек */
.human-seat{bottom:84px}
.actions{bottom:4px}
@media(max-width:760px){.human-seat{bottom:156px}.actions{bottom:2px}}
.exchange-preview.invalid{color:#ef9d8f;background:#7a2d251f}.primary-modal:disabled{opacity:.38;cursor:not-allowed}

/* Стол на 2–6 игроков */
.table-size-button{color:#ead17d}.table-modal{width:min(560px,100%)}.table-modal h2{margin:5px 0 7px;color:#e4c96f}.table-modal>p{margin:0;color:#9eaaa5;font-size:12px;line-height:1.55}.player-count-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin-top:20px}.player-count{display:flex;flex-direction:column;align-items:center;gap:2px;border:1px solid #ffffff1d;border-radius:13px;padding:12px 5px;background:#192620;color:#fff;cursor:pointer}.player-count strong{font-size:22px}.player-count span{color:#9caaa4;font-size:9px}.player-count:hover,.player-count.selected{border-color:#e4c96f;background:#d7bb631a}.player-count.selected strong{color:#f0d471}.table-summary{margin-top:11px;padding:9px;border-radius:10px;background:#ffffff08;color:#d9e2de;font-size:12px;text-align:center}
.opponent-seat{left:var(--seat-left);top:var(--seat-top);bottom:auto;transform:translate(-50%,-50%) scale(var(--seat-scale));transform-origin:center;z-index:5}.opponent-seat .player-line{min-width:132px;padding:5px 9px 5px 6px}.opponent-seat .avatar{width:30px;height:30px;font-size:11px}.opponent-seat .hole{margin-top:4px}.opponent-seat .card{width:58px}.opponent-seat .hole .card+.card{margin-left:-20px}.opponent-seat .seat-bet{position:absolute;top:100%;left:50%;transform:translateX(-50%);margin-top:2px;padding:3px 7px;border-radius:8px;background:#08271edd;color:#f2d479;font-size:9px;font-weight:800;white-space:nowrap}.folded-seat .hole{filter:grayscale(1) brightness(.55);opacity:.66}.folded-seat .player-line{opacity:.7}.bot-wallet-mini{display:flex;justify-content:center;gap:2px;margin-top:2px}.mini-chip{position:relative;display:flex;flex-direction:column;align-items:center;width:23px;color:#fff;font-size:7px;font-weight:900}.mini-chip b{min-width:18px;margin-bottom:-3px;padding:1px 3px;border-radius:6px;background:#06130f;text-align:center;z-index:2}.mini-chip img{width:20px;height:20px;object-fit:contain;filter:drop-shadow(0 2px 2px #0008)}.human-seat .seat-bet{position:absolute;right:-70px;top:54%;padding:4px 8px;border-radius:8px;background:#08271edd;color:#f2d479;font-size:10px;font-weight:800;white-space:nowrap}.multi-results{grid-template-columns:repeat(2,minmax(0,1fr));width:min(100%,520px);max-height:122px;overflow:auto}.multi-results .result{min-height:30px}.multi-results .result strong{font-size:9px}.felt[data-players="5"] .center,.felt[data-players="6"] .center{width:62%}
.felt[data-players="5"] .history,.felt[data-players="6"] .history{left:1.5%;top:73%;width:125px}.felt[data-players="5"] .history span:nth-last-child(n+4),.felt[data-players="6"] .history span:nth-last-child(n+4){display:none}
@media(max-width:760px){.top-actions{gap:3px}.top-actions .ghost{padding:8px 9px;font-size:10px}.player-count-grid{gap:4px}.player-count{padding:9px 2px}.player-count strong{font-size:18px}.player-count span{font-size:7px}.opponent-seat{transform:translate(-50%,-50%) scale(var(--seat-mobile-scale))}.opponent-seat .card{width:52px}.opponent-seat .player-line{min-width:116px}.bot-wallet-mini{display:none}.opponent-seat .seat-bet{font-size:8px}.multi-results{width:82%;max-height:92px}.multi-results .result{padding:4px 6px}.multi-results .result strong{font-size:8px}.felt[data-players="5"] .center,.felt[data-players="6"] .center{width:72%}.felt[data-players="5"] .history,.felt[data-players="6"] .history{display:none}}
