/* ============================================================
   SheikBet — Front-end estático mobile-first
   Tema: dark-luxo com dourado "sheik" + verde PIX para conversão
   ============================================================ */

/* ---------- Fallback com métrica ajustada (anti-CLS) ----------
   As fontes carregam de forma assíncrona (FCP 4,1s → 1,3s). Sem isto, a
   troca fallback→webfont reflui o texto e o layout "pula" (CLS 0,137).
   Os overrides fazem o Arial ocupar o MESMO espaço do Inter/Sora, então a
   troca é invisível. Valores de ascent/descent/size-adjust do Inter são os
   canônicos (mesma tabela usada pelo next/font). */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  size-adjust: 107.12%;
  ascent-override: 90.49%;
  descent-override: 22.56%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Sora Fallback";
  src: local("Arial");
  size-adjust: 105.5%;
  ascent-override: 95%;
  descent-override: 23.7%;
  line-gap-override: 0%;
}

:root {
  /* ---------- Tokens por PAPEL (fonte da verdade) ----------
     Nomenclatura de papel (superfície/texto/marca/semântica), no padrão de
     app-shell em camadas. TODAS as cores vêm da paleta original do site —
     nenhuma cor nova foi introduzida no redesign. */

  /* Superfícies (do mais profundo ao mais elevado) */
  --bg-base: #07090F;     /* fundo da página */
  --bg-surface: #0C1018;  /* painéis rebaixados, inputs, dialogs, footer */
  --bg-elevated: #131826; /* cards (jogo, recompensa, leaderboard), chips, FAQ */
  --bg-hover: #1A2134;    /* hover/ativo de superfícies, item ativo da sidebar */

  /* Texto */
  --text-primary: #EDEFF6;
  --text-secondary: #C6CCDC; /* subtítulos e parágrafos longos (era o corpo de .page) */
  --text-muted: #9AA3B8;     /* metadados, legendas, provedor no card */

  /* Marca / ação — o CTA dourado é SEMPRE o gradiente gold-1→2→3 com texto
     --accent-contrast; --accent isolado serve p/ filetes, links, tabs e focus. */
  --gold-1: #F8D97E;
  --gold-2: #E9B93B;
  --gold-3: #C8871A;
  --accent: var(--gold-2);
  --accent-contrast: #2B2008;
  --accent-2: #32BCAD;    /* teal PIX — pagamento e selos de método */

  /* Tints do accent (padronizam os rgba(233,185,59,α) espalhados) */
  --accent-soft-08: rgba(233, 185, 59, 0.08);
  --accent-soft-16: rgba(233, 185, 59, 0.16);
  --accent-soft-24: rgba(233, 185, 59, 0.24);

  /* Semânticas */
  --success: #1DBF63;        /* valores pagos, ganhos, confirmações */
  --success-strong: #128A45; /* extremo escuro do gradiente verde */
  --danger: #FF4E4E;         /* erros, perdas */
  --live: var(--danger);     /* badge "AO VIVO" */
  --border: rgba(255, 255, 255, 0.08);

  /* Forma — escala REAL do site (12/16/20/99), não inventada */
  --radius-sm: 12px;  /* botões, inputs, chips */
  --radius-md: 16px;  /* cards */
  --radius-lg: 20px;  /* hero, banners, dialogs */
  --radius-pill: 99px;

  /* Layout do app shell */
  --header-h: 60px;
  --bottomnav-h: 66px;
  --sidebar-w: 240px;
  --sidebar-w-collapsed: 64px;
  --content-max: 1280px;

  --font-display: "Sora", "Sora Fallback", system-ui, sans-serif;
  --font-body: "Inter", "Inter Fallback", system-ui, -apple-system, sans-serif;

  /* ---------- Aliases legados ----------
     Nomes antigos apontando para os tokens de papel. Regras antigas seguem
     funcionando; cada regra tocada nas próximas fases migra para o token de
     papel. Remover um alias só quando o último uso dele sumir do arquivo. */
  --bg0: var(--bg-base);
  --bg1: var(--bg-surface);
  --bg2: var(--bg-elevated);
  --bg3: var(--bg-hover);
  --line: var(--border);
  --text: var(--text-primary);
  --muted: var(--text-muted);
  --gold: var(--accent);
  --green: var(--success);
  --green-dark: var(--success-strong);
  --pix: var(--accent-2);
  --hot: var(--danger);
  --radius: var(--radius-md);
  --nav-h: var(--bottomnav-h);

  /* ---------- Escala de camadas (z-index) ----------
     Única fonte de verdade, em ordem crescente. Números locais de
     componente (-2…3 em .gcard/.slide/.live-card/.hero/.ticker) vivem em
     contextos de empilhamento isolados e ficam fora da escala global.
     Modais (<dialog>.showModal) e o toast (Popover API) vão para o TOP
     LAYER do navegador — acima de QUALQUER z-index deste documento. */
  --z-sticky: 40;   /* sub-navegação grudada (.lobby-nav) */
  --z-header: 50;   /* topo (.topbar) */
  --z-nav: 60;      /* navegação inferior (.bottomnav) */
  --z-fx: 90;       /* fogos de saque (.fx-canvas) — sob o toast p/ a mensagem ficar legível */
  --z-toast: 100;   /* .toast em navegadores sem Popover API */
  --z-skip: 200;    /* .skip-link */
  --z-grain: 300;   /* granulado decorativo (body::after), topo do documento */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* O atributo hidden precisa vencer qualquer display de classe (ex.: .btn
   inline-flex) — sem isto, "hidden" em botões/seções é ignorado pelo cascade. */
[hidden] { display: none !important; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
  -webkit-tap-highlight-color: transparent;
  /* NÃO usar overflow-x aqui: com overflow-y visible o `clip`/`hidden` no
     elemento raiz mata a rolagem vertical da página inteira. O travamento do
     pan lateral é feito só com overscroll-behavior-x (abaixo) + o hidden do
     body, que não interfere no scroll vertical. */
  overscroll-behavior-x: none;
}
::selection { background: rgba(233, 185, 59, 0.35); color: #FFF6DC; }
/* Scrollbar fina e escura (desktop) */
@media (pointer: fine) {
  * { scrollbar-width: thin; scrollbar-color: #2A3146 transparent; }
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-thumb { background: #2A3146; border-radius: 99px; border: 3px solid var(--bg0); }
  ::-webkit-scrollbar-track { background: transparent; }
}

/* Ícones do sprite: traço controlado por contexto (símbolos não fixam
   stroke-width, então o valor herda do host <svg> para dentro do <use>) */
.ic { width: 18px; height: 18px; flex: 0 0 auto; display: inline-block; vertical-align: -3px; stroke-width: 1.8; }
.eyebrow .ic, .chip .ic, .bonus-pill .ic, .dlg-secure .ic,
.trustbar li .ic, .tick-item .tick-ic, .hero-pause .ic, .anim-pause .ic { stroke-width: 2.4; }
.dlg-x .ic { stroke-width: 2.2; }
.bn-ico { stroke-width: 1.9; }
.lc-emo { stroke-width: 1.1; }

/* Link de pular conteúdo (acessibilidade) */
.skip-link {
  position: absolute; top: -48px; left: 12px; z-index: var(--z-skip);
  background: var(--gold-2); color: #2B2008;
  font-weight: 800; font-size: 13px;
  padding: 10px 16px; border-radius: 0 0 10px 10px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg0);
  color: var(--text);
  line-height: 1.5;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
  /* iOS: o hidden corta o que vaza na horizontal e o overscroll-behavior-x
     impede o rubber-band lateral (era o que deixava arrastar a página pro
     lado e ver fora do site). overflow-y fica intocado — ver nota no html. */
  overflow-x: hidden;
  overscroll-behavior-x: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { text-wrap: balance; }
/* Aurora fixa ao fundo: profundidade sem custo de imagem */
body::before {
  content: ""; position: fixed; inset: -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 30% at 82% 4%, rgba(233, 185, 59, 0.11), transparent 70%),
    radial-gradient(30% 26% at 6% 16%, rgba(50, 188, 173, 0.08), transparent 70%),
    radial-gradient(36% 32% at 72% 82%, rgba(122, 92, 255, 0.07), transparent 70%);
}
/* Grão sutil por cima — acabamento de material */
body::after {
  content: ""; position: fixed; inset: 0; z-index: var(--z-grain); pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold-1); outline-offset: 2px; border-radius: 6px; }

.container { max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
/* Âncoras internas: o topbar sticky (e os chips) não podem cobrir o título da
   seção ao pular via #hash. */
#inicio, #promos, #jogos, #mesas, #aovivo, #vip, #faq { scroll-margin-top: 80px; }

/* ---------- Barra de anúncio / conformidade ---------- */
.announce {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  padding: 7px 12px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  color: #2B2008;
  background: linear-gradient(90deg, var(--gold-3), var(--gold-2) 40%, var(--gold-1) 75%, var(--gold-2));
  white-space: nowrap; overflow: hidden;
}
.announce span { overflow: hidden; text-overflow: ellipsis; }
.announce-sep { opacity: 0.55; }
@media (max-width: 640px) {
  .announce-law { display: none; }
}

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(7, 9, 15, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.3s ease;
}
/* Header retrátil: some ao rolar para baixo, volta ao rolar para cima —
   libera viewport para o lobby (padrão de apps de cassino) */
body.hdr-hidden .topbar { transform: translateY(-105%); }
.topbar.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45); }
.topbar-in {
  display: flex; align-items: center; gap: 12px;
  height: var(--header-h);
  /* iPhone: nunca colar na borda — 16px de respiro mínimo + safe-area
     (telas com cantos arredondados comem o encosto visual) */
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-txt {
  font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: 0.04em;
}
.brand-txt em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.topnav { display: none; gap: 22px; margin-inline: auto; }
.topnav a {
  text-decoration: none; font-size: 14px; font-weight: 600; color: var(--muted);
  transition: color 0.2s ease;
}
.topnav a:hover { color: var(--text); }
.topbar-actions { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.balance-pill {
  display: inline-flex; align-items: center;
  height: 44px; padding: 0 14px;
  border-radius: 12px;
  font-weight: 800; font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--gold-1);
  background: rgba(233, 185, 59, 0.1);
  border: 1px solid rgba(233, 185, 59, 0.35);
  cursor: pointer;
}
.balance-pill:hover { background: rgba(233, 185, 59, 0.18); }
/* Telas estreitas (<=380px): a linha do topo (marca + Entrar + Criar conta, ou
   saldo + Sair) não cabe e quebrava/cortava o CTA. Encolhe marca e botões p/
   caber tudo em uma linha sem estourar. */
@media (max-width: 380px) {
  .topbar-in { gap: 6px; }
  .brand-txt { font-size: 16px; letter-spacing: 0.01em; }
  .brand img { width: 30px; height: 30px; }
  .topbar-actions { gap: 6px; }
  .topbar-actions .btn { padding: 0 10px; font-size: 12.5px; }
  .balance-pill { padding: 0 10px; font-size: 13px; }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 16px; height: 44px;
  border-radius: 12px;
  font-weight: 700; font-size: 14px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
/* Estado ocupado/inativo: o botão precisa PARECER inativo (senão parece que o
   clique não fez nada e o usuário reclica) */
.btn:disabled, .btn[disabled] {
  opacity: 0.55; cursor: not-allowed;
  filter: grayscale(0.25); box-shadow: none;
}
.btn:disabled:hover, .btn[disabled]:hover { filter: grayscale(0.25); box-shadow: none; }
.btn:disabled::after { animation: none; }
.btn:disabled:active, .btn[disabled]:active { transform: none; }
.btn-lg { height: 50px; padding: 0 22px; font-size: 15px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-gold {
  position: relative; overflow: hidden;
  color: #2B2008;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2) 50%, var(--gold-3));
  box-shadow: 0 4px 20px rgba(233, 185, 59, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-gold:hover { filter: brightness(1.06); box-shadow: 0 6px 26px rgba(233, 185, 59, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.btn-gold::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.55) 48%, transparent 60%);
  transform: translateX(-110%);
  animation: shine 4.2s ease-in-out infinite;
}
@keyframes shine { 0%, 72% { transform: translateX(-110%); } 88%, 100% { transform: translateX(110%); } }
.btn-green {
  /* Texto escuro sobre verde: contraste AA (≥4,5:1) em todo o gradiente */
  color: #04220F;
  background: linear-gradient(135deg, #3BE384, #1FCE6C 55%, #16A653);
  box-shadow: 0 4px 20px rgba(29, 191, 99, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-green:hover { filter: brightness(1.07); }
.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); }
/* Alvos de toque maiores nos controles inline de conversão (trocar login/
   cadastro, "Solicitar saque", "Esqueci a senha", "Tentar novamente"): o texto
   é pequeno, então o padding cresce a área clicável sem quebrar o fluxo. */
.linklike { color: var(--gold-1); font-weight: 700; text-decoration: underline; padding: 6px 4px; }
.terms-link { color: var(--muted); font-size: 13px; font-weight: 600; display: inline-block; padding: 6px 2px; }
.terms-link:hover { color: var(--text); }

/* ---------- Hero / carrossel ---------- */
.hero {
  position: relative; margin-top: 14px;
}
/* Carrossel por scroll-snap: 1 banner no mobile, 2 no desktop (cards soltos
   com raio próprio); swipe/drag é o scroll nativo do container. */
.hero-track {
  display: flex; gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.hero-track::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  position: relative;
  display: flex; align-items: center;
  min-height: 210px;
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
@media (min-width: 1024px) {
  .slide { flex-basis: calc(50% - 6px); }
}
.slide-a { background: radial-gradient(130% 160% at 100% 0%, rgba(233, 185, 59, 0.32), rgba(120, 74, 12, 0.16) 45%, var(--bg2) 78%); }
.slide-b0 { background: radial-gradient(130% 160% at 100% 0%, rgba(59, 180, 233, 0.30), rgba(12, 74, 120, 0.16) 45%, var(--bg2) 78%); }
.slide-b { background: radial-gradient(130% 160% at 100% 0%, rgba(29, 191, 99, 0.30), rgba(10, 92, 48, 0.16) 45%, var(--bg2) 78%); }
.slide-c { background: radial-gradient(130% 160% at 100% 0%, rgba(122, 92, 255, 0.32), rgba(52, 34, 128, 0.18) 45%, var(--bg2) 78%); }
.slide-copy { position: relative; z-index: 1; max-width: 62%; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold-1);
  background: rgba(233, 185, 59, 0.12);
  border: 1px solid rgba(233, 185, 59, 0.3);
  padding: 4px 10px; border-radius: 99px;
}
.eyebrow .ic { width: 12px; height: 12px; }
.slide h1, .slide h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(20px, 5.4vw, 34px); line-height: 1.15;
  margin-bottom: 6px;
}
.slide p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.slide p strong { color: var(--gold-1); }
.slide-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.slide-art {
  position: absolute; right: 4%; top: 50%;
  transform: translateY(-50%);
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.45));
  animation: float 5s ease-in-out infinite;
  pointer-events: none;
}
.slide-art svg { width: clamp(96px, 22vw, 160px); height: auto; aspect-ratio: 1; display: block; }
/* Halo + sunburst atrás da arte do slide */
.slide-art::before {
  content: ""; position: absolute; inset: -18%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.13), transparent 62%);
}
.slide-art::after {
  content: ""; position: absolute; inset: -55%; z-index: -2;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, 0.05) 0 9deg, transparent 9deg 18deg);
  border-radius: 50%;
}
@keyframes float { 0%, 100% { transform: translateY(-52%); } 50% { transform: translateY(-46%); } }
/* Palavras-chave com brilho dourado animado */
.shine {
  background: linear-gradient(100deg, var(--gold-1) 20%, #FFF3C4 40%, var(--gold-2) 60%, var(--gold-1) 80%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shineTxt 3.6s ease-in-out infinite;
}
@keyframes shineTxt { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
/* Partículas decorativas do hero (SVG do sprite, sobre a metade da arte) */
.sp {
  position: absolute; z-index: 1; pointer-events: none;
  color: var(--gold-1); opacity: 0.55;
  animation: spFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(233, 185, 59, 0.6));
}
.sp:nth-of-type(2) { animation-delay: -2s; }
.sp:nth-of-type(3) { animation-delay: -4s; }
@keyframes spFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
  50% { transform: translateY(-10px) scale(1.15); opacity: 0.85; }
}
.hero-dots {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  display: flex; z-index: 2;
}
/* Miolo visual de 8px, área de toque de 24×44px (padding + background-clip) */
.hero-dots button {
  box-sizing: content-box;
  width: 8px; height: 8px; border-radius: 99px;
  padding: 18px 8px;
  background: rgba(255, 255, 255, 0.28);
  background-clip: content-box;
  transition: width 0.25s ease, background-color 0.25s ease;
}
.hero-dots button.is-active { width: 22px; background-color: var(--gold-2); }
.hero-pause {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 44px; height: 44px; border-radius: 99px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(4, 6, 10, 0.35);
}
.hero-pause:hover { background: rgba(4, 6, 10, 0.6); color: #fff; }
.hero-pause .ic, .anim-pause .ic { width: 15px; height: 15px; }
/* Alterna ícone pausar/retomar pelo estado aria-pressed */
.hero-pause[aria-pressed="false"] .ic-play, .anim-pause[aria-pressed="false"] .ic-play { display: none; }
.hero-pause[aria-pressed="true"] .ic-pause, .anim-pause[aria-pressed="true"] .ic-pause { display: none; }

/* ---------- Trustbar ---------- */
.trustbar {
  display: flex; gap: 8px; list-style: none;
  margin: 14px 0 4px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.trustbar::-webkit-scrollbar { display: none; }
.trustbar li {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: var(--muted);
  background: var(--bg1);
  border: 1px solid var(--line);
  padding: 8px 12px; border-radius: 99px;
  white-space: nowrap;
}
.trustbar li .ic { width: 15px; height: 15px; color: var(--gold-2); }

/* ---------- Categorias + busca ---------- */
.lobby-nav {
  position: sticky; top: var(--header-h); z-index: var(--z-sticky);
  margin: 10px -16px 0; padding: 10px 16px;
  background: rgba(7, 9, 15, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: top 0.3s ease;
}
body.hdr-hidden .lobby-nav { top: 0; }
.search-row { margin: 10px 0 14px; }
.cats {
  display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cats::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 12px;
  font-size: 13px; font-weight: 700;
  color: var(--muted);
  background: var(--bg2);
  border: 1px solid var(--line);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.chip .ic { width: 14px; height: 14px; }
.chip:active { transform: scale(0.95); }
.chip:hover { color: var(--text); border-color: rgba(233, 185, 59, 0.4); }
.chip.is-active {
  color: #2B2008;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
  border-color: transparent;
  box-shadow: 0 3px 14px rgba(233, 185, 59, 0.35);
}
.search {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px; height: 44px;
  color: var(--muted);
}
.search:focus-within { border-color: rgba(233, 185, 59, 0.5); }
.search input {
  flex: 1; height: 100%;
  background: none; border: 0; outline: 0;
  color: var(--text); font-size: 16px;
}
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ---------- Lobby de jogos ---------- */
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-bottom: 12px;
}
.sec-head h2 { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.sec-count { font-size: 12px; color: var(--muted); font-weight: 600; }
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.gcard {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  background:
    radial-gradient(95% 60% at 50% 30%, var(--glo, rgba(255, 255, 255, 0.16)), transparent 72%),
    var(--g, var(--bg2));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  padding: 10px 8px 30px;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
/* Sunburst atrás do ícone — arte de slot clássica em CSS puro */
.gcard::before {
  content: ""; position: absolute; inset: -45%; z-index: -1;
  background: repeating-conic-gradient(from 0deg at 50% 46%, rgba(255, 255, 255, 0.07) 0 7deg, transparent 7deg 14deg);
  transform-origin: 50% 46%;
  opacity: 0.6;
}
/* Vinheta: topo levemente escuro, base ancorando a placa do nome */
.gcard::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.14), transparent 28%, transparent 52%, rgba(2, 3, 6, 0.62));
}
.gcard:hover {
  transform: translateY(-4px);
  border-color: rgba(233, 185, 59, 0.55);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5), 0 0 24px rgba(233, 185, 59, 0.12);
}
.gcard:hover::before { animation: raysSpin 16s linear infinite; }
@keyframes raysSpin { to { transform: rotate(360deg); } }
/* Cover tipográfico: marca-d'água + título display + provedor.
   (As miniaturas oficiais dos jogos entram aqui via API do agregador.) */
.gc-mark {
  position: absolute; top: -14px; right: -6px; z-index: 0;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(64px, 19vw, 96px); line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.12);
  pointer-events: none;
  user-select: none;
}
@supports not (-webkit-text-stroke: 1px black) {
  .gc-mark { color: rgba(255, 255, 255, 0.07); }
}
.gc-title {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(13.5px, 3.9vw, 18px); line-height: 1.12;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
  padding-inline: 6px;
  text-wrap: balance;
  overflow-wrap: break-word;
  /* Nomes longos do PlayFiver (ex.: "Blackjack Ao Vivo VIP Mesa Brasileira 42")
     viravam títulos de 6-7 linhas cobrindo o card. Limita a 2 linhas.
     (só o -webkit-: a versão padrão line-clamp reverte o display p/ flow-root
     no Chromium e desliga o clamp) */
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.gcard:hover .gc-title { transform: scale(1.06); }
.gc-prov {
  position: absolute; inset-inline: 6px; bottom: 9px; z-index: 1;
  font-size: 8.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(237, 239, 246, 0.55);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gcard:active { transform: scale(0.96); }
/* Entrada em cascata: só na 1ª pintura e na troca de categoria (classe .anim
   aplicada pelo JS). Anima apenas opacidade — não disputa o transform do
   hover/active nem pisca a cada tecla da busca. */
.gcard.anim { animation: cardIn 0.45s ease backwards; }
@keyframes cardIn { from { opacity: 0; } }
.gbadge {
  position: absolute; top: 7px; left: 7px; z-index: 2;
  font-size: 10px; font-weight: 800; letter-spacing: 0.04em;
  padding: 3px 7px; border-radius: 7px;
  color: #fff; background: #D92B2B;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.gbadge.novo { background: var(--green); color: #04220F; }
.gcard .playov {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  background: rgba(4, 6, 10, 0.55);
  opacity: 0; transition: opacity 0.2s ease;
}
.gcard:hover .playov, .gcard:focus-visible .playov { opacity: 1; }
.playov span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 99px;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-3));
  color: #2B0208;
  box-shadow: 0 6px 20px rgba(233, 185, 59, 0.5);
}
.playov .ic { width: 19px; height: 19px; margin-left: 2px; color: #2B2008; }
.grid-empty { text-align: center; color: var(--muted); padding: 30px 0; font-weight: 600; }

/* ---------- Ticker de ganhadores ---------- */
.winners { margin-top: 30px; }
.live-dot {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em;
  color: var(--hot);
}
.live-dot::before {
  content: ""; width: 7px; height: 7px; border-radius: 99px;
  background: var(--hot);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.8); } }
.ticker-head-actions { display: inline-flex; align-items: center; gap: 6px; }
.demo-tag {
  font-size: 10px; font-weight: 800; letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px dashed rgba(154, 163, 184, 0.5);
  padding: 4px 8px; border-radius: 99px;
  white-space: nowrap;
}
.anim-pause {
  width: 40px; height: 40px; border-radius: 99px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.anim-pause:hover { color: var(--text); }
.ticker.is-paused .ticker-track { animation-play-state: paused; }
.demo-note { display: block; font-size: 11px; color: var(--muted); }
.ticker {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg1);
  padding: 12px 0;
}
/* Fade nas pontas sem mask (mask apagaria a borda e o fundo do card) */
.ticker::before, .ticker::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 30px; z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--bg1), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--bg1), transparent); }
.ticker-track {
  display: flex; gap: 28px; width: max-content;
  animation: marq 36s linear infinite;
}
.tick-half { display: flex; gap: 28px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }
.tick-item { display: flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; }
.tick-item .tick-ic { width: 15px; height: 15px; color: var(--gold-2); }
.tick-item .t-name { color: var(--muted); font-weight: 600; }
.tick-item .t-amt { color: var(--green); font-weight: 800; }
.tick-item .t-game { color: var(--gold-1); font-weight: 600; }

/* ---------- Jackpot ---------- */
.jackpot {
  margin-top: 24px;
  border-radius: 20px;
  border: 1px solid rgba(233, 185, 59, 0.35);
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(233, 185, 59, 0.16), transparent 60%),
    var(--bg1);
  padding: 26px 18px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center;
}
.jackpot-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase;
}
.jackpot-label .ic { width: 16px; height: 16px; color: var(--gold-2); }
.jackpot-value {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(30px, 8.5vw, 52px);
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 40px rgba(233, 185, 59, 0.25);
}

/* ---------- PIX ---------- */
.pix {
  margin-top: 30px;
  border-radius: 20px;
  border: 1px solid rgba(50, 188, 173, 0.3);
  background:
    radial-gradient(100% 130% at 0% 0%, rgba(50, 188, 173, 0.12), transparent 55%),
    var(--bg1);
  padding: 24px 18px;
}
.pix-head { text-align: center; margin-bottom: 18px; }
.pix-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 800; font-size: 13px; letter-spacing: 0.06em;
  color: var(--pix);
  border: 1px solid rgba(50, 188, 173, 0.4);
  background: rgba(50, 188, 173, 0.1);
  padding: 6px 12px; border-radius: 99px;
  margin-bottom: 10px;
}
.pix-badge .ic { width: 17px; height: 17px; }
.btn .ic { width: 17px; height: 17px; }
.pix-head h2 { font-family: var(--font-display); font-size: clamp(20px, 5.6vw, 30px); font-weight: 800; }
.pix-head h2 em { font-style: normal; color: var(--pix); }
.pix-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.pix-steps { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.pix-steps li {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.pix-steps span {
  flex: 0 0 auto;
  width: 34px; height: 34px; border-radius: 99px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
  color: #042115;
  background: linear-gradient(135deg, #4BD8C9, var(--pix));
  box-shadow: 0 0 0 4px rgba(50, 188, 173, 0.12), 0 4px 12px rgba(50, 188, 173, 0.3);
}
.pix-steps strong { display: block; font-size: 14px; }
.pix-steps small { color: var(--muted); font-size: 12px; }
.pix-note { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 10px; }

/* ---------- VIP ---------- */
.vip { margin-top: 30px; }
.vip-row {
  display: flex; gap: 10px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
}
.vip-row::-webkit-scrollbar { display: none; }
.vip-card {
  flex: 0 0 156px;
  scroll-snap-align: start;
  border-radius: 16px;
  padding: 16px 14px;
  /* Borda em gradiente (padding-box/border-box) */
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg2), var(--bg2)) padding-box,
    linear-gradient(165deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02) 55%) border-box;
}
.vip-card .vip-ico { width: 26px; height: 26px; display: block; margin-bottom: 10px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45)); }
.vip-card h3 { font-family: var(--font-display); font-size: 15px; margin-bottom: 4px; }
.vip-card p { font-size: 12px; color: var(--muted); line-height: 1.45; }
.vip-top {
  background:
    linear-gradient(var(--bg2), var(--bg2)) padding-box,
    linear-gradient(165deg, var(--gold-1), var(--gold-3) 70%) border-box;
  box-shadow: 0 6px 24px rgba(233, 185, 59, 0.15);
}
.vip-top::before { content: none; }
.vip-note { font-size: 11.5px; color: var(--muted); margin-top: 10px; }

/* ---------- FAQ ---------- */
.faq { margin-top: 34px; }
.faq h2 { font-family: var(--font-display); font-size: 20px; margin-bottom: 14px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg1);
  margin-bottom: 8px;
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 42px 14px 16px;
  font-weight: 700; font-size: 14px;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--gold-2); font-size: 18px; font-weight: 700;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 16px 14px; color: var(--muted); font-size: 13.5px; }

/* ---------- Footer ---------- */
.footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: var(--bg1);
  padding: 30px 0 26px;
}
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; margin-bottom: 24px; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand p { color: var(--muted); font-size: 13px; margin: 8px 0 12px; max-width: 420px; }
.footer-logo { display: inline-flex; align-items: center; gap: 9px; }
.pay-strip { display: flex; gap: 8px; }
.pay-pill {
  font-size: 11px; font-weight: 800; letter-spacing: 0.04em;
  color: var(--pix);
  border: 1px solid rgba(50, 188, 173, 0.4);
  padding: 5px 10px; border-radius: 8px;
}
.pay-pill + .pay-pill { color: var(--muted); border-color: var(--line); }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h3 { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); margin-bottom: 2px; }
.footer-col a { color: var(--muted); font-size: 13px; text-decoration: none; }
.footer-col a:hover { color: var(--gold-1); }
.rg-strip {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg2);
  padding: 14px 16px;
  margin-bottom: 16px;
}
.age-badge {
  flex: 0 0 auto;
  width: 44px; height: 44px; border-radius: 99px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px;
  color: #fff; border: 2.5px solid var(--hot);
}
.rg-strip p { font-size: 12.5px; color: var(--muted); }
.rg-strip strong { color: var(--text); }
.legal { font-size: 11.5px; color: var(--muted); line-height: 1.6; margin-bottom: 10px; }
.legal strong { color: #B9C0D4; }
.copy { font-size: 11.5px; color: var(--muted); }

/* ---------- Bottom nav (mobile) ---------- */
.bottomnav {
  position: fixed; bottom: 0; inset-inline: 0; z-index: var(--z-nav);
  display: grid; grid-template-columns: repeat(5, 1fr);
  align-items: end;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(10, 13, 20, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.bn-item, .bn-dep {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; height: var(--nav-h);
  font-size: 10.5px; font-weight: 700; color: var(--muted);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s ease;
}
.bn-item:active { transform: scale(0.92); }
.bn-item.is-active::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 22px; height: 3px; border-radius: 0 0 99px 99px;
  background: linear-gradient(90deg, var(--gold-1), var(--gold-3));
}
.bn-ico { width: 21px; height: 21px; }
.bn-item.is-active { color: var(--gold-1); }
.bn-dep { color: var(--gold-1); position: relative; }
.bn-dep-btn {
  display: flex; align-items: center; justify-content: center;
  width: 50px; height: 50px;
  margin-top: -26px; margin-bottom: 2px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
  box-shadow: 0 6px 22px rgba(233, 185, 59, 0.5), 0 0 0 5px var(--bg0);
  color: #2B2008;
}
.bn-dep-btn .ic { width: 22px; height: 22px; }

/* ---------- Modais ---------- */
.dlg {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg2);
  color: var(--text);
  width: min(420px, calc(100vw - 28px));
  max-height: min(86dvh, 720px);
  padding: 0;
  margin: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.dlg::backdrop { background: rgba(3, 4, 8, 0.72); backdrop-filter: blur(4px); }
.dlg[open] { animation: dlgIn 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
/* Viewport baixo = teclado aberto no mobile: ancora o diálogo perto do topo
   (em vez de centralizado, onde o teclado cobre os campos de baixo). */
@media (max-height: 560px) {
  .dlg { margin-top: max(8px, env(safe-area-inset-top)); margin-bottom: auto; }
}
@keyframes dlgIn { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }
.dlg-in { padding: 22px 20px 20px; overflow-y: auto; max-height: inherit; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.dlg-x {
  position: absolute; top: 10px; right: 10px;
  width: 44px; height: 44px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted); font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.dlg-x:hover { color: var(--text); background: rgba(255, 255, 255, 0.12); }
.dlg-x .ic { width: 16px; height: 16px; }
.dlg h2 { font-family: var(--font-display); font-size: 21px; font-weight: 800; margin-bottom: 14px; padding-right: 44px; }
.dlg h2 .ic-title { width: 21px; height: 21px; vertical-align: -4px; margin-right: 6px; }
.bonus-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 800;
  color: #2B2008;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2) 60%, var(--gold-3));
  padding: 7px 12px; border-radius: 99px;
  margin-bottom: 12px;
  box-shadow: 0 3px 14px rgba(233, 185, 59, 0.35);
}
.bonus-pill .ic { width: 13px; height: 13px; }
.field { display: block; margin-bottom: 12px; }
.field span { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.field input,
.field select {
  width: 100%; height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg1);
  color: var(--text);
  padding: 0 14px;
  font-size: 16px; /* >=16px evita zoom automático no iOS */
  outline: none;
  transition: border-color 0.2s ease;
}
.field input:focus,
.field select:focus { border-color: rgba(233, 185, 59, 0.55); }
/* Placeholder com contraste AA (>=4.5:1) sobre --bg1: os hints de formato dos
   campos de dinheiro ("Ex.: 75,00", "000.000.000-00") precisam ser legíveis. */
.field input::placeholder { color: #8B94A9; opacity: 1; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: 13px; line-height: 1.55; color: var(--muted); cursor: pointer; }
.check input { margin-top: 2px; width: 17px; height: 17px; accent-color: var(--gold-2); flex: 0 0 auto; }
/* Checkbox de idade que reprovou um envio fica marcado (antes não tinha sinal). */
.check input:user-invalid { outline: 2px solid rgba(255, 94, 94, 0.7); outline-offset: 2px; border-radius: 4px; }
.check a { color: var(--gold-1); }
.dlg .btn-block { margin-top: 6px; }
/* Feedback inline dos diálogos: com showModal() o resto do documento fica
   inert, então o erro precisa viver DENTRO do diálogo para ser visto e
   anunciado (role="alert"). Persiste até o próximo envio/fechamento. */
.dlg-error {
  display: flex;
  margin: 2px 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px; font-weight: 600; line-height: 1.45;
  color: #FFC9C9;
  background: rgba(217, 43, 43, 0.12);
  border: 1px solid rgba(255, 94, 94, 0.45);
}
.dlg-error[hidden] { display: none; }
.dlg-status { margin-top: 8px; font-size: 12.5px; font-weight: 600; color: #6FE8A6; text-align: center; }
.dlg-status.is-error { color: #FFC9C9; }
/* Campo que já falhou um envio fica marcado de forma persistente */
.field input:user-invalid { border-color: rgba(255, 94, 94, 0.55); }
.dlg-alt { text-align: center; font-size: 13px; color: var(--muted); margin-top: 12px; }
.dlg-secure {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 11.5px; color: var(--muted); margin-top: 10px;
}
.dlg-secure .ic { width: 13px; height: 13px; }
.amt:active { transform: scale(0.96); }

/* Depósito */
.dep-sub { color: var(--muted); font-size: 13.5px; margin: -6px 0 14px; }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.amt {
  position: relative;
  height: 48px; border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg1);
  font-weight: 800; font-size: 15px;
  transition: all 0.15s ease;
}
.amt:hover { border-color: rgba(29, 191, 99, 0.5); }
.amt.is-active {
  border-color: var(--green);
  background: rgba(29, 191, 99, 0.12);
  color: #6FE8A6;
  box-shadow: 0 0 0 1px var(--green) inset;
}
.amt-tag {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  font-size: 9px; font-weight: 800; letter-spacing: 0.03em;
  background: var(--green); color: #04220F;
  padding: 2px 7px; border-radius: 99px;
  white-space: nowrap;
}
.pix-result { margin-top: 16px; text-align: center; }
.qr-box {
  width: 172px; height: 172px;
  margin: 0 auto 10px;
  border-radius: 14px;
  background: #fff;
  padding: 10px;
}
.qr-box svg { width: 100%; height: 100%; }
.qr-box img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.qr-box .qr-ok {
  display: flex; width: 100%; height: 100%;
  align-items: center; justify-content: center;
  font-size: 64px;
}
.qr-amt { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--green); margin-bottom: 10px; }
/* Copia-e-cola SEMPRE visível e selecionável: em WebView do IG/FB o
   navigator.clipboard falha; o usuário precisa poder tocar-e-segurar p/ copiar
   o código manualmente (o QR não serve — está na mesma tela que pagaria). */
.pix-code {
  width: 100%; margin-bottom: 10px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg1); color: var(--muted);
  padding: 9px 12px; font-size: 12px; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  text-align: center; text-overflow: ellipsis;
  user-select: all; -webkit-user-select: all;
}
.pix-code:focus { outline: 2px solid var(--gold-1); outline-offset: 1px; border-color: rgba(233,185,59,.55); }
.qr-note { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ---------- Toast ---------- */
/* [popover] nos navegadores modernos: o JS chama showPopover() e o toast
   entra no TOP LAYER, acima de qualquer <dialog> aberto. `inset:auto` e
   `margin:0` desfazem a centralização padrão da UA para popovers; o resto
   (fixed + z-index) segue valendo como fallback sem Popover API. */
.toast {
  position: fixed; z-index: var(--z-toast);
  inset: auto;
  left: 50%; bottom: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom));
  margin: 0;
  width: max-content;
  transform: translateX(-50%) translateY(16px);
  background: var(--bg3);
  /* Borda >=3:1 sobre o fundo da página: o pill não some no dark (WCAG 1.4.11) */
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--text);
  font-size: 13.5px; font-weight: 600;
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: calc(100vw - 32px);
  text-align: center;
}
/* Visível aceita interação: hover pausa o timer e clique dispensa (via JS).
   O estado visível é o de REPOUSO (opacity 1): mesmo sem quadro de animação
   — aba oculta, movimento reduzido — o toast pinta visível. A entrada suave
   é enriquecimento via @starting-style quando o popover sai de display:none. */
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
@starting-style {
  .toast.is-on { opacity: 0; transform: translateX(-50%) translateY(16px); }
}
.toast.is-error {
  border-color: rgba(255, 94, 94, 0.65);
  background: linear-gradient(rgba(217, 43, 43, 0.14), rgba(217, 43, 43, 0.14)), var(--bg3);
  color: #FFC9C9;
}

/* ---------- Fogos de artifício (saque solicitado) ---------- */
/* Canvas efêmero criado pelo JS: existe só enquanto a animação roda.
   pointer-events:none — decoração pura, nunca intercepta toque/clique. */
.fx-canvas {
  position: fixed; inset: 0; z-index: var(--z-fx);
  width: 100%; height: 100%;
  pointer-events: none;
}
/* Regiões live de anúncio: sempre renderizadas, invisíveis mas na árvore de
   acessibilidade (não usar display:none nem visibility:hidden, que as tiram
   da árvore e impediriam o anúncio). */
.sr-only {
  position: fixed; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Kicker de seção ---------- */
.kicker {
  display: block;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 4px;
}

/* ---------- Faixa de provedores ---------- */
.providers {
  display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap;
  margin: 22px 0 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg1);
}
.providers > span { font-size: 11px; font-weight: 700; color: var(--muted); }
.providers ul { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; }
.providers li {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  color: rgba(237, 239, 246, 0.5);
  white-space: nowrap;
}

/* ---------- Mesas ao vivo ---------- */
.livesec { margin-top: 30px; }
.live-row {
  display: flex; gap: 12px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
}
.live-row::-webkit-scrollbar { display: none; }
.live-card {
  flex: 0 0 236px;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: left;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 85% 0%, var(--glo, rgba(50, 188, 173, 0.2)), transparent 60%),
    var(--bg2);
  padding: 16px;
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.live-card:hover { transform: translateY(-3px); border-color: rgba(233, 185, 59, 0.5); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); }
.live-card .lc-emo {
  position: absolute; right: -6px; bottom: -10px; z-index: -1;
  width: 84px; height: 84px;
  color: rgba(255, 255, 255, 0.16);
}
.live-card:active { transform: scale(0.97); }
.lc-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em;
  color: #6FE8A6;
  margin-bottom: 10px;
}
.lc-status::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: var(--green); animation: pulse 1.6s ease-in-out infinite; }
/* Estado pré-integração: sem simulação de "ao vivo" */
.lc-status.soon { color: var(--gold-1); }
.lc-status.soon::before { background: var(--gold-2); animation: none; }
.live-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 800; margin-bottom: 2px; }
.live-card .lc-sub { font-size: 11.5px; color: var(--muted); margin-bottom: 12px; }
.lc-limits {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  color: var(--gold-1);
  background: rgba(233, 185, 59, 0.1);
  border: 1px solid rgba(233, 185, 59, 0.28);
  padding: 4px 9px; border-radius: 8px;
}

/* ---------- Stepper do depósito ---------- */
.dep-steps {
  display: flex; gap: 6px; list-style: none;
  margin: -4px 0 14px;
}
.dep-steps li {
  flex: 1;
  font-size: 10px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding-top: 8px;
  border-top: 3px solid var(--line);
}
.dep-steps li.done { color: #6FE8A6; border-top-color: var(--green); }
.dep-steps li.cur { color: var(--gold-1); border-top-color: var(--gold-2); }

/* ---------- Skeleton do lobby (estado de carregamento da API) ---------- */
.sk-card {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(100deg, var(--bg2) 40%, var(--bg3) 50%, var(--bg2) 60%);
  background-size: 220% 100%;
  animation: skShine 1.2s linear infinite;
}
@keyframes skShine { to { background-position: -120% 0; } }

/* ---------- Animações de entrada (só com JS ativo) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Detalhes avançados de renderização ---------- */
/* Seções abaixo da dobra só renderizam quando se aproximam do viewport */
.faq, .footer { content-visibility: auto; contain-intrinsic-size: auto 560px; }
/* View Transitions (filtro do lobby): fade curto e discreto */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.18s; }

/* ---------- Páginas internas (termos, jogo responsável) ---------- */
.page { max-width: 760px; margin-inline: auto; padding: 26px 16px 60px; }
.page-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--gold-1);
  text-decoration: none; margin-bottom: 18px;
}
.page h1 { font-family: var(--font-display); font-size: clamp(24px, 6vw, 34px); font-weight: 800; margin-bottom: 6px; }
.page .page-sub { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.page h2 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin: 26px 0 8px; }
.page p, .page li { color: #C6CCDC; font-size: 14.5px; line-height: 1.7; }
.page ul { padding-left: 20px; margin: 8px 0; }
.page .card-note {
  border: 1px solid rgba(233, 185, 59, 0.3);
  background: rgba(233, 185, 59, 0.06);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 18px 0;
}

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  .announce { font-size: 12px; }
  .hero { margin-top: 20px; }
  .slide { min-height: 300px; padding: 40px 48px; }
  .slide-copy { max-width: 56%; }
  .slide p { font-size: 16px; }
  .lobby-nav { top: var(--header-h); }
  .search-row { display: flex; justify-content: flex-end; }
  .search-row .search { min-width: 320px; }
  .grid { grid-template-columns: repeat(6, 1fr); gap: 14px; }
  .sec-head h2 { font-size: 22px; }
  .pix { padding: 34px; }
  .pix-steps { flex-direction: row; }
  .pix-steps li { flex: 1; }
  .pix .btn-block { max-width: 380px; margin-inline: auto; display: flex; }
  .vip-card { flex: 1 1 0; }
  .live-card { flex: 1 1 0; }
  .providers { justify-content: center; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
  .toast { bottom: 28px; }
}
@media (min-width: 640px) and (max-width: 899px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 640px) {
  .gc-prov { bottom: 11px; font-size: 9px; }
}

/* ---------- Acessibilidade: movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-gold::after, .slide-art, .live-dot::before, .lc-status::before,
  .shine, .sp, .sk-card, .gcard { animation: none; }
  .gcard:hover::before { animation: none; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; padding: 0 14px; }
  .tick-half { flex-wrap: wrap; }
  .tick-half[aria-hidden] { display: none; }
  .anim-pause { display: none; }
  .hero-track { transition: none; }
  .dlg[open] { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  /* Toast só com fade de opacidade — sem o deslize de 16px (mantém a
     centralização translateX(-50%)); o estado visível continua sendo o de
     repouso, então o toast aparece igual, só sem movimento posicional. */
  .toast { transition: opacity 0.2s ease; }
  .toast, .toast.is-on { transform: translateX(-50%) translateY(0); }
}

/* ============================================================
   PlayFiver — capas reais dos jogos + player em tela cheia
   ============================================================ */

/* Capa oficial do jogo cobre o card; título/badge/overlay ficam por cima. */
.gc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.gcard.has-img .gc-mark { display: none; }
.gcard.has-img .gc-title {
  position: absolute; inset-inline: 0; bottom: 22px; z-index: 1;
  font-size: clamp(11px, 3.2vw, 14px); padding-inline: 8px;
  /* Capas claras do PlayFiver: sombra dupla garante contraste do texto branco. */
  text-shadow: 0 1px 2px rgba(0,0,0,.95), 0 2px 12px rgba(0,0,0,.8);
}
.gcard.has-img .gc-prov { color: rgba(237,239,246,.82); text-shadow: 0 1px 3px rgba(0,0,0,.9); }
/* Fallback: logo do provedor centrado no gradiente (quando a capa dá 404). */
.gc-logo {
  position: absolute; top: 44%; left: 50%; transform: translate(-50%, -50%);
  width: 64%; max-width: 128px; height: auto; z-index: 0;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.55));
  opacity: 0.97; pointer-events: none;
}
.gcard.has-logo .gc-mark { display: none; }
.gcard.has-logo .gc-title {
  position: absolute; inset-inline: 0; bottom: 22px; z-index: 1;
  font-size: clamp(11px, 3.2vw, 14px); padding-inline: 8px;
}
.gcard.has-logo::after {
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, transparent 40%, rgba(2,3,6,.78) 100%);
}
/* Vinheta mais forte sobre a capa para o nome/rodapé continuarem legíveis. */
.gcard.has-img::after {
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, transparent 34%, rgba(2,3,6,.82) 100%);
}

/* Botão "carregar mais" do lobby */
.grid-more { display: flex; justify-content: center; margin-top: 18px; }
.grid-more .btn { min-width: 220px; }

/* Player de jogo — dialog em tela cheia com o iframe do provedor */
.game-modal {
  padding: 0; border: 0; margin: 0;
  width: 100vw; max-width: 100vw;
  /* Fallback p/ WebViews sem dvh (IG/FB antigos): sem isto o dvh não resolvido
     colapsava o player para a barra de 52px (iframe 0px). */
  height: 100vh; max-height: 100vh;
  height: 100dvh; max-height: 100dvh;
  background: #05070c; color: var(--text, #eef1f7);
  display: flex; flex-direction: column; overflow: hidden;
}
.game-modal:not([open]) { display: none; }
.game-modal::backdrop { background: rgba(0,0,0,.9); }
.gm-bar {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px;
  /* Safe-area em landscape: em aparelhos com notch a barra (e o botão "Sair")
     ficava sob o entalhe/insets laterais. */
  padding: max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));
  min-height: 52px;
  background: linear-gradient(180deg, #0d1118, #0a0d14);
  border-bottom: 1px solid var(--line, rgba(255,255,255,.08));
}
.gm-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.06); color: #eef1f7;
  border: 1px solid var(--line, rgba(255,255,255,.1));
  border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: 14px; cursor: pointer;
}
.gm-back:hover { background: rgba(255,255,255,.12); }
.gm-back .ic { width: 16px; height: 16px; }
.gm-title {
  flex: 1 1 auto; text-align: center; font-weight: 700; font-size: 15px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gm-bal {
  flex: 0 0 auto; font-weight: 800; font-size: 14px; color: #F4D97E;
  background: rgba(233,185,59,.12); border: 1px solid rgba(233,185,59,.3);
  border-radius: 999px; padding: 6px 12px; white-space: nowrap;
}
.gm-pop { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: #9fd0ff; text-decoration: underline; cursor: pointer; }
.gm-stage { position: relative; flex: 1 1 auto; background: #05070c; }
.gm-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.gm-spin {
  position: absolute; inset: 0; z-index: 1; margin: auto; width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.15); border-top-color: #E9B93B; animation: gmspin .8s linear infinite;
}
@keyframes gmspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gm-spin { animation: none; } }

/* ============================================================
   App Shell — header (toggle Cassino|Esportes, busca), sidebar
   desktop colapsável, bottom nav com menu central e drawer.
   Todo o bloco consome apenas os tokens de papel do :root.
   ============================================================ */

/* ---------- Header: toggle segmentado Cassino|Esportes ---------- */
.mode-toggle {
  display: flex; align-items: center; gap: 2px;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.mt-item {
  display: flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 14px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 13px; font-weight: 700; color: var(--text-muted);
  transition: color 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.mt-item .ic { width: 16px; height: 16px; }
.mt-item:hover { color: var(--text-primary); }
.mt-item.is-active {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
  color: var(--accent-contrast);
  box-shadow: 0 3px 14px rgba(233, 185, 59, 0.35);
}
/* Telas estreitas: o toggle fica só com ícones e a marca vira só o símbolo */
@media (max-width: 519px) {
  .brand-txt { display: none; }
  .mt-item span { display: none; }
  .mt-item { padding: 0 12px; }
}

/* ---------- Header: botão de busca + slot de auth ---------- */
.icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: 0 0 40px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  background: transparent;
  transition: color 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { color: var(--text-primary); background: var(--bg-hover); }
.icon-btn .ic { width: 19px; height: 19px; }
.auth-slot { display: inline-flex; gap: 8px; align-items: center; }
.btn-dep { white-space: nowrap; }

/* ---------- Shell: sidebar sticky no desktop ---------- */
.shell { display: block; }
.shell-main { min-width: 0; }
.sidebar { display: none; }

.sb-toggle {
  align-self: flex-end;
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex: 0 0 auto;
  border-radius: 10px;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: color 0.2s ease, background 0.2s ease;
}
.sb-toggle .ic { width: 16px; height: 16px; transition: transform 0.25s ease; }
.sb-toggle:hover { color: var(--text-primary); background: var(--bg-hover); }
body.sb-collapsed .sb-toggle { align-self: center; }
body.sb-collapsed .sb-toggle .ic { transform: rotate(180deg); }

.sb-reward {
  display: flex; align-items: center; gap: 10px;
  padding: 10px;
  border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text-primary);
  background: var(--accent-soft-08);
  border: 1px solid var(--accent-soft-24);
  transition: background 0.2s ease;
}
.sb-reward:hover { background: var(--accent-soft-16); }
.sb-reward-ic {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex: 0 0 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
  color: var(--accent-contrast);
}
.sb-reward-ic .ic { width: 18px; height: 18px; }
.sb-reward strong { display: block; font-size: 13px; line-height: 1.25; }
.sb-reward small { color: var(--text-muted); font-size: 11px; }
body.sb-collapsed .sb-reward { justify-content: center; padding: 8px 6px; }

.sb-nav { display: flex; flex-direction: column; gap: 2px; }
.sb-item {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 13.5px; font-weight: 600; color: var(--text-muted);
  transition: color 0.2s ease, background 0.2s ease;
}
.sb-item .ic { width: 19px; height: 19px; flex: 0 0 19px; }
.sb-item:hover { color: var(--text-primary); background: var(--bg-hover); }
.sb-item.is-active { color: var(--gold-1); background: var(--bg-hover); }
.sb-item.is-active::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 22px; border-radius: 0 99px 99px 0;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-3));
}
body.sb-collapsed .sb-item { justify-content: center; padding: 0; }
body.sb-collapsed .sb-label { display: none; }

@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .bottomnav { display: none; }
  /* Sidebar visível: header fixo dá mais estabilidade que o retrátil */
  body.hdr-hidden .topbar { transform: none; }
  body.hdr-hidden .lobby-nav { top: var(--header-h); }
  .shell { display: flex; align-items: stretch; }
  .sidebar {
    display: flex; flex-direction: column; gap: 12px;
    position: sticky; top: var(--header-h);
    height: calc(100dvh - var(--header-h));
    overflow-y: auto; overscroll-behavior: contain;
    flex: 0 0 var(--sidebar-w); width: var(--sidebar-w);
    padding: 14px 10px 18px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
    scrollbar-width: thin;
    transition: flex-basis 0.25s ease, width 0.25s ease;
  }
  body.sb-collapsed .sidebar {
    flex-basis: var(--sidebar-w-collapsed);
    width: var(--sidebar-w-collapsed);
    padding-inline: 8px;
  }
  .shell-main { flex: 1 1 auto; }
  .shell-main > .container { max-width: var(--content-max); }
}

/* ---------- Bottom nav: itens-link + menu central ---------- */
.bn-item { text-decoration: none; }
.bn-menu {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; height: var(--nav-h);
  font-size: 10.5px; font-weight: 700; color: var(--gold-1);
  -webkit-tap-highlight-color: transparent;
}
.bn-menu-btn {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  margin-top: -26px; margin-bottom: 2px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
  box-shadow: 0 6px 22px rgba(233, 185, 59, 0.5), 0 0 0 5px var(--bg-base);
  transition: transform 0.1s ease;
}
.bn-menu-btn img { display: block; width: 30px; height: 30px; }
.bn-menu:active .bn-menu-btn { transform: scale(0.94); }

/* ---------- Drawer (menu completo — bottom sheet no mobile) ---------- */
.drawer {
  width: 100%; max-width: 100%;
  margin: auto 0 0;
  border: 0; border-top: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--bg-elevated);
  color: var(--text-primary);
  padding: 0;
}
.drawer::backdrop { background: rgba(3, 4, 8, 0.72); backdrop-filter: blur(3px); }
.drawer[open] { animation: drawerIn 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.1); }
@keyframes drawerIn { from { transform: translateY(28px); opacity: 0.4; } to { transform: none; opacity: 1; } }
.drawer-in {
  display: flex; flex-direction: column; gap: 12px;
  max-height: 84dvh; overflow-y: auto; overscroll-behavior: contain;
  padding: 14px 16px calc(18px + env(safe-area-inset-bottom));
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-head .dlg-x { position: static; }
.drawer-auth { display: flex; gap: 8px; }
.drawer-auth .btn { flex: 1 1 0; }
.drawer-auth .balance-pill { flex: 1 1 0; justify-content: center; }
.drawer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dr-item {
  display: flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 0 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  text-decoration: none; text-align: left;
  font-size: 13.5px; font-weight: 600; color: var(--text-primary);
  transition: background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.dr-item:hover { background: var(--bg-hover); }
.dr-item .ic { width: 18px; height: 18px; flex: 0 0 18px; color: var(--gold-1); }
@media (min-width: 1024px) {
  .drawer {
    width: min(420px, calc(100vw - 28px)); margin: auto;
    border: 1px solid var(--border); border-radius: var(--radius-lg);
  }
}

/* ---------- Busca global (overlay fullscreen mobile / painel desktop) ---------- */
.dlg-search {
  width: 100%; max-width: 100%;
  height: 100dvh; max-height: 100dvh;
  margin: 0; border: 0; border-radius: 0;
}
.dlg-search .dlg-in {
  display: flex; flex-direction: column; gap: 12px;
  height: 100%; max-height: none;
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
}
.dlg-search .dlg-x { top: 12px; }
.search-lg { height: 48px; margin-right: 52px; }
.search-state { color: var(--text-muted); font-size: 13px; }
.search-results {
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto; overscroll-behavior: contain;
  padding-bottom: 8px;
}
.sr-item {
  display: flex; align-items: center; gap: 12px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  text-align: left;
  transition: background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.sr-item:hover { background: var(--bg-hover); }
.sr-thumb {
  position: relative; overflow: hidden;
  width: 44px; height: 58px; flex: 0 0 44px;
  border-radius: 8px;
  background: var(--g, var(--bg-elevated));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
  color: rgba(237, 239, 246, 0.55);
}
.sr-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sr-meta { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.sr-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-prov { color: var(--text-muted); font-size: 12px; }
.sr-go {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex: 0 0 34px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft-16); color: var(--gold-1);
}
.sr-go .ic { width: 14px; height: 14px; }
.sk-row {
  min-height: 74px; border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: linear-gradient(100deg, var(--bg-elevated) 40%, var(--bg-hover) 50%, var(--bg-elevated) 60%);
  background-size: 300% 100%;
  animation: skShine 1.1s linear infinite;
}
@media (min-width: 720px) {
  .dlg-search {
    width: min(560px, 92vw); height: auto;
    max-height: min(640px, 86dvh);
    margin: 7dvh auto auto;
    border: 1px solid var(--border); border-radius: var(--radius-lg);
  }
  .dlg-search .dlg-in { height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .drawer[open] { animation: none; }
  .sk-row { animation: none; }
  .sb-toggle .ic, .sidebar { transition: none; }
}

/* ---------- Página Esportes: hero "em breve" (EmptyState honesto) ---------- */
.soon-hero {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  margin: 34px 0;
  padding: clamp(36px, 8vw, 72px) 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(120% 130% at 50% 0%, var(--accent-soft-08), transparent 55%),
    var(--bg-surface);
}
.soon-badge {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold-1);
  background: var(--accent-soft-08);
  border: 1px solid var(--accent-soft-24);
}
.soon-badge .ic { width: 15px; height: 15px; }
.soon-hero h2 { font-family: var(--font-display); font-size: clamp(24px, 6vw, 40px); font-weight: 800; }
.soon-hero p { max-width: 52ch; color: var(--text-secondary); font-size: 15px; }
.soon-hero .slide-cta { justify-content: center; }

/* ============================================================
   Lobby /casino — banner slim, trilhos com SectionHeader,
   provedores, temas e cauda do grid (infinite scroll).
   ============================================================ */

/* ---------- Banner slim (versão compacta dos banners da home) ---------- */
.lobby-banner {
  display: grid; grid-template-columns: 1fr; gap: 12px;
  margin-top: 16px;
}
.lb-card {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 140px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.lb-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 70%; }
.lb-copy h2 { font-family: var(--font-display); font-size: clamp(17px, 4.6vw, 22px); font-weight: 800; text-wrap: balance; }
.lb-art { flex: 0 0 92px; }
.lb-art svg { width: 92px; height: 92px; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.45)); }
@media (min-width: 900px) {
  .lobby-banner { grid-template-columns: 1fr 1fr; gap: 14px; }
}

/* ---------- Trilho com cabeçalho padrão ---------- */
.rails { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.rail { margin-top: 22px; }
.rail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.rail-head h2 { font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.rail-actions { display: flex; align-items: center; gap: 8px; }
.rail-all { font-size: 13px; }
.rail-arrow {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
.rail-arrow .ic { width: 15px; height: 15px; }
.rail-arrow:hover:not(:disabled) { color: var(--text-primary); background: var(--bg-hover); }
.rail-arrow:disabled { opacity: 0.35; cursor: default; }
.rail-scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(44vw, 168px);
  gap: 10px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
  cursor: grab;
}
.rail-scroller::-webkit-scrollbar { display: none; }
.rail-scroller:active { cursor: grabbing; }
.rail-scroller > * { scroll-snap-align: start; }
@media (min-width: 900px) {
  .rail-scroller { grid-auto-columns: 168px; gap: 14px; }
}

/* ---------- Cauda do grid ---------- */
.grid-tail { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 16px; }
.grid-sentinel { width: 100%; height: 2px; }
.grid-end { color: var(--text-muted); font-size: 13.5px; text-align: center; padding: 8px 0 2px; }

/* ---------- Provedores (logos acinzentados → cor no hover) ---------- */
.providers-rail { margin-top: 26px; }
.prov-scroller { grid-auto-columns: auto; }
.prov-pill {
  display: flex; align-items: center; gap: 9px;
  height: 52px; padding: 0 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 13px; font-weight: 700; color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.prov-pill img {
  width: 26px; height: 26px; object-fit: contain;
  filter: grayscale(1) opacity(0.6);
  transition: filter 0.2s ease;
}
.prov-pill:hover { color: var(--text-primary); background: var(--bg-hover); }
.prov-pill:hover img { filter: none; }
.prov-pill.is-active {
  color: var(--gold-1);
  border-color: var(--accent-soft-24);
  background: var(--accent-soft-08);
}
.prov-pill.is-active img { filter: none; }

/* ---------- Temas ---------- */
.themes-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

/* ---------- Bloco SEO colapsado ---------- */
.seo-block { margin-top: 34px; }
.seo-block > h2 { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.seo-more summary {
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer; list-style: none;
  font-size: 13.5px; font-weight: 700; color: var(--gold-1);
}
.seo-more summary::-webkit-details-marker { display: none; }
.seo-more summary::after { content: "▾"; font-size: 11px; transition: transform 0.2s ease; }
.seo-more[open] summary::after { transform: rotate(180deg); }
.seo-more p { color: var(--text-secondary); font-size: 14px; line-height: 1.7; margin-top: 10px; max-width: 76ch; }

/* ============================================================
   Home em trilhos — recompensas, banner de esportes, seções de
   stats reais (mais pagaram / top vitórias / leaderboard).
   ============================================================ */

/* ---------- Faixa de Recompensas ---------- */
.rewards { margin-top: 16px; }
.rewards-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.rewards .rail-head { margin-bottom: 10px; }
.rewards-row { grid-auto-columns: min(78vw, 300px); }
.reward-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  text-decoration: none; text-align: left; color: var(--text-primary);
  transition: background 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.reward-card:hover { background: var(--bg-hover); border-color: var(--accent-soft-24); }
.rw-ic {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: 0 0 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
  color: var(--accent-contrast);
}
.rw-ic .ic { width: 20px; height: 20px; }
.rw-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rw-txt strong { font-size: 13.5px; }
.rw-txt small { color: var(--text-muted); font-size: 12px; }

/* ---------- Chips de categoria como links (home) ---------- */
.cats-links { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin-top: 18px; }
.cats-links::-webkit-scrollbar { display: none; }
a.chip { text-decoration: none; }

/* ---------- Banner Esportes em breve ---------- */
.sports-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: 30px;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: radial-gradient(130% 160% at 0% 0%, rgba(50, 188, 173, 0.14), transparent 55%), var(--bg-surface);
}
.sports-copy h2 { font-family: var(--font-display); font-size: clamp(18px, 4.6vw, 24px); font-weight: 800; margin: 6px 0 4px; }
.sports-copy p { color: var(--text-secondary); font-size: 13.5px; max-width: 52ch; }

/* ---------- Seções de stats reais ---------- */
.stats-sec { margin-top: 30px; }
.lb-sub { color: var(--text-muted); font-size: 13px; margin: -6px 0 12px; }

/* Tabs de período (indicador por estado ativo) */
.tabs { display: flex; gap: 4px; padding: 3px; border-radius: var(--radius-pill); background: var(--bg-elevated); border: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  height: 30px; padding: 0 12px;
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}
.tab:hover { color: var(--text-primary); }
.tab.is-active {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
  color: var(--accent-contrast);
}

/* Selo de valor pago no card (verde --success) */
.gbadge-val {
  background: var(--success);
  color: #04220F;
  font-variant-numeric: tabular-nums;
}

/* Card de vitória (top vitórias) */
.win-row { grid-auto-columns: min(84vw, 320px); }
.win-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  text-align: left;
  transition: background 0.2s ease;
}
.win-card:hover { background: var(--bg-hover); }
.win-thumb {
  position: relative; overflow: hidden;
  width: 46px; height: 60px; flex: 0 0 46px;
  border-radius: 8px;
  background: var(--g, var(--bg-hover));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; color: rgba(237, 239, 246, 0.55);
}
.win-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.win-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.win-game { font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-player { color: var(--text-muted); font-size: 12px; }
.win-amt { color: var(--success); font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }


/* ============================================================
   Páginas secundárias — /bonus, /vip e /torneios
   ============================================================ */
.page-h1 { font-family: var(--font-display); font-size: clamp(24px, 6vw, 34px); font-weight: 800; margin-top: 26px; }
.page-sub { color: var(--text-secondary); font-size: 14.5px; margin: 8px 0 22px; }
.page-note { color: var(--text-muted); font-size: 12.5px; margin: 22px 0 8px; max-width: 76ch; }

/* Grid de recompensas grandes */
.bonus-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .bonus-grid { grid-template-columns: 1fr 1fr; gap: 14px; } }
@media (min-width: 1100px) { .bonus-grid { grid-template-columns: 1fr 1fr 1fr; } }
.bonus-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.bonus-card:hover { border-color: var(--accent-soft-24); transform: translateY(-2px); }
.bonus-card h2 { font-family: var(--font-display); font-size: 17px; font-weight: 800; }
.bonus-card p { color: var(--text-secondary); font-size: 13.5px; flex: 1 1 auto; }
.bonus-cta { display: flex; gap: 8px; flex-wrap: wrap; }

/* Corpo das regras no dialog */
.rules-body h3 { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--gold-1); margin: 14px 0 6px; }
.rules-body p, .rules-body li { color: var(--text-secondary); font-size: 13.5px; line-height: 1.65; }
.rules-body ul { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }

/* Hero do Clube Sheik */
.vip-hero {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
  margin-top: 26px;
  padding: clamp(30px, 7vw, 60px) 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: radial-gradient(120% 140% at 50% 0%, var(--accent-soft-16), transparent 60%), var(--bg-surface);
}
.vip-hero h2 { font-family: var(--font-display); font-size: clamp(26px, 7vw, 42px); font-weight: 800; }
.vip-hero p { max-width: 56ch; color: var(--text-secondary); font-size: 15px; }
.vip-hero .slide-cta { justify-content: center; }
.vip-how { margin-top: 30px; }
.vip-how h2 { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.vip-how p { color: var(--text-secondary); font-size: 14px; line-height: 1.7; max-width: 76ch; }

/* ---------- Footer: linha de provedores + grade ampliada ---------- */
.footer-providers {
  color: var(--text-muted); font-size: 12px;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; }
}

/* ---------- "Mais pagaram hoje": card vitrine (capa + rodapé de valor) ---------- */
.tg-row { grid-auto-columns: min(56vw, 196px); }
.tg-card {
  display: flex; flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.tg-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-soft-24);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
}
.tg-card:active { transform: scale(0.97); }
.tg-cover {
  position: relative; overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--g, var(--bg-hover));
  display: flex; align-items: center; justify-content: center;
}
.tg-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tg-ini {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 10vw, 56px);
  color: rgba(237, 239, 246, 0.35);
}
.tg-rank {
  position: absolute; top: 8px; left: 8px;
  min-width: 26px; height: 26px; padding: 0 7px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px;
  font-family: var(--font-display); font-weight: 800; font-size: 13px;
  color: var(--text-primary);
  background: rgba(2, 3, 6, 0.62);
  border: 1px solid var(--border);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.tg-rank.is-top {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
  color: var(--accent-contrast);
  border-color: transparent;
  box-shadow: 0 3px 14px rgba(233, 185, 59, 0.35);
}
.tg-flame {
  position: absolute; bottom: 8px; right: 8px;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill);
  color: var(--gold-1);
  background: rgba(2, 3, 6, 0.62);
  border: 1px solid var(--border);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.tg-flame .ic { width: 14px; height: 14px; }
.tg-foot { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; }
.tg-name {
  font-size: 12.5px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tg-label { color: var(--text-muted); font-size: 11px; }
.tg-amt {
  color: var(--success); font-weight: 800; font-size: 15.5px;
  font-variant-numeric: tabular-nums;
}
/* Fallbacks da capa do "mais pagaram": img absoluta cobre; logo centra */
.tg-cover .tg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tg-cover .tg-plogo { position: relative; width: 56%; max-height: 56%; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.55)); }

/* ---------- Top Vitórias v2: seletor deslizante + cards com multiplicador ---------- */
.tabs { position: relative; }
.tab { position: relative; z-index: 1; }
/* Com o glider ativo, a pílula dourada é o indicador que DESLIZA — a tab
   ativa fica transparente e só troca a cor do texto */
.tabs.has-glider .tab.is-active { background: transparent; }
.tab-glider {
  position: absolute; top: 3px; bottom: 3px; left: 0; width: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
  box-shadow: 0 3px 14px rgba(233, 185, 59, 0.35);
  transition: left 0.25s cubic-bezier(0.22, 0.8, 0.3, 1), width 0.25s cubic-bezier(0.22, 0.8, 0.3, 1);
  z-index: 0;
}

/* Cabeçalho da seção no mobile: tabs ganham a própria linha, largura total,
   alvos de toque maiores */
@media (max-width: 700px) {
  #secTopWins .rail-head { flex-direction: column; align-items: stretch; gap: 10px; }
  #secTopWins .tabs { width: 100%; }
  #secTopWins .tab { flex: 1 1 auto; justify-content: center; display: flex; align-items: center; height: 36px; }
}

/* Card de vitória: valor + multiplicador em coluna própria à direita */
.win-card { width: 100%; }
.win-amt-box {
  margin-left: auto;
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  flex: 0 0 auto;
}
.win-mult {
  font-size: 11px; font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--gold-1);
  background: var(--accent-soft-08);
  border: 1px solid var(--accent-soft-24);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
}
.sk-win {
  min-height: 78px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: linear-gradient(100deg, var(--bg-elevated) 40%, var(--bg-hover) 50%, var(--bg-elevated) 60%);
  background-size: 300% 100%;
  animation: skShine 1.1s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .tab-glider { transition: none; }
  .sk-win { animation: none; }
}

/* ============================================================
   Polimento mobile — auditoria 360px
   ============================================================ */

/* Header logado estreito: Sair sai do header (permanece no drawer);
   saldo + Depositar + busca cabem sem estourar os 360px. */
@media (max-width: 560px) {
  .topbar-actions .hdr-exit { display: none; }
}

/* Hero no mobile: botão de pausa desce para o canto inferior direito —
   em 360px ele disputava espaço com o selo da oferta no topo. */
@media (max-width: 640px) {
  .hero-pause { top: auto; bottom: 12px; right: 12px; }
}

/* Banner do lobby (/casino) no mobile: carrossel compacto com espiada do
   próximo card — os dois cards empilhados empurravam os jogos p/ baixo. */
@media (max-width: 899px) {
  .lobby-banner {
    display: flex; gap: 10px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .lobby-banner::-webkit-scrollbar { display: none; }
  .lb-card { flex: 0 0 86%; scroll-snap-align: start; min-height: 118px; padding: 14px 16px; }
  .lb-copy { gap: 8px; }
  .lb-art { flex-basis: 72px; }
  .lb-art svg { width: 72px; height: 72px; }
}

/* Alça de bottom sheet no drawer (affordance de arrastar/fechar) */
.drawer-in::before {
  content: "";
  align-self: center;
  width: 40px; height: 4px; flex: 0 0 4px;
  border-radius: var(--radius-pill);
  background: var(--bg-hover);
  margin-bottom: 2px;
}
@media (min-width: 1024px) { .drawer-in::before { display: none; } }

/* CTA do banner de esportes ocupa a linha toda no mobile */
@media (max-width: 640px) {
  .sports-banner .btn { width: 100%; }
}

/* 1ª colocação do glider: sem transição (senão desliza da borda esquerda) */
.tab-glider.no-anim { transition: none; }

/* Larguras de iPhone (375–430px): cluster logado mais compacto — saldo e
   Depositar cabem com folga e mantêm distância da borda direita */
@media (max-width: 430px) {
  .topbar-in { gap: 8px; }
  .topbar-actions { gap: 6px; }
  .topbar-actions .btn { padding: 0 12px; font-size: 13px; }
  .balance-pill { padding: 0 11px; font-size: 13px; }
  .topbar-actions .icon-btn { width: 36px; flex-basis: 36px; }
  .mt-item { padding: 0 11px; }
}

/* ---------- Cápsula de carteira (logado): saldo + Depositar num elemento só ---------- */
.wallet {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px;
  padding: 4px 4px 4px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--accent-soft-24);
}
.wallet-bal {
  font-weight: 800; font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--gold-1);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.wallet-dep {
  display: inline-flex; align-items: center;
  height: 34px; padding: 0 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
  color: var(--accent-contrast);
  font-weight: 700; font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 3px 14px rgba(233, 185, 59, 0.35);
  transition: filter 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.wallet-dep:hover { filter: brightness(1.05); }
.wallet-dep:active { transform: scale(0.96); }
/* iPhone: cápsula compacta, mantendo os 16px de folga da borda */
@media (max-width: 430px) {
  .wallet { gap: 8px; padding-left: 11px; }
  .wallet-bal { font-size: 13px; }
  .wallet-dep { padding: 0 12px; font-size: 12.5px; }
}
/* No drawer, a cápsula ocupa a linha com o Sair ao lado */
.drawer-auth .wallet { flex: 1 1 auto; justify-content: space-between; }

/* ============================================================
   Selos de conformidade + upgrade do footer
   ============================================================ */
.footer { position: relative; }
/* filete dourado sutil no topo do footer (acabamento de marca) */
.footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-soft-24) 20%, rgba(233, 185, 59, 0.5) 50%, var(--accent-soft-24) 80%, transparent);
}

.seals {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin: 22px 0 4px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
@media (min-width: 700px) { .seals { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .seals { grid-template-columns: repeat(6, 1fr); } }
.seal {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  text-decoration: none; color: var(--text-primary);
  transition: border-color 0.2s ease, background 0.2s ease;
}
a.seal:hover { border-color: var(--accent-soft-24); background: var(--bg-hover); }
.seal-ic {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex: 0 0 34px;
  border-radius: var(--radius-pill);
  color: var(--gold-1);
  background: var(--accent-soft-08);
  border: 1px solid var(--accent-soft-24);
}
.seal-ic .ic { width: 18px; height: 18px; }
.seal-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.seal-txt strong { font-size: 12px; line-height: 1.3; }
.seal-txt small { color: var(--text-muted); font-size: 10.5px; line-height: 1.3; }
/* Selo da autorização federal em destaque (borda dourada) */
.seal-gov { border-color: var(--accent-soft-24); background: var(--accent-soft-08); }
.seal-gov .seal-ic {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
  color: var(--accent-contrast);
  border-color: transparent;
}

/* Provedores como chips (substitui a linha de texto corrido) */
.footer-providers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; border-top: 0; }
.fp-label { color: var(--text-muted); font-size: 12px; margin-right: 4px; }
.fp-chip {
  display: inline-flex; align-items: center;
  height: 26px; padding: 0 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
}

/* Pay-pill com ícone */
.pay-pill .ic { width: 14px; height: 14px; margin-right: 5px; vertical-align: -2px; }

/* ============================================================
   Ilustrações 3D próprias (renders em fundo preto puro):
   mix-blend-mode: screen faz o preto sumir sobre o card e o
   brilho dourado somar — sem precisar de transparência real.
   ============================================================ */
.art-img {
  display: block;
  height: auto; /* o atributo height="640" do HTML não pode esticar o render */
  mix-blend-mode: screen;
  pointer-events: none;
  user-select: none;
  /* o fundo do render não é preto 100%: a máscara radial esfuma a borda
     quadrada e o contraste esmaga o quase-preto (some no blend screen) */
  -webkit-mask-image: radial-gradient(circle at 50% 48%, #000 50%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 48%, #000 50%, transparent 72%);
  filter: contrast(1.1) brightness(1.03);
}
.slide-art .art-img { width: clamp(110px, 26vw, 180px); height: auto; aspect-ratio: 1; }
.lb-art .art-img { width: 92px; height: 92px; object-fit: contain; }
@media (max-width: 899px) { .lb-art .art-img { width: 72px; height: 72px; } }
.soon-hero .art-img, .vip-hero .art-img { width: clamp(130px, 32vw, 210px); aspect-ratio: 1; margin-bottom: -8px; }

/* iOS: fling num trilho horizontal não pode "vazar" e arrastar a página —
   todo scroller lateral contém o próprio overscroll */
.cats, .cats-links, .tabs, .themes-row, .vip-row, .live-row, .hero-track, .rail-scroller {
  overscroll-behavior-x: contain;
}

/* ============================================================
   Footer v2 — zonas com hierarquia clara:
   marca → colunas de links → selos → provedores → 18+ → legal → copy
   ============================================================ */
.footer {
  margin-top: 48px;
  padding: 36px 0 30px;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-base) 100%);
}
.footer-grid { gap: 28px 20px; margin-bottom: 8px; }
.footer-brand p {
  color: var(--text-secondary);
  font-size: 13.5px; line-height: 1.7;
  margin: 10px 0 14px;
}
.pay-pill {
  display: inline-flex; align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}
.footer-col { gap: 2px; }
.footer-col h3 {
  color: var(--text-muted);
  font-size: 11px; letter-spacing: 0.09em;
  margin-bottom: 8px;
}
.footer-col a {
  width: fit-content;
  padding: 4px 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  transition: color 0.18s ease, translate 0.18s ease;
}
.footer-col a:hover { color: var(--gold-1); translate: 2px 0; }
.seals { margin-top: 26px; }
.footer-providers {
  justify-content: center;
  margin-top: 18px; padding-top: 18px;
  border-top: 1px solid var(--border);
}
.rg-strip { margin-top: 18px; border-radius: var(--radius-sm); }
.legal { margin-top: 14px; }
.copy {
  text-align: center;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--border);
}
/* Mobile: marca centrada (âncora visual), colunas em 2 col abaixo */
@media (max-width: 899px) {
  .footer-brand {
    display: flex; flex-direction: column; align-items: center;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
  }
  .footer-brand p { max-width: 46ch; }
}

/* Artes das páginas de recompensa/PIX */
.page-hero { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.page-hero .art-img { width: clamp(88px, 20vw, 130px); aspect-ratio: 1; flex: 0 0 auto; }
.page-hero .page-h1, .page-hero .page-sub { margin-top: 0; }
.page-hero .page-sub { margin-bottom: 0; }
.pix-art { width: clamp(110px, 24vw, 160px); aspect-ratio: 1; margin: 0 auto 4px; }

/* Logos das provedoras (footer + trilho da home) — logos reais do catálogo */
a.prov-pill { text-decoration: none; }
.fp-logo {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 11px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.fp-logo img {
  width: 18px; height: 18px; object-fit: contain;
  filter: grayscale(1) opacity(0.65);
  transition: filter 0.2s ease;
}
.fp-logo:hover { color: var(--gold-1); border-color: var(--accent-soft-24); }
.fp-logo:hover img { filter: none; }

/* Footer v2.1 — ajustes da revisão visual em 390px */
/* Links do footer: tom calmo em repouso (o cinza-claro lia como "link
   padrão do navegador"), branco/dourado só no hover — hierarquia clara */
.footer-col a { color: var(--text-muted); }
.footer-col a:hover, .footer-col a:focus-visible { color: var(--gold-1); }

/* Selos no mobile: cartão vertical (ícone em cima, texto centrado) — em 2
   colunas de 390px o layout horizontal quebrava "Autorizado SPA/MF" no meio */
@media (max-width: 560px) {
  .seal {
    flex-direction: column; align-items: center; text-align: center;
    gap: 8px; padding: 14px 10px;
  }
  .seal-txt { align-items: center; }
  .seal-txt strong { font-size: 12.5px; }
  .seal-txt small { font-size: 10px; }
}

/* Skeleton do trilho "mais pagaram" (reserva de altura, anti-CLS) */
.sk-tg {
  aspect-ratio: 1 / 1.28;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: linear-gradient(100deg, var(--bg-elevated) 40%, var(--bg-hover) 50%, var(--bg-elevated) 60%);
  background-size: 300% 100%;
  animation: skShine 1.1s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .sk-tg { animation: none; } }
