:root{--bg-dark:#0f0d0b;--bg-card:#181512;--bg-glass:#181512d9;--border-wood:#3a2a1d;--border-gold:#c59b27;--border-gold-glow:#c59b2759;--felt-green:#0c3b24;--felt-green-dark:#062215;--felt-border:#442a17;--felt-gold-trim:#dfb141;--gold-primary:#e5b338;--gold-hover:#fcd269;--red-truco:#b91c1c;--red-hover:#dc2626;--blue-envido:#1d4ed8;--blue-hover:#2563eb;--purple-flor:#7e22ce;--purple-hover:#9333ea;--green-accept:#15803d;--green-hover:#16a34a;--font-serif:"Cinzel", serif;--font-sans:"Outfit", sans-serif;--card-w:80px;--card-h:118px;--card-radius:6px}*,:before,:after{box-sizing:border-box;margin:0;padding:0}body{font-family:var(--font-sans);background-color:var(--bg-dark);color:#f3f0e6;background-image:radial-gradient(circle at 50% 20%,#16653426 0%,#0000 60%),radial-gradient(circle at 10% 80%,#b4530914 0%,#0000 40%),linear-gradient(#120f0c 0%,#080706 100%);background-attachment:fixed;min-height:100dvh;overflow-x:hidden}body.in-game-body{touch-action:manipulation;width:100%;position:fixed;height:100dvh!important;max-height:100dvh!important;overflow:hidden!important}.app-root{flex-direction:column;width:100%;min-height:100dvh;display:flex}.app-root.playing-mode{height:100dvh;max-height:100dvh;overflow:hidden!important}.main-content{flex-direction:column;flex:1;min-height:0;display:flex}.main-content.in-lobby{height:auto;min-height:calc(100vh - 56px);overflow:hidden auto}.main-content.in-game{flex:1;height:100%;min-height:0;max-height:100%;overflow:hidden!important}.lobby-container{box-sizing:border-box;width:100%;max-width:1200px;margin:0 auto;padding:1.5rem 1.5rem 3rem}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:#14110e}::-webkit-scrollbar-thumb{background:#3c2f24;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--gold-primary)}.navbar-header{z-index:100;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid var(--border-wood);background:#0f0d0beb;position:sticky;top:0;box-shadow:0 4px 20px #00000080}.navbar-container{justify-content:space-between;align-items:center;max-width:1300px;margin:0 auto;padding:.75rem 1.5rem;display:flex}.navbar-brand{cursor:pointer;align-items:center;gap:.75rem;display:flex}.brand-logo-icon{filter:drop-shadow(0 0 8px #e5b33880);font-size:1.8rem}.brand-text{flex-direction:column;display:flex}.brand-title-wrap{align-items:center;gap:.45rem;display:inline-flex}.brand-title{font-family:var(--font-serif);letter-spacing:1.5px;background:linear-gradient(135deg, #fff 0%, var(--gold-primary) 60%, #b8860b 100%);-webkit-text-fill-color:transparent;-webkit-background-clip:text;font-size:1.35rem;font-weight:800}.flag-paraguay-badge{vertical-align:middle;filter:drop-shadow(0 2px 5px #00000073);-webkit-user-select:none;user-select:none;justify-content:center;align-items:center;line-height:1;transition:transform .2s cubic-bezier(.34,1.56,.64,1);display:inline-flex}.flag-paraguay-badge:hover{transform:scale(1.12)}.flag-paraguay-svg{border-radius:2.5px;width:23px;height:15.3px;display:block}.brand-flag .flag-paraguay-svg{width:22px;height:14.6px}.hero-title-flag{vertical-align:middle;margin-left:.5rem}.hero-title-flag .flag-paraguay-svg{width:32px;height:21.3px}.brand-subtitle{letter-spacing:2px;color:#a89f91;text-transform:uppercase;font-size:.65rem;font-weight:600}.navbar-controls{align-items:center;gap:1rem;display:flex}.navbar-icon-btn{color:#f3f0e6;cursor:pointer;background:#231d17;border:1px solid #3d3126;border-radius:50%;justify-content:center;align-items:center;width:40px;height:40px;font-size:1.1rem;transition:all .2s;display:flex}.navbar-icon-btn:hover{border-color:var(--gold-primary);background:#332a20;transform:scale(1.05)}.navbar-leave-btn{color:#ffc9c9;cursor:pointer;background:#3b1812;border:1px solid #6b261b;border-radius:6px;padding:.45rem .9rem;font-size:.85rem;font-weight:600;transition:all .2s}.navbar-leave-btn:hover{background:#501d14;border-color:#ef4444}.navbar-login-btn{border:1px solid var(--border-gold);color:#1a0f02;cursor:pointer;background:linear-gradient(135deg,#a16207 0%,#ca8a04 100%);border-radius:6px;padding:.5rem 1.1rem;font-size:.85rem;font-weight:700;transition:all .2s;box-shadow:0 2px 10px #ca8a044d}.navbar-login-btn:hover{filter:brightness(1.1);transform:translateY(-1px)}.user-profile-badge{border:1px solid var(--border-wood);background:#1c1813;border-radius:30px;align-items:center;gap:.65rem;padding:.35rem .75rem;display:flex}.user-avatar-circle{border:1px solid var(--border-gold);background:#2a221a;border-radius:50%;justify-content:center;align-items:center;width:32px;height:32px;font-size:1.3rem;display:flex}.user-info-text{flex-direction:column;display:flex}.user-name-display{color:#f7ecd5;white-space:nowrap;text-overflow:ellipsis;max-width:180px;font-size:.85rem;font-weight:700;overflow:hidden}.login-btn-full{display:inline}.login-btn-compact{display:none}.in-game-header{background:#0c0a08f5;border-bottom:1px solid #2d2319;box-shadow:0 2px 10px #00000080}.in-game-header .navbar-container{min-height:40px;padding:.3rem .85rem}.in-game-header .brand-title{font-size:1.1rem}.in-game-header .brand-flag .flag-paraguay-svg{width:19px;height:12.6px}.in-game-header .brand-logo-icon{font-size:1.25rem}.in-game-header .navbar-leave-btn{background:#3b1611;border-color:#632217;align-items:center;gap:.3rem;padding:.25rem .65rem;font-size:.78rem;display:inline-flex}.in-game-header .navbar-icon-btn{width:30px;height:30px;font-size:.85rem}.in-game-user-badge{background:#1c1813e6;padding:.2rem .65rem}.in-game-user-badge .user-avatar-circle{width:26px;height:26px;font-size:.95rem}.in-game-user-badge .user-name-display{max-width:200px;font-size:.82rem}.user-wins-display{color:var(--gold-primary);font-size:.7rem;font-weight:600}.user-guest-tag{color:#9ca3af;font-size:.65rem}.user-logout-btn{color:#9ca3af;cursor:pointer;background:0 0;border:none;border-radius:4px;padding:.2rem .4rem;font-size:.75rem}.user-logout-btn:hover{color:#ef4444;background:#ef44441a}.user-login-cta-btn{border:1px solid var(--gold-primary);color:var(--gold-primary);cursor:pointer;white-space:nowrap;background:#e5b33826;border-radius:6px;padding:.25rem .65rem;font-size:.72rem;font-weight:700;transition:all .2s}.user-login-cta-btn:hover{background:var(--gold-primary);color:#120e0b}.lobby-guest-banner{color:#e5ded0;background:#e5b33814;border:1px dashed #e5b33866;border-radius:10px;justify-content:space-between;align-items:center;gap:1rem;margin-top:1rem;padding:.6rem 1.25rem;font-size:.85rem;display:flex}.lobby-guest-login-btn{background:var(--gold-primary);color:#120e0b;cursor:pointer;border:none;border-radius:6px;padding:.35rem .85rem;font-size:.8rem;font-weight:700;transition:transform .15s,background .2s}.lobby-guest-login-btn:hover{background:#f3c95a;transform:translateY(-1px)}.lobby-container{max-width:1200px;margin:0 auto;padding:2rem 1.5rem 4rem}.lobby-hero{border:1px solid var(--border-wood);text-align:center;background:radial-gradient(circle,#14532d4d 0%,#0f0d0bf2 100%),url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23221b14' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");border-radius:16px;margin-bottom:2rem;padding:3.5rem 2rem;position:relative;overflow:hidden;box-shadow:0 10px 40px #0009,inset 0 0 80px #000c}.lobby-hero:after{content:"";background:linear-gradient(90deg, transparent, var(--gold-primary), transparent);height:2px;position:absolute;top:0;left:0;right:0}.hero-title{font-family:var(--font-serif);letter-spacing:2px;background:linear-gradient(#fff9e6 0%,#dfb141 65%,#a17013 100%);-webkit-text-fill-color:transparent;filter:drop-shadow(0 2px 10px #000000b3);-webkit-background-clip:text;margin-bottom:1rem;font-size:2.8rem;font-weight:900}.hero-tagline{color:#d1c7b7;max-width:680px;margin:0 auto 2.2rem;font-size:1.15rem;line-height:1.6}.hero-actions-row{flex-wrap:wrap;justify-content:center;align-items:center;gap:1.25rem;display:flex}.hero-btn-primary{color:#fff;cursor:pointer;background:linear-gradient(135deg,#16a34a 0%,#15803d 100%);border:1px solid #4ade80;border-radius:10px;align-items:center;gap:.5rem;padding:.95rem 1.8rem;font-size:1.05rem;font-weight:700;transition:all .25s;display:flex;box-shadow:0 6px 20px #16a34a59}.hero-btn-primary:hover{filter:brightness(1.1);transform:translateY(-2px);box-shadow:0 10px 25px #16a34a80}.hero-btn-secondary{border:1px solid var(--gold-primary);color:#fffbeb;cursor:pointer;background:linear-gradient(135deg,#b45309 0%,#854d0e 100%);border-radius:10px;padding:.95rem 1.8rem;font-size:1.05rem;font-weight:700;transition:all .25s;box-shadow:0 6px 20px #b4530959}.hero-btn-secondary:hover{filter:brightness(1.1);transform:translateY(-2px)}.quick-join-bar{border:1px solid var(--border-wood);background:#181410;border-radius:12px;margin-bottom:2.5rem;padding:1.25rem 1.75rem;box-shadow:0 4px 16px #0000004d}.quick-join-form{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1.5rem;display:flex}.quick-join-form label{color:#f3eedf;font-size:1rem;font-weight:600}.input-with-btn{flex:1;gap:.5rem;max-width:400px;display:flex}.input-with-btn input{color:#fff;letter-spacing:2px;background:#0f0d0b;border:1px solid #3c2f24;border-radius:8px;outline:none;flex:1;padding:.65rem 1rem;font-size:1rem;font-weight:700;transition:border-color .2s}.input-with-btn input:focus{border-color:var(--gold-primary)}.input-with-btn button{background:var(--gold-primary);color:#1a0f02;cursor:pointer;border:none;border-radius:8px;padding:.65rem 1.2rem;font-weight:700;transition:all .2s}.input-with-btn button:hover:not(:disabled){background:var(--gold-hover)}.input-with-btn button:disabled{opacity:.5;cursor:not-allowed}.lobby-tabs-nav{border-bottom:1px solid var(--border-wood);gap:.5rem;margin-bottom:1.75rem;display:flex}.lobby-tab-btn{color:#a89f91;cursor:pointer;background:0 0;border:none;border-bottom:3px solid #0000;padding:.85rem 1.5rem;font-size:1rem;font-weight:600;transition:all .2s}.lobby-tab-btn:hover{color:#fff}.lobby-tab-btn.active{color:var(--gold-primary);border-bottom-color:var(--gold-primary)}.rooms-grid{grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:1.25rem;display:grid}.room-card{border:1px solid var(--border-wood);background:#191511;border-radius:12px;flex-direction:column;gap:1rem;padding:1.25rem;transition:all .2s;display:flex}.room-card:hover{border-color:var(--border-gold);transform:translateY(-2px);box-shadow:0 8px 24px #0006}.room-card-header{justify-content:space-between;align-items:center;display:flex}.room-host-badge{align-items:center;gap:.5rem;display:flex}.host-emoji{font-size:1.3rem}.host-name{color:#f7ecd5;font-size:.95rem;font-weight:700}.room-code-tag{color:var(--gold-primary);letter-spacing:1px;background:#2a221a;border:1px solid #47382a;border-radius:6px;padding:.2rem .55rem;font-size:.8rem;font-weight:700}.room-details{background:#120f0c;border-radius:8px;gap:1.5rem;padding:.65rem .9rem;display:flex}.detail-item{flex-direction:column;display:flex}.detail-label{color:#8c8273;text-transform:uppercase;font-size:.7rem}.detail-val{color:#f3eedf;font-size:.9rem;font-weight:700}.join-room-btn{color:#fff;cursor:pointer;background:linear-gradient(135deg,#15803d 0%,#166534 100%);border:1px solid #22c55e;border-radius:8px;padding:.65rem;font-size:.95rem;font-weight:700;transition:all .2s}.join-room-btn:hover{filter:brightness(1.15)}.empty-rooms-card{text-align:center;border:1px dashed var(--border-wood);background:#16120e;border-radius:16px;padding:4rem 2rem}.empty-icon{margin-bottom:1rem;font-size:3rem}.empty-rooms-card h3{color:#e5ded0;margin-bottom:.5rem;font-size:1.3rem}.empty-rooms-card p{color:#9c9284;margin-bottom:1.5rem}.create-room-inline-btn{background:var(--gold-primary);color:#1a0f02;cursor:pointer;border:none;border-radius:8px;padding:.75rem 1.5rem;font-weight:700}.leaderboard-table-card{border:1px solid var(--border-wood);background:#17130f;border-radius:12px;overflow:hidden}.leaderboard-table{border-collapse:collapse;text-align:left;width:100%}.leaderboard-table th{color:#c4b9a7;text-transform:uppercase;letter-spacing:1px;border-bottom:1px solid var(--border-wood);background:#201a14;padding:1rem 1.25rem;font-size:.8rem;font-weight:700}.leaderboard-table td{border-bottom:1px solid #221b14;padding:1rem 1.25rem;font-size:.95rem}.leaderboard-table tr:hover{background:#1e1913}.rank-num{font-size:1.1rem;font-weight:800}.player-cell{align-items:center;gap:.65rem;font-weight:700;display:flex}.table-avatar{font-size:1.2rem}.wins-col strong{color:#4ade80}.rules-grid{grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:1.5rem;display:grid}.rule-card{border:1px solid var(--border-wood);background:#17130f;border-radius:12px;padding:1.75rem}.rule-card h3{font-family:var(--font-serif);color:var(--gold-primary);border-bottom:1px solid #2b2118;margin-bottom:1.25rem;padding-bottom:.5rem;font-size:1.2rem}.hierarchy-list{flex-direction:column;gap:.5rem;padding-left:1.25rem;font-size:.9rem;display:flex}.rank-name{color:#f7ecd5;font-weight:700}.rule-card ul{color:#d6ccbe;flex-direction:column;gap:.65rem;padding-left:1.25rem;font-size:.9rem;line-height:1.5;display:flex}.game-table-screen{box-sizing:border-box;flex-direction:column;flex:1;gap:.35rem;width:100%;max-width:1440px;height:100%;min-height:0;max-height:100%;margin:0 auto;padding:.35rem .85rem;display:flex;overflow:hidden!important}.game-table-top-bar{border:1px solid var(--border-wood);background:#16120e;border-radius:8px;flex-shrink:0;justify-content:space-between;align-items:center;gap:.75rem;padding:.3rem .85rem;display:flex}.room-info-pill{align-items:center;gap:.75rem;font-size:.82rem;display:flex}.pill-code{color:var(--gold-primary);background:#231b14;border-radius:4px;padding:.2rem .45rem;font-weight:800}.pill-target,.pill-flor{color:#c9bea9;font-weight:600}.copy-code-mini-btn{color:#f3eedf;cursor:pointer;background:#2b2118;border:1px solid #4a3728;border-radius:4px;padding:.2rem .5rem;font-size:.72rem;font-weight:600;transition:all .2s}.copy-code-mini-btn:hover{border-color:var(--gold-primary);background:#3e3022}.recent-log-ticker{border-left:3px solid var(--gold-primary);background:#0006;border-radius:20px;align-items:center;gap:.5rem;padding:.25rem .75rem;font-size:.8rem;display:flex}.ticker-badge{color:var(--gold-primary);font-size:.72rem;font-weight:800}.ticker-text{color:#ece4d2}.table-main-layout{flex:1;grid-template-columns:190px 1fr 220px;align-items:stretch;gap:.65rem;height:100%;min-height:0;display:grid;overflow:hidden}.table-header-score-badge{border:1.5px solid var(--gold-primary);-webkit-user-select:none;user-select:none;background:#16120ef2;border-radius:20px;flex-shrink:0;align-items:center;gap:.45rem;padding:.2rem .65rem;display:flex;box-shadow:0 2px 8px #0009}.th-team-name{color:#f7ecd5;white-space:nowrap;text-overflow:ellipsis;max-width:80px;font-size:.78rem;font-weight:700;overflow:hidden}.th-score-num{font-size:.95rem;font-weight:900}.th-score-num.my-num{color:#4ade80}.th-score-num.opp-num{color:#f87171}.th-vs{color:#8c8273;font-size:.7rem;font-weight:700}.th-anotador-tag{color:var(--gold-primary);background:#e5b33833;border-radius:10px;margin-left:.25rem;padding:.1rem .45rem;font-size:.68rem;font-weight:700}@media (width<=1100px){.table-main-layout{grid-template-columns:200px 1fr}.table-right-sidebar{grid-column:1/-1}}@media (width<=880px){.game-table-screen{gap:.2rem;height:100%;max-height:100%;padding:.15rem .35rem;overflow:hidden!important}.game-table-top-bar{gap:.35rem;height:30px;min-height:28px;padding:.2rem .45rem}.room-info-pill{gap:.35rem;font-size:.72rem}.pill-code{padding:.1rem .3rem}.table-main-layout{flex-direction:column;flex:1;gap:0;height:100%;min-height:0;display:flex;overflow:hidden!important}.table-left-sidebar{display:none!important}.table-center-felt{border-width:3px;border-radius:12px;flex-direction:column;flex:1;justify-content:space-between;width:100%;height:100%;min-height:0;padding:.25rem .4rem;display:flex;overflow:hidden!important}.table-right-sidebar{z-index:80;position:fixed;bottom:6px;right:6px}.table-right-sidebar .chat-toggle-floating-btn{padding:.35rem .65rem;font-size:.72rem}.recent-log-ticker{white-space:nowrap;text-overflow:ellipsis;max-width:130px;padding:.15rem .45rem;font-size:.72rem;overflow:hidden}.ticker-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.card-wrapper.size-normal{border-radius:6px;width:58px;height:84px}.card-wrapper.size-normal .card-num{font-size:.92rem}.card-wrapper.size-normal .pip svg{width:18px;height:18px}.card-wrapper.size-normal .card-corner{line-height:.9}.card-wrapper.size-normal .card-rank-tag{font-size:.55rem}.card-wrapper.size-small{border-radius:4px;width:36px;height:50px}.card-wrapper.size-small .card-num{font-size:.75rem}.opp-hand-cards{gap:.25rem}.opp-hand-cards .card-wrapper.size-small{width:26px;height:38px}.table-mat-center{margin:.1rem 0}.tricks-mat-row{border-radius:8px;gap:.5rem;padding:.25rem .5rem}.trick-slot-box{gap:.1rem;width:auto;position:relative}.trick-cards-display{flex-direction:column;justify-content:center;align-items:center;gap:3px;width:auto;height:auto;display:flex}.trick-card-spot{justify-content:center;align-items:center;width:auto;height:auto;display:flex}.trick-cards-display .card-wrapper.size-small,.trick-cards-display .empty-card-slot{border-radius:5px;width:46px;height:66px}.trick-cards-display .card-wrapper.size-small .card-num{font-size:.88rem}.trick-winner-pill{margin-top:1px;padding:.05rem .35rem;font-size:.55rem}.mini-match-board{width:48px;padding:.2rem .25rem;top:48px;right:8px}.table-envido-onmat{gap:.1rem;margin-bottom:.15rem;padding:.15rem .45rem}.envido-mat-header{font-size:.66rem}.envido-mat-content{font-size:.68rem}.opp-area{justify-content:space-between;align-items:center;width:100%;display:flex}.player-badge{border-radius:20px;gap:.35rem;padding:.2rem .45rem}.avatar-wrap{width:26px;height:26px}.badge-avatar{font-size:.95rem}.badge-name{font-size:.74rem}.badge-points{font-size:.68rem}.opp-envido-badge{padding:.1rem .35rem;font-size:.65rem}.thinking-pill{padding:.1rem .4rem;font-size:.65rem}.my-area{flex-direction:column;align-items:center;gap:.15rem;width:100%;display:flex}.my-hand-cards{gap:.4rem;margin-bottom:.1rem}.my-meta-bar{justify-content:space-between;align-items:center;width:100%;padding:0 .15rem;display:flex}.my-badge{gap:.35rem;padding:.15rem .45rem}.my-badge .avatar-wrap{width:24px;height:24px}.my-badge .badge-avatar{font-size:.88rem}.my-badge .badge-name{font-size:.72rem}.my-badge .badge-points{font-size:.68rem}.my-envido-badge{border-radius:12px;gap:.25rem;padding:.12rem .45rem;font-size:.68rem}.my-envido-badge .envido-val{font-size:.82rem}.action-panel-bar{border-radius:8px;gap:.15rem;width:100%;padding:.2rem .35rem}.turn-status-badge{margin-bottom:.08rem;line-height:1}.your-turn-pill{border-radius:10px;padding:.12rem .55rem;font-size:.72rem}.opp-turn-pill{border-radius:10px;padding:.12rem .45rem;font-size:.68rem}.action-buttons-group{flex-wrap:wrap;justify-content:center;align-items:center;gap:.25rem;display:flex}.truco-btn{border-radius:5px;min-height:28px;padding:.25rem .45rem;font-size:.72rem}.action-prompt-title{font-size:.78rem}}@media (width<=500px){.recent-log-ticker{display:none}.card-wrapper.size-normal{width:55px;height:80px}.th-team-name{max-width:65px}.th-anotador-tag{display:none}.opp-hand-cards .card-wrapper.size-small{width:24px;height:34px}}.scoreboard-slate{background:#141816;border:4px solid #3d2c1e;border-radius:10px;padding:.45rem .6rem;position:relative;box-shadow:0 4px 15px #000000b3,inset 0 0 25px #0009}.scoreboard-header{text-align:center;border-bottom:1px dashed #fff3;margin-bottom:.35rem;padding-bottom:.25rem}.slate-chalk-title{font-family:var(--font-serif);letter-spacing:1.5px;color:#fffdec;text-shadow:0 0 2px #ffffff80;font-size:.82rem;font-weight:800}.slate-target-tag{color:var(--gold-primary);margin-top:.1rem;font-size:.68rem;font-weight:700}.scoreboard-grid{grid-template-columns:1fr 2px 1fr;gap:.45rem;display:grid}.chalk-divider{background:repeating-linear-gradient(#ffffff4d 0 6px,#0000 6px 12px)}.score-player-col{flex-direction:column;align-items:center;display:flex}.score-player-name{color:#f7ecd5;text-align:center;white-space:nowrap;text-overflow:ellipsis;max-width:80px;margin-bottom:.15rem;font-size:.78rem;font-weight:700;overflow:hidden}.score-total-badge{color:#fef3c7;text-shadow:0 0 4px #f59e0b99;margin-bottom:.3rem;font-size:1.1rem;font-weight:900}.match-section{flex-direction:column;align-items:center;gap:.15rem;width:100%;margin-bottom:.35rem;display:flex}.section-title{letter-spacing:.5px;color:#a39783;font-size:.6rem;font-weight:800}.boxes-container{flex-direction:column;align-items:center;gap:.25rem;display:flex}.match-box{background:#0003;border-radius:3px;width:25px;height:25px;position:relative}.matchstick{background:#fef08a;border-radius:1px;position:absolute;box-shadow:0 0 2px #fef08a80}.matchstick:after{content:"";background:#dc2626;border-radius:50%;position:absolute}.match-left{width:2px;top:2px;bottom:2px;left:2px}.match-left:after{width:3.5px;height:3.5px;top:-1px;left:-1px}.match-top{height:2px;top:2px;left:2px;right:2px}.match-top:after{width:3.5px;height:3.5px;top:-1px;right:-1px}.match-right{width:2px;top:2px;bottom:2px;right:2px}.match-right:after{width:3.5px;height:3.5px;bottom:-1px;right:-1px}.match-bottom{height:2px;bottom:2px;left:2px;right:2px}.match-bottom:after{width:3.5px;height:3.5px;bottom:-1px;left:-1px}.match-diag{transform-origin:0 0;background:#facc15;width:29px;height:2px;top:2px;left:2px;transform:rotate(45deg)}.match-diag:after{width:3.5px;height:3.5px;top:-1px;right:0}.mini-match-board{z-index:15;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);cursor:pointer;-webkit-user-select:none;user-select:none;background:#121614f0;border:1.5px solid #4a3824;border-radius:8px;outline:1px solid #dfb1414d;flex-direction:column;align-items:center;width:52px;padding:.25rem .35rem;transition:transform .15s,border-color .15s,box-shadow .15s;display:flex;position:absolute;top:60px;right:14px;box-shadow:0 4px 16px #000000b3,inset 0 0 10px #0009}.mini-match-board:hover{border-color:var(--gold-primary);transform:scale(1.04);box-shadow:0 6px 20px #000c,0 0 8px #e5b33866}.mini-board-header{justify-content:center;align-items:center;width:100%;margin-bottom:2px;display:flex}.mini-chalk-title{letter-spacing:.6px;color:#dfb141;text-shadow:0 1px 2px #000c;font-size:.48rem;font-weight:800}.mini-board-players-row{justify-content:space-between;align-items:center;width:100%;padding:0 1px;display:flex}.mini-player-col{flex-direction:column;align-items:center;width:22px;display:flex}.mini-p-label{letter-spacing:.3px;text-transform:uppercase;font-size:.44rem;font-weight:800;line-height:1}.mini-p-label.opp{color:#fca5a5}.mini-p-label.me{color:#86efac}.mini-p-pts{color:#fff;font-size:.68rem;font-weight:800;line-height:1.1}.mini-chalk-vsep{background:#ffffff2e;align-self:stretch;width:1px;margin:0 1px}.mini-section-label{letter-spacing:.4px;color:#a39783;text-align:center;border-top:1px dashed #ffffff26;width:100%;margin:2px 0 1px;padding-top:1px;font-size:.4rem;font-weight:800;line-height:1}.mini-boxes-row{justify-content:space-between;align-items:center;width:100%;padding:0 1px;display:flex}.mini-boxes-col{flex-direction:column;align-items:center;gap:2px;width:22px;display:flex}.match-box.mini{box-sizing:border-box;background:#00000059;border:1px dashed #ffffff1f;border-radius:2px;width:17px;height:17px;position:relative}.match-box.mini .matchstick{background:#fef08a;border-radius:1px;position:absolute;box-shadow:0 0 2px #fef08a99}.match-box.mini .matchstick:after{content:"";background:#dc2626;border-radius:50%;width:2.5px;height:2.5px;position:absolute}.match-box.mini .match-left{width:1.5px;top:1px;bottom:1px;left:1px}.match-box.mini .match-left:after{top:-.5px;left:-.5px}.match-box.mini .match-top{height:1.5px;top:1px;left:1px;right:1px}.match-box.mini .match-top:after{top:-.5px;right:-.5px}.match-box.mini .match-right{width:1.5px;top:1px;bottom:1px;right:1px}.match-box.mini .match-right:after{bottom:-.5px;right:-.5px}.match-box.mini .match-bottom{height:1.5px;bottom:1px;left:1px;right:1px}.match-box.mini .match-bottom:after{bottom:-.5px;left:-.5px}.match-box.mini .match-diag{transform-origin:0 0;background:#facc15;width:18px;height:1.5px;top:1.5px;left:1.5px;transform:rotate(45deg)}.match-box.mini .match-diag:after{top:-.5px;right:0}.scoreboard-footer{text-align:center;color:#8c8273;border-top:1px dashed #ffffff26;margin-top:.3rem;padding-top:.3rem;font-size:.68rem}.hand-info-card{border:1px solid var(--border-wood);background:#17130f;border-radius:8px;flex-direction:column;gap:.2rem;margin-top:.3rem;padding:.35rem .6rem;font-size:.75rem;display:flex}.hand-info-row{justify-content:space-between;display:flex}.hand-info-row span{color:#9c9284}.hand-info-row strong{color:var(--gold-primary)}.table-center-felt{outline:2px solid var(--felt-gold-trim);background:radial-gradient(circle,#155e38 0%,#0c3b24 55%,#052114 100%);border:6px solid #302014;border-radius:18px;flex-direction:column;flex:1;justify-content:space-between;height:100%;min-height:0;padding:.5rem .85rem;display:flex;position:relative;overflow:hidden;box-shadow:0 8px 30px #000c,inset 0 0 60px #000000b3,inset 0 0 8px #dfb1414d}.truco-shout-balloon,.criollo-shout-balloon{z-index:50;color:#1a0f02;background:#fffbeb;border:3px solid #1a0f02;border-radius:20px;align-items:center;gap:.5rem;padding:.8rem 1.75rem;font-size:1.25rem;font-weight:800;animation:.35s cubic-bezier(.175,.885,.32,1.275) shoutPop;display:flex;position:absolute;top:35%;left:50%;transform:translate(-50%,-50%);box-shadow:0 8px 30px #0009}.truco-shout-balloon .shout-sender,.criollo-shout-balloon .shout-sender{color:#b45309;font-size:.9rem}@keyframes shoutPop{0%{opacity:0;transform:translate(-50%,-50%)scale(.4)}to{opacity:1;transform:translate(-50%,-50%)scale(1)}}.player-badge{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#0a0806bf;border:2px solid #ffffff26;border-radius:40px;align-items:center;gap:.85rem;padding:.5rem 1rem;transition:all .3s;display:flex}.player-badge.is-turn{border-color:var(--gold-primary);background:#14100ae6;box-shadow:0 0 16px #e5b33899}.avatar-wrap{border:2px solid var(--border-gold);background:#2a221a;border-radius:50%;justify-content:center;align-items:center;width:42px;height:42px;display:flex;position:relative}.badge-avatar{font-size:1.4rem}.mano-crown{filter:drop-shadow(0 0 4px gold);font-size:1rem;position:absolute;top:-8px;right:-8px}.badge-meta{flex-direction:column;display:flex}.badge-name{color:#f7ecd5;font-size:.95rem;font-weight:700}.badge-points{color:var(--gold-primary);font-size:.8rem;font-weight:800}.thinking-pill{color:#fff;background:#b45309;border-radius:12px;padding:.2rem .6rem;font-size:.75rem;font-weight:700;animation:1.5s infinite pulse}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.opp-area{justify-content:space-between;align-items:center;width:100%;display:flex}.opp-hand-cards{gap:.5rem;display:flex}.table-mat-center{flex-direction:column;justify-content:center;align-items:center;margin:.25rem 0;display:flex}.table-envido-onmat{-webkit-user-select:none;user-select:none;background:#0e121af0;border:1.5px solid #38bdf8;border-radius:8px;flex-direction:column;gap:.2rem;width:100%;max-width:440px;margin-bottom:.3rem;padding:.3rem .65rem;transition:opacity .5s,transform .5s;animation:.25s ease-out slideDown;display:flex;box-shadow:0 4px 14px #0009,0 0 10px #38bdf840}.table-envido-onmat.envido-fading-out{opacity:0;pointer-events:none;transform:translateY(-8px)scale(.96)}.table-envido-onmat.pending-glow{background:#1c140af5;border-color:#f59e0b;animation:1.2s infinite alternate pulseEnvido;box-shadow:0 4px 15px #0009,0 0 16px #f59e0b80}@keyframes pulseEnvido{0%{border-color:#f59e0b;box-shadow:0 0 6px #f59e0b4d}to{border-color:#fbbf24;box-shadow:0 0 18px #fbbf24b3}}.table-envido-onmat.refused-badge{background:#14181ee6;border-color:#64748b;box-shadow:0 3px 10px #00000080}.envido-mat-header{justify-content:space-between;align-items:center;gap:.5rem;font-size:.72rem;display:flex}.envido-dismiss-btn{color:#94a3b8;cursor:pointer;background:#ffffff14;border:1px solid #ffffff26;border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;padding:.1rem .35rem;font-size:.72rem;font-weight:700;line-height:1;transition:all .15s;display:flex}.envido-dismiss-btn:hover{color:#fff;background:#ef44444d;border-color:#ef4444}.envido-mat-tag{letter-spacing:.8px;color:#38bdf8;font-size:.7rem;font-weight:800}.pending-glow .envido-mat-title{color:#fbbf24;letter-spacing:.5px;font-size:.72rem;font-weight:800}.envido-pulse-dot{background:#f59e0b;border-radius:50%;width:6px;height:6px;animation:1s infinite pulse;display:inline-block}.envido-mat-content{color:#f1f5f9;justify-content:space-between;align-items:center;font-size:.75rem;display:flex}.envido-call-name{color:#fbbf24;font-size:.82rem;font-weight:800}.envido-stake-badge{color:#cbd5e1;background:#0006;border-radius:4px;padding:.12rem .4rem;font-size:.68rem}.envido-mat-winner{color:#4ade80;font-size:.72rem;font-weight:700}.envido-mat-scores-row{background:#00000059;border-radius:5px;justify-content:center;align-items:center;gap:.5rem;padding:.2rem .45rem;display:flex}.envido-score-pill{border-radius:4px;align-items:center;gap:.25rem;padding:.1rem .35rem;font-size:.72rem;display:flex}.envido-score-pill.winner{background:#16a34a4d;border:1px solid #4ade80}.pill-pname{color:#94a3b8;font-weight:600}.pill-pval{color:#f8fafc;font-weight:800}.pill-pcards{color:#93c5fd;opacity:.9;font-size:.65rem}.envido-vs-tag{color:var(--gold-primary);font-size:.68rem;font-weight:800}.envido-mat-refused-row{color:#cbd5e1;text-align:center;font-size:.72rem}.table-flor-onmat{-webkit-user-select:none;user-select:none;z-index:25;background:#160d14f2;border:2px solid #f43f5e;border-radius:10px;flex-direction:column;gap:.35rem;width:100%;max-width:480px;margin-bottom:.35rem;padding:.4rem .75rem;transition:opacity .5s,transform .5s;animation:.25s ease-out slideDown;display:flex;box-shadow:0 4px 18px #0009,0 0 16px #f43f5e59}.table-flor-onmat.flor-fading-out{opacity:0;pointer-events:none;transform:translateY(-8px)scale(.96)}.table-flor-onmat.pending-glow{background:#230e1cf5;border-color:#ec4899;animation:1.2s infinite alternate pulseFlor;box-shadow:0 4px 15px #0009,0 0 18px #ec489999}@keyframes pulseFlor{0%{border-color:#ec4899;box-shadow:0 0 8px #ec489966}to{border-color:#fb7185;box-shadow:0 0 20px #fb7185cc}}.table-flor-onmat.refused-badge{background:#14181ee6;border-color:#64748b;box-shadow:0 3px 10px #00000080}.flor-mat-header{justify-content:space-between;align-items:center;gap:.5rem;font-size:.75rem;display:flex}.flor-title-group{align-items:center;gap:.35rem;display:flex}.flor-badge-icon{font-size:.9rem}.flor-mat-tag{letter-spacing:.8px;color:#fb7185;font-size:.72rem;font-weight:800}.flor-call-pill{color:#ffe4e6;background:#f43f5e40;border:1px solid #f43f5e;border-radius:4px;padding:.1rem .35rem;font-size:.65rem;font-weight:700}.flor-mat-winner{color:#4ade80;font-size:.75rem;font-weight:700}.flor-dismiss-btn{color:#94a3b8;cursor:pointer;background:#ffffff14;border:1px solid #ffffff26;border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;padding:.1rem .35rem;font-size:.72rem;font-weight:700;line-height:1;transition:all .15s;display:flex}.flor-dismiss-btn:hover{color:#fff;background:#ef44444d;border-color:#ef4444}.flor-pulse-dot{background:#ec4899;border-radius:50%;width:6px;height:6px;animation:1s infinite pulse;display:inline-block}.pending-glow .flor-mat-title{color:#f472b6;letter-spacing:.5px;font-size:.72rem;font-weight:800}.flor-stake-badge{color:#fbcfe8;background:#0006;border:1px solid #ec48994d;border-radius:4px;padding:.12rem .4rem;font-size:.68rem}.flor-mat-content{color:#f1f5f9;justify-content:space-between;align-items:center;font-size:.75rem;display:flex}.flor-call-name{color:#fb7185;font-size:.82rem;font-weight:800}.flor-mat-refused-row{color:#cbd5e1;text-align:center;font-size:.72rem}.flor-cards-showcase{background:#00000073;border-radius:8px;flex-wrap:wrap;justify-content:center;align-items:center;gap:.6rem;padding:.3rem;display:flex}.flor-player-showcase{background:#ffffff0a;border:1px solid #ffffff1a;border-radius:8px;flex-direction:column;align-items:center;gap:.3rem;padding:.35rem .6rem;display:flex}.flor-player-showcase.winner-flor-showcase{background:#f43f5e26;border:1.5px solid #f43f5e;box-shadow:0 0 12px #f43f5e59}.flor-player-header{align-items:center;gap:.4rem;font-size:.75rem;display:flex}.flor-pname{color:#f1f5f9;font-weight:700}.flor-score-chip{color:#fecdd3;background:#f43f5e59;border:1px solid #f43f5e99;border-radius:4px;padding:.08rem .4rem;font-size:.7rem;font-weight:800}.flor-crown-tag{color:#fbbf24;font-size:.7rem;font-weight:800}.flor-cards-strip{justify-content:center;align-items:center;gap:.4rem;display:flex}.flor-mini-card{filter:drop-shadow(0 3px 6px #000000b3);transition:transform .15s;transform:scale(.9)}.flor-mini-card:hover{z-index:10;transform:scale(1.05)translateY(-3px)}.opp-flor-badge{background:#f43f5e33;border:1px solid #f43f5e80;border-radius:12px;align-items:center;gap:.25rem;padding:.1rem .45rem;font-size:.72rem;transition:all .2s;display:flex}.opp-flor-badge:hover{background:#f43f5e59;border-color:#f43f5e;transform:scale(1.04)}.opp-flor-label{color:#fb7185;font-weight:700}.opp-flor-val{color:#fff;font-weight:800}.tricks-mat-row{background:#00000059;border:2px dashed #dfb14166;border-radius:12px;gap:.65rem;padding:.35rem .65rem;display:flex;box-shadow:inset 0 0 15px #00000080}.trick-slot-box{flex-direction:column;align-items:center;gap:.2rem;width:auto;display:flex;position:relative}.trick-cards-display{flex-direction:column;justify-content:center;align-items:center;gap:4px;display:flex}.trick-card-spot{justify-content:center;align-items:center;display:flex}.trick-cards-display .card-wrapper.size-small,.trick-cards-display .empty-card-slot{border-radius:6px;width:56px;height:80px}.trick-cards-display .card-wrapper.size-small .card-num{font-size:.95rem}.card-wrapper.size-small .card-rank-tag,.card-wrapper.size-small .card-special-badge{display:none!important}.empty-card-slot{background:#0003;border:1.5px dashed #ffffff40;border-radius:6px;width:56px;height:80px}.trick-winner-pill{letter-spacing:.5px;border-radius:8px;padding:.15rem .45rem;font-size:.62rem;font-weight:800}.trick-winner-pill.won{color:#fff;background:#15803d}.trick-winner-pill.lost{color:#fff;background:#b91c1c}.trick-winner-pill.tie{color:#fff;background:#b45309}.my-area{flex-direction:column;align-items:center;gap:.25rem;width:100%;display:flex}.my-hand-cards{justify-content:center;gap:.65rem;margin-bottom:.1rem;display:flex}.my-meta-bar{justify-content:space-between;align-items:center;width:100%;display:flex}.my-envido-badge{background:#0f172ad9;border:1px solid #38bdf8;border-radius:16px;align-items:center;gap:.4rem;padding:.25rem .65rem;font-size:.78rem;display:flex}.envido-label{color:#94a3b8}.envido-val{color:#38bdf8;font-size:.95rem;font-weight:800}.flor-tag{color:#fff;background:#a855f7;border-radius:5px;padding:.1rem .4rem;font-size:.65rem;font-weight:800}.card-wrapper{width:var(--card-w);height:var(--card-h);border-radius:var(--card-radius);-webkit-user-select:none;user-select:none;box-sizing:border-box;transition:transform .2s cubic-bezier(.175,.885,.32,1.275),box-shadow .2s;position:relative;overflow:hidden!important}.card-wrapper.size-small{width:36px;height:52px}.card-wrapper.size-normal{width:78px;height:114px}.card-face{box-sizing:border-box;background:#fff;border:1.5px solid #2a2015;justify-content:center;align-items:center;padding:0;display:flex;box-shadow:0 4px 12px #00000073;overflow:hidden!important}.card-face.is-high-card{border-color:#dfb141;box-shadow:0 4px 16px #e5b33866}.card-face.playable{cursor:pointer}.card-face.playable:hover{z-index:20;transform:translateY(-16px)scale(1.06);box-shadow:0 16px 30px #000000a6,0 0 16px #e5b33899}.card-image-content{object-fit:fill;-webkit-user-select:none;user-select:none;pointer-events:none;width:100%;height:100%;display:block}.card-fallback-display{color:#111;background:#fff;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;font-weight:700;display:flex}.card-special-badge{color:#451a03;letter-spacing:.5px;z-index:2;text-shadow:none;background:#eab308f2;border-radius:3px;padding:1px 4px;font-size:.52rem;font-weight:800;position:absolute;top:3px;right:4px;box-shadow:0 1px 4px #00000080}.card-wrapper.size-small .card-special-badge{padding:.5px 2.5px;font-size:.42rem;top:2px;right:2px}.card-rank-tag{color:#374151;z-index:2;background:#ffffffd9;border-radius:2px;padding:0 3px;font-size:.5rem;font-weight:700;line-height:1.1;position:absolute;bottom:2px;left:3px}.card-wrapper.size-small .card-rank-tag{display:none!important}.card-back{box-sizing:border-box;background:#14110d;border:1.5px solid #fff3;justify-content:center;align-items:center;padding:0;display:flex;box-shadow:0 4px 10px #00000080;overflow:hidden!important}.action-panel-bar{border:2px solid var(--border-gold);background:#0e0b08f2;border-radius:10px;flex-direction:column;gap:.3rem;width:100%;padding:.35rem .75rem;display:flex;box-shadow:0 4px 15px #000000b3}.action-panel-bar.urgent-response{background:#230c0af2;border-color:#ef4444;animation:1.2s infinite alternate urgentGlow}@keyframes urgentGlow{0%{box-shadow:0 0 15px #ef44444d}to{box-shadow:0 0 30px #ef4444cc}}.action-prompt-title{text-align:center;color:#fef2f2;letter-spacing:.5px;font-size:.88rem;font-weight:800}.turn-status-badge{text-align:center}.your-turn-pill{color:#4ade80;font-size:.78rem;font-weight:700}.opp-turn-pill{color:#9ca3af;font-size:.78rem;font-weight:600}.action-buttons-group{flex-wrap:wrap;justify-content:center;gap:.35rem;display:flex}.truco-btn{font-family:var(--font-sans);cursor:pointer;border:none;border-radius:6px;padding:.32rem .65rem;font-size:.78rem;font-weight:700;transition:all .2s;box-shadow:0 2px 6px #0006}.truco-btn:hover:not(:disabled){filter:brightness(1.15);transform:translateY(-2px)}.truco-btn:disabled{opacity:.35;cursor:not-allowed;transform:none}.btn-accept{color:#fff;background:linear-gradient(135deg,#15803d 0%,#166534 100%);border:1px solid #4ade80}.btn-refuse{color:#fff;background:linear-gradient(135deg,#991b1b 0%,#7f1d1d 100%);border:1px solid #f87171}.btn-raise{color:#fff;background:linear-gradient(135deg,#b45309 0%,#92400e 100%);border:1px solid #f59e0b}.btn-raise.danger{background:linear-gradient(135deg,#b91c1c 0%,#881337 100%);border:1px solid #fda4af}.btn-envido-first{color:#fff;background:linear-gradient(135deg,#1d4ed8 0%,#1e40af 100%);border:1px solid #60a5fa}.btn-envido,.btn-real-envido,.btn-falta-envido{color:#eff6ff;background:#1e3a8a;border:1px solid #3b82f6}.btn-truco{color:#fff;background:linear-gradient(135deg,#b91c1c 0%,#991b1b 100%);border:1px solid #f87171}.btn-retruco,.btn-vale-cuatro{color:#fff;background:linear-gradient(135deg,#c2410c 0%,#9a3412 100%);border:1px solid #fb923c}.btn-flor{color:#fff;background:linear-gradient(135deg,#7e22ce 0%,#6b21a8 100%);border:1px solid #c084fc}.btn-fold{color:#d1c7b7;background:#2a221a;border:1px solid #47382a}.chat-toggle-floating-btn{border:1px solid var(--border-gold);color:#f7ecd5;cursor:pointer;background:#201a14;border-radius:20px;width:100%;padding:.65rem 1.25rem;font-size:.85rem;font-weight:700;transition:all .2s}.chat-toggle-floating-btn:hover{background:#2e241c;transform:translateY(-2px)}.table-right-sidebar{flex-direction:column;height:100%;min-height:0;display:flex;overflow:hidden}.chat-box-panel{border:1px solid var(--border-wood);background:#16120e;border-radius:10px;flex-direction:column;flex:1;height:100%;min-height:0;max-height:100%;display:flex;overflow:hidden;box-shadow:0 4px 15px #00000080}.chat-header{border-bottom:1px solid var(--border-wood);background:#201a14;flex-shrink:0;justify-content:space-between;align-items:center;padding:.45rem .85rem;display:flex}.chat-title{color:var(--gold-primary);font-size:.82rem;font-weight:700}.chat-close-btn{color:#8c8273;cursor:pointer;background:0 0;border:none;font-size:.85rem}.truco-shouts-strip,.criollo-shouts-strip{background:#110e0b;border-bottom:1px solid #221b14;flex-wrap:wrap;flex-shrink:0;gap:.25rem;padding:.35rem .5rem;display:flex}.shout-pill{color:#fce7b2;cursor:pointer;background:#231b14;border:1px solid #443425;border-radius:10px;padding:.2rem .45rem;font-size:.68rem;font-weight:600;transition:all .15s}.shout-pill:hover{background:var(--gold-primary);color:#1a0f02;border-color:var(--gold-primary)}.chat-messages-scroll{flex-direction:column;flex:1;gap:.5rem;padding:.75rem;font-size:.85rem;display:flex;overflow-y:auto}.empty-chat-msg{text-align:center;color:#6b6357;margin-top:2rem;font-size:.8rem;font-style:italic}.chat-message-row{word-break:break-word;line-height:1.4}.chat-sender{color:var(--gold-primary);font-weight:700}.chat-text{color:#e5ded0}.chat-time{color:#6b6357;margin-left:.35rem;font-size:.65rem}.chat-input-form{border-top:1px solid var(--border-wood);background:#110e0b;gap:.35rem;padding:.5rem;display:flex}.chat-input-form input{color:#fff;background:#1c1813;border:1px solid #3c2f24;border-radius:6px;outline:none;flex:1;padding:.45rem .65rem;font-size:.85rem}.chat-input-form input:focus{border-color:var(--gold-primary)}.chat-input-form button{background:var(--gold-primary);color:#1a0f02;cursor:pointer;border:none;border-radius:6px;padding:0 .85rem;font-weight:800}.modal-backdrop{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);z-index:200;background:#000000c7;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.auth-modal-card,.create-room-modal,.game-over-modal,.waiting-card{border:2px solid var(--border-wood);background:#181410;border-radius:16px;width:100%;max-width:480px;padding:2rem;position:relative;box-shadow:0 20px 60px #000c}.modal-close-icon{color:#8c8273;cursor:pointer;background:0 0;border:none;font-size:1.25rem;position:absolute;top:1rem;right:1rem}.modal-close-icon:hover{color:#fff}.auth-tabs{border-bottom:1px solid #2d2319;gap:.5rem;margin-bottom:1.5rem;display:flex}.auth-tab{color:#8c8273;cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;padding:.5rem .75rem;font-size:.9rem;font-weight:700}.auth-tab.active{color:var(--gold-primary);border-bottom-color:var(--gold-primary)}.auth-header h3{font-family:var(--font-serif);color:#f7ecd5;margin-bottom:.35rem;font-size:1.4rem}.auth-header p{color:#9c9284;margin-bottom:1.25rem;font-size:.85rem}.auth-error-banner{color:#fca5a5;background:#b91c1c33;border:1px solid #ef4444;border-radius:6px;margin-bottom:1rem;padding:.65rem;font-size:.85rem}.auth-form{flex-direction:column;gap:1.15rem;display:flex}.avatars-row{flex-wrap:wrap;gap:.5rem;margin-top:.35rem;display:flex}.avatar-option-btn{cursor:pointer;color:#e5ded0;background:#231b14;border:1px solid #3c2f24;border-radius:8px;align-items:center;gap:.35rem;padding:.4rem .6rem;font-size:.8rem;display:flex}.avatar-option-btn.selected{border-color:var(--gold-primary);background:#33271b;box-shadow:0 0 10px #e5b3384d}.input-field-group{flex-direction:column;gap:.35rem;display:flex}.input-field-group label{color:#d1c7b7;font-size:.85rem;font-weight:600}.input-field-group input{color:#fff;background:#0f0d0b;border:1px solid #3c2f24;border-radius:8px;outline:none;padding:.75rem 1rem;font-size:.95rem}.input-field-group input:focus{border-color:var(--gold-primary)}.auth-submit-btn,.create-submit-btn{border:1px solid var(--gold-primary);color:#1a0f02;cursor:pointer;background:linear-gradient(135deg,#ca8a04 0%,#a16207 100%);border-radius:8px;margin-top:.5rem;padding:.85rem;font-size:1rem;font-weight:800;transition:all .2s}.auth-submit-btn:hover:not(:disabled),.create-submit-btn:hover{filter:brightness(1.15)}.auth-quick-action-btn{background:var(--gold-primary);color:#120e0b;cursor:pointer;border:none;border-radius:6px;padding:.35rem .85rem;font-size:.8rem;font-weight:700;transition:transform .15s,background .2s;display:inline-block}.auth-quick-action-btn:hover{background:#f3c95a;transform:translateY(-1px)}.auth-footer-links{color:#9c9284;flex-wrap:wrap;justify-content:center;align-items:center;gap:.5rem;margin-top:.5rem;font-size:.85rem;display:flex}.auth-link-text{color:var(--gold-primary);cursor:pointer;background:0 0;border:none;padding:0;font-size:.85rem;font-weight:700;text-decoration:underline}.auth-link-text:hover{color:#f7ecd5}.form-group{flex-direction:column;gap:.5rem;margin-bottom:1.25rem;display:flex}.form-group label{color:#d1c7b7;font-size:.9rem;font-weight:600}.radio-pills{flex-wrap:wrap;gap:.5rem;display:flex}.pill-btn{color:#9c9284;cursor:pointer;background:#231b14;border:1px solid #3c2f24;border-radius:8px;flex:1;padding:.65rem .85rem;font-size:.85rem;font-weight:600}.pill-btn.active{border-color:var(--gold-primary);color:var(--gold-primary);background:#3a2a1b;font-weight:700}.waiting-room-screen{justify-content:center;align-items:center;min-height:500px;display:flex}.waiting-card{text-align:center;flex-direction:column;align-items:center;gap:1.25rem;display:flex}.spinner-loader{border:4px solid #e5b33833;border-top-color:var(--gold-primary);border-radius:50%;width:50px;height:50px;animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.room-code-display-box{border:2px solid var(--border-gold);background:#0f0d0b;border-radius:10px;flex-direction:column;gap:.25rem;padding:1rem 2rem;display:flex}.code-label{color:#a89f91;letter-spacing:1.5px;font-size:.75rem}.code-value{font-family:var(--font-serif);color:var(--gold-primary);letter-spacing:4px;font-size:2.2rem;font-weight:900}.copy-link-btn{border:1px solid var(--border-gold);color:#fff;cursor:pointer;background:#2b2118;border-radius:8px;padding:.75rem 1.5rem;font-weight:700}.leave-waiting-btn{color:#9c9284;cursor:pointer;background:0 0;border:none;font-size:.85rem}.leave-waiting-btn:hover{color:#ef4444}.game-over-modal{text-align:center}.game-over-trophy{margin-bottom:.5rem;font-size:4rem}.game-over-modal h2{font-family:var(--font-serif);color:var(--gold-primary);margin-bottom:.5rem;font-size:2rem}.game-over-desc{color:#c4b9a7;margin-bottom:1.5rem}.final-score-box{background:#110e0b;border-radius:12px;justify-content:center;align-items:center;gap:2rem;margin-bottom:2rem;padding:1.25rem;display:flex}.final-player{flex-direction:column;gap:.25rem;display:flex}.final-player span{color:#a89f91;font-size:.9rem}.final-player strong{color:#fff;font-size:2.5rem}.final-vs{font-family:var(--font-serif);color:var(--gold-primary);font-size:1.25rem;font-weight:800}.game-over-leave-btn{background:var(--gold-primary);color:#1a0f02;cursor:pointer;border:none;border-radius:8px;padding:.85rem 2rem;font-size:1rem;font-weight:800}.global-error-banner{color:#fecaca;background:#7f1d1d;justify-content:space-between;align-items:center;padding:.75rem 1.5rem;font-size:.9rem;font-weight:600;display:flex}.global-error-banner button{color:#fecaca;cursor:pointer;background:0 0;border:none;font-size:1rem}.opp-envido-badge{background:#1e3a8ad9;border:1.5px solid #60a5fa;border-radius:14px;align-items:center;gap:.35rem;padding:.25rem .65rem;font-size:.8rem;animation:.3s ease-out popIn;display:flex;box-shadow:0 0 10px #60a5fa66}.opp-envido-label{color:#bfdbfe;font-weight:600}.opp-envido-val{color:#fff;font-size:.9rem;font-weight:800}.envido-resolution-card{background:#0f172af2;border:2px solid #38bdf8;border-radius:14px;flex-direction:column;gap:.5rem;width:90%;max-width:440px;margin:.75rem auto;padding:.85rem 1.5rem;animation:.35s ease-out slideDown;display:flex;box-shadow:0 8px 24px #0009,0 0 16px #38bdf859}.envido-res-header{justify-content:center;align-items:center;gap:.5rem;display:flex}.envido-res-title{letter-spacing:1.5px;color:#38bdf8;font-size:.8rem;font-weight:800}.envido-res-scores-row{background:#0006;border-radius:8px;justify-content:center;align-items:center;gap:1.25rem;padding:.5rem 1rem;display:flex}.envido-score-box{border-radius:6px;flex-direction:column;align-items:center;gap:.15rem;min-width:90px;padding:.35rem .75rem;display:flex}.envido-score-box.winner{background:#16a34a40;border:1px solid #4ade80}.env-pname{color:#94a3b8;font-size:.78rem;font-weight:600}.env-pval{color:#f8fafc;font-size:1.2rem;font-weight:900}.env-vs{font-family:var(--font-serif);color:var(--gold-primary);font-size:.9rem;font-weight:800}.envido-res-footer{text-align:center;color:#4ade80;font-size:.85rem;font-weight:700}.hand-finished-floating-banner{border:2px solid var(--gold-primary);z-index:30;background:#120e0bf5;border-radius:16px;width:95%;max-width:520px;margin:.5rem auto;padding:.85rem 1.5rem;animation:.3s cubic-bezier(.175,.885,.32,1.275) popIn;box-shadow:0 10px 30px #000c,0 0 20px #e5b33866}.hand-finished-box{align-items:center;gap:1rem;display:flex}.hf-icon{font-size:2.2rem}.hf-text-col{flex-direction:column;flex:1;gap:.25rem;display:flex}.hf-text-col h4{font-family:var(--font-serif);color:var(--gold-primary);margin:0;font-size:1.05rem}.hf-text-col p{color:#e5ded0;margin:0;font-size:.85rem}.hf-bar-container{background:#ffffff26;border-radius:3px;height:5px;margin-top:.4rem;overflow:hidden}.hf-bar-progress{background:linear-gradient(90deg, #15803d, var(--gold-primary));width:0%;height:100%;animation:2.5s linear forwards countdownProgress}@keyframes countdownProgress{0%{width:0%}to{width:100%}}@keyframes popIn{0%{opacity:0;transform:scale(.85)}to{opacity:1;transform:scale(1)}}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.hand-finishing-notice{text-align:center;background:#14100ce6;padding:.85rem}.waiting-next-hand-text{color:var(--gold-primary);font-size:.95rem;font-weight:700;animation:1s infinite alternate pulse}.scoreboard-modal-card{background:#141816;border:4px solid #3d2c1e;border-radius:14px;width:92%;max-width:380px;max-height:90vh;padding:1.25rem;animation:.25s ease-out popIn;position:relative;overflow-y:auto;box-shadow:0 20px 60px #000000e6}.scoreboard-modal-header{text-align:center;margin-bottom:.75rem}.scoreboard-modal-header h3{font-family:var(--font-serif);color:var(--gold-primary);margin:0;font-size:1.2rem}.scoreboard-modal-header p{color:#a39783;margin-top:.2rem;font-size:.8rem}@media (width<=768px){.navbar-container{padding:.35rem .65rem}.brand-logo-icon{font-size:1.25rem}.brand-title-wrap{gap:.3rem}.brand-title{letter-spacing:.5px;font-size:1.05rem}.brand-flag .flag-paraguay-svg{width:18px;height:12px}.brand-subtitle{display:none}.navbar-controls{align-items:center;gap:.35rem;display:flex}.navbar-icon-btn{width:30px;height:30px;font-size:.85rem}.user-profile-badge{gap:.35rem;max-width:100%;padding:.2rem .5rem}.user-avatar-circle{flex-shrink:0;width:26px;height:26px;font-size:.9rem}.user-name-display{white-space:nowrap;text-overflow:ellipsis;max-width:140px;font-size:.8rem;font-weight:700;overflow:hidden}.in-game-user-badge .user-name-display{max-width:160px}.user-wins-display,.user-guest-tag{display:none}.user-login-cta-btn{padding:.2rem .45rem;font-size:.68rem}.login-btn-full{display:none}.login-btn-compact{display:inline}.user-logout-btn{padding:.15rem .35rem;font-size:.68rem}.in-game-header .navbar-container{height:36px;min-height:36px;padding:.2rem .5rem}.in-game-header .brand-title{font-size:.95rem}.in-game-header .brand-flag .flag-paraguay-svg{width:16px;height:10.6px}.in-game-header .navbar-leave-btn{padding:.2rem .45rem;font-size:.72rem}.lobby-container{padding:.75rem .65rem 2rem}.lobby-hero{border-radius:12px;margin-bottom:1rem;padding:1.35rem .85rem}.hero-title{letter-spacing:1px;margin-bottom:.45rem;font-size:1.65rem}.hero-title-flag .flag-paraguay-svg{width:24px;height:16px}.hero-tagline{margin-bottom:1rem;font-size:.88rem;line-height:1.45}.hero-actions-row{flex-direction:column;gap:.6rem;width:100%}.hero-btn-primary,.hero-btn-secondary{justify-content:center;width:100%;padding:.75rem 1rem;font-size:.92rem}.lobby-guest-banner{text-align:center;flex-direction:column;gap:.5rem;padding:.65rem;font-size:.8rem}.lobby-guest-login-btn{width:100%}.quick-join-bar{margin-bottom:1.25rem;padding:.85rem}.quick-join-form label{margin-bottom:.45rem;font-size:.8rem}.input-with-btn{flex-direction:column;gap:.5rem}.input-with-btn input{box-sizing:border-box;width:100%;padding:.65rem .85rem;font-size:1rem}.input-with-btn button{width:100%;padding:.65rem;font-size:.9rem}.lobby-tabs-nav{white-space:nowrap;-webkit-overflow-scrolling:touch;flex-wrap:nowrap;gap:.4rem;margin-bottom:1rem;padding-bottom:.35rem;display:flex;overflow-x:auto}.lobby-tab-btn{flex-shrink:0;padding:.5rem .85rem;font-size:.8rem}.rooms-grid{grid-template-columns:1fr;gap:.75rem}.leaderboard-table-card{-webkit-overflow-scrolling:touch;overflow-x:auto}.leaderboard-table{min-width:480px}.rules-cards-grid{grid-template-columns:1fr;gap:.75rem}.auth-modal-card,.create-room-card,.game-over-modal{box-sizing:border-box;width:95%;max-width:95%;max-height:92vh;padding:1.25rem .85rem;overflow-y:auto}.auth-tabs{gap:.25rem;margin-bottom:1rem}.auth-tab{padding:.4rem .5rem;font-size:.8rem}.input-field-group input{padding:.65rem .75rem;font-size:16px}.avatars-row{justify-content:center;gap:.35rem}.avatar-option-btn{padding:.35rem .5rem;font-size:.75rem}.waiting-room-screen{min-height:auto;padding:1.5rem 1rem}.waiting-card{gap:1rem;width:100%}.room-code-display-box{box-sizing:border-box;width:100%;padding:.75rem 1.25rem}.code-value{font-size:1.8rem}.copy-link-btn,.leave-waiting-btn{width:100%;padding:.75rem;font-size:.9rem}}@media (height<=700px){.game-table-top-bar{height:26px;min-height:26px;padding:.15rem .4rem}.card-wrapper.size-normal{width:52px;height:76px}.trick-cards-display .card-wrapper.size-small,.trick-cards-display .empty-card-slot{width:42px;height:60px}.card-wrapper.size-small{width:26px;height:38px}.truco-btn{min-height:26px;padding:.2rem .4rem;font-size:.7rem}.action-panel-bar{padding:.15rem .3rem}.mini-match-board{top:40px}}.user-role-badge{letter-spacing:.03em;text-transform:uppercase;white-space:nowrap;vertical-align:middle;border-radius:999px;align-items:center;gap:.25rem;padding:.15rem .5rem;font-size:.72rem;font-weight:700;transition:all .2s;display:inline-flex}.user-role-badge.super-admin{color:#fde047;text-shadow:0 1px 2px #000c;background:linear-gradient(135deg,#e5b33840 0%,#f59e0b59 100%);border:1px solid #facc1599;box-shadow:0 0 10px #eab30840}.user-role-badge.admin{color:#7dd3fc;background:linear-gradient(135deg,#3b82f640 0%,#0ea5e94d 100%);border:1px solid #38bdf899;box-shadow:0 0 10px #0ea5e933}.user-role-badge.user{color:#d1d5db;background:#ffffff14;border:1px solid #ffffff26}.navbar-admin-btn{color:#fcd34d;cursor:pointer;background:linear-gradient(135deg,#e5b33826 0%,#b4530940 100%);border:1px solid #f59e0b80;border-radius:8px;align-items:center;gap:.4rem;padding:.35rem .75rem;font-size:.82rem;font-weight:700;transition:all .2s;display:inline-flex}.navbar-admin-btn:hover{background:linear-gradient(135deg,#e5b3384d 0%,#d9770666 100%);border-color:#f59e0b;transform:translateY(-1px);box-shadow:0 4px 12px #f59e0b40}.navbar-role-tag{margin-left:.35rem}.lobby-tab-btn.admin-tab-btn{color:#fde68a;background:linear-gradient(135deg,#d9770633 0%,#b453094d 100%);border-color:#f59e0b80}.lobby-tab-btn.admin-tab-btn:hover{color:#fff;background:linear-gradient(135deg,#d9770659 0%,#b4530980 100%);border-color:#f59e0b}.admin-modal-backdrop{-webkit-backdrop-filter:blur(8px);z-index:10000;background:#000000d1;justify-content:center;align-items:center;padding:1rem;animation:.2s ease-out fadeInModal;display:flex;position:fixed;inset:0}@keyframes fadeInModal{0%{opacity:0;transform:scale(.98)}to{opacity:1;transform:scale(1)}}.admin-modal-content{background:#14110d;border:1px solid #4a3824;border-radius:16px;flex-direction:column;width:100%;max-width:900px;max-height:90vh;display:flex;overflow:hidden;box-shadow:0 20px 50px #000c,0 0 30px #c59b2726}.admin-modal-header{background:linear-gradient(#1f1913 0%,#17130e 100%);border-bottom:1px solid #3d2b1b;justify-content:space-between;align-items:center;padding:1.25rem 1.5rem;display:flex}.admin-title-row{flex-wrap:wrap;align-items:center;gap:.75rem;display:flex}.admin-title-row h2{font-family:var(--font-serif);color:#f5eedc;letter-spacing:.02em;margin:0;font-size:1.35rem}.admin-close-btn{color:#9ca3af;cursor:pointer;background:#ffffff0f;border:1px solid #ffffff1a;border-radius:8px;justify-content:center;align-items:center;width:34px;height:34px;font-size:1.1rem;transition:all .2s;display:flex}.admin-close-btn:hover{color:#ef4444;background:#ef444433;border-color:#ef4444}.admin-modal-body{flex-direction:column;gap:1.25rem;padding:1.25rem 1.5rem;display:flex;overflow-y:auto}.admin-stats-strip{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:.75rem;display:grid}.admin-stat-card{background:#ffffff08;border:1px solid #ffffff12;border-radius:12px;align-items:center;gap:.85rem;padding:.85rem 1rem;display:flex}.admin-stat-icon{font-size:1.8rem;line-height:1}.admin-stat-info{flex-direction:column;display:flex}.admin-stat-val{color:#f9fafb;font-size:1.35rem;font-weight:800;line-height:1.2}.admin-stat-lbl{color:#9ca3af;text-transform:uppercase;letter-spacing:.03em;font-size:.75rem}.admin-hierarchy-explainer{background:#e5b3380a;border:1px solid #e5b33833;border-radius:12px;padding:.85rem 1.1rem}.explainer-title{color:#fde047;margin-bottom:.5rem;font-size:.88rem;font-weight:700}.explainer-cards{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.65rem;display:grid}.explainer-item{color:#d1d5db;flex-direction:column;gap:.2rem;font-size:.8rem;display:flex}.explainer-item strong{color:#f3f4f6;font-size:.82rem}.admin-controls-bar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;display:flex}.admin-search-wrapper{flex:1;min-width:220px;position:relative}.admin-search-icon{opacity:.5;font-size:.9rem;position:absolute;top:50%;left:.75rem;transform:translateY(-50%)}.admin-search-input{color:#f3f4f6;background:#ffffff0a;border:1px solid #ffffff1f;border-radius:8px;outline:none;width:100%;padding:.55rem .75rem .55rem 2.2rem;font-size:.88rem;transition:all .2s}.admin-search-input:focus{background:#ffffff12;border-color:#e5b338;box-shadow:0 0 0 2px #e5b33833}.admin-count-info{color:#9ca3af;font-size:.8rem}.admin-table-container{background:#0f0c0999;border:1px solid #ffffff14;border-radius:10px;overflow-x:auto}.admin-table{border-collapse:collapse;text-align:left;width:100%;font-size:.85rem}.admin-table th{color:#9ca3af;text-transform:uppercase;letter-spacing:.05em;background:#ffffff0a;border-bottom:1px solid #ffffff14;padding:.75rem 1rem;font-size:.72rem;font-weight:600}.admin-table td{color:#e5e7eb;border-bottom:1px solid #ffffff0a;padding:.7rem 1rem}.admin-table tr:last-child td{border-bottom:none}.admin-table tr:hover td{background:#ffffff05}.admin-user-cell{align-items:center;gap:.6rem;display:flex}.admin-avatar{font-size:1.25rem;line-height:1}.admin-uname{color:#f9fafb;font-weight:600}.admin-you-tag{color:#86efac;background:#22c55e33;border:1px solid #22c55e66;border-radius:4px;padding:.1rem .35rem;font-size:.68rem;font-weight:700}.role-select{color:#f3f4f6;cursor:pointer;background:#1c1813;border:1px solid #ffffff2e;border-radius:6px;outline:none;padding:.35rem .6rem;font-size:.8rem;font-weight:600;transition:all .2s}.role-select:focus{border-color:#e5b338}.role-select:disabled{opacity:.5;cursor:not-allowed}.admin-table-empty{text-align:center;color:#9ca3af;padding:2.5rem 1rem!important}.admin-modal-footer{background:#17130e;border-top:1px solid #3d2b1b;justify-content:flex-end;padding:1rem 1.5rem;display:flex}.admin-primary-btn{color:#120f0c;cursor:pointer;background:linear-gradient(135deg,#e5b338 0%,#b45309 100%);border:none;border-radius:8px;padding:.55rem 1.25rem;font-size:.88rem;font-weight:700;transition:all .2s}.admin-primary-btn:hover{filter:brightness(1.1);transform:translateY(-1px)}
