: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 + 48px);right:4%}
.player-mode.two-device-mode .hand-card{width:clamp(99.275px,30.685vw,122.74px);height:clamp(142.595px,43.32vw,166.06px);flex-basis:clamp(99.275px,30.685vw,122.74px);margin-left:-29.45px;margin-right:-29.45px}
@media(max-height:650px){
  .player-mode.two-device-mode .center-table{top:15px}
  .player-mode.two-device-mode .mobile-score{top:138px}
  .player-mode.two-device-mode .hand-card{width:clamp(86.64px,27.9775vw,101.08px);height:clamp(126.35px,37.905vw,144.4px);flex-basis:clamp(86.64px,27.9775vw,101.08px);margin-left:-24.7px;margin-right:-24.7px}
}


.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% - 6px)}


.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-report-message{display:block!important;height:auto!important;margin:6px 0 0 auto;padding:3px 0!important;border:0!important;background:transparent!important;color:#d6c18e!important;font-size:11px;font-weight:500!important;text-decoration:underline;cursor:pointer}
.chat-report-message:disabled{opacity:.65;cursor:default}
.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-options{margin:-4px 0 12px;color:#aabbb0;font-size:12px}
.chat-options summary{width:fit-content;cursor:pointer;padding:6px 0}
.chat-block-option{display:flex;align-items:center;gap:8px;margin:8px 0;font-size:12px;cursor:pointer}
.chat-block-option input{accent-color:#ead7a5}
.chat-options #chat-report-mode{border:0;background:transparent;color:#d6c18e;padding:8px 0;font-size:12px;text-decoration:underline}
.chat-report-hint{margin:0 0 10px;color:#ead7a5;font-size:13px}
.chat-mute{font-size:14px;font-weight:600;color:#f7f3e9}

.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(3,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-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,.game.player-mode .game-topbar #turn-badge.turn-rejected{color:#fff;border-color:#ff8a80;background:#c8453b;box-shadow:0 0 14px #ff716766}
#turn-badge.turn-rejected .turn-badge-label,#turn-badge.turn-rejected .turn-timer,#turn-badge.turn-rejected .round-pause-timer{color:#fff;border-color:#ff8a80}

#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:28px;background:#10291f;color:#e4cf9c;text-align:center;padding:24px;box-sizing:border-box}
.startup-loading[hidden]{display:none}
.startup-loading .startup-animation{display:block;width:120px;height:120px;margin:0 auto}
.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:#ecc97c;stroke:#6e4e17;stroke-width:3;stroke-linejoin:round;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) minmax(210px,240px);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;justify-self:stretch;box-sizing:border-box;margin:0;width:100%;min-height:70px;padding:12px 14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;white-space:normal;text-align:center;line-height:1.25;border-radius:16px;font-size:16px}
#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{grid-template-columns:minmax(0,1fr);padding:16px;gap:8px}#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{grid-column:1;padding-left:43px;font-size:12px}#welcome-view .credits-panel .button{grid-column:1;grid-row:auto;width:100%;min-height:64px;padding:10px 14px;font-size:15px;line-height:1.25}#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-blocked-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--line);border-radius:12px}.player-blocked-item strong{min-width:0;overflow-wrap:anywhere;color:var(--ink)}.player-blocked-item .button{flex:0 0 auto}
.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}

/* Clear, compact lobby links for privacy and support. */
#welcome-view .legal-links{display:flex;justify-content:center;align-items:center;gap:8px;width:max-content;max-width:100%;margin:8px auto 0;padding:4px;border:1px solid rgba(232,201,131,.22);border-radius:999px;background:rgba(5,28,20,.28);font-size:12px}
#welcome-view .legal-links a{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:0 13px;border:1px solid transparent;border-radius:999px;color:#d9e2da;text-decoration:none;text-underline-offset:3px;white-space:nowrap;transition:background .18s ease,border-color .18s ease,color .18s ease}
#welcome-view .legal-links a:hover,#welcome-view .legal-links a:focus-visible{border-color:rgba(232,201,131,.45);background:rgba(232,201,131,.1);color:#f1d99f;outline:none}
#welcome-view #lobby-report{display:block;width:max-content;max-width:100%;margin:12px auto 0;padding:7px 13px;border:1px solid rgba(232,201,131,.3);border-radius:999px;color:#c9d5cb;font-size:11px;text-decoration:none;transition:background .18s ease,border-color .18s ease,color .18s ease}
#welcome-view #lobby-report:hover,#welcome-view #lobby-report:focus-visible{border-color:#e8c983;background:rgba(232,201,131,.09);color:#f1d99f;outline:none}
@media(max-width:380px){#welcome-view .legal-links{gap:3px}#welcome-view .legal-links a{padding:0 10px;font-size:11px}}

/* 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:4px;line-height:1.25}
#credits-claim>span:first-child{display:block;max-width:100%}
#credits-claim .credit-countdown{display:block;font-variant-numeric:tabular-nums;font-size:.9em;letter-spacing:.04em;opacity:.9}

/* Evitar selección accidental durante el juego; conservar la edición de campos. */
body{-webkit-user-select:none;user-select:none}
input,textarea,[contenteditable=""],[contenteditable="true"]{-webkit-user-select:text;user-select:text}

/* Reward button has its own contrast and a separate grid row. */
#welcome-view #credits-ad{grid-row:3;grid-column:2;background:#e8c983;color:#12382b;-webkit-text-fill-color:#12382b;font-weight:700;height:auto;min-height:56px;white-space:normal;line-height:1.3;text-align:center}
#welcome-view #credits-ad:disabled{opacity:.65}
@media(max-width:500px){#welcome-view #credits-ad{grid-column:1;grid-row:auto}}

/* Credits: equal actions, softly lit felt, and a clear reward. */
#welcome-view .credits-panel{grid-template-columns:minmax(0,1fr);gap:12px;padding:20px;border:1px solid #d8c58c99;border-radius:22px;background:#26364B;box-shadow:inset 0 1px 1px #fff5,inset 0 -12px 24px #001b1740,0 8px 20px #001b1720}
#welcome-view .credits-heading{grid-column:1;margin-bottom:6px}
#welcome-view #credits-claim,#welcome-view #credits-ad{grid-column:1;grid-row:auto;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:12px;min-height:64px;height:auto;padding:12px 16px;border-radius:16px;font-size:16px;line-height:1.25}
#welcome-view #credits-claim{background:linear-gradient(180deg,#b6cfca2e,#7e9c9620);border:1px solid #b2c7be99;color:#dae5df;-webkit-text-fill-color:currentColor;box-shadow:inset 0 1px 1px #fff3}
#welcome-view #credits-claim:disabled{opacity:1;color:#a6b9af;border-color:#a6b9af80;cursor:default}
#welcome-view #credits-ad,#welcome-view #credits-claim:not(:disabled){background:linear-gradient(180deg,#568d7355,#0c403055 60%,#00291f66);border:1px solid #e8c983b3;color:#e8c983;-webkit-text-fill-color:currentColor;box-shadow:inset 0 2px 2px #fff6,inset 0 -3px 6px #0003;font-weight:700}
#welcome-view #credits-ad:hover,#welcome-view #credits-claim:not(:disabled):hover{background-color:#295c4666;transform:none}
#welcome-view #credits-ad:disabled{opacity:.65}
.credit-action-icon{width:28px;height:28px;flex:0 0 28px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.credit-play{fill:currentColor;stroke:none}
.credit-ad-reward{display:inline-flex;align-items:center;gap:8px;margin-left:4px;padding-left:16px;border-left:1px solid #e8c98366;white-space:nowrap}
.credit-reward-icon{width:24px;height:28px;fill:#e8c98333;stroke:currentColor;stroke-width:1.5}
#welcome-view #credits-status{grid-column:1;grid-row:auto;order:4;padding:0;font-size:13px;line-height:1.4}
#welcome-view #credits-ad-note{grid-column:1;order:5;padding:0;text-align:center;color:#b2c6ba;font-size:11px;line-height:1.4}
@media(max-width:500px){#welcome-view .credits-panel{padding:16px;gap:10px}#welcome-view #credits-claim,#welcome-view #credits-ad{font-size:14px;gap:10px;padding:10px 12px}.credit-ad-reward{padding-left:12px}}

/* Account menu: profile and clear action rows. */
#account-panel{border:1px solid #e8c983;background:linear-gradient(145deg,#103b2d,#06271e);box-shadow:0 18px 60px #001b1480}
#account-panel .account-card{padding:24px;gap:18px}
#account-panel h2{font-size:28px;line-height:1.2;margin:0 0 2px}
#account-panel .account-close{width:38px;height:38px;right:16px;top:16px;border-color:#d8b87599;background:#06271e80}
#account-menu{gap:10px}
#account-menu .player-account-summary{flex-direction:row;align-items:center;gap:18px;padding:18px 16px;margin:0 0 8px;border-color:#91b29e44;background:linear-gradient(145deg,#6c957a28,#123c2e33)}
.account-avatar{width:64px;height:64px;flex:0 0 64px;padding:12px;border:2px solid #e8c983;border-radius:50%;fill:#e8c983;stroke:#e8c983;stroke-width:1.5}
.account-profile-copy{display:flex;flex-direction:column;gap:6px;min-width:0}.account-profile-copy strong{overflow-wrap:anywhere}.account-profile-copy span{font-weight:500}
#account-menu .button{display:flex;justify-content:flex-start;align-items:center;gap:14px;min-height:54px;padding:12px 16px;border-radius:13px;text-align:left;font-size:15px;font-weight:600}
#account-menu .button.secondary{border-color:#91b29e88;background:#06271e55;color:#e1e8e3}
#account-menu .button.secondary:hover{background:#204638}
#account-menu .button.primary{background:linear-gradient(120deg,#edcf85,#e2bc69);color:#0c3428;border-color:#f1d58e}
.account-menu-icon{width:25px;height:25px;flex:0 0 25px;fill:none;stroke:#e8c983;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#player-history .account-menu-icon{stroke:currentColor;stroke-width:4}
.account-action-label{flex:1;min-width:0}.account-action-chevron{width:18px;height:22px;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#account-menu #account-delete{margin-top:8px;border-color:#e85b58;background:#a62d2522;color:#ff6b66}#account-delete .account-menu-icon{stroke:currentColor}
#account-menu #account-report{margin-top:8px;padding-top:16px;border-top:1px solid #91b29e44}#account-menu .legal-links{margin-top:4px;font-size:13px}
@media(max-width:380px){#account-panel .account-card{padding:20px 16px}.account-avatar{width:54px;height:54px;flex-basis:54px;padding:10px}#account-menu .player-account-summary{gap:12px}#account-menu .button{gap:12px;padding:12px;font-size:14px}}
#account-menu .button[hidden]{display:none}

.release-intro{font-size:14px;line-height:1.5;color:#cbd9cf;text-align:center;margin:0 0 8px}

/* Create-table choices: shared heading size and heading-to-control spacing. */
#setup-view{background:linear-gradient(145deg,#063d2d,#003023);padding-top:12px}
#setup-view .setup-content{width:min(520px,100%);padding:12px 24px 24px}
#setup-view h2{font-size:34px;margin:0 0 20px}
#setup-view .setup-subtitle,#setup-view #bot-levels>label{display:block;font-size:17px;font-weight:700;line-height:1.3;color:#e5e9dd;margin:18px 0 8px;letter-spacing:0}
#setup-view .table-device-toggle{margin:0;padding:14px 16px;min-height:54px;border:1px solid #a1c1b344;border-radius:14px;font-size:16px;background:#00251b33}
#setup-view .credit-table-settings{margin:0;gap:0}
#setup-view .stake-stepper{margin:0;gap:12px;justify-content:flex-start}
#setup-view .stake-stepper button{width:52px;height:50px;flex-basis:52px;font-size:36px;border-radius:13px}
#setup-view .stake-amount{gap:10px;padding:0 2px}
#setup-view .stake-amount .credit-coin-icon{width:30px;height:34px}
#setup-view .stake-stepper input{font-size:28px;color:#f3f4e8}
#setup-view .setup-visibility-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#setup-view .setup-visibility-options button,#setup-view .points-option{display:flex;align-items:center;justify-content:center;gap:10px;border:1px solid #a1c1b344;border-radius:14px;background:#00251b33;color:#c7d9ce;min-height:52px;font-size:17px;font-weight:600;padding:12px 8px;cursor:pointer}
#setup-view .setup-visibility-options svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
#setup-view .setup-visibility-options button[aria-pressed=true],#setup-view .points-option[aria-pressed=true]{border-color:#f0d18a;color:#f0d18a;background:#0b493633;box-shadow:0 0 0 1px #f0d18a55}
#setup-view .points-picker{margin:0;position:static}
#setup-view .points-picker-menu{position:static;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;background:none;border:0;padding:0;box-shadow:none;width:100%;max-height:none;overflow:visible}
#setup-view .points-option{min-height:56px;font-size:24px}
#setup-view .points-option span{display:none}
#setup-view .points-picker-trigger{display:none}
#setup-view .full-button{width:100%;margin-top:22px;height:54px;font-size:21px;font-weight:700;background:linear-gradient(110deg,#e8c983,#f2d994,#e8c983);border-radius:16px}
#setup-view #table-password-row{margin:18px 0 0;font-size:17px}
#setup-view #bot-levels{margin:18px 0 0;padding:12px 14px}
#setup-view #bot-levels>label{margin:0 0 8px}
#setup-view #table-password-row[hidden]{display:none}
@media(max-width:360px){#setup-view .setup-content{padding-right:18px;padding-left:18px}#setup-view .setup-visibility-options,#setup-view .points-picker-menu{gap:8px}#setup-view .setup-visibility-options button{font-size:15px}}


/* Desktop lobby: felt table and a centered, comfortably sized playing area. */
@media(min-width:1024px){
 #welcome-view{padding:clamp(28px,5vh,50px) 32px 30px;gap:36px;background:linear-gradient(#001e161f,#001e161f),url('./assets/lobby-desktop-tatu.webp') center center/cover no-repeat fixed;isolation:isolate}
 #welcome-view .home-topbar,#welcome-view .home-content{width:min(840px,100%);max-width:840px;margin:0 auto;padding:0}
 #welcome-view .home-topbar{height:80px;min-height:80px;gap:32px}
 #welcome-view .home-topbar .brand-lockup{flex:0 0 90px}
 #welcome-view .home-topbar .truco-logo{width:90px;height:64px}
 #welcome-view .home-topbar .brand-lockup .home-edition{font-size:16px;margin-top:-2px}
 #welcome-view .home-player-wallet{min-height:68px;padding:10px 14px;border-radius:20px;border-color:#a9c5b33b;background:#00291e55;box-shadow:inset 0 1px 0 #ffffff05}
 #welcome-view .home-topbar .account-entry{font-size:18px;gap:12px}
 #welcome-view .account-user-icon{width:32px;height:32px;flex-basis:32px}
 #welcome-view .home-wallet-summary{gap:12px;padding-left:16px}
 #welcome-view .home-wallet-summary strong{font-size:28px}
 #welcome-view #credits-open{width:46px;height:46px;font-size:32px;box-shadow:inset 0 1px 1px #fff6,inset 0 -2px 3px #0001}
 #welcome-view .home-content{gap:30px}
 #welcome-view .home-intro{gap:22px}
 #welcome-view .home-actions{gap:18px}
 #welcome-view .home-actions #create-room{height:72px;min-height:72px;padding:0 28px;gap:24px;font-size:25px;border-radius:14px;box-shadow:inset 0 1px 1px #fff7,0 5px 16px #00150d33}
 #welcome-view .home-actions #create-room .home-action-icon{width:38px;height:38px}
 #welcome-view .home-tools-row{gap:20px}
 #welcome-view .home-tools-row #learn-game,#welcome-view .home-tools-row #open-scorer{height:64px;min-height:64px;padding:0 24px;gap:16px;font-size:20px;font-weight:600;border-radius:14px;border-color:#d8ba76cc;background:#00271c66;box-shadow:inset 0 1px 0 #ffffff0d}
 #welcome-view .home-tools-row .home-action-icon{width:30px;height:30px;flex-basis:30px}
 #welcome-view .home-tools-row .home-action-chevron{display:block;font-size:30px}
 #welcome-view .home-tools-row button:hover{background:#164c3899}
 #welcome-view .home-section-title h2{font-size:28px;letter-spacing:-.025em}
 #welcome-view .open-room-list{margin-top:20px}
 #welcome-view .empty-lobby{min-height:220px;gap:16px;border-radius:24px;border-color:#b8cfbb66;background:#002b1f33;padding:28px}
 #welcome-view .empty-table-icon{width:66px;height:66px;opacity:.8}
 #welcome-view .empty-lobby strong{font-size:19px;color:#edf0e6}
 #welcome-view .empty-lobby::after{content:'¡Creá una mesa o invitá a tus amigos para empezar a jugar!';font-size:16px;line-height:1.5;text-align:center;color:#adc3b6}
 #welcome-view .report-link{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:40px;margin:4px auto 0;padding:0 18px;font-size:13px;border-color:#d8ba7680;background:#00271c55;color:#e8ede4}
 #welcome-view .report-link::before{content:'!';display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;border:1.5px solid #e8c983;border-radius:50%;font-size:10px;font-weight:700;color:#e8c983}
 #welcome-view .legal-links{gap:0;margin:0 auto;padding:0;border:0;border-radius:0;background:none;font-size:14px}
 #welcome-view .legal-links a{min-height:36px;padding:0 28px;border-radius:6px;color:#e0e8df}
 #welcome-view .legal-links a+a{border-left:1px solid #b9c7b980;border-top-left-radius:0;border-bottom-left-radius:0}
}

/* Mobile table: the opponent's public card count, with both hands framing play. */
.opponent-hand{display:none}
.opponent-launch-flight{position:fixed;z-index:10000;pointer-events:none;transform-origin:center;will-change:transform}
.opponent-flight-face{position:absolute!important;inset:0!important;display:block;width:100%!important;height:100%!important;margin:0!important;border-radius:6px;transform:none!important;animation:none!important}
.opponent-card-back{display:block;border:1px solid #eee5d4;border-radius:6px;background:#f5f0df url('./assets/cards/13.jpg') 100% 0/300% 100% no-repeat;box-shadow:0 3px 8px #00180e55}
/* Fixed mobile board: viewport geometry only. Calls and controls are separate layers. */
@media all{
 .game.player-mode.two-device-mode .opponent-hand{position:absolute;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;pointer-events:none;z-index:8}
 .opponent-hand .opponent-card-back{position:absolute;top:0;left:50%;transform-origin:50% 85%}
 .game.player-mode.two-device-mode .center-table{left:0;width:100%;margin:0;transform:translateY(-50%)}
 .game.player-mode.two-device-mode .deck-stack{top:50%;right:6%;left:auto}
 .game.player-mode.two-device-mode .muestra-card{top:50%;left:auto}
 .game.player-mode.two-device-mode .trick-cards{transform:none}
 .game.player-mode.two-device-mode .played-card{top:50%}
 .game.player-mode.two-device-mode .played-card.is-own-play{left:20%;transform:translate(-50%,-50%) rotate(-6deg)}
 .game.player-mode.two-device-mode .played-card.is-opponent-play{left:41%;transform:translate(-50%,-50%) rotate(6deg)}
 .game.player-mode.two-device-mode .mobile-score-grid{height:calc(100% - 29px)}
 .game.player-mode.two-device-mode .mobile-score-divider{max-height:100%}
 .game.player-mode .call-notice{top:var(--call-anchor-top,32%);left:var(--call-anchor-x,50%);right:auto;border-radius:12px;transform:translateX(-50%);box-shadow:0 4px 14px #001b1430}
 .game.player-mode .call-notice[data-speaker=self]{transform:translate(-50%,-100%)}
 .game.drawing-mode .opponent-hand,.game.reveal-mode .opponent-hand{display:none!important}

 .game.player-mode.two-device-mode .opponent-hand{top:var(--board-rivalCenter,84px);height:0;width:170px}
 .game.player-mode.two-device-mode .opponent-hand .opponent-card-back{width:var(--board-deckWidth,58px);height:var(--board-deckHeight,84px);aspect-ratio:auto;transform:translate(-50%,-50%) translateX(calc(var(--fan-index)*28px)) rotate(calc(var(--fan-index)*15deg))}
 .game.player-mode.two-device-mode .center-table{top:var(--board-tableCenter,39.5%);height:110px}
 .game.player-mode.two-device-mode .deck-stack,.game.player-mode.two-device-mode .muestra-card{width:var(--board-deckWidth,58px);height:var(--board-deckHeight,84px)}
 .game.player-mode.two-device-mode .muestra-card{right:calc(6% + var(--board-deckWidth,58px)*.76)}
 .game.player-mode.two-device-mode .played-card{width:var(--board-deckWidth,58px);height:var(--board-deckHeight,84px);aspect-ratio:auto}
 .game.player-mode.two-device-mode .mobile-score{top:var(--board-markerTop,55%);height:min(var(--compact-tally-height),150px);right:4%}
 .game.player-mode.two-device-mode .hand{top:var(--board-handCenter,66%);left:14px;width:calc(100% - 105px);max-width:none;height:var(--board-handHeight,130px);min-height:0;padding:0;margin:0;transform:translateY(-50%);justify-content:flex-start}
 .game.player-mode.two-device-mode .hand-card{width:var(--board-handWidth,84px);height:var(--board-handHeight,130px);flex:0 0 var(--board-handWidth,84px);margin:0 calc(var(--board-handWidth,84px)*-.2)}
 .game.player-mode.two-device-mode .hand-card:first-child{margin-left:0}
 .game.player-mode.two-device-mode .hand-card:last-child{margin-right:0}
 .game.player-mode .player-controls{height:78px;bottom:12px;align-items:flex-end}
 .game.player-mode .call-notice{box-sizing:border-box;max-height:var(--call-max-height,50px);padding:5px 10px;font-size:clamp(11px,calc(var(--call-max-height,50px)*.24),12px);line-height:1.2;overflow:auto;overscroll-behavior:contain;max-width:min(230px,64%)}
 .game.player-mode .call-notice strong{font-size:clamp(13px,calc(var(--call-max-height,50px)*.28),14px);line-height:1.2;margin-top:2px}
 .game.player-mode .call-notice::after{display:none}
 .game.player-mode.declaring-envido .envido-picker{position:absolute;top:auto;bottom:12px;left:14px;transform:none;width:calc(100% - 110px);max-width:none;height:100px;box-sizing:border-box;display:flex;flex-direction:column;gap:4px;padding:0;border:0;background:transparent}
 .game.player-mode.declaring-envido .envido-picker>p{margin:0;min-height:12px;padding:0;line-height:12px;font-size:10px;white-space:nowrap}
 .game.player-mode.declaring-envido .number-wheel{flex:0 0 44px;min-height:0;height:44px;padding:2px calc(50% - 22px);scroll-padding-inline:calc(50% - 22px)}
 .game.player-mode.declaring-envido .number-wheel button{flex:0 0 44px;width:44px;height:40px;font-size:22px}
 .game.player-mode.declaring-envido .envido-picker::after{top:18px;width:44px;height:40px}
 .game.player-mode.declaring-envido .declaration-buttons{flex:0 0 36px;margin:0;gap:6px;flex-direction:row;width:100%}
 .game.player-mode.declaring-envido #declare-points,.game.player-mode.declaring-envido #good-points{height:36px;min-height:36px;min-width:0;padding:0 5px;font-size:12px}
 .game.player-mode.reveal-mode .end-hand-reveal{top:calc(var(--board-tableCenter,39.5%) + var(--board-deckHeight,84px)/2 + 24px);bottom:14px;justify-content:flex-start}
}

/* Mobile refinements: centered hand, header clock, floating messages and movable tally. */
@media all{
 .game.player-mode .game-topbar{position:relative;z-index:95;overflow:visible}
 .game.player-mode .game-topbar #turn-badge{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max-content;max-width:calc(100% - 200px);min-width:0;margin:0;padding:5px 6px;font-size:12px;gap:5px;line-height:1.25;z-index:2}
 .game.player-mode .game-topbar .turn-badge-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .game.player-mode .game-topbar .turn-timer,.game.player-mode .game-topbar .round-pause-timer{font-size:12px;padding-left:5px}
 .game.player-mode .game-topbar .inactivity-life{right:-11px;left:auto}
 .game.player-mode .my-player-info{display:none}
 .game.drawing-mode .game-topbar #turn-badge{display:none}
 .game.player-mode.two-device-mode .hand{left:50%;width:calc(100% - 28px);transform:translate(-50%,-50%);justify-content:center}
 .game.player-mode .call-notice{overflow:visible}
 .game.player-mode .call-notice strong{margin-top:0}
 .game.player-mode .call-notice::after{content:'';display:block;position:absolute;left:calc(50% - 4px);width:8px;height:8px;background:#ead7a5;transform:rotate(45deg)}
 .game.player-mode .call-notice[data-speaker=self]::after{bottom:-5px;border-right:1px solid #d8b875;border-bottom:1px solid #d8b875}
 .game.player-mode .call-notice[data-speaker=opponent]::after{top:-5px;border-left:1px solid #d8b875;border-top:1px solid #d8b875}
 .game .chat-notices{position:absolute;top:62px;left:auto;right:12px;transform:none;width:max-content;max-width:65vw;align-items:flex-end;gap:8px}
 .game .chat-notice{width:fit-content;max-width:100%;align-self:flex-end;border:1px solid #d8e9df40;background:#143f32c9;color:#f1f5ee;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-radius:16px;padding:10px 12px;box-shadow:0 6px 22px #00190f40;animation:chat-notice-drop .24s cubic-bezier(.2,.7,.3,1) both}
 .game .chat-notice strong{color:#e8c983;font-size:11px}
 .game .chat-notice p{font-size:14px;margin-top:3px}
 .game.player-mode.two-device-mode .mobile-score{touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab}
 .game.player-mode.two-device-mode .mobile-score.tally-moved{left:var(--tally-user-x);top:var(--tally-user-y);right:auto;bottom:auto;transform:none}
 .game .mobile-score.tally-dragging{cursor:grabbing;z-index:130;filter:drop-shadow(0 3px 5px #001b1480)}
}
@keyframes chat-notice-drop{from{opacity:0;transform:translate3d(12px,-24px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
@media(prefers-reduced-motion:reduce){.game .chat-notice{animation:none}}

/* Default tally corner and a balanced fan for three, two or one remaining cards. */
@media all{
 .game.player-mode.two-device-mode .mobile-score{left:12px;top:12px;right:auto}
 .game.player-mode.two-device-mode .mobile-score.tally-moved{left:var(--tally-user-x);top:var(--tally-user-y)}
 .game.player-mode.two-device-mode .hand-card{transform:rotate(var(--hand-fan-angle,0deg)) translateY(var(--hand-fan-y,0px));transition:translate .16s ease}
}

/* Landscape player board, using the same fixed slots and interactions as mobile. */
@media(min-width:701px){
 .game.player-mode .game-topbar{height:80px;flex:0 0 80px;width:100%;padding:0 max(32px,calc((100% - 1360px)/2));border-bottom:0}
 .game.player-mode .game-topbar .truco-logo{width:92px;height:64px}
 .game.player-mode .game-topbar #turn-badge{max-width:calc(100% - 360px);font-size:16px;padding:8px 12px;gap:8px}
 .game.player-mode .game-topbar .turn-timer,.game.player-mode .game-topbar .round-pause-timer{font-size:16px}
 .game.player-mode .game-topbar .player-sound-toggle,.game.player-mode .game-topbar .chat-toggle{width:48px;height:48px;flex-basis:48px}
 .game.player-mode .game-layout{display:flex;flex:1 1 0;min-height:0;height:auto;overflow:hidden}
 .game.player-mode .felt-area{position:relative;flex:1;width:100%;max-width:1600px;height:100%;min-height:0;margin:0 auto;padding:0;overflow:hidden}
 .game.player-mode.two-device-mode .hand{position:absolute;bottom:auto;align-items:flex-end;z-index:10}
 .game.player-mode.two-device-mode .opponent-hand{width:240px}
 .game.player-mode.two-device-mode .opponent-hand .opponent-card-back{transform:translate(-50%,-50%) translateX(calc(var(--fan-index)*var(--board-deckWidth)*.48)) rotate(calc(var(--fan-index)*15deg))}
 .game.player-mode.two-device-mode .deck-stack{right:16%}
 .game.player-mode.two-device-mode .muestra-card{right:calc(16% + var(--board-deckWidth)*.76)}
 .game.player-mode.two-device-mode .played-card.is-own-play{left:46%}
 .game.player-mode.two-device-mode .played-card.is-opponent-play{left:54%}
 .game.player-mode.two-device-mode .mobile-score{position:absolute;left:clamp(24px,8vw,128px);top:12px;bottom:auto;right:auto;width:98px;height:min(var(--compact-tally-height),230px);max-height:230px;padding:0;display:flex;flex-direction:column;gap:6px;background:transparent;border:0}
 .game.player-mode.two-device-mode .mobile-score.tally-moved{left:var(--tally-user-x);top:var(--tally-user-y)}
 .game.player-mode.two-device-mode .mobile-score-head{display:grid;grid-template-columns:42px 42px;gap:14px;height:26px;flex:0 0 26px}
 .game.player-mode.two-device-mode .mobile-score-head h2{font-size:22px}
 .game.player-mode.two-device-mode .mobile-score-grid{display:grid;grid-template-columns:42px 1px 42px;gap:6px;width:100%;height:calc(100% - 32px);flex:1;align-items:stretch}
 .game.player-mode.two-device-mode .mobile-score-divider{height:100%;max-height:none}
 .game.player-mode.two-device-mode .mobile-tally,.game.player-mode.two-device-mode .compact-score-sticks{display:block;height:100%;width:100%;min-height:0}
 .game.player-mode .player-controls{width:min(800px,calc(100% - 48px));max-width:none;height:88px;gap:10px;bottom:12px}
 .game.player-mode .compact-actions .call-button,.game.player-mode .compact-actions .pass-button{height:40px;min-height:40px;font-size:14px;padding:6px 10px}
 .game.player-mode .compact-actions>[data-action=truco],.game.player-mode .compact-actions>[data-action=retruco],.game.player-mode .compact-actions>[data-action=vale4]{flex-basis:100%}
 .game.player-mode .player-controls>.fold-hand{flex-basis:118px;width:118px;height:40px;font-size:12px}
 .game.player-mode .call-notice{max-width:300px;font-size:14px;padding:6px 14px}
 .game.player-mode .call-notice strong{font-size:16px}
 .game.player-mode.declaring-envido .envido-picker{left:calc(50% - min(400px,calc((100% - 48px)/2)));width:min(672px,calc(100% - 176px));height:94px;bottom:12px}
 .game.player-mode.declaring-envido .player-controls>.fold-hand{width:118px}
 .game .chat-notices{top:88px;left:auto;right:24px}
}

/* Unframed header icons with adjacent touch targets. */
.game.player-mode .game-topbar .player-sound-toggle,.game.player-mode .game-topbar .chat-toggle{border:0;border-radius:0;background:transparent;box-shadow:none}
.game.player-mode .game-topbar .chat-toggle{margin-left:0}

/* Chat settings: discreet overflow menu and matching gold switches. */
.match-chat .chat-heading{gap:6px;flex-shrink:0}
.match-chat .chat-heading h2{flex:1;min-width:0;font-size:17px}
.match-chat .chat-heading #chat-close{width:36px;height:36px;border-radius:9px;color:#bfd0c4}
.match-chat .chat-options{position:relative;flex:0 0 36px;margin:0;color:#f7f3e9;font-size:14px}
.match-chat .chat-options summary{display:grid;place-items:center;list-style:none;width:36px;height:36px;padding:7px;border:1px solid #e8c98338;border-radius:9px;background:#ffffff05;color:#e8c983;cursor:pointer;touch-action:manipulation}
.match-chat .chat-options summary::-webkit-details-marker{display:none}
.match-chat .chat-options summary::marker{content:''}
.match-chat .chat-options summary svg{width:22px;height:22px;fill:currentColor}
.match-chat .chat-options[open] summary{border-color:#e8c983aa;background:#e8c98315}
.match-chat .chat-options-panel{position:absolute;top:44px;right:0;z-index:3;width:280px;max-width:calc(100vw - 72px);padding:6px;border:1px solid #bda46780;border-radius:14px;background:#103428;box-shadow:0 10px 28px #00170ec0}
.match-chat .chat-block-option{display:grid;grid-template-columns:22px minmax(0,1fr) 38px;align-items:center;gap:10px;margin:0;padding:12px 10px;border-radius:9px;color:#f7f3e9;font-size:14px;line-height:1.3;cursor:pointer}
.match-chat .chat-block-option svg,.match-chat .chat-mute>svg{width:21px;height:21px;fill:none;stroke:#e8c983;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.match-chat .chat-block-option strong{display:block;font-size:14px;font-weight:600}
.match-chat .chat-block-option small{display:block;margin-top:3px;font-size:11px;color:#a9bfb0}
.match-chat .chat-options #chat-report-mode{display:flex;align-items:center;gap:10px;width:100%;height:auto;min-height:46px;padding:10px;border-top:1px solid #e8c98326;border-radius:0 0 9px 9px;color:#e8c983;font-size:14px;line-height:1.3;text-decoration:none;text-align:left}
.match-chat .chat-options #chat-report-mode::before{content:'!';display:grid;place-items:center;flex:0 0 19px;width:19px;height:19px;border:1.5px solid currentColor;border-radius:50%;font-size:13px;font-weight:700}
.match-chat .chat-mute{display:flex;align-items:center;gap:10px;min-height:48px;margin:0 0 10px;padding:10px 12px;border:1px solid #b4c6b62e;border-radius:11px;background:#082c2055;font-size:14px;font-weight:500;color:#e8eee5;flex-shrink:0}
.match-chat .chat-mute>span{flex:1;min-width:0}
.match-chat .chat-mute input,.match-chat .chat-block-option 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:#08291e;cursor:pointer;transition:background .18s,border-color .18s}
.match-chat .chat-mute input::after,.match-chat .chat-block-option input::after{content:'';position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:#b4c1b6;transition:transform .18s,background .18s}
.match-chat .chat-mute input:checked,.match-chat .chat-block-option input:checked{background:#e8c983;border-color:#e8c983}
.match-chat .chat-mute input:checked::after,.match-chat .chat-block-option input:checked::after{transform:translateX(16px);background:#12382b}
.match-chat .chat-mute input:disabled,.match-chat .chat-block-option input:disabled{opacity:.45;cursor:default}
.match-chat .chat-options summary:focus-visible,.match-chat .chat-options button:focus-visible,.match-chat .chat-options input:focus-visible,.match-chat .chat-mute input:focus-visible{outline:2px solid #e8c983;outline-offset:3px}
@media(hover:hover){.match-chat .chat-options summary:hover,.match-chat .chat-block-option:hover,.match-chat .chat-options #chat-report-mode:hover{background:#e8c98312}}
@media(prefers-reduced-motion:reduce){.match-chat .chat-mute input,.match-chat .chat-block-option input,.match-chat .chat-mute input::after,.match-chat .chat-block-option input::after{transition:none}}

/* Login content stays centered; legal links sit at the safe bottom edge. */
.auth-gate{flex-direction:column;align-items:center;justify-content:flex-start;gap:24px;padding:max(24px,env(safe-area-inset-top)) 24px max(12px,env(safe-area-inset-bottom))}
.auth-gate>.auth-card{flex:0 0 auto;margin:auto}
.auth-gate>.legal-links{flex:0 0 auto;margin:0;max-width:100%;flex-wrap:wrap;gap:8px 20px}
.auth-gate>.legal-links a{display:inline-flex;align-items:center;min-height:36px}

/* Acceso por correo para cuentas existentes, sin registro público adicional. */
.email-access{margin-top:16px;text-align:left;color:var(--gold,#e8c983)}
.email-access summary{cursor:pointer;text-align:center;padding:10px}
#auth-email-form{display:grid;gap:10px;margin-top:12px}
#auth-email-form input,#delete-password{box-sizing:border-box;width:100%;min-height:44px;padding:12px;border:1px solid #e8c98380;border-radius:12px;background:#102f25;color:#fff;font:inherit;user-select:text;-webkit-user-select:text}

/* Practice coaching occupies the rival area without shifting the board. */
#learning-hint,#learning-points-tip{inset:auto;margin:0;transform:none;max-height:40dvh;overflow:visible}
#learning-message-body{max-height:25dvh;overflow:auto}
.game.learning-mode.player-mode.two-device-mode .mobile-score:not(.tally-moved){top:var(--learning-marker-top,56px)}
.game.learning-mode.player-mode.two-device-mode .mobile-score.tally-moved{top:max(var(--learning-marker-top,56px),var(--tally-user-y))}
.learning-score-arrow{overflow:hidden}

/* Four independent seats share the same fixed board on phones and desktop. */
.table-mode-select{width:100%;padding:12px 14px;border:1px solid #e8c98380;border-radius:12px;background:#103c2e;color:#e8c983;font:inherit;min-height:46px}
#setup-view .setup-game-modes{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.5fr);gap:8px;width:100%}
#setup-view .setup-game-modes button{font-size:clamp(13px,3.6vw,17px);padding:10px 6px;min-width:0;white-space:nowrap}
.team-stake-info{font-size:12px;line-height:1.4;color:#c7d7cd;margin:8px 0 0}
.room-mode-label{display:block;font-size:11px;font-weight:400;color:#e8c983;margin-top:3px}
.seat-name small{font-size:11px;color:#e8c983;display:block;margin-bottom:4px}
.game.team-mode{--team-card-width:clamp(42px,13vw,72px);--team-card-height:calc(var(--team-card-width)*1.54);--team-hand-width:clamp(68px,20vw,110px);--team-hand-height:calc(var(--team-hand-width)*1.54)}
.game.team-mode .opponent-info,.game.team-mode .my-player-info,.game.team-mode #opponent-hand{display:none!important}
.game.team-mode.player-mode.two-device-mode .center-table{position:absolute;top:44%;left:0;height:1px;width:100%;transform:none;overflow:visible}
.game.team-mode.player-mode.two-device-mode .deck-stack,.game.team-mode.player-mode.two-device-mode .muestra-card{width:var(--team-card-width);height:var(--team-card-height);top:0}
.game.team-mode.player-mode.two-device-mode .deck-stack{right:6%}
.game.team-mode.player-mode.two-device-mode .muestra-card{right:calc(6% + var(--team-card-width)*.65)}
.game.team-mode.player-mode.two-device-mode .hand{left:50%;top:72%;width:max-content;max-width:85%;height:var(--team-hand-height);transform:translate(-50%,-50%);justify-content:center;z-index:10}
.game.team-mode.player-mode.two-device-mode .hand-card{width:var(--team-hand-width);height:var(--team-hand-height);flex-basis:var(--team-hand-width);margin:0 calc(var(--team-hand-width)*-.16)}
.game.team-mode.player-mode.two-device-mode .hand-card:first-child{margin-left:0}.game.team-mode.player-mode.two-device-mode .hand-card:last-child{margin-right:0}
.game.team-mode .team-seats{position:absolute;inset:0;pointer-events:none;z-index:11}
.team-seat{position:absolute;text-align:center;width:108px;transform:translate(-50%,-50%);color:#d6e0d8;font-size:12px}
.team-seat .team-player-name{display:flex;flex-direction:column;justify-content:center;height:46px;line-height:1.15;max-width:100%;overflow-wrap:anywhere;padding:4px 6px;border:1px solid #e8c98338;border-radius:9px;background:#07392cbb}
.team-player-name small{display:block;font-size:9px;color:#e8c983;margin-top:2px;letter-spacing:.5px}
.team-self-status{font-size:9px;color:#e8c983;letter-spacing:.5px}
.game.team-mode.player-mode.two-device-mode #deck-stack,.game.team-mode.player-mode.two-device-mode #muestra-card{width:calc(var(--team-card-width)*.86);height:calc(var(--team-card-height)*.86)}
.lobby-team-row{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:9px;border-top:1px solid #a7c0b350;margin-top:10px;padding-top:10px}
.lobby-team{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0}
.lobby-team-name{min-width:0;max-width:50%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:#f7f3e9}
.lobby-team-dash,.lobby-team-versus{color:#d8b875;font-size:12px;flex-shrink:0}
.lobby-team-join{border:1px solid #d8b875;border-radius:8px;background:#e8c983;color:#12382b;padding:7px 8px;font-size:12px;font-weight:700;min-height:36px}
.lobby-team-join:disabled{opacity:.4;cursor:not-allowed}
#welcome-view .compact-room.has-team-seats{grid-template-columns:minmax(0,1.3fr) .7fr .7fr .9fr}
#welcome-view .has-team-seats>.lobby-join-options{display:none}
@media(max-width:380px){.lobby-team-row{gap:6px}.lobby-team{gap:3px}.lobby-team-name,.lobby-team-join{font-size:11px}.lobby-team-join{padding:6px}}
.team-seat.is-turn .team-player-name{border-color:#f7d88b;box-shadow:0 0 14px #e8c98340;color:#fff}
.team-seat.is-folded .team-backs{opacity:.2}
/* Where a folded player's cards were. */
.team-folded-text{display:flex;align-items:center;justify-content:center;min-height:calc(var(--team-card-width,52px)*1.2);font-size:13px;font-weight:700;color:#e8c983;letter-spacing:.5px;text-align:center}
#hand.team-folded{display:flex;align-items:center;justify-content:center}
#hand.team-folded::after{content:'Se fue al mazo';font-size:15px;font-weight:700;color:#e8c983;letter-spacing:.5px}
.team-partner{left:50%;top:11%;width:140px}.team-right{left:86%;top:32%}.team-left{left:14%;top:32%}.team-self{left:50%;top:calc(72% - var(--team-hand-height)*.65 - 18px);width:140px}
.team-backs{height:var(--team-card-height);position:relative;margin-top:10px}
.team-backs .opponent-card-back{position:absolute;left:50%;top:0;width:var(--team-card-width);height:var(--team-card-height);transform:translateX(calc(-50% + var(--fan-index)*var(--team-card-width)*.36)) rotate(calc(var(--fan-index)*12deg));transform-origin:50% 85%;border-radius:4px}
.team-partner-cards{display:block;width:100%;padding:0;border:0;background:none;pointer-events:auto;touch-action:manipulation}
.team-partner-cards:focus-visible{outline:2px solid var(--gold);outline-offset:8px;border-radius:8px}
.team-backs .teammate-card{position:absolute;left:50%;top:0;width:var(--team-card-width);height:var(--team-card-height);transform:translateX(calc(-50% + var(--fan-index)*var(--team-card-width)*.36)) rotate(calc(var(--fan-index)*12deg));transform-origin:50% 85%;border-radius:4px}
.team-right .team-backs,.team-left .team-backs{transform:scale(.84);margin-top:2px}
.team-speech{position:absolute;top:calc(100% + 10px);left:50%;transform:translateX(-50%);width:max-content;max-width:min(160px,42vw);padding:7px 10px;background:#ead39b;color:#103b2c;border:1px solid #c5a455;border-radius:10px;font-size:12px;font-weight:700;line-height:1.25;overflow-wrap:anywhere;z-index:15}
.team-speech::before{content:'';position:absolute;top:-5px;left:calc(50% - 5px);width:8px;height:8px;background:#ead39b;transform:rotate(45deg);border-left:1px solid #c5a455;border-top:1px solid #c5a455}
.team-self .team-speech{top:auto;bottom:calc(100% + 8px)}.team-self .team-speech::before{top:auto;bottom:-5px;transform:rotate(225deg)}
.team-left .team-speech{left:10px;transform:none}.team-right .team-speech{left:auto;right:10px;transform:none}
.game.team-mode.player-mode.two-device-mode #trick-cards{position:absolute;left:50%;top:0;width:1px;height:1px;transform:none;overflow:visible}
.game.team-mode.player-mode.two-device-mode .deck-stack,.game.team-mode.player-mode.two-device-mode .muestra-card{top:80px}
.team-played{position:absolute;width:var(--team-card-width);height:var(--team-card-height);transform:translate(-50%,-50%);border-radius:4px;box-shadow:0 3px 7px #001b1460}
.team-played-self{left:0;top:40px;rotate:-5deg}.team-played-partner{left:0;top:-60px;rotate:5deg}.team-played-left{left:-44px;top:-10px;rotate:-7deg}.team-played-right{left:44px;top:-10px;rotate:7deg}
.game.team-mode.player-mode.two-device-mode .mobile-score:not(.tally-moved){left:12px;top:8px;width:58px;height:min(var(--compact-tally-height),90px);max-height:90px}
.game.team-mode .mobile-score-head{transform:scale(.8);transform-origin:top left}
.game.team-mode.player-mode .player-controls{width:calc(100% - 24px);height:auto;min-height:44px;bottom:10px;gap:6px;z-index:30}
.game.team-mode.player-mode .player-actions{flex:1;min-width:0}
.game.team-mode .team-actions{display:flex;flex-wrap:wrap;gap:5px;justify-content:center}
.game.team-mode .team-actions button{flex:1 1 28%;font-size:11px!important;padding:5px!important;height:34px!important;min-height:34px!important;border-radius:8px}
.game.team-mode.player-mode .player-controls>.fold-hand{flex-basis:84px;width:84px;height:36px;min-height:36px;font-size:10px;white-space:normal}
.game.team-mode.player-mode #envido-picker{position:absolute;inset:auto 104px 12px 12px;transform:none;width:auto;max-width:none;padding:0;border:0;background:transparent;z-index:40}
.team-declare-label{display:flex;flex-wrap:wrap;gap:5px;align-items:center;color:#ead39b;font-size:12px}.team-declare-label output{font-size:22px;font-weight:700}.team-declare-label input{width:100%;accent-color:#ead39b;height:28px}.team-declare-buttons{display:flex;gap:5px}.team-declare-buttons button{flex:1;height:34px;font-size:11px;min-height:34px}
.team-draw-results{display:flex;justify-content:center;gap:12px;margin-top:20px}.team-draw-results>div{display:flex;flex-direction:column;align-items:center;width:70px;gap:8px;font-size:12px}.team-draw-results .sprite-card{display:block;width:55px;height:85px;border-radius:5px}
.game.team-mode #end-hand-reveal{position:absolute;top:26%;left:12%;width:76%;max-height:45%;overflow:auto;transform:none;display:flex;gap:10px;flex-wrap:wrap;align-content:center;align-items:center;justify-content:center;background:#103c2ef5;border:1px solid #e8c98388;padding:12px;border-radius:14px;z-index:25}
.game.team-mode #end-hand-reveal section{flex:1 1 40%;font-size:11px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center}.game.team-mode #end-hand-reveal section>div{display:flex;justify-content:center;gap:4px;margin-top:8px}.game.team-mode #end-hand-reveal i{display:block;width:50px;height:77px;border-radius:4px}
@media(min-width:901px){.game.team-mode{--team-card-width:78px;--team-hand-width:125px}.team-seat{font-size:15px;width:160px}.team-player-name small{font-size:11px}.team-partner{top:10%;width:190px}.team-left{left:20%}.team-right{left:80%}.team-self{top:87%}.team-speech{font-size:14px;max-width:220px}.game.team-mode.player-mode .player-controls{width:min(800px,90%)}.game.team-mode.player-mode.two-device-mode #trick-cards{left:50%}.game.team-mode.player-mode.two-device-mode .deck-stack{right:19%}.game.team-mode.player-mode.two-device-mode .muestra-card{right:calc(19% + var(--team-card-width)*.65)}.game.team-mode.player-mode #envido-picker{left:calc(50% - 300px);right:auto;width:480px}}

/* Waiting seats follow each player's position around the table. */
#waiting-view .waiting-content{width:100%;max-width:760px;padding:20px 16px 12px}
#waiting-view #room-status{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}
#waiting-view .waiting-table{display:block;position:relative;width:100%;height:clamp(400px,70dvh,620px);margin:12px 0 0;border-radius:45%;background:radial-gradient(ellipse at center,#29553c55,transparent 68%)}
.waiting-player{position:absolute;display:flex;align-items:center;flex-direction:column;width:30%;max-width:170px;text-align:center;transform:translate(-50%,-50%)}
.waiting-player-self{left:50%;top:83%}.waiting-player-partner{left:50%;top:17%}.waiting-player-right{left:83%;top:50%}.waiting-player-left{left:17%;top:50%}
.waiting-player-name{display:block;max-width:100%;padding:7px 10px;border:1px solid #76c38b55;border-radius:9px;background:#103b2dcc;color:#f0edda;font-size:14px;font-weight:700;overflow-wrap:anywhere}
.waiting-player small{margin-top:4px;font-size:10px;color:#e8c983;letter-spacing:.05em}
.waiting-player-cards{position:relative;width:90px;height:89px;margin-top:12px}
.waiting-player-cards .opponent-card-back{position:absolute;left:50%;top:0;width:48px;height:70px;transform:translateX(calc(-50% + var(--fan-index)*17px)) rotate(calc(var(--fan-index)*12deg));transform-origin:50% 85%}
.waiting-player.empty .waiting-player-name{border-style:dashed;color:#d4d9cb;background:transparent;font-size:12px;font-weight:500}
.waiting-empty-place{display:grid;place-items:center;width:48px;height:70px;margin:0 auto;border:1px dashed #d8b87580;border-radius:6px;color:#d8b87599;font-size:26px}
#waiting-view .invite-whatsapp .whatsapp-brand-icon{display:block;width:28px;height:28px;overflow:visible}
@media(max-width:380px){.waiting-player-name{font-size:12px;padding:6px}.waiting-player.empty .waiting-player-name{font-size:11px}.waiting-player-cards{width:78px}.waiting-player-cards .opponent-card-back{width:43px;height:63px}.waiting-player-right{left:84%}.waiting-player-left{left:16%}}

.team-seat .team-player-name{height:auto;min-height:0;width:fit-content;max-width:100%;margin:0 auto;padding:4px 8px;border-radius:7px;line-height:1.2}.team-signal-button{text-transform:none;letter-spacing:0;font-size:14px;min-height:40px}

/* Leave room for the tally and dealer deck above the side players. */
.game.team-mode .team-left,.game.team-mode .team-right{top:39%}
.game.team-mode .team-left .team-backs,.game.team-mode .team-right .team-backs{transform:scale(.72)}
.game.team-mode .muestra-card{touch-action:none;cursor:grab}.game.team-mode .muestra-card.dragging{cursor:grabbing}

.game .muestra-card.sprite-card{touch-action:none;cursor:grab}.game .muestra-card.sprite-card.dragging{cursor:grabbing}

/* Played cards sit inward from the deck on the opposite half of a duel. */
.game.player-mode.two-device-mode:not(.team-mode)[data-deck-side="left"] .played-card.is-own-play{left:55%}
.game.player-mode.two-device-mode:not(.team-mode)[data-deck-side="left"] .played-card.is-opponent-play{left:67%}
.game.player-mode.two-device-mode:not(.team-mode)[data-deck-side="right"] .played-card.is-own-play{left:33%}
.game.player-mode.two-device-mode:not(.team-mode)[data-deck-side="right"] .played-card.is-opponent-play{left:45%}

#welcome-view .home-section-title h2{font-size:21px;line-height:1.2;margin:0}#welcome-view .home-lobby-heading{margin-bottom:0}#welcome-view .open-room-list{margin-top:8px}.compact-room-privacy.is-private svg{stroke:#f07878}.lobby-team-row .lobby-team-name{max-width:100%}

/* Compact two-row lobby cards retain all table information. */
#welcome-view .compact-room.has-team-seats{padding:10px}
#welcome-view .compact-room .compact-room-stat,#welcome-view .compact-room .compact-room-privacy{min-height:44px}
#welcome-view .compact-room>.compact-room-stat:nth-child(3){flex-direction:row;gap:6px}
#welcome-view .compact-room>.compact-room-stat:nth-child(3) svg{margin:0;width:21px;height:21px;flex-shrink:0}
#welcome-view .compact-room .lobby-team-row{margin-top:8px;padding-top:8px}
#welcome-view .compact-room .lobby-team-name{display:flex;align-items:center;justify-content:center;min-height:36px;padding:7px 8px;border:1px solid #d8b87580;border-radius:8px;background:#e8c98316;font-size:12px;font-weight:700;line-height:1.2}
@media(max-width:380px){#welcome-view .compact-room.has-team-seats{padding:10px 7px}#welcome-view .compact-room .lobby-team-name{padding:6px;font-size:11px}}
#welcome-view .compact-room.has-team-seats{background:#0b3025}

#welcome-view .compact-room .compact-room-stat,#welcome-view .compact-room .compact-room-privacy{min-height:34px;gap:1px}#welcome-view .compact-room .compact-room-stat strong{line-height:1}#welcome-view .compact-room .compact-room-stat span{line-height:1}
#welcome-view .home-tools-row #learn-game,#welcome-view .home-tools-row #open-scorer{height:48px;min-height:48px;padding:8px 12px;gap:9px}#welcome-view .home-tools-row .home-action-icon{width:22px;height:22px;flex-basis:22px}

.game.team-mode.player-mode.two-device-mode .mobile-score{--team-tally-column:22px;width:58px;gap:3px}
.game.team-mode.player-mode.two-device-mode .mobile-score-head{display:grid;grid-template-columns:var(--team-tally-column) var(--team-tally-column);gap:14px;width:58px;height:20px;flex:0 0 20px;transform:none}
.game.team-mode.player-mode.two-device-mode .mobile-score-head h2{font-size:14px;text-align:center;margin:0}
.game.team-mode.player-mode.two-device-mode .mobile-score-grid{grid-template-columns:var(--team-tally-column) 1px var(--team-tally-column);gap:6.5px;width:58px;height:calc(100% - 23px)}
.game.team-mode.player-mode.two-device-mode .mobile-tally .score-sticks{width:100%!important;height:100%!important}

.game.player-mode.two-device-mode:not(.team-mode)[data-deck-side="left"]{--duel-play-center:61%}
.game.player-mode.two-device-mode:not(.team-mode)[data-deck-side="right"]{--duel-play-center:39%}
.game.player-mode.two-device-mode:not(.team-mode)[data-deck-side] .played-card.is-own-play{left:calc(var(--duel-play-center) - var(--board-deckWidth,58px)*.62);top:calc(50% + var(--board-deckHeight,84px)*.25)}
.game.player-mode.two-device-mode:not(.team-mode)[data-deck-side] .played-card.is-opponent-play{left:calc(var(--duel-play-center) + var(--board-deckWidth,58px)*.62);top:calc(50% - var(--board-deckHeight,84px)*.25)}
.game.team-mode .mobile-tally .score-sticks g{transform:translateX(24px)}

.game.player-mode.two-device-mode .center-table{pointer-events:none}.game.player-mode.two-device-mode #muestra-card{pointer-events:auto;touch-action:none;-webkit-user-select:none;user-select:none}

/* Separate duel plays vertically, each toward the player who played it. */
.game.player-mode.two-device-mode:not(.team-mode)[data-deck-side] .played-card.is-own-play{left:calc(var(--duel-play-center) - var(--board-deckWidth,58px)*.18);top:calc(50% + var(--board-deckHeight,84px)*.65)}
.game.player-mode.two-device-mode:not(.team-mode)[data-deck-side] .played-card.is-opponent-play{left:calc(var(--duel-play-center) + var(--board-deckWidth,58px)*.18);top:calc(50% - var(--board-deckHeight,84px)*.65)}
.game.player-mode.two-device-mode #deck-stack{touch-action:none;user-select:none;-webkit-user-select:none}
.game.player-mode.two-device-mode .hand-card{transition:none}

.game.table-preparing .game-layout{visibility:hidden}

/* Keep an explicit loading state when restoring a seat without a server receipt. */
.game.table-preparing::after{content:"Preparando mesa…";position:absolute;inset:80px 0 0;display:grid;place-items:center;color:#e9ce89;font-size:16px;pointer-events:none}

/* Only SON BUENAS left: no number wheel, so no selection marker either. */
.game.player-mode.declaring-envido .envido-picker.only-good::after,
.game.player-mode.declaring-envido .envido-picker:has(.number-wheel.hidden)::after,
.envido-picker.only-good::after,
.envido-picker:has(.number-wheel.hidden)::after{content:none!important;display:none!important}
.player-mode.declaring-envido .envido-picker.only-good #good-points{flex:0 1 220px}
.game-topbar .chat-toggle{touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
.chat-hold-menu{position:fixed;z-index:8000;display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:180px;padding:8px;border:1px solid #d8e9df40;border-radius:18px;background:#143f32f2;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 10px 30px #00190f66;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;animation:chat-hold-pop .16s cubic-bezier(.2,.7,.3,1) both}
.chat-hold-menu.hidden{display:none}
.chat-hold-menu button{min-height:44px;padding:10px 16px;border:0;border-radius:12px;background:transparent;color:#f1f5ee;font:inherit;font-size:15px;font-weight:600;text-align:left}
.chat-hold-menu button.active{background:#e8c983;color:#15251b}
@keyframes chat-hold-pop{from{opacity:0;transform:translateY(-6px) scale(.96)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.chat-hold-menu{animation:none}}
.flor-badge{display:grid;place-items:center;width:29px;height:29px;color:#e8c983;filter:drop-shadow(0 2px 4px #00180e99);pointer-events:none;animation:flor-badge-pop .32s cubic-bezier(.2,.8,.3,1.2) both}
.flor-badge svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.flor-badge.hidden,.opponent-flor{display:none}
.game.player-mode.two-device-mode .opponent-flor:not(.hidden){display:grid;position:absolute;top:var(--board-rivalCenter,84px);left:calc(50% + var(--board-deckWidth,58px)*1.15 + 34px);transform:translate(-50%,-50%);z-index:9}
.game.drawing-mode .opponent-flor,.game.reveal-mode .opponent-flor,.game.team-mode .opponent-flor{display:none!important}
.team-seat .team-flor{position:absolute;right:-6px;bottom:-4px;z-index:2}
@keyframes flor-badge-pop{from{opacity:0;scale:.4}to{opacity:1;scale:1}}
@media(prefers-reduced-motion:reduce){.flor-badge{animation:none}}

/* Tutorial videos: vertical clips with previous/next navigation. */
.learn-content>.learn-videos-button{margin:0 0 18px}
.learn-videos-dialog{width:min(calc(100vw - 12px),calc((100dvh - 128px) * .5625 + 20px));height:calc(100dvh - 12px);max-width:none;max-height:none;margin:auto;padding:10px;color:var(--ink);background:#0c402f;border:1px solid var(--gold);border-radius:14px;overflow:hidden;box-shadow:0 20px 60px #0006}
.learn-videos-dialog[open]{display:flex;flex-direction:column}
.learn-videos-dialog::backdrop{background:rgba(4,24,15,.72);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.learn-videos-dialog .learn-close{position:absolute;top:8px;right:8px;float:none;width:34px;height:34px;font-size:23px}
.learn-videos-dialog h2{color:#ebd08a;font-size:17px;margin:2px 44px 0 4px}
.learn-videos-step{margin:0 44px 6px 4px;color:#c2cec4;font-size:13px}
.learn-videos-player{display:block;flex:1 1 auto;min-height:0;width:100%;height:auto;border-radius:10px;background:#0c402f;cursor:pointer;object-fit:contain}
.learn-videos-nav{display:flex;gap:8px;margin-top:8px}
.learn-videos-nav>.button{flex:1;justify-content:center;min-height:42px;font-size:14px;border-radius:9px}
.learn-videos-nav>.button:disabled{opacity:.4;cursor:default}
.learn-videos-dialog .button.secondary{background:#15392b;color:#ead39b;border:1px solid #d8b87588;font-weight:600}
.learn-videos-dialog button:focus-visible{outline:2px solid #ead39b;outline-offset:3px}
/* "Usar bot": the creator fills an empty seat of a team table with a bot. */
.waiting-bot-button{margin-top:-8px;padding:7px 12px;min-height:34px;border:1px solid #e8c983;border-radius:9px;background:#e8c983;color:#103b2d;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.waiting-bot-button:disabled{opacity:.55;cursor:default}
.waiting-bot-button:focus-visible{outline:2px solid #ead39b;outline-offset:3px}
.waiting-player.bot .waiting-player-name{border-color:#e8c98366;color:#e8c983}
/* A bot partner waits for the pie's signal: the disc empties clockwise in 10 s. */
@property --signal-sweep{syntax:'<angle>';inherits:false;initial-value:0deg}
.signal-timer{position:absolute;z-index:30;width:36px;height:36px;border-radius:50%;background:conic-gradient(transparent 0 var(--signal-sweep),#e8c983 var(--signal-sweep) 360deg);box-shadow:0 0 0 2px #e8c98366;pointer-events:none}
@keyframes signal-drain{from{--signal-sweep:0deg}to{--signal-sweep:360deg}}.played-card.trick-winner{overflow:visible}
.played-card.trick-winner::after{content:"";position:absolute;inset:-7px;border:3px solid #e8c983;border-radius:12px;box-shadow:0 0 14px #e8c98355;pointer-events:none;animation:trick-winner-in .22s ease-out both}
.trick-winner-label{position:absolute;top:50%;left:calc(100% + 12px);transform:translateY(-50%);display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:max-content;max-width:84px;padding:0;color:#e8c983;font:700 16px/1.15 "DM Sans",sans-serif;text-align:left;text-shadow:0 1px 6px #00180ecc;pointer-events:none;animation:trick-winner-in .22s ease-out both}
@keyframes trick-winner-in{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.played-card.trick-winner::after,.trick-winner-label{animation:none}}
.trick-winner-why{pointer-events:auto;min-height:32px;margin:-6px 0;padding:6px 0;border:0;background:none;color:#f1f5ee;font:600 13px/1 "DM Sans",sans-serif;text-decoration:underline;text-underline-offset:3px;cursor:pointer;touch-action:manipulation}
.trick-winner-timer{display:block;width:72px;height:3px;border-radius:2px;background:#e8c98333;overflow:hidden}
.trick-winner-timer::before{content:"";display:block;height:100%;background:#e8c983;transform-origin:left;animation:trick-winner-timer var(--trick-left,5000ms) linear forwards}
.trick-winner-label.is-paused .trick-winner-timer::before{animation-play-state:paused}
@keyframes trick-winner-timer{from{transform:scaleX(1)}to{transform:scaleX(0)}}
.learning-message .learning-answer-ask{margin:2px 0 12px!important;color:#e8c983;font-size:15px!important;font-weight:600;text-align:left}
.learning-answers{list-style:none;margin:0;padding:0;display:grid;gap:10px;text-align:left}
.learning-answers li{display:grid;grid-template-columns:112px 1fr;align-items:center;gap:12px}
.learning-answers strong{display:grid;place-items:center;min-height:34px;padding:5px 8px;border:1px solid #e8c983aa;border-radius:8px;color:#f7f3e9;font-size:11.5px;font-weight:700;letter-spacing:.03em;line-height:1.15;text-align:center}
.learning-answers li:first-child strong{border-color:#e8c983;background:#e8c983;color:#15251b}
.learning-answers span{color:#e0e7dc;font-size:14px;line-height:1.35}
.my-flor{display:none}
.game.player-mode.two-device-mode .my-flor:not(.hidden){display:grid;position:absolute;transform:translateY(-50%);z-index:11}
.game.drawing-mode .my-flor,.game.reveal-mode .my-flor{display:none!important}
.setup-game-modes button[data-table-mode="bot"]{flex-direction:column;justify-content:center;gap:2px!important;white-space:normal;line-height:1}.setup-game-modes button small{display:block;margin-top:-1px;line-height:1.05;font-size:10.5px;font-weight:500;letter-spacing:0;text-transform:none;opacity:.8;white-space:nowrap}

/* Friends: lobby entry, dialogs and table invitations */
#welcome-view .home-actions .friends-entry{width:100%;height:56px;min-height:56px;padding:12px;gap:9px;justify-content:flex-start;font-size:clamp(14px,3.5vw,18px)}
#welcome-view .home-actions .friends-entry .home-action-icon{width:22px;height:22px;flex:0 0 22px}
#welcome-view .home-actions .friends-entry .home-action-chevron{margin-left:auto}
.friends-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;margin-left:6px;border-radius:10px;background:#e8806f;color:#2a0d09;font-size:12px;font-weight:700}
.friends-badge[hidden]{display:none}
.friends-dialog{width:min(460px,calc(100% - 24px));max-height:86dvh;overflow:auto}
.friends-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.friends-head h2{margin:0;color:#ead39b}
.friends-head .icon-button{width:36px;height:36px;font-size:22px;color:#f1e9d7;background:transparent;border:1px solid #d9bd7966;border-radius:9px}
.friends-tabs{display:flex;gap:4px;padding:4px;margin-bottom:14px;border:1px solid #d9bd7944;border-radius:12px;background:#0b2c21;overflow-x:auto}
.friends-tabs button{flex:1 0 auto;padding:9px 10px;border:0;border-radius:9px;background:transparent;color:#cbbf9f;font:inherit;font-size:13px;font-weight:700;white-space:nowrap}
.friends-tabs button.active{background:#e8c983;color:#103b2c}
.friends-dialog h3{margin:16px 0 6px;font-size:14px;color:#cbbf9f}
.friends-dialog input[type=search]{margin-bottom:10px}
.friend-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.friend-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid #d9bd7933;border-radius:12px;background:#ffffff06}
.friend-who{display:grid;min-width:0}.friend-who strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.friend-who small{color:#b9c8bd;font-size:12px}
.friend-actions{display:flex;gap:6px;flex-shrink:0}
.friend-button{min-height:36px;padding:7px 12px;font-size:13px}
.friend-tag{font-size:12px;color:#ead39b;white-space:nowrap}
.friend-empty,.friend-note{color:#b9c8bd;font-size:13px;margin:6px 0}
.invite-friend{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:48px;margin-top:10px;padding:12px 16px;border:1px solid #e8c98366;border-radius:12px;background:#e8c98312;color:#ead39b;font:inherit;font-weight:700;cursor:pointer}
.invite-friend.hidden{display:none}
.invite-friend-icon{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.table-invite-dialog h2{margin:0 0 10px;color:#ead39b}.table-invite-dialog p{margin:0 0 18px;line-height:1.45}
.table-invite-actions{display:grid;gap:10px}
@media(max-width:480px){.friends-tabs{display:grid;grid-template-columns:1fr 1fr;overflow:visible}.friends-tabs button{flex:none}}
/* Join confirmation: the table and what entering costs */
.join-summary{display:grid;grid-template-columns:auto 1fr;gap:8px 14px;margin:4px 0 18px;padding:14px 16px;border:1px solid #d9bd7944;border-radius:14px;background:#0b2c21}
.join-summary dt{color:#cbbf9f;font-size:14px}
.join-summary dd{margin:0;text-align:right;font-weight:700;color:#f1e9d7}
/* Amigos as a full screen */
#friends-view{overflow-y:auto}
.friends-content{width:min(560px,100%);margin:0 auto;padding:18px 16px 48px;box-sizing:border-box;display:grid;gap:20px;align-content:start}
.friends-content h1{margin:0;color:#ead39b;font-size:28px;letter-spacing:-.3px}
.friends-search{width:100%;box-sizing:border-box;min-height:50px;padding:12px 16px;border:1px solid #d9bd7966;border-radius:14px;background:#0b2c21;color:#f1e9d7;font:inherit;font-size:16px}
.friends-search:focus-visible{outline:2px solid #e8c983;outline-offset:2px}
.friends-section{display:grid;gap:10px}
.friends-section h2{margin:0;font-size:15px;font-weight:700;color:#cbbf9f;letter-spacing:.02em}
.friends-section .friend-list+.friend-list{margin-top:8px}
.friend-row{padding:12px 14px;border-radius:14px}
.friend-button{flex:none;width:auto;height:auto;min-width:0;min-height:40px;padding:8px 16px;border:1px solid #e8c98366;border-radius:12px;background:transparent;color:#e8c983;font:inherit;font-size:14px;font-weight:700;letter-spacing:0;text-transform:none;cursor:pointer;white-space:nowrap}
.friend-button.primary{background:#e8c983;border-color:#e8c983;color:#103b2c}
.friend-button:disabled{opacity:.55;cursor:default}
.friend-button:focus-visible{outline:2px solid #e8c983;outline-offset:2px}
.friends{flex-direction:column}.friends>.topbar{width:100%;box-sizing:border-box}
.friends-section[hidden]{display:none}
/* Lobby: user and credits in one container, Crear mesa and three equal shortcut tiles */
#welcome-view .home-topbar .home-player-wallet{flex:0 1 auto;margin-left:auto;min-width:0;min-height:0;padding:0;gap:0;align-items:stretch;border:1px solid #d8b87566;border-radius:18px;background:#0b2c21;box-shadow:none;overflow:hidden}
#welcome-view .home-player-wallet #account-open{flex:1 1 auto;flex-direction:row;justify-content:flex-start;align-items:center;gap:8px;min-width:0;padding:8px 10px 8px 8px;margin:0;border:0;border-radius:0;background:transparent;color:#f7f3e9;font-size:15px;font-weight:700;text-align:left;cursor:pointer}
#welcome-view .home-player-wallet #account-open:hover{background:#ffffff0a}
#welcome-view .home-player-wallet #account-open:focus-visible{outline:2px solid #e8c983;outline-offset:-2px}
.account-user-badge{display:flex;align-items:center;justify-content:center;width:30px;height:30px;flex:none;border-radius:50%;background:#1a4334;color:#e8c983}
#welcome-view .account-user-badge .account-user-icon{width:18px;height:18px;flex:0 0 18px;stroke-width:1.8;color:#e8c983}
.account-chevron{flex:none;color:#e8c983;font-size:18px;line-height:1}
#welcome-view .home-player-wallet .home-wallet-summary{flex:none;gap:6px;padding:6px 6px 6px 10px;border-left:1px solid #d8b87566;margin:8px 0;padding-top:0;padding-bottom:0;font-size:15px}
#welcome-view .home-wallet-summary .credit-coin-icon{display:block;width:22px;height:22px}
#welcome-view .home-wallet-summary strong{font-size:17px;color:#f7f3e9;line-height:1;font-variant-numeric:tabular-nums}
#welcome-view .home-wallet-summary #credits-open{width:30px;height:30px;margin-left:2px;border:0;border-radius:50%;background:#e8c983;color:#14301f;font:800 20px/1 'DM Sans',sans-serif;box-shadow:none;display:flex;align-items:center;justify-content:center;padding:0}
#welcome-view .home-actions #create-room.primary{height:68px;min-height:68px;padding:0 20px;gap:14px;border:0;border-radius:18px;background:linear-gradient(180deg,#f0d596,#dcb565);color:#14301f;font-size:21px;font-weight:700;box-shadow:0 8px 22px #e8c98330,inset 0 1px 0 #fff6}
#welcome-view .home-actions #create-room.primary .home-action-icon{width:28px;height:28px}
#welcome-view .home-actions #create-room.primary .home-action-chevron{font-size:26px;opacity:.7}
#welcome-view .home-actions .home-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%}
#welcome-view .home-actions .home-tiles :is(#learn-game,#open-scorer,#open-friends){position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:100%;min-width:0;height:auto;min-height:84px;padding:14px 6px;margin:0;border:1px solid #d8b87533;border-radius:16px;background:#15392b;color:#f7f3e9;box-shadow:none;font-size:14px;font-weight:600;line-height:1.2;text-align:center}
#welcome-view .home-actions .home-tiles :is(#learn-game,#open-scorer,#open-friends):hover{background:#1a4334}
#welcome-view .home-actions .home-tiles .home-action-icon{width:26px;height:26px;flex:0 0 26px;color:#e8c983}
#welcome-view .home-actions .home-tiles button>span:not(.friends-badge){min-width:0;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
#welcome-view .home-tiles .friends-badge{position:absolute;top:-7px;right:-7px;margin:0;border:2px solid #0f3024}
@media(min-width:701px){#welcome-view .home-player-wallet #account-open{font-size:17px;padding:10px 12px 10px 10px}.account-user-badge{width:34px;height:34px}#welcome-view .home-wallet-summary strong{font-size:20px}#welcome-view .home-wallet-summary #credits-open{width:34px;height:34px}#welcome-view .home-actions .home-tiles :is(#learn-game,#open-scorer,#open-friends){min-height:96px;font-size:16px}}
@media(max-width:700px){#welcome-view .home-topbar{gap:10px}#welcome-view .home-topbar .brand-lockup{flex:0 0 70px}#welcome-view .home-topbar .truco-logo{width:70px;height:48px}#welcome-view .home-player-wallet #account-open{gap:7px;padding:7px 8px 7px 7px}#welcome-view .home-player-wallet .home-wallet-summary{gap:5px;padding:0 6px 0 9px}#welcome-view .home-wallet-summary .credit-coin-icon{width:20px;height:20px}#welcome-view .home-wallet-summary strong{font-size:16px}}
/* The table cards use the same three-coin icon as the rest of the game */
.compact-room-stat svg.credit-coin-icon{fill:#ecc97c;stroke:#6e4e17;stroke-width:3;stroke-linejoin:round}
/* Credits window: title, the balance in a centered pill, and the gold claim button */
#welcome-view #credits-panel{display:flex;flex-direction:column;align-items:center;gap:12px;padding:18px;text-align:center}
#welcome-view #credits-panel .credits-heading{display:flex;flex-direction:column;align-items:center;gap:12px;margin:0;color:#dfe6e1;font-size:15px;font-weight:600}
#welcome-view #credits-panel .credits-amount{display:flex;align-items:center;gap:10px;padding:8px 20px 8px 14px;border:1px solid #d8b87566;border-radius:999px;background:#0b2c21}
#welcome-view #credits-panel .credits-amount .credit-coin-icon{width:34px;height:34px}
#welcome-view #credits-panel .credits-amount strong{font-size:34px;line-height:1;color:#e8c983;font-variant-numeric:tabular-nums}
#welcome-view #credits-panel #credits-status{margin:0;padding:0;text-align:center}
#welcome-view #credits-panel #credits-claim{width:100%;min-height:56px;margin:0}
#welcome-view #credits-panel #credits-claim:not(:disabled){background:linear-gradient(180deg,#f0d596,#dcb565);border:0;color:#14301f;-webkit-text-fill-color:currentColor;box-shadow:0 6px 16px #e8c98330,inset 0 1px 0 #fff6}
#welcome-view #credits-panel #credits-claim:not(:disabled):hover{background:linear-gradient(180deg,#f4dda4,#e2bd6f)}
/* Table invitation: the table's facts and rounded game buttons */
.table-invite-dialog .join-summary{margin:0 0 18px}
.table-invite-dialog .table-invite-actions .button{width:100%;min-height:54px;padding:12px 18px;border-radius:16px;font:inherit;font-size:17px;font-weight:700;text-align:center;justify-content:center}
.table-invite-dialog #table-invite-accept{background:linear-gradient(180deg,#f0d596,#dcb565);border:0;color:#14301f;box-shadow:0 6px 16px #e8c98330,inset 0 1px 0 #fff6}
.table-invite-dialog #table-invite-decline{background:transparent;border:1px solid #e8c98399;color:#e8c983}
.table-invite-dialog .table-invite-actions .button:focus-visible{outline:2px solid #e8c983;outline-offset:2px}
/* Waiting room: WhatsApp right under Invitar amigo, with the same look and its own logo */
#waiting-view .invite-whatsapp{width:100%;min-height:48px;margin:10px 0 0;padding:12px 16px;gap:10px;border:1px solid #e8c98366;border-radius:12px;background:#e8c98312;color:#ead39b;font-size:16px;font-weight:700}
#waiting-view .invite-whatsapp:hover{background:#e8c98322}
#waiting-view .invite-whatsapp .whatsapp-brand-icon{width:24px;height:24px}
/* Invite a friend: the note sits right under the title, apart from the search box */
#invite-friend-dialog .friends-head{margin-bottom:4px}
#invite-friend-dialog .invite-friend-note{margin:0 0 16px;color:#cbd6cf;font-size:14px;line-height:1.4}
/* Invitation: credits shown with the coin icon; claim the daily credits right there */
.table-invite-dialog .join-summary dd.credit-amount{display:flex;align-items:center;justify-content:flex-end;gap:8px}
.table-invite-dialog .join-summary .credit-coin-icon{width:22px;height:22px}
.table-invite-dialog #table-invite-claim{display:flex;align-items:center;gap:10px;background:linear-gradient(180deg,#f0d596,#dcb565);border:0;color:#14301f;box-shadow:0 6px 16px #e8c98330,inset 0 1px 0 #fff6}
.table-invite-dialog #table-invite-claim[hidden]{display:none}
.table-invite-dialog #table-invite-claim svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.table-invite-dialog #table-invite-accept:disabled{background:#ffffff14;border:1px solid #ffffff2e;color:#b9c6be;box-shadow:none;cursor:default}
/* End of match: share the result on a photo */
.match-end-panel{position:relative}
/* A clear call to share the result, between the score and the rematch */
.match-end-share{display:flex;align-items:center;justify-content:center;gap:10px;margin:4px auto 14px;padding:12px 22px;min-height:50px;border:0;border-radius:999px;background:linear-gradient(180deg,#f0d596,#dcb565);color:#14301f;font:inherit;font-size:16px;font-weight:700;box-shadow:0 6px 16px #e8c98340,inset 0 1px 0 #fff6;cursor:pointer}
.match-end-share svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.match-end-share:focus-visible{outline:2px solid #e8c983;outline-offset:2px}
.match-photo-dialog{width:min(440px,calc(100% - 24px));max-height:92dvh;overflow:auto}
.match-photo-dialog img{display:block;width:100%;max-height:58dvh;object-fit:contain;margin:4px 0 16px;border-radius:14px;background:#0b2c21}
.match-photo-actions{display:grid;gap:10px}
.match-photo-actions .button{width:100%;min-height:52px;border-radius:16px;font:inherit;font-size:17px;font-weight:700;justify-content:center}
.match-photo-actions #match-photo-share{background:linear-gradient(180deg,#f0d596,#dcb565);border:0;color:#14301f;box-shadow:0 6px 16px #e8c98330,inset 0 1px 0 #fff6}
.match-photo-actions #match-photo-retake{background:transparent;border:1px solid #e8c98399;color:#e8c983}
/* Invite a friend: a refusal (limit reached, friend playing) shows in red inside the window */
.invite-friend-error{margin:0 0 12px;padding:10px 12px;border:1px solid #e8806f88;border-radius:12px;background:#e8806f1f;color:#ffb3a6;font-size:14px;font-weight:600;line-height:1.4}
.invite-friend-error[hidden]{display:none}
/* Lobby: a larger credits number */
#welcome-view .home-wallet-summary strong{font-size:20px}
@media(max-width:700px){#welcome-view .home-wallet-summary strong{font-size:19px}}
/* Anotador: who plays on each side, and sharing the final score */
.scorer-people{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 18px;text-align:left}
.scorer-people[hidden]{display:none}
.scorer-people label{display:grid;gap:6px;color:#cbbf9f;font-size:14px;font-weight:600}
.scorer-people select{width:100%;min-height:48px;padding:10px 12px;border:1px solid #d9bd7966;border-radius:14px;background:#0b2c21;color:#f1e9d7;font:inherit;font-size:16px}
.scorer-share{display:flex;align-items:center;justify-content:center;gap:10px;align-self:center;flex:none;margin:0 auto 12px;padding:10px 20px;min-height:48px;border:0;border-radius:999px;background:linear-gradient(180deg,#f0d596,#dcb565);color:#14301f;font:inherit;font-size:16px;font-weight:700;box-shadow:0 6px 16px #e8c98330,inset 0 1px 0 #fff6;cursor:pointer}
.scorer-share[hidden]{display:none}
.scorer-share svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
/* A message from the administrator, with an optional answer */
.admin-message-date{display:block;margin:-4px 0 12px;color:#a9b8ad;font-size:13px}
.admin-message-text{margin:0 0 16px!important;padding:14px 16px;border:1px solid #d9bd7944;border-radius:14px;background:#0b2c21;color:#f1e9d7;font-size:16px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;max-height:40dvh;overflow:auto}
.admin-message-label{display:block;margin:0 0 6px;color:#cbbf9f;font-size:14px;font-weight:600}
.admin-message-reply{display:block;width:100%;box-sizing:border-box;min-height:84px;margin:0 0 14px;padding:12px;border:1px solid #d9bd7966;border-radius:12px;background:#103b2c;color:#f1e9d7;font:inherit;font-size:16px;resize:vertical}
.admin-message-reply:focus-visible{outline:2px solid #e8c983;outline-offset:2px}
.table-invite-dialog #admin-message-send{background:linear-gradient(180deg,#f0d596,#dcb565);border:0;color:#14301f;box-shadow:0 6px 16px #e8c98330,inset 0 1px 0 #fff6}
.table-invite-dialog #admin-message-close{background:transparent;border:1px solid #e8c98399;color:#e8c983}
/* Levels (no credits any more): level and bar in the header, avatars with a badge on the edge */
#credits-panel,#setup-view .setup-wallet{display:none!important}
#welcome-view .home-player-wallet .home-level{display:flex;flex-direction:column;justify-content:center;gap:6px;flex:none;min-width:84px;margin:8px 0;padding:0 12px 0 11px;border:0;border-left:1px solid #d8b87566;background:transparent;color:#f7f3e9;font:inherit;cursor:pointer}
.home-level-number{display:flex;align-items:baseline;gap:5px;font-size:12px;font-weight:600;color:#a9b8ad;white-space:nowrap}
.home-level-number b{font-size:19px;line-height:1;color:#e8c983;font-variant-numeric:tabular-nums}
.level-bar{display:block;width:100%;height:6px;border-radius:4px;background:#ffffff1f;overflow:hidden}
.level-bar i{display:block;height:100%;width:0;border-radius:4px;background:linear-gradient(90deg,#dcb565,#f0d596);transition:width .4s}
.level-bar.big{height:10px}
.home-level:focus-visible{outline:2px solid #e8c983;outline-offset:-2px}
.player-avatar{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:34px;height:34px;border-radius:50%;background:#1a4334;color:#e8c983}
.player-avatar>svg{width:58%;height:58%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.player-avatar>img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.level-badge{position:absolute;right:-4px;bottom:-3px;display:flex;align-items:center;justify-content:center;width:44%;height:44%;min-width:15px;min-height:15px;border-radius:50%;border:2px solid #0b2c21;box-sizing:content-box}
.level-badge svg{width:70%;height:70%;fill:#2a1d07;stroke:none}
.badge-bronce{background:radial-gradient(circle at 35% 30%,#f3c9a0,#b8703a)}
.badge-plata{background:radial-gradient(circle at 35% 30%,#ffffff,#a9b4bd)}
.badge-oro{background:radial-gradient(circle at 35% 30%,#fff2c4,#d9a93c)}
.badge-diamante{background:radial-gradient(circle at 35% 30%,#e9fbff,#5fc3e6)}
.account-avatar-slot{display:flex;flex:none}
.header-avatar{width:32px;height:32px}
@media(min-width:701px){.header-avatar{width:36px;height:36px}#welcome-view .home-player-wallet .home-level{min-width:96px}}
.compact-room-owner .room-avatar{width:34px;height:34px}.compact-room-owner .room-avatar .level-badge{border-color:#103b2c}
.level-stat strong{color:#e8c983}
/* Level details */
.level-dialog{width:min(460px,calc(100% - 24px));max-height:90dvh;overflow:auto}
.level-dialog-note{margin:0 0 12px;color:#a9b8ad;font-size:14px}
.level-detail{display:flex;align-items:center;gap:14px;margin:4px 0 14px}
.big-avatar{width:60px;height:60px}.big-avatar .level-badge{border-color:#143d2e}
.level-detail-number{font-size:13px;color:#a9b8ad}.level-detail-number b{display:block;font-size:32px;line-height:1.05;color:#e8c983}
.level-detail-progress{flex:1;display:grid;gap:6px}.level-detail-progress small{font-size:13px;color:#cbd6cf}
.level-rules{margin:0 0 16px;padding:12px 14px;border-radius:14px;background:#0b2c21;border:1px solid #d9bd7944;font-size:14px;line-height:1.55;color:#dfe6e1}.level-rules b{color:#e8c983}
.level-unlocks-title{margin:0 0 4px;font-size:16px;color:#ead39b}
.level-unlocks{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.level-unlock{display:flex;align-items:center;gap:12px;padding:9px 12px;border-radius:12px;background:#0b2c21;border:1px solid #d9bd7922;font-size:14px}
.level-unlock.unlocked{border-color:#e8c98355}.level-unlock.locked{opacity:.55}
.level-unlock.choosable{cursor:pointer}.level-unlock.choosable:hover{background:#12392b}.level-unlock.choosable:focus-visible{outline:2px solid #e8c983;outline-offset:2px}
.unlock-avatar{width:32px;height:32px}
.unlock-badge{position:static;width:24px;height:24px;min-width:0;min-height:0;border-color:transparent;flex:none}
.unlock-name{flex:1;min-width:0}
.unlock-level{font-size:12px;font-weight:700;color:#a9b8ad;white-space:nowrap}.level-unlock.unlocked .unlock-level{color:#7fd6a3}
.unlock-photo-button{flex:none;padding:7px 12px;border:0;border-radius:10px;background:#e8c983;color:#14301f;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.unlock-photo-button.secondary{background:transparent;border:1px solid #e8c98399;color:#e8c983}
/* Level up */
.level-up-dialog{text-align:center}
.level-up-burst{width:64px;height:64px;margin:0 auto 8px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:34px;color:#14301f;background:radial-gradient(circle at 35% 30%,#fff2c4,#d9a93c);box-shadow:0 0 30px #e8c98366}
.level-up-dialog h2{margin:0 0 6px;color:#ead39b}.level-up-dialog p{margin:0 0 12px;color:#cbd6cf}
.level-up-unlocks{list-style:none;margin:0 0 14px;padding:10px 12px;border-radius:12px;background:#0b2c21;display:grid;gap:6px;color:#e8c983;font-weight:600}
.level-up-dialog .button{width:100%;min-height:52px;border-radius:16px;border:0;background:linear-gradient(180deg,#f0d596,#dcb565);color:#14301f;font:inherit;font-size:17px;font-weight:700}

/* Free tables: no stake on the setup screen. */
#setup-view .stake-stepper[hidden],#setup-view .setup-subtitle[hidden]{display:none}

/* Level details: points per win, photo hint, own avatar and photo tools. */
.level-rules{display:grid;gap:8px}.level-rules-title{font-size:14px;color:#ead39b}
.level-rule{display:flex;align-items:center;gap:12px}.level-rule-points{min-width:54px;padding:4px 8px;border-radius:10px;background:#e8c98322;text-align:center;font-size:18px;color:#e8c983}
.level-rules small{color:#a9b8ad;font-size:12.5px}
.level-photo-hint{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 14px;padding:11px 14px;border-radius:14px;border:1px dashed #e8c98377;background:#e8c98312;color:#f1e3bd;font-size:14px;font-weight:600}.level-photo-hint[hidden]{display:none}
.unlock-level.in-use{color:#e8c983!important}.unlock-photo-actions{margin-left:auto;display:flex;gap:6px}.unlock-photo-actions .unlock-photo-button{margin:0}
.account-avatar-holder .account-profile-avatar{width:52px;height:52px}.account-avatar-holder .account-profile-avatar .level-badge{border-color:#123c2e}
.player-account-summary[role=button]{cursor:pointer;border-radius:14px}.player-account-summary[role=button]:focus-visible{outline:2px solid #e8c983;outline-offset:3px}
.photo-frame-dialog{width:min(380px,calc(100% - 24px));text-align:center}.photo-frame-dialog h2{margin:0 0 4px;color:#ead39b}
.photo-frame{width:min(280px,100%);aspect-ratio:1;margin:8px auto 14px;border-radius:16px;overflow:hidden;background:#0b2c21}.photo-frame canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}
.photo-zoom{display:flex;align-items:center;gap:10px;justify-content:center;color:#cbd6cf;font-size:14px;margin-bottom:16px}.photo-zoom input{width:60%;accent-color:#e8c983}
.photo-frame-actions{display:flex;gap:10px}.photo-frame-actions .button{flex:1}
.room-avatar.has-photo{cursor:zoom-in}
.photo-view-dialog{width:min(360px,calc(100% - 32px));display:grid;justify-items:center;gap:12px;text-align:center}.photo-view-dialog[open]{display:grid}
.photo-view-dialog img{width:100%;aspect-ratio:1;border-radius:50%;object-fit:cover;border:3px solid #e8c983}.photo-view-dialog strong{font-size:18px;color:#f4eedc}.photo-view-dialog .button{width:100%}
.level-unlock:has(.unlock-photo-actions){flex-wrap:wrap}.level-unlock .unlock-name{flex:1;min-width:0}.level-unlock:has(.unlock-photo-actions) .unlock-photo-actions{flex-basis:100%;justify-content:flex-end}
/* Lobby card: narrow privacy column so the name has room; level reads "nivel 4"; same name box width for every 1 vs 1 table. */
#welcome-view .compact-room.has-team-seats{grid-template-columns:minmax(0,1fr) auto auto auto}
#welcome-view .compact-room.has-team-seats>.compact-room-stat{padding:0 10px}
#welcome-view .compact-room.has-team-seats>.compact-room-privacy{padding:0 2px 0 8px}
#welcome-view .compact-room>.level-stat{flex-direction:row;align-items:baseline;gap:5px}
#welcome-view .compact-room>.level-stat span{font-size:12px}
#welcome-view .compact-room .lobby-solo-row .lobby-team-name{display:block;width:9.5em;max-width:100%;box-sizing:border-box;text-align:center;line-height:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Tu nivel: points under the bar, room before the unlock list. */
.level-detail-progress small{text-align:right}
.credit-join-dialog .level-photo-hint{margin:0 0 22px}.level-dialog .level-unlocks-title{margin-top:4px}
.level-unlock .unlock-photo-button.secondary{margin:0}

/* Profile pictures: the icon art brings its own green disc and gold ring, a bit larger than
   the avatar so the sword and the sun of the coat of arms can stick out. */
.player-avatar.has-icon{background:none;overflow:visible}
.player-avatar>img.avatar-icon{width:120.7%;height:120.7%;margin:-10.35%;border-radius:0;object-fit:contain;pointer-events:none}
.level-badge{background:none!important;border:0!important;border-radius:0;width:50%;height:50%;right:-7px;bottom:-6px;filter:drop-shadow(0 2px 3px #0009)}
.level-badge img{width:100%;height:100%;object-fit:contain}
.unlock-badge{width:30px;height:30px}

/* Amigos: who is online at the top right, folded requests and friends, the people you played with. */
.friends-title{display:flex;align-items:center;justify-content:space-between;gap:12px}
.friends-online{display:inline-flex;align-items:center;gap:7px;padding:8px 13px;border-radius:99px;border:1px solid #ffffff2a;background:#ffffff0d;color:#b9c8bd;font:inherit;font-weight:800;font-size:14px;cursor:pointer}
.friends-online.has-online{background:#4dd99b1f;border-color:#4dd99b77;color:#9ff0c8}
.friends-online-chev{font-size:11px;opacity:.8}
.online-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#7d8f84}
.has-online .online-dot,.friends-online-sheet .online-dot{background:#4dd99b;box-shadow:0 0 0 3px #4dd99b33}
.friends-folds{display:grid;gap:10px}.friends-folds[hidden]{display:none}
.friends-fold{display:flex;align-items:center;gap:12px;width:100%;padding:14px;border-radius:16px;border:1px solid #d9bd7933;background:#0f3529;color:#f7f3e9;font:inherit;font-weight:800;font-size:16px;text-align:left;cursor:pointer}
.friends-fold svg{width:22px;height:22px;flex:none;fill:none;stroke:#e8c983;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.friends-fold-label{flex:1}
.friends-fold-num{min-width:24px;height:24px;padding:0 7px;border-radius:99px;display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:900;background:#e8c98330;color:#e8c983}
.friends-fold-num.alert{background:#ef5350;color:#fff;box-shadow:0 0 0 3px #ef535033}.friends-fold-num[hidden]{display:none}
.friends-fold-chev{color:#e8c983;font-size:16px;transition:transform .15s}
.friends-fold.open{border-color:#e8c98388;border-bottom-left-radius:6px;border-bottom-right-radius:6px}.friends-fold.open .friends-fold-chev{transform:rotate(90deg)}
.friends-fold-panel{margin-top:-10px;padding:8px;border-radius:0 0 16px 16px;background:#0b2a20;border:1px solid #e8c98355;border-top:0;display:grid;gap:8px}.friends-fold-panel[hidden]{display:none}
.friends-fold-sub{margin:4px 4px 0;font-size:12px;font-weight:900;letter-spacing:1px;color:#a9b8ad}
.friends-search.small{min-height:42px;padding:9px 13px;font-size:15px}
.friend-row.with-avatar{justify-content:flex-start;gap:11px}
.friend-row.with-avatar .friend-who{flex:1}
.friend-row.is-off{opacity:.65}
.friend-avatar{position:relative;flex:none;display:inline-flex}
.friend-avatar .player-avatar{width:42px;height:42px}
.live-dot{position:absolute;left:-2px;bottom:-1px;width:13px;height:13px;border-radius:50%;background:#4dd99b;border:2.5px solid #0f3529;z-index:2}
.live-dot.busy{background:#f2b552}
.friend-level{margin-left:6px;padding:2px 7px;border-radius:99px;background:#e8c98322;color:#e8c983;font-size:11px;font-weight:900}
.friend-who small.is-online{color:#9ff0c8}.friend-who small.is-playing{color:#f6d08e}
.friend-button.icon-only{min-width:40px;padding:8px 0;font-size:18px;line-height:1}
.friends-recent{display:flex;gap:14px;overflow-x:auto;padding:4px 2px 6px;scrollbar-width:none}
.recent-person{display:flex;flex-direction:column;align-items:center;gap:6px;width:76px;flex:none;text-align:center}
.recent-person .player-avatar{width:48px;height:48px}
.recent-person b{max-width:76px;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.recent-person .recent-action{min-height:0;padding:4px 10px;border-radius:99px;font-size:11.5px;font-weight:900}
.recent-person .friend-tag{font-size:11px}
.friends-online-sheet{position:fixed;inset:auto 0 0 0;margin:0 auto;width:min(560px,100%);max-height:80dvh;padding:10px 14px 20px;border:0;border-top:1px solid #4dd99b88;border-radius:24px 24px 0 0;background:#123d2e;color:#f7f3e9;box-shadow:0 -14px 40px #000b;overflow:auto}
.friends-online-sheet::backdrop{background:#000a}
.friends-online-sheet[open]{display:grid;gap:10px}
.friends-sheet-grab{width:44px;height:5px;border-radius:9px;background:#ffffff33;margin:0 auto 2px}
.friends-sheet-head{display:flex;align-items:center;justify-content:space-between}
.friends-sheet-head h2{display:flex;align-items:center;gap:9px;margin:0;font-size:19px}
.friends-sheet-hint{margin:0;text-align:center;font-size:12px;color:#a9b8ad}
.friend-name-line{display:flex;align-items:center;gap:6px;min-width:0}.friend-name-line strong{min-width:0}.friend-name-line .friend-level{margin-left:0;flex:none}
.friend-row.with-avatar .friend-actions{align-items:center}
.friend-row.with-avatar .friend-button.icon-only{min-width:34px;min-height:34px;border-color:#ffffff22;color:#a9b8ad;font-size:16px}
.friend-row.with-avatar .friend-who small{display:flex;align-items:center;gap:6px;white-space:nowrap;overflow:hidden}.friend-row.with-avatar .friend-who small .friend-level{margin-left:0;flex:none;padding:1px 6px}
/* Offline friends look the same (they can be invited too); only their status line is muted. */
.friend-row.is-off{opacity:1}
/* Played with: four and a half faces on a phone, so it is clear the row scrolls. */
.friends-recent{gap:12px;scroll-snap-type:x proximity}
.recent-person{flex:0 0 calc((100% - 48px) / 4.5);width:auto;min-width:0;scroll-snap-align:start}
.recent-person b{max-width:100%}
.recent-person .recent-action,.recent-person .friend-tag{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Online sheet: content-sized, stuck to the bottom, rows packed at the top. */
.friends-online-sheet{top:auto;bottom:0;height:auto;max-height:80dvh;padding-bottom:calc(20px + env(safe-area-inset-bottom))}
.friends-online-sheet[open]{display:flex;flex-direction:column;gap:12px}
.friends-online-sheet .friend-list{display:flex;flex-direction:column;gap:8px}
.friends-sheet-head .icon-button{width:38px;height:38px;min-height:0;padding:0;border-radius:50%;border:1px solid #ffffff2e;background:#ffffff12;color:#f7f3e9;font-size:22px;line-height:1;display:flex;align-items:center;justify-content:center}
.friends-sheet-empty{display:flex;flex-direction:column;align-items:center;gap:6px;padding:22px 16px;border-radius:16px;border:1px dashed #ffffff26;background:#ffffff08;text-align:center}
.friends-sheet-empty-icon{font-size:30px}
.friends-sheet-empty strong{font-size:16px}
.friends-sheet-empty small{font-size:13px;color:#a9b8ad;line-height:1.4}
/* The online list as a dropdown under the green counter (top set from friends.js). */
.friends-online-sheet{inset:auto;top:120px;bottom:auto;right:max(12px,calc((100vw - 560px) / 2 + 16px));left:auto;margin:0;width:min(360px,calc(100vw - 24px));max-height:min(70dvh,520px);padding:12px 12px 14px;border:1px solid #4dd99b77;border-radius:20px;box-shadow:0 18px 50px #000c;overflow:visible}
.friends-online-sheet::before{content:"";position:absolute;top:-8px;right:var(--arrow-right,28px);width:14px;height:14px;background:#123d2e;border-left:1px solid #4dd99b77;border-top:1px solid #4dd99b77;transform:rotate(45deg)}
.friends-online-sheet .friend-list{overflow:auto;max-height:calc(min(70dvh,520px) - 110px)}
.friends-online-sheet::backdrop{background:#0007}

/* Sound messages: the speaker in the level list and the "how to send it" demo. */
.unlock-sound svg{width:22px;height:22px;fill:none;stroke:#e8c983;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sound-howto-dialog{width:min(92vw,340px)}
.sound-howto-dialog .friends-head h2{margin:0;font-size:22px}
.sound-howto-label{margin:6px 0 10px;color:#cbbf9f;font-weight:600}
/* The demo: --loop is one round; it runs twice (finger, menu and all) and the window closes. */
.sound-howto-demo{position:relative;height:300px;border-radius:16px;background:radial-gradient(120% 80% at 50% 40%,#1f5541,#123a2b 60%,#0b271d);overflow:hidden;--loop:4.6s;--runs:2}
.sound-howto-demo *{animation-duration:var(--loop);animation-iteration-count:var(--runs);animation-fill-mode:both;animation-timing-function:ease-in-out}
.sound-howto-demo .demo-bar{position:absolute;left:0;right:0;top:0;height:52px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;background:#0d2a20cc;border-bottom:1px solid #e8c98322;font-weight:800;color:#e8c983;letter-spacing:.5px}
.sound-howto-demo .demo-chat{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;border:1px solid #efebd766;background:#193b2b;animation-name:demo-press}
.sound-howto-demo .demo-chat svg{width:20px;height:20px;fill:none;stroke:#f0eee2;stroke-width:1.8;stroke-linejoin:round}
.sound-howto-demo .demo-card{position:absolute;width:38px;height:58px;border-radius:5px;background-color:#f5f0df;background-size:400% 100%;box-shadow:0 4px 10px #0007}
.sound-howto-demo .demo-card.back{background-image:url(assets/tatu-dorso.webp);background-size:cover}
.sound-howto-demo .r1{left:calc(50% - 62px);top:66px;transform:rotate(-6deg)}.sound-howto-demo .r2{left:calc(50% - 19px);top:62px}.sound-howto-demo .r3{left:calc(50% + 24px);top:66px;transform:rotate(6deg)}
.sound-howto-demo .muestra{left:calc(50% - 19px);top:138px;transform:rotate(90deg)}
.sound-howto-demo .m1{left:calc(50% - 66px);top:222px;transform:rotate(-8deg)}.sound-howto-demo .m2{left:calc(50% - 19px);top:216px}.sound-howto-demo .m3{left:calc(50% + 28px);top:222px;transform:rotate(8deg)}
.sound-howto-demo .demo-menu{position:absolute;right:10px;top:58px;width:190px;padding:6px;display:flex;flex-direction:column;gap:4px;border:1px solid #d8e9df40;border-radius:16px;background:#143f32;box-shadow:0 10px 24px #00190f88;transform-origin:100% 0;animation-name:demo-menu}
.sound-howto-demo .demo-menu b{display:block;height:33px;line-height:33px;padding:0 12px;border-radius:10px;font-size:13px;font-weight:600;color:#f1f5ee;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sound-howto-demo .demo-menu b.demo-target{animation-name:demo-pick}
.sound-howto-demo .demo-sent{position:absolute;left:12px;top:64px;padding:9px 14px;border-radius:14px;background:#fff;color:#14301f;font-weight:800;font-size:14px;box-shadow:0 8px 18px #0007;animation-name:demo-sent}
.sound-howto-demo .demo-finger,.sound-howto-demo .demo-hold{position:absolute;left:0;top:0;pointer-events:none}
.sound-howto-demo .demo-finger{margin:-2px 0 0 -17px;font-size:34px;line-height:1;filter:drop-shadow(0 4px 6px #0008);animation-name:demo-finger}
.sound-howto-demo .demo-hold{width:44px;height:44px;margin:-22px 0 0 -22px;border-radius:50%;border:3px solid #fff;background:#ffffff33;animation-name:demo-hold}
@keyframes demo-finger{
 0%{transform:translate(calc(var(--chat-x) - 70px),250px);opacity:0}
 8%{opacity:1}
 20%,40%{transform:translate(var(--chat-x),26px) scale(1)}
 24%,36%{transform:translate(var(--chat-x),26px) scale(.85)}
 62%,72%{transform:translate(var(--item-x),calc(80px + var(--item) * 37px)) scale(.85)}
 76%{transform:translate(var(--item-x),calc(80px + var(--item) * 37px)) scale(1);opacity:1}
 90%,100%{transform:translate(var(--item-x),calc(100px + var(--item) * 37px));opacity:0}}
@keyframes demo-hold{
 0%,22%{transform:translate(var(--chat-x),26px) scale(.4);opacity:0}
 26%{opacity:1}
 26%,38%{transform:translate(var(--chat-x),26px) scale(1.25)}
 62%,72%{transform:translate(var(--item-x),calc(80px + var(--item) * 37px)) scale(1);opacity:1}
 76%,100%{transform:translate(var(--item-x),calc(80px + var(--item) * 37px)) scale(1.6);opacity:0}}
@keyframes demo-press{0%,22%{box-shadow:0 0 0 0 #e8c98300;background:#193b2b}26%,74%{box-shadow:0 0 0 6px #e8c98355;background:#2b5a44}78%,100%{box-shadow:0 0 0 0 #e8c98300;background:#193b2b}}
@keyframes demo-menu{0%,36%{opacity:0;transform:scale(.9)}40%,74%{opacity:1;transform:scale(1)}77%,100%{opacity:0;transform:scale(.96)}}
@keyframes demo-pick{0%,60%{background:transparent;color:#f1f5ee}62%,76%{background:#e8c983;color:#15251b}78%,100%{background:transparent;color:#f1f5ee}}
@keyframes demo-sent{0%,77%{opacity:0;transform:translateY(-8px) scale(.9)}81%,96%{opacity:1;transform:none}100%{opacity:0}}
@media(prefers-reduced-motion:reduce){.sound-howto-demo{--loop:6s}}

/* Level up: congratulations, the X in the corner and the way to the unlocks. */
.level-up-dialog{position:relative;padding-top:28px}
.level-up-dialog .level-up-x{position:absolute;top:12px;right:12px}
.level-up-dialog p strong{color:#ead39b}
.level-up-dialog #level-up-open{display:flex;align-items:center;justify-content:center;text-align:center}
.level-up-dialog .level-up-x{border-radius:12px}

/* Photo editor: the photo with the score card on top, moved, resized and rotated by hand. */
.match-photo-stage{position:relative;width:min(100%,calc(58dvh * 9 / 16));aspect-ratio:9/16;margin:4px auto 8px;border-radius:14px;overflow:hidden;background:#0b2c21;touch-action:none;-webkit-user-select:none;user-select:none}
.match-photo-stage canvas{position:absolute;inset:0;width:100%;height:100%}
.match-photo-dialog .match-photo-stage img{position:absolute;left:0;top:0;margin:0;max-height:none;border-radius:0;background:none;object-fit:fill;transform-origin:50% 50%;pointer-events:none;-webkit-user-drag:none}
.match-photo-stage.moving img{filter:drop-shadow(0 0 6px #e8c983aa)}
.match-photo-hint{margin:0 0 14px;text-align:center;font-size:13px;color:#cbd6cf}

/* The looks of the score card: one circle each, the chosen one with a gold ring. */
.match-photo-themes{display:flex;justify-content:center;gap:14px;margin:4px 0 8px}
.match-photo-theme{width:34px;height:34px;padding:0;border-radius:50%;border:2px solid var(--edge);background:var(--swatch);box-shadow:0 2px 6px #0006;cursor:pointer;touch-action:manipulation}
.match-photo-theme.active{outline:3px solid #e8c983;outline-offset:3px}

