/* =====================================================================
   ZEIBAN — Responsivo
   ===================================================================== */
@media (max-width: 1440px) {
  .banner-arrow.next { right: -0.9rem; background: var(--btn-dark); }
  .banner-arrow.prev { left: -0.9rem; background: var(--btn-dark); }
}
@media (max-width: 1280px) {
  .tile-grid, .tile-grid.search { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ft-top { grid-template-columns: 1fr; }
  .ft-dds { flex-direction: row; }
  .ft-dds .ft-dd { flex: 1; }
  .match-layout { grid-template-columns: 1fr; }
  .popular-col { display: none; }
  .feat-grid.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1100px) {
  .banner { flex-basis: calc((100% - 1rem) / 2); }
  .trend-card { flex-basis: calc((100% - 1rem) / 2) !important; }
  .casino-bar { flex-direction: column; gap: 0.75rem; }
  .cb-tabs { overflow-x: auto; scrollbar-width: none; }
  .ad-board { grid-template-columns: repeat(3, 1fr); row-gap: 1rem; }
  .tourn { flex-basis: 88% !important; }
  .tk-grid { grid-template-columns: 1fr 1fr; }
  .tk-promos { grid-template-columns: 1fr; }
  .promo-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .prov-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .land-overview, .aff-start, .aff-hero { grid-template-columns: 1fr; }
  .aff-hero-art { justify-self: center; max-width: 320px; }
  .gp-main { grid-template-columns: 290px 1fr; }
}

/* ---------------- tablet: sidebar vira gaveta ---------------- */
@media (max-width: 1024px) {
  :root { --tile-w: 132px; }
  .header-side { width: auto; padding: 0 0.5rem 0 1rem; border-right: 0; background: transparent; }
  .seg-toggle { display: none; }
  .header-main { padding-left: 0.5rem; }
  .sidebar { position: fixed; top: var(--header-h); bottom: 0; left: calc(-1 * 15rem - 2px); width: 15rem !important; transition: left var(--dur) var(--ease); box-shadow: var(--shadow-pop); }
  /* gaveta fechada: fora da tela e fora da ordem de tabulação (visibility some só após o slide) */
  .sidebar { visibility: hidden; transition: left var(--dur) var(--ease), visibility 0s linear var(--dur); }
  html.sidebar-open .sidebar { left: 0; visibility: visible; transition: left var(--dur) var(--ease), visibility 0s; }
  html.sidebar-open .sidebar-scrim { opacity: 1; pointer-events: auto; }
  html.sidebar-collapsed { --side-w: 15rem; }
  .sidebar .side-seg, html.sidebar-collapsed .sidebar .side-seg { display: flex; flex-direction: row; gap: 0.5rem; padding: 1rem 1rem 0; }
  .sidebar .side-seg-btn { flex: 1; width: auto; }
  html.sidebar-collapsed .side-top { padding: 1rem 1rem 0.9rem; align-items: stretch; }
  html.sidebar-collapsed .side-search { width: 100%; height: 48px; padding: 0 0.9rem; justify-content: flex-start; border-color: var(--border-2); background: var(--input); }
  html.sidebar-collapsed .side-search span, html.sidebar-collapsed .token-info, html.sidebar-collapsed .token-actions, html.sidebar-collapsed .nav-label, html.sidebar-collapsed .nav-badge, html.sidebar-collapsed .nav-caret { display: revert; }
  html.sidebar-collapsed .token-actions { display: grid; }
  html.sidebar-collapsed .nav-sub { display: grid; }
  html.sidebar-collapsed .token-main { justify-content: flex-start; }
  html.sidebar-collapsed .nav-section { padding: 8px 0; }
  html.sidebar-collapsed .nav-item { justify-content: flex-start; padding: 0 25px 0 24px; height: 48px; }
  html.sidebar-collapsed .nav-dot { display: none; }
  html.sidebar-collapsed .sidebar [data-tip]:hover::after { display: none; }
  .right-panel { position: fixed; top: var(--header-h); right: 0; bottom: 0; z-index: 55; }
  html.right-open .app-header { right: 0; }
  html.right-open .app-content { margin-right: 0; }
  html.right-open .header-main { padding-right: 1rem; }
  html.right-open .header-logo .brand-logo { display: inline-flex; }
  html.right-open .logo-mark-only { display: none; }
  .tile-grid, .tile-grid.search { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .banner-arrow { display: none; }
  .gp-main { grid-template-columns: 1fr; }
  .gc { border-right: 0; border-top: 1px solid var(--border); order: 2; }
  .gp-stage { min-height: 380px; }
  .tp-stage { min-height: 420px; }
}

/* ---------------- celular ---------------- */
@media (max-width: 768px) {
  :root { --gutter: 1rem; --header-h: 3.9rem; --tile-w: 112px; --tile-gap: 8px; }
  body { font-size: var(--text-sm); }
  .brand-word { font-size: 1.35rem; }
  .header-auth .btn { height: 38px; padding: 0 0.8rem; font-size: var(--text-sm); }
  .hdr-wallet-btn > span:not(.z-icon), .hdr-ic:not(.user-btn) { display: none; }
  .mobile-nav { display: flex; }
  .app-body { bottom: var(--mobile-nav-h); }
  .right-panel { bottom: var(--mobile-nav-h); }
  html.right-open .right-panel { width: 100%; }
  .rp-inner { width: 100%; }
  .support-bubble { bottom: calc(var(--mobile-nav-h) + 0.8rem); }
  /* painel direito ocupa a tela toda no celular: a bolha não se desloca, some */
  html.right-open .support-bubble { display: none; }
  /* left:50% + translate limitava a largura à metade da tela: no celular vira barra de ponta a ponta */
  .cookie-banner { bottom: calc(var(--mobile-nav-h) + 0.6rem); left: 0.75rem; right: 0.75rem; transform: none; width: auto; max-width: none; flex-wrap: wrap; gap: 0.6rem 0.75rem; }
  .cookie-banner.hide { transform: translateY(12px); }
  .cookie-banner .cookie-text { flex: 1 1 calc(100% - 2.5rem); line-height: 1.4; }
  .cookie-banner .btn { flex: 1 1 0; }
  .cookie-banner .cookie-text { max-width: none; }
  .demo-ribbon { left: 0.75rem; bottom: calc(var(--mobile-nav-h) + 0.9rem); }
  .content-inner { padding-top: 1rem; }
  .banner { flex-basis: 88%; }
  .banner-body { padding: 0 1.1rem; }
  .tile-title { font-size: 1.1rem; }
  .tile-grid, .tile-grid.search { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sec-title h3 { font-size: 1.05rem; }
  .sec-actions .round-arrow { display: none; }
  .cat-toolbar { flex-wrap: wrap; }
  .cat-toolbar .cat-search { flex-basis: 100%; }
  .cat-toolbar .z-select, .cat-toolbar .z-select:last-child { flex: 1; width: auto; }
  .bets-head { flex-direction: column; align-items: stretch; }
  .bets-head .pill-tabs { overflow-x: auto; }
  .bets-head .z-select { width: 100%; }
  .hide-sm { display: none !important; }
  .bets-table { min-width: 0; }
  .ad-board { grid-template-columns: repeat(2, 1fr); }
  .ad-art { opacity: 0.5; }
  .tourn-board { grid-template-columns: 1fr; }
  .seo-content { column-count: 1; }
  .ft-cols { grid-template-columns: repeat(2, 1fr); }
  .ft-dds { flex-direction: column; }
  .ft-bottom { flex-direction: column; align-items: flex-start; }
  .gi-head { flex-direction: column; align-items: flex-start; }
  .gi-title { flex-wrap: wrap; row-gap: 2px; max-width: 100%; }
  .gi-title h1 { white-space: normal; font-size: 1.2rem; line-height: 1.25; }
  .gi-right { flex-wrap: wrap; }
  .gi-row { grid-template-columns: 56px 1fr 1fr 1fr; }
  .dice-stage, .limbo-stage, .go-stage, .cf-stage, .mines-stage { padding: 1rem; }
  .dice-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* barra inferior do jogo: sem logo central, botões compactos */
  .gbar { grid-template-columns: minmax(0, 1fr) auto; padding: 8px 10px; gap: 8px; }
  .gbar-logo { display: none; }
  .gbar-fair { white-space: nowrap; }
  .gbar-toggle button { padding: 0 0.6rem; }
  .tk-hero2 h2 { white-space: normal; }
  .aff-dash-h { white-space: normal; font-size: 36px; line-height: 40px; }
  .trend-card { flex-basis: 88% !important; }
  .mr-body { grid-template-columns: 1fr; }
  .lg-col { margin-left: 0; }
  .ch-grid { grid-template-columns: repeat(2, 1fr); }
  /* hero cresce com o conteúdo e reserva espaço p/ a sobreposição de -148px do bloco abaixo */
  .lt-hero { height: auto; padding: 44px 16px 176px; }
  .lt-hero-body h1 { font-size: 24px; line-height: 30px; }
  .lt-hero-body > p, .lt-hero-body .lt-date { font-size: 17px; line-height: 26px; }
  .odo { font-size: 3rem; }
  .prov-tile.lg { padding: 0 12px; }
  .prov-tile.lg .prov-word, .prov-tile.lg .prov-word.up { font-size: 1.2rem; max-width: 100%; overflow-wrap: anywhere; }
  .lt-steps, .lt-info { grid-template-columns: 1fr; }
  .lt-row, .lt-table-head { grid-template-columns: 34px 1fr; }
  .lt-row .lt-acts, .lt-table-head .lt-acts { grid-column: 1 / -1; }
  .ball { width: 30px; height: 30px; }
  .land-stats { grid-template-columns: 1fr; }
  .land-hero-body h1, .vip-hero-body h1, .aff-hero-body h1 { font-size: 2rem; }
  .feat-grid.two, .feat-grid.three, .feat-grid.four { grid-template-columns: 1fr; }
  .promo-feat, .blog-feat { grid-template-columns: 1fr; }
  .promo-grid, .blog-grid { grid-template-columns: 1fr; }
  .prov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tk-grid { grid-template-columns: 1fr; }
  .tk-hero-body { max-width: 100%; }
  .auth-grid { grid-template-columns: 1fr; min-height: 0; height: auto; max-height: calc(100vh - 2rem); }
  .auth-left { display: none; }
  .auth-overlay .modal { max-width: 520px; }
  .auth-right { padding: 2.5rem 1.25rem 1.5rem; }
  .auth-grid { max-height: calc(100dvh - 2rem); }
  .auth-overlay .auth-right { max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); } /* 02/11 botao nunca cortado */
  .tile-grid.search { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mh-team b { font-size: var(--text-sm); text-align: center; }
  .team-logo.xl { width: 60px; height: 60px; }
  .pf-grid { grid-template-columns: 1fr; }
  #z-toasts { left: 1rem; right: 1rem; align-items: stretch; }
}
/* tablet retrato (561–768): cabe mais de um banner/cartão por linha */
@media (min-width: 561px) and (max-width: 768px) {
  .banner { flex-basis: calc((100% - 1rem) / 2); }
  .tile-grid, .tile-grid.search { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* celular: tabela de apostas sem a coluna "Valor da aposta" e nomes com reticências */
@media (max-width: 560px) {
  .bets-table { table-layout: fixed; }
  .bets-table th:nth-child(3), .bets-table td:nth-child(3) { display: none; }
  .bets-table th, .bets-table td { padding-left: 0.6rem; padding-right: 0.6rem; }
  .bets-table th:first-child { width: 29%; }
  .bets-table th:nth-child(2) { width: 31%; }
  .bets-table td { font-size: 12px; }
  .bets-table .bt-amt { gap: 0.3rem; }
  .bets-table .user-cell, .bets-table .bt-game { max-width: 100%; min-width: 0; }
  .bets-table .user-cell > span:last-child, .bets-table .bt-game > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .bets-table .bt-amt { max-width: 100%; }
}
@media (max-width: 420px) {
  .header-logo .brand-word { display: none; }
  .header-auth { gap: 0.35rem; }
  .header-auth .btn { padding: 0 0.65rem; font-size: 0.75rem; height: 36px; }
  .ch-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
}

/* =====================================================================
   Respiro lateral do conteúdo (igual ao original): container máx. 1280px;
   24px por padrão, 48px quando a área útil passa de ~927px e 0 quando passa
   de ~1435px. A área útil depende da sidebar (240/64px) e do painel direito (360px).
   ===================================================================== */
@media (min-width: 1167px) { :root { --gutter: 48px; } }
@media (min-width: 1675px) { :root { --gutter: 0px; } }
@media (min-width: 991px)  { html.sidebar-collapsed { --gutter: 48px; } }
@media (min-width: 1499px) { html.sidebar-collapsed { --gutter: 0px; } }
html.right-open { --gutter: 24px; }
@media (min-width: 1527px) { html.right-open { --gutter: 48px; } }
@media (min-width: 2035px) { html.right-open { --gutter: 0px; } }
html.right-open.sidebar-collapsed { --gutter: 24px; }
@media (min-width: 1351px) { html.right-open.sidebar-collapsed { --gutter: 48px; } }
@media (min-width: 1859px) { html.right-open.sidebar-collapsed { --gutter: 0px; } }
/* ≤1024 a sidebar vira gaveta e o painel direito sobrepõe: a área útil é a tela inteira */
@media (max-width: 1024px) { html, html.sidebar-collapsed, html.right-open, html.right-open.sidebar-collapsed { --gutter: 24px; } }
@media (min-width: 927px) and (max-width: 1024px) { html, html.sidebar-collapsed, html.right-open, html.right-open.sidebar-collapsed { --gutter: 48px; } }
@media (max-width: 768px) { html, html.sidebar-collapsed, html.right-open, html.right-open.sidebar-collapsed { --gutter: 16px; } }

/* ===== QA 31/10: rodape sem coluna Comunidade/seletores falsos, regras do bate-papo, suporte por e-mail ===== */
.ft-top { grid-template-columns: 200px 1fr; }
.ft-cols { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1280px) { .ft-top { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .ft-cols { grid-template-columns: repeat(2, 1fr); } }
.chat-rules-btn { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 14px; font-weight: 500; }
.chat-rules-btn:hover { text-decoration: underline; }
.chat-rules-btn svg { width: 16px; height: 16px; }
.chat-rules-box { display: none; background: #202329; border-radius: 6px; padding: 12px 14px; font-size: 13px; color: #c9cfd9; }
.chat-rules-box.open { display: block; animation: fadeUp 0.15s var(--ease); }
.chat-rules-box b { display: block; color: #fff; margin-bottom: 6px; }
.chat-rules-box ul { margin: 0; padding-left: 18px; list-style: disc; }
.chat-rules-box li { margin: 2px 0; }
.sup-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sup-chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border-2); color: #fff; font-size: 12px; font-weight: 600; }
.sup-chip:hover { border-color: var(--purple); }
.sup-mail { margin-top: 8px; display: inline-flex; }
.gp-fun-note { display: flex; align-items: flex-start; gap: 8px; background: rgba(119, 23, 255, 0.12); border: 1px solid rgba(136, 108, 255, 0.35); color: #d9d2ff; border-radius: 8px; padding: 10px 14px; font-size: 13px; line-height: 1.45; margin-bottom: 12px; }
.gp-fun-note svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: #a98bff; }
.gp-fun-note b { color: #fff; }
.gp-fun-note a { color: #a98bff; text-decoration: underline; }
.tp-card .gp-fun-note { margin: 4px 0 0; text-align: left; }
.gbar-fun { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #d9d2ff; padding: 0 8px; }
.gbar-fun svg { width: 16px; height: 16px; }
.wise-active { align-items: flex-start; line-height: 1.45; }
.wise-active span { font-weight: 500; }
.wise-active svg { flex: none; margin-top: 2px; }
.tk-stake.is-off { display: none; }
.lt-closed { display: inline-flex; align-items: flex-start; gap: 8px; max-width: 420px; font-size: 13px; line-height: 1.4; color: #c9cfd9; background: #202329; border-radius: 8px; padding: 10px 12px; }
.lt-closed svg { flex: none; width: 16px; height: 16px; margin-top: 1px; color: #a98bff; }
