:root {
  --orange: #c94f08;
  --orange-bright: #f3670f;
  --deep: #071a16;
  --deep-2: #0b2b22;
  --green: #16c784;
  --gold: #e9b74b;
  --ink: #f7fff9;
  --muted: #abc3b5;
  --line: rgba(233, 183, 75, .25);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; background: var(--deep); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: linear-gradient(180deg, var(--orange) 0 210px, var(--deep) 570px); }
a { color: inherit; }

.page-shell { width: min(100% - 32px, 920px); margin: 0 auto; padding: 24px 0 42px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; color: #fff; text-decoration: none; }
.brand img { display: block; width: 148px; height: auto; }
.home-link { display: inline-flex; align-items: center; min-height: 40px; padding: 9px 14px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; color: #fff; background: rgba(7,26,22,.22); font-size: .82rem; font-weight: 700; text-decoration: none; }
.home-link:hover { background: rgba(7,26,22,.42); }

.breadcrumb { margin: 44px 0 14px; color: rgba(255,255,255,.8); font-size: .78rem; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.result-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg, rgba(11,43,34,.98), rgba(7,26,22,.98)); box-shadow: 0 24px 70px rgba(0,0,0,.3); }
.result-card-header { padding: clamp(24px, 5vw, 42px); border-bottom: 1px solid rgba(233,183,75,.16); }
.eyebrow { margin: 0 0 10px; color: var(--gold); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; color: var(--ink); font-size: clamp(1.65rem, 5vw, 2.65rem); line-height: 1.12; letter-spacing: -.025em; }
.resultado-data { color: var(--green); white-space: nowrap; }
.intro { max-width: 680px; margin: 18px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.65; }

.result-content { padding: clamp(24px, 5vw, 42px); color: #d7eee1; font-size: 1rem; line-height: 1.65; }
.result-content p { margin: 0 0 14px; }
.result-content strong { color: var(--gold); }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.action-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border-radius: 10px; color: #fff; background: var(--orange-bright); font-size: .86rem; font-weight: 800; text-decoration: none; }
.action-link.secondary { border: 1px solid rgba(22,199,132,.45); background: rgba(22,199,132,.12); color: #dffff0; }
.action-link:hover { filter: brightness(1.08); }

.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 24px; color: var(--muted); font-size: .78rem; }
.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .page-shell { width: min(100% - 20px, 920px); padding-top: 14px; }
  .site-header { align-items: flex-start; }
  .brand img { width: 128px; }
  .home-link { padding-inline: 11px; font-size: .75rem; }
  .breadcrumb { margin-top: 34px; }
  .result-card { border-radius: 17px; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; }
}

.result-content section { margin: 0 0 30px; }
.result-content h2 { margin: 0 0 12px; color: var(--ink); font-size: clamp(1.2rem, 3.6vw, 1.55rem); line-height: 1.25; }
.schedule-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 9px; margin: 18px 0; padding: 0; list-style: none; }
.schedule-list li { display: flex; min-height: 44px; align-items: center; padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: rgba(255,255,255,.045); font-size: .9rem; font-weight: 700; }
.schedule-note { padding: 14px 16px; border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; color: var(--muted); background: rgba(255,255,255,.04); font-size: .9rem; }
.result-notice { margin: 18px 0 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: rgba(255,255,255,.045); }
.result-notice strong { color: var(--gold); }
.related { padding-top: 10px; }
.related-list { display: flex; flex-wrap: wrap; gap: 9px; margin: 14px 0 0; padding: 0; list-style: none; }
.related-list a { display: inline-flex; min-height: 40px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.04); font-size: .83rem; font-weight: 700; text-decoration: none; }
.related-list a:hover { border-color: var(--green); color: var(--green); }


/* Estrutura de navegação fixa e acessibilidade nas páginas de resultados */
:root { --sticky-header-height: 72px; }
.page-shell {
  padding-top: calc(var(--sticky-header-height) + 18px);
  padding-bottom: 124px;
}
.site-header {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  display: flex;
  width: 100%;
  min-height: var(--sticky-header-height);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px max(12px, calc((100vw - 920px) / 2));
  border-bottom: 1px solid rgba(243, 103, 15, .34);
  background: rgba(7, 26, 22, .97);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header .brand { flex: 0 0 auto; align-items: center; }
.site-header .brand img { width: 126px; height: auto; object-fit: contain; }
.site-header .home-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px;
  color: #fff;
  background: var(--orange-bright);
  font-size: .86rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.site-header .home-link:hover { filter: brightness(1.08); }
.skip-link {
  position: absolute;
  z-index: 1002;
  top: -90px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #071a16;
  background: #fff;
  font-weight: 800;
}
.skip-link:focus { top: 8px; }
.breadcrumb { margin-top: 18px; }
#conteudo, .draw-card { scroll-margin-top: calc(var(--sticky-header-height) + 16px); }

/* Consulta, tabelas e alternância de prêmios */
.result-controls { margin-top: 16px; }
.result-controls > label { display: block; margin-bottom: 8px; color: var(--ink); font-weight: 800; }
.result-controls input[type="date"] {
  min-height: 46px;
  max-width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  color-scheme: dark;
  background: rgba(255, 255, 255, .07);
  font: inherit;
}
.result-controls input[type="date"]:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.result-status { margin: 12px 0; color: var(--muted); }
.draw-results { display: grid; gap: 16px; margin-top: 16px; }
.draw-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .035); }
.draw-title { margin: 0 0 14px; color: var(--gold); font-size: 1.08rem; }
.result-empty { margin: 8px 0 0; color: var(--muted); }
.results-top-actions { display: flex; justify-content: flex-end; margin: 4px 0 12px; }
.results-jump-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid rgba(22, 199, 132, .45);
  border-radius: 999px;
  color: var(--green);
  background: rgba(22, 199, 132, .08);
  font-size: .88rem;
  font-weight: 800;
  text-decoration: none;
}
.results-jump-link:hover { border-color: var(--green); background: rgba(22, 199, 132, .15); }
.results-jump-link:focus-visible,
.results-table-scroll:focus-visible,
.results-view-toggle:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.results-table-scroll {
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, .12);
}
.results-table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; color: #e7f2e8; font-variant-numeric: tabular-nums; }
.results-table th, .results-table td { padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .09); overflow-wrap: anywhere; text-align: left; vertical-align: middle; }
.results-table thead th { color: var(--gold); background: rgba(255, 255, 255, .055); font-size: .88rem; font-weight: 800; }
.results-table tbody tr:last-child th, .results-table tbody tr:last-child td { border-bottom: 0; }
.results-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, .025); }
.results-table th:first-child, .results-table td:first-child { width: 24%; }
.results-table th:nth-child(2), .results-table td:nth-child(2) { width: 26%; }
.results-table th:nth-child(3), .results-table td:nth-child(3) { width: 50%; }
.results-table .prize-position { color: var(--muted); font-size: .9rem; font-weight: 700; }
.results-table .milhar-cell { color: var(--green); font-size: 1.06rem; font-weight: 800; letter-spacing: .035em; }
.results-table .group-cell { color: var(--ink); font-size: .92rem; }
.table-actions { display: flex; justify-content: center; margin-top: 7px; }
.results-view-toggle {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(22, 199, 132, .32);
  border-radius: 10px;
  color: var(--green);
  background: rgba(22, 199, 132, .09);
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.results-view-toggle:hover { border-color: rgba(22, 199, 132, .62); background: rgba(22, 199, 132, .16); }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

/* Toast de atualização em tempo real; fica acima do atalho WhatsApp */
.result-toast[hidden] { display: none; }
.result-toast {
  position: fixed;
  z-index: 1004;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(78px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(440px, calc(100vw - 32px));
  padding: 14px 12px 14px 17px;
  border: 1px solid rgba(22, 199, 132, .6);
  border-radius: 12px;
  color: var(--ink);
  background: #071a16;
  box-shadow: 0 12px 38px rgba(0, 0, 0, .45);
}
.result-toast[data-kind="updated"] { border-color: rgba(233, 183, 75, .75); }
.result-toast__message { flex: 1; font-size: .92rem; font-weight: 700; line-height: 1.45; }
.result-toast__close {
  display: inline-flex;
  flex: 0 0 44px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 1.5rem;
  cursor: pointer;
}
.result-toast__close:hover { background: rgba(255, 255, 255, .1); }
.result-toast__close:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* Acesso persistente ao grupo de palpites do Acertos Online */
.result-whatsapp-float {
  position: fixed;
  z-index: 1003;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  gap: 10px;
  padding: 8px 17px 8px 13px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  color: #062117;
  background: #16c784;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .38);
  text-decoration: none;
  transition: transform .18s ease, filter .18s ease;
}
.result-whatsapp-float:hover { transform: translateY(-2px); filter: brightness(1.06); }
.result-whatsapp-float:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.result-whatsapp-float__icon { display: inline-flex; width: 30px; height: 30px; flex: 0 0 30px; align-items: center; justify-content: center; }
.result-whatsapp-float__icon svg { display: block; width: 28px; height: 28px; fill: currentColor; }
.result-whatsapp-float__copy { display: flex; flex-direction: column; gap: 2px; line-height: 1.1; }
.result-whatsapp-float__copy strong { font-size: .84rem; font-weight: 900; }
.result-whatsapp-float__copy small { font-size: .7rem; font-weight: 800; opacity: .82; }

/* Rodapé próprio, sem repetir o link da página inicial */
.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 24px;
  padding: 18px 2px 0;
  border-top: 1px solid rgba(233, 183, 75, .22);
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.55;
}
.site-footer__brand { display: grid; gap: 3px; }
.site-footer__brand strong { color: var(--ink); font-size: .9rem; }
.site-footer__note { margin: 0; }

@media (max-width: 560px) {
  :root { --sticky-header-height: 64px; }
  .page-shell { width: min(100% - 20px, 920px); padding-top: calc(var(--sticky-header-height) + 18px); padding-bottom: 126px; }
  .site-header { gap: 8px; padding: 5px 10px; }
  .site-header .brand img { width: 112px; }
  .site-header .home-link { min-height: 42px; padding: 8px 11px; font-size: .76rem; }
  .breadcrumb { margin-top: 14px; }
  .result-card { border-radius: 17px; }
  .result-card-header, .result-content { padding: 22px 17px; }
  .draw-card { padding: 14px 10px; }
  .results-table { font-size: .8rem; }
  .results-table th, .results-table td { padding: 8px 5px; }
  .results-table .prize-position { font-size: .72rem; }
  .results-table .milhar-cell { font-size: .88rem; letter-spacing: .01em; }
  .results-table .group-cell { font-size: .72rem; }
  .site-footer { flex-direction: column; }
  .result-whatsapp-float { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); min-height: 52px; padding: 7px 13px 7px 10px; }
  .result-whatsapp-float__icon { width: 28px; height: 28px; flex-basis: 28px; }
  .result-whatsapp-float__icon svg { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .result-whatsapp-float { transition: none; }
}


/* Menu superior expansível: três barras que se transformam em X */
:root {
  --top-menu-height: 44px;
  --sticky-header-height: 116px;
}
.site-menu-bar {
  position: fixed;
  z-index: 1100;
  inset: 0 0 auto;
  height: var(--top-menu-height);
  border-bottom: 1px solid rgba(243, 103, 15, .35);
  color: var(--ink);
  background: rgba(7, 26, 22, .98);
  box-shadow: 0 5px 18px rgba(0, 0, 0, .18);
}
.site-menu {
  position: relative;
  width: min(100% - 24px, 920px);
  height: 100%;
  margin: 0 auto;
}
.menu-toggle {
  display: flex;
  height: var(--top-menu-height);
  align-items: center;
  justify-content: flex-end;
  gap: 11px;
  color: var(--ink);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.menu-toggle::-webkit-details-marker,
.menu-group__title::-webkit-details-marker { display: none; }
.menu-toggle::marker,
.menu-group__title::marker { content: ""; }
.menu-toggle__label { order: 1; opacity: .74; }
.hamburger-icon {
  position: relative;
  display: inline-flex;
  width: 28px;
  height: 24px;
  flex: 0 0 28px;
  order: 2;
  align-items: center;
  justify-content: center;
}
.hamburger-icon i {
  position: absolute;
  left: 1px;
  width: 26px;
  height: 2px;
  border-radius: 99px;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(233, 183, 75, .24);
  transition: transform .24s cubic-bezier(.4, 0, .2, 1), opacity .18s ease, width .24s ease;
}
.hamburger-icon i:nth-child(1) { transform: translateY(-7px); }
.hamburger-icon i:nth-child(2) { transform: translateY(0); width: 20px; }
.hamburger-icon i:nth-child(3) { transform: translateY(7px); }
.site-menu[open] .hamburger-icon i:nth-child(1) { transform: translateY(0) rotate(45deg); }
.site-menu[open] .hamburger-icon i:nth-child(2) { width: 26px; opacity: 0; transform: scaleX(0); }
.site-menu[open] .hamburger-icon i:nth-child(3) { transform: translateY(0) rotate(-45deg); }
.menu-toggle:focus-visible,
.menu-group__title:focus-visible,
.menu-link:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 8px; }
.menu-panel {
  position: absolute;
  z-index: 1101;
  top: var(--top-menu-height);
  right: 0;
  width: min(100vw - 24px, 430px);
  max-height: calc(100vh - var(--top-menu-height) - 18px);
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(233, 183, 75, .38);
  border-radius: 0 0 16px 16px;
  background: linear-gradient(155deg, rgba(11, 43, 34, .99), rgba(7, 26, 22, .99));
  box-shadow: 0 20px 44px rgba(0, 0, 0, .42);
  transform-origin: top right;
  animation: menu-drop .2s ease-out both;
}
@keyframes menu-drop { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.menu-list, .menu-sublist { margin: 0; padding: 0; list-style: none; }
.menu-list { display: grid; gap: 6px; }
.menu-link, .menu-group__title {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, .045);
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.menu-link:hover, .menu-group__title:hover { border-color: rgba(233, 183, 75, .48); background: rgba(233, 183, 75, .1); }
.menu-group__title::after { content: "+"; color: var(--gold); font-size: 1.2rem; font-weight: 500; line-height: 1; }
.menu-group[open] > .menu-group__title::after { content: "−"; }
.menu-sublist { display: grid; gap: 4px; padding: 7px 0 2px 13px; }
.menu-sublist a { display: block; padding: 9px 12px; border-left: 2px solid rgba(233, 183, 75, .35); color: var(--muted); font-size: .86rem; font-weight: 700; text-decoration: none; }
.menu-sublist a:hover { border-left-color: var(--green); color: var(--ink); background: rgba(22, 199, 132, .08); }
.menu-link--highlight { border-color: rgba(22, 199, 132, .45); color: #eafff3; background: linear-gradient(100deg, rgba(22, 199, 132, .2), rgba(243, 103, 15, .15)); }
.menu-link--highlight::after { content: "↗"; color: var(--green); font-size: 1.1rem; }
.site-header { top: var(--top-menu-height); }
.page-shell { padding-top: calc(var(--sticky-header-height) + 18px); }
@media (max-width: 560px) {
  :root { --top-menu-height: 42px; --sticky-header-height: 106px; }
  .site-menu { width: calc(100% - 20px); }
  .menu-toggle { height: var(--top-menu-height); }
  .menu-panel { width: calc(100vw - 20px); max-height: calc(100vh - 58px); }
  .menu-toggle__label { font-size: .66rem; }
  .site-header { top: var(--top-menu-height); }
  .page-shell { padding-top: calc(var(--sticky-header-height) + 14px); }
}
@media (prefers-reduced-motion: reduce) {
  .hamburger-icon i, .menu-panel { animation: none; transition: none; }
}

/* A barra superior permanece no topo; o cabeçalho da marca rola com a página. */
.site-header {
  position: relative;
  top: auto;
  z-index: 900;
}
.page-shell { padding-top: calc(var(--top-menu-height) + 18px); }
.menu-toggle { gap: 0; }
.menu-toggle__label { display: none; }
@media (max-width: 560px) {
  .site-header { top: auto; }
  .page-shell { padding-top: calc(var(--top-menu-height) + 14px); }
}


/* Cabeçalho único fixo: menu à esquerda, logo centralizada e acesso à direita. */
:root { --sticky-header-height: 74px; }
.site-header.site-header--single {
  position: fixed;
  z-index: 1200;
  inset: 0 0 auto;
  display: flex;
  width: 100%;
  min-height: var(--sticky-header-height);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px max(12px, calc((100vw - 920px) / 2));
  border-bottom: 1px solid rgba(243, 103, 15, .35);
  background: rgba(7, 26, 22, .98);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header--single .single-header__menu { position: relative; z-index: 2; display: flex; width: 44px; height: 100%; align-items: center; flex: 0 0 44px; }
.site-header--single .site-menu { width: 44px; height: 100%; margin: 0; }
.site-header--single .menu-toggle { width: 44px; height: 100%; justify-content: flex-start; }
.site-header--single .hamburger-icon { width: 30px; flex-basis: 30px; }
.site-header--single .hamburger-icon i { left: 1px; width: 28px; height: 2px; }
.site-header--single .hamburger-icon i:nth-child(2) { width: 21px; }
.site-header--single .site-menu[open] .hamburger-icon i:nth-child(2) { width: 28px; }
.site-header--single .menu-panel { top: calc(100% + 1px); right: auto; left: -6px; width: min(430px, calc(100vw - 20px)); }
.site-header--single .brand { position: absolute; z-index: 1; left: 50%; flex: 0 0 auto; transform: translateX(-50%); }
.site-header--single .brand img { display: block; width: 126px; height: auto; object-fit: contain; }
.site-header--single .home-link { position: relative; z-index: 2; margin-left: auto; }
.page-shell { padding-top: calc(var(--sticky-header-height) + 18px); }
@media (max-width: 560px) {
  :root { --sticky-header-height: 64px; }
  .site-header.site-header--single { gap: 8px; padding: 5px 10px; }
  .site-header--single .brand img { width: 112px; }
  .site-header--single .home-link { min-height: 42px; padding: 8px 11px; font-size: .76rem; }
  .site-header--single .menu-panel { left: -5px; max-height: calc(100vh - 74px); }
  .page-shell { padding-top: calc(var(--sticky-header-height) + 14px); }
}
