/* =============================================
   PRIVY — Quiz Styles (Single Source)
   ============================================= */

.quiz-container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-h) + 16px) 14px 80px;
}

.quiz-card {
    max-width: 500px;
    width: 100%;
    background: var(--surface);
    backdrop-filter: blur(32px) saturate(160%);
    -webkit-backdrop-filter: blur(32px) saturate(160%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 22px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 22px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .04);
}

.quiz-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(180deg, rgba(255, 255, 255, .025) 0%, transparent 100%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    pointer-events: none;
}

/* Question visibility */
.question {
    display: none;
}

.question.active {
    display: block;
    animation: cardReveal .4s var(--ease);
}

/* Progress Bar */
.progress-container {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, .025);
    z-index: 200;
}

.progress-bar {
    height: 100%;
    width: 100%;
    background: var(--grad);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.5s var(--ease-out);
    box-shadow: 0 0 6px var(--purple);
}

.progress-text {
    text-align: center;
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: .1em;
}

/* Options */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.option-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all .25s var(--ease);
    text-align: left;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
}

.option-btn:hover {
    background: rgba(168, 85, 247, .05);
    border-color: rgba(168, 85, 247, .18);
    transform: translateX(3px);
}

.option-btn:active {
    transform: scale(0.98);
}

.option-btn.selected {
    background: rgba(168, 85, 247, .08);
    border-color: var(--purple);
    box-shadow: 0 2px 10px rgba(168, 85, 247, .12);
}

.option-dot {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 11px;
    transition: all .25s var(--ease);
}

.option-btn.selected .option-dot {
    background: var(--grad);
    border-color: transparent;
    box-shadow: 0 0 6px rgba(168, 85, 247, .35);
}

.option-btn.selected .option-dot::after {
    content: '✓';
    font-weight: 700;
    color: #fff;
}

/* Results Screen */
.results-screen {
    display: none;
}

.results-screen.active {
    display: block;
    animation: cardReveal .5s var(--ease);
}

.results-icon {
    font-size: 52px;
    margin-bottom: 12px;
    animation: iconBounce .5s var(--ease-spring);
}

.discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 12px 24px;
    background: var(--grad);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 800;
    margin: 14px 0;
    box-shadow: 0 0 12px rgba(168, 85, 247, .2);
}

.discount-number {
    font-size: 22px;
    color: var(--gold);
    text-shadow: 0 0 6px rgba(251, 191, 36, .35);
}

/* Confetti */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti-particle {
    position: absolute;
    top: -10px;
    width: 6px;
    height: 6px;
    background: var(--c-color);
    left: var(--c-left);
    opacity: 1;
    border-radius: 2px;
    will-change: transform, opacity;
    animation: confettiFall var(--c-dur) linear forwards;
    animation-delay: var(--c-delay);
}

.micro-confetti {
    position: fixed;
    width: 4px;
    height: 4px;
    background: var(--mc-color);
    left: var(--mc-x);
    top: var(--mc-y);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    will-change: transform, opacity;
    animation: microPop 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Shimmer layer for results */
.level-unlocked-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    animation: shimmerPass 2s infinite;
    pointer-events: none;
}

/* Mobile */
@media (max-width: 767px) {
    .quiz-card {
        padding: 24px 16px;
    }

    .option-btn {
        padding: 11px 12px;
        font-size: 12px;
    }
}