:root {
  --lpg-accent: #ffcc00;
}

* { box-sizing: border-box; }

.lpg-body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #0d1020;
  color: #ffffff;
}

.lpg-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 34px 18px 22px;
  overflow: hidden;
  isolation: isolate;
}

.lpg-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background: linear-gradient(135deg, #0a0d1a 0%, #101738 50%, #080a14 100%);
}

.lpg-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: var(--lpg-bg-image, none);
  background-size: cover;
  background-position: center;
  opacity: .22;
  transform: scale(1.08);
  filter: blur(12px);
}

.lpg-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 0%, rgba(255, 204, 0, .16), transparent 40%), linear-gradient(to bottom, rgba(4, 5, 13, .10), rgba(4, 5, 13, .86));
}

.lpg-card {
  width: min(100%, 760px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 28px;
  background: rgba(17, 21, 41, .86);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .42);
  backdrop-filter: blur(12px);
}

.lpg-hero-image {
  display: block;
  width: 100%;
  max-height: 310px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.lpg-content { padding: 34px; text-align: center; }

.lpg-kicker {
  margin: 0 0 12px;
  color: var(--lpg-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.lpg-content h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 6vw, 52px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.lpg-description {
  margin: 19px auto 0;
  max-width: 650px;
  color: rgba(255,255,255,.82);
  font-size: 17px;
  line-height: 1.58;
}

.lpg-description p:first-child { margin-top: 0; }
.lpg-description p:last-child { margin-bottom: 0; }
.lpg-description a { color: var(--lpg-accent); }

.lpg-cta {
  appearance: none;
  border: 0;
  width: min(100%, 420px);
  margin-top: 30px;
  padding: 18px 24px;
  border-radius: 14px;
  background: var(--lpg-accent);
  color: #161616;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .03em;
  line-height: 1;
  text-transform: uppercase;
  transition: transform .16s ease, filter .16s ease;
  box-shadow: 0 12px 26px color-mix(in srgb, var(--lpg-accent) 25%, transparent);
}

.lpg-cta:hover { transform: translateY(-2px); filter: brightness(1.08); }
.lpg-cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.lpg-disclaimer {
  margin: 14px 0 0;
  color: rgba(255,255,255,.56);
  font-size: 13px;
}

.lpg-missing-destination {
  margin-top: 24px;
  padding: 14px;
  border-radius: 10px;
  background: rgba(255, 80, 80, .12);
  color: #ffd4d4;
}

.lpg-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
  color: rgba(255,255,255,.60);
  font-size: 13px;
  text-align: center;
}

.lpg-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.lpg-footer a { color: rgba(255,255,255,.78); text-decoration: underline; text-underline-offset: 2px; }
.lpg-footer a:hover { color: #fff; }

.lpg-vinheta {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(3, 5, 13, .94);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

.lpg-vinheta.is-visible { opacity: 1; visibility: visible; }

.lpg-vinheta-box {
  width: min(100%, 340px);
  padding: 30px 24px;
  border-radius: 20px;
  background: #171b31;
  border: 1px solid rgba(255,255,255,.14);
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,.4);
}

.lpg-vinheta-box p { margin: 18px 0 0; font-size: 17px; font-weight: 700; }

.lpg-loader {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border: 5px solid rgba(255,255,255,.18);
  border-top-color: var(--lpg-accent);
  border-radius: 50%;
  animation: lpg-spin .8s linear infinite;
}

@keyframes lpg-spin { to { transform: rotate(360deg); } }

@media (max-width: 520px) {
  .lpg-page { padding: 16px 12px 16px; }
  .lpg-card { border-radius: 20px; }
  .lpg-content { padding: 27px 20px; }
  .lpg-description { font-size: 16px; }
  .lpg-cta { width: 100%; }
}

.lpg-custom-text {
  max-width: 650px;
  margin: 24px auto 0;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
  color: rgba(255,255,255,.86);
  text-align: left;
  font-size: 16px;
  line-height: 1.62;
}

.lpg-custom-text h2,
.lpg-custom-text h3 {
  margin: 0 0 12px;
  color: #fff;
  line-height: 1.18;
}

.lpg-custom-text p:first-child { margin-top: 0; }
.lpg-custom-text p:last-child { margin-bottom: 0; }
.lpg-custom-text a { color: var(--lpg-accent); }

.lpg-extra-buttons {
  display: grid;
  gap: 12px;
  width: min(100%, 420px);
  margin: 16px auto 0;
}

.lpg-extra-cta {
  appearance: none;
  width: 100%;
  padding: 15px 20px;
  border: 2px solid var(--lpg-extra-color, #ffffff);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  color: var(--lpg-extra-color, #ffffff);
  cursor: pointer;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: .02em;
  line-height: 1.1;
  text-transform: uppercase;
  transition: transform .16s ease, background .16s ease, color .16s ease;
}

.lpg-extra-cta:hover {
  transform: translateY(-2px);
  background: var(--lpg-extra-color, #ffffff);
  color: #161616;
}

.lpg-extra-cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

@media (max-width: 520px) {
  .lpg-custom-text { padding: 18px; font-size: 15px; }
}

/* Personalização por landing page e blocos manuais. */
.lpg-page::before {
  background: linear-gradient(135deg, #05070d 0%, var(--lpg-bg-color, #0d1020) 48%, #05070d 100%);
}

.lpg-manual-slot {
  width: min(100%, 650px);
  margin: 24px auto 0;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(0,0,0,.16);
  text-align: center;
}

.lpg-manual-slot-label {
  margin: 0 0 10px;
  color: rgba(255,255,255,.56);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.lpg-manual-slot-code {
  display: flex;
  justify-content: center;
  max-width: 100%;
  overflow: hidden;
}

.lpg-manual-slot-code iframe,
.lpg-manual-slot-code ins,
.lpg-manual-slot-code div {
  max-width: 100%;
}

.lpg-manual-slot--bottom { margin-top: 22px; }

/* Tema dinâmico: a área central usa a mesma cor da landing, apenas em uma tonalidade mais escura. */
.lpg-body {
  background: var(--lpg-bg-color, #0d1020);
}

.lpg-page::before {
  background:
    radial-gradient(circle at 50% -15%, color-mix(in srgb, var(--lpg-accent) 24%, transparent), transparent 46%),
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--lpg-bg-color, #0d1020) 64%, #000 36%) 0%,
      var(--lpg-bg-color, #0d1020) 50%,
      color-mix(in srgb, var(--lpg-bg-color, #0d1020) 58%, #000 42%) 100%
    );
}

.lpg-backdrop {
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--lpg-accent) 17%, transparent), transparent 42%),
    linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .28) 100%);
}

.lpg-card {
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--lpg-bg-color, #0d1020) 88%, #000 12%) 0%,
    color-mix(in srgb, var(--lpg-bg-color, #0d1020) 67%, #000 33%) 100%
  );
  border-color: color-mix(in srgb, var(--lpg-bg-color, #0d1020) 45%, #fff 55%);
  box-shadow: 0 24px 80px color-mix(in srgb, var(--lpg-bg-color, #0d1020) 35%, #000 65%);
}

.lpg-custom-text,
.lpg-manual-slot {
  background: color-mix(in srgb, var(--lpg-bg-color, #0d1020) 75%, #000 25%);
  border-color: color-mix(in srgb, var(--lpg-bg-color, #0d1020) 47%, #fff 53%);
}

.lpg-vinheta {
  background: color-mix(in srgb, var(--lpg-bg-color, #0d1020) 30%, #000 70%);
}

.lpg-vinheta-box {
  background: color-mix(in srgb, var(--lpg-bg-color, #0d1020) 72%, #000 28%);
}

.lpg-location {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 auto 14px;
  padding: 8px 13px;
  border: 1px solid color-mix(in srgb, var(--lpg-accent) 36%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--lpg-bg-color, #0d1020) 72%, #000 28%);
  color: rgba(255, 255, 255, .86);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
}

.lpg-location-pin {
  color: var(--lpg-accent);
  font-size: 15px;
  line-height: 1;
}

@supports not (background: color-mix(in srgb, #111 60%, #000)) {
  .lpg-card { background: rgba(15, 18, 38, .9); }
  .lpg-custom-text,
  .lpg-manual-slot { background: rgba(0, 0, 0, .24); }
  .lpg-vinheta-box { background: #171b31; }
}

/* Cidade no título e no primeiro texto. */
.lpg-city-intro {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--lpg-accent) 42%, transparent);
  border-left: 4px solid var(--lpg-accent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--lpg-bg-color, #0d1020) 74%, #ffffff 8%);
  color: rgba(255,255,255,.94);
  font-weight: 720;
  line-height: 1.5;
}

/* Bloco exibido durante a espera após o clique no botão principal. */
.lpg-cta {
  position: relative;
  z-index: 3;
  isolation: isolate;
}

.lpg-anchor-gate {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: color-mix(in srgb, var(--lpg-bg-color, #0d1020) 30%, #000 70%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}

.lpg-anchor-gate.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lpg-anchor-gate-box {
  position: relative;
  z-index: 4;
  width: min(100%, 720px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 26px 22px 22px;
  border: 1px solid color-mix(in srgb, var(--lpg-bg-color, #0d1020) 47%, #fff 53%);
  border-radius: 22px;
  background: color-mix(in srgb, var(--lpg-bg-color, #0d1020) 72%, #000 28%);
  box-shadow: 0 24px 80px rgba(0,0,0,.48);
  text-align: center;
}

.lpg-anchor-gate-title {
  margin: 0;
  color: #fff;
  font-size: clamp(18px, 4.8vw, 25px);
  font-weight: 900;
  line-height: 1.2;
}

.lpg-anchor-countdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 36px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--lpg-accent) 22%, transparent);
  color: var(--lpg-accent);
  font-size: 16px;
  font-weight: 900;
}

/* O bloco aparece dentro do mesmo painel do contador, nunca distante dele. */
.lpg-anchor-ad-slot {
  position: relative;
  width: 100%;
  min-height: 116px;
  margin: 18px auto 0;
  padding: 12px 14px 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  background: color-mix(in srgb, var(--lpg-bg-color, #0d1020) 75%, #000 25%);
  box-shadow: 0 18px 46px rgba(0,0,0,.32);
  text-align: left;
}

.lpg-anchor-ad-label {
  margin: 0 0 9px;
  color: rgba(255,255,255,.60);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}

.lpg-anchor-ad-code {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 88px;
  max-height: 220px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
}

.lpg-anchor-ad-fallback {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 88px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
}

a.lpg-anchor-ad-fallback:hover,
a.lpg-anchor-ad-fallback:focus {
  color: #fff;
  text-decoration: none;
  outline: 2px solid var(--lpg-accent);
  outline-offset: -2px;
}

.lpg-anchor-ad-fallback-image {
  display: block;
  flex: 0 0 94px;
  width: 94px;
  height: 66px;
  border-radius: 8px;
  object-fit: cover;
}

.lpg-anchor-ad-fallback-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.lpg-anchor-ad-fallback-copy strong {
  color: #fff;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.22;
}

.lpg-anchor-ad-fallback-copy span {
  color: rgba(255,255,255,.76);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.lpg-anchor-ad-fallback-copy em {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 2px;
  color: var(--lpg-accent);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

/* O código do parceiro fica acima do destaque de reserva. Se ele não carregar,
   o destaque continua visível em vez de deixar um bloco vazio. */
.lpg-anchor-network-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lpg-anchor-network-content:empty {
  pointer-events: none;
}

.lpg-anchor-network-content > * {
  position: relative;
  z-index: 1;
  max-width: 100% !important;
}

.lpg-anchor-network-content iframe,
.lpg-anchor-network-content img,
.lpg-anchor-network-content video {
  display: block;
  max-width: 100% !important;
}

@supports not (background: color-mix(in srgb, #111 60%, #000)) {
  .lpg-anchor-gate { background: rgba(3, 5, 13, .94); }
  .lpg-anchor-gate-box { background: #171b31; }
  .lpg-anchor-ad-slot { background: #101426; }
}

@media (max-width: 520px) {
  .lpg-anchor-gate {
    padding: 12px;
  }

  .lpg-anchor-gate-box {
    padding: 22px 16px 16px;
    border-radius: 18px;
  }

  .lpg-anchor-ad-slot {
    min-height: 104px;
    padding: 10px 11px 12px;
  }

  .lpg-anchor-ad-code,
  .lpg-anchor-ad-fallback {
    min-height: 78px;
  }

  .lpg-anchor-ad-fallback-image {
    flex-basis: 76px;
    width: 76px;
    height: 54px;
  }
}

/* v1.3.9 — bloco da espera em tamanho integral, sem corte de altura. */
.lpg-anchor-gate {
  display: block;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 16px;
}

.lpg-anchor-gate-box {
  width: min(100%, 980px);
  max-height: none;
  overflow: visible;
  margin: 0 auto;
}

.lpg-anchor-ad-slot {
  min-height: calc(var(--lpg-anchor-ad-height, 300px) + 48px);
}

.lpg-anchor-ad-code {
  min-height: var(--lpg-anchor-ad-height, 300px);
  max-height: none;
  overflow: visible;
  background: transparent;
}

.lpg-anchor-network-content {
  position: relative;
  inset: auto;
  z-index: 2;
  display: block;
  width: 100%;
  min-height: var(--lpg-anchor-ad-height, 300px);
  overflow: visible;
}

.lpg-anchor-network-content.is-loaded + .lpg-anchor-ad-fallback {
  display: none;
}

.lpg-anchor-network-content iframe {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-height: var(--lpg-anchor-ad-height, 300px) !important;
  height: var(--lpg-anchor-ad-height, 300px) !important;
  border: 0;
}

.lpg-anchor-network-content img,
.lpg-anchor-network-content video {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
}

.lpg-anchor-ad-fallback {
  min-height: var(--lpg-anchor-ad-height, 300px);
  padding: 0;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
}

.lpg-anchor-ad-fallback-image {
  flex: 0 0 46%;
  width: 46%;
  height: auto;
  min-height: var(--lpg-anchor-ad-height, 300px);
  border-radius: 0;
  object-fit: cover;
}

.lpg-anchor-ad-fallback-copy {
  justify-content: center;
  padding: 24px;
}

.lpg-anchor-ad-fallback-copy strong {
  font-size: clamp(17px, 2.6vw, 24px);
}

.lpg-anchor-ad-fallback-copy span {
  font-size: 14px;
}

@media (max-width: 520px) {
  .lpg-anchor-gate {
    padding: 14px 10px;
  }

  .lpg-anchor-ad-fallback {
    flex-direction: column;
  }

  .lpg-anchor-ad-fallback-image {
    width: 100%;
    min-height: 150px;
    height: 150px;
  }

  .lpg-anchor-ad-fallback-copy {
    padding: 18px;
  }
}
