/* ============================================
   QUIZ - PREMIUM REDESIGN v3
   Profile-centric, gamified, dark-first.
   Hero avatar, rich animations, 5-question model.
   ============================================ */

/* ── Quiz Flow Container ───────────────────── */
#quizFlow {
    background: #08090E;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    font-family: 'Figtree', system-ui, -apple-system, sans-serif;
}

/* Ambient glow */
#quizFlow::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(233,30,99,0.1) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

#quizFlow::after { content: none; }

.quiz-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.quiz-container::before { content: none; }

/* ── Header ────────────────────────────────── */
.quiz-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(8,9,14,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
    z-index: 10;
    gap: 12px;
    position: relative;
}

.quiz-back-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}
.quiz-back-btn:active { transform: scale(0.92); }

.quiz-header-center {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.quiz-branding-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E91E63, #c084fc);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px #08090E, 0 0 0 3px rgba(233,30,99,0.5);
}

.quiz-branding-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.quiz-header-profile-name {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quiz-header-step {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.5px;
}
.quiz-header-step span:first-child {
    color: #E91E63;
    font-size: 15px;
    font-weight: 700;
}

.quiz-header-spacer {
    width: 40px;
    flex-shrink: 0;
}

/* Difficulty badge in header */
.quiz-diff-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    border: none;
    background: transparent;
}
.quiz-diff-badge--easy { background: rgba(94,238,173,0.1); }
.quiz-diff-badge--medium { background: rgba(255,183,77,0.1); }
.quiz-diff-badge--hard { background: rgba(239,83,80,0.1); }

/* Remove old close button */
.quiz-close-btn { display: none !important; }

/* ── Progress Bar ──────────────────────────── */
.quiz-progress-bar-wrap {
    height: 3px;
    background: rgba(255,255,255,0.06);
    flex-shrink: 0;
    border-radius: 0;
    margin: 0;
    overflow: visible;
    position: relative;
    z-index: 10;
}

.quiz-progress-fill {
    height: 3px;
    background: linear-gradient(90deg, #C83A54, #E91E63, #FF7B8E);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0;
    position: relative;
    box-shadow: 0 0 12px rgba(233,30,99,0.5);
}

.quiz-progress-fill::after {
    content: '';
    position: absolute;
    right: -4px;
    top: -4px;
    width: 10px;
    height: 10px;
    background: #FF7B8E;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(255,123,142,0.8), 0 0 24px rgba(255,123,142,0.4);
}

/* ── Hero Avatar (floating above questions) ── */
.quiz-hero-avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.quiz-hero-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E91E63, #c084fc);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
    overflow: hidden;
    box-shadow:
        0 0 0 3px #08090E,
        0 0 0 4.5px rgba(233,30,99,0.4),
        0 8px 32px rgba(233,30,99,0.2);
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.quiz-hero-glow {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(233,30,99,0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transition: background 0.4s ease;
}

/* ── Question Content ──────────────────────── */
.quiz-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 28px 20px 32px;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 1;
}

.quiz-question-card {
    max-width: 480px;
    width: 100%;
    will-change: transform, opacity;
    background: transparent;
    border: none;
    box-shadow: none;
}

.quiz-question-card::before { content: none; }

.quiz-category {
    font-family: 'Figtree', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #E91E63;
    margin: 0 0 14px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    opacity: 0.8;
}

.quiz-category::before,
.quiz-category::after {
    content: '';
    width: 20px;
    height: 1px;
    background: rgba(233,30,99,0.3);
    display: inline-block;
    flex-shrink: 0;
}

.quiz-question {
    font-family: 'Bricolage Grotesque', Georgia, serif;
    font-size: 24px;
    font-weight: 600;
    color: #F0EDE8;
    margin: 0 0 32px;
    text-align: center;
    line-height: 1.35;
    letter-spacing: -0.3px;
}

/* ── Choice Cards ──────────────────────────── */
.quiz-choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-choice {
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 16px 18px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(240,237,232,0.85);
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.2s ease,
        color 0.2s ease,
        opacity 0.25s ease;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    outline: none;
    font-family: 'Figtree', sans-serif;
    line-height: 1.45;
    width: 100%;
    min-height: 56px;
}

.quiz-choice::before,
.quiz-choice::after { content: none; }

.quiz-choice-label {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255,255,255,0.07);
    border: 1.5px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    flex-shrink: 0;
    transition: all 0.2s ease;
    font-family: 'Figtree', sans-serif;
    letter-spacing: 0.5px;
}

.quiz-choice-text {
    flex: 1;
    font-family: 'Figtree', sans-serif;
}

.quiz-choice-emoji { display: none; }

/* Hover */
@media (hover: hover) {
    .quiz-choice:hover:not(.selected):not(.dimmed) {
        background: rgba(233,30,99,0.08);
        border-color: rgba(233,30,99,0.35);
        transform: translateY(-2px);
        color: #F0EDE8;
        box-shadow: 0 6px 24px rgba(233,30,99,0.12);
    }
    .quiz-choice:hover:not(.selected):not(.dimmed) .quiz-choice-label {
        background: rgba(233,30,99,0.15);
        border-color: rgba(233,30,99,0.4);
        color: #E91E63;
    }
}

.quiz-choice:active:not(.selected):not(.dimmed) {
    transform: scale(0.97);
    transition-duration: 0.1s;
}

/* Correct */
.quiz-choice.selected.correct {
    background: rgba(94,238,173,0.08);
    border-color: rgba(94,238,173,0.35);
    color: #5EEEAD;
    transform: translateY(0);
    box-shadow: 0 0 0 1px rgba(94,238,173,0.06) inset, 0 4px 20px rgba(94,238,173,0.1);
}
.quiz-choice.selected.correct .quiz-choice-label {
    background: #5EEEAD;
    border-color: #5EEEAD;
    color: #08090E;
    box-shadow: 0 0 16px rgba(94,238,173,0.4);
}

/* Incorrect */
.quiz-choice.selected.incorrect {
    background: rgba(239,83,80,0.07);
    border-color: rgba(239,83,80,0.28);
    color: rgba(239,130,128,0.9);
    transform: translateY(0);
    box-shadow: none;
}
.quiz-choice.selected.incorrect .quiz-choice-label {
    background: #EF5350;
    border-color: #EF5350;
    color: #fff;
    box-shadow: 0 0 12px rgba(239,83,80,0.3);
}

/* Dimmed */
.quiz-choice.dimmed {
    opacity: 0.28;
    pointer-events: none;
    transform: translateY(0);
}

/* ── Match Feedback Overlay ────────────────── */
.match-feedback {
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8,9,14,0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 100;
}

.match-content {
    background: #111318;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 40px 28px 32px;
    text-align: center;
    max-width: 300px;
    width: 100%;
    box-shadow: 0 32px 64px rgba(0,0,0,0.6);
    animation: matchPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.match-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    border-radius: 0 0 2px 2px;
}
.match-content.match-correct::before {
    background: linear-gradient(90deg, transparent, #5EEEAD 50%, transparent);
}
.match-content.match-incorrect::before {
    background: rgba(255,255,255,0.06);
}

@keyframes matchPop {
    from { transform: scale(0.8); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.match-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.match-content.match-correct .match-icon {
    background: rgba(94,238,173,0.1);
    border: 1.5px solid rgba(94,238,173,0.25);
    color: #5EEEAD;
    box-shadow: 0 0 28px rgba(94,238,173,0.15);
}

.match-content.match-incorrect .match-icon {
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.3);
}

.match-text {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.2px;
    margin: 0 0 6px;
    color: #F0EDE8;
}
.match-content.match-correct .match-text { color: #5EEEAD; }
.match-content.match-incorrect .match-text { color: rgba(255,255,255,0.35); }

.match-subtext {
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    color: rgba(240,237,232,0.4);
    line-height: 1.5;
    margin: 0;
}

/* ── Unlock Modal ──────────────────────────── */
.unlock-modal {
    background: rgba(8,9,14,0.94);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
}

.unlock-modal-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
}

.confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.unlock-card {
    background: linear-gradient(168deg, #141720 0%, #0C0D14 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 28px;
    padding: 32px 28px 36px;
    text-align: center;
    max-width: 360px;
    width: 100%;
    animation: unlockSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 2;
    box-shadow:
        0 40px 80px rgba(0,0,0,0.7),
        inset 0 1px 0 rgba(255,255,255,0.06);
    overflow: hidden;
}

/* Glow behind unlock card */
.unlock-card::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    height: 140px;
    background: radial-gradient(ellipse, rgba(233,30,99,0.12) 0%, transparent 70%);
    pointer-events: none;
}

@keyframes unlockSlideUp {
    from { transform: translateY(40px) scale(0.95); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* Profile avatar in unlock modal */
.unlock-profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: white;
    overflow: hidden;
    box-shadow:
        0 0 0 3px #141720,
        0 0 0 5px rgba(233,30,99,0.4),
        0 8px 28px rgba(233,30,99,0.2);
    position: relative;
    z-index: 2;
}

.unlock-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.unlock-card .unlock-icon {
    background: rgba(94,238,173,0.1);
    border: 1.5px solid rgba(94,238,173,0.25);
    color: #5EEEAD;
    box-shadow: 0 0 24px rgba(94,238,173,0.12);
}

.unlock-card--fail .unlock-icon {
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.1);
    color: rgba(240,237,232,0.28);
    box-shadow: none;
}

.unlock-title {
    font-family: 'Bricolage Grotesque', Georgia, serif;
    font-size: 26px;
    font-weight: 700;
    color: #F0EDE8;
    margin: 0 0 6px;
    letter-spacing: -0.4px;
    line-height: 1.2;
}

.unlock-subtitle {
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    color: rgba(240,237,232,0.4);
    margin: 0 0 24px;
    font-weight: 400;
}

.unlock-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.07);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.stat-number {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #E91E63;
    margin-bottom: 4px;
    line-height: 1;
}

.stat-label {
    font-family: 'Figtree', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(240,237,232,0.28);
}

/* Difficulty Badge */
.unlock-difficulty-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 14px;
    border-radius: 30px;
    font-family: 'Figtree', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.unlock-difficulty-badge.difficulty-easy {
    background: rgba(94,238,173,0.08);
    color: #5EEEAD;
    border: 1px solid rgba(94,238,173,0.18);
}
.unlock-difficulty-badge.difficulty-medium {
    background: rgba(255,183,77,0.08);
    color: #FFB74D;
    border: 1px solid rgba(255,183,77,0.18);
}
.unlock-difficulty-badge.difficulty-hard {
    background: rgba(239,83,80,0.08);
    color: #EF5350;
    border: 1px solid rgba(239,83,80,0.18);
}

/* CTA Buttons */
.unlock-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 28px;
    background: linear-gradient(135deg, #C83A54 0%, #E91E63 50%, #FF6B7A 100%);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-family: 'Figtree', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
    cursor: pointer;
    box-shadow:
        0 8px 28px rgba(233,30,99,0.35),
        inset 0 1px 0 rgba(255,255,255,0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.unlock-cta:active {
    transform: scale(0.98);
}

/* ── SUCCESS state enhancements ────────────── */
.unlock-card--success {
    overflow: hidden;
}

.unlock-success-glow {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(94,238,173,0.12) 0%, transparent 70%);
    pointer-events: none;
    animation: successGlowPulse 2s ease-in-out infinite;
}

@keyframes successGlowPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.unlock-avatar--success {
    box-shadow:
        0 0 0 3px #141720,
        0 0 0 5px rgba(94,238,173,0.5),
        0 8px 32px rgba(94,238,173,0.25) !important;
}

.unlock-success-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #5EEEAD;
    color: #08090E;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -12px auto 12px;
    box-shadow: 0 0 20px rgba(94,238,173,0.4);
    animation: successBadgePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 3;
}

@keyframes successBadgePop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.unlock-title--success {
    color: #5EEEAD !important;
    font-size: 28px !important;
}

.stat-number--success {
    color: #5EEEAD !important;
}

/* ── FAIL state: soft & encouraging ───────── */
.unlock-card--fail {
    border-color: rgba(255,255,255,0.06);
}

.unlock-avatar--fail {
    opacity: 0.7;
    filter: grayscale(30%);
    box-shadow:
        0 0 0 3px #141720,
        0 0 0 5px rgba(255,255,255,0.1) !important;
}

.unlock-fail-emoji {
    font-size: 32px;
    margin: -8px 0 8px;
    text-align: center;
    line-height: 1;
}

.unlock-title--fail {
    color: rgba(240,237,232,0.7) !important;
    font-size: 24px !important;
}

.unlock-card--fail .unlock-subtitle {
    color: rgba(240,237,232,0.4);
}

.unlock-stats--soft {
    border-color: rgba(255,255,255,0.05);
}

.unlock-stats--soft .stat-number {
    color: rgba(240,237,232,0.45);
    font-size: 24px;
}

.unlock-encourage {
    font-family: 'Figtree', sans-serif;
    color: rgba(240,237,232,0.45);
    font-size: 13px;
    margin: 0 0 6px;
    line-height: 1.5;
    text-align: center;
}

.unlock-encourage-spark {
    font-family: 'Figtree', sans-serif;
    color: rgba(233,30,99,0.7);
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 20px;
    line-height: 1.5;
    text-align: center;
}

/* Explore CTA for fail state */
.unlock-cta--explore {
    background: linear-gradient(135deg, rgba(233,30,99,0.15), rgba(192,132,252,0.1)) !important;
    border: 1.5px solid rgba(233,30,99,0.25) !important;
    color: #E91E63 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 10;
}
.unlock-cta--explore:active {
    background: rgba(233,30,99,0.2) !important;
    transform: scale(0.97);
}

.unlock-one-try-note {
    font-family: 'Figtree', sans-serif;
    color: rgba(240,237,232,0.3);
    font-size: 12px;
    margin-bottom: 18px;
    line-height: 1.5;
}

.unlock-cta-secondary {
    display: block;
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(240,237,232,0.4);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
    font-family: 'Figtree', sans-serif;
    -webkit-tap-highlight-color: transparent;
}
.unlock-cta-secondary:active {
    border-color: rgba(233,30,99,0.3);
    color: rgba(233,30,99,0.8);
}

/* ── Mobile Optimizations ──────────────────── */
@media (max-width: 420px) {
    .quiz-content {
        padding: 20px 16px 24px;
    }
    .quiz-question {
        font-size: 21px;
        margin-bottom: 26px;
    }
    .quiz-choice {
        padding: 14px 16px;
        border-radius: 12px;
        font-size: 14px;
        min-height: 52px;
    }
    .quiz-choice-label {
        width: 30px;
        height: 30px;
        font-size: 11px;
        border-radius: 8px;
    }
    .quiz-hero-avatar {
        width: 56px;
        height: 56px;
        font-size: 20px;
    }
    .match-content {
        padding: 32px 22px 26px;
    }
    .unlock-card {
        padding: 28px 20px 32px;
        border-radius: 24px;
    }
    .unlock-profile-avatar {
        width: 60px;
        height: 60px;
    }
    .unlock-title {
        font-size: 22px;
    }
    .stat-number {
        font-size: 24px;
    }
}

@media (max-width: 360px) {
    .quiz-question {
        font-size: 19px;
    }
    .quiz-choice {
        padding: 12px 14px;
        font-size: 13.5px;
        gap: 12px;
    }
    .quiz-choice-label {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }
}

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
    .quiz-choice {
        min-height: 56px;
    }
    .quiz-back-btn {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Focus visible */
.quiz-choice:focus-visible,
.unlock-cta:focus-visible,
.unlock-cta-secondary:focus-visible,
.quiz-back-btn:focus-visible {
    outline: 2px solid rgba(233,30,99,0.65);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .quiz-choice,
    .quiz-progress-fill,
    .match-content,
    .unlock-card,
    .quiz-hero-avatar {
        transition-duration: 0.05ms !important;
        animation-duration: 0.05ms !important;
    }
}

/* ── Old elements hidden ───────────────────── */
.quiz-progress-steps,
.quiz-branding,
.quiz-avatar,
.quiz-progress,
.quiz-progress-text,
.quiz-progress-bar {
    display: none !important;
}
