/* Cor Púrpura – Halloween 2026 · usa as cores e letras do tema */
:root {
  --cphw-night: #2a0f33;
  --cphw-plum: #5a1f6b;
  --cphw-lime: #c5d52b;
  --cphw-orange: #e8742a;
  --cphw-cream: #fbf8f4;
  --cphw-ink: #2a1530;
  --cphw-muted: #6a5870;
  --cphw-display: Fraunces, Georgia, serif;
  --cphw-body: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Barra no topo */
.cphw-tb-slot .cphw-tb { color: inherit; text-decoration: none; }
.cphw-tb-slot .cphw-tb b { color: var(--cphw-lime); font-weight: 700; }
.cphw-tb-slot .cphw-tb u { text-decoration: none; color: #ffb27a; font-weight: 700; margin-left: .35em; white-space: nowrap; }
.cphw-tb-slot a.cphw-tb:hover u { text-decoration: underline; }

/* Menu */
#menu .cphw-nav { color: var(--cphw-orange); font-weight: 700; }

/* Banner */
.cphw-banner { background: var(--cphw-night); color: #fff; padding-block: 40px; position: relative; overflow: hidden; }
.cphw-banner::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(197,213,43,.16), transparent 65%); pointer-events: none; }
.cphw-banner-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: center; position: relative; }
.cphw-banner-txt { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cphw-kicker { font-family: var(--cphw-body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: #ffb27a; }
.cphw-banner h2 { color: #fff !important; font-family: var(--cphw-display); font-weight: 500; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.05; margin: 0; color: #fff; text-wrap: balance; }
.cphw-banner h2 em { font-style: italic; color: var(--cphw-lime) !important; }
.cphw-banner p { font-family: var(--cphw-body); font-size: 1.02rem; line-height: 1.6; margin: 0; color: rgba(255,255,255,.85); max-width: 56ch; }
.cphw-banner p b { color: #fff; }
.cphw-banner-img { display: block; }
.cphw-banner-img img { width: 100%; height: auto; display: block; border-radius: 18px; box-shadow: 0 18px 40px rgba(0,0,0,.35); transform: rotate(1.5deg); }

.cphw-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.cphw-btn, .cphw-btn-ghost { text-decoration: none !important; display: inline-flex; align-items: center; justify-content: center; font-family: var(--cphw-body); font-weight: 700; font-size: .95rem; border-radius: 999px; padding: 12px 22px; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.cphw-btn { background: var(--cphw-lime); color: var(--cphw-night); }
.cphw-btn:hover { transform: translateY(-1px); background: #d4e23e; color: var(--cphw-night); }
.cphw-btn-ghost { border: 1.5px solid rgba(255,255,255,.6); color: #fff; }
.cphw-btn-ghost:hover { border-color: #fff; color: #fff; }
.cphw-btn:focus-visible, .cphw-btn-ghost:focus-visible, .cphw-pop-x:focus-visible { outline: 3px solid var(--cphw-orange); outline-offset: 2px; }

.cphw-winners { display: flex; flex-wrap: wrap; gap: 10px; }
.cphw-win { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 10px 16px; display: flex; flex-direction: column; min-width: 160px; }
.cphw-win span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #ffb27a; font-weight: 700; }
.cphw-win b { font-family: var(--cphw-display); font-size: 1.3rem; font-weight: 500; color: #fff; }
.cphw-win-pending { font-style: italic; }

@media (max-width: 820px) {
  .cphw-banner { padding-block: 28px; }
  .cphw-banner-grid { grid-template-columns: 1fr; gap: 22px; }
  .cphw-banner-img { max-width: 360px; }
  .cphw-banner-img img { transform: none; }
}

/* Selos */
.cphw-card { position: relative; }
.cphw-card .cphw-hidden-tag { display: none !important; }
.svc .tag.cphw-badge { background: var(--cphw-night) !important; color: var(--cphw-lime) !important; font-weight: 700; }

/* FAQ e vouchers */
.cphw-faq summary::before { content: "🎃 "; }
.cphw-vline { font-size: .95rem; margin: 0 0 14px; }
.cphw-vline a { font-weight: 700; }

/* Pop-up */
.cphw-pop { position: fixed; inset: 0; z-index: 99990; display: flex; align-items: flex-end; justify-content: flex-start; padding: 20px; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); background: rgba(20, 6, 26, .25); }
.cphw-pop[hidden] { display: none !important; }
.cphw-pop-card { position: relative; width: 340px; max-width: 100%; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 50px rgba(30,6,40,.35); animation: cphw-in .35s ease both; font-family: var(--cphw-body); }
.cphw-pop-top { background: var(--cphw-night); color: #fff; padding: 18px 48px 16px 20px; }
.cphw-pop-top small { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: #ffb27a; font-weight: 700; }
.cphw-pop-title { font-family: var(--cphw-display); font-size: 1.3rem; line-height: 1.15; margin: 6px 0 0; color: #fff !important; }
.cphw-pop-bd { padding: 16px 20px 20px; color: var(--cphw-ink); font-size: .92rem; line-height: 1.5; display: flex; flex-direction: column; gap: 12px; }
.cphw-pop-bd p { margin: 0; }
.cphw-pop-bd .cphw-btn { background: var(--cphw-plum); color: #fff; }
.cphw-pop-x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 1rem; cursor: pointer; }
.cphw-pop-x:hover { background: rgba(255,255,255,.25); }
@keyframes cphw-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cphw-pop-card { animation: none; } .cphw-btn { transition: none; } }

.cphw-code { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 2px dashed var(--cphw-plum); border-radius: 12px; padding: 10px 14px; }
.cphw-code span { font-family: var(--cphw-display); font-weight: 600; font-size: 1.35rem; letter-spacing: .08em; color: var(--cphw-plum); }
.cphw-code small { font-size: .72rem; font-weight: 700; color: var(--cphw-orange); text-transform: uppercase; letter-spacing: .06em; }

/* Página /halloween */
.cphw-page { font-family: var(--cphw-body); color: var(--cphw-ink); max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; padding-block: 8px 40px; }
.cphw-page [data-hw-show] { display: none; }
.cphw-on .cphw-page [data-hw-show] { display: revert; }
.cphw-on .cphw-page .cphw-btns > [data-hw-show] { display: inline-flex; }
.cphw-page section { display: flex; flex-direction: column; gap: 12px; }
.cphw-on .cphw-page section[data-hw-show] { display: flex; }
.cphw-page h2 { font-family: var(--cphw-display); font-weight: 500; font-size: 1.7rem; margin: 0; color: var(--cphw-plum) !important; }
.cphw-page p { margin: 0; line-height: 1.65; max-width: 65ch; }
.cphw-hero { position: static !important; background: var(--cphw-night); color: #fff; border-radius: 22px; padding: 36px 32px; display: flex; flex-direction: column; gap: 14px; }
.cphw-page .cphw-hero h1 { font-family: var(--cphw-display); font-weight: 500; font-size: clamp(2.3rem, 6vw, 3.6rem); line-height: 1; margin: 0; color: #fff !important; }
.cphw-landing article > h1:first-child, article:has(> .entry .cphw-page) > h1 { display: none; }
.cphw-page .cphw-hero h1 em { color: var(--cphw-lime) !important; }
.cphw-page .cphw-hero p { color: rgba(255,255,255,.85) !important; }
.cphw-page .cphw-hero .cphw-win b { color: #fff !important; }
.cphw-prizes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cphw-prize { border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.cphw-prize b { font-family: var(--cphw-display); font-weight: 600; font-size: 1.5rem; }
.cphw-doce { background: #efe3f4; color: var(--cphw-plum); }
.cphw-trav { background: #f4f8d6; color: #4a5210; }
.cphw-steps { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 8px; line-height: 1.55; }
.cphw-steps li::marker { color: var(--cphw-orange); font-weight: 700; }
.cphw-rules { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; color: var(--cphw-muted); font-size: .95rem; line-height: 1.55; }
.cphw-small { font-size: .9rem; color: var(--cphw-muted); }
.cphw-code-box { background: #fff; border: 1px solid #eadff0; border-radius: 18px; padding: 24px; }
.cphw-code-box .cphw-code { max-width: 360px; }
.cphw-contact .cphw-btn, .cphw-code-box .cphw-btn { background: var(--cphw-plum); color: #fff; }
@media (max-width: 560px) {
  .cphw-hero { padding: 26px 20px; border-radius: 16px; }
  .cphw-prizes { grid-template-columns: 1fr; }
}

/* Painel de pré-visualização (só administradores) */
.cphw-admin { position: fixed; left: 12px; bottom: 12px; z-index: 99999; background: #1d1d1f; color: #fff; font: 12px/1.4 system-ui, sans-serif; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; max-width: calc(100vw - 24px); box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.cphw-admin-links { display: flex; flex-wrap: wrap; gap: 6px; }
.cphw-admin a { color: #c5d52b; text-decoration: none; border: 1px solid #444; border-radius: 6px; padding: 1px 6px; }
.cphw-admin a.on { background: #c5d52b; color: #1d1d1f; }
.cphw-admin-on .cphw-pop { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
