:root{font-family:'DM Sans',sans-serif;color:#f7f3e9;background:#0d2119;font-synthesis:none;--ink:#f7f3e9;--muted:#9aa69c;--felt:#183a2b;--line:rgba(239,235,215,.15);--gold:#d8b875;--red:#d67869}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(ellipse at 50% 42%,#183829 0,#10291f 43%,#0b1b14 100%);color:var(--ink)}button,input,textarea{font:inherit}button{color:inherit;cursor:pointer}.grain{position:fixed;inset:0;opacity:.14;pointer-events:none;z-index:5;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E")}.app-shell{min-height:100vh;position:relative;overflow:hidden}.view{display:none;min-height:100vh;position:relative}.view.active{display:flex}.welcome{max-width:1120px;margin:auto;padding:36px 48px 30px;flex-direction:column;justify-content:space-between;width:100%;min-height:100vh}.brand-lockup{display:flex;align-items:center;gap:12px;font-weight:700;letter-spacing:.2em;font-size:14px}.brand-mark,.mini-brand b{width:29px;height:29px;border:1px solid var(--gold);color:var(--gold);display:inline-flex;align-items:center;justify-content:center;font-family:'Playfair Display';font-size:19px;font-weight:600;letter-spacing:0}.brand-period{color:var(--gold)}.welcome-copy{max-width:710px;margin:6vh 0 2vh}.eyebrow,.field-label{font-size:10px;font-weight:700;letter-spacing:.2em;color:var(--gold)}.live-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#76c38b;box-shadow:0 0 10px #76c38b;vertical-align:1px;margin-right:8px}.welcome h1,.setup h2,.waiting h2,.config-view h2{font-family:'Playfair Display',serif;font-size:clamp(56px,8vw,100px);line-height:.99;letter-spacing:-.045em;font-weight:600;margin:26px 0}.welcome h1 em,.waiting h2 em{color:var(--gold);font-weight:600}.intro{font-size:17px;color:#b8c2ba;max-width:400px;line-height:1.7;margin-top:23px}.device-story{display:flex;align-items:center;gap:16px;margin-top:48px;max-width:510px;color:#b7c3b9;font-size:9px;letter-spacing:.16em}.story-player{display:flex;flex-direction:column;align-items:center;gap:10px}.story-icon{height:39px;width:31px;border:1px solid #668271;border-radius:5px;display:grid;place-items:center;color:var(--gold);font-size:18px;background:rgba(220,210,160,.045)}.story-player:last-child .story-icon{color:var(--red)}.story-line{height:1px;background:linear-gradient(90deg,#657e6d,transparent);flex:1}.story-table{width:54px;height:34px;border:1px solid #668271;border-radius:50%;display:grid;place-items:center;background:rgba(220,210,160,.035);color:#8db396}.welcome-actions{width:290px;margin-bottom:2vh}.button{height:56px;border:0;padding:0 20px;display:flex;align-items:center;justify-content:space-between;letter-spacing:.01em}.primary{background:var(--gold);color:#182219;font-weight:700;transition:background .2s,transform .2s}.primary:hover{background:#e7cd96;transform:translateY(-1px)}.primary:disabled{opacity:.35;cursor:not-allowed;transform:none}.arrow{font-size:22px;font-weight:400}.text-button{background:transparent;color:var(--ink);padding:0 5px;width:100%;height:48px}.text-button span{color:var(--gold);font-size:20px}.welcome-foot{display:flex;gap:14px;align-items:center;color:#829187;font-size:9px;letter-spacing:.16em}.foot-dash{width:20px;height:1px;background:#5b6c60}.topbar,.game-topbar{height:76px;padding:0 48px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.mini-brand{display:flex;align-items:center;gap:9px;border:0;background:none;font-size:11px;letter-spacing:.16em;font-weight:700}.mini-brand b{width:24px;height:24px;font-size:15px}.icon-button{border:1px solid var(--line);background:transparent;width:35px;height:35px;color:#d8dfd9;font-size:20px}.step-count{font-size:12px;color:var(--gold);letter-spacing:.1em}.step-count i{color:#69776c;font-style:normal}.setup{flex-direction:column}.setup-content,.waiting-content,.config-content{width:min(490px,100%);padding:48px 30px 35px;margin:auto}.setup h2,.waiting h2,.config-view h2{font-size:58px;margin:18px 0 12px}.muted{color:#aebbb2;font-size:14px;line-height:1.65;margin:0 0 27px}.role-number{font-size:9px;color:#75847a;letter-spacing:.1em}.red-suit{color:var(--red)}.role-desc{font-size:9px;color:#94a198;line-height:1.35;margin-top:5px}.radio{position:absolute;right:12px;top:12px;width:11px;height:11px;border:1px solid #829087;border-radius:50%}.selected .radio{border-color:var(--gold);background:var(--gold);box-shadow:inset 0 0 0 3px #1c3024}.field-label{display:block;margin-bottom:9px;color:#a7b1a9;font-size:9px}.name-input{width:100%;height:48px;border:1px solid #43564a;background:rgba(0,0,0,.14);padding:0 14px;color:var(--ink);outline:none}.name-input:focus{border-color:var(--gold)}.name-input::placeholder{color:#68776d}.room-code-wrap{margin-top:16px}.code-input{text-transform:uppercase;letter-spacing:.28em}.full-button{width:100%;margin-top:21px}.setup-note{font-size:10px;color:#839187;margin-top:16px}.setup-note span{color:var(--gold);margin-right:5px}.hidden{display:none!important}.connection{font-size:9px;letter-spacing:.17em;color:#aab5ab}.waiting{flex-direction:column}.waiting-content{width:min(500px,100%);padding-top:38px}.waiting h2{margin:20px 0 30px}.code-card{border:1px solid var(--line);background:rgba(255,255,255,.025);padding:19px 20px 16px;position:relative}.code-card strong{display:block;font-size:32px;letter-spacing:.28em;margin-top:9px;color:#f2e8cd}.copy-button{position:absolute;right:17px;bottom:19px;background:transparent;border:0;color:var(--gold);font-size:10px}.seats{display:flex;flex-direction:column;margin:25px 0}.seat{display:flex;align-items:center;gap:13px;padding:13px 0;border-bottom:1px solid var(--line)}.seat-icon{width:35px;height:35px;border:1px solid #54685a;border-radius:50%;display:grid;place-items:center;color:var(--gold)}.seat-name{flex:1}.seat-name strong{display:block;font-size:13px;font-weight:600}.seat-name small{font-size:9px;letter-spacing:.13em;color:#7f8b82}.seat-state{font-size:9px;color:#829087;letter-spacing:.1em}.seat-state.ready{color:#87c593}.waiting-bottom p{text-align:center;color:#829087;font-size:10px;letter-spacing:.04em}.game{flex-direction:column;min-height:100vh}.game-topbar{height:62px;padding:0 30px}.room-pill{font-size:9px;letter-spacing:.18em;color:#8f9e91;border:1px solid var(--line);padding:8px 12px}.game-layout{flex:1;min-height:calc(100vh - 62px);display:grid;grid-template-columns:205px minmax(460px,1fr) 225px}.scoreboard,.side-panel{padding:29px 22px;border-right:1px solid var(--line);position:relative}.side-panel{border-right:0;border-left:1px solid var(--line)}.score-label,.side-title{font-size:9px;letter-spacing:.17em;color:#96a398;margin-bottom:23px}.score-label span{color:var(--gold)}.score-row{height:44px;display:flex;align-items:center;gap:8px}.team-dot{width:6px;height:6px;border-radius:50%;background:#77ac87;display:inline-block;flex-shrink:0}.red-dot{background:#d67869}.team-name{font-size:11px;color:#bac4bb;flex:1}.score-row strong{font-family:'Playfair Display';font-weight:600;font-size:22px}.score-progress{display:flex;gap:3px;margin:12px 0 25px}.score-progress i{height:3px;flex:1;background:#35463a}.score-progress i:first-child{background:var(--red)}.hand-label{font-size:9px;letter-spacing:.16em;color:#8d9b90;margin-top:23px}.hand-label span{color:var(--gold);margin-left:7px}.felt-area{min-height:600px;position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:22px 18px;background:radial-gradient(ellipse at center,#204a36,#193b2b 52%,#153324 100%)}.felt-ring{position:absolute;width:min(80%,730px);height:65%;border-radius:50%;border:1px solid rgba(224,217,185,.08);top:17%;pointer-events:none}.ring-b{width:min(69%,640px);height:56%;top:21.5%;border-color:rgba(224,217,185,.045)}.opponent-info,.my-player-info{z-index:1;display:flex;align-items:center;gap:10px;width:min(390px,100%)}.opponent-info{margin:0 auto 5px}.my-player-info{margin:4px auto 0}.avatar{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;font-family:'Playfair Display';font-size:14px}.avatar-opponent{background:#263b30;border:1px solid #64776a;color:#d8c38f}.avatar-me{background:#d8b875;color:#1d2d20}.opponent-info strong,.my-player-info strong{font-size:12px;font-weight:600;display:block}.opponent-info small,.my-player-info small{display:block;color:#9ca99e;font-size:8px;letter-spacing:.15em;margin-top:3px}.card-back-stack{margin-left:auto;display:flex;padding-right:5px}.card-back-stack i{width:19px;height:27px;border:1px solid #bcac80;border-radius:3px;background:repeating-linear-gradient(45deg,#394b3d 0 3px,#526148 3px 5px);margin-left:-7px;transform:rotate(8deg)}.center-table{height:230px;width:min(500px,100%);position:absolute;top:50%;left:50%;transform:translate(-50%,-53%);display:flex;align-items:center;justify-content:center}.deck-stack{width:74px;height:104px;border:1px solid #c5b37f;border-radius:7px;display:grid;place-items:center;background:repeating-linear-gradient(45deg,#354e3c 0 5px,#496049 5px 8px);box-shadow:5px 6px 0 #142a1d,6px 7px 0 #b19e70;color:#e2ce94;font-family:'Playfair Display';font-size:27px;z-index:2}.trick-cards{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:16px;z-index:4;pointer-events:none}.played-card{width:78px;height:112px;border-radius:7px;background:#f5f0df;color:#17271d;box-shadow:0 6px 14px #081b1060;display:flex;flex-direction:column;align-items:center;justify-content:center;font-family:'Playfair Display';position:relative;transform:rotate(-8deg);animation:deal .28s ease-out}.played-card:nth-child(2){transform:rotate(7deg) translateY(10px)}.played-card .card-rank{font-size:28px;line-height:1}.played-card .card-suit{font-size:26px;margin-top:7px}.played-card .card-who{position:absolute;bottom:6px;font:8px 'DM Sans';letter-spacing:.08em;color:#5b675e}.card-red{color:#b6463f}.turn-badge{margin-left:auto;padding:6px 9px;border:1px solid rgba(216,184,117,.5);color:var(--gold);font-size:8px;letter-spacing:.14em}.turn-badge.waiting-turn{border-color:var(--line);color:#87958a}.hand{z-index:1;display:flex;align-items:flex-end;justify-content:center;gap:10px;width:100%;max-width:410px;margin:auto auto 9px;min-height:130px}.hand-card{width:85px;height:120px;flex:0 1 85px;border:0;border-radius:7px;background:#f2eddf;color:#17271d;box-shadow:0 4px 12px #081b1050;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;transition:transform .2s,box-shadow .2s;padding:10px}.hand-card:hover:not(:disabled){transform:translateY(-13px);box-shadow:0 9px 20px #081b1080}.hand-card:disabled{opacity:.72}.hand-card .card-rank{font-family:'Playfair Display';font-size:32px;line-height:1}.hand-card .card-suit{font-size:26px;margin-top:7px}.hand-card .card-value{position:absolute;bottom:7px;font-size:8px;letter-spacing:.08em;color:#657066}.hand-card.card-red{color:#b6463f}.player-actions{z-index:1;display:flex;gap:8px;width:min(300px,100%);justify-content:center}.call-button,.pass-button{height:34px;padding:0 13px;background:transparent;border:1px solid #879586;color:#e6e5d8;font-size:9px;letter-spacing:.15em}.call-button{border-color:var(--gold);color:var(--gold)}.call-button span{margin-left:11px}.call-button:disabled,.pass-button:disabled{opacity:.35;cursor:not-allowed}.side-title{display:flex;justify-content:space-between}.side-title span{color:#79b689}.round-feed{border-top:1px solid var(--line)}.feed-item{display:flex;align-items:center;gap:10px;padding:15px 0;color:#9da99f;font-size:10px;line-height:1.45;border-bottom:1px solid var(--line)}.feed-item i{width:5px;height:5px;border-radius:50%;background:var(--gold);flex-shrink:0}.feed-item strong{color:#e8e8d9;font-weight:500}.side-bottom{position:absolute;bottom:23px;left:22px;right:22px}.deck-count{font-size:10px;color:#a2aea4;display:block}.deck-count i{font-style:normal;color:var(--gold);margin-right:6px}.sound-button{margin-top:17px;background:none;border:1px solid var(--line);padding:7px 9px;color:#8f9c91;font-size:9px}.sound-button span{margin-left:14px;color:#d3ba7b}.mobile-score{display:none}.toast,.toast-global{position:fixed;bottom:25px;left:50%;transform:translate(-50%,15px);opacity:0;padding:12px 17px;background:#ead7a5;color:#15251b;font-size:12px;z-index:20;transition:.25s;pointer-events:none}.toast.show,.toast-global.show{opacity:1;transform:translate(-50%,0)}.config-view{flex-direction:column}.config-content textarea{width:100%;height:100px;resize:vertical;background:rgba(0,0,0,.16);border:1px solid #43564a;color:var(--ink);padding:13px;font:12px monospace}.config-foot{font-size:10px;color:#829087;line-height:1.6}.config-view h2{font-size:54px}
.lobby-view{flex-direction:column}.lobby-content{width:min(620px,100%);padding:42px 28px 34px;margin:auto}.lobby-content h2{font-family:'Playfair Display',serif;font-size:58px;line-height:.99;letter-spacing:-.04em;margin:17px 0 27px}.open-room-list{display:flex;flex-direction:column;gap:12px;margin-top:23px}.lobby-card{border:1px solid var(--line);background:rgba(255,255,255,.025);padding:17px 18px}.lobby-card-top{display:flex;align-items:center;justify-content:space-between}.lobby-card-top .eyebrow{margin:0;font-size:8px}.lobby-card h3{font-family:'Playfair Display',serif;font-size:21px;font-weight:600;margin:6px 0 0}.lobby-count{border:1px solid var(--line);padding:6px 9px;color:var(--gold);font-size:10px}.lobby-seats{display:flex;flex-wrap:wrap;gap:7px;margin:15px 0}.lobby-seat{border:1px solid rgba(216,184,117,.35);padding:6px 8px;color:var(--gold);font-size:9px}.lobby-seat.taken{border-color:var(--line);color:#829087}.lobby-join-options{display:flex;flex-wrap:wrap;gap:8px}.lobby-join-options .button{height:39px;gap:12px;padding:0 11px;border:1px solid #647568;background:transparent;color:var(--ink);font-size:9px;letter-spacing:.04em}.lobby-join-options .lobby-table-button{border-color:var(--gold);color:var(--gold)}.lobby-join-options .button span{font-size:16px}.empty-lobby{text-align:center;border:1px dashed var(--line);padding:28px 18px}.empty-lobby>span{display:block;color:var(--gold);font-size:25px}.empty-lobby strong{display:block;margin-top:11px;font-family:'Playfair Display',serif;font-size:18px}.empty-lobby p{color:#97a49a;font-size:12px;line-height:1.6;margin:8px auto 0;max-width:350px}.code-card.notice strong{font-family:'DM Sans',sans-serif;font-size:13px;letter-spacing:0;line-height:1.5;font-weight:500}
@keyframes deal{from{opacity:0;transform:translateY(24px) rotate(0)}to{opacity:1}}
@media(max-width:900px){.game-layout{grid-template-columns:150px minmax(380px,1fr)}.side-panel{display:none}.scoreboard{padding:24px 15px}.felt-area{min-height:calc(100vh - 62px)}}
@media(max-width:640px){.welcome{padding:25px 25px 21px}.welcome-copy{margin:7vh 0 2vh}.welcome h1{font-size:67px}.intro{font-size:15px;max-width:310px}.device-story{margin-top:39px}.welcome-actions{margin-top:auto;margin-bottom:6vh;width:100%;max-width:330px}.welcome-foot{font-size:8px;gap:8px}.foot-dash{width:12px}.topbar{padding:0 20px;height:64px}.setup-content,.waiting-content,.config-content{padding:34px 23px 25px}.setup h2,.waiting h2{font-size:52px}.role-desc{font-size:8px}.game-topbar{height:54px;padding:0 15px}.game-topbar .mini-brand{font-size:9px}.game-topbar .mini-brand b{width:21px;height:21px}.room-pill{padding:6px 8px;font-size:8px}.game-topbar .connection{font-size:8px}.game-layout{display:block;min-height:calc(100dvh - 54px);height:calc(100dvh - 54px)}.scoreboard{display:none}.felt-area{height:100%;min-height:520px;padding:17px 14px 30px}.felt-ring{width:116%;height:55%;top:24%}.ring-b{width:99%;height:47%;top:28%}.opponent-info,.my-player-info{max-width:390px}.center-table{height:190px;top:49%}.deck-stack{width:64px;height:91px}.played-card{width:66px;height:96px}.played-card .card-rank{font-size:24px}.hand{max-width:350px;gap:7px;min-height:111px;margin-bottom:7px}.hand-card{height:105px;flex-basis:73px;padding:6px}.hand-card .card-rank{font-size:28px}.hand-card .card-suit{font-size:22px}.hand-card .card-value{font-size:7px}.player-actions{margin-bottom:0}.mobile-score{height:45px;display:flex;align-items:center;justify-content:center;gap:10px;background:#10251b;border-top:1px solid var(--line);font-size:10px}.mobile-score span{display:flex;align-items:center;gap:5px}.mobile-score small{color:#708073}.mobile-score span:last-of-type{font-size:8px;letter-spacing:.12em;color:#89968d}.mobile-score button{position:absolute;right:12px;background:none;border:0;color:var(--gold);font-size:8px;letter-spacing:.1em}.game-layout{min-height:calc(100dvh - 99px);height:calc(100dvh - 99px)}.felt-area{min-height:0}.welcome-foot{letter-spacing:.12em}.code-card strong{font-size:28px}.copy-button{position:static;margin-top:14px;padding:0}.waiting-content{padding-top:28px}}
@media(max-width:370px){.welcome h1{font-size:58px}.role-desc{font-size:7px}.hand{gap:4px}.hand-card{flex-basis:66px}.mobile-score{gap:7px}.mobile-score button{font-size:7px;right:6px}}
@media(max-width:640px){.lobby-content{padding:34px 23px 25px}.lobby-content h2{font-size:52px}.lobby-join-options .button{flex:1;justify-content:space-between;min-width:130px}.code-card.notice strong{font-size:13px}}


.target-label{margin-top:19px}.target-select{appearance:auto;color-scheme:dark}.tally{min-height:27px;display:flex;flex-wrap:wrap;gap:4px;margin:0 0 13px 14px;max-width:150px}.tally-group{position:relative;display:flex;gap:3px;width:22px;height:19px;padding:1px 2px}.tally-group i{display:block;width:2px;height:16px;border-radius:2px;background:#d8b875}.tally-group b{position:absolute;left:1px;top:8px;width:21px;height:2px;border-radius:2px;background:#d67869;transform:rotate(-52deg)}.muestra-card{position:absolute;left:50%;top:50%;transform:translate(-55%,-50%) rotate(-8deg);width:65px;height:91px;z-index:3;border:1px solid #e0d3ac;border-radius:6px;background:#f5f0df;color:#17271d;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 5px 0 #9d8c65,0 8px 12px #07170d80}.muestra-card span{font:23px 'Playfair Display';line-height:1}.muestra-card b{font-size:23px;margin-top:4px}.muestra-card small{position:absolute;bottom:5px;font:6px 'DM Sans';letter-spacing:.15em;color:#58675d}.player-actions{flex-wrap:wrap;min-height:34px}.action-wait{font-size:8px;letter-spacing:.13em;color:#d4c28f;text-align:center;padding:8px}.player-actions .pass-button,.player-actions .call-button{height:34px}
@media(max-width:640px){.muestra-card{width:53px;height:77px;transform:translate(-60%,-50%) rotate(-8deg)}.muestra-card span,.muestra-card b{font-size:19px}.player-actions{gap:5px}.player-actions .pass-button,.player-actions .call-button{padding:0 8px;font-size:8px;letter-spacing:.08em}}
@media(max-width:640px){.mobile-score{height:54px;gap:5px;padding:0 8px}.mobile-team-score{display:flex;align-items:center;gap:3px}.mobile-tally{display:flex;flex-wrap:nowrap;gap:1px;min-height:16px;max-width:70px;margin:0}.mobile-tally .tally-group{transform:scale(.62);transform-origin:left center;margin-right:-8px}.mobile-hand-label{font-size:7px!important;letter-spacing:.07em!important}.mobile-target{font-size:7px!important}.mobile-score button{right:7px;background:#10251b;padding:7px 0 7px 5px}.muestra-card{top:7%}}


.welcome{height:100dvh;min-height:0;max-width:none;padding:clamp(14px,2.5vh,28px) clamp(18px,5vw,64px) clamp(12px,2vh,22px);gap:clamp(12px,2vh,22px);overflow:hidden}
.home-topbar{height:38px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0}
.home-topbar .brand-lockup{font-size:12px}.home-topbar .brand-mark{width:27px;height:27px}
.home-topbar .connection{display:flex;align-items:center;font-size:9px;letter-spacing:.14em}
.home-content{width:min(1100px,100%);margin:auto;display:grid;grid-template-columns:minmax(220px,.68fr) minmax(0,1.32fr);gap:clamp(22px,5vw,68px);align-items:center;min-height:0;flex:1}
.home-intro{display:flex;flex-direction:column;align-items:flex-start;gap:25px}
.home-heading .eyebrow{margin:0 0 13px;font-size:9px}
.welcome .home-heading h1{font-family:'Playfair Display',serif;font-size:clamp(30px,4vw,48px);line-height:1.05;letter-spacing:-.035em;margin:0;font-weight:600}
.home-heading .intro{font-size:14px;line-height:1.55;margin:10px 0 0;max-width:280px}
.home-actions{width:min(270px,100%)}.home-actions .primary{height:49px;width:100%;padding:0 16px}

.home-lobby{width:100%;min-width:0;border:1px solid var(--line);background:rgba(255,255,255,.025);padding:clamp(14px,2.2vh,22px);display:flex;flex-direction:column;min-height:0;max-height:100%}
.home-lobby-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-shrink:0}
.home-section-title{display:flex;align-items:center;gap:10px}
.home-section-title h2{font-family:'Playfair Display',serif;font-size:clamp(22px,2.5vw,29px);line-height:1;margin:0;font-weight:600;letter-spacing:-.025em}
.home-lobby-heading p{font-size:11px;color:#9eaaa1;margin:7px 0 0}
.live-pill{display:flex;align-items:center;gap:5px;padding:5px 7px;border:1px solid rgba(118,195,139,.25);color:#91c89c;font-size:7px;letter-spacing:.13em;white-space:nowrap}
.live-pill i{width:5px;height:5px;border-radius:50%;background:#76c38b}
.home-name{display:block;width:155px;flex-shrink:0}.home-name .field-label{margin:0 0 5px;font-size:7px}.home-name .name-input{height:34px;padding:0 9px;font-size:11px}
.open-room-list{margin-top:14px;gap:8px;overflow:auto;min-height:0;padding-right:3px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#4b6252 transparent}
.lobby-card{padding:10px 12px;background:rgba(0,0,0,.08)}
.lobby-card-top .eyebrow{font-size:7px;letter-spacing:.15em}.lobby-card h3{font-size:16px;margin-top:3px}.lobby-count{font-size:8px;padding:4px 6px}
.lobby-seats{gap:5px;margin:7px 0}.lobby-seat{font-size:8px;padding:4px 6px}
.lobby-join-options{gap:6px}.lobby-join-options .button{height:31px;min-width:0;flex:0 1 auto;font-size:8px;padding:0 9px}.lobby-join-options .button span{font-size:13px}
.empty-lobby{padding:18px 12px}.empty-lobby>span{font-size:20px}.empty-lobby strong{font-size:15px;margin-top:7px}.empty-lobby p{font-size:10px;line-height:1.45;margin-top:5px}
.welcome-foot{width:min(1100px,100%);margin:0 auto;flex-shrink:0;font-size:8px;gap:10px}
@media(max-width:700px){.welcome{padding:15px 18px 12px;gap:11px}.home-content{grid-template-columns:1fr;gap:13px;align-content:start}.home-intro{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px}.home-heading .eyebrow{font-size:7px;margin-bottom:7px}.welcome .home-heading h1{font-size:clamp(25px,7vw,34px)}.home-heading .intro{font-size:11px;margin-top:5px}.home-actions{width:132px}.home-actions .primary{height:42px;padding:0 10px;font-size:11px}.home-actions .arrow{font-size:17px}.home-lobby{padding:12px}.home-lobby-heading{align-items:center;gap:10px}.home-section-title h2{font-size:22px}.home-lobby-heading p{font-size:9px;margin-top:4px}.live-pill{font-size:6px;padding:4px 5px}.home-name{width:116px}.home-name .field-label{font-size:6px}.home-name .name-input{height:31px;font-size:10px}.open-room-list{margin-top:10px;gap:6px}.lobby-card{padding:8px 9px}.lobby-card h3{font-size:14px}.lobby-seats{margin:5px 0;gap:4px}.lobby-seat{font-size:7px;padding:3px 5px}.lobby-join-options{gap:5px}.lobby-join-options .button{height:28px;font-size:7px;padding:0 7px}.empty-lobby{padding:12px 8px}.empty-lobby>span{font-size:17px}.empty-lobby strong{font-size:13px}.empty-lobby p{font-size:9px}.welcome-foot{font-size:7px;gap:7px}.welcome-foot .foot-dash{width:11px}}
@media(max-width:380px){.welcome{padding:12px 13px 10px;gap:8px}.home-content{gap:9px}.home-intro{grid-template-columns:minmax(0,1fr) 118px}.home-heading .eyebrow{font-size:6px}.welcome .home-heading h1{font-size:25px}.home-heading .intro{font-size:10px}.home-actions .primary{font-size:10px}.home-lobby{padding:9px}.home-lobby-heading p{font-size:8px}.home-name{width:100px}.home-name .name-input{height:29px}.home-lobby-heading{gap:5px}.home-section-title{gap:6px}.home-section-title h2{font-size:20px}.lobby-seat{font-size:6px}.lobby-join-options .button{font-size:6px}}
@media(max-height:700px) and (min-width:701px){.welcome{padding-top:12px;padding-bottom:12px;gap:10px}.home-content{gap:30px}.home-intro{gap:16px}.home-lobby{padding:12px}.open-room-list{margin-top:9px}.lobby-card{padding:8px 10px}.lobby-seats{margin:5px 0}.welcome-foot{font-size:7px}}


.player-mode .muestra-card{display:none!important}


.player-mode .deck-stack,.player-mode .trick-cards,.player-mode .card-back-stack,.player-mode .deck-count{display:none!important}.player-mode .muestra-card{top:17%;left:50%;transform:translate(-50%,-50%) rotate(-8deg);z-index:3}
@media(max-width:640px){
  .game{height:100dvh;min-height:0;overflow:hidden}
  .game-topbar{flex:0 0 54px}
  .game-layout{display:block;flex:1 1 0;height:auto;min-height:0;overflow:hidden}
  .felt-area{width:100%;height:100%;min-height:0;padding:14px 12px}
  .mobile-score{position:relative;flex:0 0 54px}
  .center-table{top:50%;left:50%;width:100%;height:170px;transform:translate(-50%,-50%)}
  .muestra-card{top:17%;left:50%;width:53px;height:77px;transform:translate(-50%,-50%) rotate(-8deg)}
  .muestra-card span,.muestra-card b{font-size:19px}
  .player-mode .opponent-info,.player-mode .deck-stack,.player-mode .trick-cards,.player-mode .card-back-stack{display:none!important}
  .player-mode .my-player-info{position:absolute;top:16px;left:14px;width:calc(100% - 28px);max-width:none;margin:0}
  .player-mode .center-table{top:18px;left:50%;width:70px;height:82px;transform:translateX(-50%)}
  .player-mode .muestra-card{display:none!important}
  .player-mode .hand{position:absolute;top:50%;left:50%;width:calc(100% - 20px);max-width:360px;min-height:0;height:auto;margin:0;gap:8px;transform:translate(-50%,-50%)}
  .player-mode .hand-card{width:clamp(74px,23vw,100px);height:clamp(104px,22dvh,132px);flex:0 1 clamp(74px,23vw,100px)}
  .player-mode .player-actions{position:absolute;left:50%;bottom:12px;width:calc(100% - 24px);max-width:430px;min-height:0;margin:0;transform:translateX(-50%);gap:6px}
  .player-mode .player-actions .pass-button,.player-mode .player-actions .call-button{flex:0 1 auto}
}
@media(max-width:640px){.game-layout{display:flex;flex-direction:column}.felt-area{flex:1 1 auto;height:auto}}


.player-mode .muestra-card{display:none!important}
.tally{display:flex;flex-direction:column;flex-wrap:nowrap;gap:2px;min-height:0;margin:0 0 13px 14px}
.tally-half{display:flex;flex-wrap:wrap;gap:4px;min-height:19px;align-content:flex-start}
.tally-midline{display:block;width:100%;height:1px;background:rgba(239,235,215,.28)}
@media(max-width:640px){
  .mobile-tally{width:58px;max-width:58px;height:24px;min-height:0;flex:0 1 58px;display:flex;flex-direction:column;flex-wrap:nowrap;gap:1px}
  .mobile-tally .tally-half{height:9px;min-height:9px;flex-wrap:nowrap;gap:0;overflow:hidden}
  .mobile-tally .tally-midline{height:1px;min-height:1px;margin:0}
  .mobile-tally .tally-group{width:22px;height:19px;flex:0 0 9px;transform:scale(.4);transform-origin:top left;margin-right:-13px}
}


.game{height:100dvh;min-height:0;overflow:hidden}
.game-layout{flex:1;min-height:0}
.scoreboard{display:flex;flex-direction:column;gap:12px;min-width:0;min-height:0;padding:24px 14px;background:transparent}
.scoreboard-head{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:8px;text-align:center;flex:0 0 auto}
.scoreboard-head h2,.mobile-score-head h2{margin:0;color:#e6e5d8;font-size:clamp(16px,2vw,20px);font-weight:700;letter-spacing:.04em;white-space:nowrap}
.scoreboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 1px minmax(0,1fr);gap:8px;flex:1;min-height:0}
.scoreboard-divider,.mobile-score-divider{align-self:stretch;background:rgba(239,235,215,.35)}
.scoreboard .tally-table,.mobile-score .mobile-tally{display:flex;flex-direction:column;width:100%;max-width:none;height:100%;min-height:0;flex:1;margin:0;gap:0}
.scoreboard .tally-half,.mobile-score .tally-half{display:flex;flex:1;flex-wrap:wrap;align-content:flex-start;align-items:flex-start;gap:5px;min-height:0;padding:8px 4px 0;overflow:hidden}
.scoreboard .tally-midline,.mobile-score .tally-midline{width:100%;height:2px;flex:0 0 2px;background:rgba(239,235,215,.35)}
.scoreboard .tally-group,.mobile-score .tally-group{display:block;position:relative;flex:0 0 clamp(15px,3vw,24px);width:clamp(15px,3vw,24px);height:clamp(15px,3vw,24px);padding:0;margin:0;gap:0}
.scoreboard .tally-group i,.mobile-score .tally-group i{position:absolute;display:block;width:2px;height:auto;margin:0;padding:0;border-radius:1px;background:#d7d8cf}
.scoreboard .tally-group i:nth-child(1),.mobile-score .tally-group i:nth-child(1){left:0;top:0;width:2px;height:100%}
.scoreboard .tally-group i:nth-child(2),.mobile-score .tally-group i:nth-child(2){left:0;bottom:0;width:100%;height:2px}
.scoreboard .tally-group i:nth-child(3),.mobile-score .tally-group i:nth-child(3){right:0;top:0;width:2px;height:100%}
.scoreboard .tally-group i:nth-child(4),.mobile-score .tally-group i:nth-child(4){left:0;top:0;width:100%;height:2px}
.scoreboard .tally-group b,.mobile-score .tally-group b{position:absolute;left:0;right:auto;top:auto;bottom:0;width:141%;height:2px;background:#d7d8cf;border-radius:1px;transform:rotate(-45deg);transform-origin:left center}
.tally-board,.tally-board-close,.tally-board-header,.tally-board-grid,.tally-board-divider{display:none!important}




.player-mode .scoreboard{display:none!important}
.player-mode .game-layout{grid-template-columns:minmax(460px,1fr) 225px}
.player-mode .side-panel{display:none}
.player-mode .mobile-score{display:none!important}
.player-mode .hand-card{transform-origin:bottom center}
.player-mode .hand{gap:0}
.player-mode .hand-card{margin:0 -12px}
.player-mode .hand-card-muted{opacity:.62!important}
.player-mode .hand-card:nth-child(1){z-index:1;transform:rotate(-12deg) translate(10px,7px)}
.player-mode .hand-card:nth-child(2){z-index:2;transform:translateY(-1px)}
.player-mode .hand-card:nth-child(3){z-index:3;transform:rotate(12deg) translate(-10px,7px)}
@media(max-width:900px){.scoreboard{padding:20px 10px}.scoreboard-grid{gap:5px}.scoreboard .tally-group{flex-basis:clamp(12px,3vw,18px);width:clamp(12px,3vw,18px);height:clamp(12px,3vw,18px)}}
@media(max-width:640px){
  .game-topbar{flex:0 0 54px}
  .game-layout{display:flex;flex-direction:column;flex:1 1 0;height:auto;min-height:0;overflow:hidden}
  .scoreboard,.side-panel{display:none!important}
  .felt-area{flex:1 1 0;width:100%;height:auto;min-height:0;padding:14px 12px}
  .mobile-score{display:none;flex:0 0 clamp(104px,17dvh,142px);flex-direction:column;gap:4px;padding:8px 14px 10px;background:transparent;border-top:1px solid rgba(239,235,215,.2)}
  .mobile-score-head{display:grid;grid-template-columns:1fr 1fr;gap:6px;text-align:center;flex:0 0 18px;align-items:center}
  .mobile-score-grid{display:grid;grid-template-columns:minmax(0,1fr) 1px minmax(0,1fr);gap:8px;flex:1;min-height:0}
  .mobile-score .tally-half{gap:clamp(3px,1.3vw,8px);padding:5px 7px 0}
  .mobile-score .tally-group{flex-basis:clamp(14px,5vw,22px);width:clamp(14px,5vw,22px);height:clamp(14px,5vw,22px)}
  .mobile-score .tally-group i,.mobile-score .tally-group b{height:2px}
  .mobile-score .tally-group i:nth-child(1),.mobile-score .tally-group i:nth-child(3){width:2px}
  .mobile-score .tally-group i:nth-child(2),.mobile-score .tally-group i:nth-child(4){height:2px}



  .player-mode .hand{top:51%;gap:0;padding:0 8px}
  .player-mode .hand-card{width:clamp(83px,27vw,104px);height:clamp(116px,22dvh,138px);flex:0 1 clamp(83px,27vw,104px);margin:0 -24px}
  .player-mode .hand-card:nth-child(1){transform:rotate(-12deg) translate(11px,8px)}
  .player-mode .hand-card:nth-child(2){transform:translateY(-2px)}
  .player-mode .hand-card:nth-child(3){transform:rotate(12deg) translate(-11px,8px)}
}
@media(max-width:370px){.mobile-score{padding-left:9px;padding-right:9px}}


.scoreboard .tally-half,.mobile-score .tally-half{flex-direction:column;flex-wrap:nowrap;align-items:flex-start;align-content:flex-start;gap:7px}
.scoreboard .tally-group,.mobile-score .tally-group{flex:0 0 clamp(15px,3vw,24px)}


.game-topbar .room-pill,.game-topbar .connection{display:none}
.game-topbar{justify-content:flex-start}
.player-mode .game-layout{display:block;min-height:0;height:auto;flex:1}
.player-mode .side-panel,.player-mode .scoreboard,.player-mode .mobile-score,.player-mode .felt-ring,.player-mode .opponent-info,.player-mode .center-table{display:none!important}
.player-mode .felt-area{height:100%;min-height:0;padding:14px 12px;background:radial-gradient(ellipse at center,#204a36,#193b2b 52%,#153324 100%)}
.player-mode .my-player-info{position:absolute;top:15px;left:50%;width:auto;margin:0;transform:translateX(-50%);justify-content:center}
.player-mode .my-player-info>span:not(.turn-badge){display:none!important}
.player-mode .turn-badge{margin:0;font-size:10px;padding:8px 12px}
.player-mode .hand{top:50%;left:50%;width:calc(100% - 30px);max-width:470px;min-height:0;height:auto;margin:0;transform:translate(-50%,-50%)}
.player-mode .hand-card{width:clamp(96px,11vw,145px);height:clamp(142px,16vw,206px);flex-basis:clamp(96px,11vw,145px);margin:0 -25px}
.player-mode .hand-card .card-rank{font-size:clamp(32px,4vw,46px)}
.player-mode .hand-card .card-suit{font-size:clamp(28px,3.3vw,40px)}
.player-mode .player-actions{position:absolute;left:50%;bottom:22px;width:min(680px,calc(100% - 28px));max-width:none;transform:translateX(-50%);gap:9px}
.player-mode .player-actions .call-button,.player-mode .player-actions .pass-button{height:46px;padding:0 18px;font-size:11px}
@media(max-width:900px){
}
@media(max-width:640px){
  .game-topbar{height:50px;flex:0 0 50px;padding:0 14px}
  .game-topbar .mini-brand{font-size:9px}
  .mobile-score{flex:0 0 clamp(190px,28dvh,250px);gap:7px;padding:10px 18px 12px;border-top:1px solid rgba(239,235,215,.2)}
  .mobile-score-head{flex:0 0 22px}
  .mobile-score-head h2{font-size:12px;letter-spacing:.14em}
  .mobile-score-grid{gap:14px}
  .mobile-score .mobile-tally{width:100%;max-width:none;flex-basis:auto}
  .mobile-score .tally-half{width:100%}
  .mobile-score .tally-half{gap:6px;padding:5px 10px 0}
  .mobile-score .tally-group{flex-basis:25px;width:25px;height:25px}
  .mobile-score .tally-group i,.mobile-score .tally-group b{height:2.5px}
  .mobile-score .tally-group i:nth-child(1),.mobile-score .tally-group i:nth-child(3){width:2.5px}
  .mobile-score .tally-group i:nth-child(2),.mobile-score .tally-group i:nth-child(4){height:2.5px}
  .player-mode .game-layout{flex:1 1 0;display:flex;min-height:0;height:auto;overflow:hidden}
  .player-mode .felt-area{flex:1 1 0;width:100%;padding:8px 12px;min-height:0}
  .player-mode .my-player-info{top:12px}
  .player-mode .hand{top:49%;width:calc(100% - 18px);max-width:380px;padding:0 6px}
  .player-mode .hand-card{width:clamp(92px,29vw,116px);height:clamp(132px,40vw,158px);flex-basis:clamp(92px,29vw,116px);margin:0 -28px}
  .player-mode .player-actions{bottom:14px;gap:6px}
  .player-mode .player-actions .call-button,.player-mode .player-actions .pass-button{height:40px;padding:0 12px;font-size:9px;letter-spacing:.1em}
}
@media(max-width:640px){
}
@media(max-width:640px){
}
@media(max-width:640px){
}


@media(max-width:640px){
}


.sprite-card{background-image:var(--sprite-image);background-size:400% 100%;background-position:var(--sprite-position);background-repeat:no-repeat}
.hand-card.sprite-card{padding:0;background-color:#f2eddf}
.played-card.sprite-card{background-color:#f5f0df}
.muestra-card.sprite-card{color:transparent;background-color:#f5f0df;opacity:1}
.muestra-card.sprite-card .sr-only{display:block}
.deck-stack{background-image:url('./assets/cards/13.jpg');background-size:300% 100%;background-position:100% 0%;background-repeat:no-repeat;color:transparent}
.deck-stack span{display:none}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}


.player-mode .hand-card:disabled,
.player-mode .hand-card-muted{opacity:1!important;filter:none!important}
.player-mode .hand-card[aria-disabled="true"]{cursor:not-allowed}

@media(max-width:640px){
}
@media(max-width:640px){
}
@media(max-width:640px){
}
@media(max-width:640px){
}


html,body{touch-action:manipulation;-webkit-text-size-adjust:100%}
button,a,input,select,textarea{touch-action:manipulation}
.muestra-card{touch-action:none}


@media(max-width:640px){
}
@media(max-width:640px){
}

.player-sound-toggle{position:absolute;right:12px;top:72px;z-index:80;padding:9px 12px;border:1px solid rgba(239,235,215,.4);border-radius:6px;background:#193b2b;color:#f0eee2;font-size:11px;touch-action:manipulation}
.player-sound-toggle[aria-pressed="true"]{border-color:#d8b875;color:#f2d99f}
.call-notice{position:absolute;left:16px;right:16px;top:122px;z-index:79;padding:14px 16px;border:1px solid #d8b875;border-radius:8px;background:#ead7a5;color:#15251b;text-align:center;font-size:16px;line-height:1.4;pointer-events:none}

.opening-draw{position:absolute;inset:0 0 48px;z-index:70;background:#193b2b;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;padding:24px;text-align:center}
.opening-draw>p{font-size:12px;letter-spacing:.12em;max-width:280px}
.opening-draw .draw-deck{position:static!important;transform:none!important;display:block;width:110px!important;height:160px!important;flex:0 0 160px;background-image:url('./assets/cards/13.jpg');background-size:300% 100%;background-position:100% 0%;background-repeat:no-repeat;border:0;border-radius:9px;color:transparent;touch-action:manipulation}
.draw-deck:disabled{cursor:default}
.draw-results{display:flex;justify-content:center;gap:24px;min-height:180px}
.draw-results>div{width:110px;display:flex;flex-direction:column;align-items:center;gap:8px;font-size:12px}
.draw-card{width:100px;height:145px;border-radius:6px;background-color:#f2eddf}
.envido-picker{position:absolute;z-index:85;bottom:110px;left:50%;transform:translateX(-50%);width:min(350px,calc(100% - 24px));padding:16px 12px;border:1px solid #d8b875;border-radius:12px;background:#193b2b;color:#f0eee2;text-align:center}
.envido-picker p{margin:0 0 12px;font-size:14px}
.number-wheel{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior:contain;padding:8px calc(50% - 28px);scrollbar-width:none;touch-action:pan-x}
.number-wheel::-webkit-scrollbar{display:none}
.number-wheel button{flex:0 0 56px;width:56px;height:56px;padding:0;border:0;border-radius:8px;background:transparent;font-size:24px;color:#f0eee2;scroll-snap-align:center}
.number-wheel button[aria-selected="true"]{background:#d8b875;color:#15251b}
.number-wheel button:disabled{color:#718479}
.declaration-buttons{display:flex;gap:10px;justify-content:center;margin-top:12px}
.envido-picker .call-button,.envido-picker .pass-button{height:42px}

.opening-draw{justify-content:flex-start;overflow:auto;padding:clamp(45px,11dvh,110px) 18px 28px}
.opening-draw>p{margin:0;max-width:320px;font-size:clamp(13px,4vw,18px);line-height:1.4}
.draw-results{width:min(100%,420px);gap:clamp(20px,10vw,68px);align-items:flex-start}
.draw-results>div{flex:1;max-width:150px;width:auto;min-width:0;gap:8px}
.draw-results .draw-result>span{min-height:34px;display:flex;align-items:center;justify-content:center;font-size:clamp(12px,3.6vw,16px);line-height:1.2}
.draw-results .draw-card{width:clamp(92px,27vw,128px);height:clamp(134px,39vw,186px);max-width:100%;transition:transform .35s ease;transform:rotateY(0deg);backface-visibility:hidden}
.draw-results .draw-card-new{animation:draw-flip .4s ease-out both}
.draw-results .draw-result>b{font-size:12px;font-weight:500;color:#e5d49d}
.draw-result.draw-winner{color:#f2d99f}
.opening-draw small{max-width:320px;margin-top:4px;font-size:clamp(12px,3.6vw,15px);line-height:1.45;color:#e5d49d}
.opening-draw .draw-deck:not(:disabled){cursor:pointer;animation:deck-pulse 1.5s ease-in-out infinite}
.opening-draw .draw-deck:not(:disabled):active{transform:scale(.96)!important}
@keyframes draw-flip{from{opacity:.3;transform:rotateY(90deg)}to{opacity:1;transform:rotateY(0)}}
@keyframes deck-pulse{50%{box-shadow:5px 6px 0 #142a1d,6px 7px 0 #b19e70,0 0 0 9px #d8b87522}}


.player-mode.two-device-mode .deck-stack,
.player-mode.two-device-mode .trick-cards,
.player-mode.two-device-mode .muestra-card{display:block!important}
.player-mode.two-device-mode .center-table{position:relative;inset:auto;transform:none;width:100%;height:180px;margin:0 auto 12px}
.player-mode.two-device-mode .deck-stack{position:absolute;top:50%;left:auto;right:12%;width:58px;height:84px;transform:translateY(-50%);z-index:4}
.player-mode.two-device-mode .muestra-card{position:absolute;top:50%;left:auto;right:calc(12% + 44px);width:58px;height:84px;transform:translateY(-50%) rotate(-98deg);z-index:3}
.player-mode.two-device-mode .trick-cards{position:absolute;inset:0;pointer-events:none;z-index:5}
.player-mode.two-device-mode .played-card{position:absolute;top:50%;left:20%;width:62px;height:90px;transform:translate(-50%,-50%) rotate(-6deg)}
.player-mode.two-device-mode .played-card-player2{left:40%;transform:translate(-50%,-50%) rotate(6deg)}
@media(max-width:700px){
  .player-mode.two-device-mode .felt-area{padding-top:8px;overflow-y:auto}
  .player-mode.two-device-mode .center-table{height:150px;flex-shrink:0}
  .player-mode.two-device-mode .hand{margin-top:8px}
}
.player-mode.two-device-mode .center-table{display:block!important;position:absolute;top:42px;left:0;width:100%;height:clamp(130px,24dvh,190px);margin:0}
.player-mode.two-device-mode .hand{top:64%;margin:0}
.player-mode.two-device-mode .mobile-score{display:flex!important;flex-shrink:0}
.player-mode.two-device-mode .my-player-info{top:8px}
@media(max-height:650px){
  .player-mode.two-device-mode .center-table{height:110px;top:35px}
  .player-mode.two-device-mode .hand-card{width:78px;height:112px;flex-basis:78px}
  .player-mode.two-device-mode .hand{top:62%}
}
.player-mode.two-device-mode .deck-stack.hidden,
.player-mode.two-device-mode .muestra-card.hidden{display:none!important}

.player-mode.two-device-mode .mobile-score{flex:0 0 96px;height:96px;min-height:0;max-height:96px;padding:5px 14px 7px;gap:3px;overflow:hidden}
.player-mode.two-device-mode .mobile-score-head{flex:0 0 16px}
.player-mode.two-device-mode .mobile-score-head h2{font-size:10px;letter-spacing:.1em}
.player-mode.two-device-mode .mobile-score-grid{height:64px;min-height:0;gap:12px;align-items:center}
.player-mode.two-device-mode .mobile-tally{height:64px;min-height:0;width:100%;max-width:none;overflow:hidden;margin:0;padding:0}
.player-mode.two-device-mode .compact-score-sticks{display:block;width:100%;height:64px}
.player-mode.two-device-mode .muestra-card.sprite-card{transform:translate(var(--muestra-dx,0px),calc(-50% + var(--muestra-dy,0px))) rotate(-98deg);touch-action:none;cursor:grab}
.player-mode.two-device-mode .muestra-card.sprite-card.dragging{z-index:10;cursor:grabbing}
.player-mode.two-device-mode .center-table{z-index:6;overflow:visible}
@media(max-height:650px){.player-mode.two-device-mode .mobile-score{flex-basis:80px;height:80px;max-height:80px}.player-mode.two-device-mode .mobile-score-grid,.player-mode.two-device-mode .mobile-tally,.player-mode.two-device-mode .compact-score-sticks{height:48px}}



#welcome-view{background:linear-gradient(145deg,#153e30,#0b241c);padding:24px;gap:24px;height:100dvh;min-height:0;max-width:none;overflow:hidden}
#welcome-view .home-topbar{width:min(1040px,100%);margin:0 auto;height:44px}
#welcome-view .brand-lockup{font-size:16px;letter-spacing:.12em;gap:10px}
#welcome-view .brand-mark{border:0;background:#e8c983;color:#193429;border-radius:10px;width:38px;height:38px}
#welcome-view .home-edition{font-size:14px;color:#b1c8be;letter-spacing:0}
#welcome-view .home-content{width:min(1040px,100%);display:grid;grid-template-columns:300px minmax(0,1fr);gap:48px;align-items:start;margin:0 auto;flex:1;min-height:0}
#welcome-view .home-intro{display:flex;flex-direction:column;align-items:stretch;gap:24px;padding-top:24px}
#welcome-view .home-heading h1{font-family:'DM Sans',sans-serif;font-size:38px;line-height:1.15;letter-spacing:-.04em;margin:0;font-weight:700}
#welcome-view .home-actions{width:100%;display:flex;flex-direction:column;gap:12px}
#welcome-view .primary{border-radius:14px;height:56px;background:#e8c983;font-size:16px;padding:0 20px;box-shadow:0 5px 22px #0002}
#welcome-view .arrow{font-size:25px}

#welcome-view .home-lobby{padding:0;border:0;background:none;align-self:stretch;max-height:none;overflow:hidden}
#welcome-view .home-lobby-heading{flex-direction:column;align-items:stretch;gap:18px}
#welcome-view .home-section-title h2{font-family:'DM Sans',sans-serif;font-size:22px;line-height:1.2;font-weight:700;letter-spacing:-.02em}
#welcome-view .home-name{width:100%;max-width:none}
#welcome-view .field-label{font-size:14px;font-weight:500;letter-spacing:0;color:#bfd1c7;margin-bottom:8px}
#welcome-view .name-input{height:48px;font-size:16px;border-radius:12px;background:#08201866;border:1px solid #ffffff24;padding:0 14px}
#welcome-view .open-room-list{display:flex;flex-direction:column;gap:10px;margin-top:18px;overflow:auto;min-height:0;flex:1;padding:0 3px 12px 0;scrollbar-width:thin}
#welcome-view .lobby-card{border:1px solid #ffffff18;border-radius:16px;background:#ffffff06;padding:16px;flex-shrink:0}
#welcome-view .lobby-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
#welcome-view .lobby-card h3{font-family:'DM Sans',sans-serif;font-size:18px;font-weight:600;line-height:1.2;margin:0;letter-spacing:-.02em}
#welcome-view .lobby-meta{font-size:13px;margin:6px 0 0;color:#9fb8ab;line-height:1.3}
#welcome-view .lobby-count{font-size:13px;border:0;border-radius:20px;padding:7px 10px;background:#85b39b20;color:#bdd6c8;white-space:nowrap}
#welcome-view .lobby-join-options{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
#welcome-view .lobby-join-options .button{height:44px;min-height:44px;min-width:0;flex:1;border:1px solid #e8c98355;border-radius:10px;background:#e8c9830a;padding:0 12px;font-size:14px;font-weight:500;color:#efdaab;gap:12px;white-space:nowrap}
#welcome-view .lobby-join-options .button span{font-size:20px;line-height:1}
#welcome-view .lobby-join-options .button:hover{background:#e8c98322;border-color:#e8c983}
#welcome-view .empty-lobby{padding:32px 12px;border:1px dashed #ffffff25;border-radius:16px;text-align:center;color:#b8cfc1}
#welcome-view .empty-lobby strong{font-size:16px;line-height:1.4;font-weight:500}
#welcome-view .empty-lobby>span{font-size:30px;color:#e8c983}
#welcome-view :focus-visible,#setup-view :focus-visible{outline:3px solid #e8c983;outline-offset:3px}
#setup-view{background:linear-gradient(145deg,#153e30,#0b241c);height:100dvh;min-height:0;overflow:auto}
#setup-view .topbar{height:64px;min-height:64px;padding:0 24px;border:0;width:100%;max-width:650px;margin:0 auto}
#setup-view .icon-button{border-radius:12px;width:44px;height:44px;font-size:22px;background:#ffffff08;border:1px solid #ffffff20}
#setup-view .topbar-spacer{width:44px}
#setup-view .setup-content{width:min(460px,100%);margin:0 auto;padding:12px 24px 24px}
#setup-view h2{font-family:'DM Sans',sans-serif;font-size:30px;font-weight:700;line-height:1.2;letter-spacing:-.035em;margin:0 0 24px}
#setup-view .field-label{font-size:14px;font-weight:500;letter-spacing:0;color:#bfd1c7;margin:18px 0 8px}
#setup-view .name-input{height:48px;font-size:16px;border-radius:12px;padding:0 14px;border:1px solid #ffffff24;background:#08201866;color:#f3f4e8}
#setup-view .name-input::placeholder,#welcome-view .name-input::placeholder{color:#89a89a}
#setup-view .radio{display:none}
#setup-view .full-button{height:54px;justify-content:center;border-radius:14px;font-size:16px;background:#e8c983;margin-top:24px}
#setup-view .full-button .arrow{display:none}
.create-icon,.back-icon{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.create-icon{width:21px;height:21px}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.mode-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.mode-option{min-height:68px;padding:10px 12px;border:1px solid #ffffff24;border-radius:12px;background:#ffffff04;color:#afc6b8;text-align:left;display:flex;flex-direction:column;justify-content:center;gap:5px}
.mode-option strong{font-size:14px;font-weight:600;color:inherit}
.mode-option span{font-size:11px;color:#91aa9b;line-height:1.25}
.mode-option.selected{border-color:#e8c983;background:#e8c98314;color:#efd69d}
.mode-option:focus-visible,.points-option:focus-visible{outline:3px solid #e8c983;outline-offset:2px}
.suit-icon{width:1em;height:1em;display:block;fill:currentColor;overflow:visible}
.suit-icon .suit-cutout{fill:#153e30}
.deck-mark .suit-icon{width:23px;height:23px;color:#d8b875}
.empty-lobby-icon{display:flex;justify-content:center;color:#d8b875}
.empty-lobby-icon .suit-icon{width:28px;height:28px}
.seat-icon .suit-icon{width:18px;height:18px}
.deck-icon,.sound-icon{display:inline-block;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.points-picker{position:relative}
.points-picker-trigger{width:100%;height:50px;padding:0 14px;border:1px solid #ffffff24;border-radius:12px;background:#08201866;color:#f3f4e8;font:inherit;font-size:16px;text-align:left;display:flex;align-items:center;justify-content:space-between;touch-action:manipulation}
.points-picker-trigger svg{width:20px;height:20px;fill:none;stroke:#e8c983;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
.points-picker-trigger[aria-expanded=true] svg{transform:rotate(180deg)}
.points-picker-menu{position:absolute;z-index:30;left:0;right:0;bottom:calc(100% + 8px);padding:8px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;border:1px solid #d8b87566;border-radius:16px;background:linear-gradient(150deg,#143b2d,#0b241b);box-shadow:0 14px 36px #0008}
.points-picker-menu.hidden{display:none!important}
.points-option{height:55px;padding:4px;border:1px solid transparent;border-radius:11px;background:#ffffff05;color:#e2ebe3;font:inherit;font-size:16px;font-weight:600;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;touch-action:manipulation}
.points-option span{font-size:10px;font-weight:400;color:#9db3a4}
.points-option.selected{border-color:#e8c983;background:#e8c98317;color:#f0d694}
.points-option.selected span{color:#d8c390}
@media(max-width:380px){.mode-option{padding:8px 9px}.mode-option strong{font-size:13px}.mode-option span{font-size:10px}.points-option{height:50px}}
@media(max-width:700px){
 #welcome-view{padding:18px 20px;gap:20px}
 #welcome-view .home-content{display:flex;flex-direction:column;gap:26px}
 #welcome-view .home-intro{width:100%;padding:0;gap:16px}
 #welcome-view .home-heading h1{font-size:28px}
 #welcome-view .home-actions{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:10px}
 #welcome-view .home-actions .primary{height:52px;font-size:15px}
 #welcome-view .home-lobby{flex:1;min-height:0;width:100%}
 #welcome-view .home-lobby-heading{gap:14px}
 #welcome-view .home-section-title h2{font-size:21px}
 #welcome-view .open-room-list{margin-top:14px}
 #welcome-view .lobby-card{padding:14px}
}
@media(max-height:650px){
 #welcome-view{gap:12px;padding-top:12px;padding-bottom:12px}
 #welcome-view .home-content{gap:16px}
 #welcome-view .home-heading{display:none}
 #setup-view .setup-content{padding-top:0}
 #setup-view h2{font-size:26px;margin-bottom:16px}
 #setup-view .field-label{margin-top:12px}
 #setup-view .full-button{margin-top:16px}
}
.lobby-player-button > .suit-icon { width: 22px; height: 22px; flex: 0 0 22px; }


html,body { background:#12382b; }
body { min-height:100dvh; }
.app-shell { min-height:100dvh; background:#12382b; }
#welcome-view,#setup-view { background:#12382b; }
#setup-view .table-device-toggle { display:flex;align-items:center;justify-content:space-between;gap:16px;margin:22px 0 6px;padding:14px;border:1px solid #ffffff24;border-radius:12px;cursor:pointer;color:#dce9e1;font-size:14px;line-height:1.4;position:relative; }
.table-device-toggle input { position:absolute;right:14px;width:44px;height:26px;margin:0;opacity:0;cursor:pointer; }
.toggle-track { width:44px;height:26px;flex-shrink:0;border-radius:20px;background:#ffffff20;border:1px solid #ffffff25;position:relative;transition:background .2s;pointer-events:none; }
.toggle-track::after { content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#b8ccc0;transition:transform .2s,background .2s; }
.table-device-toggle input:checked + .toggle-track { background:#e8c983;border-color:#e8c983; }
.table-device-toggle input:checked + .toggle-track::after { transform:translateX(18px);background:#193429; }
.table-device-toggle input:focus-visible + .toggle-track { outline:3px solid #e8c983;outline-offset:3px; }
#welcome-view .empty-lobby { padding:22px 12px; }
#welcome-view .empty-lobby strong { font-family:'DM Sans',sans-serif; }

.invite-whatsapp{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:48px;margin-top:18px;padding:12px 16px;border:1px solid #80c99a66;border-radius:12px;background:#80c99a12;color:#c8efd5;text-decoration:none;font-size:15px;font-weight:600;touch-action:manipulation}
.invite-whatsapp svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.invite-whatsapp:focus-visible{outline:3px solid #e8c983;outline-offset:3px}

.scoreboard,.mobile-score{cursor:pointer;touch-action:manipulation}
.score-details{padding:0;border:1px solid #d8b87566;border-radius:20px;width:min(460px,calc(100vw - 32px));max-height:80dvh;overflow:hidden;color:#f7f3e9;background:#12382b;box-shadow:0 20px 80px #0008}
.score-details::backdrop{background:#03150ec4}
.score-details-panel{padding:20px;display:flex;flex-direction:column;max-height:80dvh;box-sizing:border-box}
#score-details-content{overflow-y:auto;min-height:0;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;padding-right:4px}
.score-details-header,.score-details-dismiss{flex-shrink:0}
.score-detail-hand+ .score-detail-hand{border-top:1px solid #ffffff26;padding-top:18px}
.score-detail-hand h3{margin:0 0 12px;color:#e8c983;font-size:16px}
.score-details-dismiss{margin-top:12px}
.score-details-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.score-details-header h2{font:600 21px 'DM Sans',sans-serif;margin:0}
.score-details-header button{display:grid;place-items:center;width:44px;height:44px;border:1px solid #ffffff26;border-radius:12px;background:#ffffff08}
.score-details-header svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.score-detail-player{margin-bottom:18px;border:1px solid #ffffff20;border-radius:14px;padding:14px}
.score-detail-player header{display:flex;justify-content:space-between;gap:10px;font-size:16px}
.score-detail-player header b{color:#e8c983;white-space:nowrap}
.score-detail-player p{display:flex;align-items:start;gap:10px;font-size:14px;line-height:1.5;color:#bfd1c7;margin:12px 0 0}
.score-detail-player p span{color:#efd69d;font-weight:600;white-space:nowrap}
.score-details-dismiss{width:100%;min-height:48px;border:0;border-radius:12px;background:#e8c983;color:#193429;font-weight:600}
.score-details-empty{color:#bfd1c7;font-size:16px;line-height:1.5}


.player-mode.two-device-mode .felt-area{overflow:hidden}
.player-mode.two-device-mode .hand{top:76%;margin:0}
.player-mode.two-device-mode .mobile-score{
 position:absolute;top:calc(42px + clamp(130px,24dvh,190px)/2 + 52px);right:12%;left:auto;bottom:auto;
 width:min(144px,44vw);height:clamp(110px,25dvh,180px);max-height:none;min-height:0;flex:none;
 padding:0;gap:5px;background:transparent;border:0;overflow:visible;z-index:7;
}
.player-mode.two-device-mode .mobile-score.hidden{display:none!important}
.player-mode.two-device-mode .mobile-score-head{height:16px;flex:0 0 16px;width:100%}
.player-mode.two-device-mode .mobile-score-head h2{font-size:9px;letter-spacing:.05em}
.player-mode.two-device-mode .mobile-score-grid{flex:1;min-height:0;height:auto;width:100%;gap:8px;align-items:stretch}
.player-mode.two-device-mode .mobile-tally{height:100%;min-height:0;overflow:visible;padding:0;margin:0}
.player-mode.two-device-mode .compact-score-sticks{display:block;width:100%;height:100%;overflow:visible}
.player-mode.two-device-mode .mobile-score-divider{height:100%;align-self:stretch}
@media(max-height:650px){
 .player-mode.two-device-mode .mobile-score{top:142px;height:110px;width:130px}
 .player-mode.two-device-mode .hand{top:77%}
}


#welcome-view .home-actions{display:flex;flex-direction:column;grid-template-columns:none}
#welcome-view .home-actions .primary{width:100%}





.end-hand-reveal{position:absolute;inset:5% 3% 9%;z-index:110;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;background:#12382b;overflow:auto;padding:14px 8px}
.end-hand-reveal.hidden{display:none!important}
.end-reveal-group{width:100%;display:flex;flex-direction:column;align-items:center;gap:12px}
.end-reveal-group h3{margin:0;text-align:center;color:#f0eee2;font-size:18px;font-family:'DM Sans',sans-serif;font-weight:600;line-height:1.3}
.end-reveal-group h3 span{display:block;margin-top:4px;color:#e8c983;font-size:13px;font-weight:400}
.end-reveal-cards{display:flex;justify-content:center;gap:10px;width:100%}
.end-reveal-card{width:clamp(66px,20vw,130px);aspect-ratio:2/3;flex:0 0 auto;border-radius:9px;background-color:#f2eddf;box-shadow:0 4px 12px #0003}
.reveal-mode .hand,.reveal-mode .trick-cards{visibility:hidden}
@media(max-height:650px){.end-hand-reveal{gap:12px;padding:8px}.end-reveal-card{width:clamp(60px,17vw,94px)}.end-reveal-group{gap:7px}}

.round-pause-timer{position:absolute;top:54px;left:50%;transform:translateX(-50%);z-index:120;padding:5px 9px;border-radius:20px;border:1px solid #e8c98345;background:#12382b;color:#e8c983;font:500 11px 'DM Sans',sans-serif;letter-spacing:.02em;white-space:nowrap;pointer-events:none;font-variant-numeric:tabular-nums}
.round-pause-timer.hidden{display:none!important}


.player-mode .hand{perspective:900px;overflow:visible}
.player-mode .hand-card{
 width:clamp(110px,34vw,140px);
 height:clamp(158px,48vw,190px);
 flex-basis:clamp(110px,34vw,140px);
 margin-left:-32px;margin-right:-32px;
 touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;
 cursor:grab;will-change:transform;
}
.player-mode .hand-card:first-child{margin-left:0}
.player-mode .hand-card:last-child{margin-right:0}
.player-mode .hand-card.dragging{
 z-index:40;cursor:grabbing;
 transform:translate3d(var(--drag-x,0px),var(--drag-y,0px),0) scale(1.045)!important;
 transition:none;box-shadow:0 16px 32px #06160dc4;
}
.player-mode .hand-card:focus-visible{outline:2px solid #e8c983;outline-offset:3px}
.player-mode .player-actions{width:calc(100% - 24px);max-width:500px;bottom:12px;gap:0}
.player-mode .action-group{width:100%;display:flex;flex-direction:column;align-items:center;gap:6px}
.player-mode .action-caption{font:600 9px 'DM Sans',sans-serif;letter-spacing:.16em;color:#b5c7bb}
.player-mode .action-buttons{width:100%;display:flex;justify-content:center;align-items:stretch;flex-wrap:wrap;gap:7px}
.player-mode .action-buttons .call-button,.player-mode .action-buttons .pass-button{
 min-width:82px;min-height:48px;height:auto;padding:7px 11px;border-radius:10px;
 display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
 font:700 13px 'DM Sans',sans-serif;letter-spacing:.04em;line-height:1.2;
}
.player-mode .action-buttons .call-button{background:#e8c983;color:#193429;border-color:#e8c983;box-shadow:0 2px 8px #071b1140}
.player-mode .action-buttons .pass-button{background:#163a2c;border-color:#93aa9a;color:#e9eee5}
.player-mode .action-buttons strong{font-weight:inherit}
@media(max-width:640px){
 .player-mode .hand{top:48%;width:calc(100% - 12px);max-width:440px;padding:0 6px;z-index:3}
 .player-mode .hand-card{width:clamp(110px,34vw,136px);height:clamp(158px,48vw,184px);flex-basis:clamp(110px,34vw,136px);margin-left:-31px;margin-right:-31px}
 .player-mode .hand-card:first-child{margin-left:0}
 .player-mode .hand-card:last-child{margin-right:0}
 .player-mode .player-actions{bottom:9px;width:calc(100% - 16px)}
 .player-mode .action-buttons{gap:6px}
 .player-mode .action-buttons .call-button,.player-mode .action-buttons .pass-button{min-width:88px;min-height:46px;padding:8px 9px;font-size:12px}
}
@media(max-width:370px){
 .player-mode .hand-card{width:clamp(106px,33vw,124px);height:clamp(152px,47vw,170px);flex-basis:clamp(106px,33vw,124px);margin-left:-28px;margin-right:-28px}
}


@media(max-width:640px){
 .player-mode .hand-card{width:clamp(132px,40.8vw,163px);height:clamp(190px,57.6vw,221px);flex-basis:clamp(132px,40.8vw,163px);margin-left:-38px;margin-right:-38px}
 .player-mode .hand-card:first-child{margin-left:0}
 .player-mode .hand-card:last-child{margin-right:0}
}
@media(max-width:370px){
 .player-mode .hand-card{width:clamp(127px,39.6vw,149px);height:clamp(182px,56.4vw,204px);flex-basis:clamp(127px,39.6vw,149px);margin-left:-34px;margin-right:-34px}
}


.player-mode .hand-card{translate:var(--preview-x,0px) 0;transition:translate .16s ease,transform .18s ease,box-shadow .18s ease}
.player-mode .hand-card.dragging{translate:0 0;transition:none}
.player-mode .hand-card.launching-card{visibility:hidden}
.card-flight.hand-card{
 position:fixed!important;z-index:10000!important;margin:0!important;pointer-events:none!important;
 translate:none!important;rotate:none!important;transform-origin:center!important;
 visibility:visible!important;opacity:1!important;transition:none!important;
 animation:hand-card-slide-out .42s cubic-bezier(.32,.02,.62,1) forwards!important;
 box-shadow:0 12px 28px #041b1155!important;
}
@keyframes hand-card-slide-out{
 from{transform:translate3d(0,0,0) rotate(0deg)}
 to{transform:translate3d(0,var(--flight-y),0) rotate(-4deg)}
}
@media(prefers-reduced-motion:reduce){
 .player-mode .hand-card{transition:none}
 .card-flight.hand-card{animation-duration:.1s!important}
}


.player-mode.two-device-mode .hand{
  top:calc(100% - 156px);
  width:calc(100% - 20px);
  max-width:360px;
  z-index:5;
}
.player-mode.two-device-mode .hand-card{
  width:clamp(110px,34vw,136px);
  height:clamp(158px,48vw,184px);
  flex-basis:clamp(110px,34vw,136px);
  margin-left:-31px;margin-right:-31px;
}
.player-mode.two-device-mode .hand-card:first-child{margin-left:0}
.player-mode.two-device-mode .hand-card:last-child{margin-right:0}
.player-mode.two-device-mode .player-actions{z-index:20}
.player-mode.two-device-mode .mobile-score{
  width:126px;
  height:var(--compact-tally-height);
  min-height:0;max-height:var(--compact-tally-height);
  overflow:visible;
}
.player-mode.two-device-mode .mobile-score-grid{
  height:calc(var(--compact-tally-height) - 18px);
  min-height:0;
  gap:7px;
  align-items:stretch;
}
.player-mode.two-device-mode .mobile-tally,
.player-mode.two-device-mode .compact-score-sticks{
  height:100%;
  min-height:0;
}
.player-mode.two-device-mode .mobile-score-divider{
  height:100%;
  max-height:calc(var(--compact-tally-height) - 18px);
  align-self:stretch;
}
.card-flight.two-device-flight{
  animation-name:hand-card-slide-away!important;
  transform-origin:center center!important;
}
@keyframes hand-card-slide-away{
  from{transform:translate3d(0,0,0) rotate(0deg) scale(1);opacity:1}
  to{transform:translate3d(var(--flight-x),var(--flight-y),0) rotate(-6deg) scale(var(--flight-scale));opacity:.96}
}
@media(max-height:650px){
  .player-mode.two-device-mode .hand{top:calc(100% - 138px)}
  .player-mode.two-device-mode .hand-card{width:clamp(96px,31vw,112px);height:clamp(140px,42vw,160px);flex-basis:clamp(96px,31vw,112px);margin-left:-26px;margin-right:-26px}
}



.player-mode.two-device-mode .hand{top:calc(100% - 180px)}
@media(max-height:650px){
  .player-mode.two-device-mode .hand{top:calc(100% - 162px)}
}


.player-mode.two-device-mode .mobile-score{width:118px}
.player-mode.two-device-mode .mobile-score-head h2{font-size:16px;letter-spacing:.04em}



.player-mode.two-device-mode .played-card{animation:none}


.player-mode .action-verb{font:700 8px 'DM Sans',sans-serif;letter-spacing:.13em;line-height:1;color:currentColor;opacity:.78}
.player-mode .action-buttons .call-button,.player-mode .action-buttons .pass-button{gap:3px}


.player-sound-toggle{width:38px;height:38px;padding:8px;display:grid;place-items:center;border-radius:50%}
.player-sound-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.player-mode.two-device-mode .mobile-score{width:69px}
.player-mode.two-device-mode .mobile-score-head{grid-template-columns:30px 30px;gap:9px;height:24px;flex-basis:24px}
.player-mode.two-device-mode .mobile-score-head h2{font-size:18px;letter-spacing:0;text-align:center}
.player-mode.two-device-mode .mobile-score-grid{grid-template-columns:30px 1px 30px;gap:4px;height:calc(var(--compact-tally-height) - 29px)}
.player-mode.two-device-mode .mobile-score-divider{max-height:calc(var(--compact-tally-height) - 29px)}

.turn-timer{position:absolute;top:96px;left:50%;transform:translateX(-50%);z-index:85;max-width:calc(100% - 24px);padding:6px 12px;border:1px solid #e8c98355;border-radius:20px;background:#12382bef;color:#e8c983;font:600 12px 'DM Sans',sans-serif;white-space:nowrap;pointer-events:none;font-variant-numeric:tabular-nums}
.turn-timer-warning{background:#59271ef2;border-color:#edaa80;color:#ffe0ca}
.turn-timer.hidden{display:none!important}


.envido-picker{top:72px;bottom:auto;padding:12px}
.envido-picker p{margin-bottom:6px;font-size:12px}
.declaration-buttons{margin-top:6px}
.declaring-envido .hand-card-muted{opacity:1!important}
.game-topbar .player-sound-toggle{position:static;flex:0 0 38px;margin-left:auto;z-index:80}
.turn-timer,.round-pause-timer{top:72px;right:12px;left:auto;transform:none;min-width:44px;max-width:80px;padding:9px 8px;text-align:center;font-size:14px;border-radius:20px}


.player-mode .turn-badge{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.turn-badge .turn-timer{position:static;inset:auto;transform:none;min-width:0;max-width:none;padding:0 0 0 8px;border:0;border-left:1px solid currentColor;border-radius:0;background:transparent;font-size:12px;line-height:1.2;letter-spacing:0;color:var(--gold)}
.turn-badge .turn-timer-warning{color:#ffe0ca}
.player-mode.two-device-mode .center-table{top:22px}
.player-mode.two-device-mode .mobile-score{top:calc(42px + clamp(130px,24dvh,190px)/2 + 20px);right:4%}
.player-mode.two-device-mode .hand-card{width:clamp(104.5px,32.3vw,129.2px);height:clamp(150.1px,45.6vw,174.8px);flex-basis:clamp(104.5px,32.3vw,129.2px)}
@media(max-height:650px){
  .player-mode.two-device-mode .center-table{top:15px}
  .player-mode.two-device-mode .mobile-score{top:110px}
  .player-mode.two-device-mode .hand-card{width:clamp(91.2px,29.45vw,106.4px);height:clamp(133px,39.9vw,152px);flex-basis:clamp(91.2px,29.45vw,106.4px)}
}


.turn-badge .turn-timer,.turn-badge .round-pause-timer{position:static;inset:auto;transform:none;min-width:0;max-width:none;padding:0 0 0 8px;border:0;border-left:1px solid currentColor;border-radius:0;background:transparent;font-size:12px;line-height:1.2;letter-spacing:0;color:var(--gold)}
.player-mode.two-device-mode .deck-stack,.player-mode.two-device-mode .muestra-card{top:calc(50% - 18px)}


.opening-invitation #welcome-view{display:none!important}
.opening-invitation #invite-view{display:flex}
.invitation-view{height:100dvh;min-height:0;align-items:center;justify-content:center;padding:24px;background:linear-gradient(145deg,#153e30,#0b241c)}
.invitation-content{width:min(360px,100%)}
.invitation-content .brand-lockup{margin-bottom:36px}
.invitation-content h2{font-family:'Playfair Display',serif;font-size:42px;line-height:1.1;margin:0 0 18px}
.invitation-content p{color:#b8c8bd;font-size:15px;line-height:1.6;margin:0 0 24px}
#invite-loading{text-align:center;padding:30px 0}
.invitation-spinner{width:36px;height:36px;border:3px solid #d8b87530;border-top-color:var(--gold);border-radius:50%;margin:0 auto 20px;animation:invitation-spin .8s linear infinite}
@keyframes invitation-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.invitation-spinner{animation:none}}


.player-mode .fold-hand{position:absolute;right:14px;top:48px;z-index:25;height:32px;padding:0 10px;border:1px solid #a1b4a366;border-radius:6px;background:#12382b;color:#dce5dc;font-size:10px;font-weight:600;letter-spacing:.04em}
.player-mode .fold-hand:disabled{opacity:.4;cursor:default}
.player-mode.two-device-mode .deck-stack{left:calc(12% + 44px);right:auto}
.player-mode.two-device-mode .muestra-card{left:12%;right:auto}
.turn-badge .turn-timer.turn-timer-warning{color:#ffab8e;border-color:#ffab8e;background:#59271e;padding:3px 6px;border-radius:4px}


.player-mode.two-device-mode .deck-stack{left:auto;right:12%}
.player-mode.two-device-mode .muestra-card{left:auto;right:calc(12% + 44px)}
.player-mode .player-controls{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);width:min(680px,calc(100% - 28px));display:flex;flex-direction:column;align-items:center;gap:7px;z-index:25}
.player-mode .player-controls .player-actions{position:static;inset:auto;transform:none;width:100%;margin:0}
.player-mode .player-controls .fold-hand{position:static;inset:auto;transform:none;align-self:center;width:150px;height:30px;flex-shrink:0}
.player-mode.two-device-mode .hand{top:calc(100% - 210px)}
@media(max-height:650px){.player-mode.two-device-mode .hand{top:calc(100% - 192px)}}


.player-mode .player-controls{gap:0}
.player-mode .player-actions .fixed-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;width:100%}
.player-mode .fixed-actions button,.player-mode .player-controls .fixed-actions .fold-hand{position:static;inset:auto;transform:none;width:100%;min-width:0;height:34px;min-height:34px;margin:0;padding:4px 3px;border-radius:7px;font-size:10px;line-height:1.1;letter-spacing:.015em;white-space:normal}
.player-mode .fixed-actions button:disabled{opacity:.32;cursor:default;pointer-events:none}


.player-mode .player-controls{flex-direction:row;align-items:flex-end;gap:6px}
.player-mode .player-controls .player-actions{flex:1;min-width:0;display:block}
.player-mode .player-actions .compact-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px}
.player-mode .compact-actions .call-button,.player-mode .compact-actions .pass-button{flex:1 1 68px;min-width:0;min-height:34px;height:34px;padding:4px 6px;font-size:10px;line-height:1.1;border-radius:7px;letter-spacing:.02em}
.player-mode .player-controls>.fold-hand{flex:0 0 78px;align-self:flex-end;width:78px;min-width:0;height:34px;padding:4px;font-size:9px;white-space:normal;line-height:1.1;border-radius:7px}


.player-mode .call-notice{position:absolute;top:44%;left:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);width:max-content;max-width:50%;box-sizing:border-box;padding:10px 12px;border-radius:12px;font-size:13px;line-height:1.35;overflow-wrap:anywhere;z-index:90}
.toast,.toast-global{top:50%;bottom:auto;left:50%;width:max-content;max-width:80vw;box-sizing:border-box;text-align:center;border-radius:12px;transform:translate(-50%,calc(-50% + 12px));z-index:200}
.toast.show,.toast-global.show{transform:translate(-50%,-50%)}
.player-mode .turn-badge-label{max-width:60vw;overflow-wrap:anywhere;letter-spacing:.04em}


.player-mode .hand,.player-mode.two-device-mode .hand{left:calc(max(14px,(100% - 680px)/2) + var(--hand-edge-offset,0px));transform:translateY(-50%);justify-content:flex-start;padding-left:0;padding-right:0}


.player-mode .compact-actions .bet-options-row,.player-mode .compact-actions .bet-answers-row{display:flex;gap:5px;width:100%;flex:0 0 100%;min-width:0}
.player-mode .compact-actions .bet-options-row>*,.player-mode .compact-actions .bet-answers-row>*{flex:1 1 0;min-width:0}
.player-mode .envido-action-grid{width:100%;display:flex;flex-direction:column;gap:7px}
.player-mode .envido-action-row{width:100%;display:grid;gap:7px}
.player-mode .envido-raises{grid-template-columns:repeat(3,minmax(0,1fr))}
.player-mode .envido-answer{grid-template-columns:repeat(2,minmax(0,1fr))}
.player-mode .envido-action-row .call-button,.player-mode .envido-action-row .pass-button{width:100%;min-width:0}


.player-mode.declaring-envido .envido-picker{
  position:absolute;
  top:auto;
  bottom:12px;
  left:50%;
  transform:translateX(-50%);
  z-index:85;
  width:min(500px,calc(100% - 24px));
  padding:0 8px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.player-mode.declaring-envido .envido-picker p{margin:0 0 5px;font-size:11px}
.player-mode.declaring-envido .number-wheel{padding:4px calc(50% - 28px)}
.player-mode.declaring-envido .number-wheel button{height:50px}
.player-mode.declaring-envido .declaration-buttons{margin-top:5px;flex-direction:column;align-items:center;gap:6px}
.player-mode.declaring-envido #declare-points{min-width:150px}
.player-mode.declaring-envido #good-points{min-width:150px}
.player-mode.declaring-envido .player-actions{visibility:hidden;pointer-events:none}
.player-mode.declaring-envido .fold-hand{visibility:hidden;pointer-events:none}


.player-mode.declaring-envido .envido-picker{
  width:min(420px,calc(100% - 120px));
  left:12px;
  transform:none;
  padding:5px 0;
}
.player-mode.declaring-envido .envido-picker p{margin:0 0 3px;font-size:10px}
.player-mode.declaring-envido .number-wheel{padding:2px calc(50% - 24px)}
.player-mode.declaring-envido .number-wheel button{flex-basis:48px;width:48px;height:48px;font-size:22px}
.player-mode.declaring-envido .declaration-buttons{
  margin-top:5px;
  flex-direction:row;
  align-items:center;
  gap:6px;
}
.player-mode.declaring-envido #declare-points,
.player-mode.declaring-envido #good-points{
  min-width:0;
  flex:1;
  height:40px;
  padding:0 8px;
}
.player-mode.declaring-envido .fold-hand{
  visibility:visible;
  pointer-events:auto;
  z-index:90;
}


.player-mode.declaring-envido .number-wheel{
  width:100%;
  box-sizing:border-box;
  scroll-padding-inline:calc(50% - 24px);
}
.player-mode.declaring-envido .number-wheel button{
  scroll-snap-align:center;
}
.player-mode.declaring-envido #declare-points{
  background:#e7c675;
  color:#102f25;
  border-color:#e7c675;
  font-weight:700;
}


.player-mode.declaring-envido .number-wheel{position:relative}
.player-mode.declaring-envido .number-wheel button[aria-selected="true"]{
  background:transparent!important;
  color:#f3efdf!important;
  border-color:transparent!important;
  box-shadow:none!important;
}
.player-mode.declaring-envido .envido-picker::after{
  content:"";
  position:absolute;
  left:50%;
  top:25px;
  transform:translateX(-50%);
  width:48px;
  height:48px;
  border-radius:9px;
  background:#e7c675;
  pointer-events:none;
  z-index:-1;
}
.player-mode.declaring-envido .number-wheel button{transition:opacity .12s ease}
.player-mode.declaring-envido .number-wheel button[data-distance="0"]{opacity:1}
.player-mode.declaring-envido .number-wheel button[data-distance="1"]{opacity:.78}
.player-mode.declaring-envido .number-wheel button[data-distance="2"]{opacity:.48}
.player-mode.declaring-envido .number-wheel button[data-distance="3"]{opacity:.25}
.player-mode.declaring-envido .number-wheel button[data-distance="4"]{opacity:.1}


.player-mode.declaring-envido .envido-picker > p{
  width:fit-content;
  max-width:100%;
  margin:0 auto 3px;
  padding:0 8px;
  border-radius:6px;
  background:#10291f;
  color:#fff4d6;
  font-size:12px;
  font-weight:700;
  line-height:14px;
  box-shadow:0 2px 8px #0005;
}


.drawing-mode .game-topbar{position:relative;z-index:90}
.drawing-mode #game-home{font-size:0;gap:6px}
.drawing-mode #game-home b{display:none}
.drawing-mode #game-home::before{content:"←";font-size:24px}
.drawing-mode #game-home::after{content:"Lobby";font:600 14px 'DM Sans',sans-serif}
.drawing-mode .fold-hand{display:none!important}
.opening-draw{gap:14px;padding-top:78px;overscroll-behavior:contain}
.draw-prompt{width:min(100%,320px);flex-shrink:0}
.draw-prompt h2{margin:0 0 7px;font:700 clamp(18px,5vw,23px)/1.25 'DM Sans',sans-serif;color:#fff4d6}
.draw-prompt p{margin:0;font-size:14px;line-height:1.45;letter-spacing:normal;text-transform:none;color:#d1e0d6;overflow-wrap:break-word;text-wrap:pretty}
.opening-timer{flex-shrink:0;border:1px solid #e8c98355;border-radius:10px;padding:7px 14px;background:#10291f;color:#f2d99f;font-size:15px;font-weight:700;font-variant-numeric:tabular-nums}
.opening-timer.draw-timer-warning{color:#ffd3b0;border-color:#ed9166;background:#4b281d}
.draw-results .draw-result>span{overflow-wrap:anywhere;max-width:100%;text-wrap:balance}
.draw-results .draw-result>p{margin:0;font-size:13px;line-height:1.4;overflow-wrap:break-word}
@media(max-height:680px){
  .opening-draw{gap:10px;padding-top:70px;padding-bottom:16px}
  .opening-draw .draw-deck{width:84px!important;height:122px!important;flex-basis:122px}
  .draw-results{min-height:140px}
  .draw-results .draw-card{width:84px;height:122px}
}


.waiting h2{font-family:'DM Sans',sans-serif;font-size:clamp(28px,7vw,38px);line-height:1.15;letter-spacing:-.025em;margin:0 0 24px}
.waiting-content{padding-top:32px}
.waiting .seats{margin:24px 0 16px}
.waiting .seat-name strong{font-size:15px}
.waiting .seat-state{font-size:11px;letter-spacing:0;text-transform:none}
.waiting-bottom p{font-size:14px;line-height:1.5;letter-spacing:0;color:#b9cabe}


.reveal-mode.player-mode .my-player-info{z-index:130}
.reveal-mode.player-mode .turn-badge{position:relative;background:#10291f;border-color:#d8b875;color:#f2d99f}
.reveal-mode .round-pause-timer{z-index:131}


.waiting .waiting-content{margin:0 auto;padding-top:28px;padding-bottom:24px}
.waiting .seats{gap:12px}
.waiting .seat{padding:16px 14px;border-radius:14px;border:1px solid;gap:12px}
.waiting .seat-occupied{background:#234b38;border-color:#76c38b80}
.waiting .seat-occupied .seat-icon{background:#76c38b1c;border-color:#76c38b;color:#a8e4b7}
.waiting .seat-free{background:#d8b8750a;border:2px dashed #d8b87599}
.waiting .seat-free .seat-icon{border-color:#d8b87599;color:#e8c983}
.waiting .seat-name{min-width:0}
.waiting .seat-name strong{overflow-wrap:anywhere}
.waiting .seat-state{flex-shrink:0;padding:6px 9px;border-radius:7px;font-size:12px;font-weight:700;line-height:1.2}
.waiting .seat-occupied .seat-state{background:#76c38b;color:#10291f}
.waiting .seat-free .seat-state{background:#e8c983;color:#302719}


.match-end{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;padding:24px;background:#071d16f5;overflow-y:auto}
.match-end-panel{position:relative;width:min(440px,100%);text-align:center;padding:44px 20px 28px;border:1px solid #d8b87566;border-radius:24px;background:#153e2e;box-shadow:0 20px 70px #0006}
.match-end-close{position:absolute;right:12px;top:12px;width:40px;height:40px;border:1px solid #ffffff30;border-radius:12px;background:#ffffff08;font-size:26px}
.match-end h2{font:700 clamp(26px,7vw,38px)/1.2 'DM Sans',sans-serif;margin:12px 0 28px;color:#f2d99f;overflow-wrap:anywhere}
.match-end-score{display:flex;align-items:flex-start;justify-content:center;gap:18px}
.match-end-score>div{flex:1;min-width:0}
.match-end-score strong{display:block;font-size:clamp(48px,14vw,70px);line-height:1;font-variant-numeric:tabular-nums}
.match-end-score span{display:block;margin-top:12px;font-size:16px;overflow-wrap:anywhere}
.match-end-score>b{font-size:32px;padding-top:12px;color:#b6c7ba}
.match-score-winner{color:#e8c983}
.match-end p{margin:28px 0 20px;color:#d1e0d6;font-size:15px;line-height:1.5}
.match-end-actions{display:flex;flex-direction:column;gap:10px}
.match-end-actions .button{justify-content:center;border-radius:12px}
.match-end-actions .button:not(.primary){background:#ffffff08;border:1px solid #ffffff30}


.bot-levels { margin: 0 0 20px; padding: 16px; border: 1px solid rgba(199,174,107,.4); border-radius: 12px; background: rgba(0,0,0,.15); }
.bot-levels label { display: block; margin-bottom: 10px; }
.bot-levels select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #718b76; border-radius: 8px; background: #163d30; color: #faf5e7; font: inherit; }
.bot-levels p { margin: 12px 0 0; font-size: 14px; line-height: 1.45; color: #c3d1c4; }

.call-notice { text-align:center; }
.call-notice strong { display:block; margin-top:4px; font-size:calc(1em + 4px); font-weight:700; }
.player-mode .turn-badge { position:relative; flex-wrap:nowrap; max-width:calc(100% - 22px); }
.turn-badge .inactivity-life { position:absolute; left:calc(100% + 6px); top:50%; transform:translateY(-50%); display:flex; flex-direction:column; justify-content:center; gap:3px; width:8px; height:19px; max-height:100%; pointer-events:none; }
.inactivity-circle { display:block; width:8px; height:8px; flex:0 0 8px; border:1.5px solid #e8c983; border-radius:50%; background:transparent; }
.inactivity-circle.life-lost { border-color:#d67869; background:#d67869; }


.player-mode .my-player-info { width:calc(100% - 40px); }
.player-mode .turn-badge-label { white-space:nowrap; overflow-wrap:normal; overflow:hidden; text-overflow:ellipsis; min-width:0; max-width:none; }
.turn-badge .turn-timer,.turn-badge .round-pause-timer { flex-shrink:0; white-space:nowrap; }


.trick-cards { transform:translateY(10px); }


@media (min-width:1024px) {
  .game.player-mode { height:100dvh; min-height:0; overflow:hidden; }
  .game.player-mode .game-topbar { flex:0 0 64px; height:64px; padding:0 32px; }
  .game.player-mode .game-layout { display:flex; flex:1 1 0; min-height:0; height:auto; overflow:hidden; }
  .game.player-mode .felt-area { flex:1; width:100%; max-width:1200px; height:auto; min-height:0; margin:0 auto; padding:0; }
  .game.player-mode .my-player-info { top:20px; z-index:30; }
  .game.player-mode .turn-badge { font-size:12px; padding:10px 16px; }
  .game.player-mode .center-table { display:block!important; position:absolute; top:70px; left:0; width:100%; height:280px; transform:none; }
  .game.player-mode.two-device-mode .deck-stack { top:50%; left:auto; right:150px; width:78px; height:112px; transform:translateY(-50%); }
  .game.player-mode.two-device-mode .muestra-card { top:50%; left:auto; right:194px; width:78px; height:112px; }
  .game.player-mode.two-device-mode .played-card { width:88px; height:126px; }
  .game.player-mode.two-device-mode .mobile-score { position:absolute; top:282px; right:140px; width:98px; height:min(var(--compact-tally-height),calc(100% - 320px)); max-height:none; padding:0; display:flex; flex-direction:column; gap:6px; }
  .game.player-mode.two-device-mode .mobile-score-head { display:grid; grid-template-columns:42px 42px; gap:14px; width:100%; height:26px; flex:0 0 26px; }
  .game.player-mode.two-device-mode .mobile-score-head h2 { margin:0; text-align:center; font-size:22px; }
  .game.player-mode.two-device-mode .mobile-score-grid { display:grid; grid-template-columns:42px 1px 42px; gap:6px; flex:1; width:100%; height:auto; min-height:0; align-items:stretch; }
  .game.player-mode.two-device-mode .mobile-score-divider { width:1px; height:100%; max-height:none; background:rgba(239,235,215,.35); }
  .game.player-mode.two-device-mode .mobile-tally,
  .game.player-mode.two-device-mode .compact-score-sticks { width:100%; height:100%; min-height:0; display:block; }
  .game.player-mode .hand,
  .game.player-mode.two-device-mode .hand { position:absolute; top:auto; bottom:142px; width:680px; max-width:calc(100% - 300px); min-height:0; height:196px; margin:0; align-items:flex-end; z-index:10; transform:none; }
  .game.player-mode .hand-card,
  .game.player-mode.two-device-mode .hand-card { width:140px; height:196px; flex:0 0 140px; margin-left:-28px; margin-right:-28px; }
  .game.player-mode .hand-card:first-child { margin-left:0; }
  .game.player-mode .hand-card:last-child { margin-right:0; }
  .game.player-mode .player-controls { bottom:24px; width:680px; max-width:calc(100% - 56px); gap:10px; }
  .game.player-mode .compact-actions .call-button,
  .game.player-mode .compact-actions .pass-button { height:46px; min-height:46px; font-size:13px; padding:8px 12px; }
  .game.player-mode .player-controls>.fold-hand { flex-basis:108px; width:108px; height:46px; font-size:11px; }
  .game.player-mode .call-notice { top:40%; max-width:400px; font-size:16px; padding:14px 22px; }
  .game.player-mode.declaring-envido .envido-picker { left:calc(50% - 340px); bottom:24px; width:540px; max-width:calc(100% - 200px); }
  .game.player-mode.drawing-mode .center-table,
  .game.player-mode.drawing-mode .hand { display:none!important; }
}

.game-topbar .chat-toggle{position:relative;flex:0 0 38px;width:38px;height:38px;padding:8px;margin-left:8px;display:grid;place-items:center;border:1px solid rgba(239,235,215,.4);border-radius:50%;background:#193b2b;color:#f0eee2;touch-action:manipulation;z-index:80}
.chat-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.match-chat{position:fixed;top:74px;right:16px;z-index:180;width:360px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 96px);display:flex;flex-direction:column;padding:16px;border:1px solid #a58f5c;border-radius:16px;background:#12382b;box-shadow:0 12px 40px #0006;color:#f0eee2}
.chat-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.chat-heading h2{margin:0;font:600 18px 'DM Sans',sans-serif}
.chat-heading button,.chat-notice button{flex-shrink:0;width:30px;height:30px;padding:0;border:0;background:transparent;color:inherit;font-size:26px;line-height:1;cursor:pointer}
.chat-mute{display:flex;align-items:center;gap:8px;margin-bottom:12px;font-size:13px;color:#d7ddcf}
.chat-mute input{width:16px;height:16px;accent-color:#ead7a5}
.chat-history{height:260px;min-height:60px;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:10px;padding:4px 3px 12px;scrollbar-width:thin}
.chat-empty{margin:auto;text-align:center;color:#b4c1b6;font-size:13px}
.chat-message{flex:0 0 auto;align-self:flex-start;max-width:88%;padding:9px 12px;border-radius:12px;background:#244b3b;overflow-wrap:anywhere}
.chat-message-mine{align-self:flex-end;background:#ead7a5;color:#15251b}
.chat-message strong,.chat-notice strong{display:block;font-size:11px}
.chat-message p,.chat-notice p{margin:4px 0 0;font-size:14px;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere}
.chat-form{flex-shrink:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 8px;padding-top:12px;border-top:1px solid #ffffff24}
.chat-input-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.chat-form input{min-width:0;width:100%;height:42px;padding:10px;border:1px solid #8d9f90;border-radius:8px;background:#0b2b20;color:#f0eee2;font:16px 'DM Sans',sans-serif}
.chat-form button{height:42px;padding:0 14px;border:0;border-radius:8px;background:#ead7a5;color:#15251b;font-weight:700}
.chat-form button:disabled{opacity:.5}
.chat-count{grid-column:1/-1;text-align:right;color:#b4c1b6;font-size:11px}
.chat-error{grid-column:1/-1;margin:0;color:#ffd2b5;font-size:12px}
.chat-notices{position:fixed;top:22%;left:50%;transform:translateX(-50%);width:320px;max-width:calc(100vw - 32px);display:flex;flex-direction:column;gap:8px;z-index:125;pointer-events:none}
.chat-notice{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid #ead7a5;border-radius:14px;background:#ead7a5;color:#15251b;box-shadow:0 4px 20px #0003;pointer-events:auto}
.chat-notice>div{min-width:0}
.match-chat.hidden,.chat-toggle.hidden,.chat-unread.hidden{display:none!important}
@media(max-width:640px){.match-chat{top:64px;right:14px;max-height:calc(100dvh - 82px)}.chat-history{height:240px}}

.chat-toggle .chat-mute-slash{display:none;stroke-width:2}
.chat-toggle.chat-is-muted .chat-mute-slash{display:block}
.chat-blocked{grid-column:1/-1;padding:12px;border:1px solid #8d9f9066;border-radius:8px;background:#0b2b20;color:#cbd5cb;font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.chat-form .hidden{display:none!important}


.chat-mute{gap:10px;min-height:30px;cursor:pointer}
.chat-mute input{appearance:none;-webkit-appearance:none;position:relative;flex:0 0 38px;width:38px;height:22px;margin:0;border:1px solid #8d9f90;border-radius:14px;background:#0b2b20;cursor:pointer;transition:background .18s,border-color .18s}
.chat-mute input::after{content:'';position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:#b4c1b6;transition:transform .18s,background .18s}
.chat-mute input:checked{background:#ead7a5;border-color:#ead7a5}
.chat-mute input:checked::after{transform:translateX(16px);background:#12382b}
.chat-mute input:focus-visible{outline:2px solid #ead7a5;outline-offset:3px}

.chat-backdrop{position:fixed;inset:0;z-index:175;background:rgba(4,20,12,.2);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);touch-action:manipulation}
.chat-backdrop.hidden{display:none!important}


.turn-badge.pause-countdown .turn-badge-label,.turn-badge.pause-countdown .inactivity-life{display:none!important}
.turn-badge.pause-countdown .round-pause-timer{border-left:0;padding-left:0}
.folding-hand .hand{visibility:hidden}
.fold-card-flight{position:fixed!important;z-index:160!important;visibility:visible!important;pointer-events:none!important;animation:none!important;transform:none;margin:0!important}



.player-mode.declaring-envido #declare-points{font-size:14px;letter-spacing:.02em;white-space:nowrap;min-width:0;display:flex;align-items:center;justify-content:center;gap:5px;line-height:1}
.player-mode.declaring-envido .envido-picker p{font-size:11px;letter-spacing:0}

@media (hover:hover) and (pointer:fine){
  .number-wheel{cursor:grab;user-select:none}
  .number-wheel button{cursor:inherit;user-select:none}
  .number-wheel.mouse-dragging{cursor:grabbing}
}
@media (min-width:1024px){
  .game.player-mode.declaring-envido .envido-picker{position:fixed;left:calc(50% - 340px);bottom:24px;transform:none;width:540px;max-width:none;box-sizing:border-box}
  .game.player-mode.declaring-envido .player-controls>.fold-hand{position:absolute;left:auto;right:0;bottom:0;top:auto;transform:none;width:108px;margin:0}
}

.truco-logo{display:block;object-fit:contain;height:32.64px;width:48.96px;flex-shrink:0}
.brand-lockup .truco-logo{height:54.4px;width:81.6px}
.mini-brand{line-height:0}
@media(min-width:1024px){.mini-brand .truco-logo{height:36.72px;width:55.08px}}

.truco-logo{filter:saturate(65%)}

.connection-notice{position:fixed;z-index:155;top:76px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 32px);padding:10px 14px;border:1px solid #e8c98388;border-radius:10px;background:#10291ff2;color:#e8c983;font-size:13px;text-align:center;line-height:1.4;pointer-events:none}


.learn-view{flex-direction:column}
.learn-content{width:min(780px,100%);margin:0 auto;padding:24px 24px 40px}
.learn-content h1{font-family:'Playfair Display',serif;font-size:clamp(30px,5vw,44px);margin:0 0 12px;color:var(--gold)}
.learn-content>p{line-height:1.5;color:#c2cec4}
.learn-lessons{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:24px 0}
.learn-lesson{display:flex;flex-direction:column;gap:10px;padding:20px;text-align:left;border:1px solid #d8b87566;border-radius:12px;background:#15392b}
.learn-lesson strong{color:#ead39b;font-size:17px}
.learn-lesson span{color:#c2cec4;font-size:13px;line-height:1.5}
.learn-lesson:hover,.learn-lesson:focus-visible{background:#214b38;border-color:var(--gold)}
.learn-content>.button{width:100%;justify-content:center;min-height:48px;font-size:15px;border-radius:10px}
.learn-small{font-size:12px;line-height:1.5;color:#b9c7bc}
.learn-coach-dialog{width:min(480px,calc(100vw - 32px));max-height:85dvh;margin:auto;padding:24px;color:var(--ink);background:#123b2c;border:1px solid var(--gold);border-radius:18px;overflow:auto;box-shadow:0 20px 60px #0006}
.learn-coach-dialog::backdrop{background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none}
.learn-coach-dialog h2{color:#ead39b;font-size:25px;margin:10px 0 18px}
#learn-coach-body p{font-size:15px;line-height:1.55;color:#e0e7dc}
.learn-dialog-actions{display:flex;flex-direction:column;gap:10px;margin-top:22px}
.learn-dialog-actions>.button{flex:none;justify-content:center;min-height:46px;font-size:14px;border-radius:9px}
.learn-dialog-actions>.text-button{padding:10px;border:0;background:transparent;color:#ead39b;text-decoration:underline}
.learning-toolbar{position:absolute;z-index:156;top:76px;left:50%;transform:translateX(-50%);display:flex;gap:12px;align-items:center;justify-content:center;white-space:nowrap}
.learning-toolbar button{background:#123b2c;border:1px solid #d8b87588;border-radius:7px;padding:7px 10px;color:#ead39b;font-size:12px}
.learning-toolbar label{display:flex;align-items:center;gap:5px;font-size:12px;color:#ead39b;cursor:pointer}
.learning-toolbar input{accent-color:#d8b875;width:16px;height:16px;margin:0}
.learning-hint{position:absolute;z-index:156;top:118px;left:50%;transform:translateX(-50%);width:min(420px,calc(100% - 32px));max-height:62px;overflow:auto;padding:8px 12px;background:#0b291fed;border:1px solid #d8b87555;border-radius:8px;color:#e0e7dc;font-size:12px;line-height:1.4;text-align:center}
.learning-mode #turn-badge{visibility:visible}

@media(max-width:640px){
  .learn-content{padding:22px 16px 32px}
  .learn-lessons{grid-template-columns:1fr}
  .learn-lesson{padding:16px}
  .learn-coach-dialog{padding:20px}
}


.learn-content h2{font-size:20px;color:#ead39b;margin:28px 0 8px}
.learn-path{list-style:none;padding:0;counter-reset:stage;display:grid;gap:12px;margin:24px 0}
.learn-path li{counter-increment:stage;display:grid;grid-template-columns:32px 1fr;gap:5px 12px;padding:15px;background:#15392b;border:1px solid #d8b87555;border-radius:10px}
.learn-path li::before{content:counter(stage);grid-row:1/3;width:30px;height:30px;border:1px solid #d8b875;color:#ead39b;border-radius:50%;display:grid;place-items:center}
.learn-path strong{color:#ead39b}.learn-path span{font-size:13px;line-height:1.5;color:#c2cec4}
.learn-practice-actions{display:flex;flex-wrap:wrap;gap:10px}
.learn-practice-actions>.button{justify-content:center;min-height:44px;min-width:130px;flex:1;font-size:13px;border-radius:8px}
.learn-study-dialog{width:min(600px,calc(100vw - 24px))}
.learn-close{float:right;width:36px;height:36px;border:1px solid #d8b87588;border-radius:8px;background:transparent;color:#ead39b;font-size:25px;line-height:1}
.study-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:22px 0}
.study-card{min-width:0;text-align:center}
.study-card>span{display:block;margin-bottom:8px;color:#c2cec4;font-size:12px}
.study-card>.sprite-card{width:100%;aspect-ratio:280/435;height:auto;border-radius:7px;box-shadow:0 3px 10px #0004}
.study-card:last-child{padding-left:8px;border-left:1px solid #d8b87566}
.study-card:last-child>span{color:#ead39b;font-weight:700}
.study-envido{display:grid;grid-template-columns:auto 72px 1fr;align-items:center;gap:12px}
.study-envido input{width:72px;height:44px;border:1px solid #d8b875;background:#0b291f;color:#fff;border-radius:8px;text-align:center;font-size:21px}
.study-envido>.button{font-size:14px;justify-content:center;min-height:44px;border-radius:8px}
.study-feedback{font-size:14px;line-height:1.6;margin:18px 0}
.study-correct{border-left:3px solid #9fc8a1;padding-left:12px;color:#d2ead3}
.study-incorrect{border-left:3px solid #e8c983;padding-left:12px;color:#ead7a5}
.learn-sheet-dialog{width:min(740px,calc(100vw - 24px))}
.learn-sheet-dialog img{display:block;width:100%;height:auto;border-radius:10px}
.learning-toolbar{gap:7px;width:calc(100% - 24px);max-width:440px}
.learning-toolbar button{padding:7px 8px}
@media(max-width:400px){.study-cards{gap:6px}.learn-study-dialog{padding:16px}.study-envido{gap:8px}.study-envido label{font-size:12px}.learning-toolbar button{font-size:11px;padding:7px 6px}}

.game-topbar .game-help-toggle{position:relative;flex:0 0 38px;width:38px;height:38px;padding:8px;margin-left:8px;display:grid;place-items:center;border:1px solid rgba(239,235,215,.4);border-radius:50%;background:#193b2b;color:#f0eee2;touch-action:manipulation;z-index:80}
.game-help-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}


#learn-game.button,.learn-view .button.secondary,.learn-coach-dialog .button.secondary{background:#15392b;color:#ead39b;border:1px solid #d8b87588;border-radius:9px;font-weight:600}
#learn-game.button:hover,.learn-view .button.secondary:hover,.learn-coach-dialog .button.secondary:hover{background:#214b38;border-color:#ead39b}
#learn-game.button:focus-visible,.learn-view button:focus-visible,.learn-coach-dialog button:focus-visible{outline:2px solid #ead39b;outline-offset:3px}
.home-actions #learn-game{width:100%;min-height:44px;justify-content:center;margin-top:8px}
.learning-message{position:fixed;inset:0;max-width:440px;max-height:75dvh;text-align:center}
#learning-message-body p{font-size:15px;line-height:1.55;color:#e0e7dc}
.learning-message h2{font-size:22px}
.card-order-guide{font-size:14px;line-height:1.5;color:#e0e7dc}
.card-order-guide table{width:100%;border-collapse:collapse;text-align:left}
.card-order-guide td{padding:6px 0}
.card-order-guide td:last-child{color:#ead39b;white-space:nowrap;padding-left:12px}
.card-order-guide p{margin:0;padding:7px 0}
.card-order-guide>p{color:#ead39b}
.guide-group,.guide-flor{border-top:1px solid #d8b87588;padding:8px 0}
.guide-flor{display:grid;grid-template-columns:auto 1fr;gap:18px}
.guide-flor strong{color:#ead39b;padding-top:7px}
.learn-sheet-dialog{width:min(560px,calc(100vw - 24px))}
@media(max-width:400px){.card-order-guide{font-size:12px}.guide-flor{gap:12px}}

.study-feedback{white-space:pre-line}
.envido-count-help h3{font-size:16px;color:#ead39b;margin:22px 0 8px}
.envido-count-help p{font-size:14px;line-height:1.6;color:#e0e7dc;margin:8px 0}
.envido-count-help .count-example{padding:9px 12px;border-left:2px solid #d8b875;background:#0b291f;color:#ead39b;border-radius:0 6px 6px 0}


.learn-coach-dialog{max-height:55dvh;padding:16px;box-shadow:0 4px 14px #0003}
.learn-coach-dialog h2{font-size:20px;margin:4px 40px 12px 0}
#learn-coach-body p{font-size:14px;line-height:1.4;margin:7px 0}
.learn-coach-dialog .learn-dialog-actions{gap:7px;margin-top:12px}
.learn-coach-dialog .learn-dialog-actions>.button{min-height:40px;padding:9px 12px}
.learn-coach-dialog .learn-dialog-actions>.text-button{padding:6px}
.learning-message{width:min(440px,calc(100vw - 32px));max-height:40dvh;padding:14px 16px}
.learning-message h2{margin:0 0 9px;font-size:18px}
#learning-message-body p{font-size:14px;line-height:1.4;margin:7px 0}
.envido-count-help h3{font-size:15px;margin:14px 0 5px}
.envido-count-help p{line-height:1.4;margin:6px 0}
.learn-study-dialog{max-height:85dvh}

.learning-score-arrow{position:fixed;inset:0;width:100vw;height:100dvh;overflow:visible;pointer-events:none}
.learning-score-highlight{outline:2px solid #ead39b;outline-offset:4px;border-radius:8px}


.learn-coach-dialog:not(.learning-message)::backdrop{background:rgba(4,24,15,.62);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}


#learn-sheet-dialog,#learn-envido-help-dialog,#learn-flor-help-dialog,#learn-study-dialog{height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);box-sizing:border-box;overflow:auto;overscroll-behavior:contain}
.card-guide-intro{color:#e0e7dc;font-size:14px;line-height:1.5;margin:0 0 16px}
.help-piece-values{list-style:none;padding:0;margin:8px 0 12px;color:#ead39b;font-size:14px;line-height:1.7}
.help-card-example{margin:14px 0 22px}
.help-example-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-width:440px}
.help-example-card{min-width:0}
.help-example-card>span{display:block;color:#b9c7bc;font-size:12px;text-align:center;margin-bottom:6px}
.help-example-card:last-child{border-left:1px solid #d8b87588;padding-left:8px}
.help-example-card:last-child>span{color:#ead39b;font-weight:700}
.help-example-card>.sprite-card{width:100%;aspect-ratio:280/435;border-radius:6px;background-color:#f5f0df}
@media(max-width:400px){.help-example-cards{gap:6px}.help-example-card:last-child{padding-left:6px}}


#learn-coach-dialog{max-height:calc(100dvh - 24px);box-sizing:border-box}


#welcome-view .home-heading{display:block;width:100%;text-align:left}
#welcome-view .home-actions #create-room,#welcome-view .home-actions #learn-game{display:flex;align-items:center;justify-content:flex-start;text-align:left;width:100%;height:56px;min-height:56px;padding:0 20px;border-radius:14px;font-size:16px;font-weight:600;letter-spacing:normal;margin:0;box-sizing:border-box}
#welcome-view .home-actions #create-room{background:#e8c983;color:#10291f;border:1px solid #e8c983}
#welcome-view .home-actions #learn-game{background:transparent;color:#e8c983;border:1px solid #e8c983;box-shadow:0 5px 22px #0002}
#welcome-view .home-actions #learn-game:hover{background:transparent}


.learning-message{max-height:65dvh}
.learning-message h2{margin:3px 40px 12px 0;text-align:left;min-height:30px}
.learning-message .learn-close{position:absolute;top:12px;right:12px;float:none}
.learning-call-notice{width:max-content;max-width:100%;box-sizing:border-box;margin:0 auto 12px;padding:8px 14px;border:1px solid #d8b875;border-radius:12px;background:#ead7a5;color:#15251b;font-size:14px;line-height:1.35;text-align:center}
.learning-call-notice strong{display:block;margin-top:4px;font-size:18px;font-weight:700}


.learning-toolbar{left:16px;right:auto;transform:none;width:auto;max-width:none;justify-content:flex-start;gap:12px}


.learning-mode #turn-badge .turn-timer,.learning-mode #turn-badge .inactivity-life{display:none!important}
.learning-mode #turn-badge.pause-countdown{visibility:visible}




.learning-toolbar{display:contents}
.learning-toolbar #learn-menu{position:absolute;z-index:156;top:var(--learning-exit-top,66px);left:10px;margin:0}
.learning-options{position:absolute;z-index:156;right:10px;top:var(--learning-options-top,65%);transform:translateY(-50%);display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:5px 0}
.learning-message.score-message #learning-message-body{padding-top:12px}
.learning-message.score-message #learning-message-body p:first-child{margin-left:24px;margin-right:40px}


.learn-path{gap:8px;margin:16px 0}
.learn-path li{grid-template-columns:24px 1fr;gap:3px 9px;padding:9px 11px;border-radius:9px}
.learn-path li::before{width:24px;height:24px;font-size:12px}
.learn-path strong{font-size:14px;line-height:1.25}
.learn-path span{font-size:12px;line-height:1.35}


.learn-content>.learn-practice-actions{flex-direction:column}
.learn-content>.learn-practice-actions>.button{width:100%;height:56px;min-height:48px;flex:none;font-size:15px;border-radius:10px}


.learning-message{height:fit-content;min-height:0;padding:12px 14px;box-sizing:border-box}
.learning-message .learn-close{top:8px;right:8px;width:30px;height:30px;font-size:22px}
.learning-message h2{min-height:26px;margin:0 32px 8px 0}
.learning-message #learning-message-body p{margin:5px 0}
.learning-message #learning-message-body p:first-child{margin-top:0}
.learning-message #learning-message-body p:last-child{margin-bottom:0}
.learning-message.score-message{width:fit-content;max-width:min(440px,calc(100vw - 32px))}
.learning-message.score-message #learning-message-body{padding-top:0;padding-right:34px;min-height:30px}
.learning-message.score-message #learning-message-body p:first-child{margin-left:0;margin-right:0}


.card-order-guide{margin-left:22px}
.guide-labeled-group{position:relative}
.guide-side-label{position:absolute;left:-24px;top:50%;transform:translateY(-50%) rotate(180deg);writing-mode:vertical-rl;color:var(--gold);font-size:14px;font-weight:700;letter-spacing:.08em;line-height:1;white-space:nowrap}
.guide-pieces>p{color:#ead39b}


#turn-badge.turn-rejected{color:#ff7167;border-color:#ff7167}
#turn-badge.turn-rejected .turn-badge-label,#turn-badge.turn-rejected .turn-timer,#turn-badge.turn-rejected .round-pause-timer{color:#ff7167;border-color:#ff7167}

#learning-message-study{width:100%;height:auto;min-height:42px;margin-top:10px;padding:9px 12px;justify-content:center;border-radius:9px;font-size:14px;line-height:1.3;white-space:normal}

.learning-message .learn-close.close-required{color:#ff7167;border-color:#ff7167;outline-color:#ff7167}

.card-order-guide .guide-owned{background:rgba(232,201,131,.12);outline:1px solid #e8c98388;outline-offset:2px;border-radius:5px}
.guide-owned-cards{display:block;margin-top:4px;color:#e8c983;font-size:12px;font-weight:700;line-height:1.4;letter-spacing:0}

.learning-rounds{position:absolute;z-index:12;display:flex;align-items:center;gap:5px;transform:translateX(-50%);pointer-events:none}
.learning-rounds .round-won{border-color:#87c593;background:#87c593}
.learning-rounds .round-lost{border-color:#d67869;background:#d67869}
.learning-rounds .round-tied{background:#e8c983}

@media(max-width:640px){#learn-view .topbar{display:grid;grid-template-columns:1fr auto 1fr}#learn-view .topbar>.icon-button{justify-self:start}#learn-view .topbar>.mini-brand{justify-self:center}}


.startup-loading{position:fixed;inset:0;z-index:10000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;background:#10291f;color:#e8c983;text-align:center;padding:24px;box-sizing:border-box}
.startup-loading[hidden]{display:none}
.startup-loading .truco-logo{width:120px;height:80px}
.startup-loading p{margin:0;font-family:'DM Sans',sans-serif;font-size:16px;line-height:1.4}
.page-loading{overflow:hidden}
.page-loading #app{visibility:hidden}


.icon-button.back-navigation{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #e8c98366;border-radius:12px;background:#e8c9830a;color:#e8c983;cursor:pointer;touch-action:manipulation}
.back-navigation .back-icon{width:23px;height:23px;stroke-width:2;pointer-events:none}
.icon-button.back-navigation:hover{background:#e8c9831a;border-color:#e8c983aa}
.icon-button.back-navigation:active{background:#e8c98326}
.icon-button.back-navigation:focus-visible{outline:2px solid #e8c983;outline-offset:3px}


.connection-recovering .hand-card{filter:brightness(.8)}
.connection-recovering #player-actions button,.connection-recovering #fold-hand,.connection-recovering #envido-picker button{opacity:.55}
.hand-card.card-touch,.hand-card.card-pending{filter:brightness(1.08)}
.action-pending{box-shadow:inset 0 0 0 2px #fff7;animation:pending-action-glow 1s ease-in-out infinite}
@keyframes pending-action-glow{50%{filter:brightness(1.18)}}
.chat-quick{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0}
.chat-quick button{background:transparent;border:1px solid #e8c98366;border-radius:8px;padding:7px 9px;color:#e8c983;font:inherit;font-size:12px;cursor:pointer}
.chat-quick button:disabled{opacity:.5;cursor:default}
.chat-quick button:focus-visible{outline:2px solid #e8c983;outline-offset:2px}
.session-score{font-size:13px;color:#e8c983;line-height:1.4;text-align:center;margin:10px 0}
@media(prefers-reduced-motion:reduce){.action-pending{animation:none}}



.account-entry{display:flex;justify-content:center;align-items:center;align-self:flex-end;width:auto;padding:8px 12px;margin:0 0 12px;background:transparent;border:1px solid #e8c98366;border-radius:9px;color:#e8c983;font:inherit;font-size:14px;cursor:pointer}
.account-overlay{border:1px solid #e8c983;border-radius:20px;padding:0;width:min(440px,calc(100% - 32px));max-height:calc(100dvh - 32px);background:#123c2e;color:#f4eedc}.account-overlay::backdrop{background:rgba(0,20,14,.6);backdrop-filter:blur(6px)}.account-card{padding:24px;display:flex;flex-direction:column;gap:14px}.account-card h2{color:#e8c983;margin:0;padding-right:35px}.account-card p{margin:0;line-height:1.5}.account-close{position:absolute;right:14px;top:12px;width:36px;height:36px;border:1px solid #e8c983;border-radius:10px;background:transparent;color:#e8c983;font-size:26px;cursor:pointer}.account-card input{min-width:0;width:100%;box-sizing:border-box;padding:12px;border:1px solid #e8c983;border-radius:10px;background:#0b2b20;color:#fff;font:inherit}.account-card .button{width:100%;min-height:48px}.account-card [hidden]{display:none}.account-card button:disabled{opacity:.5;cursor:wait}#account-status{font-size:14px;color:#e8c983}#account-status:empty{display:none}

.account-card .button.secondary{background:#123c2e;color:#e8c983;border:1px solid #e8c983;border-radius:10px;font:inherit;font-weight:600;cursor:pointer}
.account-card .button.secondary:hover{background:#214b38}
#account-google{display:flex;align-items:center;justify-content:center;gap:10px;background:#e8c983;color:#123c2e;border:1px solid #e8c983;border-radius:10px;font:inherit;font-weight:600;cursor:pointer}
#account-google .google-mark{display:block;flex:0 0 22px;width:22px;height:22px;padding:3px;box-sizing:content-box;background:white;border-radius:50%}
.button.secondary{background:transparent;color:#e8c983;border:1px solid #e8c98366}
.auth-gate{position:fixed;inset:0;z-index:9000;display:flex;align-items:center;justify-content:center;overflow:auto;padding:24px;background:#10291f;color:#f4eedc;min-height:100dvh}
.auth-gate[hidden],.auth-card [hidden],.account-card [hidden]{display:none}
.auth-card{display:flex;flex-direction:column;align-items:stretch;gap:18px;width:min(380px,100%);margin:auto;text-align:center}
.auth-card>.truco-logo{align-self:center;width:150px;height:100px;object-fit:contain}
.auth-card h1{font-family:'DM Sans',sans-serif;font-size:25px;line-height:1.3;margin:0 0 22px;color:#e8c983}
.auth-card .button,.account-card .button{height:auto;min-height:48px;padding:12px 16px;width:100%;font-size:15px;letter-spacing:0;text-transform:none;justify-content:center;border-radius:10px;line-height:1.4;white-space:normal}
.auth-card .button.primary,.account-card .button.primary{background:#e8c983;border:1px solid #e8c983;color:#123c2e;font-weight:700}
.auth-card input{width:100%;padding:13px 12px;border:1px solid #e8c983;border-radius:10px;background:#0b2b20;color:#fff;font:inherit;min-width:0}
.auth-card form,.account-card form,#account-menu{display:flex;flex-direction:column;gap:14px}
.auth-card label,.account-card label{text-align:left;font-size:14px}
.auth-card button:disabled{opacity:.5;cursor:wait}
#auth-status{font-size:14px;line-height:1.5;margin:0;color:#e8c983}
#auth-status:empty{display:none}
@media(max-width:420px){.auth-card h1{font-size:23px}.account-card{padding:20px}}



#welcome-view .home-topbar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px;height:64px}
#welcome-view .home-topbar .home-edition{justify-self:start;text-align:left}
#welcome-view .home-topbar .brand-lockup{justify-self:center;margin:0}
#welcome-view .home-topbar .account-entry{justify-self:end;align-self:center;display:flex;align-items:center;justify-content:flex-end;gap:8px;max-width:100%;min-width:0;padding:6px 0;margin:0;border:0;background:transparent;color:#e8c983;text-align:right;font-size:14px}
#account-username{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-user-icon{width:30px;height:30px;flex:0 0 30px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:480px){#welcome-view .home-topbar{gap:8px}#welcome-view .home-topbar .account-entry{font-size:12px;gap:5px}#welcome-view .home-topbar .home-edition{font-size:12px}.account-user-icon{width:26px;height:26px;flex-basis:26px}}



#account-menu[hidden]{display:none}

#auth-login{display:flex;flex-direction:column;gap:12px}
.auth-card #account-apple{display:flex;align-items:center;justify-content:center;gap:10px;background:#fff;color:#000;border:1px solid #fff;font-weight:600}
.auth-card #account-apple[hidden]{display:none}
.apple-mark{width:24px;height:24px;flex:0 0 24px}

/* Independent round result help in learning mode. */
#learning-hint #learning-round-guide,#learning-hint #learning-round-disable{display:block;width:auto;height:auto;min-width:0;min-height:28px;text-align:left;margin:8px 0 0;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;appearance:none;color:#e8c983;text-decoration:underline;text-underline-offset:3px;letter-spacing:normal;font-size:14px;line-height:1.4;font-weight:600}
#learning-hint #learning-round-disable{color:var(--muted);font-size:12px;font-weight:400}
#learning-hint #learning-round-guide:focus-visible,#learning-hint #learning-round-disable:focus-visible{outline:2px solid #e8c983;outline-offset:3px}
#learning-round-guide.hidden,#learning-round-disable.hidden,#guide-played-round.hidden{display:none!important}
.guide-played-round{margin:14px 0 20px}
.guide-played-round>p{color:var(--gold);font-weight:700}
.guide-round-cards{display:flex;justify-content:center;gap:24px}
.guide-round-cards>div{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:13px}
.guide-round-cards .sprite-card{width:80px;height:120px;border-radius:8px}
.guide-played-cards{display:block;color:#e8c983;font-size:12px;line-height:1.4;margin:4px 0}
.card-order-guide .guide-played{box-shadow:inset 3px 0 #e8c983;background:rgba(232,201,131,.09)}

/* Keep voice controls transparent and spoken calls on their gold panel. */
#game-view #player-sound-toggle,#game-view #sound-toggle{background:transparent}
#game-view #call-notice,#learning-hint #learning-call-notice{background:#ead7a5;color:#15251b;border-color:#d8b875}

/* Free virtual credits; hidden until a registered account is ready. */
.credits-panel[hidden]{display:none!important}
.credits-panel{margin:0;padding:14px 16px;border:1px solid rgba(232,201,131,.45);border-radius:12px;background:rgba(8,30,22,.3);color:#e8c983}
.credits-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-weight:600}
.credits-heading strong{font-size:24px;line-height:1}
.credits-panel p{margin:8px 0 0;color:#c5d3c9;font-size:13px;line-height:1.45}
.credits-panel .button{margin-top:10px;min-height:40px;width:100%;padding:9px 12px;font-size:14px;background:transparent;color:#e8c983;border:1px solid #e8c983}
.credits-panel .button[hidden]{display:none!important}
.credits-panel .button:disabled{opacity:.6;cursor:default}

/* Credit tables: scoped controls match the existing green/gold palette. */
.credit-table-settings {display:grid;gap:10px;margin:14px 0;text-align:left;}
.credit-table-settings p {margin:0;font-size:13px;color:var(--muted,#bbcec0);}
.credit-table-settings input,.credit-table-settings select,.credit-join-dialog input {box-sizing:border-box;width:100%;padding:12px;border:1px solid #d9bd79;border-radius:10px;background:#103b2c;color:#f1e9d7;font:inherit;}
.credit-table-settings [hidden],.credit-join-dialog [hidden] {display:none;}
.credit-join-dialog {width:min(420px,calc(100% - 40px));box-sizing:border-box;padding:22px;border:1px solid #d9bd79;border-radius:20px;background:#143d2e;color:#f1e9d7;}
.credit-join-dialog::backdrop {background:#001b1390;backdrop-filter:blur(5px);}
.credit-join-dialog form {display:grid;gap:14px;}.credit-join-dialog h2,.credit-join-dialog p {margin:0;}
#join-credit-close {justify-self:end;}#join-credit-submit {background:#e8c97f;color:#143326;}#join-credit-error {color:#f0a9a0;}

.credit-table-settings.hidden{display:none!important;}

/* Lobby: player identity and wallet together, with matching gold actions. */
#welcome-view{overflow-y:auto;background:radial-gradient(ellipse at 50% 35%,#104b37 0,#063526 60%,#082d22 100%);padding:20px;gap:24px}
#welcome-view .home-topbar{display:flex;width:min(900px,100%);height:auto;min-height:82px;gap:20px;padding:12px 18px;border:1px solid #b5d0be55;border-radius:20px;box-sizing:border-box;flex-shrink:0}
#welcome-view .home-topbar .brand-lockup{flex:0 0 115px}
#welcome-view .home-topbar .truco-logo{width:115px;height:80px;object-fit:contain;max-width:none}
.home-player-wallet{display:flex;align-items:center;justify-content:space-between;gap:14px;flex:1;min-width:0;padding:12px;border:1px solid #b5d0be44;border-radius:16px;background:#001e1640}
#welcome-view .home-topbar .account-entry{flex-direction:row-reverse;justify-content:flex-end;padding:0;gap:10px;text-align:left;color:#fff;font-size:18px;flex:1;min-width:0}
.home-user-copy{display:flex;flex-direction:column;min-width:0;gap:3px}
#account-username{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}
#welcome-view .home-topbar .home-edition{font-size:14px;color:#bdd0c6}
#welcome-view .account-user-icon{width:36px;height:36px;flex-basis:36px;color:#e8c983}
.home-wallet-summary{display:flex;align-items:center;gap:10px;border-left:1px solid #b5d0be66;padding-left:14px;color:#fff;font-size:15px}
.home-wallet-summary strong{display:block;color:#e8c983;font-size:27px;line-height:1.1}
.credit-coin-icon{width:40px;height:40px;fill:#e8c983;stroke:#a8833d;stroke-width:2;flex-shrink:0}
#credits-open{background:#e8c983;color:#082d22;border:1px solid #f4db9a;border-radius:13px;width:46px;height:46px;font:500 34px 'DM Sans',sans-serif;cursor:pointer;flex-shrink:0}
#welcome-view .home-content{display:flex;flex-direction:column;width:min(820px,100%);gap:28px;flex:none}
#welcome-view .home-intro{display:flex;width:100%;padding:0;gap:22px}
#welcome-view .home-heading h1{text-align:left;font-size:clamp(32px,6vw,52px)}
#welcome-view .home-actions{gap:14px}
#welcome-view .home-actions #create-room,#welcome-view .home-actions #learn-game{height:76px;min-height:76px;border-radius:20px;padding:0 24px;gap:22px;font-size:clamp(19px,3vw,26px)}
#welcome-view .home-actions #create-room{background:linear-gradient(110deg,#e8c983,#f2d994,#e8c983)}
.home-action-icon{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:1.8;flex-shrink:0}
.home-action-chevron{margin-left:auto;font-size:40px;font-weight:400;line-height:1}
#welcome-view .credits-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 18px;padding:22px;border-radius:20px;margin-top:4px;background:#062d2255}
#welcome-view .credits-heading{display:grid;grid-template-columns:48px minmax(0,1fr);gap:5px 12px;color:white;align-items:center;font-size:20px}
#welcome-view .credits-heading .credit-coin-icon{grid-row:1/3;width:48px;height:48px}
#welcome-view .credits-heading strong{grid-column:2;font-size:44px;color:#e8c983;line-height:1.1}
#welcome-view .credits-panel p{grid-column:1;margin:0;padding-left:60px;font-size:15px}
#welcome-view .credits-panel .button{grid-column:2;grid-row:1/3;align-self:center;margin:0;width:150px;min-height:66px;white-space:normal;line-height:1.35;border-radius:16px;font-size:18px}
#welcome-view .home-lobby{width:100%;overflow:visible}
#welcome-view .home-section-title h2{font-size:clamp(25px,4vw,34px);margin:0}
#welcome-view .open-room-list{overflow:visible;padding:0}
#welcome-view .empty-lobby{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:160px;border:1px dashed #b5d0be66;border-radius:20px;background:transparent;padding:20px}
#welcome-view .empty-lobby strong{font-size:20px;font-weight:400;color:#bed0c7;text-align:center}
.empty-table-icon{width:62px;height:62px;fill:none;stroke:#93b2a2;stroke-width:2.5;opacity:.7}
.credits-highlight{animation:credits-glow 1s ease}
@keyframes credits-glow{50%{box-shadow:0 0 0 3px #e8c98388}}
@media(max-width:500px){#welcome-view{padding:14px;gap:22px}#welcome-view .home-topbar{padding:10px;gap:8px;min-height:72px}#welcome-view .home-topbar .brand-lockup{flex-basis:70px}#welcome-view .home-topbar .truco-logo{width:70px;height:58px}.home-player-wallet{padding:8px;gap:8px}#welcome-view .home-topbar .account-entry{font-size:14px;gap:6px}#welcome-view .account-user-icon{width:27px;height:27px;flex-basis:27px}#welcome-view .home-topbar .home-edition{font-size:11px}.home-wallet-summary{gap:6px;padding-left:8px;font-size:12px}.home-wallet-summary .credit-coin-icon{display:none}.home-wallet-summary strong{font-size:23px}#credits-open{width:34px;height:38px;font-size:27px;border-radius:10px}#welcome-view .home-actions #create-room,#welcome-view .home-actions #learn-game{height:64px;min-height:64px;padding:0 20px;gap:16px}#welcome-view .credits-panel{padding:16px;gap:6px 10px}#welcome-view .credits-heading{grid-template-columns:34px minmax(0,1fr);gap:5px 9px;font-size:15px}#welcome-view .credits-heading .credit-coin-icon{width:34px;height:34px}#welcome-view .credits-heading strong{font-size:34px}#welcome-view .credits-panel p{padding-left:43px;font-size:12px}#welcome-view .credits-panel .button{width:108px;font-size:14px;min-height:58px;padding:8px}#welcome-view .home-content{gap:26px}#welcome-view .empty-lobby strong{font-size:16px}}
@media(prefers-reduced-motion:reduce){.credits-highlight{animation:none}}

#welcome-view .home-topbar .brand-lockup{display:flex;flex-direction:column;gap:0;align-items:center}
#welcome-view .home-topbar .brand-lockup .home-edition{text-align:center;letter-spacing:0;line-height:1.2;margin-top:-4px;font-size:13px}

#setup-view .topbar{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:center}
#setup-view .setup-wallet{justify-self:end;border:1px solid #b5d0be44;border-radius:14px;padding:8px 12px;background:#001e1640;font-size:13px}
#setup-view .setup-wallet strong{font-size:24px}
#setup-view .setup-wallet .credit-coin-icon{width:30px;height:30px}
@media(max-width:400px){#setup-view .setup-wallet{padding:6px 8px;gap:5px;font-size:11px}#setup-view .setup-wallet .credit-coin-icon{width:24px;height:24px}}

#welcome-view .credits-panel{background:radial-gradient(ellipse at top left,rgba(255,255,255,.12),rgba(255,255,255,.035) 35%,transparent 65%),#062d2255}
#welcome-view #credits-status[hidden]{display:none!important}

/* Compact lobby matching the supplied mobile reference. */
#welcome-view{padding:24px 17px 22px;gap:32px;background:radial-gradient(ellipse at 50% 40%,#124c38 0,#073a2a 65%,#062f23 100%)}
#welcome-view .home-topbar{border:0;background:transparent;padding:0;gap:32px;min-height:70px}
#welcome-view .home-topbar .brand-lockup{flex-basis:94px}
#welcome-view .home-topbar .truco-logo{width:94px;height:60px}
#welcome-view .home-topbar .brand-lockup .home-edition{font-size:15px;font-weight:700;margin-top:-3px;color:#bdd4c9}
.home-player-wallet{padding:10px;gap:12px;border-radius:20px;background:#001e1625}
#welcome-view .home-topbar .account-entry{font-size:16px;gap:8px}
#welcome-view .account-user-icon{width:28px;height:28px;flex-basis:28px}
.home-wallet-summary{padding-left:10px;gap:8px;font-size:14px}
.home-wallet-summary .credit-coin-icon{display:none}
.home-wallet-summary strong{font-size:26px}
#credits-open{width:40px;height:44px;border-radius:12px;font-size:30px}
#welcome-view .home-intro{gap:24px}
#welcome-view .home-actions{gap:16px}
#welcome-view .home-actions #create-room,#welcome-view .home-actions #learn-game{height:64px;min-height:64px;padding:0 24px;gap:22px;font-size:23px;border-radius:12px}
.home-action-icon{width:34px;height:34px}
.home-action-chevron{font-size:34px}
#welcome-view .home-content{gap:28px}
#welcome-view .home-section-title h2{font-size:29px;line-height:1.2}
#welcome-view .open-room-list{margin-top:18px}
#welcome-view .empty-lobby{min-height:182px;box-sizing:border-box;gap:22px;padding:24px;border-radius:24px;border-color:#b5d0be40}
#welcome-view .empty-lobby strong{font-size:18px}
.empty-table-icon{width:64px;height:64px}
@media(max-width:500px){#welcome-view .home-topbar{gap:24px}#welcome-view .home-topbar .brand-lockup{flex-basis:103px}#welcome-view .home-topbar .truco-logo{width:80px;height:57px}.home-player-wallet{padding:10px;gap:8px}#welcome-view .home-topbar .account-entry{font-size:16px;gap:7px}.home-wallet-summary{font-size:14px;gap:7px;padding-left:10px}#credits-open{width:39px;height:44px;font-size:30px}#welcome-view .home-actions #create-room,#welcome-view .home-actions #learn-game{font-size:23px;padding:0 24px;gap:22px}}
@media(max-width:370px){#welcome-view .home-topbar{gap:10px}#welcome-view .home-topbar .brand-lockup{flex-basis:78px}#welcome-view .home-topbar .account-entry{font-size:14px}#welcome-view .home-actions #create-room,#welcome-view .home-actions #learn-game{font-size:20px;padding:0 18px;gap:16px}.home-wallet-summary{font-size:12px;padding-left:7px}#credits-open{width:34px}}

#welcome-view{justify-content:flex-start;padding-top:12px;padding-left:9px;padding-right:17px;gap:24px}
#welcome-view .home-topbar{gap:16px;margin:0 auto}
#welcome-view .home-content{margin:0 auto;padding-left:8px;flex:0 0 auto}
#welcome-view .home-topbar .brand-lockup{flex-basis:80px}
#welcome-view .home-section-title h2{font-size:25px}
#welcome-view .lobby-card{padding:16px;border:1px solid #e8c98355;background:linear-gradient(125deg,#ffffff08,transparent),#062e2290;border-radius:16px}
#welcome-view .lobby-card-top>div{flex:1;min-width:0}
#welcome-view .lobby-card h3{font-size:19px;color:#f7f3e9;margin:0 0 12px}
.lobby-details{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.lobby-details>div{display:flex;flex-direction:column;gap:4px;padding:9px 10px;background:#001e1640;border-radius:9px}
.lobby-details>div:last-child{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between;gap:12px}
.lobby-details span{font-size:12px;color:#abc4b6}
.lobby-details strong{font-size:17px;color:#e8c983;line-height:1.3}
.lobby-details .lobby-privacy{font-size:14px;color:#d4e5db}
#welcome-view .lobby-count{align-self:flex-start;background:#e8c98315;color:#e8c983;min-width:40px;text-align:center}
#welcome-view .lobby-join-options .button{height:42px;min-height:42px;font-size:15px;border-radius:10px;background:#e8c983;color:#12382b;justify-content:center;font-weight:700}
#welcome-view .lobby-join-options .button:disabled{opacity:.4;cursor:not-allowed}
@media(max-width:500px){#welcome-view .home-topbar{gap:12px}#welcome-view .home-topbar .brand-lockup{flex-basis:90px}}
@media(max-width:370px){#welcome-view .home-topbar{gap:5px}#welcome-view .home-topbar .brand-lockup{flex-basis:78px}}

#welcome-view .compact-room{display:grid;grid-template-columns:minmax(0,1.55fr) .75fr .85fr .95fr auto;align-items:center;padding:12px 10px;gap:0;border-color:#e8c983aa;border-radius:16px}
.compact-room-owner{display:flex;align-items:center;gap:8px;padding-right:8px;min-width:0}
.compact-room-owner>svg{width:34px;height:34px;flex-shrink:0;border-radius:50%;padding:6px;background:#6cb69c44;fill:#cde3d9}
#welcome-view .compact-room h3{margin:0;overflow:hidden;text-overflow:ellipsis;font-size:16px;line-height:1.2}
.compact-room-stat,.compact-room-privacy{display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center;gap:2px;border-left:1px solid #a7c0b350;min-height:65px;padding:0 7px}
.compact-room-stat svg,.compact-room-privacy svg{width:23px;height:23px;fill:none;stroke:#e8c983;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;margin-bottom:3px}
.compact-room-stat strong{font-size:20px;line-height:1.1;color:#fff}
.compact-room-stat span{font-size:11px;color:#d0e0d7}
.compact-room-privacy strong{font-size:12px;color:#fff;margin-top:3px}
.compact-room-privacy.is-public svg{stroke:#4dd99b}
.compact-room-privacy.is-private svg{stroke:#e8c983}
#welcome-view .compact-room .lobby-join-options{margin:0;padding-left:7px}
#welcome-view .compact-room .lobby-join-options .button{height:45px;min-height:45px;padding:0 16px;font-size:15px;border-radius:12px}
@media(max-width:380px){#welcome-view .compact-room{padding:10px 7px;grid-template-columns:minmax(0,1.3fr) .7fr .8fr .85fr auto}.compact-room-owner{gap:5px}.compact-room-owner>svg{width:27px;height:27px}#welcome-view .compact-room h3{font-size:13px}.compact-room-stat,.compact-room-privacy{padding:0 4px}.compact-room-stat span{font-size:10px}.compact-room-privacy strong{font-size:11px}#welcome-view .compact-room .lobby-join-options .button{padding:0 10px;font-size:13px}}

#setup-view .setup-wallet .credit-coin-icon{display:block}#setup-view .stake-stepper{display:flex;align-items:center;gap:12px;margin:8px 0 22px}#setup-view .stake-stepper button{display:flex;align-items:center;justify-content:center;width:52px;height:52px;flex:0 0 52px;border:1px solid var(--gold,#e8c983);border-radius:12px;background:transparent;color:#e8c983;font-size:30px;line-height:1;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}#setup-view .stake-stepper button:active{background:#e8c983;color:#103b2d}#setup-view .stake-stepper button:disabled{opacity:.35}#setup-view .stake-stepper input{flex:1;min-width:0;margin:0;padding:8px;text-align:center;font-size:26px;font-weight:700;background:transparent;border:0;pointer-events:none;-moz-appearance:textfield}#table-stake::-webkit-inner-spin-button,#table-stake::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}

#setup-view .stake-stepper{justify-content:center;gap:6px;width:fit-content;max-width:100%;margin:8px 0 22px}#setup-view .stake-amount{display:flex;align-items:center;gap:3px}#setup-view .stake-amount .credit-coin-icon{display:block;width:26px;height:26px}#setup-view .stake-stepper input{flex:none;width:2ch;padding:4px 0;font-size:24px}#setup-view .stake-stepper button{width:46px;flex-basis:46px;height:46px}@media(max-width:360px){#setup-view .stake-stepper input{font-size:20px}#setup-view .stake-stepper button{width:42px;flex-basis:42px;height:44px}}

#join-credit-submit{border:1px solid #e8c983;border-radius:12px;min-height:52px;padding:12px 20px;font:inherit;font-weight:700;cursor:pointer;touch-action:manipulation}#join-credit-submit:disabled{opacity:.55;cursor:wait}#join-credit-error{font-size:14px;color:#ff8f86}#join-credit-error:empty{display:none}

.invite-whatsapp .whatsapp-brand-icon{width:28px;height:28px;flex-shrink:0}

.abandon-actions{display:flex;gap:12px;margin-top:20px}.abandon-actions .button{flex:1;border:1px solid #e8c983;border-radius:12px;padding:12px;font:inherit;font-weight:700;background:transparent;color:#e8c983}.abandon-actions .primary{background:#e8c983;color:#143326}.abandon-actions button:disabled{opacity:.5}#abandon-error{color:#ff8f86}#abandon-error:empty{display:none}

.password-field{display:block;position:relative}.credit-table-settings .password-field input,.credit-join-dialog .password-field input{padding-right:48px}.password-eye{position:absolute;right:3px;top:50%;transform:translateY(-50%);width:42px;height:42px;display:flex;align-items:center;justify-content:center;border:0;border-radius:8px;background:transparent;color:#e8c983;padding:9px;touch-action:manipulation}.password-eye svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.password-eye .eye-slash{display:none}.password-eye[aria-pressed="true"] .eye-slash{display:block}.password-eye:focus-visible{outline:2px solid #e8c983;outline-offset:-2px}

#auth-login[hidden]{display:none}

/* One composited card remains visible until the confirmed table card is ready. */
.launch-flight{position:fixed!important;z-index:10000!important;margin:0!important;pointer-events:none!important;animation:none!important;transition:none!important;translate:none!important;rotate:none!important;transform-origin:center!important;will-change:transform;backface-visibility:hidden}

.end-envido-award{margin:0;text-align:center;color:var(--gold);font-size:clamp(20px,5vw,30px);line-height:1.25}

/* Standalone full-screen scorekeeper. */
#welcome-view .home-actions #open-scorer{height:64px;min-height:64px;border-radius:12px;padding:0 24px;gap:22px;font-size:23px;text-align:left;justify-content:flex-start}
#scorer-view.active{display:flex;flex-direction:column;position:fixed;inset:0;z-index:10;height:100dvh;min-height:0;padding: max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:#12382b}
.scorer-header{display:grid;grid-template-columns:72px 1fr 72px;align-items:center;gap:8px;flex:none}
.scorer-header h1{margin:0;text-align:center;font-size:24px;color:var(--gold)}
.scorer-header .button{padding:8px;font-size:14px;min-height:44px;border-radius:12px}
#scorer-status{text-align:center;margin:12px 0;color:var(--gold);font-size:18px;flex:none}
#scorer-setup{margin:auto;width:min(100%,500px);text-align:center}
#scorer-setup p{color:var(--muted)}
.scorer-targets{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0}
.scorer-targets .button{border-radius:16px;font-size:28px;min-height:85px}
#scorer-board:not([hidden]){display:grid;grid-template-columns:1fr 1fr;flex:1;min-height:0;gap:12px}
.scorer-team{display:flex;flex-direction:column;min-height:0;gap:10px}
.scorer-team+.scorer-team{border-left:1px solid var(--line);padding-left:12px}
.scorer-add{border:0;background:transparent;color:var(--ink);padding:8px;display:flex;flex-direction:column;align-items:center;flex:1;min-height:0;gap:6px;border-radius:18px;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.scorer-add:active{background:rgba(232,201,131,.12)}
.scorer-add:disabled{opacity:1;cursor:default}
.scorer-team-name{font-size:clamp(18px,4vw,28px);font-weight:600}
.scorer-total{font-size:clamp(30px,7vw,52px);font-weight:700;color:var(--gold);line-height:1.1}
.scorer-tally{flex:1;min-height:0;width:100%;display:flex;justify-content:center}
.scorer-tally svg{height:100%;width:auto;max-width:100%}
.scorer-tap{font-size:13px;color:var(--muted);margin-top:6px}
.scorer-winner{background:rgba(232,201,131,.1)}
.scorer-minus{min-height:48px;flex:none;border-radius:12px;font-size:17px;padding:10px}
.scorer-minus:disabled{opacity:.35;cursor:default}
@media(max-height:450px){.scorer-header h1{font-size:20px}#scorer-status{margin:5px}.scorer-total{font-size:26px}.scorer-team-name{font-size:18px}.scorer-tap{display:none}.scorer-minus{min-height:38px;padding:6px}}
#scorer-view [hidden]{display:none!important}

#scorer-view{touch-action:manipulation}
#scorer-view .scorer-team-name{font-size:clamp(25px,6vw,38px);line-height:1.2}
#scorer-view .scorer-minus{touch-action:manipulation}
#scorer-view #scorer-board{margin-top:18px}

/* Allow scrolling, but disable pinch and double-tap browser zoom. */
html,body,#app{touch-action:pan-x pan-y}

#welcome-view .home-tools-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;width:100%}
#welcome-view .home-tools-row #learn-game,#welcome-view .home-tools-row #open-scorer{width:100%;min-width:0;height:64px;min-height:64px;padding:12px;gap:9px;font-size:clamp(14px,3.5vw,20px);line-height:1.2;justify-content:flex-start}
#welcome-view .home-tools-row .home-action-icon{width:22px;height:22px;flex:0 0 22px}
#welcome-view .home-tools-row .home-action-chevron{display:none}
#welcome-view .home-tools-row button>span:not(.home-action-chevron){min-width:0;text-align:left;white-space:normal}

#scorer-view #scorer-new{height:44px;min-height:44px;max-height:44px;padding:0 8px;display:flex;align-items:center;justify-content:center}

/* Equal inner widths keep both SVG score columns at the same scale. */
#scorer-view #scorer-board{position:relative;gap:24px}
#scorer-view #scorer-board::after{content:"";position:absolute;left:50%;top:0;bottom:0;width:1px;background:var(--line);pointer-events:none}
#scorer-view .scorer-team+.scorer-team{border-left:0;padding-left:0}
#scorer-view .scorer-tally{position:relative;flex:1;min-height:0}
#scorer-view .scorer-tally svg{position:absolute;inset:0;width:100%;height:100%;max-width:100%}

#scorer-view #scorer-colors{appearance:none;border:0;border-radius:0;padding:0;margin:0;background:transparent;color:var(--gold);font:inherit;cursor:pointer;touch-action:manipulation}
#scorer-view #scorer-colors:focus-visible{outline:2px solid var(--gold);outline-offset:5px;border-radius:4px}
#scorer-view.scorer-colors-inverted #scorer-colors{color:var(--ink)}
#scorer-view.scorer-colors-inverted .scorer-team-name{color:var(--gold)}
#scorer-view.scorer-colors-inverted .scorer-tally svg g{stroke:var(--gold)}
#scorer-view.scorer-colors-inverted .scorer-tally svg>line{stroke:var(--gold)}
#scorer-view.scorer-colors-inverted #scorer-board::after{background:color-mix(in srgb,var(--gold) 30%,transparent)}

/* Account history and problem reporting */
.report-link{appearance:none;background:transparent;border:0;color:var(--gold);font:inherit;font-size:13px;text-decoration:underline;padding:10px;cursor:pointer;touch-action:manipulation}
.legal-links{display:flex;justify-content:center;gap:18px;margin:4px auto 0;font-size:12px}.legal-links a{color:var(--muted);text-underline-offset:3px}.legal-links a:hover{color:var(--gold)}
#lobby-report{display:block;margin-top:auto;align-self:center}
#match-report{display:block;margin:10px auto 0}
.player-account-summary{display:flex;flex-direction:column;gap:6px;padding:16px;background:rgba(255,255,255,.04);border:1px solid var(--line);border-radius:14px;margin-bottom:8px}
.player-account-summary strong{color:var(--gold);font-size:24px}.player-account-summary span{font-size:14px;color:var(--ink)}
#account-menu{display:flex;flex-direction:column;gap:10px}#account-menu[hidden]{display:none}
.player-overlay{padding:0;border:1px solid var(--gold);border-radius:20px;background:#12382b;color:var(--ink);width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 24px)}
.player-overlay::backdrop{background:rgba(0,0,0,.55);backdrop-filter:blur(6px)}
.player-panel-card{position:relative;padding:22px}.player-panel-card h2{color:var(--gold);margin:0 44px 18px 0;font-size:23px}.player-panel-card .account-close{position:absolute;right:12px;top:12px}
.player-panel-body{display:flex;flex-direction:column;gap:14px}.player-panel-body p{margin:5px 0;font-size:14px}.player-panel-body small{display:block;font-size:12px;opacity:.8}
.player-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.player-stat{padding:12px 6px;border:1px solid var(--line);border-radius:12px;text-align:center}.player-stat strong{display:block;color:var(--gold);font-size:25px}
.player-history-item{padding:14px;border:1px solid var(--line);border-radius:14px}.player-history-item h3{margin:0 0 6px;color:var(--gold);font-size:17px}
.player-panel-body summary{color:var(--gold);cursor:pointer;font-size:14px}.player-panel-body form{display:flex;flex-direction:column;gap:12px}.player-panel-body textarea{width:100%;box-sizing:border-box;border:1px solid var(--gold);border-radius:12px;background:#0c291f;color:var(--ink);padding:12px;font:inherit;font-size:16px}
.player-panel-body .button.primary{background:var(--gold);color:#12382b;border:1px solid var(--gold);border-radius:12px;padding:12px 16px;min-height:46px;height:auto;font:inherit;font-weight:700;letter-spacing:0;text-transform:none}

.player-summary-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.player-summary-stats .player-stat{padding:20px 10px}.player-summary-stats .player-stat strong{font-size:32px}.player-summary-stats .player-stat small{margin-top:5px;font-size:13px}

/* Evidence stays on the felt, with the deck and sample visible above it. */
.reveal-mode .end-hand-reveal{inset:34% 3% 10%;background:transparent;gap:18px;padding:12px 8px;justify-content:center}
.reveal-mode .end-reveal-group{gap:10px}
.reveal-mode .end-reveal-cards{gap:12px;align-items:center}
.reveal-mode .end-reveal-card{box-shadow:0 8px 18px #0005;transform:rotate(-4deg)}
.reveal-mode .end-reveal-card:nth-child(2){transform:rotate(2deg)}
.reveal-mode .end-reveal-card:nth-child(3){transform:rotate(5deg)}
.end-evidence-penalty{max-width:420px;margin:0;color:#f0eee2;text-align:center;font-size:14px;line-height:1.4}
.reveal-mode .multiple-evidence .end-reveal-card{width:clamp(56px,15vw,100px)}
.reveal-mode .multiple-evidence{gap:12px}

.lobby-welcome-dialog{position:fixed;inset:0;margin:auto;width:min(420px,calc(100vw - 32px));height:fit-content;max-height:60dvh;overflow:visible;box-sizing:border-box;background:#123b2d;color:#f0eee2;border:1px solid #e8c983;border-radius:22px;padding:20px}
.lobby-welcome-dialog::backdrop{background:#00160a66}
.lobby-welcome-dialog h2{color:#e8c983;font-size:21px;margin:0 38px 14px 0}
.lobby-welcome-copy p{font-size:15px;line-height:1.45;margin:8px 0}
.lobby-welcome-step{color:#e8c983;text-align:center;font-size:12px;margin:12px 0 0}
.lobby-welcome-arrow{position:fixed;inset:0;width:100vw;height:100dvh;pointer-events:none;overflow:visible}
.lobby-welcome-highlight{outline:2px solid #ead39b;outline-offset:5px;border-radius:14px}

.learn-game-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.learn-game-modes .button{min-width:0;min-height:56px;padding:12px 8px;white-space:normal;justify-content:center;text-align:center;font-size:clamp(12px,3.3vw,15px);line-height:1.3;border-radius:10px}

/* Keep evidence readable from the top, including on short mobile screens. */
.reveal-mode .end-hand-reveal{justify-content:flex-start;gap:12px;padding:14px 8px 20px;scroll-padding-top:14px;overscroll-behavior:contain}
.reveal-mode .end-hand-reveal>*{flex-shrink:0}
.end-evidence-penalty p{margin:0}
.end-evidence-penalty p+p{margin-top:8px}
.reveal-mode .end-reveal-group{gap:8px}
.reveal-mode .end-reveal-card{width:clamp(56px,17vw,90px)}
.reveal-mode .multiple-evidence .end-reveal-card{width:clamp(52px,15vw,80px)}

.reveal-mode .multiple-evidence{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;align-items:start;gap:12px}
.multiple-evidence>.end-envido-award,.multiple-evidence>.end-evidence-penalty{grid-column:1 / -1;justify-self:center}
.reveal-mode .multiple-evidence .end-reveal-group{min-width:0}
.reveal-mode .multiple-evidence .end-reveal-cards{gap:6px}

#credits-claim{flex-direction:column;gap:6px}
#credits-claim .credit-countdown{display:block;font-variant-numeric:tabular-nums;font-size:.9em}
