/* A Caverna Games - Mobile/Tablet Experience V29
   Reescrita limpa: NÃO altera desktop/notebook.
   A camada só ativa quando /js/mobile-game.js marca body.acg-mobile-game ou body.acg-tablet-game.
*/
:root{
  --acg-dock-h:46px;
  --acg-safe-bottom:env(safe-area-inset-bottom,0px);
  --acg-mobile-gold:#f5bd27;
  --acg-mobile-line:rgba(245,189,39,.32);
}
.acg-mobile-only{display:none!important}
.acg-desktop-only{display:initial!important}
.acg-mobile-dock,.acg-mobile-drawer-backdrop,.acg-mobile-orientation{display:none!important}
body:not(.acg-mobile-game):not(.acg-tablet-game) .acg-mobile-dock,
body:not(.acg-mobile-game):not(.acg-tablet-game) .acg-mobile-drawer-backdrop,
body:not(.acg-mobile-game):not(.acg-tablet-game) .acg-mobile-orientation{display:none!important}

body.acg-mobile-game,
body.acg-tablet-game{
  overflow-x:hidden!important;
  touch-action:auto!important;
  -webkit-tap-highlight-color:transparent;
  background:#050505;
}
body.acg-mobile-game input,
body.acg-tablet-game input,
body.acg-mobile-game select,
body.acg-tablet-game select,
body.acg-mobile-game textarea,
body.acg-tablet-game textarea{font-size:16px!important;}
body.acg-mobile-game.acg-in-game,
body.acg-tablet-game.acg-in-game{padding-bottom:calc(var(--acg-dock-h) + var(--acg-safe-bottom) + 6px)!important;}
body.acg-mobile-game.acg-drawer-open,
body.acg-tablet-game.acg-drawer-open{overflow:hidden!important;}
body.acg-mobile-game .acg-mobile-only,
body.acg-tablet-game .acg-mobile-only{display:initial!important}
body.acg-mobile-game .acg-desktop-only,
body.acg-tablet-game .acg-desktop-only{display:none!important}

/* Dock inferior: aparece só durante partida e só em mobile/tablet. */
body.acg-mobile-game.acg-in-game .acg-mobile-dock,
body.acg-tablet-game.acg-in-game .acg-mobile-dock{
  position:fixed;left:6px;right:6px;bottom:calc(5px + var(--acg-safe-bottom));z-index:1500;
  height:var(--acg-dock-h);display:flex!important;align-items:center;justify-content:space-around;gap:4px;
  padding:4px;border:1px solid var(--acg-mobile-line);border-radius:15px;
  background:linear-gradient(180deg,rgba(20,20,20,.96),rgba(3,3,3,.96));
  box-shadow:0 -10px 28px rgba(0,0,0,.55),0 0 0 1px rgba(255,255,255,.04);backdrop-filter:blur(12px);
}
body.acg-mobile-game.acg-in-game .acg-mobile-dock button,
body.acg-tablet-game.acg-in-game .acg-mobile-dock button{
  appearance:none;border:0;background:rgba(255,255,255,.065);color:#fff;border-radius:11px;min-height:36px;height:36px;min-width:0;flex:1;
  padding:3px 2px;font-weight:900;font-size:10px;line-height:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;box-shadow:none;
}
body.acg-mobile-game.acg-in-game .acg-mobile-dock button strong,
body.acg-tablet-game.acg-in-game .acg-mobile-dock button strong{font-size:13px;line-height:1}
body.acg-mobile-game.acg-in-game .acg-mobile-dock button.acg-primary,
body.acg-tablet-game.acg-in-game .acg-mobile-dock button.acg-primary{background:linear-gradient(135deg,var(--acg-mobile-gold),#d99506);color:#171000}

body.acg-mobile-game.acg-drawer-open .acg-mobile-drawer-backdrop,
body.acg-tablet-game.acg-drawer-open .acg-mobile-drawer-backdrop{display:block!important;position:fixed;inset:0;z-index:1390;background:rgba(0,0,0,.48);backdrop-filter:blur(3px)}

body.acg-mobile-game.acg-in-game .side-panel,
body.acg-mobile-game.acg-in-game .side,
body.acg-mobile-game.acg-in-game .chat-panel,
body.acg-tablet-game.acg-in-game .side-panel,
body.acg-tablet-game.acg-in-game .side,
body.acg-tablet-game.acg-in-game .chat-panel{
  position:fixed!important;left:8px!important;right:8px!important;bottom:calc(var(--acg-dock-h) + 12px + var(--acg-safe-bottom))!important;top:auto!important;z-index:1400!important;
  max-height:min(60svh,420px)!important;overflow:auto!important;display:block!important;transform:translateY(118%)!important;transition:transform .2s ease!important;
  background:linear-gradient(180deg,rgba(17,17,17,.98),rgba(4,4,4,.98))!important;border:1px solid var(--acg-mobile-line)!important;border-radius:16px!important;padding:10px!important;
  box-shadow:0 -20px 60px rgba(0,0,0,.72)!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;
}
body.acg-mobile-game.acg-drawer-open .side-panel,
body.acg-mobile-game.acg-drawer-open .side,
body.acg-mobile-game.acg-drawer-open .chat-panel,
body.acg-tablet-game.acg-drawer-open .side-panel,
body.acg-tablet-game.acg-drawer-open .side,
body.acg-tablet-game.acg-drawer-open .chat-panel{transform:translateY(0)!important;}
body.acg-mobile-game.acg-in-game .side-panel .card,
body.acg-mobile-game.acg-in-game .side .card,
body.acg-mobile-game.acg-in-game .chat-panel .card,
body.acg-tablet-game.acg-in-game .side-panel .card,
body.acg-tablet-game.acg-in-game .side .card,
body.acg-tablet-game.acg-in-game .chat-panel .card{display:none!important;margin:0!important;padding:10px!important;border-radius:14px!important;box-shadow:none!important;}
body.acg-mobile-game.acg-pane-chat .side-panel .card[data-acg-pane="chat"],
body.acg-mobile-game.acg-pane-chat .side .card[data-acg-pane="chat"],
body.acg-mobile-game.acg-pane-chat .chat-panel,
body.acg-mobile-game.acg-pane-history .side-panel .card[data-acg-pane="history"],
body.acg-mobile-game.acg-pane-history .side .card[data-acg-pane="history"],
body.acg-mobile-game.acg-pane-players .side-panel .card[data-acg-pane="players"],
body.acg-mobile-game.acg-pane-players .side .card[data-acg-pane="players"],
body.acg-mobile-game.acg-pane-room .side-panel .card[data-acg-pane="room"],
body.acg-mobile-game.acg-pane-room .side .card[data-acg-pane="room"],
body.acg-tablet-game.acg-pane-chat .side-panel .card[data-acg-pane="chat"],
body.acg-tablet-game.acg-pane-chat .side .card[data-acg-pane="chat"],
body.acg-tablet-game.acg-pane-chat .chat-panel,
body.acg-tablet-game.acg-pane-history .side-panel .card[data-acg-pane="history"],
body.acg-tablet-game.acg-pane-history .side .card[data-acg-pane="history"],
body.acg-tablet-game.acg-pane-players .side-panel .card[data-acg-pane="players"],
body.acg-tablet-game.acg-pane-players .side .card[data-acg-pane="players"],
body.acg-tablet-game.acg-pane-room .side-panel .card[data-acg-pane="room"],
body.acg-tablet-game.acg-pane-room .side .card[data-acg-pane="room"]{display:block!important;}
body.acg-mobile-game .chat-box,
body.acg-mobile-game .chat-messages,
body.acg-mobile-game .chat,
body.acg-mobile-game .moves,
body.acg-mobile-game .logs-box,
body.acg-tablet-game .chat-box,
body.acg-tablet-game .chat-messages,
body.acg-tablet-game .chat,
body.acg-tablet-game .moves,
body.acg-tablet-game .logs-box{height:min(38svh,300px)!important;max-height:38svh!important;overflow:auto!important;}

/* Dica horizontal: discreta e sem bloquear toque. */
body.acg-mobile-game.acg-show-orientation .acg-mobile-orientation{
  display:block!important;position:fixed;left:12px;right:12px;bottom:calc(var(--acg-dock-h) + 10px + var(--acg-safe-bottom));z-index:1200;
  background:rgba(245,189,39,.88);color:#171000;border-radius:13px;padding:7px 10px;font-weight:900;text-align:center;font-size:12px;line-height:1.2;
  pointer-events:none!important;box-shadow:0 8px 26px rgba(0,0,0,.38);
}

/* Telas iniciais mobile/tablet: proporcionais, sem estourar. */
body.acg-mobile-game:not(.acg-in-game) .container,
body.acg-mobile-game:not(.acg-in-game) .home-modern,
body.acg-mobile-game:not(.acg-in-game) .landing-shell,
body.acg-tablet-game:not(.acg-in-game) .container,
body.acg-tablet-game:not(.acg-in-game) .home-modern,
body.acg-tablet-game:not(.acg-in-game) .landing-shell{width:calc(100% - 18px)!important;max-width:100%!important;margin-left:auto!important;margin-right:auto!important;padding-left:0!important;padding-right:0!important;}
body.acg-mobile-game:not(.acg-in-game) .grid-2,
body.acg-mobile-game:not(.acg-in-game) .grid-3,
body.acg-tablet-game:not(.acg-in-game) .grid-2,
body.acg-tablet-game:not(.acg-in-game) .grid-3{grid-template-columns:1fr!important;}
body.acg-mobile-game:not(.acg-in-game) .card,
body.acg-tablet-game:not(.acg-in-game) .card{padding:16px!important;border-radius:18px!important;}
body.acg-tablet-game:not(.acg-in-game) .grid-3{grid-template-columns:repeat(2,minmax(0,1fr))!important;}

/* Header em jogo: compacto apenas em mobile/tablet. */
body.acg-mobile-game.acg-in-game .header,
body.acg-mobile-game.acg-in-game .app-shell-header,
body.acg-mobile-game.acg-in-game .home-main-menu,
body.acg-mobile-game.acg-in-game .topbar,
body.acg-tablet-game.acg-in-game .header,
body.acg-tablet-game.acg-in-game .app-shell-header,
body.acg-tablet-game.acg-in-game .home-main-menu,
body.acg-tablet-game.acg-in-game .topbar{width:calc(100% - 10px)!important;margin:4px auto!important;padding:5px 7px!important;border-radius:12px!important;min-height:0!important;position:relative!important;top:auto!important;display:flex!important;align-items:center!important;gap:6px!important;}
body.acg-mobile-game.acg-in-game .brand img,
body.acg-mobile-game.acg-in-game .menu-brand img,
body.acg-mobile-game.acg-in-game .brand-mini img,
body.acg-tablet-game.acg-in-game .brand img,
body.acg-tablet-game.acg-in-game .menu-brand img,
body.acg-tablet-game.acg-in-game .brand-mini img{height:30px!important;max-height:30px!important;max-width:80px!important;object-fit:contain!important;}
body.acg-mobile-game.acg-in-game .brand-title,
body.acg-mobile-game.acg-in-game .brand h1,
body.acg-mobile-game.acg-in-game .menu-brand strong,
body.acg-tablet-game.acg-in-game .brand-title,
body.acg-tablet-game.acg-in-game .brand h1,
body.acg-tablet-game.acg-in-game .menu-brand strong{font-size:13px!important;line-height:1.05!important;}
body.acg-mobile-game.acg-in-game .brand-sub,
body.acg-mobile-game.acg-in-game .brand small,
body.acg-mobile-game.acg-in-game .menu-brand span,
body.acg-tablet-game.acg-in-game .brand-sub,
body.acg-tablet-game.acg-in-game .brand small,
body.acg-tablet-game.acg-in-game .menu-brand span{font-size:7px!important;letter-spacing:.6px!important;line-height:1.05!important;}
body.acg-mobile-game.acg-in-game .nav,
body.acg-mobile-game.acg-in-game .menu-actions,
body.acg-tablet-game.acg-in-game .nav,
body.acg-tablet-game.acg-in-game .menu-actions{display:flex!important;gap:4px!important;overflow-x:auto!important;flex-wrap:nowrap!important;justify-content:flex-end!important;min-width:0!important;scrollbar-width:none!important;}
body.acg-mobile-game.acg-in-game .nav::-webkit-scrollbar,
body.acg-mobile-game.acg-in-game .menu-actions::-webkit-scrollbar,
body.acg-tablet-game.acg-in-game .nav::-webkit-scrollbar,
body.acg-tablet-game.acg-in-game .menu-actions::-webkit-scrollbar{display:none!important;}
body.acg-mobile-game.acg-in-game .nav button,
body.acg-mobile-game.acg-in-game .nav a,
body.acg-mobile-game.acg-in-game .menu-btn,
body.acg-mobile-game.acg-in-game .delivery-btn,
body.acg-mobile-game.acg-in-game .user-pill,
body.acg-tablet-game.acg-in-game .nav button,
body.acg-tablet-game.acg-in-game .nav a,
body.acg-tablet-game.acg-in-game .menu-btn,
body.acg-tablet-game.acg-in-game .delivery-btn,
body.acg-tablet-game.acg-in-game .user-pill{flex:0 0 auto!important;min-height:28px!important;padding:5px 7px!important;border-radius:8px!important;font-size:10px!important;white-space:nowrap!important;}

/* TRUCO - mobile vertical: mesa visível e controles proporcionais */
body.acg-mobile-game.acg-game-truco.acg-in-game .game-page{width:calc(100vw - 8px)!important;margin:0 auto!important;padding:3px 4px calc(var(--acg-dock-h) + 12px)!important;}
body.acg-mobile-game.acg-game-truco.acg-in-game .game-layout.immersive{display:block!important;width:100%!important;}
body.acg-mobile-game.acg-game-truco.acg-in-game .game-topbar{width:100%!important;margin:3px auto 5px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:6px!important;}
body.acg-mobile-game.acg-game-truco.acg-in-game .game-topbar h1{font-size:18px!important;margin:0!important;line-height:1.05!important;}
body.acg-mobile-game.acg-game-truco.acg-in-game .game-topbar p{font-size:12px!important;margin:2px 0 0!important;line-height:1.1!important;}
body.acg-mobile-game.acg-game-truco.acg-in-game .game-table.table-modern{width:100%!important;min-height:calc(100svh - 155px)!important;border-width:4px!important;border-radius:18px!important;padding:6px!important;overflow:hidden!important;display:grid!important;grid-template-rows:auto 1fr auto!important;}
body.acg-mobile-game.acg-game-truco.acg-in-game .table-status{position:relative!important;left:auto!important;top:auto!important;transform:none!important;max-width:100%!important;display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:5px!important;margin:0 0 6px!important;}
body.acg-mobile-game.acg-game-truco.acg-in-game .score-pill{position:relative!important;top:auto!important;left:auto!important;right:auto!important;min-width:0!important;width:auto!important;padding:5px 8px!important;border-radius:11px!important;}
body.acg-mobile-game.acg-game-truco.acg-in-game .score-pill strong{font-size:30px!important;}
body.acg-mobile-game.acg-game-truco.acg-in-game .table-grid{display:grid!important;grid-template-columns:74px minmax(0,1fr) 74px!important;grid-template-rows:auto minmax(250px,1fr) auto!important;grid-template-areas:"top top top" "left center right" "bottom bottom bottom"!important;gap:5px!important;padding:0!important;min-height:0!important;}
body.acg-mobile-game.acg-game-truco.acg-in-game .seat{min-height:56px!important;padding:6px!important;border-radius:12px!important;gap:5px!important;overflow:hidden!important;}
body.acg-mobile-game.acg-game-truco.acg-in-game .seat-0,
body.acg-mobile-game.acg-game-truco.acg-in-game .seat-2{width:min(360px,100%)!important;justify-self:center!important;}
body.acg-mobile-game.acg-game-truco.acg-in-game .seat-1,
body.acg-mobile-game.acg-game-truco.acg-in-game .seat-3{align-self:stretch!important;display:flex!important;flex-direction:column!important;justify-content:flex-start!important;}
body.acg-mobile-game.acg-game-truco.acg-in-game .avatar{width:30px!important;height:30px!important;font-size:16px!important;flex:0 0 auto!important;}
body.acg-mobile-game.acg-game-truco.acg-in-game .seat strong{font-size:12px!important;line-height:1.05!important;max-width:120px!important;}
body.acg-mobile-game.acg-game-truco.acg-in-game .seat small{font-size:10px!important;line-height:1.05!important;}
body.acg-mobile-game.acg-game-truco.acg-in-game .turn-badge{font-size:11px!important;padding:4px 7px!important;margin-top:4px!important;}
body.acg-mobile-game.acg-game-truco.acg-in-game .felt-center{min-height:0!important;display:grid!important;place-items:center!important;padding:2px!important;}
body.acg-mobile-game.acg-game-truco.acg-in-game .playing-area.modern{min-height:130px!important;padding:4px!important;gap:5px!important;}
body.acg-mobile-game.acg-game-truco.acg-in-game .vira.compact{transform:scale(.88)!important;transform-origin:center!important;padding:5px!important;border-radius:12px!important;}
body.acg-mobile-game.acg-game-truco.acg-in-game .card-face{width:54px!important;height:78px!important;border-radius:7px!important;}
body.acg-mobile-game.acg-game-truco.acg-in-game .card-face.small-card{width:28px!important;height:40px!important;}
body.acg-mobile-game.acg-game-truco.acg-in-game .bottom-playbar{position:relative!important;bottom:auto!important;margin:7px 0 0!important;padding:7px!important;border-radius:14px!important;display:grid!important;grid-template-columns:1fr!important;gap:7px!important;background:linear-gradient(180deg,rgba(0,0,0,.36),rgba(0,0,0,.76))!important;}
body.acg-mobile-game.acg-game-truco.acg-in-game .hand{gap:7px!important;min-height:82px!important;margin-top:6px!important;align-items:end!important;}
body.acg-mobile-game.acg-game-truco.acg-in-game .hand .card-face{width:58px!important;height:84px!important;}
body.acg-mobile-game.acg-game-truco.acg-in-game .action-dock{width:100%!important;min-width:0!important;padding:8px!important;border-radius:14px!important;}
body.acg-mobile-game.acg-game-truco.acg-in-game .action-buttons{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;}
body.acg-mobile-game.acg-game-truco.acg-in-game .action-buttons button{min-height:38px!important;font-size:13px!important;padding:7px 9px!important;}

/* Truco horizontal: usa a largura, sem empilhar e sem o dock cobrir a mesa */
body.acg-mobile-game.acg-landscape.acg-game-truco.acg-in-game,
body.acg-tablet-game.acg-landscape.acg-game-truco.acg-in-game{overflow:hidden!important;}
body.acg-mobile-game.acg-landscape.acg-game-truco.acg-in-game .game-page,
body.acg-tablet-game.acg-landscape.acg-game-truco.acg-in-game .game-page{height:100svh!important;overflow:hidden!important;padding:2px 4px calc(var(--acg-dock-h) + 5px)!important;width:calc(100vw - 8px)!important;margin:0 auto!important;}
body.acg-mobile-game.acg-landscape.acg-game-truco.acg-in-game .game-topbar,
body.acg-tablet-game.acg-landscape.acg-game-truco.acg-in-game .game-topbar{height:24px!important;min-height:24px!important;margin:1px 0 3px!important;}
body.acg-mobile-game.acg-landscape.acg-game-truco.acg-in-game .game-topbar h1,
body.acg-tablet-game.acg-landscape.acg-game-truco.acg-in-game .game-topbar h1{font-size:13px!important;}
body.acg-mobile-game.acg-landscape.acg-game-truco.acg-in-game .game-table.table-modern,
body.acg-tablet-game.acg-landscape.acg-game-truco.acg-in-game .game-table.table-modern{height:calc(100svh - 112px)!important;min-height:252px!important;border-width:3px!important;border-radius:14px!important;padding:4px!important;}
body.acg-mobile-game.acg-landscape.acg-game-truco.acg-in-game .table-status,
body.acg-tablet-game.acg-landscape.acg-game-truco.acg-in-game .table-status{margin-bottom:2px!important;gap:3px!important;}
body.acg-mobile-game.acg-landscape.acg-game-truco.acg-in-game .table-status .badge,
body.acg-tablet-game.acg-landscape.acg-game-truco.acg-in-game .table-status .badge{font-size:8px!important;padding:3px 5px!important;}
body.acg-mobile-game.acg-landscape.acg-game-truco.acg-in-game .table-grid,
body.acg-tablet-game.acg-landscape.acg-game-truco.acg-in-game .table-grid{grid-template-columns:70px minmax(0,1fr) 70px!important;grid-template-rows:42px minmax(92px,1fr) 54px!important;gap:3px!important;min-height:0!important;}
body.acg-mobile-game.acg-landscape.acg-game-truco.acg-in-game .seat,
body.acg-tablet-game.acg-landscape.acg-game-truco.acg-in-game .seat{min-height:0!important;padding:3px!important;border-radius:9px!important;}
body.acg-mobile-game.acg-landscape.acg-game-truco.acg-in-game .avatar,
body.acg-tablet-game.acg-landscape.acg-game-truco.acg-in-game .avatar{width:22px!important;height:22px!important;font-size:12px!important;}
body.acg-mobile-game.acg-landscape.acg-game-truco.acg-in-game .seat strong,
body.acg-tablet-game.acg-landscape.acg-game-truco.acg-in-game .seat strong{font-size:9px!important;max-width:85px!important;}
body.acg-mobile-game.acg-landscape.acg-game-truco.acg-in-game .seat small,
body.acg-tablet-game.acg-landscape.acg-game-truco.acg-in-game .seat small{font-size:7px!important;}
body.acg-mobile-game.acg-landscape.acg-game-truco.acg-in-game .playing-area.modern,
body.acg-tablet-game.acg-landscape.acg-game-truco.acg-in-game .playing-area.modern{min-height:60px!important;padding:2px!important;}
body.acg-mobile-game.acg-landscape.acg-game-truco.acg-in-game .card-face,
body.acg-tablet-game.acg-landscape.acg-game-truco.acg-in-game .card-face{width:36px!important;height:52px!important;}
body.acg-mobile-game.acg-landscape.acg-game-truco.acg-in-game .card-face.small-card,
body.acg-tablet-game.acg-landscape.acg-game-truco.acg-in-game .card-face.small-card{width:20px!important;height:29px!important;}
body.acg-mobile-game.acg-landscape.acg-game-truco.acg-in-game .bottom-playbar,
body.acg-tablet-game.acg-landscape.acg-game-truco.acg-in-game .bottom-playbar{margin:4px 0 0!important;padding:4px!important;display:grid!important;grid-template-columns:minmax(0,1fr) 130px!important;gap:5px!important;max-height:68px!important;overflow:hidden!important;}
body.acg-mobile-game.acg-landscape.acg-game-truco.acg-in-game .hand,
body.acg-tablet-game.acg-landscape.acg-game-truco.acg-in-game .hand{min-height:50px!important;margin-top:3px!important;gap:4px!important;}
body.acg-mobile-game.acg-landscape.acg-game-truco.acg-in-game .hand .card-face,
body.acg-tablet-game.acg-landscape.acg-game-truco.acg-in-game .hand .card-face{width:36px!important;height:52px!important;}
body.acg-mobile-game.acg-landscape.acg-game-truco.acg-in-game .action-dock,
body.acg-tablet-game.acg-landscape.acg-game-truco.acg-in-game .action-dock{padding:4px!important;border-radius:10px!important;}
body.acg-mobile-game.acg-landscape.acg-game-truco.acg-in-game .action-dock strong,
body.acg-tablet-game.acg-landscape.acg-game-truco.acg-in-game .action-dock strong{font-size:9px!important;}
body.acg-mobile-game.acg-landscape.acg-game-truco.acg-in-game .action-hint,
body.acg-tablet-game.acg-landscape.acg-game-truco.acg-in-game .action-hint{display:none!important;}
body.acg-mobile-game.acg-landscape.acg-game-truco.acg-in-game .action-buttons button,
body.acg-tablet-game.acg-landscape.acg-game-truco.acg-in-game .action-buttons button{min-height:23px!important;font-size:9px!important;padding:3px 5px!important;}

/* Modais do Truco: proporcionais e roláveis */
body.acg-mobile-game.acg-game-truco .match-modal,
body.acg-mobile-game.acg-game-truco .modal-card,
body.acg-mobile-game.acg-game-truco .truco-alert-big,
body.acg-tablet-game.acg-game-truco .match-modal,
body.acg-tablet-game.acg-game-truco .modal-card,
body.acg-tablet-game.acg-game-truco .truco-alert-big{width:min(92vw,430px)!important;max-width:430px!important;max-height:82svh!important;overflow:auto!important;padding:16px 14px!important;border-radius:18px!important;}
body.acg-mobile-game.acg-game-truco .match-modal h2,
body.acg-mobile-game.acg-game-truco .modal-card h2,
body.acg-mobile-game.acg-game-truco .truco-alert-big strong,
body.acg-tablet-game.acg-game-truco .match-modal h2,
body.acg-tablet-game.acg-game-truco .modal-card h2,
body.acg-tablet-game.acg-game-truco .truco-alert-big strong{font-size:clamp(24px,6vw,34px)!important;line-height:1.05!important;}
body.acg-mobile-game.acg-game-truco .match-modal img,
body.acg-tablet-game.acg-game-truco .match-modal img{max-width:min(180px,54vw)!important;}

/* BATALHA NAVAL - mobile/tablet */
body.acg-mobile-game.acg-game-batalha.acg-in-game .app-shell,
body.acg-tablet-game.acg-game-batalha.acg-in-game .app-shell{padding:6px 6px calc(var(--acg-dock-h) + 10px)!important;}
body.acg-mobile-game.acg-game-batalha.acg-in-game .game-layout,
body.acg-tablet-game.acg-game-batalha.acg-in-game .game-layout{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;}
body.acg-mobile-game.acg-game-batalha.acg-in-game .boards-grid,
body.acg-tablet-game.acg-game-batalha.acg-in-game .boards-grid{grid-template-columns:1fr!important;gap:8px!important;}
body.acg-mobile-game.acg-game-batalha.acg-in-game .ship-dock,
body.acg-tablet-game.acg-game-batalha.acg-in-game .ship-dock{padding:8px!important;border-radius:14px!important;}
body.acg-mobile-game.acg-game-batalha.acg-in-game .ships-dock-list,
body.acg-tablet-game.acg-game-batalha.acg-in-game .ships-dock-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;}
body.acg-mobile-game.acg-game-batalha.acg-in-game .ship-token,
body.acg-tablet-game.acg-game-batalha.acg-in-game .ship-token{min-height:38px!important;padding:6px 8px!important;border-radius:10px!important;gap:6px!important;}
body.acg-mobile-game.acg-game-batalha.acg-in-game .ship-icon,
body.acg-tablet-game.acg-game-batalha.acg-in-game .ship-icon{font-size:15px!important;}
body.acg-mobile-game.acg-game-batalha.acg-in-game .ship-name,
body.acg-tablet-game.acg-game-batalha.acg-in-game .ship-name{font-size:11px!important;line-height:1.05!important;}
body.acg-mobile-game.acg-game-batalha.acg-in-game .ship-size,
body.acg-tablet-game.acg-game-batalha.acg-in-game .ship-size{font-size:9px!important;}
body.acg-mobile-game.acg-game-batalha.acg-in-game .board,
body.acg-tablet-game.acg-game-batalha.acg-in-game .board{--cell:clamp(19px,5.2vw,31px)!important;justify-content:center!important;margin:auto!important;}
body.acg-mobile-game.acg-game-batalha.acg-in-game .enemy-mini .board,
body.acg-tablet-game.acg-game-batalha.acg-in-game .enemy-mini .board{--cell:clamp(16px,4.6vw,26px)!important;}
body.acg-mobile-game.acg-game-batalha.acg-in-game .board-card,
body.acg-tablet-game.acg-game-batalha.acg-in-game .board-card{padding:8px!important;border-radius:16px!important;}
.acg-battle-mobile-controls{display:none!important;}
body.acg-mobile-game.acg-game-batalha.acg-in-game .acg-battle-mobile-controls,
body.acg-tablet-game.acg-game-batalha.acg-in-game .acg-battle-mobile-controls{display:flex!important;gap:6px!important;align-items:center!important;margin:6px 0!important;padding:6px!important;border:1px solid rgba(48,215,255,.20)!important;border-radius:12px!important;background:rgba(0,0,0,.42)!important;}
body.acg-mobile-game.acg-game-batalha.acg-in-game .acg-battle-mobile-controls button,
body.acg-tablet-game.acg-game-batalha.acg-in-game .acg-battle-mobile-controls button{flex:1!important;min-height:36px!important;padding:6px 8px!important;border-radius:10px!important;font-size:12px!important;}
body.acg-mobile-game.acg-game-batalha.acg-landscape.acg-in-game .ships-dock-list,
body.acg-tablet-game.acg-game-batalha.acg-landscape.acg-in-game .ships-dock-list{grid-template-columns:repeat(5,minmax(0,1fr))!important;}
body.acg-mobile-game.acg-game-batalha.acg-landscape.acg-in-game .ship-token,
body.acg-tablet-game.acg-game-batalha.acg-landscape.acg-in-game .ship-token{min-height:32px!important;padding:4px 5px!important;}
body.acg-mobile-game.acg-game-batalha.acg-landscape.acg-in-game .ship-size,
body.acg-tablet-game.acg-game-batalha.acg-landscape.acg-in-game .ship-size{display:none!important;}
body.acg-mobile-game.acg-game-batalha.acg-landscape.acg-in-game .board,
body.acg-tablet-game.acg-game-batalha.acg-landscape.acg-in-game .board{--cell:clamp(15px,2.9vw,24px)!important;}

/* XADREZ - preservar o comportamento que ficou bom em mobile/tablet; sem interferir no desktop. */
body.acg-mobile-game.acg-game-xadrez.acg-in-game .game-shell,
body.acg-tablet-game.acg-game-xadrez.acg-in-game .game-shell{display:block!important;padding:6px 6px calc(var(--acg-dock-h) + 8px)!important;}
body.acg-mobile-game.acg-game-xadrez.acg-in-game .board-wrap,
body.acg-tablet-game.acg-game-xadrez.acg-in-game .board-wrap{padding:8px!important;border-radius:18px!important;overflow:hidden!important;}
body.acg-mobile-game.acg-game-xadrez.acg-in-game .chess-board-outer,
body.acg-tablet-game.acg-game-xadrez.acg-in-game .chess-board-outer{width:min(calc(100vw - 20px),calc(100svh - 140px),720px)!important;max-width:100%!important;margin:0 auto!important;}
body.acg-mobile-game.acg-game-xadrez.acg-in-game .chess-board-outer .piece-img,
body.acg-tablet-game.acg-game-xadrez.acg-in-game .chess-board-outer .piece-img{max-width:78%!important;max-height:78%!important;}
body.acg-mobile-game.acg-game-xadrez.acg-in-game .chess-board-outer .xpiece.piece-pawn .piece-img,
body.acg-tablet-game.acg-game-xadrez.acg-in-game .chess-board-outer .xpiece.piece-pawn .piece-img{max-width:62%!important;max-height:62%!important;}
