/* Quiz de crianças e famílias: visual "Noite de Natal" (vinho, dourado e cartões creme).
   Carrega depois de quiz.css e só altera a aparência; marcação e comportamento são os mesmos. */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&display=swap');
html:has(.quiz-festa),html body:has(.quiz-festa){background:#5a0d11!important;background-image:none!important}
#noel-quiz.quiz-festa{--festa-wine:#5a0d11;--festa-deep:#3d080b;--festa-gold:#f2b84b;--festa-gold-dark:#b9802a;--festa-cream:#fff4e2;--festa-soft:#f3d9c4;--festa-ink:#2b1d14;--festa-red:#c21f26;--festa-display:'Bricolage Grotesque','DM Sans',Arial,sans-serif;--quiz-green:#1d5a32;--quiz-red:#c21f26;
  padding-top:0;background:var(--festa-wine);color:var(--festa-cream);font-family:'DM Sans',Arial,Helvetica,sans-serif}
#noel-quiz.quiz-festa :is(button,input,textarea,a):focus-visible{outline-color:var(--festa-gold)}
#noel-quiz.quiz-festa :is(.quiz-card,.quiz-choice,.gift-product:has(input:checked),.quiz-extra) :is(button,input,textarea,a):focus-visible{outline-color:var(--festa-red)}
#noel-quiz.quiz-festa dialog{color:var(--festa-ink)}

/* Faixa de urgência (texto real calculado em quiz.js) */
#noel-quiz.quiz-festa .quiz-urgency{flex:0 0 auto;margin:0 -24px;padding:8px 16px;background:var(--festa-gold);color:#3a0709;font:700 12px/1.3 'DM Sans',Arial,sans-serif;text-align:center}

/* Topo */
#noel-quiz.quiz-festa .quiz-top{padding-top:10px}
#noel-quiz.quiz-festa [data-quiz-back]{min-height:34px;padding:6px 10px;border-radius:17px;background:#ffffff1f;color:var(--festa-cream);font:700 13px 'DM Sans',Arial,sans-serif}
#noel-quiz.quiz-festa [data-quiz-count]{color:#ffd88a}
#noel-quiz.quiz-festa .quiz-progress{height:8px;margin:8px 0 6px;background:#ffffff26}
#noel-quiz.quiz-festa [data-quiz-progress]{background:var(--festa-gold)}
#noel-quiz.quiz-festa .quiz-brand-row{display:none}

/* Títulos sobre o vinho */
#noel-quiz.quiz-festa h1{color:var(--festa-cream);font:800 30px/1.05 var(--festa-display);letter-spacing:-.5px}
#noel-quiz.quiz-festa h1 em{font-style:normal;color:var(--festa-gold)}
#noel-quiz.quiz-festa .quiz-main>section>p{color:var(--festa-soft)}
#noel-quiz.quiz-festa .quiz-status{color:#ffe1d6}
#noel-quiz.quiz-festa .quiz-status:not(:empty){margin-top:4px;padding:6px 10px;border-radius:10px;background:#ffffff1a}

/* Cartões creme */
#noel-quiz.quiz-festa .quiz-card{padding:16px;border-radius:18px;background:var(--festa-cream);color:var(--festa-ink)}
#noel-quiz.quiz-festa .quiz-field input,#noel-quiz.quiz-festa [name=message]{border-color:#d9c8b0;border-radius:12px}
#noel-quiz.quiz-festa .quiz-field input:focus,#noel-quiz.quiz-festa [name=message]:focus{border-color:var(--festa-red)}
#noel-quiz.quiz-festa .quiz-card .quiz-small,#noel-quiz.quiz-festa .quiz-card small{color:#6b5a48}
#noel-quiz.quiz-festa .quiz-summary>div:last-child{color:var(--festa-red)}
#noel-quiz.quiz-festa .quiz-summary>div:last-child dd{font-family:var(--festa-display);font-weight:800}
#noel-quiz.quiz-festa [data-change-message]{border-radius:12px;color:var(--festa-red);font-weight:700}
#noel-quiz.quiz-festa .quiz-review-change{background:#fff}

/* Opções (tema e forma de pagamento) */
#noel-quiz.quiz-festa .quiz-choice{border:1px solid transparent;border-radius:14px;background:var(--festa-cream);color:var(--festa-ink)}
#noel-quiz.quiz-festa .quiz-choice:has(input:checked){border-color:var(--festa-gold);background:#fff;box-shadow:0 0 0 3px var(--festa-gold)}
#noel-quiz.quiz-festa .quiz-choice input{accent-color:var(--festa-red)}
#noel-quiz.quiz-festa .quiz-choice small{color:#6b5a48}
/* Seis modelos + "Escrever do meu jeito": opções mais compactas para caber sem rolagem. */
#noel-quiz.quiz-festa [data-quiz-screen=theme] .quiz-choice{padding:10px 14px}
#noel-quiz.quiz-festa [data-quiz-screen=theme] .quiz-options{gap:8px}
#noel-quiz.quiz-festa .quiz-extra{background:var(--festa-cream);color:var(--festa-ink);border-radius:18px}
#noel-quiz.quiz-festa .quiz-extra>b{color:var(--festa-red);font-family:var(--festa-display)}
#noel-quiz.quiz-festa .quiz-extra input{accent-color:var(--festa-red)}

/* Exemplo real na primeira etapa */

/* Presentes: todos visíveis, o escolhido em destaque no topo */
#noel-quiz.quiz-festa .gift-product-navigation{display:none}
#noel-quiz.quiz-festa .gift-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#noel-quiz.quiz-festa .gift-products>[data-product-card][hidden]{display:flex!important}
#noel-quiz.quiz-festa .gift-product{position:relative;border:1px solid #ffffff38;border-radius:18px;background:#ffffff14;color:var(--festa-cream)}
#noel-quiz.quiz-festa .gift-product-select input{z-index:1}
#noel-quiz.quiz-festa .gift-selected-label{display:none!important}
#noel-quiz.quiz-festa .gift-product:not(:has(input:checked)) :is(.gift-product-image,.gift-product-example,.gift-product-duration){display:none}
#noel-quiz.quiz-festa .gift-product:not(:has(input:checked)) .gift-product-select{padding:12px}
#noel-quiz.quiz-festa .gift-product:not(:has(input:checked)) .gift-product-select input{top:12px;right:10px;accent-color:var(--festa-gold)}
#noel-quiz.quiz-festa .gift-product:not(:has(input:checked)) .gift-product-select h2{padding-right:26px;margin:0 0 4px;color:var(--festa-cream);font:800 16px/1.15 var(--festa-display)}
#noel-quiz.quiz-festa .gift-product:not(:has(input:checked)) .gift-product-select h2 label::after{content:"";position:absolute;inset:0}
#noel-quiz.quiz-festa .gift-product:not(:has(input:checked)) .gift-product-select>p{margin:0 0 6px;color:var(--festa-soft);font-size:12px;line-height:1.3}
#noel-quiz.quiz-festa .gift-product:not(:has(input:checked)) .gift-offer-badge{margin:0 0 6px;padding:2px 7px;font-size:11px}
#noel-quiz.quiz-festa .gift-product:not(:has(input:checked)) .gift-product-price{color:var(--festa-cream);font:800 19px var(--festa-display)}
#noel-quiz.quiz-festa .gift-product:not(:has(input:checked)) .gift-product-price del{color:var(--festa-soft)}
#noel-quiz.quiz-festa .gift-product:has(input:checked){grid-column:1/-1;order:-1;margin:3px;border-color:transparent;background:var(--festa-cream);color:var(--festa-ink);outline:3px solid var(--festa-gold);outline-offset:3px}
#noel-quiz.quiz-festa .gift-product:has(input:checked) .gift-product-select{padding:16px}
#noel-quiz.quiz-festa .gift-product:has(input:checked) .gift-product-select input{accent-color:var(--festa-red)}
#noel-quiz.quiz-festa .gift-product:has(input:checked) .gift-product-select h2{color:var(--festa-ink);font:800 24px/1.05 var(--festa-display)}
#noel-quiz.quiz-festa .gift-product:has(input:checked) .gift-product-select>p{color:#4d3d2e}
#noel-quiz.quiz-festa .gift-product:has(input:checked) .gift-offer-badge{position:absolute;top:-12px;right:14px;margin:0;padding:4px 11px;border:0;border-radius:13px;background:var(--festa-red);color:#fff;font:800 11px/1.3 'DM Sans',Arial,sans-serif;letter-spacing:.05em;text-transform:uppercase}
#noel-quiz.quiz-festa .gift-product:has(input:checked) .gift-product-price{color:var(--festa-red);font:800 30px var(--festa-display)}
#noel-quiz.quiz-festa .gift-product:has(input:checked) button.gift-product-image{height:120px;border-radius:12px}
/* Verde pinheiro: contrasta com o creme do cartão, com o vermelho do preço e não compete com o botão dourado. */
#noel-quiz.quiz-festa .gift-product-example{background:#1d5a32;border-color:#1d5a32;color:#fff4e2;font-weight:700}

/* Rodapé: total + botão dourado */
#noel-quiz.quiz-festa .quiz-footer{padding-top:10px;background:transparent}
#noel-quiz.quiz-festa .quiz-footer-total{display:flex;flex-direction:column;align-items:flex-start;flex:none;line-height:1.1;text-align:left}
#noel-quiz.quiz-festa .quiz-footer-total small{color:var(--festa-soft);font:400 11px 'DM Sans',Arial,sans-serif}
#noel-quiz.quiz-festa .quiz-footer-total b{color:var(--festa-cream);font:800 21px var(--festa-display);white-space:nowrap}
#noel-quiz.quiz-festa [data-quiz-next]{flex:1;min-height:54px;margin-bottom:4px;border-radius:16px;background:var(--festa-gold);color:#3a0709;font:800 17px/1.2 var(--festa-display);box-shadow:0 4px 0 var(--festa-gold-dark)}
#noel-quiz.quiz-festa [data-quiz-next]:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px 0 var(--festa-gold-dark)}
#noel-quiz.quiz-festa .quiz-footer-note{color:var(--festa-soft)}
#noel-quiz.quiz-festa .quiz-privacy :is(a,button){color:var(--festa-soft)}

@container quiz (max-height:680px){
  #noel-quiz.quiz-festa h1{font-size:25px}
  #noel-quiz.quiz-festa .quiz-card{padding:12px}
  #noel-quiz.quiz-festa .gift-product:not(:has(input:checked)) .gift-product-select>p{display:none}
  #noel-quiz.quiz-festa .gift-product:has(input:checked) .gift-product-select{padding:12px 14px}
  #noel-quiz.quiz-festa .gift-product:has(input:checked) .gift-product-price{font-size:25px}
  #noel-quiz.quiz-festa [data-quiz-next]{min-height:48px}
}
@container quiz (max-height:600px){
  #noel-quiz.quiz-festa .quiz-urgency{display:none}
  #noel-quiz.quiz-festa h1{font-size:23px}
  #noel-quiz.quiz-festa .quiz-card{padding:10px 12px}
  #noel-quiz.quiz-festa .quiz-footer-note{flex-direction:row;flex-wrap:wrap;justify-content:center;column-gap:6px}
}
@container quiz (max-height:480px){
  #noel-quiz.quiz-festa h1{font-size:21px}
  #noel-quiz.quiz-festa .quiz-footer-total small{display:none}
}

/* Prova social e selo de desconto (cadastrados em /admin/loja) */
#noel-quiz.quiz-festa .quiz-proof{display:flex;align-items:center;gap:10px;margin:0;color:var(--festa-cream);font-size:13px;line-height:1.35}
#noel-quiz.quiz-festa .quiz-proof strong{color:var(--festa-cream)}
#noel-quiz.quiz-festa .quiz-proof-faces{display:flex;flex:none}
#noel-quiz.quiz-festa .quiz-proof-faces i{width:26px;height:26px;border:2px solid var(--festa-wine);border-radius:50%;background:var(--festa-gold)}
#noel-quiz.quiz-festa .quiz-proof-faces i+i{margin-left:-8px;background:#e98a6a}
#noel-quiz.quiz-festa .quiz-proof-faces i:last-child{background:#9fc3a6}
#noel-quiz.quiz-festa .quiz-testimonial{flex:none;margin:0;padding:12px 14px;border-radius:14px;background:var(--festa-deep);color:var(--festa-cream);font-size:13px;line-height:1.45}
#noel-quiz.quiz-festa .quiz-stars{color:var(--festa-gold);letter-spacing:2px;font-size:14px}
#noel-quiz.quiz-festa .quiz-stars span{color:#ffffff40}
#noel-quiz.quiz-festa .quiz-testimonial blockquote{margin:4px 0 0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
#noel-quiz.quiz-festa .quiz-testimonial figcaption{margin-top:3px;color:var(--festa-soft);font-size:12px}
#noel-quiz.quiz-festa .quiz-testimonial-product{display:none}
#noel-quiz.quiz-festa .gift-discount-badge{display:inline-block;margin-left:8px;padding:3px 8px;border-radius:8px;background:#e3f1e4;color:#1d5a32;font:800 13px/1.2 'DM Sans',Arial,sans-serif;vertical-align:middle}
#noel-quiz.quiz-festa .gift-product:not(:has(input:checked)) .gift-discount-badge{display:none}
/* Altura: o exemplo e a imagem do presente encolhem antes de criar rolagem */
#noel-quiz.quiz-festa .gift-product:has(input:checked) button.gift-product-image{height:clamp(72px,calc(100cqh - 754px),120px)}
@container quiz (min-height:890px){
  #noel-quiz.quiz-festa .quiz-testimonial-product{display:block}
  #noel-quiz.quiz-festa .quiz-testimonial-review{display:none}
}
@container quiz (max-height:760px){
  #noel-quiz.quiz-festa .quiz-proof{display:none}
}
@container quiz (max-height:720px){
  #noel-quiz.quiz-festa .gift-product:has(input:checked) button.gift-product-image{display:none}
}
@container quiz (max-height:680px){
  #noel-quiz.quiz-festa .quiz-testimonial-review{display:none}
}

/* Presentes não escolhidos: linhas legíveis (rádio, nome e etiqueta à esquerda, preço à direita) */
#noel-quiz.quiz-festa .gift-products{grid-template-columns:minmax(0,1fr)}
#noel-quiz.quiz-festa .gift-product:not(:has(input:checked)) .gift-product-select{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;align-items:center;padding:10px 12px 10px 44px}
#noel-quiz.quiz-festa .gift-product:not(:has(input:checked)) .gift-product-select input{left:14px;right:auto;top:50%;transform:translateY(-50%)}
#noel-quiz.quiz-festa .gift-product:not(:has(input:checked)) .gift-product-select h2{grid-column:1;margin:0;padding:0;overflow-wrap:normal;word-break:normal}
#noel-quiz.quiz-festa .gift-product:not(:has(input:checked)) .gift-product-select :is(h2,h2 label){color:var(--festa-cream)}
#noel-quiz.quiz-festa .gift-product:not(:has(input:checked)) .gift-product-select>p{display:none}
#noel-quiz.quiz-festa .gift-product:not(:has(input:checked)) .gift-offer-badge{grid-column:1;justify-self:start;max-width:100%;margin:4px 0 0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#noel-quiz.quiz-festa .gift-product:not(:has(input:checked)) .gift-product-price{grid-column:2;grid-row:1/span 2;margin:0;text-align:right;line-height:1.1;white-space:nowrap}
#noel-quiz.quiz-festa .gift-product:not(:has(input:checked)) .gift-product-price del{display:block;margin:0;font-size:12px}
#noel-quiz.quiz-festa .gift-product:has(input:checked) .gift-product-select :is(h2,h2 label){color:var(--festa-ink)}
#noel-quiz.quiz-festa .gift-product:has(input:checked) .gift-offer-badge{max-width:calc(100% - 28px);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}

/* Telas baixas: modelos de mensagem, presentes e adicionais cabem sem rolagem */
@container quiz (max-height:680px){
  #noel-quiz.quiz-festa [data-quiz-screen=theme] .quiz-choice{padding:9px 12px}
  #noel-quiz.quiz-festa [data-quiz-screen=theme] .quiz-choice small{display:none}
  #noel-quiz.quiz-festa [data-quiz-screen=theme] .quiz-options{gap:6px}
  #noel-quiz.quiz-festa .gift-product:has(input:checked) .gift-product-select h2{font-size:21px}
  #noel-quiz.quiz-festa .gift-product:has(input:checked) .gift-product-select>p:not(.gift-product-duration){display:none}
  #noel-quiz.quiz-festa .gift-product:has(input:checked) .gift-product-example{min-height:36px;margin:4px 0 8px;padding-block:6px}
}
@container quiz (max-height:600px){
  #noel-quiz.quiz-festa [data-quiz-screen=theme]>h1+p{display:none}
  #noel-quiz.quiz-festa .gift-product:not(:has(input:checked)) .gift-offer-badge{display:none}
  #noel-quiz.quiz-festa .gift-product:not(:has(input:checked)) .gift-product-price del{display:none}
  #noel-quiz.quiz-festa .gift-product:not(:has(input:checked)) .gift-product-select{padding-block:8px}
  #noel-quiz.quiz-festa .quiz-extra:has(.quiz-extra-image:not([hidden]))>p[data-extra-description]{display:none}
}
@container quiz (max-height:680px){
  #noel-quiz.quiz-festa .quiz-extra:has(.quiz-extra-image:not([hidden]))>p[data-extra-description]{display:none}
  #noel-quiz.quiz-festa .quiz-extra-pdf-name{font-size:12px}
}
@container quiz (max-height:600px){
  #noel-quiz.quiz-festa [data-summary-info]{display:none}
  #noel-quiz.quiz-festa .quiz-summary>div{padding:3px 0}
}

/* Etapa 3: o Papai Noel "fala" a mensagem num balão; o texto é editável e as respostas do cliente ficam destacadas */
#noel-quiz.quiz-festa .quiz-speaker{display:flex;align-items:center;gap:12px}
#noel-quiz.quiz-festa .quiz-speaker img{width:64px;height:64px;flex:none;border:3px solid var(--festa-gold);border-radius:50%;object-fit:cover;object-position:center 18%;background:#2d0507}
#noel-quiz.quiz-festa .quiz-speaker h1{font-size:24px}
#noel-quiz.quiz-festa .quiz-speaker p{margin:4px 0 0;color:var(--festa-soft);font-size:13px}
#noel-quiz.quiz-festa .quiz-bubble{position:relative;margin-top:6px;border-radius:20px 20px 20px 6px;background:#fff;box-shadow:0 14px 30px -18px #000a}
#noel-quiz.quiz-festa .quiz-bubble::before{content:"";position:absolute;top:-8px;left:24px;width:18px;height:18px;background:#fff;transform:rotate(45deg)}
#noel-quiz.quiz-festa .quiz-bubble:has(textarea:focus){box-shadow:0 0 0 3px var(--festa-gold),0 14px 30px -18px #000a}
#noel-quiz.quiz-festa .quiz-bubble [data-message-editor]{gap:10px}
#noel-quiz.quiz-festa .quiz-bubble-text{display:grid}
#noel-quiz.quiz-festa .quiz-bubble-text>*{grid-area:1/1;box-sizing:border-box;width:100%;margin:0;padding:2px 0;border:0;font:400 16px/1.55 'DM Sans',Arial,sans-serif;letter-spacing:normal;white-space:pre-wrap;overflow-wrap:break-word;word-break:normal}
#noel-quiz.quiz-festa .quiz-bubble-marks{color:transparent;pointer-events:none}
#noel-quiz.quiz-festa .quiz-bubble-marks mark{border-radius:4px;background:#fde7b0;box-shadow:0 0 0 2px #fde7b0;color:transparent}
#noel-quiz.quiz-festa .quiz-bubble [name=message]{position:relative;min-height:200px;border-radius:0;background:transparent;color:var(--festa-ink);box-shadow:none;outline:none}
#noel-quiz.quiz-festa .quiz-bubble-tools{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding-top:10px;border-top:1px solid #f0e6d6}
#noel-quiz.quiz-festa .quiz-bubble .quiz-character-count{padding:4px 10px;border-radius:12px;background:#eef4ee;color:#1d5a32;font:700 12px 'DM Sans',Arial,sans-serif}
#noel-quiz.quiz-festa .quiz-bubble .quiz-character-count.over-limit{background:#fde3df;color:#a52624}

/* Etapa 6: carrossel com vizinhos — o Papai Noel escolhido grande no centro e os vizinhos esmaecidos
   aparecendo nas bordas da tela (o primeiro e o último também se mostram, dando a volta). */
/* A etapa ocupa toda a altura livre e o Papai Noel cresce até onde couber, sem rolagem. */
#noel-quiz.quiz-festa .quiz-main>[data-quiz-screen=character]{flex:1 1 auto;margin-block:0}
#noel-quiz.quiz-festa [data-quiz-screen=character]>h1{font-size:24px;line-height:1.15}
#noel-quiz.quiz-festa [data-character-section] .select-characters{column-gap:10px}
#noel-quiz.quiz-festa [data-quiz-screen=character] .quiz-card{flex:1 1 0;min-height:0;padding:0;background:none;color:var(--festa-cream)}
#noel-quiz.quiz-festa [data-character-section]{flex:1 1 0;min-height:0;display:flex;flex-direction:column}
#noel-quiz.quiz-festa [data-character-section] .select-characters{--santa-h:clamp(150px,calc(100cqh - 40px),560px);--santa-w:min(66cqw,calc(var(--santa-h) * .6));height:100%}
#noel-quiz.quiz-festa [data-character-section] .gift-choice-heading{position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#noel-quiz.quiz-festa [data-character-section] .gift-carousel-hint{display:none}
#noel-quiz.quiz-festa [data-character-section] .gift-option-carousel{flex:1 1 0;min-height:200px;display:block;max-width:none;margin:0 -18px;padding:0;overflow:clip;touch-action:pan-y;container:santa / size}
#noel-quiz.quiz-festa [data-character-section] :is([data-carousel-prev],[data-carousel-next]){display:none!important}
#noel-quiz.quiz-festa [data-character-section] .select-characters{display:grid!important;grid-template-columns:minmax(0,1fr) var(--santa-w) minmax(0,1fr);align-items:start;column-gap:12px;margin:0}
#noel-quiz.quiz-festa [data-character-section] .gift-character-option{grid-row:1;min-width:0;position:relative}
#noel-quiz.quiz-festa [data-character-section] .gift-character-option .choice-card{display:block;padding:0;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible}
#noel-quiz.quiz-festa [data-character-section] .gift-character-option:has(input:checked){grid-column:2;display:block}
#noel-quiz.quiz-festa [data-character-section] .gift-character-option:has(input:checked) img{display:block;width:100%;height:var(--santa-h);aspect-ratio:auto;object-fit:cover;object-position:center 22%;border-radius:18px;box-shadow:0 0 0 3px var(--festa-gold),0 0 22px #f2be5240,0 12px 26px #0000008c}
#noel-quiz.quiz-festa [data-character-section] .gift-character-caption{display:block;min-height:0;margin:0 -40px;padding:10px 0 0;background:none;text-align:center}
#noel-quiz.quiz-festa [data-character-section] .gift-character-caption input[type=radio]{position:absolute;width:1px;height:1px;margin:0;opacity:0;pointer-events:none}
#noel-quiz.quiz-festa [data-character-section] .gift-character-option:has(input:checked) .letter-character-name{display:block;color:var(--festa-cream);font:800 18px/1.2 'DM Sans',Arial,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#noel-quiz.quiz-festa [data-character-section] .gift-character-option:has(input:checked) .gift-character-example{position:absolute;z-index:1;right:10px;top:calc(var(--santa-h) - 46px);display:inline-flex;align-items:center;gap:5px;width:auto;min-height:34px;margin:0;padding:6px 13px 6px 10px;border:0;border-radius:17px;background:#1d5a32;color:#fff;font:800 13px/1 'DM Sans',Arial,sans-serif;box-shadow:0 4px 12px #0006;animation:none}
#noel-quiz.quiz-festa [data-character-section] .gift-character-option:has(input:checked) .gift-character-example svg{width:15px;height:15px}
/* vizinhos: anterior à esquerda e próximo à direita; tocar neles escolhe */
#noel-quiz.quiz-festa [data-character-section] .gift-character-option:has(+ .gift-character-option input:checked),
#noel-quiz.quiz-festa [data-character-section] .gift-character-option:has(input:checked) + .gift-character-option,
#noel-quiz.quiz-festa [data-character-section] .select-characters:has(> .gift-character-option:first-child input:checked) > .gift-character-option:last-child:not(:nth-child(2)),
#noel-quiz.quiz-festa [data-character-section] .select-characters:has(> .gift-character-option:last-child input:checked) > .gift-character-option:first-child:not(:nth-last-child(2)){display:block!important;width:var(--santa-w);margin-top:calc(var(--santa-h) * .07);opacity:.42;cursor:pointer}
#noel-quiz.quiz-festa [data-character-section] .gift-character-option:has(+ .gift-character-option input:checked),
#noel-quiz.quiz-festa [data-character-section] .select-characters:has(> .gift-character-option:first-child input:checked) > .gift-character-option:last-child:not(:nth-child(2)){grid-column:1;justify-self:end}
#noel-quiz.quiz-festa [data-character-section] .gift-character-option:has(input:checked) + .gift-character-option,
#noel-quiz.quiz-festa [data-character-section] .select-characters:has(> .gift-character-option:last-child input:checked) > .gift-character-option:first-child:not(:nth-last-child(2)){grid-column:3;justify-self:start}
#noel-quiz.quiz-festa [data-character-section] .gift-character-option:not(:has(input:checked)) img{display:block;width:100%;height:calc(var(--santa-h) * .86);aspect-ratio:auto;object-fit:cover;object-position:center 22%;border-radius:16px}
#noel-quiz.quiz-festa [data-character-section] .gift-character-option:not(:has(input:checked)) :is(.gift-character-caption,.gift-character-example){display:none}
#noel-quiz.quiz-festa .quiz-dots{flex:none;display:flex;justify-content:center;gap:6px;margin-top:8px}
#noel-quiz.quiz-festa .quiz-dots i{width:7px;height:7px;border-radius:4px;background:#ffffff3d;transition:width .2s,background-color .2s}
#noel-quiz.quiz-festa .quiz-dots i.on{width:20px;background:var(--festa-gold)}

/* Etapa 1: capa do vídeo de demonstração. Só a imagem (~20 KB) carrega com a tela; o vídeo é baixado ao tocar.
   A largura acompanha a altura disponível para o botão principal continuar visível sem rolar. */
#noel-quiz.quiz-festa .quiz-hero{position:relative;flex:none;display:block;width:min(100%,calc((100cqh - 380px)*16/9));aspect-ratio:16/9;margin:0 auto;padding:0;border:0;border-radius:16px;overflow:hidden;background:#2d0507;box-shadow:0 10px 24px #00000059,0 0 0 1px #f2be5259;cursor:pointer;contain:paint}
#noel-quiz.quiz-festa .quiz-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:62% 30%}
#noel-quiz.quiz-festa .quiz-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#0000 45%,#1e0305d9 100%)}
#noel-quiz.quiz-festa .quiz-hero-play{position:absolute;z-index:1;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:56px;height:56px;margin:0;border-radius:50%;background:var(--festa-red);box-shadow:0 8px 18px #0006}
#noel-quiz.quiz-festa .quiz-hero-play:before{content:"";position:absolute;inset:-7px;border-radius:50%;border:6px solid #ffffff40;animation:quiz-hero-pulse 1.8s ease-in-out infinite}
#noel-quiz.quiz-festa .quiz-hero-play svg{width:24px;height:24px;margin-left:3px;fill:#fff}
#noel-quiz.quiz-festa .quiz-hero-caption{position:absolute;z-index:1;left:10px;right:10px;bottom:9px;display:flex;align-items:center;gap:8px;color:#fff8ea;font:700 13px/1.2 'DM Sans',Arial,sans-serif;text-align:left;text-shadow:0 1px 2px #0009}
#noel-quiz.quiz-festa .quiz-hero-caption i{flex:none;display:inline-flex;align-items:center;gap:4px;padding:4px 8px;border-radius:999px;background:var(--festa-gold);color:#3b0709;font:800 11px 'DM Sans',Arial,sans-serif;text-shadow:none}
#noel-quiz.quiz-festa .quiz-hero-caption i svg{width:13px;height:13px;fill:currentColor}
#noel-quiz.quiz-festa .quiz-hero:focus-visible{outline:3px solid var(--festa-gold);outline-offset:3px}
@keyframes quiz-hero-pulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.18);opacity:.35}}
@media (prefers-reduced-motion:reduce){#noel-quiz.quiz-festa .quiz-hero-play:before{animation:none}}
#noel-quiz.quiz-festa .quiz-card-row{flex-direction:row;align-items:flex-end;gap:10px}
#noel-quiz.quiz-festa .quiz-card-row .quiz-field{flex:1;min-width:0}
#noel-quiz.quiz-festa .quiz-card-row .quiz-field:last-child{flex:0 0 100px}
@container quiz (max-height:700px){
  #noel-quiz.quiz-festa [data-quiz-screen=name]>p:not(.quiz-proof){display:none}
  #noel-quiz.quiz-festa .quiz-hero-play{width:48px;height:48px}
  #noel-quiz.quiz-festa .quiz-hero-play svg{width:20px;height:20px}
}
@container quiz (max-height:600px){
  #noel-quiz.quiz-festa [data-quiz-screen=name] h1{font-size:21px}
  #noel-quiz.quiz-festa .quiz-hero-caption{font-size:12px}
}
@container quiz (min-width:500px){
  #noel-quiz.quiz-festa .quiz-hero{width:min(100%,calc((100cqh - 460px)*16/9))}
  #noel-quiz.quiz-festa .quiz-card-row .quiz-field:last-child{flex-basis:120px}
}
@container quiz (max-height:440px){
  #noel-quiz.quiz-festa .quiz-hero{display:none}
}
#noel-quiz.quiz-festa .quiz-scroll-hint{background:var(--festa-deep);color:var(--festa-cream);border:1.5px solid var(--festa-gold);font-family:'DM Sans',Arial,sans-serif;font-weight:800}
/* Pix no quiz de crianças: botões amarelos como os demais */
#noel-quiz.quiz-festa :is([data-pix-submit],[data-copy-pix],[data-card-submit]){border-radius:16px;background:var(--festa-gold);color:#3a0709;font:800 16px/1.2 var(--festa-display);box-shadow:0 4px 0 var(--festa-gold-dark)}
#noel-quiz.quiz-festa :is([data-pix-submit],[data-copy-pix],[data-card-submit]):active:not(:disabled){transform:translateY(3px);box-shadow:0 1px 0 var(--festa-gold-dark)}
#noel-quiz.quiz-festa .quiz-followup{background:#1d5a32;color:#fff4e2;font-family:'DM Sans',Arial,sans-serif;box-shadow:inset 0 0 0 1px #f2b84b80}
#noel-quiz.quiz-festa .quiz-followup b{color:#ffd88a}
#noel-quiz.quiz-festa .quiz-followup.is-off{background:#3d080b;color:#f3d9c4;box-shadow:inset 0 0 0 1px #ffffff26}
/* Com o aviso de desconto no topo, a capa do vídeo da etapa 1 encolhe um pouco para nada precisar de rolagem */
#noel-quiz.quiz-festa:has(.quiz-followup) .quiz-hero{width:min(100%,calc((100cqh - 440px)*16/9))}
@container quiz (min-width:500px){#noel-quiz.quiz-festa:has(.quiz-followup) .quiz-hero{width:min(100%,calc((100cqh - 520px)*16/9))}}
@container quiz (max-height:640px){#noel-quiz.quiz-festa .quiz-followup{padding:5px 10px;font-size:11.5px}}
/* Capa pequena (pouca altura, por exemplo com o aviso de desconto): fica só o selo "COM SOM" e o play, sem texto
   por cima do play; a frase sobre a capa nunca quebra em várias linhas. */
#noel-quiz.quiz-festa .quiz-hero{container:hero / inline-size}
#noel-quiz.quiz-festa .quiz-hero-text{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
@container hero (max-width:330px){
  #noel-quiz.quiz-festa .quiz-hero-text{display:none}
  #noel-quiz.quiz-festa .quiz-hero-caption{right:auto;bottom:7px;left:8px}
  #noel-quiz.quiz-festa .quiz-hero-play{top:44%;width:42px;height:42px}
  #noel-quiz.quiz-festa .quiz-hero-play svg{width:18px;height:18px}
}
@container hero (max-width:400px){#noel-quiz.quiz-festa .quiz-hero-caption{left:8px;right:8px;gap:5px;font-size:11.5px}#noel-quiz.quiz-festa .quiz-hero-caption i{padding:3px 7px;font-size:10.5px}}
/* Etapa do Papai Noel: "Ver exemplo" centralizado na parte de baixo da foto ativa, sempre numa linha;
   numa foto estreita vira só o ícone da lupa (o nome do botão continua para leitores de tela). */
#noel-quiz.quiz-festa [data-character-section] .gift-character-option:has(input:checked){container:santa-card / inline-size}
#noel-quiz.quiz-festa [data-character-section] .gift-character-option:has(input:checked) .gift-character-example{left:50%;right:auto;top:calc(var(--santa-h) - 44px);transform:translateX(-50%);max-width:calc(100% - 16px);white-space:nowrap;justify-content:center;padding:6px 12px 6px 10px}
@container santa-card (max-width:180px){#noel-quiz.quiz-festa [data-character-section] .gift-character-option:has(input:checked) .gift-character-example{min-height:30px;padding:4px 10px 4px 8px;gap:4px;font-size:12px}#noel-quiz.quiz-festa [data-character-section] .gift-character-option:has(input:checked) .gift-character-example svg{width:13px;height:13px}}
@container santa-card (max-width:118px){
  #noel-quiz.quiz-festa [data-character-section] .gift-character-option:has(input:checked) .gift-character-example{width:36px;min-width:36px;height:36px;min-height:36px;padding:0;gap:0;border-radius:50%;font-size:0}
  #noel-quiz.quiz-festa [data-character-section] .gift-character-option:has(input:checked) .gift-character-example svg{width:18px;height:18px}
}
