/* Fixed landscape play surface, scaled as one unit on phones. */
body.in-game{overflow:hidden;background:#061e25}body.in-game .topbar,body.in-game footer{display:none}body.in-game main{padding:0}body.in-game #tablePage{position:fixed;inset:0;max-width:none;margin:0;padding:0;overflow:hidden}#gameStage{position:absolute;width:1280px;height:640px;left:50%;top:50%;transform:translate(-50%,-50%) scale(var(--stage-scale,1));transform-origin:center;background:radial-gradient(ellipse at 50% 45%,#174338,#061e25 75%);isolation:isolate}body.portrait-stage #gameStage{transform:translate(-50%,-50%) rotate(90deg) scale(var(--stage-scale,1))}
#gameStage .table{position:absolute;left:130px;top:85px;width:1020px;height:425px;max-width:none;margin:0;border:7px solid #866537;border-radius:44%;box-shadow:0 0 0 3px #30291e,inset 0 0 0 2px #a7c59040,inset 0 0 80px #002820aa;background:radial-gradient(ellipse,#24785f,#0d4a3c)}#gameStage .felt-mark{font-size:54px;top:45%}#gameStage .felt-mark span{font-size:15px}
#gameStage .match-strip{position:absolute;top:12px;left:390px;width:500px;height:62px;margin:0;padding:6px 12px;grid-template-columns:1fr 1.2fr 1fr;gap:10px;border-radius:12px;z-index:3}#gameStage .score-team{display:grid;grid-template-columns:1fr 1fr;gap:0 6px;align-items:center;line-height:1.25}#gameStage .team-label{font-size:13px}#gameStage .tricks-total{gap:4px;grid-row:1/3;grid-column:2}#gameStage .tricks-total b{font-size:28px}#gameStage .tricks-total span{font-size:10px}#gameStage .match-points{font-size:10px}#gameStage .match-points b{font-size:14px}#gameStage .score-team>small,#gameStage .trick-pips{display:none}#gameStage .match-center{gap:0}#gameStage .match-center #roundInfo{font-size:15px}#gameStage .match-center #matchInfo,#gameStage .match-center #remainingTricks{font-size:10px}
#gameStage .player{width:134px;max-width:134px;min-width:0;padding:6px 7px;font-size:14px}#gameStage .player .avatar{width:62px;height:62px;margin:-38px auto 1px}#gameStage .player-name{min-height:24px;gap:4px}#gameStage .player-name b{font-size:14px}#gameStage .player small{font-size:10px}#gameStage .player .trump-badge{width:23px;height:25px;font-size:23px}#gameStage .bidder-mark{gap:4px;align-items:center}#gameStage .bid-amount{font-size:15px;color:var(--gold)}#gameStage .dealer-badge{font-size:10px;bottom:-16px}
#gameStage .seat0{left:50%;bottom:-6px;top:auto;transform:translateX(-50%);z-index:5}#gameStage .four .seat1{right:-55px;left:auto;top:50%;transform:translateY(-50%)}#gameStage .four .seat2{left:50%;top:0;transform:translateX(-50%)}#gameStage .four .seat3{left:-55px;top:50%;transform:translateY(-50%)}#gameStage .six .seat1{right:-40px;left:auto;top:73%;transform:translateY(-50%)}#gameStage .six .seat2{right:35px;left:auto;top:17%;transform:translateY(-50%)}#gameStage .six .seat3{left:50%;top:0;transform:translateX(-50%)}#gameStage .six .seat4{left:35px;top:17%;transform:translateY(-50%)}#gameStage .six .seat5{left:-40px;top:73%;transform:translateY(-50%)}
#gameStage .opponent-fan{display:none}#gameStage .played-item{width:76px}#gameStage .played-item .card{width:76px;height:108px}#gameStage .played-item>small{font-size:11px;max-width:none}#gameStage .played .corner{font-size:19px;left:4px;top:4px}#gameStage .played .corner small{font-size:16px}#gameStage .played .corner.mirrored{left:auto;top:auto;right:4px;bottom:4px}#gameStage .played .pips{font-size:20px}#gameStage .played .ace-symbol{font-size:48px}#gameStage .four .played-seat0{left:50%;top:70%}#gameStage .four .played-seat1{left:66%;top:50%}#gameStage .four .played-seat2{left:50%;top:32%}#gameStage .four .played-seat3{left:34%;top:50%}#gameStage .six .played-seat0{left:50%;top:70%}#gameStage .six .played-seat1{left:66%;top:67%}#gameStage .six .played-seat2{left:66%;top:35%}#gameStage .six .played-seat3{left:50%;top:32%}#gameStage .six .played-seat4{left:34%;top:35%}#gameStage .six .played-seat5{left:34%;top:67%}#gameStage .trick-counter{top:50%;font-size:12px;max-width:85px}
#gameStage .hand{position:absolute;left:50%;top:468px;width:720px;height:170px;max-width:none;min-height:0;padding:0;margin:0;transform:translateX(-50%);z-index:6;display:block}#gameStage .hand .card{position:absolute;left:calc(50% - 48px);top:0;width:96px;height:142px;margin:0;padding:4px;border-radius:9px;transform:translate(var(--fan-offset),var(--fan-rise)) rotate(var(--fan-angle));transform-origin:50% 100%;z-index:var(--fan-order);transition:transform .16s;box-shadow:0 5px 9px #0006}#gameStage .hand .card.playable:hover,#gameStage .hand .card.playable:focus-visible{transform:translate(var(--fan-offset),calc(var(--fan-rise) - 23px)) rotate(var(--fan-angle));z-index:20}#gameStage .hand .corner{font-size:24px;left:5px;top:6px}#gameStage .hand .corner small{font-size:21px}#gameStage .hand .corner.mirrored{left:auto;top:auto;right:5px;bottom:6px}#gameStage .hand .pips{font-size:24px;inset:15% 24%}#gameStage .hand .ace-symbol{font-size:64px}#gameStage .hand .joker-label{font-size:12px}#gameStage .hand .card:disabled{opacity:1}#gameStage .hand .card.playable{border:2px solid #e8c275;box-shadow:0 0 0 2px #e8c27566,0 5px 10px #0007}#gameStage .hand-heading{position:absolute;left:35px;bottom:15px;width:210px;display:block;margin:0;font-size:14px}#gameStage .hand-heading span{display:block}#gameStage .notice{position:absolute;right:30px;bottom:18px;width:245px;max-height:70px;overflow:auto;font-size:13px;text-align:right;margin:0;z-index:7}
#gameStage .controls{position:absolute;left:50%;top:385px;transform:translateX(-50%);width:530px;max-width:none;padding:5px 12px;margin:0;border:0;background:transparent;z-index:5}#gameStage .controls h2{font-size:17px;margin:0}#gameStage .controls p{font-size:12px}#gameStage .controls .buttons:empty{display:none}#gameStage[data-choices=bidding] .controls,#gameStage[data-choices=trump] .controls,#gameStage[data-phase=upgrade] .controls,#gameStage[data-phase=result] .controls,#gameStage[data-phase=finished] .controls{top:170px;background:#092b32f5;border:1px solid #b29960;box-shadow:0 12px 40px #001a20aa;padding:17px;border-radius:20px;z-index:8}#gameStage .buttons{gap:8px;margin-top:10px;flex-wrap:nowrap}#gameStage .buttons button{font-size:26px;min-width:66px;padding:7px 8px;min-height:64px}#gameStage .buttons button small{display:block;font-size:12px;min-height:18px;line-height:1.5}#gameStage .buttons button:disabled{opacity:.25}#gameStage .buttons .suit{font-size:42px;color:#111c22}#gameStage .buttons .suit.red{color:#c02c43}#gameStage .extra-actions{margin-top:10px}#gameStage .extra-actions button{font-size:13px;padding:5px 14px}#gameStage[data-phase=result] .buttons button,#gameStage[data-phase=finished] .buttons button,#gameStage[data-phase=upgrade] .buttons button{font-size:17px}
.game-tools{position:absolute;left:22px;top:18px;display:flex;gap:8px;z-index:15;direction:ltr}.game-tools button{width:48px;height:44px;padding:4px;font-size:24px;background:#0a2c35;border-color:#586a58}.stage-menu{position:absolute;left:22px;top:72px;width:245px;padding:10px;border:1px solid #a08e5e;border-radius:12px;background:#09232ff5;box-shadow:0 10px 40px #0007;z-index:16}.stage-menu button{display:block;width:100%;text-align:right;margin:3px 0;font-size:15px;padding:9px 12px}#gameStage .social-panel{display:none;position:absolute;z-index:18;left:50%;top:95px;transform:translateX(-50%);width:620px;max-width:none;max-height:395px;overflow:auto;margin:0;padding:18px;border-color:#b29960;background:#09232ff7;box-shadow:0 15px 60px #0009}#gameStage .social-panel.open{display:block}#gameStage .social-heading{gap:12px}#gameStage .social-heading button{font-size:15px}#gameStage .social-heading>span{font-size:12px}#gameStage .phrase-choices{grid-template-columns:repeat(3,1fr)}#gameStage .phrase-choices button{font-size:14px;padding:10px}#gameStage .history{display:none;position:absolute;left:50%;top:110px;transform:translateX(-50%);width:540px;max-height:320px;overflow:auto;background:#09232ff7;border:1px solid #b29960;border-radius:12px;padding:20px;margin:0;z-index:17}#gameStage .history[open]{display:block}#gameStage .history summary{color:var(--gold)}#gameStage .speech-bubble{font-size:14px;max-width:190px;bottom:calc(100% + 35px)}#gameStage .seat0 .speech-bubble{bottom:15px;left:calc(100% + 10px)}#gameStage .seat2 .speech-bubble,#gameStage .six .seat3 .speech-bubble{top:calc(100% + 18px);bottom:auto}
#gameStage .seat0{left:60px;bottom:-70px;transform:none}#gameStage .seat0 .speech-bubble{left:calc(100% + 8px);bottom:10px;max-width:160px}#gameStage .hand-heading{left:28px;bottom:4px;font-size:12px}
