/* Store-builder quiz. Pages define: --q-ground --q-surface --q-ink --q-soft --q-field --q-sel --accent --accent-ink --r --font */
html.quiz-open, html.quiz-open body { overflow: hidden; }
.quiz { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: var(--q-ground); color: var(--q-ink); font-family: var(--font); }
.quiz[hidden] { display: none; }
.qtop { flex: none; padding: calc(12px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) 12px max(20px, env(safe-area-inset-left, 0px)); }
.qtop-in { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.qrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qbrand { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.qmeta { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--q-soft); font-variant-numeric: tabular-nums; }
.qclose { width: 44px; height: 44px; border: 0; background: transparent; color: var(--q-ink); font-size: 28px; line-height: 1; cursor: pointer; border-radius: var(--r); }
.qprog { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.qprog i { height: 6px; background: var(--q-field); transition: background-color .3s ease; }
.qprog i.on { background: var(--accent); }
.qprog i.now { background: var(--q-soft); }
.qscroll { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.qbody { max-width: 560px; margin: 0 auto; padding: 8px max(20px, env(safe-area-inset-right, 0px)) 28px max(20px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 18px; }
.qfoot { flex: none; background: var(--q-ground); padding: 12px max(20px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); }
.qfoot-in { max-width: 560px; margin: 0 auto; display: flex; gap: 8px; }
.qback { flex: none; width: 56px; height: 56px; border: 0; background: var(--q-field); color: var(--q-ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r); }
.qnext { flex: 1; }
.qnext[disabled] { background: var(--q-field); color: var(--q-soft); cursor: not-allowed; box-shadow: none; }
.qback[hidden], .qfoot[hidden] { display: none; }
.qh { outline: none; margin: 0; font-weight: 700; font-size: clamp(26px, 6.4vw, 34px); line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
.qsub { margin: -8px 0 0; color: var(--q-soft); font-size: 16px; }
.opts { display: grid; gap: 8px; }
.opts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt { font: inherit; font-size: 16px; font-weight: 500; text-align: left; color: var(--q-ink); min-height: 60px; padding: 12px 14px; border: 0; background: var(--q-field); cursor: pointer; border-radius: var(--r); display: flex; flex-direction: column; justify-content: center; gap: 6px; transition: background-color .15s ease, color .15s ease, transform .12s ease; -webkit-tap-highlight-color: transparent; }
.opt:active { transform: scale(.98); }
.opt img { width: 56px; height: 56px; object-fit: cover; background: #fff; }
.opt[aria-pressed="true"] { background: var(--q-sel); color: var(--q-sel-ink); }
.opt small { font-size: 14px; font-weight: 400; opacity: .85; }
.sw { display: flex; height: 30px; }
.sw span:first-child { flex: 2; } .sw span:last-child { flex: 3; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; color: var(--q-soft); }
.field input { font: inherit; font-size: 18px; padding: 15px 14px; border: 2px solid var(--q-field); background: var(--q-surface); color: var(--q-ink); width: 100%; border-radius: var(--r); }
.field input:focus { outline: none; border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 16px; min-height: 44px; padding: 0 16px; border: 0; background: var(--q-field); color: var(--q-ink); cursor: pointer; border-radius: var(--r); }
.pv-wrap { display: flex; flex-direction: column; gap: 8px; }
.pv-label { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--q-soft); }
.pv-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: qpulse 1.4s ease-in-out infinite; }
@keyframes qpulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.pv { overflow: hidden; background: #fff; color: #10141C; border-radius: var(--r); }
.pv-bar { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; font-weight: 700; font-size: 16px; transition: background-color .3s ease; }
.pv-hero { padding: 14px; display: flex; flex-direction: column; gap: 2px; transition: background-color .3s ease; }
.pv-kick { font-size: 13px; }
.pv-head { font-weight: 700; font-size: 19px; line-height: 1.15; letter-spacing: -0.02em; }
.pv-grid { padding: 10px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pv-grid div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pv-grid i { display: block; aspect-ratio: 1; background: #F1F2F4; overflow: hidden; }
.pv-grid i img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-grid span { font-size: 13px; line-height: 1.2; min-height: 31px; }
.pop { animation: qpop .35s ease; }
@keyframes qpop { from { transform: scale(.97); opacity: .5; } to { transform: none; opacity: 1; } }
.build { display: flex; flex-direction: column; gap: 8px; }
.build-row { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--q-field); color: var(--q-soft); font-size: 17px; border-radius: var(--r); transition: background-color .3s ease, color .3s ease; }
.build-row.done { background: var(--q-sel); color: var(--q-sel-ink); }
.build-row b { flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--q-ground); }
.build-row.done b { background: var(--accent); color: var(--accent-ink); }
.offer { background: var(--q-surface); padding: 20px; display: flex; flex-direction: column; gap: 12px; border-radius: var(--r); }
.offer p { margin: 0; font-size: 16px; }
.offer .next { background: var(--q-ground); border-radius: var(--r); padding: 14px 16px; font-size: 15px; }
.offer .next ul { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.offer-edit { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; }
.q-link { font: inherit; font-size: 15px; font-weight: 600; background: none; border: 0; padding: 10px 4px; min-height: 44px; color: var(--q-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.qform { display: flex; flex-direction: column; gap: 14px; }
.qform .qsub { margin: 0; font-size: 14px; }
.qform .qsub a { color: inherit; }
.q-err { margin: 2px 0 0; color: #b42318; font-size: 14px; font-weight: 600; }
.q-fix { align-self: flex-start; font: inherit; font-size: 14px; font-weight: 600; background: none; border: 0; padding: 6px 0; color: var(--accent); text-decoration: underline; cursor: pointer; }
.offer-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 18px; }
.q-price { font-weight: 700; font-size: 40px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.quiz .fine { font-size: 14px; color: var(--q-soft); text-align: center; margin: 0; }
@media (prefers-reduced-motion: reduce) { .pop, .pv-dot { animation: none; } .opt, .build-row, .qprog i { transition: none; } }
