/* Missions 1–3: one question per screen beside a tilted 3D illustration. Accent per mission. */
.quest { --qa: #e8792a; --qa2: #fcb434; --qa-ink: #8a3d0c; --qa-soft: #fff3e6; }
.q-rose { --qa: #e23d7f; --qa2: #f49424; --qa-ink: #9b1d4e; --qa-soft: #fdecf3; }
.q-plum { --qa: #8b2f6e; --qa2: #ec3c84; --qa-ink: #6a2152; --qa-soft: #f6ecf3; }
.quest.game { max-width: 1264px; }
.q-top { align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.q-mission { color: var(--muted); font-size: .92rem; }
.q-mission b { color: var(--ink); }
.q-stage { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .01em; }
.q-stage .icon { width: 16px; height: 16px; }
.q-stage.practice { background: #eef1f5; color: #3d4a57; border: 1px dashed #9aa8b5; }
.q-stage.scored { background: var(--qa-soft); color: var(--qa-ink); border: 1px solid color-mix(in srgb, var(--qa) 40%, white); }
.q-progress { list-style: none; display: flex; gap: 8px; padding: 0; margin: 4px 0 22px; flex-wrap: wrap; }
.q-progress li span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: .8rem; font-weight: 700; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.q-progress li span .icon { width: 17px; height: 17px; }
.q-progress li.now span { background: var(--qa); border-color: var(--qa); color: #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--qa) 22%, transparent); }
.q-progress li.done span { background: #eef1f5; color: #3d4a57; }
.q-progress li.good span { background: #e3f5ec; border-color: #7cc7a2; color: #18603f; }
.q-progress li.miss span { background: #fdeceb; border-color: #e7a19c; color: #9d2b2b; }
.q-play { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 26px; align-items: start; }
.q-panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: 0 18px 40px -28px #3b1d3a55; }
.q-kicker { font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--qa-ink); text-transform: uppercase; }
.q-scenario { margin: 12px 0 14px; color: #33404d; font-size: 1.02rem; }
.q-panel h1 { font-size: clamp(1.35rem, 2.1vw, 1.75rem); letter-spacing: -.03em; margin-bottom: 18px; }
.q-options { display: grid; gap: 10px; }
.q-option { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 12px 14px; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; font-size: .95rem; line-height: 1.4; transition: border-color .15s, background .15s, transform .15s, box-shadow .15s; }
.q-option:hover:not(:disabled) { border-color: var(--qa); transform: translateY(-1px); box-shadow: 0 6px 16px -10px var(--qa); }
.q-option > span:nth-child(2) { flex: 1; min-width: 0; }
.q-letter { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 9px; background: #f1f3f6; font-weight: 800; color: #3d4a57; }
.q-letter .icon { width: 18px; height: 18px; }
.q-option.on { border-color: var(--qa); background: var(--qa-soft); }
.q-option.on .q-letter { background: var(--qa); color: #fff; }
.q-option.right { border-color: #2f9a6a; background: #eaf7f0; }
.q-option.right .q-letter { background: #23784f; color: #fff; }
.q-option.wrong { border-color: #d9615a; background: #fdeeed; }
.q-option.wrong .q-letter { background: #b33a34; color: #fff; }
.q-option.dim { opacity: .6; }
.q-option:disabled { cursor: default; }
.q-option > .icon { color: currentColor; }
.q-group { border: 0; padding: 0; margin: 0 0 16px; }
.q-group legend { font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.q-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.q-chip { min-height: 44px; padding: 10px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-size: .9rem; }
.q-chip:hover:not(:disabled) { border-color: var(--qa); }
.q-chip.on { border-color: var(--qa); background: var(--qa-soft); font-weight: 700; }
.q-chip.right { box-shadow: inset 0 0 0 2px #2f9a6a; }
.q-chip:disabled { cursor: default; }
.q-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-top: 20px; }
.q-actions .button.primary { background: var(--qa-ink); }
.q-actions .button.primary:hover { background: color-mix(in srgb, var(--qa-ink) 80%, black); }
.q-actions .button.primary:disabled { background: #e2e8ed; color: #505d69; }
.q-hint { font-size: .85rem; color: var(--muted); }
.q-feedback { margin-top: 18px; padding: 16px 18px; border-radius: 12px; border: 1px solid; animation: q-pop .35s ease-out; }
.q-feedback.success { background: #eaf7f0; border-color: #8fd0ae; }
.q-feedback.risk { background: #fdf0ef; border-color: #eaa9a4; }
.q-feedback.neutral { background: #f2f4f7; border-color: #c9d2da; }
.q-fb-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.q-fb-head h3 { font-size: 1.05rem; }
.q-feedback.success .q-fb-head { color: #18603f; }
.q-feedback.risk .q-fb-head { color: #9d2b2b; }
.q-feedback p + p { margin-top: 8px; }
.q-expected { font-size: .93rem; }
.q-reminder, .q-source { display: flex; gap: 8px; align-items: center; font-size: .86rem; color: #4a5866; }
.q-real { display: flex; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px dashed #b9c4ce; font-size: .86rem; }
.q-real div { display: grid; gap: 3px; }
.q-real .icon { color: var(--qa-ink); }
.q-real .q-real-note { color: var(--muted); font-size: .8rem; margin-top: 2px; }
.results.quest > .q-real { margin-top: 24px; }
.q-sim { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-size: .82rem; color: var(--muted); }
.q-sim .icon { width: 17px; height: 17px; color: var(--qa-ink); }
.q-ready { position: relative; max-width: 720px; margin: 30px auto; text-align: center; padding: 48px 32px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -40px #3b1d3a88; overflow: hidden; }
.q-ready h1 { margin: 10px 0 14px; }
.q-ready p { color: #3d4a57; margin-bottom: 26px; }
.q-ready .button.primary { background: var(--qa-ink); }
.q-ready-art { position: relative; width: 120px; height: 120px; margin: 0 auto 18px; display: grid; place-items: center; }
.q-ready-art span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--qa); animation: q-ring 2.4s ease-out infinite; }
.q-ready-art span:nth-child(2) { animation-delay: .8s; } .q-ready-art span:nth-child(3) { animation-delay: 1.6s; }
.q-ready-art .icon { width: 54px; height: 54px; color: #fff; background: linear-gradient(135deg, var(--qa2), var(--qa)); border-radius: 50%; padding: 14px; box-sizing: content-box; box-shadow: 0 14px 30px -10px var(--qa); }
.q-result { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; margin: 22px 0 30px; }
.q-result h1 { margin: 10px 0 12px; }
.q-dot { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #eef1f5; flex: 0 0 auto; }
.q-dot.good { background: #e3f5ec; color: #18603f; } .q-dot.miss { background: #fdeceb; color: #9d2b2b; }
.q-dot .icon { width: 16px; height: 16px; }
/* Briefing dialog */
.q-brief h2 { margin: 6px 0 10px; }
.q-brief-steps { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 8px; counter-reset: s; }
.q-brief-steps li { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: #f6f7f9; counter-increment: s; }
.q-brief-steps li::before { content: counter(s); grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--qa, #b4234f); color: #fff; font-weight: 800; }
.q-brief-steps span { font-size: .86rem; color: var(--muted); }
.q-brief-note { display: flex; gap: 10px; font-size: .86rem; color: #3d4a57; margin-bottom: 14px; }
.q-brief-note.warn { color: #7a4a12; }

/* ---------- 3D stage ---------- */
.qs-stage { --rx: 0deg; --ry: 0deg; position: relative; height: clamp(360px, 44vw, 500px); border-radius: 22px; overflow: hidden; perspective: 1100px; isolation: isolate;
  background: radial-gradient(120% 80% at 70% 0%, #3a2350 0%, #221832 45%, #140f20 100%); box-shadow: inset 0 0 0 1px #ffffff12, 0 30px 60px -30px #1d0f2acc; }
.qs-glow { position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: -1; animation: qs-drift 14s ease-in-out infinite alternate; }
.qs-glow.g1 { background: var(--qa2); left: -10%; top: -18%; }
.qs-glow.g2 { background: var(--qa); right: -12%; bottom: -20%; animation-duration: 17s; }
.qs-glow.g3 { background: #8b2f6e; left: 30%; top: 40%; width: 30%; opacity: .35; animation-duration: 11s; }
.qs-floor { position: absolute; left: -20%; right: -20%; bottom: -38%; height: 70%; transform: rotateX(72deg); transform-origin: bottom; background-image: linear-gradient(#ffffff14 1px, transparent 1px), linear-gradient(90deg, #ffffff14 1px, transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(to top, #000 10%, transparent 85%); }
.qs-rig { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(calc(6deg + var(--ry))) rotateY(calc(-10deg + var(--rx))); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.qs-l { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; transform: translate(-50%, -50%) translate3d(var(--x), var(--y), var(--z)); }
.qs-float > * { animation: qs-float 6s ease-in-out infinite; }
.qs-bob { animation: qs-bob 5s ease-in-out infinite; }
.qs-bob.d2 { animation-delay: -2.5s; }
/* Devices */
.qs-phone { position: relative; width: 200px; height: 392px; padding: 9px; border-radius: 32px; background: linear-gradient(150deg, #3b3f4d, #11131a 60%); box-shadow: 0 40px 70px -25px #000c, inset 0 0 0 2px #4a4f60, inset 0 0 0 4px #0b0c11; }
.qs-scr { position: relative; height: 100%; border-radius: 25px; overflow: hidden; background: linear-gradient(170deg, #4a2b63, #20152f 70%); color: #fff; }
.qs-status { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px 4px; font-size: .62rem; font-weight: 700; opacity: .85; }
.qs-notch { width: 62px; height: 18px; border-radius: 10px; background: #07080c; }
.qs-push { margin: 18px 10px 0; padding: 12px; border-radius: 16px; background: #ffffffee; color: #1f232e; box-shadow: 0 10px 22px -12px #000a; display: grid; gap: 3px; font-size: .74rem; animation: qs-drop .7s cubic-bezier(.2,.9,.3,1.2) both; }
.qs-push strong { font-size: .9rem; }
.qs-push span { color: #4c5664; }
.qs-push .qs-where { font-weight: 700; color: #1f232e; }
.qs-app { display: flex; align-items: center; gap: 6px; font-size: .66rem; color: #6a7380; }
.qs-app .icon { width: 15px; height: 15px; color: #b4234f; }
.qs-app small { margin-left: auto; }
.qs-pbtn { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.qs-pbtn b { text-align: center; padding: 6px; border-radius: 9px; background: #eef0f4; font-size: .74rem; }
.qs-pbtn b.ok { background: #1f232e; color: #fff; }
.qs-push.mini { margin: 0; padding: 8px 10px; font-size: .64rem; }
.qs-push.mini strong { font-size: .76rem; }
.qs-push.mini .qs-pbtn, .qs-push.mini span:not(.qs-where) { display: none; }
.qs-stack { display: grid; gap: 8px; margin: 16px 10px; }
.qs-stack > div { animation: qs-drop .6s cubic-bezier(.2,.9,.3,1.2) both; animation-delay: calc(var(--i) * .45s + .2s); }
.qs-buzz { position: relative; animation: qs-buzz 3.2s ease-in-out infinite; }
.qs-ping { position: absolute; left: 50%; top: 22%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; border: 2px solid var(--qa2); opacity: 0; animation: q-ring 2.6s ease-out infinite; }
.qs-ping.p2 { animation-delay: .85s; } .qs-ping.p3 { animation-delay: 1.7s; }
.qs-laptop { width: 330px; filter: drop-shadow(0 30px 40px #000a); }
.qs-lid { padding: 9px; border-radius: 14px 14px 4px 4px; background: linear-gradient(160deg, #3b3f4d, #15171f); }
.qs-lscr { height: 196px; border-radius: 6px; overflow: hidden; background: #f4f6f9; color: #1f232e; position: relative; }
.qs-base { height: 14px; margin: 0 -26px; border-radius: 0 0 16px 16px; background: linear-gradient(#cfd3da, #8d939e); }
.qs-signin { height: 100%; display: grid; place-content: center; justify-items: center; gap: 7px; font-size: .74rem; }
.qs-logo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, #fcb434, #ec3c84); color: #fff; }
.qs-logo .icon { width: 18px; height: 18px; }
.qs-field { width: 170px; padding: 5px 8px; border: 1px solid #cdd4dc; border-radius: 6px; background: #fff; color: #4c5664; }
.qs-wait { display: flex; align-items: center; gap: 6px; color: #8b2f6e; font-weight: 700; }
.qs-wait i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: qs-spin 1s linear infinite; }
.qs-sheet { height: 100%; display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 22px; gap: 3px; padding: 26px 8px 8px; position: relative; }
.qs-sheet-bar { position: absolute; left: 0; right: 0; top: 0; padding: 4px 8px; font-size: .62rem; font-weight: 700; background: #217346; color: #fff; }
.qs-sheet i { background: #fff; border: 1px solid #e0e5ea; }
.qs-sheet i.hl { background: #e3f5ec; }
.qs-tag { position: absolute; right: 8px; bottom: 8px; display: inline-flex; gap: 4px; align-items: center; padding: 3px 8px; border-radius: 999px; background: #1f232e; color: #fff; font-size: .6rem; }
.qs-tag .icon { width: 12px; height: 12px; }
/* Windows and cards */
.qs-win { width: 380px; border-radius: 14px; overflow: hidden; background: #fff; color: #1f232e; box-shadow: 0 40px 70px -30px #000d, 0 0 0 1px #ffffff20; }
.qs-win.wide { width: 430px; }
.qs-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #eef0f4; font-size: .74rem; font-weight: 700; color: #4c5664; }
.qs-bar i { width: 9px; height: 9px; border-radius: 50%; background: #f26b5b; } .qs-bar i:nth-child(2) { background: #f8c04a; } .qs-bar i:nth-child(3) { background: #53c66f; }
.qs-bar span { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; }
.qs-bar .icon { width: 15px; height: 15px; }
.qs-body { padding: 16px; font-size: .78rem; }
.qs-mail h4 { margin: 12px 0 8px; font-size: .95rem; }
.qs-mail p { display: grid; gap: 6px; }
.qs-mail p i { display: block; height: 7px; border-radius: 4px; background: #e6e9ee; }
.qs-from, .qs-person, .qs-msg { display: flex; align-items: center; gap: 10px; }
.qs-from div, .qs-person div, .qs-msg div { display: grid; }
.qs-from span, .qs-person span, .qs-msg span { color: #6a7380; font-size: .72rem; }
.qs-from small { margin-left: auto; color: #8b95a1; }
.qs-avatar { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, #fcb434, #ec6c24); color: #fff; font-weight: 800; }
.qs-avatar.small { width: 32px; height: 32px; font-size: .7rem; flex: 0 0 auto; }
.qs-avatar.warn { background: linear-gradient(135deg, #f26b5b, #b4234f); }
.qs-cta { display: inline-block; margin-top: 12px; padding: 8px 14px; border-radius: 8px; background: #b4234f; color: #fff; font-weight: 700; animation: qs-glowpulse 2s ease-in-out infinite; }
.qs-timer { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: #9d2b2b; font-size: .72rem; }
.qs-timer .icon { width: 14px; height: 14px; }
.qs-to { display: flex; gap: 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid #eef0f4; }
.qs-to span { width: 64px; color: #8b95a1; }
.qs-to .wrong { color: #9d2b2b; background: #fdeceb; padding: 2px 6px; border-radius: 6px; }
.qs-to.faint { opacity: .8; }
.qs-attach { display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; border-radius: 8px; background: #f1f3f6; font-weight: 600; }
.qs-attach .icon, .qs-sent .icon { width: 15px; height: 15px; }
.qs-sent { display: flex; gap: 5px; align-items: center; margin-top: 10px; color: #6a7380; }
.qs-share { display: grid; gap: 8px; }
.qs-share .qs-lbl { font-weight: 700; font-size: .72rem; color: #4c5664; }
.qs-select { padding: 8px 10px; border: 1.5px dashed #c3cbd4; border-radius: 8px; color: #8b95a1; }
.qs-select.set { border-style: solid; border-color: #b4234f; color: #1f232e; font-weight: 700; background: #fdecf3; }
.qs-sendbtn { justify-self: end; padding: 7px 16px; border-radius: 8px; background: #e6e9ee; color: #8b95a1; font-weight: 700; }
.qs-sendbtn.ready { background: #b4234f; color: #fff; }
.qs-opts { display: grid; gap: 4px; }
.qs-opts span { display: flex; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 8px; background: #f6f7f9; }
.qs-opts .icon { width: 15px; height: 15px; color: #6a7380; }
.qs-file { display: grid; justify-items: center; gap: 4px; width: 160px; padding: 20px 12px; border-radius: 16px; background: #fff; color: #1f232e; box-shadow: 0 30px 50px -20px #000c; font-size: .72rem; text-align: center; }
.qs-file .icon { width: 42px; height: 42px; color: #217346; }
.qs-file span { color: #6a7380; }
.qs-members { display: grid; gap: 6px; }
.qs-closed { display: inline-flex; gap: 6px; align-items: center; justify-self: start; padding: 4px 10px; border-radius: 999px; background: #e3f5ec; color: #18603f; font-weight: 700; }
.qs-closed .icon { width: 14px; height: 14px; }
.qs-member { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 10px; }
.qs-member span:last-child { color: #6a7380; font-size: .7rem; }
.qs-member.ext { background: #fff3e6; box-shadow: inset 0 0 0 1.5px #f49424; animation: qs-glowpulse 2.4s ease-in-out infinite; }
.qs-member.ext strong { overflow-wrap: anywhere; }
.qs-activity { display: grid; gap: 6px; }
.qs-activity > div { display: grid; grid-template-columns: 18px auto 1fr; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: #f6f7f9; }
.qs-activity .icon { width: 16px; height: 16px; color: #23784f; }
.qs-activity .bad { background: #fdeceb; box-shadow: inset 0 0 0 1.5px #e7a19c; }
.qs-activity .bad .icon { color: #b33a34; }
.qs-activity span { color: #6a7380; font-size: .72rem; }
.qs-activity .qs-rule { display: flex; gap: 6px; color: #9d2b2b; background: #fff3e6; font-weight: 600; }
.qs-chat { display: grid; gap: 10px; }
.qs-msg.img { display: grid; justify-items: start; padding-left: 42px; }
.qs-news { position: relative; width: 230px; height: 130px; border-radius: 10px; overflow: hidden; background: linear-gradient(160deg, #7aa7c9, #2d4b6b); color: #fff; display: grid; align-content: end; padding: 10px; gap: 2px; }
.qs-news b { justify-self: start; padding: 1px 6px; background: #d72d2d; font-size: .6rem; letter-spacing: .08em; }
.qs-news strong { font-size: .8rem; line-height: 1.25; position: relative; }
.qs-typing { display: flex; gap: 4px; padding: 8px 12px; justify-self: start; border-radius: 12px; background: #f1f3f6; }
.qs-typing i { width: 6px; height: 6px; border-radius: 50%; background: #8b95a1; animation: qs-type 1.2s infinite; }
.qs-typing i:nth-child(2) { animation-delay: .2s; } .qs-typing i:nth-child(3) { animation-delay: .4s; }
.qs-hills { position: absolute; inset: auto 0 0; height: 60%; background: radial-gradient(60% 80% at 30% 100%, #3d6a4f 60%, transparent 61%), radial-gradient(70% 90% at 80% 100%, #2b5140 60%, transparent 61%); opacity: .8; }
.qs-detect { display: grid; justify-items: center; gap: 4px; text-align: center; }
.qs-thumb { position: relative; width: 120px; height: 72px; border-radius: 8px; overflow: hidden; background: linear-gradient(160deg, #f8c99a, #c96b8f); }
.qs-gauge { width: 190px; margin-top: 6px; }
.qs-gauge path { fill: none; stroke-width: 10; stroke-linecap: round; }
.qs-gauge .trk { stroke: #e6e9ee; }
.qs-gauge .val { stroke: url(#none) #ec6c24; stroke-dasharray: 157; stroke-dashoffset: 157; animation: qs-gauge 2.4s cubic-bezier(.2,.8,.2,1) .3s forwards; }
.qs-gauge .needle { stroke: #1f232e; stroke-width: 3; stroke-linecap: round; transform-origin: 60px 64px; transform: rotate(-90deg); animation: qs-needle 2.4s cubic-bezier(.2,.8,.2,1) .3s forwards; }
.qs-detect strong { font-size: 1.6rem; margin-top: -6px; }
.qs-detect small { color: #8b95a1; }
.qs-frame { position: relative; margin: 0; width: min(420px, 62vw); aspect-ratio: 4 / 3; padding: 12px; border-radius: 12px; background: linear-gradient(145deg, #fff, #e7e9ee); box-shadow: 0 40px 70px -30px #000d, inset 0 0 0 1px #fff; overflow: hidden; }
.qs-frame img, .qs-pending { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; display: block; }
.qs-pending { position: relative; display: grid; place-content: center; justify-items: center; gap: 4px; overflow: hidden; color: #fff; text-align: center; background: linear-gradient(170deg, #f7b267 0%, #e8697e 45%, #6d3a7c 100%); }
.qs-pending .qs-hills { opacity: .55; }
.qs-pending .icon { width: 36px; height: 36px; position: relative; }
.qs-pending strong, .qs-pending small { position: relative; text-shadow: 0 1px 6px #0007; }
.qs-sun { position: absolute; width: 70px; height: 70px; border-radius: 50%; background: #ffe6a3; top: 16%; right: 18%; opacity: .7; }
.qs-scan { position: absolute; left: 12px; right: 12px; top: 12px; height: 34%; background: linear-gradient(to bottom, transparent, #ffffff55 80%, #fff 100%); mix-blend-mode: overlay; animation: qs-scan 3.6s ease-in-out infinite; }
/* Chips, bubbles and small props */
.qs-l.chip { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 9px 14px; border-radius: 999px; background: #ffffffe6; color: #1f232e; font-size: .78rem; font-weight: 700; box-shadow: 0 18px 30px -16px #000c; }
.qs-l.chip .icon { width: 16px; height: 16px; color: #b4234f; }
.qs-l.chip.warn { background: #fff3e6; color: #8a3d0c; }
.qs-l.chip.ghost { background: #ffffff1f; color: #fff; box-shadow: inset 0 0 0 1px #ffffff40; }
.qs-l.chip.ghost .icon { color: #fff; }
.qs-count { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #d72d2d; color: #fff; }
.qs-faces { display: flex; }
.qs-faces i { display: grid; place-items: center; width: 26px; height: 26px; margin-left: -6px; border-radius: 50%; border: 2px solid #fff; background: linear-gradient(135deg, #fcb434, #ec3c84); color: #fff; font-size: .55rem; font-style: normal; }
.qs-l.bubble { width: 250px; padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: #fff; color: #1f232e; font-size: .8rem; font-weight: 600; line-height: 1.45; box-shadow: 0 20px 36px -18px #000c; }
.qs-code { display: grid; gap: 2px; justify-items: center; width: 190px; padding: 18px; border-radius: 18px; background: #ffffffee; color: #1f232e; font-size: .74rem; box-shadow: 0 30px 50px -24px #000c; }
.qs-code .icon { width: 26px; height: 26px; color: #b4234f; }
.qs-code strong { font-size: 1.7rem; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.qs-code small { color: #8b95a1; }
.qs-call { display: grid; justify-items: center; gap: 6px; padding-top: 46px; text-align: center; font-size: .74rem; }
.qs-call strong { font-size: 1.05rem; }
.qs-call > span:not(.qs-avatar) { opacity: .75; }
.qs-wave { display: flex; gap: 4px; align-items: center; height: 30px; margin-top: 14px; }
.qs-wave i { width: 4px; height: 10px; border-radius: 2px; background: #fcb434; animation: qs-eq 1s ease-in-out infinite; }
.qs-wave i:nth-child(2) { animation-delay: .15s; } .qs-wave i:nth-child(3) { animation-delay: .3s; } .qs-wave i:nth-child(4) { animation-delay: .45s; } .qs-wave i:nth-child(5) { animation-delay: .6s; }
.qs-callbtn { display: flex; gap: 46px; margin-top: 70px; }
.qs-callbtn b { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #d72d2d; }
.qs-callbtn b.ok { background: #2f9a6a; animation: qs-glowpulse 1.6s ease-in-out infinite; }
.qs-callbtn .icon { width: 20px; height: 20px; }
.qs-desk { position: relative; width: 300px; height: 150px; border-radius: 18px; background: linear-gradient(160deg, #c8a77f, #8b6a48); box-shadow: 0 30px 50px -20px #000c, inset 0 2px 0 #ffffff40; transform: rotateX(48deg); }
.qs-outline { position: absolute; left: 44px; top: 30px; display: grid; place-items: center; width: 56px; height: 92px; border: 2px dashed #ffffffb0; border-radius: 12px; color: #fff; }
.qs-mug { position: absolute; right: 54px; top: 34px; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle, #5b3a22 45%, #fff 47%); box-shadow: 0 6px 10px #0005; }
.qs-keys { position: absolute; right: 120px; bottom: 26px; color: #ffd98a; }
.qs-lens { position: absolute; left: 30px; top: 16px; color: #fff; animation: qs-search 4s ease-in-out infinite; }
.qs-lens .icon { width: 46px; height: 46px; }
.qs-q { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #b4234f; color: #fff; }
@keyframes qs-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes qs-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes qs-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(14%, 10%) scale(1.15); } }
@keyframes qs-buzz { 0%, 70%, 100% { rotate: 0deg; } 72%, 76%, 80% { rotate: -2.2deg; } 74%, 78%, 82% { rotate: 2.2deg; } }
@keyframes q-ring { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes qs-drop { from { transform: translateY(-24px) scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes qs-spin { to { rotate: 360deg; } }
@keyframes qs-glowpulse { 0%, 100% { box-shadow: 0 0 0 0 #ec3c8466; } 50% { box-shadow: 0 0 0 8px #ec3c8400; } }
@keyframes qs-type { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes qs-gauge { to { stroke-dashoffset: 31; } }
@keyframes qs-needle { to { transform: rotate(54deg); } }
@keyframes qs-scan { 0% { transform: translateY(-40%); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(210%); opacity: 0; } }
@keyframes qs-eq { 0%, 100% { height: 8px; } 50% { height: 26px; } }
@keyframes qs-search { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(150px, 40px); } 66% { transform: translate(90px, 70px); } }
@keyframes q-pop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 960px) {
  .q-play { grid-template-columns: 1fr; }
  .qs-stage { height: 340px; }
  .qs-rig { scale: .78; }
  .q-result { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .qs-stage { height: 270px; border-radius: 16px; }
  .qs-rig { scale: .56; }
  .q-panel { padding: 20px 16px; }
  .q-top .score-label { margin-left: auto; }
  .q-progress li span { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .qs-stage *, .q-ready-art span, .q-feedback { animation: none !important; }
  .qs-rig { transition: none; }
  .qs-gauge .val { stroke-dashoffset: 31; } .qs-gauge .needle { transform: rotate(54deg); }
}
/* Feedback headings take focus for screen readers after Confirm; no visible ring is needed there. */
.q-fb-head h3:focus { outline: none; }
