#bridgePanel{position:fixed;inset:0;z-index:45;overflow:auto;background:rgba(12,13,12,.98);color:var(--ink);padding:24px;box-sizing:border-box;overscroll-behavior:contain;font:14px/1.6 var(--f-body);}
#bridgePanel .bridgeShell{max-width:960px;margin:auto;}
#bridgePanel header{display:flex;align-items:center;gap:20px;flex-wrap:wrap;border-bottom:1px solid var(--gold-line);padding-bottom:12px;}
#bridgePanel h1{font-size:28px;margin:0 auto 0 0;}#bridgePanel h2{font-size:16px;margin:12px 0 8px;}
#bridgePanel p{margin:8px 0;}#bridgePanel button,#bridgeResume{font:inherit;min-height:44px;padding:8px 14px;background:#242622;border:1px solid var(--gold-line);color:var(--ink);border-radius:4px;cursor:pointer;touch-action:manipulation;}
#bridgePanel button:disabled{opacity:.4;cursor:default;}#bridgePanel button[aria-pressed=true]{background:var(--gold);color:#191919;}
#bridgePanel button:focus-visible,#bridgePanel input:focus-visible{outline:2px solid var(--gold);outline-offset:2px;}
.bridgeEyebrow,.bridgeMeta{color:var(--dim);font-size:12px;}.bridgeStatus{padding:12px;border:1px solid var(--gold);color:var(--gold);}
.bridgeActions,.bridgeConfig{display:flex;gap:8px;flex-wrap:wrap;align-items:center;}.bridgeConfig p{width:100%;}
.bridgeTable{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr) minmax(0,1fr);grid-template-rows:auto minmax(100px,auto) auto;gap:8px;margin:16px 0;background:#182a25;padding:14px;border:1px solid #46594a;border-radius:4px;}
.bridgeSeat{padding:8px;border:1px solid #506151;min-width:0;overflow-wrap:anywhere;}.bridgeSeat small{display:block;}.bridgeSeat.turn{border:2px solid var(--gold);}.seat0{grid-column:2;grid-row:1;}.seat1{grid-column:3;grid-row:2;}.seat2{grid-column:2;grid-row:3;}.seat3{grid-column:1;grid-row:2;}.bridgeCenter{grid-column:2;grid-row:2;text-align:center;min-width:0;}
.bridgeCards,.bridgeTrick{display:flex;gap:6px;flex-wrap:wrap;}.bridgeTrick{justify-content:center;}.bridgeTrick small{display:block;}
#bridgePanel .bridgeCard{min-width:48px;min-height:64px;background:#eee9dc;color:#222;border:1px solid #aba392;font-size:18px;font-weight:bold;padding:6px;}
#bridgePanel .bridgeCard.red{color:#a52f35;}#bridgePanel .bridgeCard:disabled{opacity:1;}#bridgePanel .bridgeHand .bridgeCard:disabled{background:#b5b4a9;color:#54564e;opacity:.65;}#bridgePanel .bridgeHand .bridgeCard.red:disabled{color:#884448;}
.bridgeBidGrid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:10px 0;}.bridgeHint,.bridgeResult{border:1px solid var(--gold-line);padding:12px;margin:12px 0;}#bridgePanel details{border-top:1px solid var(--gold-line);padding:12px 0;}#bridgePanel summary{cursor:pointer;min-height:44px;display:flex;align-items:center;}#bridgePanel a{color:var(--gold);}
#bridgePanel input{min-width:0;flex:1;padding:10px;background:#10110f;border:1px solid var(--gold-line);color:var(--ink);font:16px var(--f-body);}#bridgePanel form{display:flex;gap:8px;}.bridgeChatLog{max-height:180px;overflow:auto;}
#bridgeResume{position:fixed;right:16px;bottom:125px;z-index:4;background:#242622;font-size:14px;}
@media(max-width:640px){#bridgePanel{padding:12px 12px calc(20px + env(safe-area-inset-bottom,0px));}.bridgeTable{gap:4px;padding:6px;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) minmax(0,1fr);}.bridgeSeat{font-size:11px;padding:5px;}#bridgePanel .bridgeSeat button{padding:5px;min-width:0;width:100%;}.bridgeCenter{font-size:11px;}#bridgePanel .bridgeCard{min-width:42px;min-height:56px;font-size:16px;}.bridgeBidGrid button{padding:5px!important;}#bridgePanel header{gap:8px;}#bridgePanel h1{font-size:22px;}.bridgeEyebrow{width:100%;}}

#bridgePanel span.bridgeCard{display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;border-radius:4px;}
/* Team and occupant identity use labels as well as color. */
#bridgePanel .bridgeScene{height:clamp(300px,42vw,420px);position:relative;margin:16px 0 10px;overflow:hidden;border:1px solid #465b50;background:#111916;border-radius:4px;}
#bridgePanel .bridgeScene canvas{display:block;width:100%;height:100%;}
#bridgePanel .bridgeSceneCaption{position:absolute;left:10px;right:10px;bottom:4px;text-align:center;font-size:12px;background:rgba(12,20,17,.85);padding:5px;pointer-events:none;}
#bridgePanel .bridgeLegend{display:flex;gap:18px;flex-wrap:wrap;margin:12px 0;font-size:13px;font-weight:bold;}
#bridgePanel .bridgeLegend .ours{color:#65d6c3;}#bridgePanel .bridgeLegend .theirs{color:#eeac7b;}
#bridgePanel .bridgeTable{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:auto;background:transparent;border:none;padding:0;gap:10px;}
#bridgePanel .bridgeSeat{grid-column:auto;grid-row:auto;display:flex;flex-direction:column;gap:4px;min-height:110px;padding:12px;border:2px solid var(--team-color);background:var(--team-bg);}
#bridgePanel .ours{--team-color:#65d6c3;--team-bg:#142c28;}#bridgePanel .theirs{--team-color:#eeac7b;--team-bg:#30241c;}
#bridgePanel .bridgeSeat small{color:#d0d8ce;}#bridgePanel .bridgeSeat b{color:var(--team-color);font-size:14px;}
#bridgePanel .bridgeSeat.turn{outline:3px solid #ffe2a6;outline-offset:3px;}
#bridgePanel .bridgeOccupant{font-size:11px;font-weight:bold;letter-spacing:.08em;align-self:flex-start;padding:2px 7px;border:1px solid currentColor;color:var(--team-color);}
#bridgePanel [data-kind=waiting] .bridgeOccupant{border-style:dashed;color:#f5dfad;}#bridgePanel [data-kind=computer] .bridgeOccupant{background:#121815;color:#b9d2c6;}
#bridgePanel .bridgeCenter{padding:12px;border:1px solid var(--gold-line);background:#15251f;text-align:left;margin:14px 0;}
#bridgePanel .bridgeWaiting{padding:14px;border:1px solid #d8ba77;background:#29251b;margin:12px 0;}#bridgePanel .bridgeWaiting strong{display:block;margin-bottom:10px;}#bridgePanel .bridgeWaiting p{font-size:12px;color:#e2d8bf;}
@media(max-width:640px){#bridgePanel .bridgeScene{height:300px;}#bridgePanel .bridgeTable{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}#bridgePanel .bridgeSeat{padding:10px;min-height:100px;font-size:12px;}#bridgePanel .bridgeLegend{gap:8px;font-size:12px;}#bridgePanel .bridgeSeat button{font-size:12px;}#bridgePanel .bridgeSceneCaption{font-size:11px;}}
@media(min-width:1000px){#bridgePanel.bridgePlaying .bridgeShell{max-width:1440px;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(340px,1fr);column-gap:24px;align-items:start;}#bridgePanel.bridgePlaying header,#bridgePanel.bridgePlaying .bridgeStatus,#bridgePanel.bridgePlaying .bridgeShell>.bridgeMeta{grid-column:1/-1;}#bridgePanel.bridgePlaying .bridgeVisual{grid-column:1;grid-row:4;position:sticky;top:12px;}#bridgePanel.bridgePlaying .bridgeControls{grid-column:2;grid-row:4;min-width:0;}#bridgePanel.bridgePlaying .bridgeScene{height:390px;}#bridgePanel.bridgePlaying .bridgeSeat{font-size:12px;padding:8px;min-height:110px;}}
@media(max-width:640px){#bridgePanel.bridgePlaying .bridgeScene{height:260px;}#bridgePanel.bridgePlaying .bridgeTable{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;}#bridgePanel.bridgePlaying .bridgeSeat{font-size:10px;padding:5px;min-height:105px;gap:3px;}#bridgePanel.bridgePlaying .bridgeSeat b{font-size:11px;}#bridgePanel.bridgePlaying .bridgeOccupant{font-size:10px;padding:1px 3px;}}
/* In-round UI: a seat-level view of the table with the hand in front of you. */
#bridgePanel.bridgeImmersive{padding:0;overflow:hidden;background:#0e1512;}
.bridgeModeFrame{position:absolute;inset:8px;border:2px solid #ba9972;border-radius:7px;overflow:hidden;box-shadow:inset 0 0 0 4px #171e18;}
#bridgePanel.bridgeImmersive .bridgeScene{position:absolute;inset:0;height:100%!important;width:100%;margin:0;border:0;border-radius:0;}
#bridgePanel.bridgeImmersive .bridgeSceneCaption{display:none;}
.bridgeModeHeader{position:absolute;left:0;right:0;top:0;z-index:5;min-height:56px;padding:8px 16px!important;box-sizing:border-box;background:rgba(12,19,15,.94);gap:14px!important;flex-wrap:nowrap!important;}
.bridgeModeBadge{color:#e5cda4;letter-spacing:.14em;white-space:nowrap;}.bridgeModeHeader>.bridgeActions{margin-left:auto;flex-wrap:nowrap;}
#bridgePanel .bridgeModeHeader button{padding:5px 12px;min-height:36px;}
.bridgeModePlayer{position:absolute;z-index:2;max-width:210px;padding:7px 12px;background:rgba(12,23,19,.9);border:1px solid var(--team-color);border-radius:4px;pointer-events:none;overflow-wrap:anywhere;}
.bridgeModePlayer b{display:block;color:var(--team-color);font-size:14px;}.bridgeModePlayer small{display:block;font-size:11px;color:#e1e4d6;}.bridgeModePlayer.turn{outline:2px solid #ffe2a6;outline-offset:3px;}
.bridgeModePlayer.across{top:108px;left:50%;transform:translateX(-50%);}.bridgeModePlayer.left{left:16px;top:29%;}.bridgeModePlayer.right{right:16px;top:29%;}
.bridgeModeScore{position:absolute;right:16px;top:76px;background:rgba(13,25,19,.9);padding:5px 10px;font-size:12px;border-radius:4px;}
.bridgeModeStatus{position:absolute;z-index:3;left:50%;bottom:186px;transform:translateX(-50%);max-width:calc(100% - 32px);box-sizing:border-box;background:rgba(12,20,16,.92);border:1px solid #bca172;padding:8px 16px;color:#f0d7a5;font-size:14px;text-align:center;}
#bridgePanel .bridgeModeHand{position:absolute;z-index:4;bottom:0;left:0;right:0;min-height:152px;box-sizing:border-box;padding:10px 18px 12px;background:rgba(11,18,14,.96);border-top:1px solid #ba9972;}
.bridgeModeHandHead{display:flex;gap:14px;align-items:center;justify-content:center;margin-bottom:8px;}.bridgeModeHandHead strong{color:#65d6c3;font-size:13px;}.bridgeModeHandHead span{font-size:12px;color:#c6cbbb;}
#bridgePanel .bridgeModeHandHead button{min-height:30px;padding:3px 10px;font-size:12px;}
#bridgePanel .bridgeModeHand .bridgeCards{display:flex;justify-content:center;flex-wrap:nowrap;gap:0;padding-top:7px;overflow-x:auto;overflow-y:hidden;}
#bridgePanel .bridgeModeHand .bridgeCard{box-sizing:border-box;flex:0 0 62px;min-width:62px;min-height:86px;font-size:23px;box-shadow:-2px 0 5px #10140f;margin-left:-8px;transition:transform .12s;}
#bridgePanel .bridgeModeHand .bridgeCard:first-child{margin-left:0;}#bridgePanel .bridgeModeHand .bridgeCard:enabled:hover,#bridgePanel .bridgeModeHand .bridgeCard:focus-visible{transform:translateY(-6px);border:2px solid #65d6c3;}
#bridgePanel .bridgeModeHand .bridgeCard:disabled{opacity:1;background:#c5c4b5;color:#5c645b;}#bridgePanel .bridgeModeHand .bridgeCard.red:disabled{color:#8c5154;}
#bridgePanel .bridgeModeHand>small{display:block;text-align:center;color:#c5c6b3;font-size:11px;margin-top:4px;}
.bridgeModeAuction{position:absolute;z-index:4;right:16px;bottom:190px;width:340px;padding:14px;border:1px solid #ba9972;background:rgba(13,23,17,.96);box-sizing:border-box;border-radius:4px;}
#bridgePanel .bridgeModeAuction strong{font-size:13px;}#bridgePanel .bridgeModeAuction select{font:14px var(--f-body);padding:7px;background:#253128;color:#f0e4d0;border:1px solid #8c7959;max-width:100%;}
.bridgeModeStrains{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:8px 0;}#bridgePanel .bridgeModeStrains button{padding:7px 3px;}
.bridgeModeAdvice{display:flex;gap:12px;align-items:center;justify-content:center;font-size:12px;margin-bottom:6px;}.bridgeModeAdvice span{max-width:600px;}#bridgePanel .bridgeModeAdvice button{min-height:32px;padding:4px 10px;font-size:12px;}
.bridgeModeDummy{position:absolute;z-index:3;width:min(360px,45%);padding:7px;background:rgba(23,46,36,.94);border:1px solid #c5bfa0;border-radius:4px;transform:perspective(700px) rotateX(12deg);}
.bridgeModeDummy strong{font-size:12px;color:#eee1bd;}.bridgeModeDummy .bridgeCards{gap:3px;flex-wrap:wrap;margin-top:5px;}
#bridgePanel .bridgeModeDummy .bridgeCard{min-width:31px;min-height:43px;font-size:14px;padding:2px;}.bridgeModeDummy.across{top:33%;left:50%;transform:translateX(-50%) perspective(700px) rotateX(12deg);}.bridgeModeDummy.left{top:40%;left:6%;}.bridgeModeDummy.right{top:40%;right:6%;}.bridgeModeDummy.near{bottom:210px;left:50%;transform:translateX(-50%);}
.bridgeModeInfo,.bridgeModeResult{position:absolute;z-index:8;right:16px;top:68px;width:min(420px,calc(100% - 32px));max-height:calc(100% - 245px);overflow:auto;padding:16px;background:#152219;border:1px solid #ba9972;box-sizing:border-box;border-radius:4px;}
.bridgeModeResult{top:26%;left:50%;right:auto;transform:translateX(-50%);text-align:center;}.bridgeSrOnly{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
@media(max-width:640px){.bridgeModeFrame{inset:4px;}.bridgeModeHeader{padding:7px 8px!important;gap:8px!important;min-height:51px;font-size:11px;}.bridgeModeHeader>span{display:none;}.bridgeModeHeader>.bridgeActions{gap:4px;}#bridgePanel .bridgeModeHeader button{font-size:11px;min-height:32px;padding:4px 8px;}.bridgeModePlayer{padding:5px 7px;max-width:115px;}.bridgeModePlayer b{font-size:11px;}.bridgeModePlayer small{font-size:10px;}.bridgeModePlayer.across{top:98px;max-width:170px;}.bridgeModePlayer.left{left:6px;top:28%;}.bridgeModePlayer.right{right:6px;top:28%;}.bridgeModeScore{left:6px;right:6px;top:62px;text-align:center;font-size:11px;}.bridgeModeStatus{bottom:161px;width:max-content;max-width:calc(100% - 16px);padding:6px 9px;font-size:12px;}
#bridgePanel .bridgeModeHand{min-height:142px;padding:8px 8px calc(9px + env(safe-area-inset-bottom,0px));}.bridgeModeHandHead{gap:8px;justify-content:space-between;margin-bottom:4px;}.bridgeModeHandHead strong{font-size:11px;}.bridgeModeHandHead span{font-size:10px;}#bridgePanel .bridgeModeHandHead button{font-size:11px;padding:3px 6px;}#bridgePanel .bridgeModeHand .bridgeCards{justify-content:flex-start;gap:4px;}#bridgePanel .bridgeModeHand .bridgeCard{flex:0 0 46px;min-width:46px;min-height:68px;margin-left:0;font-size:19px;}#bridgePanel .bridgeModeHand>small{font-size:10px;}.bridgeModeAuction{left:8px;right:8px;bottom:185px;width:auto;padding:9px;}.bridgeModeAuction>.bridgeActions{gap:5px;}#bridgePanel .bridgeModeAuction button{font-size:12px;min-height:36px;}.bridgeModeAuction select{font-size:12px!important;}.bridgeModeAdvice{flex-direction:column;gap:3px;font-size:11px;max-height:90px;overflow:auto;}.bridgeModeDummy{width:220px;max-width:70%;padding:5px;}.bridgeModeDummy.across{top:32%;}.bridgeModeDummy.left{left:5px;top:38%;}.bridgeModeDummy.right{right:5px;top:38%;}.bridgeModeDummy.near{bottom:205px;}#bridgePanel .bridgeModeDummy .bridgeCard{min-width:25px;min-height:35px;font-size:12px;}.bridgeModeDummy strong{font-size:10px;}}
@media(max-height:500px) and (min-width:641px){.bridgeModeHeader{min-height:42px;padding:4px 10px!important;}.bridgeModePlayer.across{top:57px;}.bridgeModePlayer.left,.bridgeModePlayer.right{top:22%;}.bridgeModeScore{top:50px;left:10px;right:auto;}#bridgePanel .bridgeModeHand{min-height:106px;padding:5px 12px;}#bridgePanel .bridgeModeHand .bridgeCard{min-height:56px;flex-basis:45px;min-width:45px;font-size:17px;}.bridgeModeHandHead{margin-bottom:0;}.bridgeModeStatus{bottom:122px;font-size:11px;padding:4px 8px;}.bridgeModeAuction{bottom:120px;right:10px;width:310px;padding:8px;}#bridgePanel .bridgeModeAuction button{min-height:30px;padding:3px;font-size:11px;}.bridgeModeDummy{top:25%!important;width:250px;}#bridgePanel .bridgeModeDummy .bridgeCard{min-height:28px;min-width:24px;font-size:11px;}}
#bridgePanel .bridgeModeHand .bridgeCard:disabled{background:#e7e0d1;color:#293229;}#bridgePanel .bridgeModeHand .bridgeCard.red:disabled{color:#a6313b;}
#bridgePanel .bridgeModeFrame[data-phase=play] .bridgeModeHand .bridgeCard:disabled{background:#b9bcae;color:#62695e;}#bridgePanel .bridgeModeFrame[data-phase=play] .bridgeModeHand .bridgeCard.red:disabled{color:#925b5a;}
.bridgeModeStatus{bottom:calc(var(--bridge-hand-height,152px) + 20px);}.bridgeModeAuction{bottom:calc(var(--bridge-hand-height,152px) + 20px);}.bridgeModeDummy.near{bottom:calc(var(--bridge-hand-height,152px) + 38px);}
.bridgeModeFrame[data-phase=auction][data-act=true] .bridgeModeStatus{left:16px;transform:none;max-width:calc(100% - 400px);}
@media(max-width:640px){.bridgeModeStatus{bottom:calc(var(--bridge-hand-height,142px) + 12px);}.bridgeModeAuction{bottom:calc(var(--bridge-hand-height,142px) + 18px);}.bridgeModeFrame[data-phase=auction][data-act=true] .bridgeModeStatus{left:50%;transform:translateX(-50%);bottom:calc(var(--bridge-hand-height,142px) + 205px);max-width:calc(100% - 20px);}}
.bridgeModeDummy.across{top:48%;}.bridgeModeDummy.left,.bridgeModeDummy.right{top:51%;}
@media(max-width:640px){.bridgeModeDummy.across{top:48%;}.bridgeModeDummy.left,.bridgeModeDummy.right{top:51%;}}
.bridgeModeDummy .bridgeCards{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));}#bridgePanel .bridgeModeDummy .bridgeCard{min-width:0;min-height:44px;}
@media(max-width:640px){.bridgeModeDummy{width:min(270px,82%);max-width:82%;}#bridgePanel .bridgeModeDummy .bridgeCard{min-width:0;min-height:42px;padding:1px;}}
@media(min-width:641px){.bridgeModeDummy.across,.bridgeModeDummy.near{width:min(560px,72%);max-width:72%;}.bridgeModeDummy.across{top:47%;}.bridgeModeDummy.across .bridgeCards,.bridgeModeDummy.near .bridgeCards{grid-template-columns:repeat(13,minmax(0,1fr));}}
#bridgePanel .bridgeModeDummy>button{float:right;min-height:24px;padding:2px 6px;font-size:10px;} .bridgeModeDummy .bridgeCards{clear:both;}

/* Reuse the main chat panel; keep communication beside the hand, out of game information. */
.bridgeShell{padding-bottom:76px;}
body.bridge-open.ui-panel-open #chat{visibility:visible;z-index:46;bottom:calc(180px + env(safe-area-inset-bottom,0px));}
body.bridge-open #chatFeed{display:none;}
body.bridge-open #chatPanel{box-shadow:0 6px 30px #0009;background:#171c19;}

body.bridge-open.ui-panel-open #chat{position:fixed;z-index:46;}

/* Keep the next lobby action visible before the table preview. */
#bridgePanel .bridgeReadyStage{margin:18px 0 24px;padding:22px 24px;background:#20251f;border:1px solid #b99c70;border-radius:4px;}
#bridgePanel .bridgeReadyStage h2{font-size:22px;line-height:1.4;margin:18px 0 8px;text-wrap:balance;}
#bridgePanel .bridgeReadyStage>p{color:#d5d0c4;margin:8px 0 18px;}
.bridgeSteps{display:flex;gap:20px;list-style:none;padding:0;margin:0;font-size:12px;color:#9e9e92;flex-wrap:wrap;}
.bridgeSteps li[data-state=done]{color:#9fcbb9;}.bridgeSteps li[data-state=current]{color:#f0d6a7;font-weight:700;}
.bridgeReadyActions{display:flex;gap:14px;align-items:center;flex-wrap:wrap;}
#bridgePanel .bridgePrimary{min-height:60px;min-width:220px;padding:14px 28px;background:#d4b383;color:#191a16;border:2px solid #e3c99e;font-size:19px;font-weight:700;}
#bridgePanel .bridgePrimary:hover:not(:disabled){background:#e5c99d;}#bridgePanel .bridgePrimary:active:not(:disabled){transform:translateY(1px);}
#bridgePanel .bridgeSecondary{background:transparent;color:#c7c7b9;}
.bridgeReadyDone{font-size:18px;color:#a9dbc6;line-height:1.5;}
#bridgePanel .bridgeReadyStage .bridgeWaiting{margin:20px 0 0;padding:18px 0 0;background:transparent;border:0;border-top:1px solid #675b43;}
#bridgePanel .bridgeWaiting button{min-height:50px;font-weight:600;padding:10px 18px;}
#bridgePanel .bridgeWaiting button:not(:disabled):hover{border-color:#e3c99e;background:#393529;}
#bridgePanel .bridgeSeatReady{margin-top:auto;font-weight:700;color:#edc6a2;}#bridgePanel .bridgeSeatReady[data-ready=true]{color:#addec7;}
@media(max-width:640px){#bridgePanel .bridgeReadyStage{padding:16px;margin:14px 0 18px;}#bridgePanel .bridgeReadyStage h2{font-size:20px;}.bridgeSteps{gap:10px;font-size:11px;}#bridgePanel .bridgePrimary{width:100%;min-width:0;min-height:60px;}.bridgeReadyActions{gap:10px;}.bridgeReadyDone{font-size:16px;width:100%;}#bridgePanel .bridgeWaiting .bridgeActions{display:grid;grid-template-columns:1fr;width:100%;}#bridgePanel .bridgeWaiting button{width:100%;}}

.bridgeCount{font-size:30px;font-weight:700;color:#eed7ae;font-variant-numeric:tabular-nums;line-height:1.2;}
#bridgePanel .bridgeReadyStage h2{margin:8px 0 18px;}
.bridgeLobbyRoster{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:20px;}
.bridgeLobbyPerson{padding:12px;background:#151d18;min-width:0;overflow-wrap:anywhere;}
.bridgeLobbyPerson b,.bridgeLobbyPerson small{display:block;}.bridgeLobbyPerson small{color:#c6c7b9;font-size:12px;margin-top:4px;}
.bridgeLobbyPerson[data-kind=waiting]{border:1px dashed #a8936e;color:#e6ce9f;}
.bridgeLobbyPerson[data-kind=computer]{color:#a1b6a9;}
#bridgePanel .bridgeReadyStage .bridgeConfig{padding:12px 0;margin:8px 0 14px;border-top:1px solid #4b4c3c;}
#bridgePanel .bridgeReadyStage .bridgeConfig strong{width:100%;}
@media(max-width:640px){.bridgeLobbyRoster{grid-template-columns:repeat(2,minmax(0,1fr));}.bridgeCount{font-size:28px;}#bridgePanel .bridgeReadyStage{margin-top:12px;}.bridgeLobbyPerson{padding:10px;}}

#bridgePanel .bridgeLobbyVisual .bridgeTable,#bridgePanel .bridgeLobbyVisual .bridgeCenter{display:none;}

/* The existing voice dock is moved above the bridge overlay, with its original handlers intact. */
body.bridge-open.ui-panel-open #dock{position:fixed;visibility:visible;pointer-events:auto;z-index:46;left:16px;right:auto;bottom:16px;max-width:calc(100vw - 32px);}
body.bridge-open #dock #gMusic,body.bridge-open #dock #emoBtn,body.bridge-open #dock #standBtn{display:none!important;}
body.bridge-open:has(.bridgeImmersive) #dock{bottom:calc(var(--bridge-hand-height,152px) + 12px + env(safe-area-inset-bottom,0px));}
body.bridge-open #chat{bottom:calc(var(--bridge-hand-height,152px) + 100px + env(safe-area-inset-bottom,0px))!important;}
@media(max-width:640px){body.bridge-open.ui-panel-open #dock{left:12px;right:auto;width:calc(100vw - 24px);box-sizing:border-box;justify-content:center;bottom:12px;}body.bridge-open:has(.bridgeImmersive) #dock{bottom:calc(var(--bridge-hand-height,162px) + 8px + env(safe-area-inset-bottom,0px));}body.bridge-open .bridgeModeAuction{bottom:calc(var(--bridge-hand-height,162px) + 108px)!important;}body.bridge-open .bridgeModeStatus{bottom:calc(var(--bridge-hand-height,162px) + 100px)!important;}body.bridge-open:has(.bridgeModeAuction) .bridgeModeStatus{bottom:auto;top:155px;}}
@media(max-width:640px){body.bridge-open:has(.bridgeModeAuction) .bridgeModeStatus{bottom:auto!important;top:155px;height:max-content;}}

/* Clear lobby seating map; the 3D first-person table starts only after dealing. */
.bridgeLobbyRoster{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) minmax(0,1fr);grid-template-rows:auto auto auto;gap:12px;align-items:stretch;}
.bridgeLobbyPerson{border:1px solid var(--team-color);background:var(--team-bg);min-height:88px;padding:14px;}
.bridgeLobbyPerson[data-seat="0"]{grid-column:2;grid-row:1;}.bridgeLobbyPerson[data-seat="1"]{grid-column:3;grid-row:2;}.bridgeLobbyPerson[data-seat="2"]{grid-column:2;grid-row:3;}.bridgeLobbyPerson[data-seat="3"]{grid-column:1;grid-row:2;}
.bridgeLobbyRole{display:block;color:var(--team-color);font-size:13px;font-weight:700;margin-bottom:8px;}
.bridgeLobbyPerson b{font-size:19px;line-height:1.4;}.bridgeLobbyPerson small{font-size:13px;margin-top:8px;}
.bridgeLobbyCenter{grid-column:2;grid-row:2;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#dbcfb6;gap:6px;}.bridgeLobbyCenter strong{font-size:18px;}.bridgeLobbyCenter small{font-size:13px;}
@media(max-width:640px){.bridgeLobbyRoster{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) minmax(0,1fr);gap:6px;}.bridgeLobbyPerson{padding:8px;min-height:82px;}.bridgeLobbyRole{font-size:11px;margin-bottom:5px;}.bridgeLobbyPerson b{font-size:14px;overflow-wrap:anywhere;}.bridgeLobbyPerson small{font-size:11px;}.bridgeLobbyCenter strong{font-size:13px;}.bridgeLobbyCenter small{font-size:11px;}}

.bridgeInterrupted{border:1px solid #ba9972;background:#29251e;color:#f2dfbe;padding:12px 16px;line-height:1.6;}
