.quiz-document:not(.quiz-finished) { height: 100%; overflow: hidden; overscroll-behavior: none; }
.quiz-document:not(.quiz-finished) body { display: grid; grid-template-rows: minmax(0,1fr) auto; height: 100vh; height: 100dvh; overflow: hidden; overscroll-behavior: none; }
.quiz-document:not(.quiz-finished) body > .shop-analytics-choice:not([hidden]) { position: static; transform: none; inset: auto; grid-row: 2; justify-self: center; margin: 0 0 max(.35rem,env(safe-area-inset-bottom)); }
.quiz-document:not(.quiz-finished) body { background: radial-gradient(ellipse at 78% 0%,#f1dbc9,transparent 52%),linear-gradient(150deg,#f4e8df,#eee0da); }
.quiz-page { min-height: 0; grid-row: 1; display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.quiz-masthead { padding-top: env(safe-area-inset-top); background: #45233a; color: #fff5e6; border-bottom: 1px solid #c69c70; }
.quiz-masthead-inner { display: grid; grid-template-columns: 48px minmax(0,1fr) 48px; min-height: 58px; align-items: center; text-align: center; }
.quiz-masthead-inner > span { font: 800 clamp(1.4rem,4vw,1.95rem)/1 var(--serif); letter-spacing: .01em; }
.quiz-masthead-inner > img { justify-self: end; width: 44px; height: 42px; object-fit: contain; }
.quiz-back { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff1dc; background: #ffffff0c; border: 1px solid #e6c29775; }
.quiz-back:hover { background: #ffffff24; }
.quiz-stage { min-height: 0; display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); align-items: center; gap: clamp(.75rem,2vw,1.55rem); max-width: 1060px; padding-block: clamp(.55rem,2vh,1.25rem); }
.quiz-footer { padding-bottom: env(safe-area-inset-bottom); color: #f3e4d6; background: #45233a; border-top: 1px solid #c69c70; }
.quiz-footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .2rem .8rem; min-height: 41px; padding-block: .25rem; font-size: .73rem; }
.quiz-footer-inner a { text-decoration: underline; text-underline-offset: 3px; }
.quiz-steps { justify-self: center; align-self: center; display: flex; flex-direction: column; min-height: 0; max-height: 100%; width: 100%; background: #fffaf3; border: 1px solid #e3cabc; border-radius: 21px; padding: clamp(.78rem,2.4vw,1.75rem); box-shadow: 0 12px 28px #5c2c3e0d; }
.quiz-steps[hidden], .quiz-results[hidden] { display: none; }
.quiz-progress { display: grid; gap: .35rem; color: #74314a; font-weight: 710; font-size: .77rem; margin-bottom: .78rem; }
.quiz-progress progress { appearance: none; width: 100%; height: 5px; border: 0; border-radius: 8px; overflow: hidden; background: #efdfdf; color: #812d49; }
.quiz-progress progress::-webkit-progress-bar { background: #efdfdf; }
.quiz-progress progress::-webkit-progress-value { background: #812d49; border-radius: 8px; }
.quiz-progress progress::-moz-progress-bar { background: #812d49; border-radius: 8px; }
#quiz-form { min-height: 0; display: grid; grid-template-rows: auto auto minmax(0,1fr) auto; }
#quiz-question { padding: 0; margin: 0; font: 750 clamp(1.22rem,4.6vw,2rem)/1.14 var(--sans); letter-spacing: -.028em; }
#quiz-question:focus, #quiz-result-title:focus { outline: none; }
.quiz-instructions { color: #755d61; font-size: .78rem; line-height: 1.36; margin: .35rem 0 0; }
.quiz-options { grid-row: 3; display: grid; align-content: start; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .36rem; padding: .25rem .18rem; margin: .5rem -.18rem 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.quiz-option { display: flex; align-items: start; gap: .45rem; min-width: 0; min-height: 43px; border: 1px solid #e6d5ca; border-radius: 11px; padding: .52rem .46rem; background: #fffdf9; cursor: pointer; }
.quiz-option:hover, .quiz-option:has(input:checked) { border-color: #a9536d; background: #f9eef0; }
.quiz-option input { width: 15px; height: 15px; margin: .07rem 0 0; accent-color: #812d49; flex: none; }
.quiz-option span { display: grid; gap: .13rem; }
.quiz-option strong { color: #38242e; font-size: clamp(.74rem,2.9vw,.93rem); line-height: 1.22; }
.quiz-option small { color: #755d61; font-size: clamp(.63rem,2.55vw,.76rem); line-height: 1.2; }
.quiz-controls { grid-row: 4; display: flex; justify-content: space-between; align-items: center; gap: .65rem; margin-top: .65rem; }
.quiz-controls .pill { margin-left: auto; min-height: 41px; }
.quiz-controls .pill:disabled { opacity: .55; cursor: default; }
.quiz-previous { background: none; border: 0; color: #712640; font: inherit; font-size: .8rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; min-height: 36px; cursor: pointer; padding-inline: 0; }
.quiz-results { min-height: 0; display: grid; grid-template-rows: auto minmax(0,1fr); }
.quiz-results-head { display: flex; gap: .65rem; align-items: start; justify-content: space-between; padding-block: .18rem .25rem; }
.quiz-results-head h1 { font-size: clamp(1.6rem,5.9vw,3.3rem); margin: 0; line-height: 1.05; }
.quiz-results-head .bag-action { flex: none; }
.quiz-results-scroll { position: relative; min-height: 0; overflow: auto; overscroll-behavior: contain; padding-bottom: max(1rem,env(safe-area-inset-bottom)); }
@media (max-height: 540px) {
  .quiz-progress { margin-bottom: .43rem; }

  .quiz-steps { padding-block: .65rem; }
}

.quiz-document:not(.quiz-finished) .top,
.quiz-document:not(.quiz-finished) .footer { display: none; }
.quiz-document:not(.quiz-finished) .quiz-page { overflow: clip; }
.quiz-finished .quiz-page { display: block; }
.quiz-finished .quiz-masthead, .quiz-finished .quiz-stage, .quiz-finished .quiz-footer { display: none; }
.quiz-finished .quiz-results { display: block; }
.quiz-finished .quiz-results-head { display: block; padding-block: 1rem .65rem; }
.quiz-finished .quiz-results-scroll { overflow: visible; padding-bottom: 2rem; }
.quiz-banner { align-self: center; height: min(100%,490px); min-height: 0; display: flex; align-items: end; padding: clamp(.6rem,2.6vw,1.65rem); border-radius: 20px; background: linear-gradient(0deg,#351b2bf0,#351b2b2b 60%,transparent),url("/assets/campanha-marfim.webp") center / cover; color: #fff4e2; font: 800 clamp(1.55rem,4.9vw,3.5rem)/.99 var(--serif); }
@media (max-width: 760px) {
  .quiz-stage { grid-template-columns: minmax(0,1fr); grid-template-rows: auto minmax(0,1fr); gap: .5rem; }
  .quiz-banner { height: clamp(61px,14dvh,127px); align-self: auto; background-position: center 43%; border-radius: 14px; }
  .quiz-steps { align-self: center; }
}
.quiz-options[data-step="profile"] { grid-auto-rows: auto; gap: .52rem; }
.quiz-profile { position: relative; display: grid; gap: 0; align-content: start; padding: 0; overflow: hidden; text-align: center; }
.quiz-profile input { position: absolute; top: .45rem; left: .45rem; margin: 0; padding: 0; }
.quiz-profile img { display: block; width: 100%; height: clamp(88px,21dvh,170px); object-fit: cover; object-position: center 24%; background: #e7c8af; }
.quiz-profile strong { padding: .45rem .25rem; font-size: .86rem; }
.quiz-profile:has(input:checked) { box-shadow: inset 0 0 0 2px #a9536d; }
.quiz-skip { grid-column: 1/-1; align-items: center; justify-content: center; min-height: 40px; background: transparent; }
.quiz-skip input { margin-top: 0; }
@media (max-height: 600px) {
  .quiz-masthead-inner { min-height: 48px; }
  .quiz-footer-inner { min-height: 33px; }
  .quiz-stage { width: calc(100% - 20px); padding-block: .35rem; gap: .38rem; }
  .quiz-banner { height: 44px; }
  .quiz-steps { padding: .62rem; }
  .quiz-progress { margin-bottom: .48rem; }
  .quiz-options { gap: .28rem; margin-top: .33rem; }
  .quiz-option:not(.quiz-profile) { min-height: 39px; padding-block: .42rem; }
  .quiz-controls { margin-top: .42rem; }
  .quiz-profile img { height: clamp(75px,19dvh,105px); }
}
