/* av-bjmp.css — multiplayer Blackjack tables. Builds on av-bj.css (cards, zones, buttons). Shell tokens and Inter only. */
#bj-table{width:min(100%,860px)}
.mp-lobby{display:flex;flex-direction:column;gap:12px;align-items:center;text-align:center;max-width:420px;margin:0 auto;padding:12px 0}
.mp-title{font-size:28px;font-weight:700;color:var(--av-white);display:flex;flex-direction:column;gap:2px}
.mp-title small{font-size:12px;font-weight:600;color:var(--av-accent-soft);letter-spacing:.08em;text-transform:uppercase}
.mp-sub{font-size:14px;color:var(--av-muted);line-height:1.5}
.mp-stat{font-size:13px;color:var(--av-text);min-height:18px}
.mp-notice a{color:var(--av-white);text-decoration:underline;white-space:nowrap}
.mp-notice{font-size:13px;color:var(--av-loss);background:var(--av-loss-bg);border-radius:10px;padding:8px 14px}
.mp-or{font-size:12px;color:var(--av-muted)}
.mp-row{display:flex;gap:8px;width:100%}.mp-row .act{flex:1}
.mp-code input{flex:1;min-width:0;min-height:50px;border-radius:10px;border:1px solid var(--av-line);background:var(--av-panel);color:var(--av-white);font:700 18px var(--av-font);text-align:center;letter-spacing:.3em;text-transform:uppercase}
.mp-code input:focus{outline:none;border-color:var(--av-accent)}
.mp-lobby .go-main{width:100%}
.mp-bar{display:flex;justify-content:space-between;font-size:12px;color:var(--av-muted)}
.mp-foot{display:flex;justify-content:center}
.sm.leave{color:var(--av-muted)}

.zone.dealer{align-items:center}.zone.dealer .zhead{width:100%;max-width:240px}
.zone.dealer.empty{visibility:hidden}
.zone.dealer .cards,.zone.onehand .cards{justify-content:center}
.zone.onehand{align-items:center}.zone.onehand .zhead{width:100%;max-width:240px}
.mpstat{flex-direction:row;gap:10px;font-size:18px}
.cd{font-size:13px;font-weight:700;color:var(--av-accent-soft);background:var(--av-raised);padding:2px 10px;border-radius:999px;min-width:42px;text-align:center}
.cdbar{height:3px;border-radius:2px;background:var(--av-line);overflow:hidden}
.cdbar i{display:block;height:100%;width:0;background:var(--av-accent);transition:width .1s linear}

/* seats: small cards so five hands fit side by side */
.seats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;align-items:start}
.seat{--cw:44px;--ch:62px;--ov:-24px;display:flex;flex-direction:column;gap:6px;padding:8px 6px 10px;border-radius:12px;border:1px solid var(--av-line);background:var(--av-panel);min-height:150px;min-width:0}
.seat.mine{border-color:var(--av-accent-soft)}
.seat.turn{border-color:var(--av-accent);background:var(--av-accent-bg);box-shadow:0 0 0 1px var(--av-accent)}
.seat.open{align-items:center;justify-content:center;opacity:.45;border-style:dashed;background:none}
.seat.gone{opacity:.5}
.shead{display:flex;flex-direction:column;gap:3px;align-items:center}
.sname{font-size:12px;font-weight:600;color:var(--av-white);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.seat.open .sname{color:var(--av-muted);font-weight:500}
.sbet{min-height:20px;font-size:11px;color:var(--av-muted)}
.shands{display:flex;flex-direction:column;gap:4px;align-items:center}
.seat .hand{padding:4px 4px 6px;align-items:center;width:100%}
.seat .hhead{justify-content:center}
.seat .cards{min-height:var(--ch);justify-content:center}
.seat .card{border-radius:6px;box-shadow:0 3px 8px rgba(0,0,0,.5)}
.seat .card .r{top:3px;left:4px}.seat .card .r2{bottom:3px;right:4px}
.seat .card .rib{font-size:7px;padding:1px 0}
.seat .card.jester .jl{display:none}
.hres{min-height:20px;flex-wrap:wrap;gap:3px}
.seat .res{font-size:10px;padding:2px 6px;text-align:center}
.snet{font-size:15px;font-weight:700;text-align:center}
.snet.w{color:var(--av-win)}.snet.l{color:var(--av-loss)}.snet.p{color:var(--av-muted)}
.snet.big{font-size:22px}
.swait{font-size:11px;color:var(--av-muted);text-align:center;margin-top:8px}
.seats.one-me{grid-template-columns:minmax(0,340px);justify-content:center}
.one-me .seat{--cw:72px;--ch:100px;--ov:-36px;min-height:200px}
.others{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.others .o{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:78px;padding:6px 8px;border-radius:10px;border:1px solid var(--av-line);background:var(--av-panel);font-size:12px}
.others .on{max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--av-text);font-weight:600}
.others .ot{color:var(--av-muted);font-weight:700}
.others .o.w .ot{color:var(--av-win)}.others .o.l .ot{color:var(--av-loss)}
.votes{display:flex;gap:18px;justify-content:center;font-size:14px;color:var(--av-muted)}
.votes b{color:var(--av-white);margin-left:4px}.votes .vn{color:var(--av-text)}

@media(min-width:1280px) and (min-height:860px){.seat{--cw:56px;--ch:78px;--ov:-30px}}
@media(max-width:720px){
  #bj-table{width:100%;gap:6px}
  .seats{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .seat{--cw:36px;--ch:50px;--ov:-20px;min-height:100px;padding:6px 4px 8px;gap:4px}
  .seat .hres{min-height:16px}
  .seat .snet{font-size:13px}
  .zone.dealer{--cw:52px;--ch:73px;--ov:-24px}
  .one-me .seat{--cw:60px;--ch:84px;--ov:-28px;min-height:150px}
  .mpstat{font-size:15px}
  .status{min-height:26px}
}

/* ONE: the winners ticker */
.winfeed{position:absolute;top:10px;right:12px;width:200px;z-index:20;pointer-events:none}
.wft{font-size:11px;font-weight:600;color:var(--av-muted);margin-bottom:4px;text-align:right}
.wfbox{overflow:hidden;border-radius:8px;background:rgba(9,8,13,.55)}
.wf{display:flex;justify-content:space-between;gap:10px;font-size:13px;line-height:26px;height:26px;padding:0 8px}
.wf .wn{color:var(--av-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.wf .wa{color:var(--av-win);font-weight:700}
.wf.me .wn,.wf.me .wa{color:var(--av-accent-soft)}
.actrow{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.actrow span{font-size:12px;color:var(--av-muted);background:var(--av-raised);border-radius:999px;padding:3px 10px}
.actrow span.on{color:var(--av-white)}.actrow b{margin-left:3px;color:var(--av-white)}

/* split hands: which one is being played */
.shands.multi{flex-direction:row;flex-wrap:wrap;justify-content:center;gap:8px}
.shands.multi .hand{width:auto;min-width:0;border:1px solid var(--av-line);border-radius:10px}
.shands.multi.playing .hand:not(.active){opacity:.5}
.shands.multi .hand.active{border-color:var(--av-accent);background:var(--av-accent-bg);box-shadow:0 0 0 1px var(--av-accent)}
.hlab{font-size:11px;font-weight:600;color:var(--av-muted);margin-right:6px}
.hand.active .hlab{color:var(--av-accent-soft)}
.hhead{flex-wrap:wrap;gap:2px;justify-content:center}

#bj-table.dealing-pl .seat .tot{visibility:hidden}
#bj-table.dealing-dl .zone.dealer .tot{visibility:hidden}

.go-main.placed{background:var(--av-raised);color:var(--av-muted);opacity:1;border:1px solid var(--av-line)}
.act.clearbet{min-height:40px;width:100%;font-size:14px;color:var(--av-loss)}

.mp-code-tag{color:var(--av-white);letter-spacing:.15em;cursor:pointer;padding:1px 6px;border-radius:6px;background:var(--av-raised)}

/* a hand with a bonus card (Ace Blackjack): less overlap, so the bonus ribbon can be read */
.seat .cards.wide{--ov:-10px}
.seat .cards.wide .card .rib{font-size:8px}

/* many cards: they overlap more so the hand always stays inside its seat (one hand per seat; split hands wrap instead) */
.shands:not(.multi) .cards{container-type:inline-size;width:100%}
.shands:not(.multi) .cards .card:not(:first-child){margin-left:min(var(--ov), calc((100cqw - var(--n) * var(--cw)) / (var(--n) - 1)))}
.shands.multi .cards{max-width:100%}

@media(max-width:720px){.winfeed{width:150px;top:4px;right:8px}.wf{font-size:12px;padding:0 6px}}

.go-main.idle{opacity:.55}

/* private tables: sitting out, and the host's remove button */
.mp-foot{gap:10px}
.seat.out{opacity:.6}
.shead{position:relative}
.kick{position:absolute;top:-4px;right:-2px;width:20px;height:20px;border-radius:50%;border:1px solid var(--av-line);background:var(--av-raised);color:var(--av-muted);font-size:10px;line-height:1;cursor:pointer;padding:0}
.kick:hover{color:var(--av-loss);border-color:var(--av-loss)}

/* the "kick this player?" panel */
.kp-ov{position:fixed;inset:0;z-index:9000;background:rgba(5,4,9,.72);display:flex;align-items:center;justify-content:center;padding:16px}
.kp-box{width:min(380px,100%);background:var(--av-panel);border:1px solid var(--av-line);border-radius:14px;padding:20px;display:flex;flex-direction:column;gap:12px;text-align:center}
.kp-t{font-size:17px;font-weight:700;color:var(--av-white)}
.kp-s{font-size:13px;color:var(--av-muted);line-height:1.5}
.kp-b{display:flex;gap:8px}.kp-b button{flex:1;min-height:44px;border-radius:10px;border:1px solid var(--av-line);background:var(--av-raised);color:var(--av-white);font:600 14px var(--av-font);cursor:pointer}
.kp-b .kp-go{background:var(--av-loss);border-color:var(--av-loss);color:#fff}

.hosttag{font-size:9px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--av-accent-soft);background:var(--av-accent-bg);padding:1px 6px;border-radius:999px;line-height:14px}

/* private tables with more than five seats */
.seats[style*="--n"]{grid-template-columns:repeat(var(--n),minmax(0,1fr))}
.seats[style*="--n"] .seat{--cw:38px;--ch:54px;--ov:-20px}
@media(max-width:720px){.seats[style*="--n"]{grid-template-columns:repeat(3,minmax(0,1fr))}.seats[style*="--n"] .seat{--cw:36px;--ch:50px;--ov:-20px}}
