/* Accounts, profile and public player cards */
.profile{text-decoration:none}.profile img,.seat-disc img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}.seat-disc{overflow:hidden}.seat[role="button"]{cursor:pointer;outline-offset:4px;border-radius:8px}.seat[role="button"]:focus-visible{outline:2px solid #c6a463}.seat[role="button"]:hover .seat-disc{box-shadow:0 0 0 3px #c3a56440}.room-actions{display:flex;align-items:center;gap:18px}.button.danger{color:#a33d37;background:#fff5ed;border-color:#d8b6a8}.button.danger:hover{background:#f2ddd1}.swal2-actions .button.danger{background:#9e463c;color:#fff9e8;border-color:#9e463c}.statistics-player{text-align:center}.statistics-photo{width:118px;height:118px;border-radius:50%;background:#e4eadb;color:#29503b;margin:12px auto 15px;border:4px solid #d4c191;overflow:hidden;display:grid;place-items:center;font:44px Georgia,serif}.statistics-photo img{width:100%;height:100%;object-fit:cover}.statistics-player h2{font:30px Georgia,serif;margin:10px 0}.statistics-player p{font-size:12px;margin:5px 0 24px;color:#7c8874}#player-statistics{width:min(550px,calc(100vw - 24px))}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.stat-grid>div{display:flex;flex-direction:column;align-items:center;gap:8px;background:#eef1e6;border:1px solid #dde3d1;border-radius:9px;padding:19px 8px}.stat-grid strong{font:30px Georgia,serif;color:#24533d;font-variant-numeric:tabular-nums}.stat-grid span{font-size:10px;color:#7c8974}.statistics-loading{padding:35px;text-align:center}.account-page{min-height:100dvh;background:radial-gradient(ellipse at top right,#e9eddf,#f5f3eb 70%);display:flex;flex-direction:column}.account-page .topbar{flex-shrink:0}.auth-layout{width:min(1120px,calc(100% - 48px));display:grid;grid-template-columns:1fr 1fr;gap:60px;margin:58px auto;align-items:center;flex:1}.auth-story{border-radius:18px;position:relative;overflow:hidden;background:radial-gradient(ellipse at top right,#33664a,#123d31);color:#fff4d7;min-height:520px;padding:47px 40px;display:flex;flex-direction:column;justify-content:center;box-shadow:0 17px 40px #123d3114}.auth-story:before{content:'';position:absolute;inset:10px;border:1px solid #d3c69933;border-radius:11px;pointer-events:none}.auth-story .eyebrow{color:#d9c28c;font-size:8px}.auth-story h1{font:46px/1.13 Georgia,serif;letter-spacing:-1px;font-weight:normal;margin:24px 0}.auth-story p{font-size:13px;color:#c4d1b9;line-height:1.9;max-width:340px}.auth-suits{font:43px Georgia,serif;color:#e5d19b;letter-spacing:14px;margin-top:35px}.auth-suits span{color:#bf8064}.auth-story-note{font-size:10px;color:#a8c0a4;line-height:1.7;margin-top:26px}.auth-panel{background:#fffdf6;border:1px solid #dce1d1;border-radius:15px;padding:34px;box-shadow:0 9px 30px #1c413309}.auth-panel .eyebrow{font-size:8px;letter-spacing:1.8px}.auth-panel h2{font:31px/1.2 Georgia,serif;margin:16px 0 10px;letter-spacing:-.6px}.auth-subtitle,.auth-panel p{font-size:12px;line-height:1.8;color:#7b8872}.auth-panel label,.profile-photo-card label:not(.button){display:block;margin:18px 0 8px;font-size:11px;font-weight:600;color:#375a42}.auth-panel input,.profile-photo-card input{display:block;width:100%;padding:13px 12px;border:1px solid #cfd7c2;border-radius:6px;background:#fff;color:#214931;font-size:14px;outline-color:#bea266;min-width:0}.auth-panel small{font-size:9px;color:#8a947f;line-height:1.7;display:block;margin-top:6px}.auth-panel .wide{width:100%}.auth-panel button[type="submit"]{margin-top:15px}.form-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-feedback{font-size:12px;color:#a23f36;line-height:1.7;margin-top:12px;min-height:0}.form-feedback:empty{display:none}.form-feedback.success{color:#467346}.auth-switch{border-top:1px solid #e2e6d8;padding-top:18px;margin:23px 0 0!important;font-size:11px!important}.auth-switch a{color:#285439;font-weight:600}.resend-details{font-size:10px;color:#829175;margin-top:18px}.resend-details summary{cursor:pointer}.resend-details input{font-size:12px}.auth-panel [hidden]{display:none}.registration-success{padding:20px 0}.success-mark{display:grid;place-items:center;width:63px;height:63px;border-radius:50%;background:#edf0df;border:1px solid #becb9b;font:31px Georgia,serif;color:#71874e;margin-bottom:20px}.registration-success h3{font:26px Georgia,serif}.verify-layout{display:grid;place-items:center;flex:1;padding:50px 20px}.verify-panel{max-width:520px}.verify-panel h1{font:32px Georgia,serif;margin:20px 0}.verify-panel p{margin-bottom:25px}.account-footer{padding:22px;text-align:center;color:#8b957e;font-size:10px;margin-top:auto}.profile-layout{width:min(1080px,calc(100% - 44px));margin:45px auto;flex:1}.profile-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px;gap:20px}.profile-heading h1{font:42px Georgia,serif;margin:12px 0}.profile-grid{display:grid;grid-template-columns:330px 1fr;gap:25px}.profile-photo-card,.profile-info-card{border:1px solid #d9dfcb;background:#fffdf5;border-radius:13px;padding:26px}.profile-photo-card{text-align:center}.profile-photo{width:160px;height:160px;border-radius:50%;background:#e6ecdb;border:5px solid #d8c79b;overflow:hidden;display:grid;place-items:center;font:58px Georgia,serif;color:#37543a;margin:0 auto}.profile-photo img{display:block;object-fit:cover;width:100%;height:100%}.profile-photo-card h2{font:28px Georgia,serif;margin:20px 0 8px}.profile-photo-card p{font-size:11px;color:#839073;line-height:1.7}.profile-photo-card input[type="file"]{font-size:10px;padding:10px 0;border:0;background:none;max-width:100%}.profile-photo-card form{margin-top:23px}.profile-photo-card small{font-size:9px;color:#929b85;line-height:1.8}.profile-photo-card button[type="submit"]{margin-top:17px}.profile-info-card+.profile-info-card{margin-top:25px}.profile-info-card h2{font:25px/1.3 Georgia,serif;margin:14px 0 22px}.profile-info-card .eyebrow{font-size:8px}.stats-note{font-size:10px;line-height:1.9;color:#89947c;margin-top:20px}.profile-info-card dl{margin:15px 0 20px;font-size:12px}.profile-info-card dl>div{display:flex;justify-content:space-between;gap:15px;line-height:1.8;border-bottom:1px solid #e5e8d9;padding:11px 0}.profile-info-card dt{color:#849276}.profile-info-card dd{margin:0;word-break:break-word;color:#31563a}
@media(max-width:800px){.auth-layout{gap:25px;margin:30px auto;width:calc(100% - 32px)}.auth-story{padding:30px 24px;min-height:490px}.auth-story h1{font-size:37px}.auth-panel{padding:25px}.auth-panel h2{font-size:27px}.profile-grid{grid-template-columns:280px 1fr;gap:16px}.profile-photo-card,.profile-info-card{padding:20px}.profile-info-card .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-grid strong{font-size:27px}}
@media(max-width:600px){.account-page .topbar{height:70px;padding:0 17px}.account-page .topbar>a.button{font-size:10px;padding:8px}.auth-layout{display:block;margin:24px auto;max-width:420px}.auth-story{display:none}.auth-panel{padding:27px 24px}.auth-panel h2{font-size:28px}.form-pair{grid-template-columns:1fr;gap:0}.auth-panel input{padding:13px}.profile-layout{width:calc(100% - 30px);margin:25px auto}.profile-heading h1{font-size:34px}.profile-heading .eyebrow{font-size:7px}.profile-heading .button{font-size:10px;padding:10px}.profile-grid{grid-template-columns:1fr}.profile-photo{width:130px;height:130px}.profile-info-card .stat-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.stat-grid>div{padding:15px 5px}.stat-grid strong{font-size:25px}.stat-grid span{font-size:8px}.profile-info-card h2{font-size:24px}.profile-info-card dl>div{flex-direction:column;gap:4px}.statistics-photo{width:108px;height:108px}.statistics-player h2{font-size:27px}#player-statistics{padding:22px}.statistics-player p{font-size:10px}.room-actions{gap:8px}}
/* The playing room occupies the viewport. Only the card areas scroll internally. */
body.in-room{height:100dvh;min-height:0;overflow:hidden;display:flex;flex-direction:column}
body.in-room .topbar{height:54px;flex:0 0 54px;padding:0 18px}
body.in-room .brand{font-size:28px;gap:8px}
body.in-room .brand-icon{width:32px;height:36px;font-size:29px;border-radius:8px}
body.in-room .brand small{font-size:6px;letter-spacing:2px}
body.in-room nav{gap:15px}
body.in-room #rules-open{font-size:10px;padding:7px;min-height:30px}
body.in-room .connection{font-size:10px}
body.in-room .profile{font-size:11px;padding-left:13px}
body.in-room .profile>span:first-child{width:29px;height:29px}
body.in-room #app{flex:1;min-height:0;overflow:hidden;width:100%}
body.in-room .room{height:100%;min-height:0;width:100%;padding:6px 0 3px;display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto;gap:5px;max-width:none}
body.in-room .room-header{grid-row:1;min-height:29px;flex-wrap:nowrap;gap:8px;margin:0 10px}
body.in-room .room-title{gap:7px;min-width:0}
body.in-room .room-title h1{font-size:21px;white-space:nowrap}
body.in-room .room-title small{font-size:9px;white-space:nowrap}
body.in-room .room-title .button{min-height:28px;padding:5px 7px}
body.in-room .room-actions .danger{min-height:28px;padding:6px 10px;font-size:10px;white-space:nowrap}
body.in-room .scores{gap:14px}
body.in-room .score{font-size:9px;gap:6px}
body.in-room .score strong{font-size:20px}
body.in-room .persistent-turn{grid-row:2;position:relative;top:auto;margin:0 10px;padding:8px 13px;gap:15px;min-height:55px;z-index:12}
body.in-room .persistent-turn h3{font-size:18px;line-height:1.1;margin:3px 0}
body.in-room .persistent-turn p{font-size:10px;line-height:1.4;margin:3px 0 0}
body.in-room .persistent-turn .eyebrow{font-size:7px;letter-spacing:1px}
body.in-room .turn-clock{width:145px;flex-basis:145px;gap:2px 7px}
body.in-room .turn-countdown{font-size:27px;min-width:62px}
body.in-room .clock-owner{font-size:9px}
body.in-room .clock-status{font-size:8px}
body.in-room .board-toolbar{grid-row:3;margin:0 10px;min-height:24px;gap:6px;flex-wrap:nowrap}
body.in-room .board-toolbar>span{font-size:8px}
body.in-room .board-toolbar .button{min-height:24px;padding:5px 8px;font-size:9px}
body.in-room .room-layout{grid-row:4;height:100%;min-height:0;margin:0;gap:0;overflow:visible}
body.in-room .table-stage{height:100%;min-height:0;padding:59px 0 58px}
body.in-room .felt,body.in-room .active-room .playing-felt{height:100%;min-height:0;padding:10px 13px;border-width:6px;border-radius:24px;grid-template-rows:minmax(0,1fr)}
body.in-room .playing-felt:before{border-radius:15px}
body.in-room .playing-felt .meld-zone{height:100%;min-height:0;padding:7px;overflow:hidden;min-width:0}
body.in-room .playing-felt .zone-heading{min-height:29px;padding-bottom:6px;margin-bottom:6px}
body.in-room .playing-felt .zone-heading strong{font-size:9px}
body.in-room .playing-felt .zone-heading span{font-size:7px}
body.in-room .active-room .playing-felt .melds{flex:1;max-height:none;min-height:0;overflow-y:auto;overscroll-behavior:contain}
body.in-room .active-room .playing-felt .table-piles{--card-w:49px;--card-h:71px;gap:8px;max-height:100%;min-height:0;padding:3px 0}
body.in-room .playing-felt .pile-label{font-size:7px;letter-spacing:.5px}
body.in-room .playing-felt .pot-info{font-size:7px;line-height:1.5}
body.in-room .playing-felt .pot-info strong{font-size:12px}
body.in-room .playing-felt .table-piles .card-center{font-size:29px;left:13px;top:24px}
body.in-room .playing-felt .table-piles .card-corner{font-size:12px;left:4px;top:5px}
body.in-room .playing-felt .table-piles .card-corner.bottom{top:auto;left:auto;bottom:5px;right:4px}
body.in-room .playing-felt .table-piles .card.joker .card-corner{font-size:6px}
body.in-room .playing-felt .table-piles .card.joker .card-center{font-size:20px;left:14px;top:27px}
body.in-room .seat{gap:2px}
body.in-room .seat .seat-disc{width:26px;height:26px;font-size:12px;border-width:2px}
body.in-room .seat .player-label{font-size:9px;line-height:1.2;max-width:95px}
body.in-room .seat small{font-size:8px;line-height:1.2}
body.in-room .seat .seat-tag{font-size:6px;line-height:1.2}
body.in-room .seat.s0{bottom:2px}
body.in-room .seat.s1,body.in-room .seat.s2,body.in-room .seat.s3,body.in-room .seat.two-opponent{top:1px}
body.in-room .hand-area{grid-row:5;display:flex;flex-direction:column;min-height:0;margin:0 10px;padding:4px 0 2px;overflow:visible;border-top:1px solid var(--line);z-index:4;--card-w:62px;--card-h:89px}
body.in-room .hand-heading{order:2;font-size:10px;min-height:29px;gap:10px;position:relative;z-index:6}
body.in-room .hand-heading small{font-size:9px;margin-left:6px}
body.in-room .hand-controls{gap:5px;flex-wrap:wrap}
body.in-room .hand-controls .button{min-height:27px;font-size:9px;padding:6px 9px}
body.in-room .hand-controls select{font-size:9px;padding:6px 7px;max-width:110px}
body.in-room .hand-scroll{order:1;position:relative;z-index:3;pointer-events:none;height:calc(var(--card-h) + 113px);flex:0 0 calc(var(--card-h) + 113px);margin:-100px 0 0;padding:105px 10px 8px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
body.in-room .hand .card{pointer-events:auto}
body.in-room .hand .card-corner{font-size:16px;top:6px;left:5px}
body.in-room .hand .card-corner.bottom{top:auto;left:auto;bottom:6px;right:5px}
body.in-room .hand .card-center{font-size:34px;left:16px;top:29px}
body.in-room .hand .card.joker .card-corner{font-size:8px}
body.in-room .hand .card.joker .card-center{font-size:23px;left:18px;top:34px}
body.in-room .hand-hint{order:3;margin:3px 0 0;font-size:8px;line-height:1.4}
body.in-room .hand-empty{order:1;padding:4px;font-size:9px;line-height:1.4}
body.in-room .waiting-center{min-height:0;height:100%;padding:8px;overflow:auto}
body.in-room .waiting-center .club{font-size:31px}
body.in-room .waiting-center h2{font-size:23px;margin:7px 0}
body.in-room .waiting-center p{font-size:10px;line-height:1.7}
body.in-room .solo-wait{margin-top:10px;padding-top:9px;gap:5px}
body.in-room .solo-countdown{font-size:27px}
body.in-room .board-score{overflow:auto;min-height:0;padding:6px 12px}
body.in-room .board-score h2{font-size:23px;margin:0 0 7px}
body.in-room .score-table{font-size:10px}
body.in-room .score-table th,body.in-room .score-table td{padding:4px}
body.in-room .board-score .round-next-note{margin-top:9px!important}
@media(max-width:720px){
 body.in-room .topbar{height:43px;flex-basis:43px;padding:0 10px}
 body.in-room .brand{font-size:24px;gap:6px}
 body.in-room .brand-icon{width:27px;height:30px;font-size:25px}
 body.in-room .brand small{font-size:5px;letter-spacing:1.4px}
 body.in-room nav{gap:5px}
 body.in-room .profile{padding-left:7px}
 body.in-room #rules-open{font-size:8px;min-height:26px;padding:4px}
 body.in-room .room{gap:4px;padding-top:4px}
 body.in-room .room-header{gap:5px;margin:0 7px;align-items:center}
 body.in-room .room-title{gap:4px;flex-wrap:wrap}
 body.in-room .room-title h1{font-size:17px}
 body.in-room .room-title small{font-size:7px;line-height:1.2}
 body.in-room .room-title .button{padding:4px;min-height:24px}
 body.in-room .room-actions{gap:5px;flex-shrink:0}
 body.in-room .room-actions .danger{font-size:8px;padding:5px 6px;min-height:25px}
 body.in-room .scores{gap:6px;flex-direction:column;align-items:end}
 body.in-room .score{max-width:none;font-size:7px;gap:4px;line-height:1}
 body.in-room .score strong{font-size:15px}
 body.in-room .score em{font-size:6px}
 body.in-room .persistent-turn{margin:0 7px;padding:7px 9px;gap:8px;min-height:54px}
 body.in-room .persistent-turn h3{font-size:15px;margin:2px 0}
 body.in-room .persistent-turn p{font-size:8px;line-height:1.3;margin-top:2px}
 body.in-room .persistent-turn .eyebrow{font-size:6px}
 body.in-room .turn-clock{width:78px;flex-basis:78px;grid-template-columns:1fr;gap:1px}
 body.in-room .clock-owner{font-size:7px;max-width:78px}
 body.in-room .turn-countdown{font-size:23px;min-width:0;grid-column:1;grid-row:2}
 body.in-room .clock-status{font-size:6px;line-height:1.2}
 body.in-room .board-toolbar{margin:0 7px;min-height:22px;gap:5px}
 body.in-room .board-toolbar>span{font-size:7px;max-width:155px;line-height:1.4}
 body.in-room .board-toolbar .button{font-size:8px;padding:4px 6px;min-height:23px}
 body.in-room .table-stage{padding:52px 0 52px}
 body.in-room .felt,body.in-room .active-room .playing-felt{padding:8px 5px;border-width:4px;border-radius:17px;grid-template-columns:minmax(0,1fr) 43px minmax(0,1fr);gap:5px}
 body.in-room .felt:not(.playing-felt){display:flex}
 body.in-room .active-room .playing-felt .meld-zone{padding:5px 3px}
 body.in-room .playing-felt .zone-heading{min-height:29px;padding-bottom:5px;margin-bottom:5px}
 body.in-room .playing-felt .zone-heading strong{font-size:7px;line-height:1.3}
 body.in-room .playing-felt .zone-heading span{font-size:6px}
 body.in-room .active-room .playing-felt .table-piles{--card-w:37px;--card-h:54px;gap:7px}
 body.in-room .playing-felt .table-piles .card-center{font-size:22px;left:10px;top:18px}
 body.in-room .playing-felt .table-piles .card-corner{font-size:10px;left:3px;top:4px}
 body.in-room .playing-felt .table-piles .card.joker .card-corner{font-size:5px}
 body.in-room .playing-felt .table-piles .card.joker .card-center{font-size:15px;left:11px;top:20px}
 body.in-room .playing-felt .pile-label{font-size:6px}
 body.in-room .playing-felt .pot-info{font-size:6px}
 body.in-room .playing-felt .pot-info strong{font-size:10px}
 body.in-room .seat .seat-disc{width:24px;height:24px;font-size:11px}
 body.in-room .seat .player-label,body.in-room .seat.s1 .player-label,body.in-room .seat.s3 .player-label{font-size:8px;max-width:78px}
 body.in-room .seat small,body.in-room .seat.s1 small,body.in-room .seat.s3 small{font-size:6px;max-width:78px}
 body.in-room .seat .seat-tag,body.in-room .seat.s1 .seat-tag,body.in-room .seat.s3 .seat-tag{font-size:5px}
 body.in-room .hand-area{margin:0 7px;--card-w:54px;--card-h:77px;padding-top:3px}
 body.in-room .hand-heading{align-items:center;gap:3px;flex-wrap:wrap;font-size:9px;min-height:25px}
 body.in-room .hand-heading small{font-size:8px}
 body.in-room .hand-controls{width:100%;justify-content:space-between;gap:3px;flex-wrap:nowrap}
 body.in-room .hand-controls .button{font-size:8px;padding:6px 5px;min-height:26px;white-space:nowrap}
 body.in-room .hand-controls select{font-size:8px;max-width:82px;padding:5px}
 body.in-room .hand .card{margin-left:-16px}
 body.in-room .hand .card:first-child{margin-left:0}
 body.in-room .hand .card-corner{font-size:14px;left:4px;top:5px}
 body.in-room .hand .card-corner.bottom{bottom:5px;right:4px}
 body.in-room .hand .card-center{font-size:29px;left:14px;top:25px}
 body.in-room .hand .card.joker .card-corner{font-size:7px}
 body.in-room .hand .card.joker .card-center{font-size:20px;left:16px;top:29px}
 body.in-room .hand-hint{font-size:7px;margin-top:2px}
 body.in-room .waiting-center .club{font-size:24px}
 body.in-room .waiting-center h2{font-size:20px}
 body.in-room .waiting-center p{font-size:9px}
 body.in-room .solo-wait{margin-top:8px;padding-top:8px;gap:4px}
 body.in-room .solo-countdown{font-size:24px}
 body.in-room .solo-wait small{font-size:8px}
 body.in-room .board-score{padding:3px 5px}
 body.in-room .board-score h2{font-size:20px}
 body.in-room .score-table{font-size:9px}
 body.in-room .score-table th,body.in-room .score-table td{padding:3px}
}
@media(max-height:500px) and (min-width:600px){
 body.in-room .topbar{height:34px;flex-basis:34px}
 body.in-room .room{gap:3px;padding-top:3px}
 body.in-room .brand{font-size:23px}
 body.in-room .brand-icon{width:24px;height:26px;font-size:22px}
 body.in-room .brand small{display:none}
 body.in-room .room-header{min-height:25px}
 body.in-room .persistent-turn{min-height:34px;padding:4px 9px}
 body.in-room .persistent-turn p{display:none}
 body.in-room .persistent-turn h3{font-size:15px;margin:0}
 body.in-room .persistent-turn .eyebrow{font-size:5px}
 body.in-room .turn-clock{width:140px;flex-basis:140px}
 body.in-room .turn-countdown{font-size:22px}
 body.in-room .clock-status{display:none}
 body.in-room .board-toolbar{min-height:21px}
 body.in-room .table-stage{padding:25px 0 25px}
 body.in-room .seat{flex-direction:row;gap:4px;align-items:center;max-width:none}
 body.in-room .seat .seat-disc{width:19px;height:19px;font-size:9px}
 body.in-room .seat small{font-size:6px}
 body.in-room .seat .seat-tag{display:none}
 body.in-room .seat.s0{bottom:1px}
 body.in-room .playing-felt .zone-heading{min-height:23px;margin-bottom:3px;padding-bottom:3px}
 body.in-room .active-room .playing-felt{grid-template-columns:minmax(0,1fr) 110px minmax(0,1fr);padding:5px 10px}
 body.in-room .active-room .playing-felt .table-piles{flex-direction:row;flex-wrap:nowrap;--card-w:34px;--card-h:49px;gap:9px}
 body.in-room .playing-felt .pot-info{display:none}
 body.in-room .hand-area{--card-w:42px;--card-h:60px}
 body.in-room .hand-heading{min-height:24px}
 body.in-room .hand-controls .button{min-height:23px;padding:4px 7px}
 body.in-room .hand-controls select{padding:4px}
 body.in-room .hand-hint{display:none}
 body.in-room .hand .card-corner{font-size:11px;left:3px;top:4px}
 body.in-room .hand .card-corner.bottom{right:3px;bottom:4px}
 body.in-room .hand .card-center{font-size:24px;left:10px;top:20px}
 body.in-room .hand .card.joker .card-center{font-size:17px;left:12px;top:23px}
 body.in-room .hand .card.joker .card-corner{font-size:6px}
}
/* Prevent long card strips from widening an implicit grid track on small screens. */
body.in-room .room{grid-template-columns:minmax(0,1fr)}
body.in-room .room>*,body.in-room .hand-area,body.in-room .hand-scroll{min-width:0;max-width:100%}
body.in-room .hand-controls{min-width:0}
@media(max-width:720px){body.in-room .board-toolbar>span{min-width:0;flex:1}body.in-room .board-toolbar>div{flex-shrink:0}}
.profile-photo-card input[type="file"]{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;padding:0;border:0}
.profile-photo-card:has(input[type="file"]:focus-visible) label[for="avatar-upload"]{outline:3px solid #c6a463;outline-offset:3px}
.selected-photo-name{display:block;font-size:10px;color:#829175;line-height:1.6;margin:9px 0;overflow-wrap:anywhere}
/* The active player is unmistakable, with no flashing or extra layout height. */
body.in-room.my-turn .persistent-turn.your-turn{background:linear-gradient(110deg,#164e37,#286748);border:2px solid #d3ae59;box-shadow:0 0 0 2px #d8be7933,inset 5px 0 #e5c574;color:#fff3cb}
body.in-room.my-turn .persistent-turn.your-turn h3{color:#fff9df;font-weight:bold;letter-spacing:.4px}
body.in-room.my-turn .persistent-turn.your-turn .eyebrow{color:#f1d27e;font-weight:bold}
body.in-room.my-turn .persistent-turn.your-turn p,body.in-room.my-turn .persistent-turn.your-turn .clock-owner,body.in-room.my-turn .persistent-turn.your-turn .clock-status{color:#d9e6c5}
body.in-room.my-turn .persistent-turn.your-turn .turn-countdown{color:#ffe29a}
body.in-room.my-turn .persistent-turn.your-turn.clock-urgent{border-color:#f09371}
body.in-room.my-turn .persistent-turn.your-turn.clock-urgent .turn-countdown{color:#ffbd95}
body.in-room.my-turn .seat.mine .seat-disc{border-color:#d7af5f;box-shadow:0 0 0 4px #d4ae5b55}
body.in-room.my-turn .hand-area{border-top-color:#c6a354;background:linear-gradient(0deg,#e6edda70,transparent)}
body.in-room .playing-felt .ground-score{color:#e1d9ae;font-size:9px;line-height:1.6}
body.in-room .playing-felt .ground-score b{color:#ffe5a4;font:700 18px Georgia,serif;margin-left:4px}
body.in-room .playing-felt .ground-score small{font-size:8px;color:#a3bb9e}
body.in-room .playing-felt .zone-heading{min-height:48px}
.round-history{display:flex;align-items:center;gap:7px;overflow-x:auto;min-width:0;flex:1;white-space:nowrap;scrollbar-width:thin;padding:2px 0;overscroll-behavior:contain}
.round-history>strong{font-size:9px;color:#8c784a;flex:0 0 auto}.history-result{flex:0 0 auto;padding:4px 7px;border:1px solid #d9dfcc;border-radius:5px;background:#fffdf4;color:#627452;font-size:9px}.history-result b{color:#234e36;margin-right:4px}.history-result i{font-style:normal;margin:0 4px;color:#aaae90}.history-empty{font-size:8px;color:#7d8870;min-width:0;flex:1}
body.in-room .board-toolbar>div:last-child:not(.round-history){flex-shrink:0}
.opponent-hand{position:absolute;left:calc(50% + 17px);top:3px;display:block;width:57px;height:22px;pointer-events:none}
.opponent-fan{position:absolute;left:0;top:0;width:49px;height:20px}.mini-card-back{position:absolute;left:calc(50% - 6px);top:0;width:12px;height:18px;background:repeating-linear-gradient(45deg,#b8a16c 0 1px,#e1cd98 1px 4px);border:1px solid #f6edce;border-radius:2px;box-shadow:0 1px 2px #1c493c33}
.opponent-hand>b{position:absolute;right:0;bottom:-2px;border-radius:9px;background:#244e39;color:#fff0c6;border:1px solid #c5b078;font:8px Arial,sans-serif;padding:2px 3px;min-width:16px;text-align:center}
.seat.s1 .opponent-hand{left:auto;right:calc(50% + 17px)}
.pot-visual{display:flex;flex-direction:column;align-items:center;gap:3px;pointer-events:none}.crossed-pots{position:relative;width:57px;height:56px;display:grid;place-items:center}.pot-bundle{position:absolute;left:calc(50% - 17px);top:calc(50% - 24px);width:34px;height:48px;transform:rotate(-8deg);display:grid;place-items:center;isolation:isolate}.pot-bundle i{position:absolute;inset:0;border:2px solid #eee5c9;border-radius:3px;background:repeating-linear-gradient(45deg,#bba16d 0 1px,#dbc28d 1px 4px);box-shadow:0 1px 2px #123c3266}.pot-bundle i:nth-child(1){transform:translate(-2px,-2px)}.pot-bundle i:nth-child(2){transform:translate(-1px,-1px)}.pot-bundle b{position:relative;z-index:1;color:#fff4d3;font:20px Georgia,serif}.pot-bundle.bundle-1{transform:rotate(82deg)}.pots-empty{font-size:21px;color:#a7c19a}.pot-visual>span{font-size:7px;color:#c7d4b9}
.discard-inspection-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:10px;margin-top:10px;border-top:1px solid #e1e5d5;flex-shrink:0}.discard-inspection-actions .button{font-size:11px;min-height:34px;padding:8px 13px}.discard-inspection-actions small{font-size:9px;color:#859276}.discard-pile{cursor:pointer}
@media(max-width:720px){
 body.in-room .playing-felt .ground-score{font-size:7px;line-height:1.4}
 body.in-room .playing-felt .ground-score b{font-size:14px}
 body.in-room .playing-felt .ground-score small{display:none}
 body.in-room .playing-felt .zone-heading{min-height:43px}
 .round-history{gap:4px;min-width:0}.round-history>strong{font-size:7px}.history-result{font-size:7px;padding:4px 5px}.history-empty{font-size:7px}
 .opponent-hand{width:46px;left:calc(50% + 15px)}.opponent-fan{width:40px}.mini-card-back{height:16px;width:10px}.opponent-hand>b{font-size:7px;padding:1px 3px}.seat.s1 .opponent-hand{right:calc(50% + 15px)}
 .crossed-pots{width:39px;height:37px}.pot-bundle{width:23px;height:32px;left:calc(50% - 11px);top:calc(50% - 16px)}.pot-bundle i{border-width:1px}.pot-bundle b{font-size:15px}.pot-visual>span{font-size:6px}
 .discard-inspection-actions{gap:8px;flex-direction:column;align-items:stretch;padding-top:8px;margin-top:8px}.discard-inspection-actions .button{font-size:10px;min-height:34px}.discard-inspection-actions small{font-size:8px;text-align:center}
}
@media(max-height:500px) and (min-width:600px){body.in-room .playing-felt .zone-heading{min-height:34px}.opponent-hand{position:relative;left:auto!important;right:auto!important;top:auto;width:36px;height:18px}.opponent-fan{width:30px;height:18px}.opponent-hand>b{font-size:6px}.mini-card-back{height:14px;width:9px}body.in-room .pot-visual{display:none}}

/* Keep the highlight inside the card, including overlapping and selected cards. */
body.in-room .hand .card.new-card{outline:1px solid #c73326;outline-offset:-1px;border-color:#c73326}

/* Multi-table navigation stays outside the board's viewport grid. */
.table-navigation[hidden]{display:none}.table-navigation{display:flex;align-items:stretch;gap:8px;flex:0 0 auto;min-width:0;padding:5px 10px;border-bottom:1px solid #daddce;background:#eeeee4;max-width:100%;overflow:hidden}
.show-lobby{flex:0 0 auto;align-self:center;font-size:11px;padding:8px 12px;min-height:35px;background:#fffdf6}
.table-tabs{display:flex;gap:6px;min-width:0;overflow-x:auto;scrollbar-width:thin;padding:1px 2px 3px;overscroll-behavior:contain}
.table-tab{flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:112px;border:2px solid #cbd3c5;border-radius:7px;padding:6px 10px;background:#fafaf2;color:#667760;font:10px Arial,sans-serif;cursor:pointer}
.table-tab strong{font-size:11px;color:#234b38}.table-tab span{font-size:9px}.table-tab.active{background:#dce8d6;border-color:#608269}.table-tab:focus-visible{outline:2px solid #254e38;outline-offset:1px}
@keyframes waiting-turn{0%,100%{background-color:#fff4e8;box-shadow:inset 0 0 0 1px #c13a29}50%{background-color:#f5c7b8;box-shadow:inset 0 0 0 1px #d8543d}}
.table-tab.needs-turn,.lobby-modal-table.needs-turn{border:2px solid #c73326;animation:waiting-turn 1.2s ease-in-out infinite}.table-tab.needs-turn strong,.table-tab.needs-turn span{color:#9b251c}
#lobby-dialog{width:min(900px,calc(100vw - 24px));padding:24px;max-height:88dvh}#lobby-dialog h2{margin:13px 0 8px;font-size:29px}#lobby-dialog>p{font-size:12px;margin:0 0 16px}
#lobby-tables{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}.lobby-modal-table{padding:15px;border:2px solid #d6deca;border-radius:10px;background:#f4f5eb;min-width:0}.lobby-modal-table>div{display:flex;flex-direction:column;gap:7px}.lobby-modal-table strong{font:20px Georgia,serif;color:#24503c}.lobby-modal-table span{font-size:11px;color:#748168}.lobby-modal-table p{font-size:11px;margin:12px 0}.lobby-modal-table .button{width:100%;font-size:11px;justify-content:center}
@media(max-width:720px){.table-navigation{gap:5px;padding:4px 6px}.show-lobby{font-size:9px;padding:6px 8px;min-height:32px}.table-tab{min-width:96px;padding:4px 7px}.table-tab strong{font-size:10px}.table-tab span{font-size:8px}#lobby-dialog{padding:17px}#lobby-tables{grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:8px}.lobby-modal-table{padding:11px}}
@media(max-height:500px) and (min-width:600px){.table-navigation{padding:2px 8px}.table-tab{padding:3px 8px;flex-direction:row;align-items:center;gap:7px}.table-tab span{font-size:8px}.show-lobby{min-height:26px;padding:4px 8px}}
@media(prefers-reduced-motion:reduce){.table-tab.needs-turn,.lobby-modal-table.needs-turn{animation:none;background:#ffe5d9}}

/* A wider visible discard box is also the full drag-and-drop target. */
body.in-room .active-room .playing-felt{--discard-target-width:112px;grid-template-columns:minmax(0,1fr) 132px minmax(0,1fr)}
body.in-room .playing-felt .discard-pile{width:var(--discard-target-width);flex-shrink:0;padding:4px 6px;gap:4px;border:1px dashed #d1c49199;border-radius:9px;background:#ffffff08}
body.in-room .playing-felt .discard-toggle{width:100%;display:grid;place-items:center}
body.in-room .playing-felt .discard-pile .empty-pile{width:100%;border:0}
@media(max-width:720px){body.in-room .active-room .playing-felt{--discard-target-width:72px;grid-template-columns:minmax(0,1fr) 84px minmax(0,1fr)}}
@media(max-height:500px) and (min-width:600px){body.in-room .active-room .playing-felt{--discard-target-width:96px;grid-template-columns:minmax(0,1fr) 160px minmax(0,1fr)}}

/* Shared account menu and help page. */
.topbar{position:relative;z-index:60}.account-menu{position:relative;flex:0 0 auto}.profile{cursor:pointer}.profile:focus-visible{outline:2px solid #b99a51;outline-offset:5px;border-radius:4px}
.account-dropdown[hidden]{display:none}.account-dropdown{position:absolute;right:0;top:calc(100% + 13px);z-index:100;min-width:170px;display:flex;flex-direction:column;padding:7px;background:#fffdf5;border:1px solid #d3d8c8;border-radius:10px;box-shadow:0 12px 32px #173f3433}
.account-dropdown a,.account-dropdown button{display:block;width:100%;border:0;border-radius:5px;padding:11px 14px;text-align:left;text-decoration:none;font:13px Arial,sans-serif;color:#234d39;background:transparent;cursor:pointer}.account-dropdown a:hover,.account-dropdown button:hover,.account-dropdown [role="menuitem"]:focus-visible{background:#e9eedf;outline:0}.account-dropdown [data-logout]{border-top:1px solid #e3e5d9;border-radius:0;color:#a33d37;margin-top:3px;padding-top:13px}
.account-question .swal2-title{font:28px Georgia,serif;color:#234b38}.account-question .swal2-html-container{font-size:14px;line-height:1.7;color:#73816a}.account-question .swal2-actions{gap:10px}.account-question .swal2-actions .button{font-size:12px;min-height:40px}.account-page .topbar nav{display:flex;align-items:center;gap:14px}
.help-layout{width:min(1200px,calc(100% - 40px));margin:30px auto 45px}.help-heading h1{font:36px Georgia,serif;margin:10px 0 24px;color:#234b38}.help-columns{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:28px;align-items:start}.help-instructions,.help-contact{min-width:0;padding:25px;background:#fffdf5;border:1px solid #d9dfce;border-radius:13px}.help-columns h2{font:27px Georgia,serif;color:#234b38;margin:0 0 16px}.help-instructions .rules-content{max-height:calc(100dvh - 250px);min-height:260px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-right:14px}.help-instructions .rules-content h3:first-child{margin-top:14px}.help-instructions .rules-content p:first-child{margin-top:0}.help-contact>p{font-size:13px;line-height:1.7;color:#78866f;margin:8px 0 20px}.help-contact h2{margin:10px 0}.help-contact form{display:flex;flex-direction:column}.help-contact label{font-size:12px;font-weight:600;margin:16px 0 7px}.help-contact label:first-child{margin-top:0}.help-contact input,.help-contact textarea{width:100%;padding:12px;border:1px solid #cbd3c3;border-radius:7px;background:#fff;color:#254c39;font:14px Arial,sans-serif;outline-color:#ad9356}.help-contact input[readonly]{background:#eff1e7;color:#7b876e;cursor:default}.help-contact textarea{resize:vertical;min-height:150px;max-height:380px;line-height:1.6}.help-contact small{font-size:10px;color:#839078;line-height:1.6;margin-top:6px}.help-contact .form-feedback{font-size:12px;line-height:1.6;margin:14px 0}.help-contact .button{justify-content:center;min-height:43px}
@media(max-width:860px){.help-layout{width:calc(100% - 28px);margin-top:24px}.help-heading h1{font-size:30px}.help-columns{grid-template-columns:minmax(0,1fr);gap:18px}.help-instructions,.help-contact{padding:20px}.help-instructions .rules-content{max-height:330px;min-height:0}.account-page .topbar nav{gap:7px}.account-page .topbar nav>.button{font-size:10px;padding:6px 7px}.account-question .swal2-actions{flex-wrap:wrap}}

.help-contact button[type="submit"]{margin-top:14px}

/* Premium plans and subscription controls. */
.premium-layout{width:min(1120px,calc(100% - 32px));margin:35px auto 45px}.premium-intro{text-align:center;margin-bottom:25px}.premium-intro h1{font:40px Georgia,serif;color:#244d38;margin:12px 0}.premium-intro p{color:#7c8b70;font-size:15px;line-height:1.7}.premium-availability{padding:15px 20px;border:1px solid #d7dabb;background:#f0f0dd;border-radius:9px;font-size:13px;color:#6c784f;line-height:1.7}.premium-plans{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:25px}.premium-plan{padding:28px 23px;background:#fffdf5;border:1px solid #d5ddc6;border-top:4px solid #b6a366;border-radius:13px;display:flex;flex-direction:column}.premium-plan h2{font:43px Georgia,serif;color:#244d38;margin:22px 0 2px}.premium-plan .plan-period{font-size:12px;color:#78896d;margin:4px 0 17px}.premium-plan ul{padding-left:18px;margin:10px 0 18px;font-size:13px;line-height:2;color:#6f8262;flex:1}.plan-renewal{font-size:11px;line-height:1.8;color:#859075;margin-bottom:18px}.premium-plan>.button{justify-content:center;font-size:12px}.premium-explanation{max-width:800px;margin:30px auto 0;text-align:center}.premium-explanation h2{font:28px Georgia,serif;color:#244d38}.premium-explanation p{font-size:13px;line-height:1.9;color:#7d8b71}.premium-teaser{display:block;margin-top:8px!important}.premium-teaser a{font-weight:bold;color:#f0d690;text-decoration:underline}.premium-state{color:#244d38;font-weight:bold}#premium-status p{font-size:13px;line-height:1.8;color:#738469}#premium-status .button{font-size:11px;margin:7px 5px 0 0}.waiting-choice .button{font-size:12px}
@media(max-width:760px){.premium-plans{grid-template-columns:minmax(0,1fr);gap:15px}.premium-intro h1{font-size:32px}.premium-plan{padding:23px}.premium-plan h2{font-size:38px;margin-top:14px}.premium-layout{margin-top:26px}}
.help-contact #support-form[hidden],.help-contact #support-success[hidden],.help-contact [hidden]{display:none}
.support-success{padding:14px 0;outline:0}.support-success h2{color:#285c3c}.support-success p{font-size:14px;line-height:1.8;color:#738469}

/* gioca in regular type, burraco in bold; the card emblem is shared with the favicon. */
.brand{letter-spacing:-1.4px}.brand-wordmark{font-weight:400;white-space:nowrap;line-height:1}.brand-wordmark strong{font-weight:700}.brand-icon{background:transparent;border-radius:0;flex-shrink:0}.brand-icon img{display:block;width:100%;height:100%;object-fit:contain}.brand small{line-height:1.4}
@media(max-width:720px){.topbar{gap:12px}.brand{font-size:25px;gap:7px;letter-spacing:-1px}.brand-icon{width:32px;height:36px}.brand small{font-size:6px;letter-spacing:1.7px}}
@media(max-width:370px){.brand{font-size:22px;gap:5px}.brand-icon{width:27px;height:32px}body.in-room .brand{font-size:21px;letter-spacing:-1px}}
.return-label-short{display:none}
@media(max-width:720px){.return-label-full{display:none}.return-label-short{display:inline}.return-to-room{white-space:nowrap}}
