/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a3e 100%);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    max-width: 600px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #6c63ff, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== START SCREEN ===== */
.start-screen {
    text-align: center;
}

.start-screen p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.start-screen p:first-of-type {
    margin-bottom: 4px;
}

#start-btn {
    padding: 14px 40px;
    background: #6c63ff;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 16px;
}

#start-btn:hover {
    background: #5a52d9;
    transform: scale(1.05);
}

/* ===== QUIZ SCREEN ===== */
.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
}

.quiz-progress {
    flex: 1;
}

#question-number {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    display: block;
    margin-bottom: 4px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6c63ff, #3b82f6);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.quiz-timer {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.quiz-timer.warning {
    color: #ff6b6b;
    border-color: #ff6b6b;
}

.quiz-timer.danger {
    color: #ff4757;
    border-color: #ff4757;
    animation: pulse 0.5s ease infinite alternate;
}

@keyframes pulse {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

.quiz-question {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.6;
    min-height: 60px;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-options button {
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    text-align: left;
}

.quiz-options button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    border-color: #6c63ff;
}

.quiz-options button.correct {
    background: rgba(46, 213, 115, 0.15);
    border-color: #2ed573;
    color: #2ed573;
}

.quiz-options button.wrong {
    background: rgba(255, 71, 87, 0.15);
    border-color: #ff4757;
    color: #ff4757;
}

.quiz-options button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* ===== RESULT SCREEN ===== */
.result-screen {
    text-align: center;
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 8px;
}

.result-screen h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.result-score {
    margin: 16px 0;
}

.score-number {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6c63ff, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.score-total {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.3);
}

.result-message {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

#restart-btn {
    padding: 14px 40px;
    background: #6c63ff;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
}

#restart-btn:hover {
    background: #5a52d9;
    transform: scale(1.05);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .quiz-question {
        font-size: 1.1rem;
    }

    .score-number {
        font-size: 3rem;
    }
}
