/* casino-mp.css - Multiplayer Tables: the floor, the waiting room, the table
   shell, table calls and the buy-in dialog (1.16.0.0). See casino-mp.js.

   Palette from the approved mockups and the spec: gunmetal bezels, green CRT,
   amber legends, red for leave and decline. Defined once as tokens on every
   root this file draws (the pane, the call strip card, the dialog, the phone
   ring bar). Titles in VT323, which style.css already loads; body text keeps
   the game's own font. */
#casino-mp,#mpCallIn,.mp-dlgwrap,#mpRingBar{
  --mp-bz:#141a16;--mp-bz2:#101511;--mp-well:#0a0f0b;--mp-edge:#2a332c;--mp-edge2:#39443b;--mp-line:#18201a;
  --mp-crt:#8dfc9f;--mp-crt2:#7fcf8e;--mp-crtdim:#3d6b47;--mp-amb:#ffb547;--mp-ambdim:#6b5426;
  --mp-red:#ff8a7e;--mp-reddim:#6b3a35;--mp-ink:#d8dccf;--mp-ink2:#c3cbc1;--mp-mute:#a3b3a5;--mp-hi:#e6ffe9;
  --mp-title:'VT323','Share Tech Mono',ui-monospace,monospace}

/* The subtab is reached through the rail; on a phone the casino lobby is the
   owner's and stays as it is, so the strip does not grow a key either. */
.fm-deckwin #casinoTabs .mp-subtab,body.fm-mobile #casinoTabs .mp-subtab{display:none!important}

/* ── Rail group (casino-deck.js draws it, this file styles it) ──────────── */
.fmd-mpgrp{margin:8px 6px 2px;padding:0 0 6px;background:#0a120c;border:1px solid #3d6b47;border-radius:6px}
.fmd-mpgrp .fmd-grp-mp{display:flex;align-items:center;gap:8px;opacity:1;color:#8dfc9f;padding:9px 8px 4px;font-size:12px;letter-spacing:.16em}
.fmd-new{font-weight:700;font-size:12px;line-height:16px;letter-spacing:.1em;color:#070a08;background:#ffb547;border-radius:2px;padding:0 5px}
/* The count never squeezes the label: it keeps its own width, the label
   takes the rest (one word each, so it fits a 180px rail). */
.fmd-mpgrp .fmd-cart{border-left-width:2px;min-height:36px;padding-right:8px}
.fmd-mpgrp .fmd-cart span{flex:1 1 auto}
.fmd-mpgrp .fmd-cart em{flex:0 0 auto;min-width:2ch;text-align:right;color:#8dfc9f;font-size:13px}
.fmd-mpgrp .fmd-cart:hover{background:rgba(141,252,159,.1)}
.fmd-mpgrp .fmd-cart:focus-visible{outline:2px solid #ffb547;outline-offset:-2px}

/* ── Pane ──────────────────────────────────────────────────────────────── */
#casino-mp{position:relative;color:var(--mp-ink);container-type:inline-size;container-name:mp;min-height:100%}
/* In the Gaming Deck window the pane fills the slot, so the table shell can
   give the 3D view all the height there is. */
.fm-deckwin #casinoTab:has(#casino-mp[style*="block"]){padding:0;display:flex!important;flex-direction:column}
.fm-deckwin #casinoTab:has(#casino-mp[style*="block"]) #casinoContent{flex:1;min-height:0;display:flex;flex-direction:column}
.fm-deckwin #casino-mp{flex:1;min-height:0}
#casino-mp *{box-sizing:border-box}
#casino-mp [hidden]{display:none!important}
.mp-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.mp-grow{flex:1}
.mp-sub{font-size:12px;color:var(--mp-mute);letter-spacing:.04em}
.mp-empty{font-size:13px;color:var(--mp-mute);padding:12px 14px}

/* Buttons */
/* Every button is at least 36px tall. Hover lifts the fill and lights the
   edge; keyboard focus adds an amber ring outside it. */
.mp-btn{font-family:inherit;font-size:13px;letter-spacing:.08em;border-radius:3px;min-height:36px;padding:7px 14px;cursor:pointer;white-space:nowrap;
  display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--mp-edge2);background:#1c231e;color:var(--mp-ink);
  transition:background-color .12s,border-color .12s,color .12s}
.mp-btn svg{width:14px;height:14px}
.mp-btn-go{background:var(--mp-crt);border-color:var(--mp-crt);color:#070a08;font-weight:700}
.mp-btn-alt{background:#1c231e;color:var(--mp-ink)}
.mp-btn-ghost{background:none;border-color:var(--mp-edge);color:var(--mp-crt)}
.mp-btn-red{background:#1c231e;border-color:#8a4a43;color:var(--mp-red)}
.mp-btn:hover:not(:disabled){background:#27322a;border-color:var(--mp-crt);color:var(--mp-hi)}
.mp-btn-go:hover:not(:disabled){background:#c4ffcd;border-color:#c4ffcd;color:#070a08}
.mp-btn-red:hover:not(:disabled){background:#3a1c18;border-color:var(--mp-red);color:#ffc2bb}
.mp-btn:focus-visible,.mp-ibtn:focus-visible,.mp-fbtn:focus-visible{outline:2px solid var(--mp-amb);outline-offset:2px}
.mp-btn:disabled{opacity:.5;cursor:not-allowed}
.mp-ibtn{width:36px;height:36px;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:none;border:1px solid var(--mp-edge2);border-radius:3px;color:var(--mp-ink2);cursor:pointer;font-size:18px;font-family:inherit}
.mp-ibtn svg{width:15px;height:15px}
.mp-ibtn:hover:not(:disabled){border-color:var(--mp-crt);color:var(--mp-crt);background:#1c231e}
.mp-ibtn:disabled{opacity:.5;cursor:not-allowed}

/* Notice bar: errors and news, top of the pane. */
.mp-note{display:flex;align-items:center;gap:12px;margin:10px 12px 0;padding:6px 6px 6px 14px;border:1px solid var(--mp-crtdim);border-left-width:4px;border-radius:4px;
  background:#0a160d;color:var(--mp-hi);font-size:14px;line-height:1.4}
.mp-note.bad{border-color:#8a4a43;border-left-color:var(--mp-red);background:#1d0f0d;color:#ffd6d1}
.mp-note span{flex:1;min-width:0;overflow-wrap:anywhere}
.mp-note .mp-ibtn{border-color:transparent;color:inherit}

/* Portraits: a framed box, the image cropped by FMPortraitFrame, the
   silhouette when there is none. */
.mp-ph{position:relative;display:flex;align-items:flex-end;justify-content:center;flex-shrink:0;overflow:hidden;background:#121a14;border:2px solid var(--mp-crtdim);border-radius:4px;color:#4f8f5c}
.mp-ph img{position:absolute;object-fit:cover;display:block}
.mp-ph svg{width:82%;height:82%}
.mp-ph34{width:34px;height:34px;border-width:1px;border-color:var(--mp-edge2);border-radius:3px;color:#5c6b5e}
.mp-ph64{width:64px;height:64px}
.mp-ph72{width:72px;height:72px;border-color:var(--mp-crt);color:var(--mp-crt);background:#0a1a0f}
.mp-ph96{width:96px;height:96px;border-color:var(--mp-amb);color:var(--mp-amb);border-radius:6px}

/* ── Floor ─────────────────────────────────────────────────────────────── */
.mp-floor{display:flex;min-height:100%;background:var(--mp-bz)}
.mp-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:14px;padding:18px 20px;
  background-color:#0b100d;background-image:radial-gradient(#16211a 1px,transparent 1px);background-size:6px 6px}
.mp-hd{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap}
/* #casino-mp in front: style.css and mobile.css size every h2/h3. */
#casino-mp .mp-h1{margin:0;font-family:var(--mp-title);font-weight:400;font-size:40px;line-height:1;letter-spacing:4px;color:var(--mp-crt)}
.mp-sum{font-size:13px;color:var(--mp-ink2);letter-spacing:.08em}
.mp-seated{display:flex;align-items:center;gap:12px;padding:8px 12px;border:1px solid var(--mp-crtdim);border-radius:6px;background:#0a120c;font-size:14px;color:var(--mp-crt)}
.mp-seated span{flex:1}
.mp-filters{display:flex;gap:6px;flex-wrap:wrap}
.mp-fbtn{font-family:inherit;font-size:13px;letter-spacing:.08em;min-height:36px;padding:6px 14px;border-radius:3px;cursor:pointer;background:#1c231e;color:var(--mp-ink);border:1px solid var(--mp-edge2)}
.mp-fbtn:hover:not(.on){background:#27322a;border-color:var(--mp-crt);color:var(--mp-hi)}
.mp-fbtn.on{background:var(--mp-amb);border-color:var(--mp-amb);color:#070a08;font-weight:700}

.mp-list{display:flex;flex-direction:column;background:var(--mp-well);border:1px solid var(--mp-edge);border-radius:6px;overflow:hidden}
.mp-row{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1.1fr) 80px minmax(0,.8fr) minmax(0,.9fr) 84px;gap:10px;align-items:center;
  padding:11px 14px;border-bottom:1px solid var(--mp-line);font-size:14px}
.mp-row:not(.mp-head):hover{background:#0f1812}
.mp-row:last-child{border-bottom:0}
.mp-row>div{min-width:0;overflow-wrap:anywhere}
.mp-head{padding:8px 14px;font-size:12px;letter-spacing:.14em;color:var(--mp-mute);border-bottom:1px solid var(--mp-edge);background:var(--mp-bz2)}
.mp-tn{font-family:var(--mp-title);font-size:22px;line-height:1.1;letter-spacing:1px;color:var(--mp-hi);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mp-hostl{display:none}
.mp-seats{display:flex;flex-direction:column;align-items:flex-start;gap:4px;font-size:15px;font-weight:700;color:var(--mp-hi);font-variant-numeric:tabular-nums}
.mp-pips{display:flex;flex-wrap:wrap;gap:3px;max-width:80px}
.mp-pips i{width:11px;height:11px;border-radius:2px;background:#1c231e;border:1px solid var(--mp-edge2)}
.mp-pips i.on{background:var(--mp-crt);border-color:var(--mp-crt)}
.mp-hostc{color:var(--mp-ink2)}
/* Stakes: the figure, then at most two lines of the table's own note (the
   whole note is the tooltip). */
.mp-stk .mp-sub{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mp-why{margin-top:3px;font-size:12px;letter-spacing:.02em;color:var(--mp-red)}
/* The rail entry of the game you hold a seat at. */
.fmd-mpgrp .fmd-cart.mp-held em::before{content:'';display:inline-block;width:8px;height:8px;margin-right:6px;border-radius:50%;background:#ffb547;box-shadow:0 0 6px rgba(255,181,71,.7);vertical-align:1px}
/* A seat found after a reload: over whatever is on screen. */
#mpSeatNote{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);z-index:9160;display:flex;align-items:center;gap:12px;max-width:calc(100vw - 32px);
  padding:8px 8px 8px 16px;border:2px solid #ffb547;border-radius:6px;background:#141a16;color:#e6ffe9;font-size:14px;box-shadow:0 10px 30px rgba(0,0,0,.7)}
#mpSeatNote span{min-width:0;overflow-wrap:anywhere}
#mpSeatNote .mp-btn{font-family:inherit;font-size:13px;min-height:36px;padding:7px 14px;border-radius:3px;border:1px solid #8dfc9f;background:#8dfc9f;color:#070a08;font-weight:700;cursor:pointer;white-space:nowrap}
#mpSeatNote .mp-ibtn{width:36px;height:36px;background:none;border:1px solid transparent;color:#e6ffe9;font-size:18px;cursor:pointer}
#mpSeatNote button:focus-visible{outline:2px solid #ffb547;outline-offset:2px}
body.fm-mobile #mpSeatNote{bottom:calc(var(--fm-nav,64px) + 12px);font-size:13px}
/* Live confirms (LEAVE, MOVE TABLES) sit at the top over a light backdrop so
   the action clock at the bottom stays in sight. */
.mp-dlgwrap.mp-dlgtop{align-items:flex-start;padding-top:72px;background:rgba(0,0,0,.35)}
.mp-st{font-size:13px;letter-spacing:.08em}
.mp-st.live{color:var(--mp-crt)}.mp-st.wait{color:var(--mp-amb)}.mp-st.idle{color:var(--mp-mute)}
.mp-acts{display:flex;flex-direction:column;gap:4px;align-items:stretch}
.mp-acts .mp-btn{padding:7px 6px}

.mp-openf{display:flex;flex-wrap:wrap;gap:12px;align-items:center;background:var(--mp-bz2);border:1px dashed var(--mp-crtdim);border-radius:6px;padding:12px 14px}
.mp-openttl{font-family:var(--mp-title);font-size:26px;letter-spacing:2px;color:var(--mp-amb)}
.mp-fld{display:flex;flex-direction:column;gap:4px;font-size:12px;letter-spacing:.1em;color:var(--mp-mute)}
.mp-fld select,.mp-me select,.mp-say input,.mp-drow input[type=text]{min-height:36px;background:var(--mp-well);color:var(--mp-ink);border:1px solid var(--mp-edge2);border-radius:3px;padding:6px 8px;font-family:inherit;font-size:14px}
.mp-fld select:hover,.mp-me select:hover,.mp-say input:hover,.mp-drow input[type=text]:hover{border-color:var(--mp-crtdim)}
.mp-fld select:focus-visible,.mp-me select:focus-visible,.mp-say input:focus-visible,.mp-drow input:focus-visible,.mp-chk input:focus-visible{outline:2px solid var(--mp-amb);outline-offset:1px}
.mp-chk{display:flex;align-items:center;gap:8px;min-height:36px;font-size:14px;color:var(--mp-ink2);cursor:pointer}
.mp-chk input{width:16px;height:16px}
.mp-chk input{accent-color:var(--mp-crt)}
.mp-foot{margin-top:auto;font-size:12px;line-height:1.5;color:var(--mp-mute);letter-spacing:.06em}

/* Waiting room */
.mp-wait{width:290px;flex-shrink:0;background:#0f1411;border-left:2px solid var(--mp-edge);padding:16px 14px;display:flex;flex-direction:column;gap:12px;overflow-y:auto}
.mp-whd{display:flex;align-items:baseline;justify-content:space-between}
#casino-mp .mp-h2{margin:0;font-family:var(--mp-title);font-weight:400;font-size:26px;letter-spacing:2px;color:var(--mp-crt)}
.mp-live{font-size:12px;letter-spacing:.12em;color:var(--mp-crt)}
.mp-me{display:flex;flex-direction:column;gap:4px}
.mp-me label{font-size:12px;letter-spacing:.1em;color:var(--mp-mute)}
.mp-merow{display:flex;gap:6px}
.mp-merow select{flex:1;min-width:0}
.mp-sec{font-size:12px;letter-spacing:.14em;color:var(--mp-amb);margin-top:4px}
.mp-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.mp-cards .mp-empty{grid-column:1/-1;padding:4px 0}
.mp-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:5px;background:var(--mp-well);border:1px solid #2f4a35;border-radius:6px;padding:10px 6px;min-width:0}
.mp-card .mp-dot{position:absolute;top:13px;left:calc(50% + 21px);width:8px;height:8px;border-radius:50%;background:var(--mp-crt);box-shadow:0 0 6px rgba(141,252,159,.7)}
.mp-cn{font-size:14px;font-weight:700;color:var(--mp-hi);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mp-cw{font-size:12px;color:var(--mp-ink2);text-align:center;overflow-wrap:anywhere}
.mp-cyou{font-size:12px;letter-spacing:.14em;color:var(--mp-amb);min-height:36px;display:flex;align-items:center}
.mp-card .mp-ring{border-color:#4f9a5f;color:var(--mp-crt);font-size:13px;padding:6px 12px}
.mp-self{border-color:var(--mp-ambdim)}
.mp-station{display:flex;flex-direction:column;gap:6px}
.mp-srow{display:flex;align-items:center;gap:10px}
.mp-sn{flex:1;min-width:0;display:flex;flex-direction:column;font-size:14px;color:var(--mp-ink)}
.mp-sn>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mp-hint{margin-top:auto;font-size:12px;line-height:1.5;color:var(--mp-mute)}

/* Narrow casino window: the waiting room drops under the floor, the table
   list loses the host column. */
@container mp (max-width:820px){
  .mp-floor{flex-direction:column}
  .mp-wait{width:auto;border-left:0;border-top:2px solid var(--mp-edge);overflow:visible}
  .mp-cards{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))}
}
/* Under 1000px the HOST column folds into the table cell, so the table
   name keeps one line. */
@container mp (max-width:1000px){
  .mp-row{grid-template-columns:minmax(0,1.6fr) minmax(0,1.1fr) 72px minmax(0,.9fr) 84px}
  .mp-row>:nth-child(4){display:none}
  .mp-hostl{display:block}
  .mp-pips{max-width:72px}
}
/* Phone width: each table is a card. Name and stakes on the left, seats and
   status under them, the buttons on the right. */
@container mp (max-width:560px){
  .mp-main{padding:14px 12px}
  #casino-mp .mp-h1{font-size:30px;letter-spacing:3px}
  .mp-head{display:none}
  .mp-row{grid-template-columns:minmax(0,1fr) auto 92px;grid-template-areas:"n n a" "s q a" "s t a";row-gap:6px;column-gap:12px}
  .mp-row>:nth-child(1){grid-area:n}.mp-row>:nth-child(2){grid-area:s}.mp-row>:nth-child(3){grid-area:q}
  .mp-row>:nth-child(5){grid-area:t}.mp-row>:nth-child(6){grid-area:a;align-self:center}
  .mp-seats{flex-direction:row;align-items:center;gap:8px}
  .mp-pips{display:none}
  .mp-openf{gap:10px}
  .mp-openf .mp-fld{flex:1 1 40%}
}

/* ── Outgoing ring card (caller) ───────────────────────────────────────── */
.mp-ringout{display:flex;align-items:center;gap:20px;margin:10px 12px;background:var(--mp-bz);border:2px solid var(--mp-edge);border-radius:10px;
  box-shadow:inset 0 0 0 4px #0e1310;padding:16px 20px}
.mp-ringout.ringing .mp-ph96{box-shadow:0 0 0 6px rgba(255,181,71,.12),0 0 0 12px rgba(255,181,71,.06);animation:mpPulse 1.6s ease-in-out infinite}
@keyframes mpPulse{50%{box-shadow:0 0 0 8px rgba(255,181,71,.2),0 0 0 16px rgba(255,181,71,.08)}}
.mp-rbody{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.mp-rttl{font-family:var(--mp-title);font-size:30px;line-height:1;letter-spacing:3px;color:var(--mp-amb);overflow-wrap:anywhere}
.mp-ringout.done .mp-rttl{color:var(--mp-crt)}
.mp-rsub{font-size:14px;color:var(--mp-ink)}
.mp-rbar{display:flex;align-items:center;gap:10px;margin-top:6px}
.mp-bar{flex:1;height:6px;background:#1c231e;border-radius:3px;overflow:hidden}
.mp-bar i{display:block;height:100%;width:0;background:var(--mp-amb);transition:width .9s linear}
.mp-rcd{font-size:15px;color:var(--mp-amb);font-variant-numeric:tabular-nums}
.mp-ringout .mp-btn-red{padding:12px 18px;font-size:14px}
/* At a table the card is a strip, so the table keeps its height. */
.mp-ringout.compact{gap:14px;margin:0;border-width:0 0 1px;border-radius:0;box-shadow:none;padding:6px 18px;background:#0d140f}
.mp-ringout.compact .mp-ph96{width:44px;height:44px;border-width:1px;border-radius:4px}
.mp-ringout.compact.ringing .mp-ph96{box-shadow:0 0 0 3px rgba(255,181,71,.18);animation:none}
.mp-ringout.compact .mp-rbody{flex-direction:row;align-items:center;gap:14px;flex-wrap:wrap}
.mp-ringout.compact .mp-rttl{font-size:24px;letter-spacing:2px}
.mp-ringout.compact .mp-rbar{margin:0;flex:1;min-width:140px}
.mp-ringout.compact .mp-btn-red{padding:6px 14px}

/* ── Table shell ───────────────────────────────────────────────────────── */
/* The 3D host takes everything but the top bar and a 248px side panel; the
   panel folds away (LOG + TALK in the bar) and drops under the table on a
   narrow window. */
.mp-table{display:flex;flex-direction:column;height:100%;min-height:520px;background:#030604}
#casino-mp:has(.mp-ringout:not([hidden]):not(.compact)) .mp-table,#casino-mp:has(.mp-note:not([hidden])) .mp-table{height:auto;min-height:520px}
.fm-deckwin #casino-mp[style*="block"]:has(#mpTable:not([hidden])){display:flex!important;flex-direction:column}
.fm-deckwin #casino-mp[style*="block"]:has(#mpTable:not([hidden])) .mp-table{flex:1;min-height:0;height:auto}
.mp-tbar{flex-shrink:0;display:flex;align-items:center;gap:12px;padding:6px 14px;min-height:56px;border-bottom:1px solid #1d3a24;background:#06100a}
.mp-tbar .mp-btn-alt{background:none;border-color:var(--mp-crtdim);color:var(--mp-crt)}
.mp-tbar .mp-btn-alt:hover:not(:disabled){background:#10241a;border-color:var(--mp-crt);color:var(--mp-hi)}
.mp-tid{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:3px}
.mp-tname{font-family:var(--mp-title);font-size:28px;line-height:.9;letter-spacing:3px;color:var(--mp-crt);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Two lines at most when the bar is crowded, rather than cutting the street. */
.mp-tline{font-size:13px;line-height:1.3;color:var(--mp-crt2);letter-spacing:.06em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.mp-ttag{flex-shrink:0;font-size:13px;font-weight:700;color:var(--mp-amb);letter-spacing:.1em;border:1px solid var(--mp-ambdim);border-radius:3px;padding:5px 9px}
.mp-ttag.bad{color:var(--mp-red);border-color:#8a4a43}
.mp-ttag:empty{display:none}
.mp-tacts{flex-shrink:0;display:flex;gap:6px}
.mp-sidebtn{flex-shrink:0;gap:8px}
.mp-unread{display:inline-block;min-width:20px;padding:1px 5px;border-radius:9px;background:var(--mp-amb);color:#070a08;font-size:12px;line-height:18px;text-align:center}
.mp-tbody{flex:1;min-height:0;display:flex}
.mp-host{position:relative;flex:1;min-width:0;min-height:360px;overflow:hidden}
.mp-side{width:248px;flex-shrink:0;border-left:1px solid #1d3a24;background:#06100a;display:flex;flex-direction:column;padding:12px;gap:8px;min-height:0}
.mp-sideoff .mp-side{display:none}
#casino-mp .mp-h3{margin:0;font-family:var(--mp-title);font-weight:400;font-size:22px;line-height:1;letter-spacing:2px;color:var(--mp-crt)}
.mp-log{flex:1 1 0;min-height:72px;overflow-y:auto;display:flex;flex-direction:column;gap:4px;font-size:13px;line-height:1.45;color:var(--mp-crt2);font-variant-numeric:tabular-nums}
.mp-rule{height:1px;background:#1d3a24;flex-shrink:0}
.mp-chat{flex:1 1 0;min-height:72px;overflow-y:auto;display:flex;flex-direction:column;gap:5px;font-size:13px;line-height:1.45;color:var(--mp-ink);overflow-wrap:anywhere}
.mp-log .mp-empty,.mp-chat .mp-empty{padding:0}
.mp-who{color:var(--mp-crt);font-weight:700}
.mp-say{display:flex;gap:6px}
.mp-say input{flex:1;min-width:0}
.mp-say .mp-btn{padding:7px 10px}
.mp-tnote{font-size:12px;line-height:1.45;color:var(--mp-mute);letter-spacing:.03em}
.mp-tnote:empty{display:none}
/* Narrow window: the bar takes two rows (back and name; state and
   buttons), and the panel stays open under the table, so no toggle. */
@container mp (max-width:900px){
  .mp-tbar{flex-wrap:wrap;row-gap:8px}
  .mp-tid{flex:1 1 calc(100% - 120px)}
  .mp-tacts{flex:1 1 auto;flex-wrap:wrap}
  .mp-tacts .mp-btn{flex:1 1 auto}
}
@container mp (max-width:760px){
  .mp-tbody{flex-direction:column}
  .mp-side,.mp-sideoff .mp-side{display:flex;width:auto;border-left:0;border-top:1px solid #1d3a24}
  .mp-sidebtn{display:none}
  .mp-log,.mp-chat{flex:none;max-height:150px}
  .mp-tname{font-size:26px}
}

/* Text view when casino-mp3d.js is not loaded */
.mp-fbhost{overflow:auto}
.mp-fb{padding:18px 20px;font-size:14px;line-height:1.6;color:var(--mp-crt2);font-variant-numeric:tabular-nums}
.mp-fbnote{font-size:12px;letter-spacing:.14em;color:var(--mp-amb);margin-bottom:8px}
.mp-fbseats{margin:10px 0 0;padding-left:22px}
.mp-fbseats b{color:var(--mp-hi);font-weight:700}
.mp-fbseats .mp-you b{color:var(--mp-amb)}

/* ── Incoming table call (receiver), on the Bridge Deck call strip ─────── */
#mpCallIn{display:flex;flex-direction:column;gap:6px;margin-bottom:6px}
#mpCallIn.mp-callfloat{position:fixed;right:16px;bottom:16px;z-index:9165;width:min(460px,calc(100vw - 32px));margin:0}
.mp-call{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"ph body btns" "bar bar bar";gap:6px 12px;align-items:center;
  border:2px solid var(--mp-crt);border-radius:6px;padding:10px 12px;background:#0b2213;color:var(--mp-ink);
  box-shadow:inset 0 0 24px rgba(141,252,159,.08),0 0 14px rgba(141,252,159,.18);animation:mpCall 1.2s ease-in-out infinite}
@keyframes mpCall{50%{box-shadow:inset 0 0 24px rgba(141,252,159,.08),0 0 22px rgba(141,252,159,.45)}}
@media (prefers-reduced-motion:reduce){.mp-call,.mp-ringout.ringing .mp-ph96{animation:none}}
.mp-call .mp-ph{grid-area:ph}
.mp-cbody{grid-area:body;display:flex;flex-direction:column;gap:3px;min-width:0}
.mp-cttl{font-family:var(--mp-title);font-size:28px;line-height:1;letter-spacing:3px;color:var(--mp-crt)}
.mp-cl2{font-size:14px;color:#d6ffdc;overflow-wrap:anywhere}
.mp-cl3{font-size:12px;color:var(--mp-crt2);letter-spacing:.04em;overflow-wrap:anywhere}
.mp-cbtns{grid-area:btns;display:flex;flex-direction:column;gap:6px;align-items:stretch}
.mp-cbtns .mp-btn{padding:7px 14px}
.mp-cbtns .mp-btn-alt:hover:not(:disabled),.mp-cbtns .mp-btn-red:hover:not(:disabled){background:#12301b}
.mp-cbtns .mp-btn-alt{background:transparent;border-color:var(--mp-crtdim);color:var(--mp-crt)}
.mp-cbtns .mp-btn-red{background:transparent}
.mp-cbar{grid-area:bar;display:flex;align-items:center;gap:10px}
.mp-cbar .mp-bar{height:4px;background:#12301b}
.mp-cbar .mp-bar i{background:var(--mp-crt)}
.mp-ccd{font-size:13px;color:var(--mp-crt2);font-variant-numeric:tabular-nums;white-space:nowrap}
/* The deck's right column is narrow: portrait smaller, buttons in a row. */
#fmdDock .mp-call{grid-template-columns:52px minmax(0,1fr);grid-template-areas:"ph body" "btns btns" "bar bar";padding:8px 10px;gap:6px 10px}
#fmdDock .mp-ph72{width:52px;height:52px}
#fmdDock .mp-cttl{font-size:21px;letter-spacing:2px}
#fmdDock .mp-cl2{font-size:13px}
#fmdDock .mp-cl3{font-size:12px}
#fmdDock .mp-cbtns{flex-direction:row}
#fmdDock .mp-cbtns .mp-btn{flex:1;padding:6px 6px;font-size:12px}
/* A phone's strip is 128px tall: the newest call only, tight. */
body.fm-mobile #fmdDock #mpCallIn{margin:0}
body.fm-mobile #fmdDock .mp-call:not(:first-child){display:none}
body.fm-mobile #fmdDock .mp-call{grid-template-columns:40px minmax(0,1fr);padding:6px 8px;gap:4px 8px;animation:none}
body.fm-mobile #fmdDock .mp-ph72{width:40px;height:40px}
body.fm-mobile #fmdDock .mp-cttl{font-size:18px}
body.fm-mobile #fmdDock .mp-cl3{display:none}
body.fm-mobile #fmdDock .mp-cbtns .mp-btn{min-height:36px}

/* Phones, off the chat view: one tap back to the call. */
#mpRingBar{position:fixed;z-index:9994;left:8px;right:8px;top:calc(var(--fm-top,46px) + 58px);height:42px;padding:0 12px;border:0;border-radius:6px;cursor:pointer;
  background:linear-gradient(#1d3a26,#10241a);color:#b8ffd0;font-family:'Share Tech Mono',ui-monospace,monospace;font-size:13px;letter-spacing:.1em;text-align:left;
  box-shadow:0 0 0 1px #2a6a3e,0 6px 16px rgba(0,0,0,.7),0 0 18px rgba(66,255,126,.35)}
body:not(.fm-mobile) #mpRingBar{display:none}

/* ── Dialog: buy-in, RING A PLAYER ─────────────────────────────────────── */
.mp-dlgwrap{position:fixed;inset:0;z-index:9170;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(0,0,0,.6)}
.mp-dlg{width:min(440px,100%);max-height:calc(100vh - 32px);overflow-y:auto;display:flex;flex-direction:column;gap:10px;padding:18px 20px;color:var(--mp-ink);
  background:var(--mp-bz);border:2px solid var(--mp-edge);border-radius:10px;box-shadow:inset 0 0 0 4px #0e1310,0 18px 50px rgba(0,0,0,.75)}
.mp-dlg *{box-sizing:border-box}
.mp-dlg .mp-dttl{margin:0;font-family:var(--mp-title);font-weight:400;font-size:30px;letter-spacing:3px;color:var(--mp-amb)}
.mp-dsub{margin:0;font-size:14px;line-height:1.45;color:var(--mp-ink2);overflow-wrap:anywhere}
.mp-dwarn{margin:0;font-size:14px;line-height:1.45;color:var(--mp-red)}
.mp-derr{min-height:1.4em;font-size:13px;color:var(--mp-red)}
.mp-derr:empty{min-height:0}
.mp-drow{display:flex;align-items:center;gap:10px}
.mp-drow label{font-size:12px;letter-spacing:.12em;color:var(--mp-amb)}
.mp-drow input[type=range]{flex:1;min-width:0;accent-color:var(--mp-amb)}
.mp-drow input[type=text]{flex:1;min-width:0;font-variant-numeric:tabular-nums}
.mp-drow input[aria-invalid=true]{border-color:var(--mp-red)}
.mp-damt.off{opacity:.35}
.mp-damt{font-family:var(--mp-title);font-size:36px;line-height:1;color:var(--mp-amb);font-variant-numeric:tabular-nums}
.mp-dbtns{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}
.mp-plist{display:flex;flex-direction:column;gap:8px;max-height:50vh;overflow-y:auto}
.mp-plist .mp-ring{border-color:#4f9a5f;color:var(--mp-crt)}
body.fm-mobile .mp-drow input[type=text],body.fm-mobile .mp-say input{font-size:16px}
