/* ═══════════════════════════════════════════
   QUIZ — "Quanto mi conosci"
   The card shell is static markup in index.html; js/quiz.js renders
   one question at a time (and finally the result) inside .quiz-stage.
   ═══════════════════════════════════════════ */

.quiz-panel {
    text-align: center;
}

.quiz-card {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
    background: linear-gradient(160deg, rgba(22, 4, 15, 0.94), rgba(5, 0, 5, 0.97));
    border: 1px solid rgba(255, 42, 133, 0.3);
    border-radius: 1.5rem;
    padding: 2.6rem 2rem;
    box-shadow: 0 0 80px rgba(255, 42, 133, 0.12);
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

/* ── Progress dots ── */
.quiz-dots-slot {
    margin-bottom: 1.8rem;
}
.quiz-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}
.quiz-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 42, 133, 0.2);
    transition: all 0.4s cubic-bezier(.34, 1.56, .64, 1);
}
.quiz-dot.is-done {
    background: var(--neon);
}
.quiz-dot.is-current {
    width: 22px;
    border-radius: 4px;
    background: var(--neon);
    box-shadow: 0 0 10px var(--neon-glow);
}

/* ── Question ── */
.quiz-stage {
    flex: 1;
    display: flex;
    align-items: center;
}
.quiz-question {
    width: 100%;
    animation: quizFadeIn 0.5s cubic-bezier(.16, 1, .3, 1);
}
.quiz-question-title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(1.3rem, 4vw, 1.7rem);
    color: #fff;
    margin-bottom: 1.8rem;
    line-height: 1.4;
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}
.quiz-option {
    font-family: inherit;
    font-size: 0.92rem;
    color: #ddd;
    text-align: left;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 42, 133, 0.22);
    border-radius: 0.9rem;
    padding: 0.9rem 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.quiz-option:hover:not(:disabled) {
    border-color: rgba(255, 42, 133, 0.55);
    background: rgba(255, 42, 133, 0.06);
    transform: translateY(-2px);
}
.quiz-option:focus-visible {
    outline: 2px solid var(--neon);
    outline-offset: 2px;
}
.quiz-option:disabled {
    cursor: default;
    opacity: 0.45;
}
.quiz-option.is-selected {
    opacity: 1;
    border-color: var(--neon);
    background: rgba(255, 42, 133, 0.14);
    color: #fff;
    animation: optionPop 0.4s ease;
}

/* ── Result screen ── */
.quiz-result {
    position: relative;
    width: 100%;
    animation: quizFadeIn 0.6s cubic-bezier(.16, 1, .3, 1);
}
.quiz-result-hearts {
    position: absolute;
    top: -1rem;
    left: -1rem;
    right: -1rem;
    height: 160px;
    pointer-events: none;
}
.quiz-heart-piece {
    position: absolute;
    bottom: 0;
    color: var(--neon);
    text-shadow: 0 0 8px var(--neon-glow);
    opacity: 0;
    pointer-events: none;
    animation: confettiRise 2.2s ease-out forwards;
}
.quiz-result-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--neon);
    border: 1px solid rgba(255, 42, 133, 0.35);
    background: rgba(255, 42, 133, 0.08);
    padding: 0.7rem 1.6rem;
    border-radius: 100px;
    margin-bottom: 1.4rem;
}
.quiz-result-score {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.6rem;
}
.quiz-result-sweet {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.15rem;
    color: #fff;
    line-height: 1.6;
    max-width: 420px;
    margin: 0 auto 2rem;
    text-shadow: 0 0 20px var(--neon-glow);
}
.quiz-retry {
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--neon);
    background: transparent;
    border: 1px solid rgba(255, 42, 133, 0.4);
    border-radius: 100px;
    padding: 0.75rem 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.quiz-retry:hover {
    background: rgba(255, 42, 133, 0.12);
    border-color: var(--neon);
}
.quiz-retry:focus-visible {
    outline: 2px solid var(--neon);
    outline-offset: 3px;
}
