/* Phone readability on the shared 1280 × 640 table, including portrait rotation. */
#gameStage .match-strip{right:24px;top:16px;width:430px;height:112px;padding:10px 12px;gap:10px;grid-template-columns:1fr 1.25fr 1fr;background:#102b40;border-color:#bda46b}
#gameStage .score-team{display:flex;flex-direction:column;gap:1px;line-height:1.15;min-width:0}
#gameStage .team-label{font-size:17px;color:inherit}
#gameStage .match-points{order:1;display:flex;align-items:baseline;justify-content:center;gap:5px;font-size:14px;color:inherit;white-space:nowrap}
#gameStage .score-team .match-points b{font:800 34px/1.1 Arial,sans-serif;font-variant-numeric:tabular-nums;color:inherit}
#gameStage .tricks-total{order:2;gap:5px;white-space:nowrap}
#gameStage .tricks-total b{font:700 23px/1.1 Arial,sans-serif}
#gameStage .tricks-total span{font-size:14px}
#gameStage .match-center{gap:4px;padding-inline:7px;min-width:0}
#gameStage .match-center #roundInfo{font-size:20px;line-height:1.25;color:#ffe3a5}
#gameStage .match-center #matchInfo,#gameStage .match-center #remainingTricks{font-size:14px;line-height:1.35;color:#e2edf4}
#gameStage .match-center .trump-badge{width:26px;height:27px;font-size:25px;vertical-align:middle}
#gameStage .four .seat2,#gameStage .six .seat3{top:8px!important}
#gameStage .six .seat2,#gameStage .six .seat4{top:166px!important}
#gameStage .six .seat1,#gameStage .six .seat5{top:325px!important}
#gameStage .player-name{min-height:31px;padding:3px 5px}
#gameStage .player-name b{font-size:18px;line-height:1.3}
#gameStage .player small{font-size:14px;line-height:1.35;color:#dce7ef}
#gameStage .player .bid-amount{font-size:24px}
#gameStage .player .trump-badge{width:28px;height:29px;font-size:27px}
#gameStage .turn-chip{font-size:14px;padding:3px 9px;top:-12px}
#gameStage .choice-badge{font-size:17px;max-width:100px}
#gameStage .dealer-badge{font-size:12px}
#gameStage .hand{top:496px;height:144px;touch-action:none}
#gameStage #hand.hand .card.hand-chosen,#gameStage #hand.hand .card:focus-visible{transform:translate(var(--fan-offset),calc(var(--fan-rise) - var(--hand-lift,64px))) rotate(var(--fan-angle));z-index:100;box-shadow:0 10px 18px #03142188;transition:transform .09s ease-out}
#gameStage .hand .corner{font-family:Arial,sans-serif;font-weight:800;letter-spacing:-1px;line-height:1;top:7px;left:7px}
#gameStage .hand .corner small{font-size:29px;line-height:1.05}
#gameStage .hand .corner.mirrored{right:7px;bottom:7px}
#gameStage[data-phase=playing] .hand .card:disabled{filter:brightness(.92) saturate(.9)}
#gameStage .played-item{width:100px}
#gameStage .played-item .card{width:100px;height:132px;border-width:2px}
#gameStage .played-item>small{font-size:13px;line-height:1.15;margin-top:3px;padding:1px 3px;color:#fff4d8;background:#102b40}
#gameStage .played .corner{font:800 29px/1 Arial,sans-serif;top:5px;left:5px;letter-spacing:-1px}
#gameStage .played .corner small{font-size:24px;line-height:1}
#gameStage .played .corner.mirrored{right:5px;bottom:5px}
#gameStage .four .played-seat0{top:69%}
#gameStage .six .played-item{width:96px}
#gameStage .six .played-item .card{width:96px;height:122px}
#gameStage .six .played-seat0,#gameStage .six .played-seat1,#gameStage .six .played-seat5{top:71%}
#gameStage .six .played-seat2,#gameStage .six .played-seat3,#gameStage .six .played-seat4{top:23%}
.card .readable-suit{position:absolute;left:50%;top:53%;transform:translate(-50%,-50%);font:70px/1 Georgia,serif}
#gameStage .hand .readable-suit{font-size:83px}
#gameStage .played .readable-suit{font-size:62px}
#gameStage .played .ace-symbol{font-size:66px}
#gameStage .hand .court-art{inset:24% 18% 18% 28%}
#gameStage .played .court-art{inset:26% 17% 18% 29%}
#gameStage .hand .joker-label{font-size:16px;padding:3px}
.drag-card .corner{font-family:Arial,sans-serif;font-weight:800;letter-spacing:-1px;line-height:1;top:7px;left:7px}.drag-card .corner small{font-size:29px;line-height:1.05}.drag-card .corner.mirrored{right:7px;bottom:7px}.drag-card .readable-suit{font-size:83px}.drag-card .court-art{inset:24% 18% 18% 28%}.drag-card .joker-label{font-size:16px;padding:3px}
@media(prefers-reduced-motion:reduce){#gameStage #hand.hand .card.hand-chosen{transition:none}}
#gameStage .played .joker-label{font-size:14px;padding:2px}
#gameStage .controls h2{font-size:21px;line-height:1.35;color:#f4e4bc}
#gameStage .controls p{font-size:16px;line-height:1.5;color:#e0eaf1}
#gameStage[data-phase=playing] .controls{top:443px}
#gameStage[data-phase=playing] .controls p{display:none}
#gameStage .notice{bottom:88px;max-height:86px;font-size:17px;line-height:1.5;color:#e3edf4}
#gameStage .hand-heading{bottom:13px;font-size:15px;line-height:1.4;color:#d8e5ef}
#gameStage .hand-heading #timer{font-size:17px;line-height:1.3}
#gameStage[data-choices=bidding] .controls,#gameStage[data-choices=trump] .controls,#gameStage[data-phase=upgrade] .controls{width:480px}
#gameStage[data-choices=bidding] .controls h2,#gameStage[data-choices=trump] .controls h2,#gameStage[data-phase=upgrade] .controls h2{font-size:23px}
#gameStage .buttons button small,#gameStage .buttons .suit small{font-size:16px;min-height:19px}
#gameStage .extra-actions button{font-size:17px;min-height:34px}
#gameStage[data-phase=result] .controls,#gameStage[data-phase=finished] .controls{top:175px;width:480px;padding:16px 20px}
#gameStage[data-phase=result] .controls h2,#gameStage[data-phase=finished] .controls h2{font-size:29px;line-height:1.35}
#gameStage[data-phase=result] .controls p,#gameStage[data-phase=finished] .controls p{font-size:18px;line-height:1.5}
#gameStage[data-phase=result] .buttons button,#gameStage[data-phase=finished] .buttons button,#gameStage[data-phase=upgrade] .buttons button{font-size:21px;min-height:50px}
#gameStage .result-contract{font-size:19px}
#gameStage .speech-bubble{font-size:18px;max-width:230px;line-height:1.4}
#gameStage .seat0 .speech-bubble{max-width:190px}
#gameStage .game-tools button{width:52px;height:48px;font-size:26px}
.drag-card .corner{font-size:max(36px,var(--card-corner,29px))}
/* Flights use the destination card's measured dimensions, so larger cards never snap on landing. */
.motion-flight{width:var(--flight-width,100px);height:var(--flight-height,132px)}
.motion-flight .motion-face,.motion-flight .motion-back{width:100%!important;height:100%!important}
.motion-face .corner{font:800 29px/1 Arial,sans-serif!important;top:5px!important;left:5px!important}
.motion-face .corner small{font-size:24px!important}
.motion-face .readable-suit{font-size:62px}
.motion-face .ace-symbol{font-size:66px!important}
/* Six seats occupy the lower side rail; keep the current turn beside the tools. */
#gameStage[data-players="6"][data-choices=""]:is([data-phase="playing"],[data-phase="bidding"],[data-phase="trump"]) .controls{left:326px;top:24px;width:232px}
#gameStage .six .played-seat0,#gameStage .six .played-seat1,#gameStage .six .played-seat5{top:74%}
#gameStage .six .played-item>small{line-height:1}
#gameStage[data-players="6"] .hand{top:496px}
