:root {
  --orange: #22631a;
  --orange-bright: #2e8b27;
  --deep: #102014;
  --deep-2: #19351b;
  --green: #7fdb76;
  --gold: #d7e99b;
  --ink: #f7fff9;
  --muted: #b8cdb6;
  --line: rgba(215, 233, 155, .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); }


.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-controls input[type="date"]:disabled { opacity: .65; }
.result-status { margin: 12px 0; color: var(--muted); }
.draw-results { display: grid; gap: 16px; margin-top: 16px; }
.draw-card { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.035); }
.draw-title { margin: 0 0 16px; color: var(--gold); font-size: 1.08rem; }
.draw-subtitle { margin: 16px 0 8px; color: var(--ink); font-size: .94rem; }
.draw-numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.draw-number { display: flex; flex-direction: column; gap: 4px; min-height: 66px; justify-content: center; padding: 9px 11px; border: 1px solid rgba(255,255,255,.09); border-radius: 9px; background: rgba(0,0,0,.12); }
.prize-label { color: var(--muted); font-size: .74rem; }
.prize-value { color: var(--green); font-size: 1.14rem; font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.derived-numbers { grid-template-columns: repeat(auto-fit, minmax(115px, 1fr)); }
.result-empty { margin: 8px 0 0; color: var(--muted); }


.result-toast[hidden] { display: none; }
.result-toast {
  position: fixed;
  z-index: 1000;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, 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(127, 219, 118, .6);
  border-radius: 12px;
  color: var(--ink);
  background: #102014;
  box-shadow: 0 12px 38px rgba(0, 0, 0, .45);
}
.result-toast[data-kind="updated"] { border-color: rgba(215, 233, 155, .7); }
.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; }


html { scroll-behavior: smooth; }
.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(127, 219, 118, .5);
  border-radius: 999px;
  color: var(--green);
  background: rgba(127, 219, 118, .07);
  font-size: .88rem;
  font-weight: 800;
  text-decoration: none;
}
.results-jump-link:hover { border-color: var(--green); background: rgba(127, 219, 118, .14); }
.results-jump-link:focus-visible,
.results-table-scroll:focus-visible,
.results-view-toggle:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.draw-card { scroll-margin-top: 16px; }
.results-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, .12);
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}
.results-table { width: 100%; min-width: 360px; border-collapse: collapse; color: #e7f2e8; font-variant-numeric: tabular-nums; }
.results-table th,
.results-table td { padding: 10px 13px; border-bottom: 1px solid rgba(255, 255, 255, .09); 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 .prize-position { width: 82px; 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: .045em; }
.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 10px;
  border: 0;
  border-radius: 8px;
  color: var(--green);
  background: transparent;
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.results-view-toggle:hover { color: #b6f3a9; background: rgba(127, 219, 118, .07); }
.draw-summary { display: flex; flex-wrap: wrap; gap: 9px; margin: 10px 0 0; }
.draw-summary-item { min-width: 130px; padding: 9px 12px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 9px; background: rgba(0, 0, 0, .12); }
.draw-summary-item dt { color: var(--muted); font-size: .76rem; }
.draw-summary-item dd { margin: 2px 0 0; color: var(--gold); font-size: 1rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.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; }
@media (max-width: 560px) {
  .draw-card { padding: 14px; }
  .results-table { min-width: 340px; }
  .results-table th, .results-table td { padding: 9px 10px; }
  .draw-summary-item { flex: 1 1 120px; }
}


/* Ajustes de encaixe móvel e alternador de visualização */
.results-table-scroll { overflow-x: visible; }
.results-table { width: 100%; min-width: 0; table-layout: fixed; }
.results-table th,
.results-table td { overflow-wrap: anywhere; }
.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-view-toggle {
  border: 1px solid rgba(127, 219, 118, .32);
  border-radius: 10px;
  color: var(--green);
  background: rgba(127, 219, 118, .09);
  text-decoration: none;
  text-underline-offset: 0;
}
.results-view-toggle:hover { border-color: rgba(127, 219, 118, .62); background: rgba(127, 219, 118, .16); text-decoration: none; }
@media (max-width: 560px) {
  .results-table { min-width: 0; font-size: .8rem; }
  .results-table th, .results-table td { padding: 8px 5px; }
  .results-table .prize-position { width: 24%; font-size: .72rem; }
  .results-table .milhar-cell { font-size: .88rem; letter-spacing: .01em; }
  .results-table .group-cell { font-size: .72rem; }
  .results-table-scroll { overflow-x: visible; }
}

/* Barra fixa de navegação, atalho de acessibilidade e rodapé editorial */
:root { --sticky-header-height: 72px; }
.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: 18px;
  padding: 8px max(16px, calc((100vw - 920px) / 2));
  border-bottom: 1px solid rgba(215, 233, 155, .25);
  background: rgba(16, 32, 20, .96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header .brand { flex: 0 0 auto; align-items: center; }
.site-header .brand img { width: 52px; height: 52px; 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, .26);
  border-radius: 10px;
  color: #fff;
  background: var(--orange-bright);
  font-size: .86rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background .16s ease, transform .16s ease;
}
.site-header .home-link:hover { background: #369531; transform: translateY(-1px); }
.site-header .home-link:focus-visible,
.skip-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.skip-link {
  position: fixed;
  z-index: 1100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--deep-2);
  font-weight: 800;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.page-shell { padding-top: calc(var(--sticky-header-height) + 14px); }
.breadcrumb { margin-top: 18px; }
#conteudo { scroll-margin-top: calc(var(--sticky-header-height) + 16px); }
.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 14px 24px;
  margin-top: 28px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  background: linear-gradient(145deg, rgba(11, 43, 34, .96), rgba(7, 26, 22, .96));
  box-shadow: 0 12px 34px rgba(0, 0, 0, .18);
}
.site-footer__brand { display: grid; gap: 4px; }
.site-footer__brand strong { color: var(--ink); font-size: 1rem; letter-spacing: .02em; }
.site-footer__brand span,
.site-footer__note { color: var(--muted); font-size: .81rem; line-height: 1.55; }
.site-footer__note { grid-column: 1 / -1; margin: 0; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .09); }
@media (max-width: 560px) {
  :root { --sticky-header-height: 64px; }
  .site-header { gap: 12px; padding: 7px 12px; }
  .site-header .brand img { width: 46px; height: 46px; }
  .site-header .home-link { min-height: 42px; padding: 8px 12px; font-size: .78rem; }
  .page-shell { padding-top: calc(var(--sticky-header-height) + 10px); }
  .breadcrumb { margin-top: 14px; }
  .site-footer { grid-template-columns: 1fr; gap: 12px; padding: 17px 16px; }
  .site-footer__note { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header .home-link { transition: none; }
}
