:root{
  --brand:#006633;
  --bg:#f5f5f5;
  --card:#ffffff;
  --text:#1f2937;
  --muted:#6b7280;
  --border:#e5e7eb;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}
a{color:var(--brand);text-decoration:none;font-weight:700}
a:hover{text-decoration:underline}
.wrap{max-width:1100px;margin:0 auto;padding:0 16px}
.container{max-width:1100px;margin:0 auto;padding:18px 16px}
.muted{color:var(--muted)}
/* topbar */
.topbar{
  position:sticky; top:0; z-index:20;
  background:var(--brand);
  color:#fff;
  padding:12px 0;
  box-shadow:0 6px 18px rgba(0,0,0,.12);
}
.brand{display:flex;align-items:center;gap:10px;font-weight:800}
.badge{
  width:38px;height:38px;border-radius:12px;
  background:rgba(255,255,255,.18);
  display:flex;align-items:center;justify-content:center;
  font-weight:900;
}
.topbar .wrap{display:flex;align-items:center;justify-content:space-between;gap:14px}
.nav{display:flex;flex-wrap:wrap;gap:10px}
.nav a{
  color:#fff;
  opacity:.95;
  font-weight:800;
  padding:8px 10px;
  border-radius:10px;
}
.nav a:hover{background:rgba(255,255,255,.14);text-decoration:none}
.hamburger{
  display:none;
  background:rgba(255,255,255,.16);
  border:0;
  color:#fff;
  font-size:20px;
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
}
/* drawer */
.drawer-overlay{
  position:fixed; inset:0; background:rgba(0,0,0,.45);
  opacity:0; pointer-events:none; transition:opacity .18s ease;
  z-index:30;
}
.drawer-overlay.show{opacity:1; pointer-events:auto}
.drawer{
  position:fixed; top:0; right:-340px;
  width:320px; max-width:88vw; height:100%;
  background:#fff;
  z-index:40;
  padding:14px;
  box-shadow:-10px 0 20px rgba(0,0,0,.18);
  transition:right .18s ease;
  overflow:auto;
}
.drawer.open{right:0}
.drawer-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.drawer .close{
  background:#111827; color:#fff; border:0; border-radius:10px;
  padding:8px 10px; cursor:pointer;
}
.drawer a{
  display:block;
  padding:10px 10px;
  border-radius:10px;
  color:#111827;
  font-weight:800;
}
.drawer a:hover{background:#f3f4f6;text-decoration:none}
/* cards */
.search-box, .content-card{
  background:var(--card);
  border-radius:16px;
  box-shadow:0 0 14px rgba(0,0,0,.08);
  border:1px solid rgba(0,0,0,.04);
  padding:16px;
  margin:14px 0;
}
.row{display:flex;flex-wrap:wrap;gap:10px;align-items:end}
input[type="number"], input[type="text"], input[type="email"], textarea{
  width:100%;
  padding:12px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  font-size:16px;
  outline:none;
}
textarea{min-height:120px;resize:vertical}
button{
  padding:12px 14px;
  border:0;
  border-radius:12px;
  font-weight:900;
  cursor:pointer;
  background:var(--brand);
  color:#fff;
}
button:hover{opacity:.95}
.error{color:#b91c1c;font-weight:800;margin:10px 0 0}
.ad-wrap{
  background:var(--card);
  border:1px dashed var(--border);
  border-radius:16px;
  padding:10px;
  margin:14px 0;
}
.page-intro{
  background:var(--card);
  border-radius:16px;
  padding:16px;
  border:1px solid rgba(0,0,0,.04);
  box-shadow:0 0 14px rgba(0,0,0,.06);
  margin:14px 0;
}
.disclaimer{
  background:#fef3c7;
  border:1px solid #fde68a;
  border-radius:12px;
  padding:10px 12px;
}
/* result styling (injected by JS) */
.result-card{
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  border-radius:16px;
  box-shadow:0 0 14px rgba(0,0,0,.06);
  padding:16px;
  margin:14px 0;
}
.dezenas{
  display:flex; flex-wrap:wrap; gap:10px; margin:10px 0 0;
}
.bola{
  width:44px;height:44px;border-radius:999px;
  background:#eaf7ef;
  border:2px solid rgba(0,102,51,.25);
  display:flex;align-items:center;justify-content:center;
  font-weight:900;
}
/* footer */
.site-footer{
  margin-top:26px;
  background:#0b3a22;
  color:#e5e7eb;
  padding:22px 0;
}
.site-footer a{color:#e5e7eb;text-decoration:underline;font-weight:800}
.footer-grid{
  display:grid; grid-template-columns: 1.3fr 1fr 1fr;
  gap:18px;
}
.footer-title{font-weight:900;margin-bottom:8px}
.footer-text{color:#d1d5db;margin:0}
.footer-links{list-style:none;padding:0;margin:0}
.footer-links li{margin:6px 0}
.footer-bottom{border-top:1px solid rgba(255,255,255,.15); margin-top:14px; padding-top:12px}
@media(max-width:980px){
  .nav{display:none}
  .hamburger{display:inline-flex}
  .footer-grid{grid-template-columns:1fr}
}


/* Resultados */
.result-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.result-header h2{margin:0;font-size:20px;line-height:1.25}
.result-sub{margin:6px 0 0;color:var(--muted);font-size:14px}
.status-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  letter-spacing:.3px;
  border:1px solid rgba(0,0,0,.06);
  user-select:none;
  white-space:nowrap;
}
.status-pill .dot{
  width:8px;height:8px;border-radius:999px;
  background:currentColor;
  box-shadow:0 0 0 3px rgba(0,0,0,.04);
}
.status-pill.ok{background:rgba(0,102,51,.10); color:var(--brand)}
.status-pill.no{background:rgba(185,28,28,.08); color:#b91c1c}

.balls-container{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
  padding:6px 0 0;
}
.ball{
  width:46px;height:46px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  color:#fff;
  background:var(--brand);
  border:2px solid rgba(255,255,255,.75);
  box-shadow:0 12px 18px rgba(0,0,0,.10);
  font-variant-numeric: tabular-nums;
}
.ball.is-secondary{background:#111827}

.section-label{
  margin:0 0 10px;
  font-weight:900;
  color:#111827;
}

.prize-info{
  display:grid;
  grid-template-columns: 1fr;
  gap:8px;
}
.prize-info .highlight{
  font-weight:900;
  color:var(--brand);
  margin:0;
}
.prize-info p{margin:0}

.table-premios{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border-radius:14px;
  border:1px solid var(--border);
}
.table-premios th{
  background:#f9fafb;
  color:#111827;
  text-align:left;
  font-size:13px;
  padding:10px 12px;
  border-bottom:1px solid var(--border);
}
.table-premios td{
  padding:10px 12px;
  border-top:1px solid var(--border);
  font-size:14px;
}
.table-premios tr:first-child td{border-top:0}
.table-premios tr:nth-child(even) td{background:#fcfcfd}
.table-premios td:nth-child(2), .table-premios th:nth-child(2){text-align:center}
.table-premios td:nth-child(3), .table-premios th:nth-child(3){text-align:right;font-variant-numeric:tabular-nums}

.meta-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:10px;
  margin-top:10px;
}
.meta-item{
  padding:12px;
  border:1px solid rgba(0,0,0,.05);
  border-radius:14px;
  background:linear-gradient(180deg, rgba(0,102,51,.05), rgba(0,0,0,0));
}
.meta-item .k{display:block;color:var(--muted);font-size:12px;margin-bottom:6px;font-weight:800}
.meta-item .v{display:block;font-weight:900;color:#111827}

@media(max-width:760px){
  .result-header{flex-direction:column}
  .meta-grid{grid-template-columns:1fr}
}

@media(max-width:680px){
  .table-premios thead{display:none}
  .table-premios, .table-premios tbody, .table-premios tr, .table-premios td{display:block;width:100%}
  .table-premios tr{border-top:1px solid var(--border)}
  .table-premios tr:first-child{border-top:0}
  .table-premios td{
    border-top:0;
    display:flex;
    justify-content:space-between;
    gap:10px;
  }
  .table-premios td::before{
    content: attr(data-label);
    color:var(--muted);
    font-weight:900;
  }
  .table-premios td:nth-child(2), .table-premios td:nth-child(3){text-align:right}
}


/* Federal premium */
.status-pill.neutral{ background:#eef2ff; color:#3730a3; border:1px solid #e0e7ff;}
.status-pill.neutral .dot{ background:#6366f1; box-shadow:0 0 0 3px rgba(99,102,241,.18);}

/* Cards principais (1º ao 5º) */
.federal-top5{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:12px;
  margin-top:10px;
}
@media(max-width:980px){ .federal-top5{ grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media(max-width:620px){ .federal-top5{ grid-template-columns:1fr; } }

.prize-card{
  border:1px solid var(--border);
  border-radius:14px;
  padding:14px;
  background:linear-gradient(180deg,#ffffff 0%, #fbfbfb 100%);
  box-shadow:0 0 10px rgba(0,0,0,.04);
}
.prize-card--big{ padding:16px; }
.ticket-row{ display:flex; gap:10px; align-items:stretch; }
@media(max-width:620px){ .ticket-row{ flex-direction:column; } }
.prize-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.prize-pos{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:900;
  color:var(--text);
  background:#f3f4f6;
  border:1px solid var(--border);
  padding:6px 10px;
  border-radius:999px;
}
.prize-value{
  font-weight:900;
  color:var(--brand);
}
.ticket-code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  letter-spacing:.5px;
  font-size:20px;
  font-weight:900;
  color:#0f172a;
  padding:10px 12px;
  border-radius:12px;
  border:1px dashed #d1d5db;
  background:#f8fafc;
  text-align:center;
  width:100%;
}
.prize-card--big .ticket-code{ font-size:22px; }

.copy-btn{
  border:1px solid var(--border);
  background:#fff;
  border-radius:12px;
  padding:10px 14px;
  font-weight:900;
  cursor:pointer;
  white-space:nowrap;
}
.copy-btn:hover{ filter:brightness(.98); }
.copy-btn.copied{ background:rgba(0,102,51,.08); border-color:rgba(0,102,51,.25); }
.copy-btn--mini{ padding:6px 10px; border-radius:10px; font-size:12px; margin-left:8px; }

.ticket-mini{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight:900;
}
.prize-meta{
  margin-top:10px;
  color:var(--muted);
  font-size:13px;
  line-height:1.3;
  text-align:center;
}

/* Tabela de outros prêmios */
.table-federal{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:14px;
}
.table-federal thead th{
  background:rgba(0,0,0,.03);
  padding:12px;
  text-align:left;
  font-size:13px;
  color:#111827;
}
.table-federal td{
  padding:12px;
  border-top:1px solid var(--border);
  font-size:14px;
  vertical-align:top;
}
.table-federal td:nth-child(3){ text-align:right; font-weight:900; color:var(--brand); }

@media(max-width:680px){
  .table-federal thead{display:none}
  .table-federal, .table-federal tbody, .table-federal tr, .table-federal td{display:block;width:100%}
  .table-federal tr{border-top:1px solid var(--border)}
  .table-federal tr:first-child{border-top:0}
  .table-federal td{border-top:0; display:flex; justify-content:space-between; gap:10px;}
  .table-federal td::before{content: attr(data-label); color:var(--muted); font-weight:900;}
  .table-federal td:nth-child(3){text-align:right}
}


/* Federal premium: ticket pills */
.ticket-pill{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border-radius:999px;background:#f1f5f9;border:1px solid #e2e8f0;font-weight:800;letter-spacing:.04em}
.federal-hero{margin:6px 0 14px;padding:12px 12px;border-radius:14px;background:#f8fafc;border:1px solid #eef2f7}
.federal-hero__title{font-weight:800;margin:0 0 8px}
.federal-hero__pills{display:flex;flex-wrap:wrap;gap:8px}


/* Federal ultra premium (v7) */
.federal-premium{ padding:16px; }
.federal-grid{ display:grid; gap:12px; }
.federal-grid--top5{ grid-template-columns:repeat(3,minmax(0,1fr)); }
@media(max-width:980px){ .federal-grid--top5{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:620px){ .federal-grid--top5{ grid-template-columns:1fr; } }

.federal-prize-card{
  border:1px solid var(--border);
  border-radius:16px;
  padding:16px;
  background:linear-gradient(180deg,#ffffff 0%, #fbfbfb 100%);
  box-shadow:0 0 14px rgba(0,0,0,.06);
}
.federal-prize-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; }
.federal-badge{
  display:inline-flex; align-items:center; gap:8px;
  font-weight:900; padding:6px 10px; border-radius:999px;
  background:#f3f4f6; border:1px solid var(--border);
}
.federal-prize-value{ font-weight:900; color:var(--brand); font-size:18px; }

.ticket-wrap{ display:flex; gap:10px; align-items:stretch; }
@media(max-width:620px){ .ticket-wrap{ flex-direction:column; } }

.federal-prize-meta{ display:flex; justify-content:space-between; gap:10px; margin-top:10px; color:var(--muted); font-size:13px; }
.federal-wins{ font-weight:800; }
.federal-loc{ text-align:right; }

.table-wrap{ overflow:auto; border-radius:14px; border:1px solid var(--border); }
.table{ width:100%; border-collapse:separate; border-spacing:0; }
.table thead th{ background:#f9fafb; padding:10px 12px; text-align:left; font-size:13px; border-bottom:1px solid var(--border); }
.table td{ padding:10px 12px; border-top:1px solid var(--border); font-size:14px; vertical-align:top; }
.table td:nth-child(3){ text-align:right; font-variant-numeric:tabular-nums; font-weight:900; color:var(--brand); }
.federal-rest{ margin-top:16px; }
