/* Sangyani Sanatan Quiz: game page, dashboard card, profile card.
 * The site is dark by design (brand-system.css forces a dark .site-main),
 * so the game is built on the shared dark tokens from premium-3d.css.
 * Motion: a slowly turning mandala, a breathing orb, light rays, a card
 * deck, particle bursts and score pops. All motion stops under
 * prefers-reduced-motion. */

.sp-quiz {
    --q-saffron: var(--d-accent, #ff9933);
    --q-ember: #ea580c;
    --q-gold: var(--d-gold, #d4a017);
    --q-violet: #7c3aed;
    --q-ink: var(--d-text, #ffffff);
    --q-muted: var(--d-text-muted, #b0adc0);
    --q-card: rgba(18, 21, 30, .78);
    --q-field: var(--d-bg-elevated, #181c28);
    --q-line: rgba(255, 255, 255, .12);
    --q-good: #4ade80;
    --q-soft: #fdba74;
    --q-glow: 255, 153, 51;
    position: relative;
    isolation: isolate;
    min-height: calc(100vh - 80px);
    padding: clamp(24px, 5vw, 56px) 16px 96px;
    overflow: hidden;
    color: var(--q-ink);
}
.sp-quiz[data-mood="good"] { --q-glow: 74, 222, 128; }
.sp-quiz[data-mood="bad"] { --q-glow: 251, 113, 133; }
.sp-quiz[data-mood="win"] { --q-glow: 250, 204, 21; }

/* ---------- Stage ---------- */
.sp-quiz__stage { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124, 58, 237, .22), transparent 70%),
                radial-gradient(ellipse 70% 50% at 50% 100%, rgba(255, 153, 51, .16), transparent 70%), #07070d; }
.sp-quiz__rays { position: absolute; left: 50%; top: 42%; width: 190vmax; height: 190vmax; margin: -95vmax 0 0 -95vmax;
    background: repeating-conic-gradient(from 0deg, rgba(var(--q-glow), .07) 0 5deg, transparent 5deg 15deg);
    -webkit-mask: radial-gradient(circle, #000 0, transparent 55%); mask: radial-gradient(circle, #000 0, transparent 55%);
    animation: spq-spin 120s linear infinite; transition: background .6s; }
.sp-quiz__mandala { position: absolute; left: 50%; top: 42%; width: min(120vmin, 1100px); height: auto; transform: translate(-50%, -50%); opacity: .5; }
.sp-quiz__ring { transform-origin: 0 0; fill: none; stroke-width: 1.2; }
.sp-quiz__ring--a { stroke: rgba(var(--q-glow), .35); animation: spq-spin 90s linear infinite; transition: stroke .6s; }
.sp-quiz__ring--b { stroke: rgba(212, 160, 23, .45); animation: spq-spin 60s linear infinite reverse; }
.sp-quiz__orb { position: absolute; left: 50%; top: 42%; width: 34vmin; height: 34vmin; transform: translate(-50%, -50%); border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff 0, #ffe7b3 12%, rgba(var(--q-glow), .85) 38%, rgba(124, 58, 237, .5) 68%, transparent 72%);
    filter: blur(2px); box-shadow: 0 0 120px 40px rgba(var(--q-glow), .25); opacity: .42; animation: spq-breathe 7s ease-in-out infinite; transition: box-shadow .6s, background .6s; }
.sp-quiz__fx { position: absolute; inset: 0; width: 100%; height: 100%; }
.sp-quiz[data-screen="play"] .sp-quiz__orb { opacity: .22; }
.sp-quiz[data-screen="play"] .sp-quiz__mandala { opacity: .28; }

/* ---------- Layout + type ---------- */
.sp-quiz__wrap { position: relative; max-width: 880px; margin: 0 auto; color: var(--q-ink); }
.sp-quiz__screen { display: none; }
.sp-quiz__screen.is-active { display: block; animation: spq-rise .6s cubic-bezier(.2, .9, .3, 1.2) both; }
.sp-quiz__center { position: relative; text-align: center; }
.sp-quiz__hero { text-align: center; margin-bottom: 28px; }
.sp-quiz__eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--q-gold); }
.sp-quiz__title { margin: 0 0 14px; font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-weight: 600; font-size: clamp(40px, 8vw, 84px); line-height: 1; letter-spacing: -.01em; color: #fff; text-shadow: 0 0 40px rgba(var(--q-glow), .45); }
.sp-quiz__title em { font-style: italic; background: linear-gradient(100deg, #ffd27a, var(--q-saffron) 45%, #f472b6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sp-quiz__title span { display: inline-block; animation: spq-rise .8s .1s both; }
.sp-quiz__title em { display: inline-block; animation: spq-rise .8s .25s both; }
.sp-quiz__title--win { font-size: clamp(34px, 6vw, 64px); animation: spq-pop .7s cubic-bezier(.2, 1.4, .4, 1) both; }
.sp-quiz__lead { max-width: 620px; margin: 0 auto 18px; font-size: 17px; line-height: 1.6; color: var(--q-muted); }
.sp-quiz__note { margin: 10px 0 0; font-size: 13px; color: var(--q-muted); text-align: center; }
.sp-quiz__note a { color: var(--q-saffron); }
.sp-quiz__error { margin: 10px 0 0; color: #fca5a5; text-align: center; }
.sp-quiz__section-label { margin: 40px 0 16px; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--q-muted); }

/* Rule chips */
.sp-quiz__rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 640px; margin: 0 auto 28px; padding: 0; list-style: none; }
.sp-quiz__rules li { padding: 14px 8px; border: 1px solid var(--q-line); border-radius: 16px; background: rgba(255, 255, 255, .04); backdrop-filter: blur(8px); text-align: center; animation: spq-rise .6s both; }
.sp-quiz__rules li:nth-child(2) { animation-delay: .08s; } .sp-quiz__rules li:nth-child(3) { animation-delay: .16s; } .sp-quiz__rules li:nth-child(4) { animation-delay: .24s; }
.sp-quiz__rules b { display: block; font-size: 26px; color: var(--q-saffron); font-variant-numeric: tabular-nums; }
.sp-quiz__rules span { font-size: 12px; color: var(--q-muted); }

/* Start form */
.sp-quiz__start { max-width: 460px; margin: 0 auto; padding: 22px; border: 1px solid var(--q-line); border-radius: 24px; background: var(--q-card); backdrop-filter: blur(14px); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); text-align: center; }
.sp-quiz__start label { display: block; margin-bottom: 10px; font-size: 13px; color: var(--q-muted); }
.sp-quiz__start input { box-sizing: border-box; width: 100%; padding: 14px 16px; border: 1px solid var(--q-line); border-radius: 14px; background: var(--q-field); color: #fff; font-size: 18px; text-align: center; }
.sp-quiz__start input:focus { outline: none; border-color: var(--q-saffron); box-shadow: 0 0 0 4px rgba(255, 153, 51, .2); }

/* Buttons */
.sp-quiz__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border: 1px solid var(--q-line); border-radius: 999px; background: rgba(255, 255, 255, .06); color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; }
.sp-quiz__btn:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .1); color: #fff; }
.sp-quiz__btn:active { transform: scale(.96); }
.sp-quiz__btn--primary { border: 0; background: linear-gradient(135deg, #ffb057, var(--q-saffron) 40%, var(--q-ember)); color: #1a0d02; box-shadow: 0 10px 30px rgba(234, 88, 12, .45), inset 0 1px 0 rgba(255, 255, 255, .5); }
.sp-quiz__btn--primary:hover { background: linear-gradient(135deg, #ffc27a, #ffa040 40%, #f97316); color: #1a0d02; box-shadow: 0 14px 40px rgba(234, 88, 12, .6); }
.sp-quiz__btn--play { width: 100%; margin-top: 14px; padding: 16px; font-size: 18px; letter-spacing: .2em; text-transform: uppercase; animation: spq-pulse 2.4s ease-in-out infinite; }
.sp-quiz__center .sp-quiz__btn--play { width: auto; min-width: 240px; }
.sp-quiz__btn--link { border-color: transparent; background: none; color: var(--q-muted); font-weight: 600; }
.sp-quiz__btn--link:hover { background: none; color: #fff; }
.sp-quiz__btn[disabled] { opacity: .6; cursor: wait; animation: none; }
.sp-quiz__icon-btn { padding: 7px 12px; border: 1px solid var(--q-line); border-radius: 999px; background: rgba(255, 255, 255, .05); color: var(--q-muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.sp-quiz__icon-btn[aria-pressed="true"] { color: #fca5a5; }

/* Journey map */
.sp-quiz__map { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px 10px; max-width: 760px; margin: 0 auto; padding: 0; list-style: none; counter-reset: none; }
.sp-quiz__map li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; animation: spq-rise .5s both; }
.sp-quiz__map li:nth-child(even) { transform: translateY(18px); }
.sp-quiz__map li::after { content: ""; position: absolute; top: 28px; left: calc(50% + 32px); width: calc(100% - 54px); border-top: 2px dashed rgba(255, 255, 255, .15); }
.sp-quiz__map li:nth-child(5n)::after, .sp-quiz__map li:last-child::after { display: none; }
.sp-quiz__node { display: grid; place-items: center; width: 56px; height: 56px; border: 2px solid rgba(255, 255, 255, .18); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #2a2f42, #12151e); color: var(--q-muted); font-size: 20px; font-weight: 800; box-shadow: 0 8px 20px rgba(0, 0, 0, .5); transition: transform .3s; }
.sp-quiz__node-name { font-size: 12px; line-height: 1.3; color: var(--q-muted); }
.sp-quiz__map li:hover .sp-quiz__node { transform: scale(1.1) rotate(-6deg); }
.sp-quiz__map li.is-done .sp-quiz__node { border-color: var(--q-good); background: radial-gradient(circle at 35% 30%, #4ade80, #166534); color: #04210f; }
.sp-quiz__map li.is-done::after { border-top-style: solid; border-color: rgba(74, 222, 128, .6); }
.sp-quiz__map li.is-current .sp-quiz__node { border-color: #ffd27a; background: radial-gradient(circle at 35% 30%, #ffd27a, var(--q-ember)); color: #1a0d02; box-shadow: 0 0 0 6px rgba(255, 153, 51, .18), 0 0 40px rgba(255, 153, 51, .6); animation: spq-pulse 2s infinite; }
.sp-quiz__map li.is-current .sp-quiz__node-name { color: #fff; font-weight: 700; }
.sp-quiz__map--mini { max-width: 560px; margin: 26px auto 30px; gap: 18px 6px; }
.sp-quiz__map--mini .sp-quiz__node { width: 40px; height: 40px; font-size: 15px; }
.sp-quiz__map--mini li::after { top: 20px; left: calc(50% + 24px); width: calc(100% - 42px); }
.sp-quiz__map--mini .sp-quiz__node-name { display: none; }
.sp-quiz__keys-hint { margin-top: 36px; }

/* ---------- HUD ---------- */
.sp-quiz__hud { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; padding: 12px 16px; border: 1px solid var(--q-line); border-radius: 22px; background: var(--q-card); backdrop-filter: blur(14px); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.sp-quiz__badge { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(145deg, #ffd27a, var(--q-ember)); color: #1a0d02; line-height: 1; box-shadow: 0 8px 24px rgba(234, 88, 12, .5); transform: rotate(-4deg); }
.sp-quiz__badge small { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.sp-quiz__badge b { font-size: 28px; }
.sp-quiz__hud-mid { flex: 1; min-width: 0; }
.sp-quiz__hud-mid strong { display: block; font-family: "Playfair Display", Georgia, serif; font-size: 20px; font-style: italic; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-quiz__hud-mid > span { font-size: 12px; color: var(--q-muted); }
.sp-quiz__progress { position: relative; height: 10px; margin-top: 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.sp-quiz__progress span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--q-gold), var(--q-saffron), #f472b6); box-shadow: 0 0 14px rgba(255, 153, 51, .8); transition: width .6s cubic-bezier(.2, .9, .3, 1.2); }
.sp-quiz__progress span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); animation: spq-shine 2.2s infinite; }
.sp-quiz__progress-text { margin: 6px 0 0; font-size: 12px; color: var(--q-muted); }
.sp-quiz__hud-right { display: flex; align-items: center; gap: 10px; }
.sp-quiz__streak[hidden] { display: none; }
.sp-quiz__score, .sp-quiz__streak { display: grid; place-items: center; min-width: 74px; padding: 6px 10px; border-radius: 16px; background: rgba(255, 255, 255, .05); line-height: 1.05; }
.sp-quiz__score b { font-size: 26px; color: var(--q-saffron); font-variant-numeric: tabular-nums; }
.sp-quiz__score.is-bump b { animation: spq-bump .45s; }
.sp-quiz__score small, .sp-quiz__streak small { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--q-muted); }
.sp-quiz__streak { background: linear-gradient(145deg, rgba(244, 114, 182, .25), rgba(124, 58, 237, .25)); animation: spq-pop .4s both; }
.sp-quiz__streak b { font-size: 22px; color: #f9a8d4; }

/* ---------- Card deck ---------- */
.sp-quiz__deck { position: relative; perspective: 1400px; }
.sp-quiz__ghost { position: absolute; left: 6%; right: 6%; top: 0; bottom: 0; border: 1px solid var(--q-line); border-radius: 28px; background: rgba(24, 28, 40, .6); }
.sp-quiz__ghost--1 { transform: translateY(14px) scale(.96); opacity: .7; }
.sp-quiz__ghost--2 { transform: translateY(28px) scale(.92); opacity: .4; }
.sp-quiz__card { position: relative; padding: clamp(22px, 4vw, 40px); border: 1px solid rgba(255, 255, 255, .14); border-radius: 28px;
    background: linear-gradient(160deg, rgba(36, 32, 58, .95), rgba(14, 16, 26, .96)); box-shadow: 0 40px 100px rgba(0, 0, 0, .6), 0 0 0 1px rgba(var(--q-glow), .08), 0 0 60px rgba(var(--q-glow), .12);
    transform-style: preserve-3d; transition: box-shadow .4s, border-color .4s; }
.sp-quiz__card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(ellipse at 20% 0%, rgba(255, 210, 122, .14), transparent 55%); }
.sp-quiz__card.is-flip { animation: spq-deal .65s cubic-bezier(.2, .9, .3, 1.15) both; }
.sp-quiz__card.is-correct { border-color: rgba(74, 222, 128, .6); box-shadow: 0 40px 100px rgba(0, 0, 0, .6), 0 0 80px rgba(74, 222, 128, .35); animation: spq-joy .6s; }
.sp-quiz__card.is-wrong { border-color: rgba(251, 146, 60, .55); animation: spq-shake .5s; }
.sp-quiz__card-tag { margin: 0 0 12px; font-size: 11px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--q-gold); }
.sp-quiz__question { margin: 0 64px 24px 0; font-family: "Playfair Display", Georgia, serif; font-size: clamp(22px, 3.4vw, 32px); font-weight: 600; line-height: 1.3; color: #fff; outline: none; }

/* Ring timer */
.sp-quiz__timer { position: absolute; top: 20px; right: 20px; width: 58px; height: 58px; }
.sp-quiz__timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sp-quiz__timer circle { fill: none; stroke-width: 4; }
.sp-quiz__timer-bg { stroke: rgba(255, 255, 255, .1); }
.sp-quiz__timer-arc { stroke: var(--q-saffron); stroke-linecap: round; stroke-dasharray: 119.4; stroke-dashoffset: 0; transition: stroke .3s; filter: drop-shadow(0 0 4px rgba(255, 153, 51, .8)); }
.sp-quiz__timer span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 18px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.sp-quiz__timer.is-low .sp-quiz__timer-arc { stroke: #fb7185; filter: drop-shadow(0 0 6px rgba(251, 113, 133, .9)); }
.sp-quiz__timer.is-low span { color: #fda4af; animation: spq-bump .9s infinite; }

/* Options */
.sp-quiz__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sp-quiz__option { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; background: rgba(255, 255, 255, .05); color: #fff; font-size: 16px; font-weight: 600; line-height: 1.35; text-align: left; cursor: pointer; overflow: hidden;
    animation: spq-option .45s cubic-bezier(.2, .9, .3, 1.2) both; transition: transform .15s, background .2s, border-color .2s, box-shadow .2s; }
.sp-quiz__option:nth-child(2) { animation-delay: .07s; } .sp-quiz__option:nth-child(3) { animation-delay: .14s; } .sp-quiz__option:nth-child(4) { animation-delay: .21s; }
.sp-quiz__option:hover:not([disabled]) { transform: translateY(-3px); border-color: rgba(255, 153, 51, .6); background: rgba(255, 153, 51, .1); box-shadow: 0 12px 30px rgba(255, 153, 51, .2); }
.sp-quiz__option:active:not([disabled]) { transform: scale(.97); }
.sp-quiz__option[disabled] { cursor: default; }
.sp-quiz__option[disabled]:not(.is-right):not(.is-wrong) { opacity: .45; }
.sp-quiz__key { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, .1); color: var(--q-gold); font-size: 14px; font-weight: 800; }
.sp-quiz__option.is-right { border-color: var(--q-good); background: linear-gradient(135deg, rgba(74, 222, 128, .28), rgba(22, 101, 52, .3)); box-shadow: 0 0 30px rgba(74, 222, 128, .35); animation: spq-joy .5s; }
.sp-quiz__option.is-right .sp-quiz__key { background: var(--q-good); color: #04210f; }
.sp-quiz__option.is-wrong { border-color: #fb923c; background: rgba(251, 146, 60, .16); animation: spq-shake .45s; }
.sp-quiz__option.is-wrong .sp-quiz__key { background: #fb923c; color: #2a1202; }

/* Feedback */
.sp-quiz__feedback { min-height: 24px; margin: 18px 0 0; font-size: 15px; line-height: 1.5; color: var(--q-muted); }
.sp-quiz__feedback.is-good, .sp-quiz__feedback.is-soft { padding: 12px 16px; border-radius: 14px; animation: spq-rise .4s both; }
.sp-quiz__feedback.is-good { background: rgba(74, 222, 128, .12); color: #bbf7d0; }
.sp-quiz__feedback.is-soft { background: rgba(251, 146, 60, .12); color: #fed7aa; }
.sp-quiz__feedback b { display: block; font-family: "Playfair Display", Georgia, serif; font-size: 22px; font-style: italic; color: #fff; }

.sp-quiz__actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.sp-quiz__actions [data-next] { min-width: 200px; animation: spq-pop .4s both; }

/* Score pops + countdown */
.sp-quiz__pop-layer { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.sp-quiz__pop { position: absolute; font-size: 34px; font-weight: 900; transform: translate(-50%, -50%); animation: spq-float 1.2s ease-out forwards; text-shadow: 0 4px 20px rgba(0, 0, 0, .6); }
.sp-quiz__pop.is-good { color: #86efac; }
.sp-quiz__pop.is-bad { color: #fdba74; }
.sp-quiz__countdown { position: fixed; inset: 0; z-index: 60; display: none; place-items: center; background: rgba(7, 7, 13, .55); backdrop-filter: blur(6px); pointer-events: none; }
.sp-quiz__countdown.is-on { display: grid; }
.sp-quiz__countdown span { font-family: "Playfair Display", Georgia, serif; font-size: clamp(90px, 22vw, 220px); font-weight: 700; font-style: italic; color: #fff; text-shadow: 0 0 60px rgba(255, 153, 51, .9); }
.sp-quiz__countdown span.is-tick { animation: spq-count .8s cubic-bezier(.2, 1.3, .4, 1) both; }

/* Level + certificate celebration */
.sp-quiz__burst { position: absolute; left: 50%; top: 120px; width: 900px; height: 900px; margin: -450px 0 0 -450px; z-index: -1; pointer-events: none;
    background: repeating-conic-gradient(rgba(250, 204, 21, .14) 0 6deg, transparent 6deg 18deg); -webkit-mask: radial-gradient(circle, #000 0, transparent 60%); mask: radial-gradient(circle, #000 0, transparent 60%); animation: spq-spin 30s linear infinite; }
.sp-quiz__stars { display: flex; justify-content: center; gap: 14px; margin: 0 0 18px; }
.sp-quiz__stars i { width: 46px; height: 46px; background: linear-gradient(145deg, #fde68a, #f59e0b); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); filter: drop-shadow(0 0 12px rgba(250, 204, 21, .8)); animation: spq-star .6s cubic-bezier(.2, 1.5, .4, 1) both; }
.sp-quiz__stars i:nth-child(2) { width: 60px; height: 60px; margin-top: -10px; animation-delay: .15s; }
.sp-quiz__stars i:nth-child(3) { animation-delay: .3s; }

/* Certificate (stays light: it is a printed document) */
.sp-quiz__cert { display: block; width: 100%; height: auto; margin: 18px auto 0; border-radius: 12px; box-shadow: 0 40px 100px rgba(0, 0, 0, .7), 0 0 80px rgba(250, 204, 21, .25); animation: spq-unfold 1s .2s cubic-bezier(.2, .9, .3, 1.1) both; }

/* ---------- Keyframes ---------- */
@keyframes spq-spin { to { transform: rotate(360deg); } }
.sp-quiz__mandala { animation: none; }
@keyframes spq-breathe { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.08); } }
@keyframes spq-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.sp-quiz__map li:nth-child(even) { animation-name: spq-rise-even; }
@keyframes spq-rise-even { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: translateY(18px); } }
@keyframes spq-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes spq-pulse { 0%, 100% { box-shadow: 0 10px 30px rgba(234, 88, 12, .45), 0 0 0 0 rgba(255, 153, 51, .5); } 50% { box-shadow: 0 10px 30px rgba(234, 88, 12, .45), 0 0 0 12px rgba(255, 153, 51, 0); } }
@keyframes spq-deal { from { opacity: 0; transform: translateY(60px) rotateX(-28deg) rotateZ(-3deg) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes spq-option { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes spq-joy { 0% { transform: scale(1); } 40% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes spq-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-10px) rotate(-1deg); } 40% { transform: translateX(9px) rotate(1deg); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }
@keyframes spq-bump { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.35); } }
@keyframes spq-shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes spq-float { 0% { opacity: 0; transform: translate(-50%, -20%) scale(.6); } 20% { opacity: 1; transform: translate(-50%, -60%) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -220%) scale(1); } }
@keyframes spq-count { 0% { opacity: 0; transform: scale(2.4); } 40% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.7); } }
@keyframes spq-star { from { opacity: 0; transform: scale(0) rotate(-180deg); } to { opacity: 1; transform: none; } }
@keyframes spq-unfold { from { opacity: 0; transform: perspective(1200px) rotateX(50deg) scale(.85); } to { opacity: 1; transform: none; } }


/* ---------- Graphics v2: emblem, chrome stars, iridescent card ---------- */
@property --spq-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.sp-quiz__hero-emblem { display: flex; justify-content: center; margin: 0 0 18px; animation: spq-pop .9s cubic-bezier(.2, 1.4, .4, 1) both; }
.sp-quiz__win-emblem { display: flex; justify-content: center; margin: 0 0 8px; animation: spq-star .9s cubic-bezier(.2, 1.4, .4, 1) both; }
.sp-quiz__floaters { position: absolute; inset: 0; }
.sp-quiz__floater { position: absolute; opacity: .55; filter: blur(.3px); animation: spq-drift 18s ease-in-out infinite; }
.sp-quiz__floater--1 { left: 8%; top: 18%; }
.sp-quiz__floater--2 { right: 9%; top: 26%; transform: scale(1.4); animation-delay: -5s; animation-duration: 22s; }
.sp-quiz__floater--3 { left: 14%; bottom: 14%; transform: scale(.8); animation-delay: -9s; }
.sp-quiz__floater--4 { right: 16%; bottom: 10%; transform: scale(1.1); animation-delay: -13s; animation-duration: 26s; }
.sp-quiz[data-screen="play"] .sp-quiz__floater { opacity: .25; }
@keyframes spq-drift { 0%, 100% { translate: 0 0; } 33% { translate: 30px -40px; } 66% { translate: -24px 20px; } }

/* Title shimmer */
.sp-quiz__title em { background-size: 220% 100%; background-image: linear-gradient(100deg, #5eead4, #fcd34d 25%, #f97316 45%, #f472b6 60%, #5eead4 80%, #fcd34d); animation: spq-rise .8s .25s both, spq-sheen 6s linear infinite; }
@keyframes spq-sheen { to { background-position: -220% 0; } }

/* Iridescent rotating border on the start form and the card */
.sp-quiz__start, .sp-quiz__card { --spq-a: 0deg; }
.sp-quiz__start::after, .sp-quiz__card::after { content: ""; position: absolute; inset: -1px; z-index: 0; border-radius: inherit; padding: 2px; pointer-events: none;
    background: conic-gradient(from var(--spq-a), #5eead4, #0ea5e9, #7c3aed, #f472b6, #f97316, #fde047, #5eead4);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity: .7; animation: spq-angle 6s linear infinite; }
.sp-quiz__start { position: relative; }
.sp-quiz__card.is-correct::after { background: conic-gradient(from var(--spq-a), #4ade80, #bbf7d0, #22c55e, #4ade80); opacity: 1; animation-duration: 1.4s; }
.sp-quiz__card.is-wrong::after { background: conic-gradient(from var(--spq-a), #fb923c, #fecaca, #f97316, #fb923c); opacity: 1; }
@keyframes spq-angle { to { --spq-a: 360deg; } }
.sp-quiz__card > * { position: relative; z-index: 1; }
.sp-quiz__card > .sp-quiz__timer { position: absolute; }
.sp-quiz__card-glint { position: absolute !important; inset: 0; z-index: 0 !important; border-radius: inherit; overflow: hidden; pointer-events: none; }
.sp-quiz__card-glint::before { content: ""; position: absolute; top: -50%; left: -60%; width: 40%; height: 200%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .09), transparent); transform: rotate(20deg); animation: spq-glint 5s ease-in-out infinite; }
@keyframes spq-glint { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.sp-quiz__ghost { background: linear-gradient(160deg, rgba(14, 165, 233, .14), rgba(124, 58, 237, .14)), rgba(20, 22, 34, .7); }

/* HUD badge with a small emblem */
.sp-quiz__badge { position: relative; }
.sp-quiz__badge-gem { position: absolute; top: -18px; right: -16px; }
.sp-quiz__badge-gem .sp-emblem { --s: 34px; --d: .5px; }

/* Gem level nodes */
.sp-quiz__node { position: relative; border: 0; border-radius: 16px; transform: rotate(45deg); background: linear-gradient(145deg, #2a2f42, #10131c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 10px 24px rgba(0, 0, 0, .55); }
.sp-quiz__map li .sp-quiz__node { width: 50px; height: 50px; margin: 3px; }
.sp-quiz__node { font-size: 0; }
.sp-quiz__node::after { content: attr(data-n); font-size: 19px; transform: rotate(-45deg); }
.sp-quiz__map li:hover .sp-quiz__node { transform: rotate(45deg) scale(1.12); }
.sp-quiz__map li.is-done .sp-quiz__node { background: linear-gradient(145deg, #86efac, #15803d); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 0 22px rgba(74, 222, 128, .45); color: #04210f; }
.sp-quiz__map li.is-current .sp-quiz__node { background: conic-gradient(from var(--spq-a), #5eead4, #0ea5e9, #f472b6, #f97316, #fde047, #5eead4); color: #12060a; box-shadow: 0 0 0 5px rgba(255, 255, 255, .08), 0 0 40px rgba(249, 115, 22, .6); animation: spq-angle 4s linear infinite; }
.sp-quiz__map li.is-current .sp-quiz__node::after { text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.sp-quiz__map--mini li .sp-quiz__node { width: 36px; height: 36px; border-radius: 11px; }
.sp-quiz__map--mini .sp-quiz__node::after { font-size: 14px; }

/* Option shine + gem keys */
.sp-quiz__option::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .12) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s; pointer-events: none; }
.sp-quiz__option:hover:not([disabled])::before { transform: translateX(120%); }
.sp-quiz__key { border-radius: 9px; transform: rotate(45deg); background: linear-gradient(145deg, rgba(94, 234, 212, .25), rgba(124, 58, 237, .3)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.sp-quiz__key { font-size: 0; }
.sp-quiz__key::after { content: attr(data-k); font-size: 14px; transform: rotate(-45deg); color: #fde68a; }
.sp-quiz__option.is-right .sp-quiz__key::after { color: #04210f; }
.sp-quiz__option.is-wrong .sp-quiz__key::after { color: #2a1202; }

@media (max-width: 680px) {
    .sp-quiz__rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sp-quiz__options { grid-template-columns: 1fr; }
    .sp-quiz__hud { flex-wrap: wrap; gap: 10px; }
    .sp-quiz__badge { width: 52px; height: 52px; }
    .sp-quiz__hud-right { width: 100%; justify-content: space-between; }
    .sp-quiz__map { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px 4px; }
    .sp-quiz__map li .sp-quiz__node { width: 38px; height: 38px; border-radius: 12px; }
    .sp-quiz__node::after { font-size: 15px; }
    .sp-quiz__floater--2, .sp-quiz__floater--4 { display: none; }
    .sp-quiz__map li::after { top: 22px; left: calc(50% + 24px); width: calc(100% - 44px); }
    .sp-quiz__node-name { font-size: 12px; }
    .sp-quiz__question { margin-right: 58px; }
    .sp-quiz__timer { top: 14px; right: 14px; width: 50px; height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
    .sp-quiz *, .sp-quiz *::before, .sp-quiz *::after { animation: none !important; transition: none !important; }
    .sp-quiz__map li:nth-child(even) { transform: translateY(18px); }
}

/* Print: certificate only */
.sp-quiz-print { display: none; }


/* Dashboard + profile cards */
.sp-quiz-card { margin: 0 0 24px; }
.sp-quiz-card--profile {
    margin: 24px 0;
    padding: 20px;
    border: 1px solid var(--d-border, rgba(255, 255, 255, .06));
    border-radius: 18px;
    background: var(--d-bg-card, #12151e);
}
.sp-quiz-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sp-quiz-card__title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; font-size: 20px; }
.sp-quiz-card__title small { font-size: 13px; font-weight: 500; opacity: .7; }
.sp-quiz-privacy { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; font-size: 14px; }
.sp-quiz-privacy label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; cursor: pointer; }
.sp-quiz-privacy .sp-quiz__btn { background: var(--d-bg-elevated, #181c28); border: 1px solid rgba(255, 255, 255, .1); color: var(--d-text, #fff); }
.sp-quiz-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.sp-quiz-stats div { padding: 12px; border-radius: 12px; background: rgba(255, 153, 51, .08); text-align: center; }
.sp-quiz-stats strong { display: block; font-size: 22px; color: var(--d-accent, #ff9933); font-variant-numeric: tabular-nums; }
.sp-quiz-stats span { font-size: 12px; color: var(--d-text-muted, #b0adc0); }
.sp-quiz-table-wrap { overflow-x: auto; }
.sp-quiz-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sp-quiz-table caption { text-align: left; padding-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--d-text-muted, #b0adc0); }
.sp-quiz-table th, .sp-quiz-table td { padding: 9px 10px; border-bottom: 1px solid rgba(255, 255, 255, .08); text-align: left; white-space: nowrap; }
.sp-quiz-table th { font-size: 12px; color: var(--d-text-muted, #b0adc0); }
.sp-quiz-empty { margin: 0; color: var(--d-text-muted, #b0adc0); }
.sp-quiz-log { margin-top: 14px; font-size: 14px; }
.sp-quiz-log summary { cursor: pointer; font-weight: 700; }
.sp-quiz-log ul { margin: 10px 0 0; padding-left: 18px; }
.sp-quiz-log li { margin-bottom: 6px; }
.sp-quiz-log li span { display: block; font-size: 12px; color: var(--d-text-muted, #b0adc0); }
@media (max-width: 600px) { .sp-quiz-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Portal transition (game entry and level clear) ---------- */
.sp-portal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, #0b1d3a 0%, #071022 60%, #030712 100%);
    opacity: 0;
    transition: opacity .25s ease;
    -webkit-mask: radial-gradient(circle at 50% 50%, transparent var(--hole, 0px), #000 calc(var(--hole, 0px) + 1px));
            mask: radial-gradient(circle at 50% 50%, transparent var(--hole, 0px), #000 calc(var(--hole, 0px) + 1px));
}
.sp-portal.is-on { opacity: 1; }
.sp-portal.is-out { animation: sp-portal-iris .8s cubic-bezier(.7, 0, .3, 1) forwards; }

@property --hole { syntax: "<length>"; inherits: false; initial-value: 0px; }
@keyframes sp-portal-iris { to { --hole: 150vmax; } }

/* Tunnel of paper-cut rings */
.sp-portal__tunnel { position: absolute; inset: 0; display: grid; place-items: center; }
.sp-portal__ring {
    position: absolute;
    width: 46vmin;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 3.2vmin solid;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 1.4vmin 3vmin rgba(0, 0, 0, .55), inset 0 1.4vmin 3vmin rgba(0, 0, 0, .55);
    -webkit-mask: repeating-conic-gradient(#000 0 7deg, rgba(0, 0, 0, .78) 7deg 10deg);
            mask: repeating-conic-gradient(#000 0 7deg, rgba(0, 0, 0, .78) 7deg 10deg);
    transform: scale(.05) rotate(0deg);
    opacity: 0;
    animation: sp-portal-zoom 2.6s calc(var(--i) * .13s) cubic-bezier(.45, 0, .2, 1) forwards;
}
.sp-portal__ring--0 { border-color: #1e3a8a; }
.sp-portal__ring--1 { border-color: #c2410c; }
.sp-portal__ring--2 { border-color: #f5b301; }
.sp-portal__ring--3 { border-color: #0e7490; }
@keyframes sp-portal-zoom {
    0%   { transform: scale(.05) rotate(calc(var(--i) * 25deg)); opacity: 0; }
    15%  { opacity: 1; }
    100% { transform: scale(calc(4.2 - var(--i) * .38)) rotate(calc(var(--i) * 25deg + 120deg)); opacity: 1; }
}

/* Sparks flying outward */
.sp-portal__sparks { position: absolute; inset: 0; }
.sp-portal__sparks i {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 14px;
    background: #fff6c8;
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
    filter: drop-shadow(0 0 6px #ffd54a);
    transform: rotate(calc(var(--j) * 30deg)) translateY(0) scale(0);
    animation: sp-portal-spark 1.6s calc(.7s + var(--j) * .05s) ease-out forwards;
}
@keyframes sp-portal-spark {
    0%   { transform: rotate(calc(var(--j) * 30deg)) translateY(0) scale(0); opacity: 1; }
    100% { transform: rotate(calc(var(--j) * 30deg)) translateY(-48vmin) scale(1.4); opacity: 0; }
}

/* Emblem and title */
.sp-portal__core {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    text-align: center;
    gap: 6px;
}
.sp-portal__emblem {
    width: 180px;
    height: 180px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle, #f6f1e3 0 56%, #d8cfb8 57% 60%, transparent 61%);
    box-shadow: 0 0 60px rgba(255, 213, 74, .45);
    transform: scale(0) rotate(-180deg);
    animation: sp-portal-pop .9s .75s cubic-bezier(.2, 1.4, .4, 1) forwards;
}
.sp-portal__emblem .sp-emblem { --s: 120px; --d: 1.6px; }
@keyframes sp-portal-pop { to { transform: scale(1) rotate(0); } }
.sp-portal__kicker,
.sp-portal__title { margin: 0; opacity: 0; animation: sp-portal-text .6s 1.25s ease-out forwards; }
.sp-portal__kicker {
    margin-top: 14px;
    font-weight: 700; font-size: 13px; line-height: 1.2;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: #ffd54a;
}
.sp-portal__title {
    font-weight: 800; font-size: clamp(28px, 5vw, 46px); line-height: 1.1;
    color: #fff;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .6);
    animation-delay: 1.4s;
}
@keyframes sp-portal-text { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Clouds that part at the start */
.sp-portal__cloud {
    position: absolute;
    top: -10%;
    bottom: -10%;
    width: 62%;
    background:
        radial-gradient(circle at 70% 20%, #f1f3f6 0 16%, transparent 16.5%),
        radial-gradient(circle at 85% 48%, #e4e8ee 0 19%, transparent 19.5%),
        radial-gradient(circle at 72% 78%, #f1f3f6 0 17%, transparent 17.5%),
        radial-gradient(circle at 92% 10%, #dfe4eb 0 12%, transparent 12.5%),
        radial-gradient(circle at 95% 92%, #e4e8ee 0 13%, transparent 13.5%),
        linear-gradient(#eef1f5, #dde2e9);
    -webkit-mask: linear-gradient(90deg, #000 70%, transparent 100%);
            mask: linear-gradient(90deg, #000 70%, transparent 100%);
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, .35));
    animation: sp-portal-cloud-l 1.1s .1s cubic-bezier(.6, 0, .3, 1) forwards;
}
.sp-portal__cloud--l { left: -2%; }
.sp-portal__cloud--r { right: -2%; transform: scaleX(-1); animation-name: sp-portal-cloud-r; }
@keyframes sp-portal-cloud-l { to { transform: translateX(-105%); } }
@keyframes sp-portal-cloud-r { from { transform: scaleX(-1); } to { transform: scaleX(-1) translateX(-105%); } }

@media (max-width: 680px) {
    .sp-portal__emblem { width: 140px; height: 140px; }
    .sp-portal__emblem .sp-emblem { --s: 92px; --d: 1.2px; }
}

/* Resumable learning release: shared brand, accessible controls and compact layouts. */
.sp-quiz [hidden] { display: none !important; }
.sp-quiz *, .sp-quiz *::before, .sp-quiz *::after { box-sizing: border-box; }
.sp-quiz__wrap { width: 100%; max-width: 1100px; }
.sp-quiz__modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 0; border: 0; text-align: left; }
.sp-quiz__modes legend { font-weight: 700; padding-top: 15px; }
.sp-quiz__modes label { margin: 0; border: 1px solid var(--q-line); border-radius: 14px; padding: 10px; cursor: pointer; color: var(--q-ink); }
.sp-quiz__modes label:has(:checked) { border-color: var(--q-saffron); background: rgba(255,153,51,.1); }
.sp-quiz__modes small { display: block; font-size: 12px; line-height: 1.5; color: var(--q-muted); }
.sp-quiz__start input[type="radio"], .sp-quiz__start input[type="checkbox"] { width: 18px; height: 18px; padding: 0; accent-color: var(--q-saffron); vertical-align: middle; }
.sp-quiz__start .sp-quiz__setting { display: inline-flex; gap: 8px; min-height: 44px; align-items: center; margin: 0 8px; }
.sp-quiz__explanation { padding: 18px; border: 1px solid var(--q-line); border-left: 3px solid var(--q-saffron); border-radius: 12px; color: var(--q-ink); line-height: 1.7; background: rgba(255,153,51,.06); margin: 16px 0; overflow-wrap: anywhere; text-align: left; }
.sp-quiz__report { margin-top: 15px; color: var(--q-muted); }
.sp-quiz__report summary { min-height: 44px; cursor: pointer; }
.sp-quiz__report textarea { width: 100%; min-height: 90px; color: var(--q-ink); background: var(--q-field); border: 1px solid var(--q-line); border-radius: 8px; padding: 12px; margin: 10px 0; }
.sp-quiz :focus-visible { outline: 3px solid #ffd27a; outline-offset: 4px; }
.sp-quiz__actions { flex-wrap: wrap; }
.sp-quiz__btn--play { animation: none; letter-spacing: .05em; }
.sp-quiz[data-calm="true"] *, .sp-quiz[data-calm="true"] *::before, .sp-quiz[data-calm="true"] *::after { animation: none !important; transition: none !important; }
.sp-quiz[data-paused="true"] * { animation-play-state: paused !important; }
.sp-quiz__question { overflow-wrap: anywhere; }
.sp-quiz__option { white-space: normal; }
@media (max-width: 600px) {
    .sp-quiz { padding: 18px 12px 55px; }
    .sp-quiz__hero { margin-bottom: 12px; }
    .sp-quiz__hero-emblem { height: 64px !important; margin: 0 auto 8px !important; }
    .sp-quiz__hero-emblem .sp-emblem { width: 64px !important; height: 64px !important; }
    .sp-quiz__title { font-size: 42px; }
    .sp-quiz__eyebrow { font-size: 10px; letter-spacing: .15em; }
    .sp-quiz__lead { font-size: 14px; margin-bottom: 12px; }
    .sp-quiz__rules { gap: 6px; margin-bottom: 12px; }
    .sp-quiz__rules li { padding: 7px 4px; border-radius: 10px; }
    .sp-quiz__rules b { font-size: 20px; }
    .sp-quiz__start { padding: 14px; border-radius: 16px; }
    .sp-quiz__hud { gap: 8px; padding: 10px; margin-bottom: 14px; }
    .sp-quiz__badge { width: 44px; height: 48px; }
    .sp-quiz__badge-gem { display: none; }
    .sp-quiz__hud-mid { font-size: 12px; }
    .sp-quiz__hud-right { flex-wrap: wrap; gap: 4px; }
    .sp-quiz__card { padding: 20px 14px; }
    .sp-quiz__map { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
    .sp-quiz__map li:nth-child(even) { transform: none; }
    .sp-quiz__map li::after { display: none; }
    .sp-quiz__modes { gap: 6px; }
    .sp-quiz__modes label { padding: 8px; }
}
@media print {
    body * { visibility: hidden; }
    .sp-quiz [data-screen="cert"], .sp-quiz [data-screen="cert"] * { visibility: visible; }
    .sp-quiz [data-screen="cert"] { position: absolute; inset: 0; color: #111; background: #fff; }
    .sp-quiz [data-screen="cert"] .sp-quiz__actions, .sp-quiz [data-share], .sp-quiz [data-cert-eyebrow], .sp-quiz [data-cert-heading], .sp-quiz [data-screen="cert"] .sp-quiz__win-emblem, .sp-quiz [data-screen="cert"] .sp-quiz__burst { display: none !important; }
    .sp-quiz__cert { width: 100%; max-width: none; }
    .sp-quiz__explanation { color: #111; }
}

.sp-quiz { background: #07070d; }
.sp-quiz [data-screen="cert"] .sp-quiz__win-emblem .sp-emblem { --s: 90px; }
.sp-quiz .sp-quiz__option:hover:not([disabled]), .sp-quiz .sp-quiz__btn:hover { transform: none; }
.sp-quiz .sp-quiz__option::before { content: none; }

.sp-quiz__preferences { text-align: left; padding: 12px 0 0; }
.sp-quiz__preferences > summary { min-height: 44px; cursor: pointer; color: var(--q-muted); font-size: 13px; line-height: 1.5; }
.sp-quiz__rules { margin-top: 22px; }
@media (max-width: 600px) {
    .sp-quiz__rules { grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: 18px; }
    .sp-quiz__rules span { font-size: 10px; }
}
