:root {
    --primary-red: #8B0000;
    --gold: #D4AF37;
    --beige: #FDF5E6;
    --dark: #2C2C2C;
    --glass: rgba(255, 255, 255, 0.98);
    --success: #1b5e20;
    --error: #b71c1c;
}

body {
    margin: 0;
    font-family: 'Comfortaa', sans-serif;
    background: var(--beige) url('https://www.transparenttextures.com/patterns/old-map.png');
    color: var(--dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.journey-map {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 900px;
    margin-bottom: 50px;
    position: relative;
    padding: 20px 0;
}

.journey-map::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background: #e0d5b8;
    z-index: 1;
}

.map-point {
    position: relative;
    z-index: 2;
    background: white;
    border: 3px solid var(--gold);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    transition: all 0.5s ease;
}

.map-point.active {
    background: var(--primary-red);
    color: white;
    transform: scale(1.2);
    box-shadow: 0 0 25px rgba(139, 0, 0, 0.3);
    border-color: var(--primary-red);
}

.map-point.completed {
    background: var(--gold);
    color: white;
}

.map-label {
    position: absolute;
    top: 60px;
    font-size: 0.8rem;
    white-space: nowrap;
    text-align: center;
    width: 120px;
    left: -35px;
    color: var(--primary-red);
    font-weight: bold;
    text-transform: uppercase;
}

.quiz-card {
    background: var(--glass);
    width: 100%;
    max-width: 800px;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    border: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
    margin-bottom: 40px;
}

.phase-indicator {
    text-align: center;
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: bold;
}

.question-counter {
    text-align: center;
    font-size: 1rem;
    color: #888;
    margin-bottom: 25px;
}

.question-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: 35px;
    line-height: 1.3;
    text-align: center;
    color: var(--primary-red);
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 600px) {
    .options-grid { grid-template-columns: 1fr; }
}

.option-btn {
    background: #fdfdfd;
    border: 2px solid #eee;
    padding: 20px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: left;
    font-family: inherit;
}

.option-btn:hover:not(:disabled) {
    border-color: var(--gold);
    background: #fffcf0;
    transform: translateY(-3px);
}

.option-btn.correct {
    background: #e8f5e9;
    border-color: var(--success);
    color: var(--success);
    font-weight: bold;
}

.option-btn.wrong {
    background: #ffebee;
    border-color: var(--error);
    color: var(--error);
}

#fact-box {
    display: none;
    margin-top: 30px;
    padding: 30px;
    background: #f9f7f2;
    border-radius: 15px;
    border-left: 5px solid var(--gold);
    animation: fadeIn 0.6s ease;
}

#fact-box h4 {
    margin: 0 0 15px 0;
    color: var(--primary-red);
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

#fact-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
    text-align: justify;
}

#next-btn {
    display: none;
    margin: 30px auto 0;
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 18px 50px;
    border-radius: 35px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(139, 0, 0, 0.2);
    transition: 0.3s;
}

#next-btn:hover { background: #6b0000; transform: scale(1.05); }

.result-screen {
    display: none;
    text-align: center;
    animation: fadeIn 0.8s;
}

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.score-circle {
    width: 150px;
    height: 150px;
    border: 8px solid var(--gold);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    background: white;
}

.score-val { 
    font-size: 2.5rem; 
    font-weight: bold; 
    color: var(--primary-red); 
}