/* Quizzes: /quizzes hub and /quizzes/{slug} player. Ink #0B1533, blue #1463FF, mint #6FF0BC / #0E9F6E,
   amber #c77a00, violet #7c3aed. Red is used only for wrong answers. */
.qz-hub, .qz-main { --ink: #0b1533; --blue: #1463ff; --mint: #6ff0bc; --green: #0e9f6e; --amber: #c77a00; --violet: #7c3aed; --wrong: #d43c3c; }

.qz-tone--blue { --t: #1463ff; --tb: #e8f0ff; }
.qz-tone--violet { --t: #7c3aed; --tb: #f1ebff; }
.qz-tone--amber { --t: #a85f00; --tb: #fff4df; }
.qz-tone--teal { --t: #0e7f8c; --tb: #e3f6f8; }
.qz-tone--green { --t: #0a7a55; --tb: #e7f7f0; }
.qz-tone--mint { --t: #0e9f6e; --tb: #dcfbef; }
.qz-tone--slate { --t: #334155; --tb: #eef1f6; }

/* ---------- Buttons ---------- */
.qz-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 12px 20px; border-radius: 14px; border: 0; font: inherit; font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform .12s ease, box-shadow .15s ease, background .15s ease; }
.qz-btn:hover { transform: translateY(-1px); }
.qz-btn:active { transform: translateY(1px); }
.qz-btn:disabled { opacity: .45; cursor: default; transform: none; }
.qz-btn--go { background: #6ff0bc; color: #0b1533; box-shadow: 0 8px 22px rgba(111, 240, 188, .28); }
.qz-btn--go:hover { box-shadow: 0 10px 28px rgba(111, 240, 188, .42); }
.qz-btn--ghost { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .22); }
.qz-btn--ghost:hover { background: rgba(255, 255, 255, .16); }
.qz-btn--dark { background: #0b1533; color: #fff; }
.qz-btn--dark:hover { box-shadow: 0 10px 24px rgba(11, 21, 51, .25); }
.qz-btn--ghost-dark { background: #fff; color: #0b1533; border: 1px solid var(--line); }
.qz-btn--ghost-dark:hover { border-color: #1463ff; color: #1463ff; }
.qz-link { display: inline-flex; align-items: center; gap: 7px; color: #c9d3ea; font-weight: 700; font-size: 15px; text-decoration: none; }
.qz-link:hover { color: #fff; text-decoration: underline; }
.qz-link--dark { color: #1463ff; }
.qz-link--dark:hover { color: #0b1533; }

/* ---------- Hero ---------- */
.qz-hero { position: relative; overflow: hidden; }
.qz-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(111, 240, 188, .22), transparent 65%); pointer-events: none; }
.qz-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; position: relative; z-index: 1; }
.qz-back { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #c9d3ea; font-size: 14px; font-weight: 700; text-decoration: none; margin-bottom: 12px; }
.qz-back:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.qz-eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.qz-eyebrow-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(111, 240, 188, .14); color: #6ff0bc; }
.qz-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.qz-meta span { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); color: #c9d3ea; font-size: 14px; }
.qz-meta b { color: #6ff0bc; font-family: var(--display); }
.qz-start { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 18px; position: relative; z-index: 1; }
.qz-start[hidden] { display: none; }
.qz-switch { display: inline-flex; align-items: center; gap: 9px; color: #c9d3ea; font-weight: 700; font-size: 15px; cursor: pointer; }
.qz-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qz-switch-ui { width: 42px; height: 24px; border-radius: 999px; background: rgba(255, 255, 255, .18); position: relative; transition: background .15s ease; }
.qz-switch-ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s ease; }
.qz-switch input:checked + .qz-switch-ui { background: #0e9f6e; }
.qz-switch input:checked + .qz-switch-ui::after { transform: translateX(18px); }
.qz-switch input:focus-visible + .qz-switch-ui { outline: 3px solid #6ff0bc; outline-offset: 2px; }
.qz.is-playing .qz-start { display: none; }

/* ---------- Hub: daily + stats ---------- */
.qz-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; margin-top: 18px; }
.qz-daily { position: relative; overflow: hidden; background: #fff; border-radius: 26px; padding: 24px 26px 22px; box-shadow: 0 24px 50px rgba(11, 21, 51, .12); border: 1px solid var(--line); }
.qz-daily::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, #1463ff, #7c3aed 40%, #c77a00 70%, #6ff0bc); }
.qz-daily-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.qz-daily-spark { width: 9px; height: 9px; border-radius: 50%; background: #0e9f6e; box-shadow: 0 0 0 4px rgba(14, 159, 110, .18); animation: qz-pulse 1.6s infinite; }
.qz-daily-done { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: #dcfbef; color: #0a7a55; letter-spacing: .02em; text-transform: none; }
.qz-daily-done[hidden] { display: none; }
.qz-daily-title { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.4vw, 46px); line-height: 1; letter-spacing: -0.025em; margin: 12px 0 8px; color: #0b1533; }
.qz-daily p { margin: 0; font-size: 17px; line-height: 1.5; color: #24304f; }
.qz-daily-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.qz-daily-cat { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--tb); color: var(--t); font-size: 14px; font-weight: 800; }
.qz-daily .qz-daily-note { margin-top: 12px; font-size: 14px; color: var(--muted); }
@keyframes qz-pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(14, 159, 110, .18); } 50% { box-shadow: 0 0 0 8px rgba(14, 159, 110, .04); } }

.qz-stats { background-color: #0b1533; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 22px 22px; color: #fff; border-radius: 26px; padding: 22px 24px; }
.qz-stats h2 { margin: 0 0 12px; font-family: var(--display); font-size: 22px; font-weight: 800; color: #fff; }
.qz-stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.qz-stats-grid div { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
.qz-stats-grid strong { font-family: var(--display); font-size: clamp(26px, 2.6vw, 34px); line-height: 1; color: #6ff0bc; }
.qz-stats-grid span { font-size: 13px; color: #c9d3ea; }
.qz-best { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.qz-best[hidden] { display: none; }
.qz-best li { display: grid; grid-template-columns: minmax(0, 1fr) 70px 42px; align-items: center; gap: 10px; font-size: 14.5px; }
.qz-best a { color: #fff; text-decoration: none; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qz-best a:hover { text-decoration: underline; }
.qz-best b { text-align: right; color: #6ff0bc; }
.qz-best-bar { height: 7px; border-radius: 9px; background: linear-gradient(90deg, #6ff0bc var(--p), rgba(255, 255, 255, .12) var(--p)); }
.qz-stats-note { margin: 12px 0 0; font-size: 13.5px; color: #c9d3ea; }

/* ---------- Quiz cards and chips ---------- */
.qz-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.qz-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; border-radius: 20px; background: #fff; border: 1px solid var(--line); color: var(--text); text-decoration: none; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.qz-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--t); opacity: .85; }
.qz-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(16, 24, 40, .1); border-color: var(--t); }
.qz-card strong { font-family: var(--display); font-size: 19px; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
.qz-card > span:not(.qz-card-ico):not(.qz-mine) { font-size: 14.5px; line-height: 1.5; color: #3e4a6b; }
.qz-card-ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--tb); color: var(--t); }
.qz-cards--feat .qz-card { padding: 20px 20px 22px; background: linear-gradient(160deg, var(--tb), #fff 55%); }
.qz-mine { position: absolute; top: 14px; right: 14px; padding: 3px 9px; border-radius: 999px; background: #0b1533; color: #6ff0bc; font-size: 12px; font-weight: 800; }
.qz-cat-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.qz-cat-head h2 { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.015em; line-height: 1.1; margin: 0 0 4px; color: var(--text); }
.qz-cat-head .pg-sub { margin: 0; }
.qz-cat-ico { flex: none; width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: var(--tb); color: var(--t); }
.qz-cat-n { display: inline-block; vertical-align: middle; margin-left: 4px; padding: 2px 10px; border-radius: 999px; background: #eef1f6; color: var(--muted); font-family: Inter, sans-serif; font-size: 14px; font-weight: 800; letter-spacing: 0; }
.qz-chips-label { margin: 16px 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.qz-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.qz-chips a { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--text); font-size: 14.5px; font-weight: 700; text-decoration: none; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.qz-chips a:hover { border-color: var(--t); background: var(--tb); color: var(--t); }
.qz-chips a.is-played { border-color: var(--t); }
.qz-chips .qz-mine { position: static; padding: 1px 7px; font-size: 11px; }
.qz-how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.qz-how-grid div { padding: 18px 20px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.qz-how-grid strong { display: block; font-size: 17px; margin-bottom: 6px; }
.qz-how-grid p { margin: 0; font-size: 15px; line-height: 1.6; color: #3e4a6b; }

/* ---------- Player ---------- */
.qz-stage { margin-top: 18px; scroll-margin-top: 16px; }
.qz-stage[hidden], .qz-static[hidden] { display: none; }
.qz-hud { position: sticky; top: 0; z-index: 3; background: rgba(246, 248, 251, .94); backdrop-filter: blur(6px); padding: 10px 2px 12px; }
.qz-hud-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 8px; }
.qz-qn { font-weight: 800; font-size: 15px; color: var(--text); }
.qz-pts { margin-left: auto; padding: 5px 12px; border-radius: 999px; background: #0b1533; color: #fff; font-size: 14px; font-weight: 700; }
.qz-pts b { color: #6ff0bc; font-family: var(--display); font-size: 16px; }
.qz-progress { height: 10px; border-radius: 10px; background: #e3e8f2; overflow: hidden; }
.qz-progress span { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, #1463ff, #7c3aed 50%, #6ff0bc); transition: width .45s ease; }
.qz-flames { display: inline-flex; align-items: flex-end; gap: 3px; min-height: 20px; }
.qz-flames b { margin-left: 6px; font-size: 13.5px; font-weight: 800; color: #a85f00; }
.qz-flame { position: relative; display: inline-block; width: 12px; height: 12px; margin: 5px 2px 2px; border-radius: 50% 0 50% 50%; transform: rotate(-45deg); background: linear-gradient(225deg, #ffd36b, #c77a00); box-shadow: 0 0 8px rgba(255, 193, 92, .55); animation: qz-flicker 1.1s ease-in-out infinite alternate; }
.qz-flame::after { content: ""; position: absolute; left: 3px; top: 3px; width: 6px; height: 6px; border-radius: 50% 0 50% 50%; background: #fff3c4; }
.qz-flame:nth-child(2n) { animation-delay: .25s; }
.qz-flames.is-hot .qz-flame { width: 14px; height: 14px; }
@keyframes qz-flicker { from { transform: rotate(-45deg) scale(1); } to { transform: rotate(-41deg) scale(1.12); } }

.qz-card-q { position: relative; background: #fff; border-radius: 26px; padding: 26px 28px 24px; border: 1px solid var(--line); box-shadow: 0 24px 50px rgba(11, 21, 51, .1); animation: qz-rise .35s ease both; }
.qz-card-q::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; border-radius: 26px 26px 0 0; background: linear-gradient(90deg, #1463ff, #7c3aed); }
.qz-card-q.is-right::before { background: linear-gradient(90deg, #0e9f6e, #6ff0bc); }
.qz-card-q.is-close::before { background: linear-gradient(90deg, #c77a00, #ffc15c); }
.qz-card-q.is-wrong::before { background: linear-gradient(90deg, #d43c3c, #f08a8a); }
@keyframes qz-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.qz-kind { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #f1ebff; color: #6d3fe0; font-size: 12.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.qz-q { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.015em; margin: 12px 0 18px; color: #0b1533; outline: none; }
.qz-logo { display: block; border-radius: 18px; background: #f5f7fb; border: 1px solid var(--line); padding: 8px; object-fit: contain; }
.qz-logo--big { width: 96px; height: 96px; margin: 0 0 18px; box-shadow: 0 10px 24px rgba(11, 21, 51, .1); }

.qz-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.qz-opts--tf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qz-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 12px 14px; border-radius: 16px; border: 2px solid var(--line); background: #fff; color: var(--text); font: inherit; font-size: 16.5px; font-weight: 700; text-align: left; cursor: pointer; transition: border-color .12s ease, background .12s ease, transform .12s ease; }
.qz-opt:hover:not(:disabled) { border-color: #1463ff; background: #f2f6ff; transform: translateY(-1px); }
.qz-opt:disabled { cursor: default; }
.qz-key { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #eef1f6; color: #3e4a6b; font-size: 14px; font-weight: 800; }
.qz-opt-l { min-width: 0; overflow-wrap: anywhere; }
.qz-opt.is-right { border-color: #0e9f6e; background: #e7f7f0; color: #064e36; }
.qz-opt.is-right .qz-key, .qz-opt.is-right .qz-box { background: #0e9f6e; color: #fff; }
.qz-opt.is-wrong { border-color: #d43c3c; background: #fff2f2; color: #8a1f1f; }
.qz-opt.is-wrong .qz-key, .qz-opt.is-wrong .qz-box { background: #d43c3c; color: #fff; }
.qz-opt.is-missed { border-color: #0e9f6e; border-style: dashed; }
.qz-opt:disabled:not(.is-right):not(.is-wrong):not(.is-missed) { opacity: .6; }
.qz-opt.is-right { animation: qz-pop .35s ease; }
.qz-opt.is-wrong { animation: qz-shake .35s ease; }
@keyframes qz-pop { 50% { transform: scale(1.03); } }
@keyframes qz-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.qz-box { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; border: 2px solid var(--line); color: transparent; background: #fff; }
.qz-opt--check[aria-pressed="true"] { border-color: #1463ff; background: #f2f6ff; }
.qz-opt--check[aria-pressed="true"] .qz-box { background: #1463ff; border-color: #1463ff; color: #fff; }
.qz-submit { margin-top: 16px; }

.qz-slider { padding: 4px 4px 0; }
.qz-slider-val { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(40px, 5vw, 60px); line-height: 1; color: #1463ff; margin-bottom: 18px; letter-spacing: -0.03em; }
.qz-slider-track { position: relative; padding: 26px 0 10px; }
.qz-slider-track input { --p: 50%; position: relative; z-index: 2; width: 100%; height: 14px; margin: 0; border-radius: 14px; -webkit-appearance: none; appearance: none; background: linear-gradient(90deg, #1463ff, #7c3aed var(--p), #e3e8f2 var(--p)); cursor: pointer; }
.qz-slider-track input::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 4px solid #0b1533; box-shadow: 0 4px 12px rgba(11, 21, 51, .25); }
.qz-slider-track input::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid #0b1533; box-shadow: 0 4px 12px rgba(11, 21, 51, .25); }
.qz-slider-track input:disabled { cursor: default; }
.qz-slider-ends { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.qz-band { position: absolute; z-index: 1; top: 22px; height: 22px; border-radius: 12px; background: rgba(14, 159, 110, .28); }
.qz-mark { position: absolute; z-index: 3; top: 16px; width: 4px; height: 34px; margin-left: -2px; border-radius: 3px; background: #0e9f6e; animation: qz-rise .35s ease both; }
.qz-mark b { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 4px; padding: 2px 8px; border-radius: 8px; background: #0e9f6e; color: #fff; font-size: 13px; white-space: nowrap; }

.qz-order { list-style: none; counter-reset: qz; margin: 0; padding: 0; display: grid; gap: 8px; }
.qz-item { counter-increment: qz; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 16px; border: 2px solid var(--line); background: #fff; font-weight: 700; font-size: 16.5px; touch-action: none; user-select: none; cursor: grab; transition: border-color .12s ease, box-shadow .12s ease; }
.qz-item::before { content: counter(qz); flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: #0b1533; color: #6ff0bc; font-size: 14px; font-weight: 800; }
.qz-item.is-drag { position: relative; z-index: 4; cursor: grabbing; border-color: #1463ff; box-shadow: 0 14px 30px rgba(11, 21, 51, .18); }
.qz-grip { color: #94a0b8; display: grid; }
.qz-item-l { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.qz-move { display: inline-flex; gap: 4px; }
.qz-mv { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #f5f7fb; color: #0b1533; display: grid; place-items: center; cursor: pointer; }
.qz-mv:hover:not(:disabled) { border-color: #1463ff; color: #1463ff; }
.qz-mv:disabled { opacity: .35; cursor: default; }
.qz-order.is-locked .qz-item { cursor: default; }
.qz-item.is-right { border-color: #0e9f6e; background: #e7f7f0; }
.qz-item.is-wrong { border-color: #d43c3c; background: #fff2f2; }
.qz-hint { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.qz-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }

.qz-timer { position: relative; display: flex; align-items: center; gap: 10px; margin-top: -6px; margin-bottom: 14px; }
.qz-timer span { flex: 1; height: 6px; border-radius: 6px; background: #1463ff; width: 100%; transition: width 1s linear, background .2s ease; }
.qz-timer b { font-size: 13.5px; color: var(--muted); min-width: 30px; text-align: right; }
.qz-timer.is-low span { background: #c77a00; }

.qz-feedback:empty { display: none; }
.qz-feedback { margin-top: 18px; padding: 18px 20px; border-radius: 20px; background: #f5f7fb; border: 1px solid var(--line); animation: qz-rise .3s ease both; }
.qz-card-q.is-right .qz-feedback { background: #effbf6; border-color: #b9ead5; }
.qz-card-q.is-close .qz-feedback { background: #fff8ea; border-color: #f1d9a6; }
.qz-card-q.is-wrong .qz-feedback { background: #fff6f6; border-color: #f3caca; }
.qz-fb-top { display: flex; align-items: center; gap: 10px; }
.qz-fb-top strong { font-family: var(--display); font-size: 24px; font-weight: 800; color: #0b1533; }
.qz-fb-badge { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #0e9f6e; color: #fff; }
.qz-card-q.is-close .qz-fb-badge { background: #c77a00; }
.qz-card-q.is-wrong .qz-fb-badge { background: #d43c3c; }
.qz-fb-pts { margin-left: auto; font-weight: 800; color: #0a7a55; }
.qz-card-q.is-close .qz-fb-pts { color: #a85f00; }
.qz-card-q.is-wrong .qz-fb-pts { color: var(--muted); }
.qz-fb-ans { margin: 10px 0 0; font-weight: 800; color: #0b1533; }
.qz-fb-why { margin: 8px 0 0; font-size: 16px; line-height: 1.6; color: #24304f; overflow-wrap: anywhere; }
.qz-fb-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; font-size: 14.5px; font-weight: 700; }
.qz-fb-links a { color: #1463ff; }
.qz-next { margin-top: 14px; }

/* ---------- Result ---------- */
.qz-result { position: relative; overflow: hidden; background: #fff; border-radius: 26px; border: 1px solid var(--line); box-shadow: 0 24px 50px rgba(11, 21, 51, .1); padding: 26px 28px; animation: qz-rise .4s ease both; }
.qz-res-top { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.qz-ring { --p: 0; flex: none; width: 170px; height: 170px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(from -90deg, #6ff0bc, #0e9f6e calc(var(--p) * 1%), #e3e8f2 0); }
.qz-ring > div { width: 132px; height: 132px; border-radius: 50%; background: #0b1533; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.qz-ring b { font-family: var(--display); font-size: 40px; line-height: 1; color: #6ff0bc; font-variant-numeric: tabular-nums; }
.qz-ring span { font-size: 13px; color: #c9d3ea; }
.qz-res-txt { flex: 1 1 280px; min-width: 0; }
.qz-res-txt h2 { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.1; margin: 10px 0 12px; color: #0b1533; outline: none; }
.qz-grade { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #f1ebff; color: #6d3fe0; font-weight: 800; }
.qz-grade b { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #7c3aed; color: #fff; font-family: var(--display); font-size: 20px; }
.qz-grade--a { background: #dcfbef; color: #0a7a55; }
.qz-grade--a b { background: #0e9f6e; }
.qz-grade--b { background: #e8f0ff; color: #1463ff; }
.qz-grade--b b { background: #1463ff; }
.qz-grade--c { background: #fff4df; color: #a85f00; }
.qz-grade--c b { background: #c77a00; }
.qz-res-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.qz-res-facts li { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 14px; background: #f5f7fb; border: 1px solid var(--line); min-width: 92px; }
.qz-res-facts b { font-family: var(--display); font-size: 22px; color: #0b1533; }
.qz-res-facts span { font-size: 13px; color: var(--muted); }
.qz-vs { margin: 12px 0 0; font-weight: 700; color: #3e4a6b; }
.qz-res-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.qz-toast { margin: 10px 0 0; min-height: 1.4em; font-weight: 700; color: #0a7a55; opacity: 0; transition: opacity .2s ease; overflow-wrap: anywhere; }
.qz-toast.is-on { opacity: 1; }
.qz-review { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 18px; }
.qz-review h3 { margin: 0 0 10px; font-size: 18px; }
.qz-review ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.qz-review li { display: flex; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #f5f7fb; }
.qz-rv-mark { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #0e9f6e; margin-top: 2px; }
.qz-review li.is-close .qz-rv-mark { background: #c77a00; }
.qz-review li.is-wrong .qz-rv-mark { background: #d43c3c; }
.qz-rv-q { margin: 0; font-weight: 700; color: #0b1533; }
.qz-rv-a { margin: 4px 0 0; font-size: 14.5px; color: #3e4a6b; overflow-wrap: anywhere; }
.qz-rv-link { display: inline-block; margin-top: 4px; font-size: 14px; font-weight: 700; color: #1463ff; }
.qz-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.qz-confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 3px; animation: qz-fall 2.6s ease-in forwards; }
@keyframes qz-fall { to { transform: translate(var(--x), 520px) rotate(var(--r)); opacity: 0; } }

/* ---------- No-JavaScript list ---------- */
.qz-static { margin-top: 26px; }
.qz-static-list { margin: 0; padding: 0; list-style: none; counter-reset: qs; display: grid; gap: 12px; }
.qz-static-q { counter-increment: qs; position: relative; padding: 20px 22px 18px 64px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.qz-static-q::before { content: counter(qs); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #0b1533; color: #6ff0bc; font-weight: 800; }
.qz-static-text { margin: 8px 0; font-size: 18px; font-weight: 700; color: #0b1533; }
.qz-static-opts { margin: 0 0 8px; padding-left: 20px; color: #3e4a6b; }
.qz-static-range { margin: 0 0 8px; color: #3e4a6b; }
.qz-static-q .qz-logo { width: 72px; height: 72px; margin-bottom: 8px; }
.qz-reveal summary { cursor: pointer; font-weight: 800; color: #1463ff; }
.qz-reveal p { margin: 8px 0 0; line-height: 1.6; }
.qz-static-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14.5px; font-weight: 700; }
.qz-static-more { margin: 16px 0 0; }
.qz-related { margin-top: 30px; }

@media (max-width: 860px) {
  .qz-top { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .qz-opts { grid-template-columns: 1fr; }
  .qz-card-q, .qz-result { padding: 22px 16px 18px; border-radius: 22px; }
  .qz-static-q { padding: 18px 16px 16px 56px; }
  .qz-static-q::before { left: 14px; }
  .qz-ring { width: 140px; height: 140px; }
  .qz-ring > div { width: 108px; height: 108px; }
  .qz-ring b { font-size: 32px; }
  .qz-res-acts .qz-btn { flex: 1 1 140px; }
  .qz-stats-grid { gap: 6px; }
  .qz-stats-grid div { padding: 10px; }
  .qz-best li { grid-template-columns: minmax(0, 1fr) 50px 40px; }
  .qz-hero-cta .qz-btn { flex: 1 1 100%; }
  .qz-item { font-size: 15.5px; gap: 8px; padding: 8px; }
  .qz-mv { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .qz-flame, .qz-daily-spark, .qz-card-q, .qz-feedback, .qz-result, .qz-opt.is-right, .qz-opt.is-wrong, .qz-mark { animation: none; }
  .qz-progress span, .qz-timer span { transition: none; }
  .qz-confetti { display: none; }
}
