:root{color-scheme:light;--ink:#263a32;--muted:#6c7c70;--paper:#f7f6ed;--line:#d6ddcf;--green:#354f40;--lime:#d8ed9e;--red:#a2453b;--pink:#f2d6d0;font:15px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink)}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{color:inherit;cursor:pointer;background:#fffdf6;border:1px solid #bdc9b9;border-radius:9px;padding:10px 17px;font-weight:650;transition:background .16s,transform .16s}button:hover:not(:disabled){background:#edf2df}button:active:not(:disabled){transform:translateY(2px)}button:disabled{cursor:default;opacity:.48}button.primary{background:var(--green);border-color:var(--green);color:#fffdf0;box-shadow:0 3px 0 #1f342a}button.primary:hover:not(:disabled){background:#466951}a{color:inherit;text-underline-offset:4px}input,select{color:var(--ink);background:#fffefa;border:1px solid #bdc9b9;border-radius:8px;min-height:44px;padding:10px 12px;max-width:100%}input:focus,select:focus,button:focus-visible,a:focus-visible{outline:3px solid #93ad64;outline-offset:3px}input[type=radio],input[type=checkbox]{accent-color:var(--green);min-height:20px;width:19px;margin:0}label{font-size:13px;font-weight:650}h1,h2,h3,p{margin:0}h2{font-size:24px;letter-spacing:-.8px}h3{font-size:18px}p{line-height:1.7}.site-bar{max-width:1180px;margin:auto;padding:20px 28px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);gap:12px}.site-bar>div{display:flex;align-items:center;gap:22px}.site-bar a{text-decoration:none;font-size:13px}.brand{font-size:18px!important;font-weight:800;display:flex;gap:10px;align-items:center}.brand>span{font-size:28px;background:var(--lime);border-radius:10px;width:38px;height:38px;text-align:center}.site-bar select{font-size:12px;min-height:36px;padding:5px 8px}main{max-width:1100px;padding:40px 28px 20px;margin:auto}.eyebrow{font-size:11px;letter-spacing:1.7px;text-transform:uppercase;color:var(--muted);font-weight:750}.entry{display:grid;grid-template-columns:1.1fr 1fr;gap:70px;align-items:center;padding:5px 20px 45px}.entry-art h1{font-size:64px;letter-spacing:-4px;font-weight:850;margin:7px 0 0}.intro{color:var(--muted);font-size:15px}.cover-cards{height:285px;position:relative;margin:24px 0 0}.cover-card{position:absolute;top:22px;left:12%;width:148px;height:211px;border-radius:13px;box-shadow:0 12px 24px #223d3217;border:2px solid #d4d5bb;padding:10px;font-size:28px;font-weight:800;background:#fcf4d5;transform:rotate(-17deg);display:flex;flex-direction:column;justify-content:space-between}.cover-card span:last-child{align-self:end;transform:rotate(180deg)}.cover-card b{font-size:56px;line-height:1;text-align:center}.c-back{left:0;top:40px;background:repeating-linear-gradient(45deg,#416451 0 3px,#486c58 3px 6px);color:#d9eaa9;transform:rotate(-27deg)}.c-back b{margin:auto}.c-zero{z-index:1;color:#a27726}.c-seven{left:40%;top:35px;transform:rotate(15deg);background:#e1eae2;color:#37695d}.entry-note{color:var(--muted);font-size:13px;max-width:360px}.entry-form{background:#fffdf6;border:1px solid var(--line);border-radius:18px;padding:26px;box-shadow:0 8px 0 #e9eddf}.entry-tabs{display:flex;gap:20px;border-bottom:1px solid var(--line);margin-bottom:24px}.entry-tabs button{background:none;border:0;border-bottom:3px solid transparent;border-radius:0;padding:0 0 12px;flex:1;font-size:16px;color:var(--muted)}.entry-tabs [aria-selected=true]{border-color:var(--green);color:var(--ink)}#enter-form{display:grid;gap:9px}#enter-form>input{margin-bottom:8px}.code-label{display:flex;align-items:center;justify-content:space-between;gap:10px}.code-label button{border:0;padding:0;font-size:11px;background:none;color:var(--muted)}.code-input{font-size:28px;font-variant-numeric:tabular-nums;letter-spacing:8px;font-weight:750;direction:ltr}fieldset{border:0;padding:4px 0;margin:0 0 10px}legend{font-size:13px;font-weight:650;margin-bottom:9px}.radio,.check{display:flex;align-items:center;gap:10px;padding:8px 0}.enter-button{margin-top:7px;width:100%}.error{color:var(--red);font-size:13px;min-height:0;overflow-wrap:anywhere}.error:empty{display:none}.fine{font-size:12px;color:var(--muted)}.room-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-bottom:20px;border-bottom:1px solid var(--line)}.room-bar>div{display:flex;align-items:center;gap:14px;flex-wrap:wrap}#room-number{font-size:28px;letter-spacing:4px;font-variant-numeric:tabular-nums;direction:ltr}.room-lock,#room-limit{font-size:12px;color:var(--muted)}.text-button{border:0;background:none;color:var(--muted);padding-inline:3px;font-size:12px}.connection-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;font-size:11px;color:var(--muted)}#turn-clock{font-variant-numeric:tabular-nums}#connection::before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:#7a9760;margin-inline-end:6px}#connection.offline::before{background:#b37e38}#retry{font-size:11px;padding:4px 8px}#invite-status{font-size:12px;color:var(--muted);margin-top:8px}#invite-status:empty{display:none}#invite-link{width:100%;font-size:12px}.lobby{border:1px solid var(--line);padding:30px;border-radius:18px;background:#eef0e4}.lobby-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:28px}.lobby-heading p{font-size:13px;color:var(--muted)}.seats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.seat{border:1px solid #cbd5c2;background:#fcfcf2;padding:23px 15px;display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0;border-radius:13px}.seat-empty{background:none;border-style:dashed;color:#87947f}.avatar{display:grid;place-items:center;width:53px;height:53px;border-radius:50%;font-size:24px;background:#e1e9c9}.seat:nth-child(2) .avatar{background:#f1ddd3}.seat:nth-child(3) .avatar{background:#d7e7e4}.seat:nth-child(4) .avatar{background:#e9ddeb}.seat strong{overflow-wrap:anywhere;max-width:100%;text-align:center}.seat small{color:var(--muted);font-size:11px}.seat button{font-size:10px;border:0;background:none;padding:0;color:var(--red)}.lobby-bottom{display:flex;gap:24px;align-items:flex-start;margin:26px 0 20px}.lobby-bottom details{max-width:290px;font-size:13px}.lobby-bottom form{display:grid;gap:9px;padding-top:12px}.lobby-bottom select{font-size:13px}summary{cursor:pointer;font-weight:650}.table-heading{display:flex;justify-content:space-between;align-items:center;margin:8px 0 16px}.round-label{font-size:12px;color:var(--muted)}.table-emblem{font-size:48px;color:#92a57a}.called{background:#f5dfd4;border:1px solid #dec3ae;padding:10px 16px;border-radius:8px;margin-bottom:12px;font-size:13px}.felt{border:1px solid #c5d1ba;border-radius:28px;background:radial-gradient(ellipse at center,#edf3de,#dce7d4);padding:28px 20px;box-shadow:inset 0 0 0 7px #ffffff26;min-height:430px}.opponents{display:flex;justify-content:space-around;gap:20px}.player-zone{min-width:0;text-align:center}.player-heading{font-size:13px;font-weight:750;display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}.player-heading .total{font-size:11px;color:var(--muted);font-weight:500}.player-heading b{color:var(--red);font-size:15px}.is-turn .player-heading::before{content:'•';color:#437143}.player-cards{display:flex;justify-content:center;gap:6px;flex-wrap:wrap}.playing-card{position:relative;width:62px;height:90px;border-radius:8px;border:1px solid #b5c3ab;background:#fffdef;box-shadow:0 3px 0 #b6c2a8;padding:5px;display:flex;flex-direction:column;justify-content:space-between;align-items:start;color:#3e5846;font-weight:800;transition:transform .2s,box-shadow .2s}.playing-card strong{font-size:27px;line-height:1}.playing-card small{align-self:end;font-size:12px;transform:rotate(180deg)}.playing-card i{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-style:normal;font-size:25px;opacity:.35}.playing-card.back{background:repeating-linear-gradient(45deg,#476752 0 2px,#4f7059 2px 5px);color:#d6e8b7;border:3px solid #f5f3df;box-shadow:0 0 0 1px #9bac92,0 3px 0 #a1b695;align-items:center;justify-content:center}.playing-card.back strong{font-size:32px}.playing-card:disabled{opacity:1}.playing-card[data-value="0"]{color:#a5791c;background:#fff4cb}.playing-card[data-value="7"],.playing-card[data-value="8"]{color:#287664;background:#edf7e9}.playing-card[data-value="9"],.playing-card[data-value="10"]{color:#75629b;background:#f0ebfa}.playing-card[data-value="11"],.playing-card[data-value="12"]{color:#9c5c29;background:#fff0dd}.playing-card[data-value="13"]{color:#a33f45;background:#ffe6df}.playing-card.selected{transform:translateY(-11px);box-shadow:0 0 0 3px #a24739,0 6px 0 #b3c4a1}.playing-card.can-pick{cursor:pointer}.playing-card.can-pick:hover{transform:translateY(-6px)}.slot-gap{width:16px;min-height:90px;opacity:.3;border-inline-start:1px dashed #98aa89}.self{margin-top:22px}.self .playing-card{width:77px;height:109px}.self .playing-card strong{font-size:32px}.self .player-cards{gap:10px}.table-center{display:flex;align-items:center;justify-content:center;gap:32px;padding:27px 0 2px}.table-center>div{display:flex;align-items:center;flex-direction:column;gap:8px;font-size:11px;color:var(--muted)}.pile{width:74px;height:104px;display:flex;flex-direction:column;justify-content:center;align-items:center;border-radius:8px;box-shadow:3px 3px 0 #c5d1ba,5px 5px 0 #b0c19f}.deck-pile{border:3px solid #fffbea;background:#4c6c50;color:#e4edbe}.deck-pile b{font-size:35px}.pile small{font-size:11px}.discard-pile strong{font-size:37px;line-height:1.2;color:#a24c3b}.actions{margin-top:15px;background:#fffdf5;border:1px solid var(--line);border-radius:13px;display:flex;align-items:center;gap:17px;padding:19px 20px;flex-wrap:wrap}.action-copy{flex:1;min-width:200px}.action-copy p{font-size:12px;color:var(--muted);margin-top:4px}.action-buttons{display:flex;flex-wrap:wrap;gap:8px}.action-buttons button{font-size:12px}.cabo-button{background:var(--pink);border-color:#d4b2a8;color:#914f42;letter-spacing:.3px}#drawn-card .playing-card{width:61px;height:86px;animation:deal-in .25s ease-out}.event{font-size:11px;color:var(--muted);margin-top:12px;text-align:center;min-height:17px}.round-result{border:1px solid #c4d0b6;background:#eef1df;border-radius:15px;padding:26px;margin-top:22px}.round-result h2{margin-top:6px}.score-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;margin:17px 0 22px;text-align:start;font-variant-numeric:tabular-nums}th,td{text-align:start;border-bottom:1px solid #cbd5be;padding:12px;font-size:13px}th{color:var(--muted);font-size:11px}td:last-child{font-weight:800;color:var(--red);font-size:21px}td small{display:block;font-size:10px;color:var(--muted)}.history,.rules{margin-top:28px;border-top:1px solid var(--line);padding-top:19px;font-size:13px}.rules p{margin-top:14px;max-width:850px}.rules a{display:inline-block;margin-top:12px;font-size:11px;color:var(--muted)}.history p{font-size:12px;margin-top:10px}footer{max-width:1100px;margin:25px auto 0;padding:20px 28px 30px;display:flex;justify-content:space-between;gap:15px;font-size:10px;color:var(--muted);border-top:1px solid var(--line)}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@keyframes deal-in{from{opacity:0;transform:translateY(-12px) rotate(-7deg)}to{opacity:1;transform:none}}@media(max-width:800px){.entry{gap:30px;padding-inline:0}.entry-art h1{font-size:48px}.cover-cards{height:230px;transform:scale(.8);transform-origin:left center;width:300px;margin-inline-end:-50px}.opponents{gap:10px}.playing-card{width:47px;height:72px}.playing-card strong{font-size:22px}.player-cards{gap:4px}.player-heading{font-size:11px}.seats{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.site-bar{padding:12px 16px}.brand{font-size:15px!important}.brand>span{width:30px;height:30px;font-size:22px}.site-bar>div{gap:10px}.site-bar>div>a{display:none}main{padding:24px 15px 15px}.entry{display:block}.entry-art h1{font-size:43px;letter-spacing:-2px;margin-top:4px}.entry-art .eyebrow{font-size:10px}.entry-art{position:relative;min-height:145px;padding-bottom:12px}.entry-art .intro{max-width:65%;font-size:12px}.cover-cards{position:absolute;right:-22px;left:auto;top:-10px;width:195px;height:145px;margin:0;transform:scale(.47);transform-origin:right top;pointer-events:none}.entry-note{font-size:11px;max-width:70%;margin-top:14px}.entry-form{padding:22px}.entry-tabs{margin-bottom:18px}.entry-tabs button{font-size:15px}.room-bar{padding-bottom:12px;gap:9px}.room-bar>div{gap:9px}.room-bar button{font-size:11px;padding:7px 11px}#room-number{font-size:24px}.room-bar .eyebrow{font-size:10px}#room-limit,.room-lock{font-size:10px}.lobby{padding:20px 14px}.lobby-heading{display:block;margin-bottom:20px}.lobby-heading p{margin-top:6px}.seat{padding:18px 10px}.lobby-bottom{gap:16px;flex-wrap:wrap}.lobby-bottom details{width:100%;max-width:none}.felt{padding:20px 10px;border-radius:20px;min-height:380px}.opponents{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:7px}.opponents:has(>.player-zone:only-child){display:flex}.opponents .player-cards{gap:3px}.opponents .playing-card{width:34px;height:52px;padding:3px;border-radius:5px}.opponents .playing-card strong{font-size:18px}.opponents .playing-card small{font-size:9px}.opponents .playing-card i{font-size:17px}.opponents .playing-card.back strong{font-size:22px}.player-heading{gap:4px;font-size:10px;margin-bottom:7px}.player-heading .total{font-size:9px}.player-heading b{font-size:12px}.table-heading{margin-top:7px;margin-bottom:10px}h2{font-size:21px}.table-emblem{font-size:37px}.table-center{padding-top:21px;gap:26px}.pile{width:62px;height:86px}.self{margin-top:22px}.self .playing-card{width:64px;height:91px}.self .playing-card strong{font-size:29px}.self .player-cards{gap:7px}.actions{padding:15px;gap:12px}.action-copy{min-width:160px}.action-copy h3{font-size:16px}.action-buttons{width:100%}.action-buttons button{flex:1;padding:10px;font-size:11px}.round-result{padding:19px 14px}th,td{padding:10px 5px;font-size:11px}.round-result h2{font-size:22px}.connection-row{font-size:10px}.rules{font-size:12px}footer{padding:16px;flex-wrap:wrap}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

.chat{margin-top:26px;border:1px solid var(--line);border-radius:12px;padding:19px;background:#fffdf6}.chat h2{font-size:15px;letter-spacing:0}.chat-messages{max-height:175px;overflow:auto;margin:12px 0;scroll-behavior:smooth}.chat-messages:empty{display:none}.chat-messages p{font-size:12px;overflow-wrap:anywhere;margin:6px 0}.chat-messages strong{font-size:10px;color:var(--muted);margin-inline-end:12px}.chat form{display:flex;gap:9px}.chat input{min-width:0;flex:1;font-size:13px}.chat form button{font-size:12px}

/* Keep grid form controls and decorative cards inside narrow screens. */
.entry-form{min-width:0}#enter-form{grid-template-columns:minmax(0,1fr)}input{min-width:0}.entry-art{overflow:hidden}@media(max-width:600px){.cover-cards{width:300px;right:0;transform:scale(.4)}[dir=rtl] .cover-cards{right:auto;left:0;transform-origin:left top}}

@media(max-width:600px){.entry-art h1{font-size:36px;letter-spacing:-1.5px}}

.player-heading>span{max-width:100%;overflow-wrap:anywhere}
