@font-face {
  font-family: "CAIXA Std";
  src: url("caixa-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "CAIXA Std";
  src: url("caixa-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "CAIXA Button";
  src: url("caixa-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --blue: #005ca9;
  --blue-dark: #004d8c;
  --gold: #f9b000;
  --red: #005ca9;
  --ink: #253745;
  --muted: #48586a;
  --paper: #f5f7f8;
  --line: #d9e2ec;
  --font: "CAIXA Std", Arial, sans-serif;
  --font-btn: "CAIXA Button", "CAIXA Std", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--font);
}
body:has(dialog[open]) { overflow: hidden; }
main { flex: 1 0 auto; min-width: 0; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
button, input { font: inherit; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dt, dd { margin: 0; overflow-wrap: break-word; }
h1, h2, h3 { font-family: var(--font); }
[hidden] { display: none !important; }
.pixel-noscript { display: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
.summary-numbers:focus-visible {
  outline: 3px solid #b66a25;
  outline-offset: 3px;
}
[tabindex="-1"]:focus,
[tabindex="-1"]:focus-visible {
  outline: none;
}
[id="inicio"], [id="premios"], [id="numeros"] { scroll-margin-top: 60px; }

.wrap {
  width: min(1160px, calc(100% - clamp(24px, 5vw, 80px)));
  margin-inline: auto;
}

.top {
  color: #fdf9f5;
  background: var(--blue);
  border-bottom: 1px solid #ffffff20;
}
.nav, .footer-inner {
  min-height: 60px;
  padding-block: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.nav { justify-content: flex-start; }
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 44px;
}
.brand img { width: clamp(84px, 18vw, 112px); height: auto; }
.portal-name {
  border-left: 2px solid var(--gold);
  padding-left: clamp(10px, 2vw, 14px);
  font-size: clamp(.95rem, 2.4vw, 1.12rem);
  font-weight: 700;
  line-height: 1.2;
}
.header-label {
  margin-left: auto;
  color: #fff;
  font-size: clamp(.75rem, 2vw, .84rem);
  line-height: 1.3;
  text-align: right;
  white-space: nowrap;
}

.section-menu {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.section-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.section-nav::-webkit-scrollbar { display: none; }
.section-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding-inline: 4px;
  color: var(--blue);
  white-space: nowrap;
  font-size: clamp(.84rem, 2.8vw, .95rem);
  font-weight: 700;
}
.section-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero {
  color: #fdf9f5;
  background: linear-gradient(132deg, #0064b4 40%, #0786ac 40%, #32adae 100%);
  padding-block: clamp(28px, 5vw, 68px) clamp(28px, 4.5vw, 56px);
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 4vw, 48px);
}
.hero-copy { min-width: 0; align-self: center; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.breadcrumb {
  margin-bottom: 10px;
  color: #fff;
  font-size: clamp(.8rem, 2vw, .88rem);
  line-height: 1.4;
}
h1 {
  font-size: clamp(2.1rem, 5.2vw + .85rem, 4.35rem);
  line-height: 1.08;
  letter-spacing: -.03em;
}
.hero-text {
  margin: clamp(12px, 2.2vw, 18px) 0 clamp(18px, 3vw, 26px);
  color: #edf3f9;
  font-size: clamp(1rem, 1.8vw + .3rem, 1.2rem);
  line-height: 1.45;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  max-width: 100%;
  padding: 12px 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-family: var(--font-btn);
  font-weight: 700;
  font-synthesis: weight;
  font-synthesis-weight: auto;
  letter-spacing: .015em;
  font-size: 1rem;
  line-height: 1.25;
  text-align: center;
}
.hero-cta { width: 100%; }
.primary { color: #211d14; background: var(--gold); }
.primary:hover { background: #ffc63f; }
.urgency {
  margin-top: 12px;
  color: #fff;
  font-size: .92rem;
  font-weight: 700;
}
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  border-radius: 8px;
  overflow: hidden;
  background: var(--blue);
  box-shadow: 0 12px 30px #003a6a45;
}
.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.prizes { padding-block: clamp(32px, 5vw, 68px); }
.section-title { margin-bottom: clamp(18px, 3vw, 26px); }
h2 {
  color: var(--blue);
  font-size: clamp(1.65rem, 3.8vw + .45rem, 2.75rem);
  line-height: 1.15;
  letter-spacing: -.025em;
}
.prize-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.prize-card {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: clamp(14px, 2.4vw, 20px);
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}
.prize-image {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  object-fit: contain;
}
.prize-info { min-width: 0; flex: 1; }
.rank {
  color: var(--red);
  font-weight: 700;
  letter-spacing: .12em;
  font-size: .7rem;
}
.prize-card h3 {
  font-size: clamp(1.1rem, 1.5vw + .65rem, 1.26rem);
  line-height: 1.3;
  margin-top: 2px;
}
.prize-card h3 + p {
  color: var(--muted);
  font-size: .86rem;
  margin-top: 3px;
}

.number-section {
  background: #edf2f8;
  padding-block: clamp(32px, 5vw, 68px);
  border-block: 1px solid var(--line);
}
.number-wrap { max-width: 800px; }
.picker {
  background: #fff;
  border-radius: 15px;
  border: 1px solid var(--line);
  padding: clamp(16px, 4vw, 32px);
}
.inventory {
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.inventory-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.inventory-heading strong {
  color: var(--blue);
  font-size: clamp(1.02rem, 2vw, 1.15rem);
}
.inventory-heading span { color: var(--muted); font-size: .86rem; }
.inventory progress {
  display: block;
  width: 100%;
  height: 10px;
  margin-block: 8px;
  appearance: none;
  border: 0;
  border-radius: 10px;
  background: #e5edf5;
  overflow: hidden;
}
.inventory progress::-webkit-progress-bar { background: #e5edf5; }
.inventory progress::-webkit-progress-value { background: var(--blue); }
.inventory progress::-moz-progress-bar { background: var(--blue); }
.price { margin-bottom: 16px; color: var(--muted); }
.price strong {
  color: var(--blue);
  font-size: clamp(1.35rem, 3vw, 1.6rem);
}
#quantity-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}
.quantity-control {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  width: 100%;
  border: 1px solid #a3b9cc;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.quantity-control button, .quantity-control input {
  min-height: 48px;
  border: 0;
  background: #fff;
  color: var(--blue);
  font: 700 1.05rem var(--font);
}
.quantity-control button { font-size: 1.35rem; line-height: 1; }
.quantity-control button:hover:enabled { background: #eaf2fa; }
.quantity-control input {
  width: 100%;
  min-width: 0;
  border-inline: 1px solid var(--line);
  padding-inline: 8px;
  text-align: center;
  appearance: textfield;
}
.quantity-control input::-webkit-inner-spin-button,
.quantity-control input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}
.quantity-hint {
  margin-top: 8px;
  color: var(--muted);
  font-size: .86rem;
}
.total-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.total-line output {
  color: var(--blue);
  font-size: clamp(1.25rem, 3vw, 1.45rem);
  font-weight: 700;
}
.simulate { width: 100%; }

footer {
  background: var(--blue-dark);
  color: #fdf9f5;
  padding-block: 14px max(14px, env(safe-area-inset-bottom, 14px));
}
.footer-inner {
  justify-content: center;
  text-align: center;
  gap: 8px 18px;
}
.footer-inner > span { color: #dce6f0; font-size: .82rem; }

dialog {
  color: var(--ink);
  background: #fff;
  padding: 0;
  border: 0;
}
dialog[open] {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  border-radius: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
dialog::backdrop { background: #004d8cc9; }
.modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(12px, env(safe-area-inset-top, 12px)) 16px 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.modal-header .eyebrow { margin: 0; }
.modal-body {
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  padding: 16px 16px max(28px, env(safe-area-inset-bottom, 28px));
  flex: 1 0 auto;
}
dialog p { margin-block: 10px; }
dialog .button { margin-top: 12px; width: 100%; }
.close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  margin-right: -8px;
  border: 0;
  border-radius: 8px;
  color: var(--blue);
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
}
.close:hover { background: #eaf2fa; }

.checkout-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  list-style: none;
  padding: 0 0 14px;
  margin: 0 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-btn);
  font-synthesis: weight;
  font-synthesis-weight: auto;
  font-size: clamp(.82rem, 2.8vw, .9rem);
  line-height: 1.2;
}
.checkout-steps li {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  white-space: nowrap;
}
.checkout-steps li:first-child { flex: 1 1 auto; }
.checkout-steps li:last-child { flex: 0 0 auto; }
.checkout-steps li:first-child::after {
  content: "";
  flex: 1 1 16px;
  min-width: 12px;
  height: 1px;
  margin-left: 3px;
  background: #a3b9cc;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  padding-bottom: 1px;
  border: 1px solid #a3b9cc;
  border-radius: 50%;
  font-weight: 700;
  font-size: .82rem;
  line-height: 1;
}
.checkout-steps [aria-current="step"] { color: var(--blue); font-weight: 700; }
.checkout-steps [aria-current="step"] .step-number {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.example-data p { color: var(--muted); font-size: .9rem; }
.example-data label {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
}
.example-data input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin-top: 6px;
  border: 1px solid #a3b9cc;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f2f7fc;
  color: var(--ink);
  font-size: 1rem;
}
.checkout-error {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid #f0b4b4;
  border-radius: 8px;
  background: #fdf2f2;
  color: #9b1c1c;
  font-size: .88rem;
  font-weight: 500;
}
.payment-amount {
  color: var(--blue);
  font-size: clamp(1.15rem, 3.2vw, 1.3rem);
  font-weight: 700;
}
.pix-note { color: var(--muted); font-size: .9rem; }
.pix-qr {
  display: block;
  width: min(210px, 62vw);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 14px auto;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.pix-recipient {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px 16px;
  margin-block: 14px;
  padding: 12px;
  background: #f7fafd;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.pix-recipient > div { min-width: 0; }
.pix-recipient dt, .pix-label {
  display: block;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 700;
}
.pix-recipient dd {
  margin: 2px 0 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.pix-code {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin-top: 6px;
  border: 1px solid #a3b9cc;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f2f7fc;
  color: var(--ink);
  font-size: 1rem;
}
.pix-copy, .pix-back {
  border-color: #a3b9cc;
  background: #fff;
  color: var(--blue);
}
.pix-copy:hover, .pix-back:hover { background: #eaf2fa; }
#pix-status { margin: 6px 0 0; color: var(--muted); font-size: .86rem; }
.payment-poll-status {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f2f7fc;
  color: var(--blue-dark);
  font-size: .88rem;
  font-weight: 500;
}
.payment-poll-status.is-error {
  border-color: #f0b4b4;
  background: #fdf2f2;
  color: #9b1c1c;
}
.summary-numbers {
  max-height: min(36dvh, 260px);
  overflow: auto;
  overflow-wrap: break-word;
  word-break: normal;
  line-height: 1.75;
  background: #eaf2fa;
  padding: 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .95rem;
}

@media (max-width: 359px) {
  .header-label {
    width: 100%;
    margin-left: 0;
    text-align: left;
  }
}

@media (min-width: 440px) {
  .pix-recipient {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }
}

@media (min-width: 480px) {
  .section-nav {
    justify-content: flex-start;
    gap: clamp(16px, 3vw, 32px);
  }
  .hero-cta {
    width: auto;
    min-width: 240px;
  }
  .quantity-control { max-width: 300px; }
  .footer-inner {
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 640px) {
  .prize-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .prize-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  dialog[open] {
    width: min(520px, calc(100vw - 40px));
    max-width: 520px;
    height: auto;
    max-height: min(90dvh, 840px);
    margin: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 24px 60px #00234440;
  }
  .modal-header { padding: 16px 24px 12px; }
  .modal-body { max-width: none; padding: 18px 24px 28px; }
}

@media (min-width: 900px) {
  .hero-layout {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: clamp(28px, 3.5vw, 56px);
  }
  .hero-visual { max-width: none; }
}

@media (min-width: 1024px) {
  .prize-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 20px);
  }
  .prize-card:last-child:nth-child(odd) {
    grid-column: auto;
  }
  .prize-image {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
  }
}

@media (min-width: 1536px) {
  .wrap {
    width: min(1280px, calc(100% - 96px));
  }
}

@media (max-height: 540px) {
  .section-menu {
    position: static;
  }
  dialog[open] {
    max-height: 96dvh;
  }
  .pix-qr {
    width: min(156px, 40vh);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
