:root{
  --bg:#f7f7f8;
  --card:#fff;
  --text:#111;
  --muted:#6b7280;
  --line:#e5e7eb;
  --radius:14px;
  --max:1100px;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:system-ui, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}

/* Topbar + menu */
.topbar{
  background:#fff;
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  z-index:50;
}

.topbar__inner{
  max-width:var(--max);
  margin:auto;
  padding:14px;
  display:flex;
  gap:16px;
  align-items:center;
  flex-wrap:wrap;
}

.logo{
  display:flex;
  align-items:center;
  gap:10px;
}

.logo__img{
  width:100px;
  height:100px;
  border-radius:6px;
  object-fit:contain;
  background:#fff;
}

.logo__mark{
  background:#111;
  color:#fff;
  width:44px;
  height:44px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
}

.logo__text small{
  font-size:11px;
  color:var(--muted);
}

.menu{
  margin-left:auto;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.menu__link{
  border:1px solid var(--line);
  padding:8px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  background:#fff;
  text-decoration:none;
}

.menu__link:hover{
  background:#f9fafb;
}

.menu__link.active{
  background:#111;
  color:#fff;
  border-color:#111;
}

/* Layout */
.wrap{
  max-width:var(--max);
  margin:auto;
  padding:20px;
}

.grid{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:16px;
}

@media(max-width:900px){
  .grid{grid-template-columns:1fr}
}

/* Cards */
.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
}

.card__bd{
  padding:16px;
}

/* Alert */
.alert{
  background:#fff;
  border:1px solid #fee2e2;
  padding:12px;
  border-radius:var(--radius);
  margin-bottom:16px;
  font-weight:600;
}

.alert b{
  color:#b91c1c;
}

/* Post / badges */
.post{
  border:1px solid var(--line);
  padding:12px;
  border-radius:var(--radius);
  margin-bottom:12px;
}

.badges{
  display:flex;
  gap:8px;
  margin-bottom:12px;
  flex-wrap:wrap;
}

.badge{
  border:1px solid var(--line);
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
}

.time_tamanho{
  border:1px solid;
  padding:4px 6px;
  width:fit-content;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
}

/* Extras */
.extraTop{
  margin:0 0 10px;
  color:var(--muted);
  font-weight:700;
}

.month{
  display:flex;
  gap:10px;
  margin:12px 0;
  align-items:center;
  flex-wrap:wrap;
}

.pill{
  border:1px solid var(--line);
  padding:6px 10px;
  border-radius:999px;
  font-weight:800;
}

/* Números */
.numbers{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.number{
  width:44px;
  height:44px;
  border-radius:999px;              /* vira bola */
  background:#f3b735;               /* amarelo (tipo loteria) */
  color:#111;                       /* letras pretas */
  border:2px solid #be9004;         /* borda um pouco mais escura */
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  cursor:pointer;
  user-select:none;
  box-shadow: 0 6px 14px rgba(0,0,0,.12);
}

.number.active{
  background:#111;
  color:#facc15;
  border-color:#111;
  transform: translateY(-1px);
}
/* Interação */
.hint{
  margin:12px 0 8px;
  color:var(--muted);
  font-weight:700;
}

.row{
  display:flex;
  gap:10px;
  margin:14px 0;
  flex-wrap:wrap;
  align-items:center;
}

.search{
  flex:1;
  min-width:160px;
  padding:8px;
  border:1px solid var(--line);
  border-radius:10px;
}

.btn{
  padding:8px 12px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:10px;
  cursor:pointer;
  font-weight:700;
}

.btn:hover{
  background:#f9fafb;
}

/* Tabela */
table{
  width:100%;
  border-collapse:collapse;
  margin-top:12px;
}

th,td{
  border-bottom:1px solid var(--line);
  padding:10px;
  text-align:left;
}

th{
  font-size:12px;
  color:var(--muted);
  letter-spacing:.06em;
  text-transform:uppercase;
}

/* Sidebar */
.section-title{
  margin:0 0 10px;
  font-size:12px;
  color:var(--muted);
  letter-spacing:.08em;
  text-transform:uppercase;
}

.list{
  list-style:none;
  padding:0;
  margin:0;
}

.list li{
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:10px;
  margin-bottom:8px;
}

/* Slot Machine */
.generator{
  display:flex;
  gap:10px;
  margin-bottom:12px;
  flex-wrap:wrap;
}

.gen{
  width:44px;
  height:44px;
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
  background:#fff;
  position:relative;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
}

.reel{
  position:absolute;
  width:100%;
  top:0;
  left:0;
  text-align:center;
  line-height:44px;
  transition:transform 1.2s cubic-bezier(.21,.61,.35,1);
}

.reel div{
  height:44px;
}

/* Footer */
.footer{
  background:#fff;
  border-top:1px solid var(--line);
  padding:20px;
  margin-top:40px;
  text-align:center;
  color:var(--muted);
}

/* Month Generator (Dia de Sorte) */
#monthGenWrap{
  margin: 10px 0 12px;
}

.monthgen__title{
  font-size:12px;
  color: var(--muted);
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:8px;
  font-weight:800;
}

.monthgen__pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  padding:8px 12px;
  border-radius:999px;
  font-weight:900;
  background:#fff;
}

/* Trevos (+Milionária) */
.clovergen{
  display:flex;
  gap:10px;
  margin:10px 0 12px;
  align-items:center;
}

.cloverpill{
  min-width:44px;
  height:44px;
  border:1px solid var(--line);
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  background:#fff;
}

.list a{
  color:#111;
  text-decoration: underline;
  text-decoration-color:#111;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}

.list a:hover{
  background:#f9fafb;
}

/* ===== Theme Toggle ===== */
.theme-toggle{
  border:1px solid var(--line);
  background:#fff;
  padding:6px 10px;
  border-radius:999px;
  cursor:pointer;
  font-size:14px;
}

/* ===== Dark Mode (Texto mais nítido) ===== */
body.dark{
  --bg:#020617;        /* fundo bem escuro */
  --card:#020617;
  --text:#ffffff;     /* texto branco puro */
  --muted:#e5e7eb;     /* cinza claro */
  --line:#1e293b;
}

body.dark .theme-toggle{
  background:#1e293b;
  color:#fff;
}

body{
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.dark a{
  color:#ffffff;
}

/* =========================
   PATCH DARK MODE (FORÇA VARS)
   Cole no final do CSS
========================= */

/* Use as variáveis no modo normal também */
body{
  background: var(--bg);
  color: var(--text);
}

/* Componentes que você deixou fixo em #fff */
.topbar,
.card,
.alert,
.btn,
.menu__link,
.footer,
.post,
.gen,
.monthgen__pill,
.search{
  background: var(--card);
  color: var(--text);
  border-color: var(--line);
}

/* Títulos/cinzas */
.logo__text small,
.section-title,
.hint,
.extraTop,
th,
.footer{
  color: var(--muted);
}

/* Link do menu */
.menu__link{
  color: var(--text);
}

/* Hover no claro/escuro */
.menu__link:hover,
.btn:hover,
.list a:hover{
  background: rgba(255,255,255,.06);
}

/* Número ativo */
.number.active{
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* Badge */
.badge{
  background: var(--card);
  color: var(--text);
  border-color: var(--line);
}

/* Ajuste específico do Topbar (porque estava #fff fixo) */
.topbar{
  border-bottom-color: var(--line);
}

/* Ajuste footer (porque estava #fff fixo) */
.footer{
  border-top-color: var(--line);
}

/* Dark Mode com contraste bom */
body.dark{
  --bg:#020617;
  --card:#0b1220;
  --text:#ffffff;
  --muted:#cbd5e1;
  --line:#1e293b;
}

/* Renderização mais “nítida” */
body{
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Linhas da tabela em cores alternadas (zebra) */
tbody tr:nth-child(odd){
  background:#f3f4f6; /* cinza claro */
}

tbody tr:nth-child(even){
  background:#ffffff; /* branco */
}

/* ===== Espaços de anúncio (placeholders) ===== */
.ad-slot{
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: rgba(0,0,0,.02);
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: 90px;
  margin: 12px 0;
}

/* tamanhos sugeridos */
.ad-top{ min-height: 90px; }      /* estilo 728x90 / 320x100 */
.ad-mid{ min-height: 250px; }     /* estilo retângulo */
.ad-side{ min-height: 250px; }    /* sidebar retângulo */
.ad-bottom{ min-height: 90px; }   /* rodapé */

/* no dark mode, deixa o placeholder mais suave */
body.dark .ad-slot{
  background: rgba(255,255,255,.03);
}

/* mobile: evita anúncios altos demais */
@media(max-width: 900px){
  .ad-mid, .ad-side{ min-height: 200px; }
}

.logo__link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

/* ===== Switch (toggle com bolinha) ===== */
.switch{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  user-select:none;
  cursor:pointer;
}

.switch input{
  position:absolute;
  opacity:0;
  width:0;
  height:0;
}

.switch__track{
  width:42px;
  height:24px;
  border-radius:999px;
  border:1px solid var(--line);
  background: var(--card);
  position:relative;
  transition: background .18s ease, border-color .18s ease;
}

.switch__track::before{
  content:"";
  position:absolute;
  width:18px;
  height:18px;
  border-radius:999px;
  left:3px;
  top:50%;
  transform: translateY(-50%);
  background: var(--text);
  transition: transform .18s ease, background .18s ease;
}

.switch__text{
  font-weight:800;
  color: var(--text);
}

.switch input:checked + .switch__track{
  background:#16a34a;
  border-color:#16a34a;
}

.switch input:checked + .switch__track::before{
  transform: translate(18px, -50%);
  background:#fff;
}

/* ===== Loading do Gerador Inteligente ===== */
.gen.loading{
  display:flex;
  align-items:center;
  justify-content:center;
}

.gen.loading .dots{
  font-weight:900;
  letter-spacing:2px;
  line-height:1;
  transform: translateY(0);
  animation: genBounce .55s ease-in-out infinite;
}

/* variação para não ficar tudo igual */
.gen.loading[data-i="0"] .dots{ animation-delay: 0s; }
.gen.loading[data-i="1"] .dots{ animation-delay: .08s; }
.gen.loading[data-i="2"] .dots{ animation-delay: .16s; }
.gen.loading[data-i="3"] .dots{ animation-delay: .24s; }
.gen.loading[data-i="4"] .dots{ animation-delay: .32s; }
.gen.loading[data-i="5"] .dots{ animation-delay: .40s; }

@keyframes genBounce{
  0%   { transform: translateY(0);    opacity: .7; }
  50%  { transform: translateY(-8px); opacity: 1;  }
  100% { transform: translateY(0);    opacity: .7; }
}

/* esconde o reel durante loading */
.gen.loading .reel{ display:none; }

/* ===== Botões de seta ativos ===== */
.btn.arrow-active{
  background: #111;   /* preto */
  color: #fff;        /* texto branco */
  border-color: #111;
}

.btn:hover{
  background:#111;
  color:#fff;
  border-color:#111;
}

/* Efeito ao clicar */
.btn.arrow-clicked{
  background:#111;
  color:#fff;
  border-color:#111;
}

/* Preview da imagem do jogo gerado */
.genPreview{
  width:100%;
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
  background: var(--card);
}

/* A imagem se ajusta proporcionalmente */
.genPreview img{
  width:100%;
  height:auto;        /* mantém proporção */
  display:block;
  object-fit:contain;
}

.genPreview{
  width:100%;
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
  background: var(--card);
  position:relative; /* necessário pro canvas ficar por cima */
}

/* imagem responsiva */
.genPreview img{
  width:100%;
  height:auto;
  display:block;
}

/* canvas por cima da imagem */
#ticketCanvas{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none; /* padrão: não atrapalha */
}

.genPreview{
  width:100%;
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
  background: var(--card);
  position:relative;
}

.genPreview img{
  width:100%;
  height:auto;
  display:block;
}

#ticketCanvas{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
}

/* ===== Botão Relatório (mini) ===== */
.report-btn{
  margin-top:6px;
  padding:2px 6px;
  font-size:10px;
  font-weight:700;
  border:1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius:6px;
  cursor:pointer;
  opacity:.7;
}

.report-btn:hover{
  opacity:1;
  background:#111;
  color:#fff;
}

/* Caixa do relatório */
.report-box{
  margin-top:8px;
  padding:8px;
  font-size:11px;
  border:1px solid var(--line);
  border-radius:8px;
  background: var(--card);
  color: var(--text);
  line-height:1.4;
  max-height:180px;
  overflow:auto;
}

/* =========================
   PARABÉNS + FOGOS (LEVE)
========================= */
.win-overlay{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(3px);
}

.win-card{
  width: min(520px, calc(100vw - 40px));
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.win-title{
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 6px;
}

.win-sub{
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 700;
}

.win-actions{
  display:flex;
  gap:10px;
  justify-content:center;
  margin-top: 12px;
}

.win-actions .btn{
  padding: 8px 12px;
  border-radius: 12px;
}

/* Canvas do confete por cima de tudo */
#winCanvas{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  display: none;
}

/* micro animação no card */
@keyframes popIn{
  from { transform: translateY(10px) scale(.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.win-overlay.show .win-card{
  animation: popIn .18s ease-out both;
}

/* =========================
   RODAPÉ EM 3 COLUNAS (3 por linha)
   Cole no FINAL do CSS
========================= */

.site-footer{
  background:#afafaf;              /* verde escuro (igual a imagem) */
  border-top:1px solid rgba(255,255,255,.15);
  margin-top:40px;
  padding:28px 0;
  color:#c7f9c7;
}

.site-footer__inner{
  max-width:var(--max);
  margin:0 auto;
  padding:0 20px;

  display:grid;
  grid-template-columns: repeat(3, 1fr); /* ✅ 3 por linha */
  gap:22px 40px;
}

.site-footer__col{
  min-width:0;
}

.site-footer__title{
  margin:0 0 10px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#ffffff;
  font-size:14px;
}

.site-footer__list{
  list-style:none;
  padding:0;
  margin:0;
}

.site-footer__list li{
  margin:6px 0;
}

.site-footer__list a{
  color:#b7ffb7;
  text-decoration:none;
  font-weight:600;
}

.site-footer__list a:hover{
  text-decoration: underline;
}

/* Responsivo */
@media(max-width: 900px){
  .site-footer__inner{ grid-template-columns: repeat(2, 1fr); }
}

@media(max-width: 600px){
  .site-footer__inner{ grid-template-columns: 1fr; }
}

/* =========================
   PATCH RESPONSIVO (SEM MUDAR O DESIGN)
   Cole no FINAL do CSS
========================= */

/* 1) Evita “quebra feia” e garante padding bom em telas pequenas */
.wrap{
  padding: 20px;
}
@media (max-width: 600px){
  .wrap{ padding: 14px; }
}

/* 2) Topbar: mantém igual, só organiza melhor no mobile */
@media (max-width: 900px){
  .topbar__inner{
    gap: 10px;
    padding: 12px 14px;
  }

  .menu{
    margin-left: 0;          /* no mobile não força pra direita */
    width: 100%;
    overflow-x: auto;        /* menu vira “rolável” horizontal */
    flex-wrap: nowrap;       /* não quebra em 20 linhas */
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .menu__link{
    white-space: nowrap;     /* cada link fica inteiro */
  }
}

/* 3) Grid principal: já vira 1 coluna, só melhora espaçamento */
@media (max-width: 900px){
  .grid{
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* 4) Números (bolas) e gerador: mantêm o estilo, só encaixam melhor */
@media (max-width: 420px){
  .numbers{
    gap: 8px;
  }
  .number{
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .generator{
    gap: 8px;
  }
  .gen{
    width: 40px;
    height: 40px;
  }
  .reel{
    line-height: 40px;
  }
  .reel div{
    height: 40px;
  }
}

/* 5) Botões: continuam iguais, mas ocupam melhor a largura quando precisar */
@media (max-width: 520px){
  .row{
    gap: 8px;
  }

  .row .btn{
    flex: 1;              /* divide espaço sem mudar design */
    min-width: 140px;
  }
}

/* 6) Tabela: vira scroll horizontal no celular (sem quebrar layout) */
@media (max-width: 700px){
  table{
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* 7) Cartela (imagem + canvas): garante que não estoure no mobile */
.genPreview{
  max-width: 100%;
}

/* 8) Rodapé 3 colunas: já tá ok, só melhora espaçamento no mobile */
@media (max-width: 900px){
  .site-footer{
    padding: 22px 0;
  }
  .site-footer__inner{
    gap: 18px 20px;
  }
}

/* =========================
   SETAS (prev/next) - HOVER PRETO + CLIQUE (branco->preto->branco)
   Cole no FINAL do CSS
========================= */

/* estado normal (igual seu btn padrão) */
#prevDraw, #nextDraw{
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}

/* ✅ ao passar o mouse: fica preto */
#prevDraw:hover, #nextDraw:hover{
  background:#111;
  color:#fff;
  border-color:#111;
}

/* ✅ animação de clique: branco -> preto -> branco */
@keyframes arrowFlip{
  0%   { background:#fff; color:#111; border-color: var(--line); }
  40%  { background:#111; color:#fff; border-color:#111; }
  100% { background:#fff; color:#111; border-color: var(--line); }
}

.btn.arrow-flip{
  animation: arrowFlip .26s ease-in-out;
}

/* =========================
   HOVER PRETO SÓ NOS MESES (Dia de Sorte)
========================= */

body #monthReel div{
  background: #fff;
  color: #111;
  border-radius: 8px;
}

/* ao passar o mouse fica preto */
body #monthReel div:hover{
  background: #111;
  color: #fff;
}


/* ===== Ampulheta girando ===== */
.spin-hourglass{
  display: inline-block;
  animation: hourglassSpin 1.2s linear infinite;
}

@keyframes hourglassSpin{
  0%   { transform: rotate(0deg);   }
  100% { transform: rotate(360deg); }
}

/* ===== RESULTADO + LIVE ===== */

.result-live{
  display: grid;
  grid-template-columns: 1fr 1fr; /* números | vídeo */
  gap: 16px;
  align-items: center;
  margin: 12px 0;
}

/* caixa do vídeo */
.live-box{
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

/* mobile: fica em coluna */
@media(max-width: 900px){
  .result-live{
    grid-template-columns: 1fr;
  }
}

/* thumb clicável da live */
.live-thumb{
  width:100%;
  height:100%;
  border:0;
  padding:0;
  background:#000;
  cursor:pointer;
  position:relative;
  display:block;
}

.live-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* botão play por cima */
.live-play{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:74px;
  height:74px;
  border-radius:999px;
  background: rgba(0,0,0,.55);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  font-weight:900;
  border:2px solid rgba(255,255,255,.65);
}

/* Trevos (+Milionária) */
.clovers{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.clover{
  width:46px;
  height:46px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  color:#0b1f0f;

  /* “trevo” simples em CSS */
  background:
    radial-gradient(circle at 30% 35%, #5ef08a 0 35%, transparent 36%),
    radial-gradient(circle at 70% 35%, #5ef08a 0 35%, transparent 36%),
    radial-gradient(circle at 30% 75%, #5ef08a 0 35%, transparent 36%),
    radial-gradient(circle at 70% 75%, #5ef08a 0 35%, transparent 36%),
    radial-gradient(circle at 50% 50%, #2fd96a 0 33%, transparent 34%);
  border-radius:14px;
  border:2px solid rgba(0,0,0,.12);
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
  user-select:none;
  cursor:pointer;
  transition: transform .12s ease, filter .12s ease;
}

.clover:hover{ transform: scale(1.05); }

.clover.active{
  filter: brightness(.9) saturate(1.2);
  outline: 3px solid rgba(34,197,94,.35);
}

/* ===== Trevos (+Milionária) — versão mais bonita ===== */
.clovers{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.clover{
  width:48px;
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  font-size:15px;
  color:#083015;
  cursor:pointer;
  user-select:none;

  /* base */
  background: radial-gradient(circle at 35% 35%, #86efac 0 38%, transparent 39%),
              radial-gradient(circle at 65% 35%, #86efac 0 38%, transparent 39%),
              radial-gradient(circle at 35% 70%, #86efac 0 38%, transparent 39%),
              radial-gradient(circle at 65% 70%, #86efac 0 38%, transparent 39%),
              radial-gradient(circle at 50% 55%, #22c55e 0 36%, transparent 37%);
  border-radius:16px;

  /* acabamento */
  border:2px solid rgba(22,163,74,.35);
  box-shadow:
    0 10px 18px rgba(0,0,0,.12),
    inset 0 2px 0 rgba(255,255,255,.55);
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}

.clover:hover{
  transform: translateY(-1px) scale(1.04);
  filter: saturate(1.15);
}

.clover.active{
  outline: 3px solid rgba(34,197,94,.45);
  box-shadow:
    0 12px 22px rgba(0,0,0,.16),
    0 0 0 6px rgba(34,197,94,.18),
    inset 0 2px 0 rgba(255,255,255,.55);
  filter: brightness(.95) saturate(1.25);
}

/* Dark mode: ajusta contraste do número */
body.dark .clover{
  color:#05210f;
}

/* ===== RESULTADO + VIDEO LADO A LADO ===== */

.resultado-wrapper{
  display:grid;
  grid-template-columns: 1fr 420px; /* esquerda flexível, vídeo fixo */
  gap:20px;
  align-items:start;
  margin:16px 0;
}

/* lado esquerdo ocupa todo espaço */
.resultado-left{
  width:100%;
}

/* caixa do vídeo */
.resultado-video{
  width:100%;
  aspect-ratio: 16 / 9;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 12px 30px rgba(0,0,0,.15);
  border:1px solid var(--line);
  background:#000;
}

.resultado-video iframe{
  width:100%;
  height:100%;
  border:none;
  display:block;
}

/* Responsivo */
@media (max-width: 1000px){
  .resultado-wrapper{
    grid-template-columns: 1fr;
  }
}

/* ===== PATCH: VIDEO MAIS ENQUADRADO (SEM MEXER NO DESIGN) ===== */

/* a sua caixa do vídeo (quadrado vermelho) */
.resultado-video,
.live-box{
  position: relative;
  overflow: hidden;
  border-radius: 14px;      /* mantém seu estilo */
  background: #000;
}

/* iframe “cobre” a caixa e corta o excesso */
.resultado-video iframe,
.live-box iframe{
  position: absolute;
  top: 50%;
  left: 50%;

  /* aumenta um pouco pra “cortar” e preencher perfeito */
  width: 120%;
  height: 120%;

  transform: translate(-50%, -50%);
  border: 0;
}

/* se você quiser MENOS corte, diminui pra 110% */
/* se quiser MAIS corte, aumenta pra 130% */

/* =========================
   MENU ATIVO (PATCH FINAL)
   Mantém o item ativo selecionado
========================= */
.menu__link.active{
  background:#111;
  color:#fff;
  border-color:#111;
}
.menu__link.active:hover{
  background:#111;
  color:#fff;
  border-color:#111;
}

.news-card{
  animation: none !important;
  transform: none !important;
}

.float-sq{
  animation: none !important;
  transform: none !important;
}

/* =========================
   CARROSSEL DE ACUMULADOS
========================= */
.lotto-carousel{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  margin-bottom: 12px; /* fica colado no aviso */
  overflow: hidden;
}

.lotto-carousel__viewport{
  width: 100%;
  overflow: hidden;
  position: relative;
}

.lotto-carousel__track{
  display: flex;
  gap: 10px;
  align-items: stretch;
  width: max-content;
  will-change: transform;
  animation: lottoMarquee 22s linear infinite;
}

/* Pausa quando passa o mouse */
.lotto-carousel:hover .lotto-carousel__track{
  animation-play-state: paused;
}

@keyframes lottoMarquee{
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-1 * var(--lotto-shift, 600px))); }
}

/* Card do item */
.lotto-item{
  min-width: 240px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 10px 12px;
  display: grid;
  grid-template-rows: auto auto;
  gap: 6px;
}

.lotto-item__top{
  display: flex;
  align-items: center;
  gap: 10px;
}

.lotto-item__icon{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.03);
  display: block;
  object-fit: contain;
  padding: 5px;
}

.lotto-item__name{
  font-weight: 900;
  font-size: 13px;
  line-height: 1.15;
}

.lotto-item__acc{
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
}

.lotto-item__value{
  font-weight: 900;
  font-size: 15px;
}

/* Acessibilidade: reduz animação */
@media (prefers-reduced-motion: reduce){
  .lotto-carousel__track{ animation: none; }
}

/* Remove cor padrão de link no carrossel */
.lotto-item{
  text-decoration: none;
  color: inherit;
}

.lotto-item:visited{
  color: inherit;
}

.lotto-item:hover{
  text-decoration: none;
  color: inherit;
}

.genPreview{ position:relative; }
#ticketCanvas{ z-index: 2; }
.genPreview img{ position:relative; z-index: 1; }

/* ✅ Ir para concurso (input pequeno ao lado das setas) */
.conc-jump{
  display:flex;
  gap:6px;
  align-items:center;
}

.conc-jump input{
  width:92px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:12px;
  font-weight:800;
  outline:none;
  background:var(--card);
  color:var(--text);
}
.conc-jump input:focus{
  border-color:#111;
}

.lotto-carousel__viewport{
  cursor: grab;
}

.lotto-carousel__viewport.dragging{
  cursor: grabbing;
}

.lotto-carousel__viewport{
  cursor: grab;
  user-select: none;
}

.lotto-carousel__viewport.dragging{
  cursor: grabbing;
}

/* =========================
   TREVOS +MILIONARIA BONITOS
========================= */

.clovers{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.clover{
  width:46px;
  height:46px;
  border-radius:14px;

  display:flex;
  align-items:center;
  justify-content:center;

  font-weight:900;
  font-size:16px;

  color:#052e16;

  background:
  radial-gradient(circle at 30% 30%, #ffffff 0%, #bbf7d0 35%, #22c55e 100%);

  border:1px solid rgba(0,0,0,.15);

  box-shadow:
  0 8px 16px rgba(0,0,0,.12),
  inset 0 2px 3px rgba(255,255,255,.6);

  position:relative;

  cursor:pointer;
  transition:.15s;
}

/* emoji de trevo no fundo */
.clover::before{
  content:"🍀";
  position:absolute;
  font-size:28px;
  opacity:.25;
}

/* hover */
.clover:hover{
  transform:scale(1.08);
}

/* quando clicar */
.clover.active{
  background:#166534;
  color:#fff;
  border-color:#166534;

  box-shadow:
  0 10px 18px rgba(0,0,0,.18),
  inset 0 2px 3px rgba(255,255,255,.2);
}

.lotto-carousel__viewport:hover #lottoTrack{
  animation-play-state: paused;
}

/* ✅ Badge "ESPECIAL" (não muda o design do site) */
.lotto-item__badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  background: var(--card);
  color: var(--text);
  margin-top:8px;
}
