/* ============================================================================
   QUIZ ROYAL — Styles dédiés
   ============================================================================ */

.quiz-screen {
    animation: fadeInUp 0.4s ease;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------------ */
/* Écran démarrage                                                    */
/* ------------------------------------------------------------------ */
.quiz-start-card {
    background: linear-gradient(135deg, rgba(232, 184, 64, 0.18) 0%, rgba(196, 60, 176, 0.12) 100%);
    border: 1.5px solid rgba(232, 184, 64, 0.4);
    border-radius: 24px;
    padding: 32px 22px;
    text-align: center;
    backdrop-filter: blur(10px);
}
.quiz-start-icon {
    font-size: 64px;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 20px var(--gold));
    animation: float 3s ease-in-out infinite;
}
.quiz-start-title {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    color: var(--gold);
    letter-spacing: 2.5px;
    margin-bottom: 8px;
}
body.lang-he .quiz-start-title { font-family: 'Frank Ruhl Libre', serif; letter-spacing: 0; }
.quiz-start-meta {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: var(--text-dim);
    letter-spacing: 1px;
    margin-bottom: 14px;
}
.quiz-start-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 14.5px;
    color: var(--text);
    margin-bottom: 24px;
    line-height: 1.5;
}
body.lang-he .quiz-start-tagline { font-family: 'Frank Ruhl Libre', serif; font-style: normal; }

/* ------------------------------------------------------------------ */
/* Progression                                                        */
/* ------------------------------------------------------------------ */
.quiz-progress { margin-bottom: 18px; }
.quiz-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-family: 'Outfit', sans-serif;
}
.quiz-progress-current {
    font-size: 13px;
    color: var(--text-dim);
    letter-spacing: 1px;
}
.quiz-progress-score {
    font-size: 13px;
    color: var(--text-dim);
}
.quiz-progress-score strong {
    color: var(--gold);
    font-size: 18px;
    font-family: 'Cinzel', serif;
    margin-left: 4px;
}
.quiz-progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 100px;
    overflow: hidden;
    border: 1px solid rgba(232, 184, 64, 0.2);
}
.quiz-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--magenta) 0%, var(--gold) 100%);
    border-radius: 100px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ------------------------------------------------------------------ */
/* Carte question                                                     */
/* ------------------------------------------------------------------ */
.quiz-question-card {
    background: linear-gradient(135deg, rgba(196, 60, 176, 0.15) 0%, rgba(232, 184, 64, 0.08) 100%);
    border: 1.5px solid rgba(232, 184, 64, 0.35);
    border-radius: 22px;
    padding: 22px 18px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}
.quiz-question-cat {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--rose-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    background: rgba(230, 164, 180, 0.12);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 14px;
    border: 1px solid rgba(230, 164, 180, 0.3);
}
.quiz-question-text {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    line-height: 1.4;
    color: var(--text);
    letter-spacing: 0.5px;
}
body.lang-he .quiz-question-text {
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 19px;
    letter-spacing: 0;
}

/* ------------------------------------------------------------------ */
/* Options                                                            */
/* ------------------------------------------------------------------ */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}
.quiz-option {
    background: rgba(255,255,255,0.05);
    border: 1.5px solid rgba(232, 184, 64, 0.25);
    border-radius: 16px;
    padding: 14px 16px;
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
    transition: var(--t-fast);
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}
body.lang-he .quiz-option { text-align: right; }
.quiz-option:active { transform: scale(0.98); }
.quiz-option:hover  { border-color: var(--gold); background: rgba(232, 184, 64, 0.08); }
.quiz-option-letter {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(232, 184, 64, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--gold);
}
.quiz-option-text {
    flex: 1;
    line-height: 1.3;
}

/* États après réponse */
.quiz-option.disabled { pointer-events: none; opacity: 0.65; }
.quiz-option.correct {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.25) 0%, rgba(56, 142, 60, 0.15) 100%);
    border-color: #4caf50;
    opacity: 1;
}
.quiz-option.correct .quiz-option-letter {
    background: #4caf50;
    color: white;
    border-color: #4caf50;
}
.quiz-option.wrong {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.25) 0%, rgba(211, 47, 47, 0.15) 100%);
    border-color: #f44336;
}
.quiz-option.wrong .quiz-option-letter {
    background: #f44336;
    color: white;
    border-color: #f44336;
}

/* Feedback */
.quiz-feedback {
    background: rgba(255,255,255,0.04);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 14.5px;
    text-align: center;
}
body.lang-he .quiz-feedback { font-family: 'Frank Ruhl Libre', serif; font-style: normal; }
.quiz-feedback.correct {
    background: rgba(76, 175, 80, 0.15);
    color: #b8e0bb;
    border: 1px solid rgba(76, 175, 80, 0.4);
}
.quiz-feedback.wrong {
    background: rgba(244, 67, 54, 0.12);
    color: #ffb8b3;
    border: 1px solid rgba(244, 67, 54, 0.4);
}

/* ------------------------------------------------------------------ */
/* Écran final                                                        */
/* ------------------------------------------------------------------ */
.quiz-end-card {
    background: linear-gradient(135deg, rgba(232, 184, 64, 0.22) 0%, rgba(196, 60, 176, 0.15) 100%);
    border: 1.5px solid rgba(232, 184, 64, 0.5);
    border-radius: 24px;
    padding: 32px 22px;
    text-align: center;
    box-shadow: 0 0 40px rgba(232, 184, 64, 0.25);
}
.quiz-end-icon {
    font-size: 72px;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 24px var(--gold));
    animation: bounce 1s ease-in-out infinite alternate;
}
.quiz-end-title {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    color: var(--gold);
    letter-spacing: 2.5px;
    margin-bottom: 18px;
}
body.lang-he .quiz-end-title { font-family: 'Frank Ruhl Libre', serif; letter-spacing: 0; }
.quiz-end-score {
    font-family: 'Cinzel', serif;
    font-size: 60px;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 4px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--sparkle) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 16px rgba(232, 184, 64, 0.4));
}
.quiz-end-score-total {
    font-size: 22px;
    color: var(--text-dim);
    -webkit-text-fill-color: initial;
    background: none;
}
.quiz-end-rank {
    font-family: 'Pacifico', cursive;
    font-size: 22px;
    color: var(--magenta);
    margin: 16px 0 24px;
}
body.lang-he .quiz-end-rank {
    font-family: 'Frank Ruhl Libre', serif;
    font-weight: 900;
}

.quiz-end-card .btn { margin-bottom: 8px; }
