:root{--ivory:#f6efdf;--muted:#c0b89f;--gold:#d6b36b;--green:#123f32;--ink:#192e28}*{box-sizing:border-box}body{margin:0;color:var(--ivory);background:#1b1915;font-family:Arial,Helvetica,sans-serif;background-image:repeating-linear-gradient(92deg,transparent 0 60px,#ffffff02 61px 62px)}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer;min-height:44px;border:1px solid #cdb68055;background:#ffffff08;color:var(--ivory);border-radius:6px;padding:11px 18px;transition:background .18s,transform .18s}button:hover{background:#ffffff14}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--gold);outline-offset:3px}a{color:inherit}.primary{background:var(--gold);color:#202a20;border-color:var(--gold);font-weight:700}.primary:hover{background:#e7c784}.primary span{margin-left:30px}.masthead{height:100px;border-bottom:1px solid #dbc39022;display:flex;align-items:center;justify-content:space-between;padding:0 5vw;gap:20px}.brand{text-decoration:none;font-family:Georgia,serif;font-size:39px;letter-spacing:-2px;display:flex;align-items:center;gap:12px}.brand small{display:block;font:9px Arial,sans-serif;letter-spacing:2.5px;margin-top:5px}.brand-seal{border:1px solid var(--gold);border-radius:50%;width:45px;height:45px;text-align:center;line-height:43px;font-size:30px;color:var(--gold)}.connection{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:7px}.connection i{width:6px;height:6px;border-radius:50%;background:#b68b53}.connection i.online{background:#91bb91}.profile-chip{font-size:12px}.eyebrow{font-size:10px;letter-spacing:3px;color:var(--gold);font-weight:bold}.lobby{max-width:1280px;margin:auto;padding:48px 5vw}.intro{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:45px;min-height:350px}.intro h1{font:normal clamp(40px,5vw,68px)/1.05 Georgia,serif;letter-spacing:-2px;margin:22px 0}.intro h1 em{color:var(--gold);font-weight:normal}.intro p{font-size:14px;line-height:1.8;max-width:360px;color:var(--muted)}.hero-table{height:300px;border-radius:50%;background:radial-gradient(ellipse,#226047,#103629);box-shadow:0 0 0 10px #38291e,0 0 0 11px #7c6245,0 20px 40px #0007;position:relative;border:2px solid #d9bc7822;display:flex;justify-content:center;align-items:center;transform:rotate(-6deg)}.hero-table:before{content:"CIRCOLO";position:absolute;top:32px;font:12px Georgia,serif;letter-spacing:6px;color:#e4cd8e55}.hero-table .card{width:88px;height:126px;margin:-10px;transform:rotate(var(--rotate));box-shadow:1px 8px 16px #0008;pointer-events:none}.hero-table .card:nth-child(2){margin-top:-35px}.section-bar{display:flex;align-items:center;justify-content:space-between;margin:36px 0 20px;gap:15px;border-top:1px solid #d7bd852a;padding-top:28px}.section-bar h2{font:normal 28px Georgia,serif;margin:0}.subtle{color:var(--muted);font-size:12px}.lobby-columns{display:grid;grid-template-columns:1fr 330px;gap:30px}.tables{display:flex;flex-direction:column;gap:10px}.table-row{border:1px solid #d7bd8530;border-radius:8px;padding:20px;display:flex;align-items:center;justify-content:space-between;gap:15px;background:#ffffff03}.table-row h3{font:normal 22px Georgia,serif;margin:0 0 8px}.table-row small{color:var(--muted)}.empty{padding:35px 20px;border:1px dashed #d7bd8530;border-radius:8px;color:var(--muted);text-align:center;line-height:1.7;font-size:14px}.form-panel{background:#282820;border:1px solid #d7bd8530;border-radius:8px;padding:22px}.form-panel h3{font:normal 24px Georgia,serif;margin:0 0 20px}label{display:block;font-size:12px;color:var(--muted);margin:16px 0}input,select{display:block;width:100%;margin-top:8px;border:1px solid #d7bd8540;border-radius:5px;padding:12px;color:var(--ivory);background:#141e18;min-height:44px}.form-panel .primary{width:100%}.join-form{margin-top:20px}.join-form div{display:flex;gap:8px}.join-form input{margin:0;min-width:0;text-transform:uppercase}.future-games{display:flex;gap:20px;margin-top:35px;flex-wrap:wrap;color:#a49d88;font:18px Georgia,serif}.future-games span small{font:9px Arial,sans-serif;display:inline-block;margin-left:8px;text-transform:uppercase;letter-spacing:1px}.table-shell{max-width:1500px;margin:0 auto;padding:20px 3vw}.table-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}.table-toolbar h1{font:normal 25px Georgia,serif;margin:0}.toolbar-buttons{display:flex;gap:7px}.toolbar-buttons button{padding:8px 12px;font-size:12px}.table-layout{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:22px}.felt{border:8px solid #403024;border-radius:100px;background:radial-gradient(ellipse at 50% 30%,#205540,#103b2e 65%);box-shadow:0 0 0 1px #8c6b45,inset 0 0 70px #0004,0 12px 30px #0003;min-height:460px;padding:20px 28px;position:relative}.seat{display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px}.seat .avatar{width:32px;height:32px;border-radius:50%;border:1px solid #c5b57d6b;display:grid;place-items:center;color:var(--gold);background:#102c23}.seat.active .avatar{box-shadow:0 0 0 3px #d6b36b66}.seat small{display:block;font-size:9px;color:#bcbda5;margin-top:3px}.opponents{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}.piles{display:flex;align-items:center;justify-content:center;gap:30px;margin:32px 0 23px}.pile{display:flex;flex-direction:column;align-items:center;gap:8px}.pile small{color:#cad0b7;font-size:10px}.card{display:inline-flex;position:relative;width:65px;height:92px;flex-shrink:0;background:linear-gradient(135deg,#fffaf0,#e9e2d3);color:#202c28;border:1px solid #d4cbb6;border-radius:6px;padding:6px;text-align:left;box-shadow:0 3px 5px #0003;font-family:Georgia,serif;line-height:1;user-select:none;min-height:0}.card.red{color:#a43136}.card .corner{font-size:18px;display:flex;flex-direction:column;gap:2px}.card .corner small{font-size:15px}.card .pip{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:31px}.card .bottom{position:absolute;right:6px;bottom:6px;transform:rotate(180deg);font-size:13px}.card.back{background:repeating-linear-gradient(45deg,#253f62 0 3px,#324f70 3px 5px);border:4px solid #ede5d5;outline:1px solid #c8bfa8}.card.back:after{content:'♣';position:absolute;inset:7px;border:1px solid #cec4a777;display:grid;place-items:center;font-size:30px;color:#e8ddb9}.pile .card{width:64px;height:89px}.table-mark{font:11px Georgia,serif;color:#d6c48a55;text-align:center;letter-spacing:5px;margin:8px}.meld-areas{display:grid;grid-template-columns:1fr 1fr;gap:20px}.meld-area h3{font-size:10px;font-weight:normal;text-transform:uppercase;letter-spacing:1.4px;color:#c8cbb5;margin:0 0 10px}.meld-list{min-height:75px;display:flex;flex-wrap:wrap;gap:9px}.meld{display:flex;position:relative;padding-bottom:16px}.meld .card{width:38px;height:55px;margin-right:-22px;padding:3px;border-radius:3px}.meld .card:last-of-type{margin-right:0}.meld .card .corner{font-size:12px}.meld .card .corner small{font-size:9px}.meld .card .pip{font-size:18px}.meld .card .bottom{display:none}.meld-label{position:absolute;bottom:0;font-size:9px;white-space:nowrap;color:#dbcc9c}.empty-meld{font:italic 13px Georgia,serif;color:#9db39e;align-self:center}.self-seat{margin-top:20px}.score-panel{border:1px solid #d7bd8533;background:#252720;border-radius:8px;padding:20px;height:fit-content}.score-panel h2{font:normal 24px Georgia,serif;margin:0 0 20px}.score{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #d7bd8525;padding:15px 0;font-size:12px}.score strong{font:28px Georgia,serif;color:var(--gold)}.score-panel p{color:var(--muted);font-size:12px;line-height:1.65}.turn-note{padding:12px 0;text-align:center;font-size:13px;color:var(--gold);min-height:44px}.hand-section{margin-top:8px}.hand-heading{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:11px;margin:10px 0}.hand{display:flex;justify-content:center;gap:7px;padding:15px 5px 10px;overflow-x:auto;min-height:120px;scrollbar-width:thin;scrollbar-color:#b59455 #24251e}.hand .card:hover{transform:translateY(-5px)}.hand .card.selected{transform:translateY(-12px);outline:3px solid var(--gold);box-shadow:0 8px 15px #0006}.actions{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;padding-top:10px}.actions button{font-size:12px}.hint{text-align:center;color:var(--muted);font-size:11px;line-height:1.6}.waiting{padding:35px 20px;text-align:center}.waiting h2{font:normal 36px Georgia,serif}.waiting .seats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin:40px 0}.waiting .seat{border:1px solid #d7bd8533;padding:22px;border-radius:8px}.round-banner{background:#d6b36b;color:#1b2c22;padding:18px;border-radius:7px;text-align:center}.round-banner h2{font:normal 30px Georgia,serif;margin:0 0 10px}.round-banner p{font-size:13px;line-height:1.6}.round-banner button{color:#193829;border-color:#19382966}footer{max-width:1280px;margin:40px auto 0;padding:25px 5vw;border-top:1px solid #d7bd8522;display:flex;justify-content:space-between;font-size:9px;letter-spacing:2px;color:#9c957f}footer span{letter-spacing:0}dialog{max-width:460px;width:calc(100% - 30px);border:1px solid #b9985d;background:#252820;border-radius:12px;padding:32px;color:var(--ivory);box-shadow:0 20px 100px #0008}dialog::backdrop{background:#07130edb;backdrop-filter:blur(5px)}dialog h2{font:normal 32px Georgia,serif}dialog p,dialog li{font-size:13px;line-height:1.75;color:var(--muted)}dialog ul{padding-left:20px}dialog .primary{width:100%;margin-top:14px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#f0e4c9;color:#26372b;box-shadow:0 6px 35px #0008;border-radius:6px;padding:15px 22px;max-width:90vw;font-size:13px;z-index:5;display:none}.loading{text-align:center;padding:100px 20px;font:24px Georgia,serif}
@media(max-width:900px){.table-layout{grid-template-columns:1fr}.score-panel{display:flex;gap:20px;align-items:center;padding:12px 18px}.score-panel h2{font-size:18px;margin:0}.score{border:0;padding:0;gap:10px}.score strong{font-size:24px}.score-panel p{margin:0;flex:1}.lobby-columns{grid-template-columns:1fr 300px}.intro{gap:30px}.hero-table{height:245px}.hand{justify-content:flex-start}.table-shell{padding:18px 20px}}
@media(max-width:600px){.masthead{height:82px;padding:0 20px;gap:10px}.brand{font-size:31px}.brand-seal{width:36px;height:36px;line-height:34px;font-size:25px}.brand small{font-size:7px;letter-spacing:1.8px}.connection{font-size:0}.connection i{width:7px;height:7px}.profile-chip{padding:8px 10px;font-size:11px;max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lobby{padding:32px 24px}.intro{grid-template-columns:1fr;gap:20px}.intro h1{font-size:46px;margin:18px 0}.intro p{font-size:13px}.hero-table{height:210px;margin:15px 9px 20px}.hero-table .card{width:75px;height:108px}.lobby-columns{grid-template-columns:1fr}.section-bar{margin-top:25px}.section-bar h2{font-size:25px}.section-bar .subtle{font-size:10px;max-width:100px;text-align:right}.table-row{padding:17px}.table-row h3{font-size:20px}.future-games{font-size:17px;gap:18px}.table-shell{padding:15px 12px}.table-toolbar{align-items:flex-start}.table-toolbar h1{font-size:22px}.toolbar-buttons{gap:4px}.toolbar-buttons button{font-size:10px;padding:8px}.table-layout{gap:12px}.felt{border-width:5px;border-radius:38px;padding:16px 12px;min-height:400px}.opponents{gap:4px}.seat{font-size:10px;gap:4px}.seat .avatar{width:25px;height:25px}.seat small{font-size:8px}.piles{margin:27px 0 20px;gap:24px}.meld-areas{gap:10px}.meld-area h3{font-size:9px;letter-spacing:.5px}.meld-list{gap:7px}.meld .card{width:31px;height:48px;margin-right:-20px}.meld .card .pip{font-size:15px}.meld .card .corner{font-size:10px}.score-panel{gap:13px;padding:12px;flex-wrap:wrap}.score-panel h2{font-size:18px}.score{font-size:10px;gap:8px}.score strong{font-size:22px}.score-panel p{flex-basis:100%;font-size:11px}.hand{gap:6px;min-height:120px}.hand .card{width:61px;height:88px}.actions{gap:6px}.actions button{padding:10px 12px;font-size:11px;flex:1;white-space:nowrap}.actions button.primary{flex-basis:32%}.waiting{padding:15px 3px}.waiting .seats{grid-template-columns:1fr 1fr;gap:10px;margin:25px 0}.waiting .seat{padding:20px 8px}.waiting h2{font-size:30px}footer{font-size:8px;letter-spacing:1px;padding:20px 24px}footer span{max-width:100px;text-align:right}.table-mark{font-size:9px}.turn-note{font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
/* Intrinsic widths must never stretch the document; only card hands may scroll. */
main,.lobby,.table-shell,.table-layout,.table-layout>div,.play-column,.felt,.hand-section,.hand,.meld-areas,.meld-area,.meld-list,.lobby-columns,.lobby-columns>*{min-width:0;max-width:100%}.table-layout{grid-template-columns:minmax(0,1fr) 240px}.table-toolbar{flex-wrap:wrap}.toolbar-buttons{flex-wrap:wrap}.meld-list{overflow-x:auto}.hand{width:100%;scroll-padding:15px}.turn-note{border:1px solid #d6b36b44;background:#d6b36b0a;border-radius:7px;margin:10px 0 15px;padding:12px;line-height:1.5}.turn-note.your-turn{color:#fff1be;background:#d6b36b22;border-color:#d6b36b}.compact-score{display:flex;gap:24px;align-items:center;justify-content:center;font-size:12px;padding:10px 16px;border-block:1px solid #d6b36b33}.compact-score strong{font:24px Georgia,serif;color:var(--gold);margin-left:8px}.compact-score small{color:var(--muted)}.team-tag{display:block;text-align:center;font-size:8px;letter-spacing:1px;color:var(--gold);margin-top:5px}.opponents-1{grid-template-columns:1fr}.opponents>div{min-width:0}.seat>span:last-child{min-width:0;overflow-wrap:anywhere}.game-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:25px 0}.game-choice{padding:18px;text-align:left;position:relative}.game-choice strong{display:block;font:23px Georgia,serif;margin-bottom:10px}.game-choice small{font-size:11px;color:var(--muted);line-height:1.6;display:block}.game-choice.selected-game{border-color:var(--gold);background:#d6b36b16}.game-choice .game-number{display:block;font-size:10px;color:var(--gold);letter-spacing:2px;margin-bottom:18px}.board-heading{display:flex;justify-content:space-between;gap:10px;font-size:10px;letter-spacing:1px;color:#d5d9c4;margin:18px 0 12px}.table-cards{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;min-height:110px;align-content:center}.trick-cards{display:flex;justify-content:center;gap:18px;min-height:130px;align-items:center;flex-wrap:wrap}.trick-play{display:flex;flex-direction:column;align-items:center;gap:8px}.trick-play>small{font-size:10px;max-width:75px;text-align:center}.previous-trick{opacity:.7}.last-move{text-align:center;font-size:11px;color:#d5d9c4;line-height:1.5}.trump-strip{display:flex;justify-content:center;align-items:center;gap:18px;margin:15px 0;color:var(--gold);font-size:10px;letter-spacing:1px}.trump-card .card{width:44px;height:64px}.trump-card .pip{font-size:22px}.trump-strip small{line-height:1.7;letter-spacing:0;color:var(--muted)}.capture-score{display:flex;flex-direction:column;gap:8px;font-size:12px;padding:15px 0;border-bottom:1px solid #d7bd8530}.capture-score span{color:var(--muted);line-height:1.5}.cannot-follow{opacity:.55}.selection-hint{font-size:11px;color:var(--muted);line-height:1.5;align-self:center;max-width:460px}.side-felt{min-height:360px}.dialog-actions{display:flex;gap:10px;margin-top:20px}.dialog-actions .primary{margin:0;width:auto;flex:1}.capture-options{display:flex;flex-direction:column;gap:12px}.capture-option{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px}.capture-option .card{width:48px;height:70px}.waiting .seats-2{grid-template-columns:repeat(2,minmax(0,1fr));max-width:650px;margin-inline:auto}.meld-summary{font-size:12px;color:var(--ivory);display:block;min-height:44px;padding:10px;border:1px solid #d6b36b55;border-radius:6px;cursor:pointer;list-style:none}.meld-summary strong{font:21px Georgia,serif;color:var(--gold);margin-right:8px}.meld-details{min-width:100px;max-width:100%}.meld-details[open] .meld{padding-top:8px}.meld-summary small{display:block;font-size:9px;line-height:1.8;color:var(--muted)}.mini-progress{display:block;width:100%;height:3px;background:#d6b36b22;margin-top:7px}.mini-progress i{height:100%;display:block;background:var(--gold)}.seat.you .avatar{border-color:var(--gold)}.card.selected:after{content:'✓';position:absolute;top:4px;right:4px;background:#b58d43;border-radius:50%;font:bold 12px Arial;color:#fff;width:16px;height:16px;display:grid;place-items:center}.replacement-notice{padding:10px 14px;color:#e5cb92;font-size:12px;background:#d6b36b11;border:1px solid #d6b36b33;border-radius:6px;margin-bottom:10px}.replace-player{padding:5px 8px;font-size:10px;min-height:36px;margin:5px auto;display:block}
@media(max-width:900px){.table-layout{grid-template-columns:minmax(0,1fr)}.side-score{display:flex;flex-wrap:wrap}.capture-score{border:0;padding:3px 0;flex:1}.game-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.lobby-columns{grid-template-columns:minmax(0,1fr) 280px}}
@media(max-width:650px){.lobby-columns{grid-template-columns:minmax(0,1fr)}.table-layout{grid-template-columns:minmax(0,1fr)}.table-toolbar{gap:12px}.toolbar-buttons{width:100%;justify-content:flex-start}.table-toolbar h1{font-size:23px}.felt{border-radius:28px;min-height:270px;padding:12px 10px}.opponents{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.opponents-1{grid-template-columns:1fr}.seat{font-size:10px;flex-direction:column;text-align:center;gap:4px}.seat small{font-size:8px}.seat .avatar{width:24px;height:24px}.piles{margin:15px 0;gap:25px}.piles .card{width:48px;height:68px}.pile small{font-size:9px}.meld-list{flex-wrap:nowrap;min-height:52px}.meld-area h3{font-size:9px;line-height:1.5;margin-bottom:6px}.meld-areas{gap:8px}.self-seat{margin-top:12px}.self-seat .seat{flex-direction:row}.table-mark{display:none}.hand-heading{margin:8px 0 0}.hand{padding-top:17px;min-height:114px;max-height:125px}.hand .card{width:61px;height:88px}.actions{position:sticky;bottom:0;z-index:3;background:#20261ff5;backdrop-filter:blur(10px);padding:9px 5px calc(9px + env(safe-area-inset-bottom));border-top:1px solid #d6b36b44;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;border-radius:8px}.actions button{white-space:normal;width:100%;padding:10px 8px;min-height:44px;font-size:11px}.hand-section{display:contents}.play-column,.table-layout>div{display:flex;flex-direction:column}.table-layout .hand{flex:none}.turn-note{font-size:12px;margin:8px 0;padding:9px}.hint{font-size:10px;margin:6px 0}.compact-score{justify-content:space-between;padding:7px 2px;gap:12px;flex-wrap:wrap;font-size:11px}.compact-score strong{font-size:21px;margin-left:5px}.compact-score small{font-size:9px}.selection-hint{grid-column:1/-1;font-size:10px;text-align:center}.actions #play-card{grid-column:1/-1}.side-felt{min-height:250px}.table-cards{gap:6px;min-height:85px}.table-cards .card{width:48px;height:70px}.board-heading{margin:13px 0 8px;font-size:9px}.trick-cards{min-height:105px;gap:12px}.trick-cards .card{width:50px;height:72px}.trick-play{gap:5px}.trick-play>small{font-size:9px;max-width:60px}.trump-strip{margin:8px 0;gap:13px}.last-move{font-size:10px;margin:5px 0}.side-score{font-size:11px}.game-picker{gap:8px;margin:20px 0}.game-choice{padding:15px 12px}.game-choice strong{font-size:21px}.game-choice .game-number{margin-bottom:10px}.intro{min-height:0}.intro h1{font-size:39px}.intro p{margin-bottom:8px}.hero-table{display:none}.lobby{padding:24px 20px}.section-bar{margin:20px 0 15px}.meld-summary{min-width:85px;padding:8px}.meld-summary strong{font-size:18px}.table-row{flex-wrap:wrap}.table-row button{flex:1}.score-panel{order:0}.masthead{padding-inline:14px}.brand small{letter-spacing:1px}}
.lobby-columns{grid-template-columns:330px minmax(0,1fr)}.intro{min-height:280px}.intro h1{font-size:58px}.hero-table{height:240px}.section-bar{margin-top:0}.game-choice.selected-game:after{content:'✓';position:absolute;right:10px;top:10px;color:var(--gold)}.art-face{pointer-events:none}.corner img,.bottom img{width:15px;height:15px;object-fit:contain;vertical-align:middle}.bottom img{width:11px;height:11px}.side-score{align-items:stretch}.cannot-follow .corner{opacity:.7}.card{overflow:hidden}.replace-player{min-height:44px}.round-banner button{margin:4px}.card.selected{overflow:visible}.card.selected:after{z-index:5}.meld-details .card{overflow:hidden}.table-shell .eyebrow{line-height:1.5}
@media(max-width:900px){.lobby-columns{grid-template-columns:280px minmax(0,1fr)}.intro h1{font-size:46px}.game-choice{min-height:110px}.table-layout{width:100%}}
@media(max-width:650px){.lobby-columns{grid-template-columns:minmax(0,1fr)}.intro h1{font-size:38px;margin:12px 0}.intro p{font-size:13px}.game-choice{min-height:114px}.game-choice strong{font-size:20px}.game-choice small{font-size:10px}.lobby-columns .tables{margin-top:12px}.masthead{gap:8px}.brand{font-size:29px}.brand-seal{display:none}.brand small{font-size:7px}.profile-chip{max-width:115px}.table-toolbar{margin-bottom:8px}.table-toolbar .eyebrow{font-size:9px}.table-toolbar h1{font-size:21px}.toolbar-buttons button{min-height:44px;font-size:11px}.score-panel p{font-size:10px}.side-score .capture-score{font-size:10px}.side-score h2{width:100%;margin:0}.table-shell{padding-bottom:0}.game-tressette .hand .card{width:56px;height:82px}.meld-summary small{font-size:9px}.board-heading{font-size:9px}.card .corner{font-size:20px}.corner img{width:15px;height:15px}.piles .card .corner{font-size:15px}.pile .card .corner small{font-size:13px}.card .bottom{font-size:12px}.hand .card .bottom{right:4px;bottom:4px}.side-felt .self-seat{margin-top:8px}.side-felt .board-heading{margin-top:12px}.hand-heading{font-size:10px}.turn-note{position:relative}.game-scopa .hand,.game-bisca .hand{justify-content:center}.game-tressette .hand{justify-content:flex-start}.hint br{display:none}.waiting .seats{grid-template-columns:repeat(2,minmax(0,1fr))}.dialog-actions{flex-wrap:wrap}.capture-option{min-height:95px;flex-wrap:wrap}}
button.card:hover,button.card:active{background:linear-gradient(135deg,#fffaf0,#e9e2d3)}
@media(max-width:650px){
 .in-game .masthead{height:55px}.in-game .brand{font-size:27px}.in-game .brand small{display:none}.in-game footer{display:none}.in-game .table-shell{padding:8px 12px 0}.in-game .table-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;min-height:44px;margin-bottom:5px}.in-game .table-toolbar .eyebrow{display:none}.in-game .table-toolbar h1{font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.in-game .toolbar-buttons{width:auto;flex-wrap:nowrap;gap:4px}.in-game .toolbar-buttons button{font-size:10px;padding:8px;min-height:44px}.compact-score{min-height:38px;padding-block:4px;gap:5px}.compact-score small{font-size:8px}.compact-score strong{font-size:20px}.turn-note{min-height:44px;margin:6px 0 8px;padding:9px 6px}.felt{min-height:0;padding:10px;border-radius:25px}.felt .self-seat{display:none}.opponents .seat{gap:3px}.opponents .avatar{width:20px;height:20px}.opponents .seat small{font-size:8px}.opponents .team-tag{font-size:7px;margin-top:3px}.piles{margin:11px 0 13px;gap:26px}.piles .card{width:45px;height:63px}.pile small{font-size:8px}.meld-list{min-height:45px;padding-bottom:2px}.meld-summary{padding:7px;min-height:60px;min-width:82px}.meld-area h3{font-size:8px}.meld-summary strong{font-size:17px}.meld-summary small{font-size:8px}.hand-section{display:block;position:sticky;bottom:0;z-index:4;background:#1e211bf5;backdrop-filter:blur(10px);margin-top:8px;padding-top:1px;border-radius:8px;box-shadow:0 -4px 15px #0002}.hand-section .hand{height:113px;max-height:none;padding-top:17px;padding-bottom:8px}.hand-heading{padding-inline:4px;margin:7px 0 0;min-height:16px}.actions{position:static;bottom:auto;padding:7px 5px calc(7px + env(safe-area-inset-bottom));border:0;backdrop-filter:none;background:transparent}.hand-section .hint{display:none}.play-column,.table-layout>div{position:relative}.selection-hint{padding:0 5px}.side-felt{min-height:0}.side-felt .trick-cards{min-height:100px}.side-felt .board-heading{margin-top:12px}.side-felt .last-move{margin:4px 0;font-size:9px}.game-bisca .trick-board{margin-right:77px;min-height:153px}.game-bisca .trump-strip{position:absolute;right:10px;top:76px;width:65px;flex-direction:column;gap:5px;margin:0;padding-left:7px;border-left:1px solid #d6b36b33;letter-spacing:0}.game-bisca .trump-strip>span{font-size:8px;text-align:center}.game-bisca .trump-card .card{width:34px;height:49px}.game-bisca .trump-strip small{font-size:8px;text-align:center}.game-bisca .trump-card .corner{font-size:12px}.game-bisca .trump-card .bottom{font-size:8px}.game-bisca .trump-card .art-suit{width:8px;height:8px}.game-bisca .trump-card .art-face{inset:10px 7px 8px}.side-score{margin-top:4px}.replacement-notice{margin:5px 0;font-size:10px;padding:8px}.replace-player{white-space:normal!important}.toolbar-buttons:has(.replace-player){flex-wrap:wrap}
}
@media(max-width:650px){.in-game .table-toolbar .eyebrow{display:block;font-size:8px;letter-spacing:1px;max-width:105px}.in-game .table-toolbar h1{font-size:14px}.game-scopa .table-cards{max-height:176px;overflow-y:auto;padding:4px}.game-scopa .table-cards .card{pointer-events:none}.game-picker{margin-top:16px}}
.quick-start{display:flex;justify-content:center;gap:12px;margin:0 0 28px}.quick-start .primary{min-height:48px}.quick-start #custom-table{font-size:12px}@media(max-width:650px){.quick-start{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin:0 0 24px}.quick-start .primary{width:100%;font-size:13px}.quick-start #custom-table{border-color:transparent;min-height:44px}.game-choice{min-height:108px}.intro h1{font-size:35px}.intro p{font-size:12px;line-height:1.6}.game-picker{margin-bottom:14px}}
.card-credits{margin-top:20px;padding-top:12px;border-top:1px solid #d6b36b33;font-size:11px;color:var(--muted)}.card-credits summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:var(--gold)}.card-credits p{font-size:11px;line-height:1.6}.card-credits a{color:#e0c086;text-underline-offset:2px}
/* Physical proportions of the final licensed decks; never crop full figures. */
.card:has(.art-card-image){height:auto!important;aspect-ratio:5/7;align-self:center}.card:has(.art-card-spanish){aspect-ratio:208/319}.previous-trick{opacity:1}
@media(max-width:650px){.hand:has(.art-card-spanish){height:122px;min-height:122px;max-height:122px}.game-tressette .hand:has(.art-card-spanish){height:114px;min-height:114px;max-height:114px}.table-cards .card:has(.art-card-spanish){width:48px}.trick-cards .card:has(.art-card-spanish){width:50px}.trump-card .card:has(.art-card-spanish){width:34px}}
@media(max-width:650px){.hand .card:has(.art-card-spanish){width:70px}.hand:has(.art-card-spanish){height:138px;min-height:138px;max-height:138px}.game-tressette .hand .card:has(.art-card-spanish){width:66px}.game-tressette .hand:has(.art-card-spanish){height:128px;min-height:128px;max-height:128px}.table-cards .card:has(.art-card-spanish){width:54px}.trick-cards .card:has(.art-card-spanish){width:54px}}
.meld-details{flex:0 0 auto}.meld-scroll-hint{display:block;text-align:right;font-size:9px;color:#e3cc92;line-height:1.6;margin-top:3px}.meld-scroll-hint[hidden]{display:none}.meld-list{scrollbar-width:thin;scrollbar-color:#b59455 #14382b;scroll-padding:4px}.meld-list:focus-visible{outline:2px solid var(--gold);outline-offset:3px}@media(max-width:650px){.meld-scroll-hint{font-size:8px}}
/* iPhone/WebKit: touch targets and focus must remain usable without auto-zoom. */
button,.toolbar-buttons button,#leave,.replace-player{min-width:44px;min-height:44px}
@media(max-width:650px){input,select,textarea{font-size:16px}.toolbar-buttons button,#leave{min-width:44px}.in-game .table-toolbar{grid-template-columns:minmax(0,1fr) auto}}
/* Per-table Tressette rules and public declarations. */
.lobby-tressette-config,.room-rules{border:1px solid #d6b36b40;background:#252820;border-radius:8px;padding:18px;margin:0 0 20px}.config-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:12px;align-items:start}.config-grid label{margin:10px 0}.config-grid label>small{display:block;line-height:1.5;font-size:10px;margin-top:7px}.config-grid input[readonly]{background:#272b23;color:#d8d1ba}.config-switches{grid-column:1/-1;display:flex;gap:16px;flex-wrap:wrap}.check-label{display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer;margin:0;color:var(--ivory);font-size:12px}.check-label input[type=checkbox]{display:block;width:22px;height:22px;min-height:22px;flex:0 0 22px;margin:0;accent-color:var(--gold)}.check-label{padding:0 8px}.tressette-rule-summary{border-top:1px solid #d6b36b26;margin-top:10px;padding-top:12px;font-size:12px;line-height:1.6;color:var(--muted)}.tressette-rule-summary strong{color:var(--gold);font-size:14px}.tressette-rule-summary p{margin:7px 0}.tressette-rule-summary small{font-size:10px;display:block;line-height:1.5}.room-rules>.tressette-rule-summary{margin-top:8px}.room-config-edit>summary,.table-config-details>summary,.public-tressette-events>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:var(--gold);font-size:12px}.room-config-edit{margin-top:10px;border-top:1px solid #d6b36b33}.room-config-edit form>.primary{width:100%}.lobby-table-rules{font-size:11px;color:#dbc68d;line-height:1.5;margin:7px 0}.table-profile-strip{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:10px;line-height:1.6;color:var(--gold);padding:6px 2px}.table-profile-strip small{color:var(--muted);font-size:10px}.public-tressette-events{flex-basis:100%;width:100%;font-size:11px;line-height:1.6}.public-tressette-events p{margin:6px 0;color:#dbd4be}.public-tressette-events[open]{max-height:200px;overflow-y:auto}.signal-badge{font-size:9px;background:#d6b36b;color:#20362a;border-radius:4px;padding:4px 6px;line-height:1.2;text-align:center;white-space:nowrap}.trick-play:has(.signal-badge){gap:5px}.accuso-options{display:flex;flex-direction:column;gap:7px}.accuso-options .check-label{border:1px solid #d6b36b33;border-radius:5px;padding:8px;font-size:12px}.accuso-options .check-label b{color:var(--gold);white-space:nowrap}.accuso-options .check-label input{min-width:22px}.table-config-details{width:100%;font-size:11px}.table-config-details .tressette-rule-summary{font-size:11px}
@media(max-width:650px){.lobby-tressette-config,.room-rules{padding:14px;margin-bottom:16px}.config-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 12px}.config-grid>label:first-child{grid-column:1/-1}.config-grid label{font-size:11px;margin:7px 0}.config-switches{gap:8px;justify-content:space-between}.check-label{font-size:12px;min-height:44px;padding-inline:4px}.tressette-rule-summary{font-size:11px;padding-top:10px}.tressette-rule-summary strong{font-size:13px}.tressette-rule-summary small{font-size:10px}.table-profile-strip{font-size:9px;padding-block:3px;gap:0;line-height:1.5}.table-profile-strip small{font-size:9px}.room-rules .eyebrow{font-size:9px}.game-tressette .actions{align-items:end}.game-tressette .actions #declare-accuso{grid-column:auto;font-size:10px;padding:8px;line-height:1.4;align-self:end}.game-tressette .selection-hint{font-size:9px;line-height:1.4}.game-tressette .actions #play-card{font-size:12px}.public-tressette-events[open]{max-height:150px}.public-tressette-events>summary,.table-config-details>summary{font-size:11px}.signal-badge{font-size:8px;padding:3px 5px}.trick-play>small{line-height:1.3}.room-config-edit>summary{font-size:11px}.accuso-options .check-label{font-size:11px}}
.check-label input[type=checkbox]{appearance:none;-webkit-appearance:none;position:relative;width:44px;height:44px;min-width:44px;min-height:44px;flex:0 0 44px;background:transparent;border:0;padding:0;border-radius:5px}.check-label input[type=checkbox]:before{content:'';position:absolute;width:20px;height:20px;left:12px;top:12px;border:1px solid #b6a273;border-radius:4px;background:#15261d}.check-label input[type=checkbox]:checked:before{background:var(--gold);border-color:var(--gold)}.check-label input[type=checkbox]:checked:after{content:'✓';position:absolute;left:15px;top:13px;font:bold 17px Arial,sans-serif;color:#19382a;line-height:20px}.accuso-options .check-label input{min-width:44px}
.table-profile-strip .table-accuso-points{flex-basis:100%;color:#e8d59e;font-size:10px}@media(max-width:650px){.table-profile-strip .table-accuso-points{font-size:9px}}

/* Each Tressette action sends exactly the selected card, with or without signal. */
.selected-play-card{width:100%;font-size:12px;font-weight:bold;color:#f4e6bc;text-align:center;line-height:1.4}.tressette-play-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;width:100%}.tressette-play-actions.with-signals{grid-template-columns:repeat(2,minmax(0,1fr))}.play-choice{min-width:0;display:flex;flex-direction:column;gap:4px}.play-choice button{width:100%;min-height:44px;min-width:44px}.signal-action-status{font-size:10px;line-height:1.4;color:#d8c79c;text-align:center;min-height:14px;width:100%}.game-tressette .actions{flex-direction:column;align-items:stretch}.game-tressette .actions #declare-accuso{width:100%;min-height:44px}.game-tressette .actions #play-card{grid-column:auto}.game-tressette .selection-hint{width:100%;max-width:none;text-align:center}
@media(max-width:650px){.game-tressette .actions{display:flex;flex-direction:column;align-items:stretch;gap:5px}.game-tressette .actions #declare-accuso{padding:8px;line-height:1.2}.game-tressette .selection-hint{font-size:10px}.selected-play-card{font-size:11px;min-height:16px}.tressette-play-actions{gap:5px 8px}.tressette-play-actions .play-choice button{height:44px;padding:8px;font-size:12px;line-height:1.2}.signal-action-status{font-size:9px;min-height:13px}}

.table-public-accusi{border:1px solid #d6b36b55;border-radius:6px;background:#d6b36b12;padding:8px 12px;max-height:100px;overflow-y:auto;scrollbar-width:thin;overscroll-behavior:contain;margin:3px 0 8px}.table-accuso-announcement{font-size:11px;line-height:1.5;color:#e4d7b6;margin:0}.table-accuso-announcement+ .table-accuso-announcement{margin-top:8px;border-top:1px solid #d6b36b22;padding-top:6px}.table-accuso-announcement strong{color:#f6e6b6}.table-accuso-announcement span{color:var(--muted)}
@media(max-width:650px){.table-public-accusi{padding:6px 9px;max-height:76px;margin:2px 0 6px}.table-accuso-announcement{font-size:10px;line-height:1.45}}

.tressette-play-actions .compound-signal{grid-column:1/-1}.tressette-play-actions .compound-signal button{width:100%}.table-public-accusi:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
/* A version change is a visible, explicit choice: never reload during selection. */
.update-notice{position:sticky;top:0;z-index:6;width:100%;background:#e4c581;color:#1b3025;border-bottom:1px solid #a9884d;box-shadow:0 3px 12px #0003}.update-notice-inner{max-width:1500px;margin:auto;padding:8px 3vw}.update-notice-heading{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;font-size:13px;line-height:1.3}.update-notice strong{font-weight:700}.update-notice button{font-size:16px;min-width:88px;min-height:44px;padding:8px 14px;color:#193326;border-color:#4c653e;background:#ffffff5c;font-weight:700;flex-shrink:0}.update-notice button:hover{background:#fff9}.update-notice p{font-size:11px;line-height:1.35;text-align:center;margin:3px 0 0}.app-build-info{font-size:11px!important;line-height:1.5!important;color:var(--muted)!important;border-top:1px solid #d6b36b33;padding-top:12px;margin:18px 0 0;overflow-wrap:anywhere}.app-build-version{font-size:9px;letter-spacing:0;overflow-wrap:anywhere}footer:has(.app-build-version){flex-wrap:wrap;gap:10px}@media(max-width:650px){.update-notice-inner{padding:6px 12px}.update-notice-heading{font-size:12px;gap:6px}.update-notice p{font-size:10px}.update-notice button{font-size:16px}.app-build-info{font-size:11px!important}.update-notice+.table-shell{min-width:0}}
/* Keep native select behavior with readable colors in mobile WebKit. */
select{-webkit-appearance:none;appearance:none;background-color:#141e18;color:#f6efdf;background-image:linear-gradient(45deg,transparent 50%,#d6b36b 50%),linear-gradient(135deg,#d6b36b 50%,transparent 50%);background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%;background-size:5px 5px;background-repeat:no-repeat;padding-right:32px}

/* Mobile lobby: keep the game choice and immediate play in the first screen. */
.config-compact-summary{font-size:12px;line-height:1.5;color:#e4d4ad;margin:8px 0;overflow-wrap:anywhere}
.config-editor-details>summary,.room-rule-details>summary{min-height:44px;display:flex;align-items:center;gap:8px;cursor:pointer;color:var(--gold);font-size:12px}
.config-editor-details>summary:before,.room-rule-details>summary:before{content:'+';font-size:18px}
.config-editor-details[open]>summary:before,.room-rule-details[open]>summary:before{content:'−'}
@media(max-width:650px){
 .lobby{padding:20px 18px}.lobby .intro{min-height:0;gap:0}.intro h1{font-size:34px;margin:10px 0}.intro p{margin:0;line-height:1.5;max-width:340px}.intro .eyebrow{font-size:9px;letter-spacing:2px}
 .game-picker{grid-template-columns:repeat(2,minmax(0,1fr));margin:18px 0 12px;gap:8px}.game-choice{min-height:101px;padding:12px}.game-choice .game-number{font-size:8px;letter-spacing:1.2px;margin-bottom:7px}.game-choice strong{font-size:19px;margin-bottom:6px}.game-choice small{font-size:10px;line-height:1.4}
 .lobby-tressette-config{padding:10px 12px;margin-bottom:12px}.lobby-tressette-config>.eyebrow{font-size:8px;letter-spacing:1.4px}.config-compact-summary{font-size:11px;margin:5px 0;line-height:1.45}.config-editor-details>summary{min-height:44px;font-size:11px}.quick-start{margin-bottom:20px;gap:4px}.quick-start .primary{min-height:48px}.quick-start #custom-table{min-height:44px}
 .room-rules{margin-top:18px}.waiting .seats{margin:18px 0}.waiting .seat{padding:14px 8px}
}


/* Live Tressette points are captured card units, with declared acuso separate. */
.compact-score.tressette-live-score{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 18px}.tressette-score-side{display:flex;flex-direction:column;gap:3px;min-width:0}.tressette-score-side>span{display:flex;align-items:baseline;justify-content:center;gap:6px}.tressette-live-score strong{margin:0}.tressette-live-score small{font-size:10px}.tressette-live-score .live-hand-points{font-size:12px;color:var(--ivory)}.tressette-score-meta{grid-column:1/-1;text-align:center}
.tressette-accuso-history>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;cursor:pointer;font-size:11px;color:var(--ivory)}.tressette-accuso-history>summary>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tressette-accuso-history>summary>small{flex-shrink:0;color:var(--gold)}.tressette-accuso-records{padding-top:5px}

.round-breakdown{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;flex-basis:100%;text-align:center}.round-banner .round-breakdown p{font-size:12px;line-height:1.4;margin:0}

#leave-dialog .leave-dialog-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch;margin-top:20px}#leave-dialog .leave-dialog-actions button{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;height:100%;margin:0;padding:12px 8px;font-size:14px;line-height:1.3;white-space:normal}
