:root {
  --bg: #03060d;
  --bg-2: #07101f;
  --blue: #1e5bff;
  --blue-2: #2f7bff;
  --blue-glow: rgba(40, 110, 255, .55);
  --white: #f4f6fb;
  --muted: #9fb0d0;
  --line: rgba(80, 140, 255, .28);
  --red: #e01b24;
  --brush: "Permanent Marker", "Segoe Print", cursive;
  --sans: "Barlow", system-ui, sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--white);
  background:
    radial-gradient(60% 40% at 0% 15%, rgba(30, 91, 255, .22), transparent 70%),
    radial-gradient(50% 35% at 100% 55%, rgba(30, 91, 255, .18), transparent 70%),
    radial-gradient(70% 30% at 50% 100%, rgba(30, 91, 255, .2), transparent 70%),
    var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Riscos de pincel azuis nas laterais, como no flyer */
body::before,
body::after {
  content: "";
  position: fixed;
  width: 340px;
  height: 120px;
  background: linear-gradient(100deg, transparent 0 8%, var(--blue) 30%, #0b3bd6 70%, transparent 92%);
  filter: blur(1px);
  opacity: .5;
  pointer-events: none;
  z-index: 0;
  clip-path: polygon(0 40%, 18% 22%, 40% 30%, 62% 8%, 100% 0, 92% 30%, 70% 52%, 48% 60%, 26% 82%, 4% 100%);
}
body::before { top: 2vh; right: -110px; transform: rotate(-18deg); }
body::after  { bottom: 4vh; left: -120px; transform: rotate(-24deg); }

.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

header, main, footer { position: relative; z-index: 1; }
main { max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* ---------- TOPO ---------- */
.topbar {
  max-width: 720px; margin: 0 auto; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--white); text-decoration: none;
  font-family: var(--cond); font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; font-size: .85rem;
}
.brand img { border-radius: 50%; box-shadow: 0 0 0 2px var(--blue), 0 0 18px var(--blue-glow); }
.age-pill {
  font-family: var(--cond); font-weight: 800; font-size: .95rem;
  padding: 4px 12px; border: 2px solid var(--blue-2); border-radius: 999px;
  box-shadow: 0 0 14px var(--blue-glow);
}

/* ---------- HERO (arte do flyer) ---------- */
.hero { margin: 0 -16px; }
.hero-art {
  width: 100%;
  aspect-ratio: 720 / 790;
  background: url("assets/flyer.webp") center top / 100% auto no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 6%, #000 82%, transparent 100%),
                      linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to bottom, transparent 0, #000 6%, #000 82%, transparent 100%),
                      linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-composite: intersect;
  animation: rise .9s ease-out both;
}

@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } }

/* ---------- INFO (data / horário / local) ---------- */
.info {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: -18px; padding: 18px 4px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 25, 60, .35), rgba(3, 6, 13, .2));
}
.info-item {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 4px 6px;
}
.info-item + .info-item { border-left: 2px solid var(--blue); }
.info-item svg { width: 30px; height: 30px; fill: var(--blue-2); filter: drop-shadow(0 0 6px var(--blue-glow)); }
.info-item .label {
  font-family: var(--brush); color: var(--blue-2); font-size: 1.1rem;
  transform: rotate(-4deg); margin-top: 4px;
  text-shadow: 0 0 10px var(--blue-glow);
}
.info-item strong {
  font-family: var(--brush); font-weight: 400; font-size: clamp(1.15rem, 5.4vw, 2.1rem);
  line-height: 1.05; transform: rotate(-4deg); margin-top: 2px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .6);
}
.info-item strong::after {
  content: ""; display: block; height: 5px; margin: 4px auto 0; width: 90%;
  background: linear-gradient(90deg, transparent, var(--blue) 15%, var(--blue-2) 70%, transparent);
  border-radius: 50%; transform: skewX(-20deg);
}
.info-item small {
  margin-top: 6px; color: var(--muted); font-family: var(--cond);
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .78rem;
}

/* ---------- CONTAGEM ---------- */
.countdown { text-align: center; padding: 26px 0 6px; }
.countdown-title {
  font-family: var(--brush); color: var(--blue-2); font-size: 1.3rem;
  transform: rotate(-3deg); text-shadow: 0 0 12px var(--blue-glow);
}
.cd-grid { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
.cd-grid div {
  min-width: 70px; padding: 10px 6px 8px; border-radius: 10px;
  background: rgba(10, 25, 60, .55); border: 1px solid var(--line);
}
.cd-grid b { display: block; font-family: var(--cond); font-size: 2rem; line-height: 1; }
.cd-grid span {
  font-family: var(--cond); font-weight: 700; font-size: .75rem; color: var(--muted);
  letter-spacing: .12em; text-transform: uppercase;
}
.countdown.live .cd-grid { display: none; }

/* ---------- CTA ---------- */
.cta { text-align: center; padding: 26px 0 8px; }
.btn-whats {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; max-width: 460px; padding: 18px 22px;
  font-family: var(--cond); font-weight: 800; font-size: 1.35rem;
  letter-spacing: .04em; text-transform: uppercase; color: #fff;
  background: linear-gradient(100deg, #0f3fd8, var(--blue) 45%, var(--blue-2));
  border: 2px solid rgba(255, 255, 255, .85); border-radius: 14px;
  box-shadow: 0 0 0 4px rgba(30, 91, 255, .25), 0 10px 40px var(--blue-glow);
  cursor: pointer; transform: skewX(-6deg);
  animation: pulse 2.2s ease-in-out infinite;
  transition: transform .15s ease, filter .15s ease;
}
.btn-whats > * { transform: skewX(6deg); }
.btn-whats svg { width: 28px; height: 28px; fill: #fff; flex: none; }
.btn-whats:hover { filter: brightness(1.12); transform: skewX(-6deg) translateY(-2px); }
.btn-whats:active { transform: skewX(-6deg) translateY(1px); }
.btn-whats:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.btn-whats.small { width: auto; font-size: 1.05rem; padding: 12px 18px; animation: none; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(30, 91, 255, .25), 0 10px 40px var(--blue-glow); }
  50%      { box-shadow: 0 0 0 10px rgba(30, 91, 255, .08), 0 10px 55px rgba(40, 110, 255, .8); }
}
.cta-note { margin-top: 12px; color: var(--muted); font-size: .92rem; }
.btn-mapa {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 16px; padding: 12px 20px; border-radius: 12px;
  font-family: var(--cond); font-weight: 800; font-size: 1.05rem;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  color: var(--white); border: 2px solid var(--blue-2);
  background: rgba(10, 25, 60, .55); box-shadow: 0 0 16px rgba(30, 91, 255, .3);
  transition: background .15s ease;
}
.btn-mapa svg { width: 20px; height: 20px; fill: var(--blue-2); }
.btn-mapa:hover { background: rgba(30, 91, 255, .25); }

/* ---------- REGRAS ---------- */
.rules {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  margin-top: 28px; padding: 16px 6px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(8, 18, 42, .45);
}
.rule { display: flex; align-items: center; gap: 12px; padding: 4px 12px; }
.rule + .rule { border-left: 2px solid var(--blue); }
.rule p {
  font-family: var(--cond); font-weight: 800; text-transform: uppercase;
  font-size: clamp(.82rem, 3.4vw, 1.05rem); line-height: 1.15;
}
.rule em { font-style: normal; color: var(--blue-2); }
.badge-18 {
  flex: none; display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 50%;
  font-family: var(--cond); font-weight: 800; font-size: 1.4rem;
  border: 4px solid var(--blue); box-shadow: 0 0 14px var(--blue-glow), inset 0 0 0 2px #fff;
  background: #050a16;
}
.badge-18.big { width: 76px; height: 76px; font-size: 1.8rem; margin: 0 auto 10px; }
.badge-nodrugs { flex: none; width: 58px; height: 58px; }
.badge-nodrugs svg { width: 100%; height: 100%; }

/* ---------- VALORES ---------- */
.values { text-align: center; padding: 30px 0 10px; }
.values-row {
  display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap;
  font-family: var(--brush); font-size: clamp(1.05rem, 4.6vw, 1.4rem);
}
.values-row span { transform: rotate(-3deg); border-bottom: 4px solid var(--blue); padding-bottom: 2px; }
.values-row i { color: var(--blue-2); font-style: normal; }
.motto {
  margin-top: 18px; font-family: var(--brush); color: var(--blue-2);
  font-size: clamp(1.5rem, 7vw, 2.3rem); line-height: 1.1; transform: rotate(-3deg);
  text-shadow: 0 0 18px var(--blue-glow), 0 2px 0 #000;
}

/* ---------- FLYER ---------- */
.flyer-sec { display: flex; justify-content: center; padding: 34px 0 10px; }
.flyer-thumb {
  position: relative; width: 190px; border: 0; padding: 0; cursor: pointer;
  border-radius: 12px; overflow: hidden; background: none;
  box-shadow: 0 0 0 2px var(--blue), 0 12px 40px var(--blue-glow);
  transform: rotate(-3deg); transition: transform .2s ease;
}
.flyer-thumb:hover { transform: rotate(0) scale(1.03); }
.flyer-thumb img { display: block; width: 100%; height: auto; }
.flyer-thumb span {
  position: absolute; inset: auto 0 0 0; padding: 10px 6px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .9));
  font-family: var(--cond); font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; color: #fff; font-size: .9rem;
}

/* ---------- RODAPÉ ---------- */
.footer { text-align: center; padding: 30px 16px 40px; color: var(--muted); font-size: .85rem; }
.footer img { border-radius: 50%; margin-bottom: 8px; box-shadow: 0 0 0 2px var(--blue), 0 0 22px var(--blue-glow); }
.credito {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); text-decoration: none; font-size: .9rem;
  transition: color .15s ease, border-color .15s ease;
}
.credito b { color: var(--white); font-weight: 700; }
.credito svg { width: 18px; height: 18px; fill: currentColor; }
.credito:hover { color: var(--white); border-color: var(--blue-2); }

/* ---------- MODAIS ---------- */
.modal {
  margin: auto; max-width: min(420px, calc(100vw - 32px)); width: 100%;
  border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px;
  background: linear-gradient(180deg, #0a1630, #04070f); color: var(--white);
  text-align: center; box-shadow: 0 20px 70px rgba(0, 0, 0, .7), 0 0 40px rgba(30, 91, 255, .25);
}
.modal::backdrop { background: rgba(0, 0, 0, .75); backdrop-filter: blur(3px); }
.modal h2 { font-family: var(--brush); font-weight: 400; font-size: 1.6rem; line-height: 1.15; }
.modal p { margin-top: 10px; color: var(--muted); line-height: 1.45; }
.modal-actions { display: flex; justify-content: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.btn-ghost {
  padding: 12px 20px; border-radius: 12px; cursor: pointer;
  font-family: var(--cond); font-weight: 800; font-size: 1.05rem; text-transform: uppercase;
  color: var(--white); background: transparent; border: 2px solid var(--line);
}
.btn-ghost:hover { border-color: var(--blue-2); }
.flyer-modal { max-width: min(460px, calc(100vw - 24px)); padding: 12px; }
.flyer-modal img { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; border-radius: 10px; margin-bottom: 12px; }

/* ---------- RESPONSIVO ---------- */
@media (max-width: 420px) {
  .info-item small { font-size: .68rem; }
  .rule { flex-direction: column; text-align: center; gap: 8px; padding: 4px 8px; }
  .cd-grid div { min-width: 62px; }
  .btn-whats { font-size: 1.15rem; padding: 16px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
