:root {
  --bg: #060606;
  --panel: #111111;
  --panel2: #181818;
  --line: rgba(245, 189, 39, .28);
  --gold: #f5bd27;
  --gold2: #ffd45f;
  --text: #f5f5f5;
  --muted: #b9b1a4;
  --red: #751414;
  --green: #2f9f5b;
  --danger: #d84949;
  --blue: #2d7cff;
  --felt: #063816;
  --felt2: #021b0b;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:radial-gradient(circle at 72% 8%,rgba(107,31,9,.45),transparent 32%),linear-gradient(135deg,#000,#101010 58%,#260b08);color:var(--text);font-family:Arial,Helvetica,sans-serif}
button,input,select,textarea{font:inherit}
button{cursor:pointer;border:0;border-radius:14px;padding:12px 16px;background:linear-gradient(135deg,var(--gold),#d99410);color:#140f00;font-weight:900;box-shadow:0 10px 25px rgba(0,0,0,.28);letter-spacing:.2px}
button:hover{filter:brightness(1.08);transform:translateY(-1px)}
button.secondary{background:#252525;color:#fff;border:1px solid #3a3a3a}
button.danger{background:linear-gradient(135deg,#a91d1d,#5f0d0d);color:#fff}
button.green{background:linear-gradient(135deg,#41c979,#217747);color:#001909}
button.blue{background:linear-gradient(135deg,#1f82ff,#0554bd);color:#fff}
button.orange{background:linear-gradient(135deg,#ff8a16,#d55700);color:#fff}
button.small{padding:8px 10px;border-radius:10px;font-size:13px}
button:disabled{opacity:.55;cursor:not-allowed}
input,select,textarea{width:100%;border:1px solid #333;background:#080808;color:#fff;border-radius:14px;padding:13px;outline:none}
input:focus,select:focus,textarea:focus{border-color:var(--gold);box-shadow:0 0 0 3px rgba(245,189,39,.12)}
label{display:block;font-size:13px;color:var(--muted);margin:10px 0 6px}
a{color:var(--gold)}
.app{min-height:100vh}.hidden{display:none!important}.center{text-align:center}.muted{color:var(--muted)}.gold{color:var(--gold)}.red{color:var(--danger)}
.loading-screen{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#020202;z-index:99;text-align:center;padding:30px}.loading-screen img{width:min(320px,80vw);height:auto;margin-bottom:25px}.loading-screen h1{color:var(--gold);letter-spacing:.5px}.loading-screen.hidden{display:none}.error-box{max-width:680px;background:#160b0b;border:1px solid #652020;padding:30px;border-radius:22px}.toast{position:fixed;right:20px;bottom:20px;z-index:100;background:#111;border:1px solid var(--line);padding:14px 18px;border-radius:16px;box-shadow:0 10px 30px #000;color:#fff;max-width:380px}.toast.hidden{display:none}
.header{position:sticky;top:0;z-index:10;display:flex;justify-content:space-between;align-items:center;gap:18px;background:rgba(5,5,5,.86);backdrop-filter:blur(12px);border-bottom:1px solid var(--line);padding:10px 24px}.brand{display:flex;align-items:center;gap:14px;cursor:pointer}.brand img{height:58px;max-width:170px;object-fit:contain}.brand-title{font-size:20px;font-weight:900}.brand-sub{font-size:12px;color:var(--muted);letter-spacing:2px;text-transform:uppercase}.nav{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.nav button{padding:9px 12px;font-size:13px}.user-pill{border:1px solid var(--line);background:#0f0f0f;border-radius:999px;padding:8px 13px;color:var(--gold)}
.container{width:min(1220px,94vw);margin:0 auto;padding:28px 0}.card,.panel,.hero-card{background:linear-gradient(180deg,rgba(26,26,26,.96),rgba(10,10,10,.97));border:1px solid var(--line);border-radius:26px;padding:24px;box-shadow:0 20px 60px rgba(0,0,0,.35)}.grid{display:grid;gap:18px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.screen-title{font-size:32px;margin:0 0 8px}.kpi{background:#0b0b0b;border:1px solid #2a2a2a;border-radius:20px;padding:18px}.kpi strong{display:block;font-size:32px;color:var(--gold)}.menu-card{min-height:130px;display:flex;flex-direction:column;justify-content:space-between;transition:.2s}.menu-card:hover{transform:translateY(-3px);border-color:rgba(245,189,39,.6)}.menu-card h3{margin:0 0 8px;color:var(--gold)}.table{width:100%;border-collapse:collapse;border-spacing:0}.table th,.table td{text-align:left;border-bottom:1px solid #2a2a2a;padding:12px 10px;font-size:14px}.table th{color:var(--gold);font-size:12px;text-transform:uppercase;letter-spacing:1px}.badge{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:5px 9px;font-size:12px;background:#222;color:#ddd;border:1px solid #333}.badge.gold{background:rgba(245,189,39,.15);border-color:rgba(245,189,39,.4);color:var(--gold2)}.badge.red{background:rgba(168,24,24,.25);border-color:rgba(168,24,24,.5);color:#ff9e9e}.badge.green{background:rgba(45,166,92,.22);border-color:rgba(45,166,92,.5);color:#94ffbc}
/* Home */
.home-hero{position:relative;min-height:calc(100vh - 80px);display:flex;align-items:center;background-image:url('/truco/assets/truco-cover.png');background-size:cover;background-position:center;overflow:hidden}.home-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.88),rgba(0,0,0,.46),rgba(0,0,0,.82)),radial-gradient(circle at 25% 60%,rgba(245,189,39,.18),transparent 25%)}.home-content{position:relative;width:min(1180px,94vw);margin:0 auto;display:grid;grid-template-columns:minmax(320px,520px) 1fr;gap:28px;align-items:end;padding:54px 0}.home-card{background:rgba(8,8,8,.72);border:1px solid var(--line);backdrop-filter:blur(10px);border-radius:28px;padding:28px;box-shadow:0 30px 90px rgba(0,0,0,.55)}.home-card h1{font-size:clamp(42px,7.2vw,90px);line-height:.86;margin:18px 0 18px;text-transform:uppercase;letter-spacing:-2px}.home-card h1 span{display:block;color:var(--gold)}.home-card p{font-size:18px;line-height:1.55;color:#f2e8d1}.home-stats{align-self:end;justify-self:end;display:flex;gap:12px;flex-wrap:wrap}.home-stats div{min-width:130px;background:rgba(0,0,0,.62);border:1px solid rgba(245,189,39,.32);border-radius:20px;padding:14px;text-align:center}.home-stats strong{display:block;font-size:30px;color:var(--gold)}.home-stats span{font-size:12px;color:#eadfcb;text-transform:uppercase;letter-spacing:.6px}.hero-actions button{min-width:130px}
/* Game table */
.game-page{width:min(1500px,96vw);margin:0 auto;padding:16px 0 28px}.game-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.game-topbar h1{margin:0;font-size:26px}.game-topbar p{margin:4px 0 0;color:var(--muted)}.game-layout{display:grid;grid-template-columns:1fr 350px;gap:16px}.game-layout.immersive{align-items:start}.game-table.table-modern{position:relative;min-height:680px;background:radial-gradient(ellipse at center,#0a5a20 0,#073817 40%,#021507 72%,#050505 100%);background-image:radial-gradient(circle at center,rgba(255,255,255,.04) 1px,transparent 1px),radial-gradient(ellipse at center,#0a5a20 0,#073817 44%,#021507 78%);background-size:10px 10px,100% 100%;border:10px solid #3b180e;border-radius:42px;padding:18px;overflow:hidden;box-shadow:inset 0 0 70px rgba(0,0,0,.68),0 28px 80px rgba(0,0,0,.48)}.game-table.table-modern:before{content:"";position:absolute;inset:18px;border:1px solid rgba(245,189,39,.14);border-radius:30px;pointer-events:none}.score-pill{position:absolute;top:18px;z-index:2;background:rgba(0,0,0,.72);border:1px solid var(--line);border-radius:18px;padding:10px 18px;min-width:128px;text-align:center;box-shadow:0 15px 35px rgba(0,0,0,.35)}.left-score{left:18px}.right-score{right:18px}.score-pill span,.score-pill small{display:block;color:#e8deca;font-size:12px;text-transform:uppercase;letter-spacing:.6px}.score-pill strong{font-size:42px;line-height:1;color:var(--gold)}.table-status{position:absolute;top:20px;left:50%;transform:translateX(-50%);z-index:2;display:flex;gap:8px;flex-wrap:wrap;justify-content:center;max-width:52%}.table-grid{position:relative;z-index:1;display:grid;grid-template-columns:180px 1fr 180px;grid-template-rows:128px 1fr 128px;grid-template-areas:"top top top" "left center right" "bottom bottom bottom";gap:10px;min-height:530px;padding:68px 0 0}.seat{background:rgba(0,0,0,.52);border:1px solid rgba(255,255,255,.12);border-radius:18px;padding:10px;min-height:92px;box-shadow:0 10px 28px rgba(0,0,0,.28)}.seat.turn{border-color:var(--gold);box-shadow:0 0 0 2px rgba(245,189,39,.18),0 0 26px rgba(245,189,39,.28)}.seat.empty{opacity:.7}.seat-0{grid-area:bottom;align-self:end;justify-self:center;width:min(420px,100%)}.seat-1{grid-area:left;align-self:center}.seat-2{grid-area:top;justify-self:center;width:min(420px,100%)}.seat-3{grid-area:right;align-self:center}.seat-head{display:flex;align-items:center;gap:8px}.avatar{width:44px;height:44px;border-radius:50%;background:radial-gradient(circle at 30% 20%,#ffef8b,#e18b00 55%,#8b3300);display:inline-flex;align-items:center;justify-content:center;color:#111;font-size:22px;font-weight:900;box-shadow:0 6px 15px rgba(0,0,0,.35)}.seat strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}.seat small{display:block;color:var(--muted);font-size:12px}.turn-badge{display:inline-block;margin-top:7px;background:rgba(245,189,39,.16);border:1px solid rgba(245,189,39,.38);color:var(--gold);border-radius:999px;padding:4px 8px;font-size:12px}.mini-hand{display:flex;gap:4px;margin-top:8px;justify-content:center}.felt-center{grid-area:center;display:grid;place-items:center;position:relative;min-height:310px}.playing-area.modern{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;min-height:160px;padding:12px}.empty-table-message{color:#e5dac6;background:rgba(0,0,0,.22);border:1px dashed rgba(245,189,39,.25);border-radius:18px;padding:18px}.table-play{text-align:center}.table-play span{display:block;font-size:12px;color:#f2dfbf;margin-bottom:4px}.table-card-0{transform:rotate(-7deg)}.table-card-1{transform:rotate(4deg)}.table-card-2{transform:rotate(-2deg)}.table-card-3{transform:rotate(8deg)}.winner-hint{position:absolute;bottom:6px;background:rgba(0,0,0,.72);border:1px solid var(--line);border-radius:16px;padding:10px 14px;color:#fff;text-align:center}.vira.compact{position:absolute;right:4px;top:2px;text-align:center;background:rgba(0,0,0,.42);border:1px solid rgba(255,255,255,.1);border-radius:16px;padding:8px}.bottom-playbar{position:relative;z-index:2;display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-top:4px}.my-hand-wrap{flex:1;text-align:center}.my-hand-wrap small{color:var(--gold);text-transform:uppercase;letter-spacing:.7px;font-weight:800}.hand{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:10px}.fan-hand .card-face:nth-child(1){transform:rotate(-7deg) translateY(5px)}.fan-hand .card-face:nth-child(2){transform:translateY(-2px)}.fan-hand .card-face:nth-child(3){transform:rotate(7deg) translateY(5px)}.hand .card-face{cursor:pointer;transition:.15s}.hand .card-face:hover{transform:translateY(-12px) scale(1.03)!important}.action-dock{min-width:280px;background:rgba(0,0,0,.66);border:1px solid rgba(245,189,39,.28);border-radius:22px;padding:14px;text-align:center}.action-dock strong{display:block;margin-bottom:9px}.action-buttons{justify-content:center}.action-buttons button{min-width:82px}.card-face{width:84px;height:122px;background:#f7f2df;color:#111;border-radius:12px;border:2px solid #fff;box-shadow:0 10px 22px rgba(0,0,0,.35);display:flex;flex-direction:column;justify-content:space-between;padding:8px;font-weight:900;position:relative}.card-face.small-card{width:46px;height:66px;border-radius:7px;padding:5px;font-size:11px}.card-face.red-suit{color:#b51616}.card-face.back{background:linear-gradient(135deg,#3b0a0a,#e96060);border-color:#ffd0d0;color:#fff;text-shadow:0 1px 0 #000}.card-face.back:after{content:"";position:absolute;inset:7px;border:1px solid rgba(255,255,255,.5);border-radius:7px}.card-face img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:10px}.card-rank{font-size:22px}.small-card .card-rank{font-size:14px}.card-symbol{font-size:30px;text-align:center}.small-card .card-symbol{font-size:16px}.card-mini{font-size:12px;text-align:right}.small-card .card-mini{font-size:8px}.side-panel{display:flex;flex-direction:column;gap:14px}.chat-box,.logs-box{height:210px;overflow:auto;background:#080808;border:1px solid #282828;border-radius:16px;padding:12px}.chat-message,.log-line{font-size:13px;border-bottom:1px solid #1e1e1e;padding:7px 0}.chat-form{display:flex;gap:8px}.chat-form input{padding:10px}.chat-form button{padding:10px 12px}.truco-alert{border:1px solid var(--gold);background:rgba(0,0,0,.72);border-radius:16px;padding:14px;margin:10px 0;text-align:center;box-shadow:0 0 35px rgba(245,189,39,.18)}
.admin-layout{display:grid;grid-template-columns:240px 1fr;gap:18px}.admin-menu{position:sticky;top:100px;align-self:start}.admin-menu button{width:100%;margin-bottom:8px;text-align:left}.upload-preview{width:62px;height:88px;object-fit:cover;border-radius:8px;border:1px solid #444}.code-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(70px,1fr));gap:8px}.code-chip{background:#0c0c0c;border:1px solid #333;border-radius:12px;padding:8px;text-align:center;color:#ddd}.code-chip.ok{border-color:var(--green);color:#8ff2b3}
@media(max-width:1100px){.game-layout{grid-template-columns:1fr}.side-panel{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.game-table.table-modern{min-height:650px}.table-status{max-width:62%;top:16px}.bottom-playbar{flex-direction:column;align-items:stretch}.action-dock{min-width:0}.chat-box,.logs-box{height:150px}}
@media(max-width:900px){.home-content{grid-template-columns:1fr;align-items:end;padding:34px 0}.home-stats{justify-self:start}.home-hero{background-position:center}.grid-2,.grid-3,.grid-4,.admin-layout{grid-template-columns:1fr}.header{align-items:flex-start;flex-direction:column;padding:10px 14px}.nav{width:100%}.nav button{flex:1}.form-row{grid-template-columns:1fr}.brand img{height:48px}.container{padding:18px 0}.side-panel{grid-template-columns:1fr}.game-topbar{flex-direction:column;align-items:flex-start}.game-page{width:min(100%,96vw)}.game-table.table-modern{border-width:6px;border-radius:26px;min-height:720px;padding:10px}.score-pill{position:relative;top:auto;left:auto;right:auto;min-width:0;flex:1}.left-score,.right-score{left:auto;right:auto}.game-table.table-modern{display:flex;flex-direction:column}.table-status{position:relative;left:auto;top:auto;transform:none;max-width:100%;order:-1;margin-bottom:8px}.table-grid{grid-template-columns:1fr 1fr;grid-template-rows:auto auto auto;grid-template-areas:"top top" "left right" "center center" "bottom bottom";padding:8px 0 0;min-height:0}.felt-center{min-height:230px}.seat{min-height:78px;padding:8px}.seat-0,.seat-2{width:100%}.seat strong{max-width:160px}.avatar{width:36px;height:36px;font-size:19px}.card-face{width:72px;height:104px}.card-face.small-card{width:38px;height:55px}.vira.compact{position:relative;right:auto;top:auto;margin-bottom:8px}.playing-area.modern{min-height:120px}.winner-hint{position:relative;bottom:auto;margin-top:8px}.bottom-playbar{margin-top:8px}.home-card h1{font-size:48px}.home-card p{font-size:16px}.home-stats{width:100%}.home-stats div{flex:1;min-width:95px}.hero-actions button{flex:1;min-width:120px}}
@media(max-width:520px){.brand-title{font-size:16px}.brand-sub{font-size:10px}.nav button{font-size:12px;padding:8px}.home-card{padding:20px}.home-card h1{font-size:40px}.game-table.table-modern{min-height:670px}.table-grid{grid-template-columns:1fr 1fr;gap:7px}.score-pill strong{font-size:32px}.score-pill{padding:8px}.table-status .badge{font-size:11px}.action-buttons button{flex:1;padding:10px 8px}.card-face{width:64px;height:92px}.hand{gap:4px}.side-panel .card{padding:16px}.chat-form{flex-direction:column}.mini-hand{display:none}}

/* Ajustes solicitados: rodadas, popup maior, cartas com logo e status claro */
.status-box{display:inline-flex;align-items:center;border:1px solid rgba(245,189,39,.45);background:rgba(245,189,39,.12);color:var(--gold2);padding:4px 10px;border-radius:999px;font-weight:900;font-size:12px;text-transform:uppercase;letter-spacing:.6px}.status-box.running{background:rgba(45,166,92,.18);border-color:rgba(45,166,92,.6);color:#9effbf}.status-badge{font-weight:900}.action-hint{font-size:12px;line-height:1.35;margin:0 0 10px}.card-logo-watermark{position:absolute;inset:32% 12% auto 12%;height:30%;background:url('/truco/assets/logo.png') center/contain no-repeat;opacity:.12;filter:grayscale(1);pointer-events:none}.card-face.back{background:radial-gradient(circle at 50% 35%,rgba(245,189,39,.18),transparent 35%),linear-gradient(135deg,#090909,#3b0a0a 62%,#a62727);border-color:#f4c45a}.card-face.back img.card-back-logo{position:absolute;inset:9px;width:calc(100% - 18px);height:calc(100% - 18px);object-fit:contain;border-radius:0;opacity:.95;filter:drop-shadow(0 2px 3px #000)}.card-face.back.small-card img.card-back-logo{inset:5px;width:calc(100% - 10px);height:calc(100% - 10px)}.card-face.back:after{border-color:rgba(245,189,39,.48)}.truco-alert-big{position:relative;z-index:5;max-width:min(520px,94vw);padding:22px 24px;border-width:2px;background:linear-gradient(180deg,rgba(15,8,3,.94),rgba(0,0,0,.88));box-shadow:0 0 0 4px rgba(245,189,39,.08),0 18px 55px rgba(0,0,0,.55),0 0 45px rgba(245,189,39,.28)}.truco-alert-big strong{display:block;font-size:38px;line-height:1;color:var(--gold);letter-spacing:2px}.truco-alert-big p{font-size:16px;margin:10px 0}.truco-actions{justify-content:center;margin-top:16px}.truco-actions button{min-width:120px;font-size:16px;padding:13px 16px}.round-history strong{display:block;color:var(--gold);font-size:13px}.round-history span{display:block;color:#f2eadb;margin:3px 0;line-height:1.35}.round-history em{display:block;color:#a7ffd0;font-style:normal;font-size:12px}.score-pill small{line-height:1.2}.action-buttons:empty{display:none}.action-buttons button:disabled:hover{transform:none;filter:none}
@media(max-width:900px){.truco-alert-big{padding:18px;max-width:100%}.truco-alert-big strong{font-size:30px}.truco-actions button{flex:1;min-width:110px}.status-box{font-size:11px}.action-dock{text-align:left}.action-dock strong{text-align:center}.action-hint{text-align:center}.card-logo-watermark{inset:34% 14% auto 14%;height:28%}}
@media(max-width:520px){.truco-alert-big strong{font-size:26px}.truco-alert-big p{font-size:14px}.truco-actions{gap:7px}.truco-actions button{font-size:13px;padding:11px 9px;min-width:0}.status-box{white-space:normal}.card-face.back img.card-back-logo{inset:6px;width:calc(100% - 12px);height:calc(100% - 12px)}}

/* Ajustes finais: delivery, botão de aumento, final da partida e capa limpa */
.delivery-links{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.delivery-btn{display:inline-flex;align-items:center;justify-content:center;min-height:38px;border-radius:12px;padding:9px 13px;font-size:13px;font-weight:900;text-decoration:none;box-shadow:0 10px 24px rgba(0,0,0,.24);white-space:nowrap}.delivery-btn.ifood{background:linear-gradient(135deg,#ef2f2f,#9d1010);color:#fff}.delivery-btn.sirrus{background:linear-gradient(135deg,#f5bd27,#d99410);color:#160e00}.header-delivery{margin-right:4px}.home-delivery{margin-top:14px}.home-delivery .delivery-btn{font-size:15px;padding:12px 16px}.game-delivery{margin-right:2px}.game-top-actions{align-items:center;justify-content:flex-end}.game-top-actions .delivery-links{display:flex}.home-hero{background-image:url('/truco/assets/truco-cover.png')!important;background-size:cover!important;background-position:center!important}.home-overlay{background:linear-gradient(90deg,rgba(0,0,0,.9) 0%,rgba(0,0,0,.58) 33%,rgba(0,0,0,.28) 58%,rgba(0,0,0,.78) 100%),radial-gradient(circle at 18% 48%,rgba(245,189,39,.16),transparent 28%)!important}.home-content{grid-template-columns:minmax(300px,560px) 1fr;align-items:center;min-height:calc(100vh - 88px)}.home-card{background:linear-gradient(180deg,rgba(5,5,5,.8),rgba(0,0,0,.68));box-shadow:0 30px 100px rgba(0,0,0,.75);max-width:560px}.home-stats{display:none!important}.inactive-truco{background:linear-gradient(135deg,#454545,#242424)!important;color:#aaa!important;border:1px solid #5b5b5b!important;box-shadow:none!important}.inactive-truco:disabled{opacity:.82}.truco-alert-big{max-width:min(680px,96vw);padding:28px 30px}.truco-alert-big strong{font-size:46px}.truco-alert-big p{font-size:18px}.truco-actions button{min-width:145px;font-size:17px}.match-modal-backdrop{position:fixed;inset:0;z-index:60;background:rgba(0,0,0,.72);display:flex;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(5px)}.match-modal{width:min(520px,94vw);background:linear-gradient(180deg,rgba(20,20,20,.98),rgba(5,5,5,.97));border:2px solid rgba(245,189,39,.42);border-radius:28px;padding:28px;text-align:center;box-shadow:0 25px 90px rgba(0,0,0,.72),0 0 65px rgba(245,189,39,.13)}.match-modal.win{border-color:rgba(65,201,121,.62);box-shadow:0 25px 90px rgba(0,0,0,.72),0 0 70px rgba(65,201,121,.22)}.match-modal.lose{border-color:rgba(216,73,73,.58)}.match-modal img{width:min(250px,76vw);height:auto;margin-bottom:10px}.match-modal h2{font-size:42px;line-height:1;margin:10px 0;color:var(--gold);text-transform:uppercase}.match-modal.win h2{color:#7dffa8}.match-modal.lose h2{color:#ff7777}.match-modal p{font-size:17px;color:#eadfcb}.final-score{display:grid;grid-template-columns:1fr auto;gap:6px 18px;align-items:center;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:14px;margin:14px auto;text-align:left}.final-score span{color:#d8cdb8;text-transform:uppercase;font-size:12px;font-weight:900;letter-spacing:.6px}.final-score strong{font-size:30px;color:var(--gold);text-align:right}.modal-actions{justify-content:center;margin-top:14px}.modal-actions button{min-width:170px}.match-modal small{display:block;color:var(--muted);line-height:1.45;margin-top:12px}.table-status .badge.gold{background:rgba(245,189,39,.15);border-color:rgba(245,189,39,.38)}
@media(max-width:900px){.header-delivery{order:2;width:100%;margin:4px 0}.header-delivery .delivery-btn{flex:1}.game-top-actions{width:100%;justify-content:stretch}.game-delivery{width:100%;order:-1}.game-delivery .delivery-btn{flex:1}.home-content{grid-template-columns:1fr;min-height:calc(100vh - 130px);align-items:end;padding:28px 0}.home-card{max-width:none}.delivery-links{width:100%}.home-delivery .delivery-btn{flex:1}.truco-alert-big{padding:22px}.truco-alert-big strong{font-size:34px}.truco-actions button{min-width:120px}.match-modal h2{font-size:32px}.modal-actions button{min-width:0;flex:1}}
@media(max-width:520px){.delivery-btn{font-size:12px;padding:9px 10px}.home-delivery{flex-direction:column}.home-delivery .delivery-btn{width:100%}.home-card h1{font-size:36px;letter-spacing:-1px}.home-card p{font-size:15px}.truco-alert-big{padding:18px 14px}.truco-alert-big strong{font-size:28px}.truco-actions{flex-direction:column}.truco-actions button{width:100%}.match-modal{padding:22px 16px}.match-modal h2{font-size:28px}.final-score strong{font-size:26px}.modal-actions{flex-direction:column}.modal-actions button{width:100%}}

/* Ajuste das salas abertas em formato tabela/lista */
.rooms-table-card{padding:0;overflow:hidden}.rooms-table{width:100%;border-collapse:collapse}.rooms-table th{font-size:12px;text-transform:uppercase;letter-spacing:.7px;color:var(--gold);background:rgba(245,189,39,.08);border-bottom:1px solid rgba(245,189,39,.22);padding:14px 16px;text-align:left}.rooms-table td{padding:16px;border-bottom:1px solid rgba(255,255,255,.07);vertical-align:middle}.rooms-table tr:last-child td{border-bottom:none}.rooms-table tr:hover td{background:rgba(245,189,39,.045)}.rooms-table td strong{font-size:16px}.rooms-table td small{display:block;color:var(--muted);font-size:12px;margin-top:4px}.room-actions{gap:8px;flex-wrap:nowrap}.room-actions button{padding:10px 14px}.room-timer{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:900;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);white-space:nowrap}.room-timer b{font-size:14px}.room-timer.green{color:#9effbf;border-color:rgba(45,166,92,.46);background:rgba(45,166,92,.12)}.room-timer.red{color:#ffb7a9;border-color:rgba(216,73,73,.48);background:rgba(216,73,73,.12)}.empty-list{padding:18px;color:var(--muted);text-align:center}
@media(max-width:820px){.rooms-table,.rooms-table thead,.rooms-table tbody,.rooms-table tr,.rooms-table th,.rooms-table td{display:block}.rooms-table thead{display:none}.rooms-table tr{padding:16px;border-bottom:1px solid rgba(245,189,39,.18)}.rooms-table tr:last-child{border-bottom:none}.rooms-table td{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:none;padding:8px 0}.rooms-table td:before{content:attr(data-label);color:var(--gold);font-size:11px;text-transform:uppercase;letter-spacing:.6px;font-weight:900;min-width:92px}.rooms-table td[data-label="Sala"]{display:block}.rooms-table td[data-label="Sala"]:before{display:block;margin-bottom:8px}.room-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.room-actions button{width:100%}.rooms-table td[data-label="Ações"]{display:block}.rooms-table td[data-label="Ações"]:before{display:block;margin-bottom:8px}.rooms-table-card{padding:0 16px}}
@media(max-width:480px){.room-actions{grid-template-columns:1fr}.rooms-table td{align-items:flex-start}.rooms-table td:before{min-width:86px}.room-timer{white-space:normal;text-align:right;justify-content:flex-end}}


/* Capa oficial dentro da página inicial */
.home-content{grid-template-columns:minmax(300px,560px) minmax(360px,1fr)!important;align-items:center!important;gap:32px!important}
.home-showcase{position:relative;overflow:hidden;border:1px solid rgba(245,189,39,.32);border-radius:30px;padding:10px;background:linear-gradient(180deg,rgba(0,0,0,.42),rgba(0,0,0,.76));box-shadow:0 30px 100px rgba(0,0,0,.74),0 0 45px rgba(245,189,39,.10);backdrop-filter:blur(4px)}
.home-showcase:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 50% 35%,rgba(245,189,39,.14),transparent 42%);pointer-events:none;z-index:1}
.home-showcase img{position:relative;z-index:2;display:block;width:100%;height:min(58vh,540px);object-fit:contain;object-position:center;border-radius:22px;background:rgba(0,0,0,.35)}
@media(max-width:900px){.home-content{grid-template-columns:1fr!important;gap:18px!important;min-height:auto!important;padding:24px 0 34px!important}.home-showcase{order:2;width:100%}.home-showcase img{height:auto;max-height:420px}.home-card{order:1}}
@media(max-width:520px){.home-showcase{border-radius:22px;padding:7px}.home-showcase img{border-radius:16px;max-height:320px}.home-content{padding:16px 0 28px!important}}

/* Ajustes: sala sem delivery duplicado e lista rápida de salas públicas na mesa */
.game-top-actions{justify-content:flex-end}.leave-room-btn{background:linear-gradient(135deg,#2b2b2b,#141414)!important;color:#fff!important;border:1px solid rgba(245,189,39,.28)!important}.public-rooms-mini-card{padding:16px}.mini-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.mini-card-head h3{margin:0}.mini-public-rooms{display:flex;flex-direction:column;gap:8px}.mini-room-row{display:flex;align-items:center;justify-content:space-between;gap:10px;background:rgba(0,0,0,.42);border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:10px}.mini-room-row strong{display:block;font-size:14px;color:#fff;line-height:1.2}.mini-room-row small{display:block;color:var(--muted);font-size:11px;line-height:1.35;margin-top:3px}.mini-room-row button{white-space:nowrap;padding:8px 10px;font-size:12px;border-radius:10px}.home-card .badge.gold{text-transform:none}.game-top-actions .delivery-links{display:none!important}
@media(max-width:900px){.mini-room-row{align-items:flex-start}.mini-card-head{align-items:flex-start}.mini-card-head button{padding:8px 10px}.game-top-actions{justify-content:stretch}.leave-room-btn{width:100%}}
@media(max-width:520px){.mini-room-row{display:grid;grid-template-columns:1fr}.mini-room-row button{width:100%}.mini-card-head{flex-direction:column}.mini-card-head button{width:100%}}

/* Tela inicial estilo Batalha Naval, adaptada para o Truco */
html,body{background:#070707;}
.app-shell-header{
  width:min(1240px,calc(100% - 42px));
  margin:14px auto 0;
  border:1px solid rgba(245,189,39,.34);
  border-radius:22px;
  padding:12px 16px;
  background:linear-gradient(180deg,rgba(12,12,12,.94),rgba(4,4,4,.92));
  box-shadow:0 18px 60px rgba(0,0,0,.42), inset 0 0 0 1px rgba(255,255,255,.03);
}
.app-shell-header .brand img{height:54px;max-width:155px;}
.app-shell-header .brand-title{font-size:22px;letter-spacing:.3px;}
.app-shell-header .brand-sub{font-size:11px;letter-spacing:2.3px;color:#d5c9b1;}
.logged-user{background:rgba(245,189,39,.1);border-color:rgba(245,189,39,.45);color:#ffe08a;}
.link-button{background:transparent!important;box-shadow:none!important;color:#f5bd27!important;border:0!important;padding:8px 10px!important;text-decoration:underline;}
.wide-button{width:100%;}
.landing-naval{
  min-height:calc(100vh - 105px);
  padding:22px 0 58px;
  background:
    radial-gradient(circle at 78% 16%,rgba(96,31,9,.35),transparent 30%),
    radial-gradient(circle at 24% 86%,rgba(245,189,39,.10),transparent 30%),
    #070707;
}
.landing-shell{width:min(1150px,calc(100% - 44px));margin:0 auto;}
.landing-hero-panel{
  display:grid;
  grid-template-columns:minmax(0,1.9fr) minmax(310px,.9fr);
  overflow:hidden;
  border:1px solid rgba(245,189,39,.32);
  border-radius:26px;
  background:linear-gradient(180deg,rgba(16,16,16,.92),rgba(4,4,4,.96));
  box-shadow:0 25px 90px rgba(0,0,0,.5);
}
.landing-cover{min-height:390px;background:#000;position:relative;overflow:hidden;}
.landing-cover:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.05) 62%,rgba(0,0,0,.78) 100%);pointer-events:none;}
.landing-cover img{width:100%;height:100%;object-fit:cover;object-position:center;display:block;filter:saturate(.98) contrast(1.04);}
.landing-copy{display:flex;flex-direction:column;justify-content:center;padding:34px 34px 34px 38px;background:radial-gradient(circle at 10% 18%,rgba(245,189,39,.1),transparent 31%),rgba(8,8,8,.72);}
.landing-logo{width:120px;height:auto;margin-bottom:20px;opacity:.92;}
.landing-kicker{color:#f5bd27;text-transform:uppercase;font-size:12px;font-weight:900;letter-spacing:3px;line-height:1.6;}
.landing-copy h1{font-size:clamp(36px,4.8vw,58px);line-height:1.04;margin:18px 0 14px;color:#f6f6f6;letter-spacing:.2px;}
.landing-copy p{color:#d5c9b1;font-size:18px;line-height:1.45;margin:0 0 20px;}
.how-grid{display:grid;grid-template-columns:1fr;gap:8px;margin-top:6px;}
.how-grid span{border:1px solid rgba(245,189,39,.22);background:rgba(245,189,39,.07);border-radius:999px;padding:9px 12px;color:#f6ddb0;font-size:13px;font-weight:800;}
.landing-forms-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:20px;}
.landing-card{border:1px solid rgba(245,189,39,.28);border-radius:24px;background:linear-gradient(180deg,rgba(18,18,18,.94),rgba(5,5,5,.97));padding:22px;box-shadow:0 20px 70px rgba(0,0,0,.35);}
.landing-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px;}
.landing-card h2{margin:0;font-size:18px;letter-spacing:.2px;}
.landing-card small{color:#b9b1a4;}
.landing-actions{margin-top:16px;}
.landing-actions button{min-width:132px;}
.landing-card label{text-transform:uppercase;font-weight:900;letter-spacing:1.2px;color:#d9d0bd;font-size:12px;}
.landing-card input{background:#050505;border-color:rgba(255,255,255,.14);border-radius:16px;min-height:55px;font-weight:800;}
.visitor-card .wide-button{background:linear-gradient(135deg,rgba(245,189,39,.28),rgba(245,189,39,.16));border:1px solid rgba(245,189,39,.32);color:#fff;}
@media(max-width:980px){
  .app-shell-header{position:relative;top:auto;width:min(100% - 24px,1240px);margin-top:10px;align-items:flex-start;flex-direction:column;}
  .app-shell-header .nav{width:100%;justify-content:flex-start;}
  .landing-shell{width:min(100% - 24px,1150px);}
  .landing-hero-panel{grid-template-columns:1fr;}
  .landing-cover{min-height:300px;}
  .landing-copy{padding:26px;}
  .landing-forms-grid{grid-template-columns:1fr;}
}
@media(max-width:620px){
  .app-shell-header .brand{gap:10px;}
  .app-shell-header .brand img{height:44px;max-width:125px;}
  .app-shell-header .brand-title{font-size:17px;}
  .app-shell-header .brand-sub{font-size:9px;letter-spacing:1.7px;}
  .app-shell-header .nav button,.app-shell-header .delivery-btn{flex:1;font-size:12px;padding:9px 8px;}
  .logged-user{width:100%;text-align:center;}
  .landing-naval{padding-top:14px;}
  .landing-cover{min-height:220px;}
  .landing-copy h1{font-size:34px;}
  .landing-copy p{font-size:15px;}
  .landing-copy{padding:20px;}
  .landing-logo{width:92px;margin-bottom:12px;}
  .landing-forms-grid{gap:14px;margin-top:14px;}
  .landing-card{padding:18px;}
  .landing-card-head{display:block;}
  .landing-actions button{width:100%;}
}


/* Ajuste da página inicial: proporção da capa e modal Como Funciona */
.landing-shell{width:min(1080px,calc(100% - 44px));}
.landing-hero-panel{
  grid-template-columns:minmax(0,1.55fr) minmax(300px,.78fr) !important;
  max-height:390px;
}
.landing-cover{min-height:320px !important;height:360px;}
.landing-cover img{object-fit:cover;object-position:center;}
.landing-copy{padding:28px 30px !important;}
.landing-copy h1{font-size:clamp(34px,4.1vw,52px) !important;}
.landing-copy p{font-size:16px !important;line-height:1.42 !important;margin-bottom:14px !important;}
.how-grid{display:none !important;}
.landing-quick-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:8px;}
.landing-quick-actions button{min-width:145px;}
.how-modal-backdrop{position:fixed;inset:0;z-index:120;background:rgba(0,0,0,.76);display:flex;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(6px);}
.how-modal{position:relative;width:min(720px,96vw);max-height:92vh;overflow:auto;background:linear-gradient(180deg,rgba(18,18,18,.98),rgba(5,5,5,.98));border:1px solid rgba(245,189,39,.42);border-radius:28px;padding:30px;box-shadow:0 30px 120px rgba(0,0,0,.78),0 0 70px rgba(245,189,39,.12);}
.how-modal img{width:150px;height:auto;margin-bottom:14px;}
.how-modal h2{font-size:clamp(26px,4vw,40px);line-height:1.08;margin:12px 0 14px;color:#fff;}
.how-modal p{font-size:16px;line-height:1.55;color:#e7dcc8;}
.how-close{position:absolute;top:16px;right:16px;background:#252525!important;color:#fff!important;border:1px solid rgba(255,255,255,.14)!important;box-shadow:none!important;padding:9px 12px!important;border-radius:12px!important;}
.how-steps{display:grid;grid-template-columns:1fr;gap:10px;margin:18px 0;}
.how-steps div{display:grid;grid-template-columns:42px 1fr;gap:12px;align-items:center;background:rgba(245,189,39,.07);border:1px solid rgba(245,189,39,.18);border-radius:16px;padding:12px;}
.how-steps strong{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#f5bd27,#d99410);color:#171000;font-size:20px;}
.how-steps span{color:#f1e5cf;line-height:1.4;}
@media(max-width:980px){
  .landing-hero-panel{grid-template-columns:1fr !important;max-height:none;}
  .landing-cover{height:auto;min-height:260px !important;}
  .landing-copy{padding:24px !important;}
}
@media(max-width:620px){
  .landing-shell{width:min(100% - 20px,1080px);}
  .landing-cover{min-height:190px !important;}
  .landing-quick-actions{display:grid;grid-template-columns:1fr;}
  .landing-quick-actions button{width:100%;}
  .how-modal{padding:24px 16px;}
  .how-close{position:relative;top:auto;right:auto;margin-left:auto;display:block;margin-bottom:8px;}
  .how-steps div{grid-template-columns:34px 1fr;padding:10px;}
  .how-steps strong{width:34px;height:34px;font-size:16px;}
}

/* ===============================
   Responsividade final - celular, tablet e desktop
   =============================== */
html{overflow-x:hidden;-webkit-text-size-adjust:100%;}
body{overflow-x:hidden;}
img{max-width:100%;height:auto;}
button,input,select,textarea{max-width:100%;}
.app{width:100%;overflow-x:hidden;}

/* Header fluido */
.app-shell-header{
  max-width:1240px;
}
.app-shell-header .nav{
  min-width:0;
}
.delivery-links{
  min-width:0;
}

/* Páginas internas e cards */
.container,.game-page,.landing-shell{
  max-width:100%;
}
.card,.panel,.hero-card,.landing-card{
  min-width:0;
}
.table-wrap,.rooms-table-card{
  width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

/* Mesa: evita estouro no desktop e prepara escalonamento */
.game-layout,.game-table,.table-grid,.side-panel,.bottom-playbar,.playing-area,.hand{
  min-width:0;
}
.seat,.score-pill,.action-dock,.chat-box,.logs-box{
  min-width:0;
}
.card-face{flex:0 0 auto;}
.hand{max-width:100%;}

/* Desktop médio / notebook */
@media (max-width:1280px){
  .game-page{width:min(100% - 28px,1180px);}
  .game-layout{grid-template-columns:minmax(0,1fr) 310px;gap:12px;}
  .game-table.table-modern{min-height:630px;border-width:8px;border-radius:34px;padding:14px;}
  .table-grid{grid-template-columns:155px minmax(0,1fr) 155px;min-height:500px;}
  .card-face{width:76px;height:110px;}
  .card-face.small-card{width:42px;height:60px;}
  .score-pill strong{font-size:36px;}
  .action-dock{min-width:250px;}
  .landing-shell{width:min(1080px,calc(100% - 34px));}
}

/* Tablet e telas abaixo de 1100px */
@media (max-width:1100px){
  .app-shell-header{
    width:calc(100% - 24px);
    margin-top:10px;
    padding:10px 12px;
    gap:10px;
  }
  .app-shell-header .brand{width:100%;}
  .app-shell-header .nav{
    width:100%;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(115px,1fr));
    gap:8px;
  }
  .app-shell-header .nav > *{width:100%;justify-content:center;text-align:center;}
  .header-delivery{display:contents!important;}
  .delivery-btn,.app-shell-header .nav button,.user-pill{min-height:40px;display:flex;align-items:center;justify-content:center;}

  .landing-naval{padding:16px 0 42px;min-height:auto;}
  .landing-shell{width:calc(100% - 24px)!important;}
  .landing-hero-panel{
    grid-template-columns:1fr!important;
    max-height:none!important;
    border-radius:22px;
  }
  .landing-cover{
    height:auto!important;
    min-height:0!important;
    aspect-ratio:16/8.5;
  }
  .landing-cover img{object-fit:cover;object-position:center;}
  .landing-copy{padding:24px!important;}
  .landing-copy h1{font-size:clamp(32px,7vw,52px)!important;}
  .landing-copy p{font-size:16px!important;}
  .landing-forms-grid{grid-template-columns:1fr!important;gap:14px;}

  .game-page{width:calc(100% - 20px);padding:10px 0 22px;}
  .game-topbar{
    display:grid!important;
    grid-template-columns:1fr auto;
    align-items:center!important;
    gap:10px;
  }
  .game-topbar h1{font-size:22px;}
  .game-topbar p{font-size:13px;line-height:1.35;}
  .game-top-actions{justify-content:flex-end!important;width:auto!important;}
  .leave-room-btn{width:auto!important;white-space:nowrap;}

  .game-layout{grid-template-columns:1fr!important;gap:12px;}
  .side-panel{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }
  .side-panel .card{padding:16px;border-radius:20px;}
  .chat-box,.logs-box{height:160px;}

  .game-table.table-modern{
    display:grid!important;
    grid-template-columns:1fr 1fr;
    grid-template-areas:
      "status status"
      "scoreA scoreB"
      "mesa mesa"
      "barra barra";
    gap:10px;
    min-height:auto!important;
    border-width:6px;
    border-radius:28px;
    padding:12px;
    overflow:visible;
  }
  .game-table.table-modern:before{inset:10px;border-radius:20px;}
  .table-status{
    grid-area:status;
    position:relative!important;
    left:auto!important;
    top:auto!important;
    transform:none!important;
    max-width:100%!important;
    order:0!important;
    margin:0!important;
    justify-content:center;
  }
  .left-score{grid-area:scoreA;}
  .right-score{grid-area:scoreB;}
  .score-pill{
    position:relative!important;
    top:auto!important;
    left:auto!important;
    right:auto!important;
    width:100%;
    min-width:0!important;
    padding:9px 10px;
  }
  .score-pill strong{font-size:34px;}
  .score-pill span,.score-pill small{font-size:11px;}
  .table-grid{
    grid-area:mesa;
    grid-template-columns:145px minmax(0,1fr) 145px;
    grid-template-rows:auto minmax(230px,auto) auto;
    min-height:420px!important;
    padding:0!important;
    gap:8px;
  }
  .bottom-playbar{
    grid-area:barra;
    margin-top:0!important;
  }
  .felt-center{min-height:245px;}
  .playing-area.modern{min-height:130px;padding:8px;gap:7px;}
  .vira.compact{right:0;top:0;}
  .seat{padding:9px;min-height:78px;border-radius:16px;}
  .seat strong{max-width:140px;font-size:14px;}
  .seat small{font-size:11px;line-height:1.25;}
  .avatar{width:36px;height:36px;font-size:18px;}
  .card-face{width:68px;height:98px;border-radius:10px;padding:6px;}
  .card-face.small-card{width:36px;height:52px;}
  .card-rank{font-size:18px;}
  .card-symbol{font-size:24px;}
  .card-mini{font-size:10px;}
  .action-dock{min-width:0;width:100%;padding:12px;border-radius:18px;}
  .bottom-playbar{display:grid!important;grid-template-columns:1fr 260px;align-items:end;}
}

/* Tablet vertical e celular grande */
@media (max-width:820px){
  .brand-title{font-size:18px!important;}
  .brand-sub{font-size:10px!important;letter-spacing:1.4px!important;}
  .app-shell-header .brand img{height:44px!important;max-width:130px!important;}
  .app-shell-header .nav{grid-template-columns:repeat(2,minmax(0,1fr));}
  .logged-user{grid-column:1/-1;}

  .landing-cover{aspect-ratio:16/9;}
  .landing-copy{padding:20px!important;}
  .landing-kicker{font-size:10px;letter-spacing:2px;}
  .landing-copy h1{font-size:clamp(30px,9vw,44px)!important;}
  .landing-quick-actions,.landing-actions{display:grid!important;grid-template-columns:1fr;}
  .landing-quick-actions button,.landing-actions button{width:100%;}
  .form-row{grid-template-columns:1fr!important;}

  .game-topbar{grid-template-columns:1fr!important;}
  .game-top-actions{justify-content:stretch!important;width:100%!important;}
  .leave-room-btn{width:100%!important;}

  .game-table.table-modern{
    grid-template-columns:1fr 1fr;
    gap:8px;
    padding:10px;
    border-radius:24px;
    border-width:5px;
  }
  .table-status{gap:6px;}
  .table-status .badge{font-size:11px;padding:5px 7px;}
  .score-pill{border-radius:14px;}
  .score-pill strong{font-size:30px;}

  .table-grid{
    grid-template-columns:1fr 1fr!important;
    grid-template-areas:
      "top top"
      "left right"
      "center center"
      "bottom bottom"!important;
    grid-template-rows:auto auto auto auto!important;
    min-height:0!important;
  }
  .seat-0,.seat-2{width:100%!important;justify-self:stretch!important;}
  .seat-1,.seat-3{align-self:stretch!important;}
  .seat{min-height:68px;padding:8px;}
  .seat-head{gap:7px;}
  .seat strong{max-width:calc(100vw - 210px);font-size:13px;}
  .seat small{font-size:10.5px;}
  .mini-hand{display:none!important;}
  .felt-center{min-height:220px;display:block;text-align:center;padding:8px 0;}
  .vira.compact{
    position:relative!important;
    display:inline-flex;
    align-items:center;
    gap:6px;
    margin:2px auto 8px;
    padding:6px 8px;
  }
  .vira.compact .card-face.small-card{width:32px;height:46px;}
  .playing-area.modern{min-height:112px;}
  .winner-hint{position:relative!important;margin:8px auto 0;bottom:auto!important;font-size:13px;}

  .bottom-playbar{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px;
  }
  .my-hand-wrap{text-align:left;}
  .my-hand-wrap small{display:block;text-align:center;}
  .hand{justify-content:center;gap:6px;}
  .fan-hand .card-face:nth-child(n){transform:none!important;}
  .hand .card-face:hover{transform:translateY(-6px) scale(1.02)!important;}
  .action-dock{text-align:center;}
  .action-buttons{display:grid;grid-template-columns:1fr;}
  .action-buttons button{width:100%;}

  .side-panel{grid-template-columns:1fr!important;}
  .chat-box,.logs-box{height:150px;}
  .chat-form{display:grid!important;grid-template-columns:1fr auto;}
  .public-rooms-mini-card{order:-1;}
}

/* Celular */
@media (max-width:560px){
  button{padding:11px 13px;border-radius:12px;}
  input,select,textarea{padding:12px;border-radius:12px;}
  .app-shell-header{
    width:calc(100% - 14px)!important;
    margin-top:7px!important;
    padding:9px!important;
    border-radius:18px!important;
  }
  .app-shell-header .brand{align-items:center;gap:8px;}
  .app-shell-header .brand img{height:38px!important;max-width:105px!important;}
  .brand-title{font-size:15px!important;line-height:1.1;}
  .brand-sub{font-size:8.5px!important;letter-spacing:1px!important;}
  .app-shell-header .nav{grid-template-columns:1fr 1fr;gap:6px;}
  .app-shell-header .nav button,.app-shell-header .delivery-btn,.user-pill{font-size:11px!important;padding:8px 7px!important;min-height:36px;}

  .landing-naval{padding:10px 0 26px!important;}
  .landing-shell{width:calc(100% - 14px)!important;}
  .landing-hero-panel,.landing-card{border-radius:18px;}
  .landing-cover{aspect-ratio:16/10;}
  .landing-cover:after{background:linear-gradient(180deg,rgba(0,0,0,.08),rgba(0,0,0,.36));}
  .landing-copy{padding:16px!important;}
  .landing-logo{width:82px!important;}
  .landing-copy h1{font-size:30px!important;line-height:1.02!important;margin:12px 0!important;}
  .landing-copy p{font-size:14px!important;line-height:1.35!important;}
  .landing-card{padding:15px!important;}
  .landing-card h2{font-size:16px;}
  .landing-card input{min-height:48px;}

  .container{width:calc(100% - 14px)!important;padding:14px 0!important;}
  .screen-title{font-size:25px;}
  .grid{gap:12px;}
  .card,.panel,.hero-card{padding:16px;border-radius:18px;}

  .game-page{width:calc(100% - 8px)!important;padding:7px 0 18px!important;}
  .game-topbar{margin-bottom:8px;gap:7px;}
  .game-topbar h1{font-size:19px;}
  .game-topbar p{font-size:12px;}
  .game-table.table-modern{
    border-width:4px;
    border-radius:18px;
    padding:7px;
    gap:7px;
    background-size:8px 8px,100% 100%;
  }
  .game-table.table-modern:before{inset:6px;border-radius:13px;}
  .score-pill{padding:7px 5px;border-radius:12px;}
  .score-pill span,.score-pill small{font-size:9.5px;letter-spacing:.3px;}
  .score-pill strong{font-size:26px;}
  .table-status{justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px;-webkit-overflow-scrolling:touch;}
  .table-status .badge{flex:0 0 auto;font-size:10px;padding:5px 7px;}

  .table-grid{gap:6px!important;}
  .seat{min-height:58px;border-radius:13px;padding:6px;}
  .avatar{width:30px;height:30px;font-size:15px;}
  .seat strong{font-size:12px;max-width:120px;}
  .seat small{font-size:9.5px;}
  .turn-badge{font-size:10px;padding:3px 6px;margin-top:5px;}
  .felt-center{min-height:195px;padding:6px 0;}
  .playing-area.modern{min-height:100px;gap:4px;padding:5px;}
  .empty-table-message{padding:12px;font-size:13px;border-radius:14px;}
  .table-play span{font-size:10px;max-width:68px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  .card-face{width:54px;height:78px;border-radius:8px;padding:5px;border-width:1px;}
  .card-face.small-card{width:28px;height:40px;border-radius:5px;padding:3px;}
  .card-rank{font-size:15px;}
  .card-symbol{font-size:19px;}
  .card-mini{font-size:8px;}
  .hand{gap:5px;margin-top:7px;}
  .my-hand-wrap small{font-size:10px;}
  .action-dock{padding:10px;border-radius:15px;}
  .action-dock strong{font-size:14px;margin-bottom:5px;}
  .action-hint{font-size:11px;}
  .action-buttons button{font-size:13px;padding:10px;}
  .truco-alert-big{max-width:100%;padding:15px 10px;border-radius:16px;}
  .truco-alert-big strong{font-size:24px;}
  .truco-alert-big p{font-size:13px;margin:7px 0;}
  .truco-actions{display:grid!important;grid-template-columns:1fr;gap:7px;}
  .truco-actions button{width:100%;font-size:13px;min-width:0;padding:10px 8px;}
  .winner-hint{font-size:12px;padding:8px;}

  .side-panel{gap:9px;}
  .side-panel .card{padding:13px;border-radius:16px;}
  .side-panel h3{margin-top:0;font-size:16px;}
  .chat-box,.logs-box{height:130px;border-radius:12px;padding:9px;}
  .chat-form{grid-template-columns:1fr!important;gap:7px;}
  .chat-form button{width:100%;}
  .mini-room-row{padding:9px;border-radius:12px;}
  .mini-room-row strong{font-size:13px;}
  .mini-room-row small{font-size:10.5px;}
}

/* Celular muito estreito */
@media (max-width:380px){
  .app-shell-header .nav{grid-template-columns:1fr;}
  .landing-copy h1{font-size:27px!important;}
  .game-table.table-modern{grid-template-columns:1fr;grid-template-areas:"status" "scoreA" "scoreB" "mesa" "barra";}
  .score-pill{display:grid;grid-template-columns:1fr auto;align-items:center;text-align:left;gap:4px 8px;}
  .score-pill strong{grid-row:1/3;grid-column:2;font-size:24px;}
  .table-grid{grid-template-columns:1fr!important;grid-template-areas:"top" "left" "right" "center" "bottom"!important;}
  .seat strong{max-width:190px;}
  .card-face{width:50px;height:72px;}
  .playing-area.modern{gap:3px;}
}
