/* In Game Leader — alternância de tema claro/escuro */
:root { color-scheme: dark; --theme-bg:#050505; --theme-surface:#111318; --theme-text:#f4f5f7; --theme-muted:#a7adb8; --theme-border:rgba(255,255,255,.14); }
html { transition: background-color .22s ease, color .22s ease; }
body { transition: background-color .22s ease, color .22s ease; }
#igl-theme-toggle {
  position: fixed; z-index: 2147483000; right: 18px; bottom: 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 16px; border: 1px solid rgba(147,112,219,.55);
  border-radius: 999px; background: #17131f; color: #fff; box-shadow: 0 8px 28px rgba(0,0,0,.28);
  font: 600 13px/1.2 Montserrat, Arial, sans-serif; cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
#igl-theme-toggle:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(0,0,0,.36); }
#igl-theme-toggle:focus-visible { outline: 3px solid #a987f0; outline-offset: 3px; }
#igl-theme-toggle .theme-icon { font-size: 17px; line-height: 1; }
@media (max-width: 600px) {
  #igl-theme-toggle { right: 12px; bottom: 12px; min-height: 42px; padding: 0 13px; font-size: 12px; }
}
html[data-theme="light"] { color-scheme: light; --theme-bg:#f4f5f8; --theme-surface:#fff; --theme-text:#202431; --theme-muted:#5e6574; --theme-border:rgba(25,31,45,.16); }
html[data-theme="light"] body { background: var(--theme-bg) !important; color: var(--theme-text) !important; }
html[data-theme="light"] body,
html[data-theme="light"] main,
html[data-theme="light"] section:not(.igl-hero):not(.banner),
html[data-theme="light"] .container,
html[data-theme="light"] .conteudo,
html[data-theme="light"] .content,
html[data-theme="light"] .termos-container { color: var(--theme-text); }
html[data-theme="light"] p,
html[data-theme="light"] li,
html[data-theme="light"] label,
html[data-theme="light"] small { color: inherit; }
html[data-theme="light"] h1:not(.igl-hero h1),
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4,
html[data-theme="light"] h5 { color: var(--theme-text); }
html[data-theme="light"] .mini-header-unificado,
html[data-theme="light"] .produto-destaque1,
html[data-theme="light"] [class^="produto-destaque"],
html[data-theme="light"] .quadrado-conteudo1,
html[data-theme="light"] [class^="quadrado-conteudo"],
html[data-theme="light"] .cf-card,
html[data-theme="light"] .como-funciona__item,
html[data-theme="light"] .bloco-suporte,
html[data-theme="light"] .modal-content,
html[data-theme="light"] .modal,
html[data-theme="light"] .pix-container,
html[data-theme="light"] .obrigado-container,
html[data-theme="light"] .termos-card,
html[data-theme="light"] .termos-content,
html[data-theme="light"] .card,
html[data-theme="light"] .produto-card {
  background-color: #fff !important; color: #202431 !important; border-color: var(--theme-border) !important;
}
html[data-theme="light"] [class^="produto-destaque"] { background: #fff !important; box-shadow: 0 8px 30px rgba(20,28,45,.12) !important; }
html[data-theme="light"] .quadrado-conteudo1,
html[data-theme="light"] [class^="quadrado-conteudo"] { color: #202431 !important; }
html[data-theme="light"] .descricao1,
html[data-theme="light"] .caracteristicas1,
html[data-theme="light"] .preco-antigo1,
html[data-theme="light"] .info-unico p { color: #5e6574 !important; }
html[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="light"] textarea,
html[data-theme="light"] select {
  background-color: #fff !important; color: #202431 !important; border-color: #cbd0da !important;
}
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder { color: #7a8190 !important; }
html[data-theme="light"] header { background: linear-gradient(to bottom, rgba(25,27,35,.96), rgba(25,27,35,.82)) !important; }
html[data-theme="light"] footer { background: #20232c !important; color: #fff !important; }
html[data-theme="light"] footer p,
html[data-theme="light"] footer a { color: #fff !important; }
html[data-theme="light"] .igl-hero { color: #fff; }
html[data-theme="light"] .igl-menu a { color: #f4f5f7 !important; }
html[data-theme="light"] a:not(.igl-menu a):not(.menu-esquerda a):not(.menu-direita a):not(nav a) { }
html[data-theme="light"] .termos-card,
html[data-theme="light"] .termos-content { box-shadow: 0 12px 40px rgba(20,28,45,.08); }
html[data-theme="light"] #igl-theme-toggle { background: #fff; color: #27213a; border-color: rgba(100,70,160,.35); }
html[data-theme="light"] .pix-container,
html[data-theme="light"] .obrigado-container { background: #fff !important; }
html[data-theme="light"] .pix-container p,
html[data-theme="light"] .obrigado-container p,
html[data-theme="light"] .pix-container label,
html[data-theme="light"] .obrigado-container label { color: #303645 !important; }
html[data-theme="light"] .pix-container h1,
html[data-theme="light"] .obrigado-container h1,
html[data-theme="light"] .pix-container h2,
html[data-theme="light"] .obrigado-container h2 { color: #202431 !important; }
html[data-theme="light"] .pix-container .pix-code,
html[data-theme="light"] pre { background: #f0f2f6 !important; color: #202431 !important; }
html[data-theme="light"] .igl-hero h1,
html[data-theme="light"] .igl-hero p { color: #fff !important; }
@media (prefers-reduced-motion: reduce) {
  html, body, #igl-theme-toggle { transition: none !important; }
}


/* ===== Ajustes visuais: botões separados, contraste no tema claro e responsividade ===== */
/* O botão de tema fica no canto inferior direito. O botão de voltar ao topo fica acima dele. */
#igl-theme-toggle {
  right: 18px !important;
  bottom: 18px !important;
  z-index: 2147483000;
  max-width: calc(100vw - 24px);
}

/* Botão voltar ao topo com aparência inspirada nos blocos do Minecraft. */
.btn-topo {
  position: fixed !important;
  right: 22px !important;
  bottom: 82px !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px;
  border: 3px solid #262626 !important;
  border-radius: 2px !important;
  background: linear-gradient(135deg, #79c843 0 25%, #5b9f2c 25% 50%, #6fb737 50% 75%, #4e8b25 75% 100%) !important;
  background-size: 16px 16px !important;
  color: #fff !important;
  font-family: monospace !important;
  font-size: 25px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-shadow: 2px 2px 0 #263d18 !important;
  box-shadow: inset 3px 3px 0 rgba(255,255,255,.3), inset -3px -3px 0 rgba(0,0,0,.22), 4px 4px 0 rgba(0,0,0,.28) !important;
  image-rendering: pixelated;
  z-index: 2147482000 !important;
  transition: transform .15s steps(2, end), filter .15s ease !important;
}
.btn-topo:hover { transform: translateY(-3px) !important; filter: brightness(1.08); }
.btn-topo:focus-visible, #igl-theme-toggle:focus-visible { outline: 3px solid #f2c94c !important; outline-offset: 3px; }

/* No tema claro, textos de conteúdo devem ter contraste escuro. Mantém hero, navegação,
   rodapé e botões com seus estilos próprios para não destruir o contraste deles. */
html[data-theme="light"] body :is(p, li, label, small, strong, em, span, h1, h2, h3, h4, h5, h6, dt, dd):not(.igl-hero *):not(header *):not(footer *):not(button *):not(a *) {
  color: #202431 !important;
}
html[data-theme="light"] body :is(.produto-card, .produto-destaque1, [class^="produto-destaque"], .quadrado-conteudo1, [class^="quadrado-conteudo"], .cf-card, .como-funciona__item, .bloco-suporte, .card, .container, .conteudo, .content) {
  color: #202431;
}
html[data-theme="light"] body :is(.produto-card, .produto-destaque1, [class^="produto-destaque"], .quadrado-conteudo1, [class^="quadrado-conteudo"], .cf-card, .como-funciona__item, .bloco-suporte, .card, .container, .conteudo, .content) :is(p, li, label, small, strong, em, span, h1, h2, h3, h4, h5, h6) {
  color: #202431 !important;
}
html[data-theme="light"] body :is(.descricao1, .caracteristicas1, .preco-antigo1, .info-unico p) { color: #5e6574 !important; }

/* Imagens e caixas não podem forçar a largura da tela. */
img, video, iframe, canvas, svg { max-width: 100%; }
body { overflow-x: clip; }
*, *::before, *::after { box-sizing: border-box; }

@media (max-width: 768px) {
  .igl-nav { width: 100%; max-width: 100%; padding-left: 16px; padding-right: 16px; gap: 12px; }
  .igl-brand img, #logo { max-width: min(190px, 42vw); height: auto; }
  .igl-menu { max-width: 100%; flex-wrap: wrap; justify-content: center; gap: 8px 14px; }
  .igl-menu a { font-size: 13px; }
  .igl-hero { min-height: auto; padding: 46px 18px 36px; gap: 22px; }
  .igl-hero-content, .igl-hero-visual { width: 100%; min-width: 0; max-width: 100%; }
  .igl-hero h1 { font-size: clamp(30px, 8vw, 48px); line-height: 1.08; overflow-wrap: anywhere; }
  .igl-hero p { font-size: clamp(14px, 3.8vw, 18px); }
  .igl-hero-product { display: block; width: min(100%, 420px); max-width: 100%; height: auto; margin-inline: auto; object-fit: contain; }
  .container, .conteudo, .content, .termos-container, .como-funciona__container,
  .produtos-premium, .produtos-pre, .produto-card, .produto-destaque1,
  [class^="produto-destaque"], .quadrado-conteudo1, [class^="quadrado-conteudo"],
  .cf-card, .como-funciona__item, .bloco-suporte, .pix-container, .obrigado-container,
  .termos-card, .termos-content {
    width: 100%; max-width: 100%; min-width: 0;
  }
  .produto-card img, .produto-destaque1 img, [class^="produto-destaque"] img,
  .quadrado-conteudo1 img, [class^="quadrado-conteudo"] img, .cf-card img {
    max-width: 100%; height: auto; object-fit: contain;
  }
  .btn-topo { right: 14px !important; bottom: 70px !important; width: 44px !important; height: 44px !important; min-width: 44px; }
  #igl-theme-toggle { right: 12px !important; bottom: 12px !important; min-height: 42px; padding: 0 12px; font-size: 12px; }
  table { display: block; max-width: 100%; overflow-x: auto; }
  input, select, textarea { max-width: 100%; }
}

@media (max-width: 480px) {
  .igl-hero { padding: 36px 14px 28px; }
  .igl-menu { gap: 7px 10px; }
  .igl-menu a { font-size: 12px; }
  .produto-card, .produto-destaque1, [class^="produto-destaque"], .quadrado-conteudo1,
  [class^="quadrado-conteudo"], .cf-card, .como-funciona__item, .bloco-suporte,
  .termos-card, .termos-content, .pix-container, .obrigado-container { padding-left: 14px; padding-right: 14px; }
  #igl-theme-toggle { gap: 6px; max-width: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-topo, #igl-theme-toggle { transition: none !important; }
}



/* ===== Correção completa de contraste e estilo dos temas ===== */
:root { --igl-minecraft-gray:#8b8b8b; --igl-minecraft-gray-dark:#555555; --igl-trophy-gold:#e0b52f; }
/* O menu superior mantém o visual de botão Minecraft em ambos os temas. */
.igl-menu a,
.igl-menu a:visited {
  display:inline-flex !important; align-items:center; justify-content:center;
  min-height:36px; padding:9px 13px !important;
  color:#fff !important; background:#777 !important;
  border:2px solid #3b3b3b !important; border-radius:2px !important;
  box-shadow:inset 2px 2px 0 rgba(255,255,255,.22), inset -2px -2px 0 rgba(0,0,0,.2), 2px 2px 0 rgba(0,0,0,.28) !important;
  text-shadow:1px 1px 0 rgba(0,0,0,.45) !important;
  text-decoration:none !important; transition:background-color .14s ease, color .14s ease, transform .14s ease !important;
}
.igl-menu a:hover, .igl-menu a:focus-visible {
  color:#211a05 !important; background:#e0b52f !important; border-color:#9b7610 !important;
  text-shadow:none !important; transform:translateY(-1px);
}
html[data-theme="light"] .igl-menu a,
html[data-theme="light"] .igl-menu a:visited { color:#fff !important; background:#777 !important; }
html[data-theme="light"] .igl-menu a:hover,
html[data-theme="light"] .igl-menu a:focus-visible { color:#211a05 !important; background:#e0b52f !important; }

/* Tema claro: títulos e textos que herdavam branco do tema escuro. */
html[data-theme="light"] .igl-eyebrow,
html[data-theme="light"] .igl-hero h1,
html[data-theme="light"] .igl-hero-content > p { color:#17191f !important; text-shadow:none !important; }
html[data-theme="light"] .igl-hero { background-color:#f4f5f8 !important; }
html[data-theme="light"] .igl-hero-content { color:#17191f !important; }
html[data-theme="light"] .igl-hero-btn { color:#171717 !important; }
html[data-theme="light"] .descricao1, html[data-theme="light"] .descricao2,
html[data-theme="light"] .descricao3, html[data-theme="light"] .descricao4,
html[data-theme="light"] .descricao5, html[data-theme="light"] .descricao6,
html[data-theme="light"] [class^="descricao"],
html[data-theme="light"] [class^="caracteristicas"],
html[data-theme="light"] [class^="caracteristicas"] li,
html[data-theme="light"] .produto-resumo, html[data-theme="light"] .produto-resumo * {
  color:#252832 !important;
}
html[data-theme="light"] .preco-antigo1, html[data-theme="light"] .preco-antigo2,
html[data-theme="light"] .preco-antigo3, html[data-theme="light"] .preco-antigo4,
html[data-theme="light"] .preco-antigo5, html[data-theme="light"] .preco-antigo6,
html[data-theme="light"] [class^="preco-antigo"] { color:#686d78 !important; }

/* Retira a borda/caixa visível de Como Funciona e evita faixa preta entre seções. */
html[data-theme="light"] .como-funciona,
html[data-theme="light"] .como-funciona__container,
html[data-theme="light"] .como-funciona__grid { background:#f4f5f8 !important; border:0 !important; box-shadow:none !important; }
html[data-theme="light"] .cf-card,
html[data-theme="light"] .cf-card::before,
html[data-theme="light"] .cf-card::after {
  background:transparent !important; border:0 !important; outline:0 !important;
  box-shadow:none !important;
}
html[data-theme="light"] .cf-card__title, html[data-theme="light"] .cf-card__text { color:#202431 !important; }
html[data-theme="light"] .produtos-premium,
html[data-theme="light"] .produtos-premium-clean,
html[data-theme="light"] #comprar,
html[data-theme="light"] .containerbutton {
  background:#f4f5f8 !important; border:0 !important; box-shadow:none !important;
}
html[data-theme="light"] .produtos-premium h2,
html[data-theme="light"] .minecraft-title { color:#202431 !important; }

/* Rodapé: contraste correto em cada tema. */
html[data-theme="light"] footer { background:#f4f5f8 !important; color:#202431 !important; border-top:1px solid #d9dce3 !important; }
html[data-theme="light"] footer div, html[data-theme="light"] footer p,
html[data-theme="light"] footer a { color:#202431 !important; }
html[data-theme="dark"] footer, html:not([data-theme="light"]) footer { color:#f4f5f7; }
html[data-theme="dark"] footer div, html[data-theme="dark"] footer p,
html[data-theme="dark"] footer a, html:not([data-theme="light"]) footer div,
html:not([data-theme="light"]) footer p, html:not([data-theme="light"]) footer a { color:#f4f5f7; }

/* A faixa separadora não deve voltar a ser preta no tema claro. */
html[data-theme="light"] hr.linha-customizada { border-color:#d9dce3 !important; background:transparent !important; }
html[data-theme="light"] body { background:#f4f5f8 !important; }


/* Menu superior agrupado + visual Minecraft em ambos os temas */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
.igl-menu {
  display:flex !important; align-items:center; justify-content:center; flex-wrap:wrap;
  gap:6px !important; padding:0 !important; border:0 !important;
  background:transparent !important; box-shadow:none !important;
  border-radius:0 !important;
}
.igl-menu a {
  display:inline-flex !important; align-items:center; justify-content:center;
  min-height:38px; padding:0 13px !important; margin:0 !important;
  color:#f2f2f2 !important; background:#777 !important;
  border:2px solid #242424 !important; border-radius:2px !important;
  box-shadow:inset 2px 2px 0 rgba(255,255,255,.22), inset -2px -2px 0 rgba(0,0,0,.24), 0 2px 0 #111;
  font-family:'Press Start 2P','Minecraft',monospace !important;
  font-size:9px !important; line-height:1.7 !important; text-decoration:none !important;
  text-shadow:2px 2px 0 #333; transition:background .12s ease, transform .12s ease, color .12s ease;
}
.igl-menu a:hover, .igl-menu a:focus-visible {
  background:#d6a928 !important; color:#211a08 !important; text-shadow:1px 1px 0 rgba(255,255,255,.18);
  transform:translateY(-1px); outline:2px solid #f2ce55; outline-offset:1px;
}
html[data-theme="light"] .igl-menu { background:transparent !important; border:0 !important; box-shadow:none !important; }
html[data-theme="light"] .igl-menu a { color:#f8f8f8 !important; }
@media(max-width:700px) {
  .igl-menu { width:100%; gap:5px !important; }
  .igl-menu a { flex:1 1 auto; padding:0 9px !important; min-height:36px; font-size:8px !important; }
}
/* Fonte pixelada em títulos e rótulos principais, sem forçar parágrafos longos */
.igl-menu a, .igl-hero h1, .igl-hero-btn, .produtos-premium h2, .minecraft-title, .vermais {
  font-family:'Press Start 2P','Minecraft',monospace !important;
}
.igl-hero h1 { line-height:1.55 !important; }
