/* Shared look for the free public quizzes (/color, /skin). Uses booth.css as the base. */
.quiz-progress { height: 3px; background: #222; margin: 0 0 18px; }
.quiz-progress i { display: block; height: 100%; background: #fff; transition: width .25s; }
.qnum { color: var(--muted); letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; margin: 0 0 6px; }
.qtext { font-family: var(--head); font-weight: 400; font-size: 1.55rem; line-height: 1.25; margin: 0 0 16px; }
.answers { display: grid; gap: 10px; }
.answers button { min-height: 56px; text-align: left; padding: 12px 16px; border: 1px solid var(--line); background: var(--panel); color: #fff; font: inherit; font-size: 1.02rem; cursor: pointer; }
.answers button:active, .answers button.on { border-color: #fff; background: #fff; color: #000; }
.answers.multi button.on::after { content: " ✓"; }
.qnav { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
.check { list-style: none; padding: 0; margin: 0 0 18px; border: 1px solid var(--line); }
.check li { padding: 12px 14px; border-top: 1px solid var(--line); line-height: 1.4; }
.check li:first-child { border-top: 0; }
.check li::before { content: "✓"; margin-right: 10px; color: var(--violet); }
.poster { width: 100%; display: block; border: 1px solid #222; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.msg { padding: 14px; border: 1px solid var(--line); margin: 14px 0; line-height: 1.45; }
.spin { text-align: center; padding: 60px 0; font-family: var(--head); font-size: 1.3rem; }
.soon { text-align: center; padding: 40px 0; }

/* Futuristic question transitions */
.qcard { position: relative; }
.qcard.enter { animation: qIn .5s cubic-bezier(.2,.8,.2,1) both; }
.qcard.enter-back { animation: qInBack .45s cubic-bezier(.2,.8,.2,1) both; }
.qcard.enter .answers button, .qcard.enter-back .answers button { animation: aIn .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.12s + var(--k) * .06s); }
.qcard.leave { animation: qOut .42s ease-in forwards; pointer-events: none; }
.qcard.leave::after { content: ""; position: absolute; left: -8px; right: -8px; height: 2px; top: 0; background: #fff; box-shadow: 0 0 14px 3px rgba(242,214,255,.9); animation: sweep .42s ease-in forwards; }
.answers button.picked { box-shadow: 0 0 0 1px #fff, 0 0 22px rgba(242,214,255,.75); }
@keyframes qIn { from { opacity: 0; transform: translateY(26px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes qInBack { from { opacity: 0; transform: translateY(-26px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes aIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes qOut { 0% { opacity: 1; filter: none; transform: none; } 100% { opacity: 0; filter: blur(10px); transform: translateY(-34px) scale(.98); clip-path: inset(0 0 100% 0); } }
@keyframes sweep { from { top: 100%; opacity: 1; } to { top: 0; opacity: .2; } }
.quiz-progress i { box-shadow: 0 0 10px rgba(242,214,255,.8); }

/* Photo scan */
.scan-stage { position: relative; width: 100%; aspect-ratio: 4 / 5; background: #050505; overflow: hidden; border: 1px solid #222; }
.scan-stage canvas { width: 100%; height: 100%; display: block; }
.scan-status { text-align: center; margin: 14px 0 0; letter-spacing: .18em; text-transform: uppercase; font-size: .85rem; color: var(--violet); min-height: 1.4em; }
.scan-status::after { content: "▌"; animation: blink .8s steps(1) infinite; margin-left: 4px; }
.scan-result { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 12px 0 0; }
.scan-result i { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; display: inline-block; }
@keyframes blink { 50% { opacity: 0; } }
.langs { display: flex; gap: 6px; justify-content: center; margin: 0 0 14px; }
.langs button { min-width: 48px; min-height: 36px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; letter-spacing: .1em; cursor: pointer; }
.langs button.on { border-color: #fff; color: #fff; }
.meta { display: inline-block; border: 1px solid var(--violet); color: var(--violet); padding: 6px 12px; letter-spacing: .08em; font-size: .85rem; margin: 0 0 16px; }
.scan-status:empty::after { content: none; }
