* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
}

/* Screen Management */
.screen {
    display: none;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.screen.active {
    display: flex;
}

.container {
    width: 100%;
    max-width: 42rem;
}

/* Quiz Screen Styles */
#quiz-screen {
    background-color: #f3f4f6;
}

.header {
    margin-bottom: 2rem;
    text-align: center;
}

.question-badge {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-radius: 9999px;
    font-weight: bold;
}

.progress-bar {
    width: 100%;
    background-color: #e5e7eb;
    border-radius: 9999px;
    height: 0.5rem;
    margin-bottom: 1.5rem;
}

.progress-fill {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    height: 0.5rem;
    border-radius: 9999px;
    transition: width 0.3s ease;
}

.card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.question-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.6;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.option-btn {
    width: 100%;
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 2px solid #e5e7eb;
    background-color: white;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    font-size: 1rem;
}

.option-btn:hover:not(:disabled) {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.05);
}

.option-btn:disabled {
    cursor: not-allowed;
}

.option-label {
    font-size: 1.125rem;
    font-weight: bold;
}

.option-text {
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: -0.025em;
}

.option-icon {
    margin-left: auto;
}

.option-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Correct Answer */
.option-btn.correct {
    background-color: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
    color: #16a34a;
}

/* Wrong Answer */
.option-btn.wrong {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #dc2626;
}

/* Blink Animation */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.option-btn.animate-blink {
    animation: blink 0.5s ease-in-out 2;
}

/* Motivational Screen */
#motivational-screen {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.motivational-card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 3rem 2rem;
    text-align: center;
    border: 2px solid #3b82f6;
}

.motivational-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(59, 130, 246, 0);
    }
}

.motivational-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1e40af;
    margin-bottom: 1rem;
}

.motivational-text {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

/* Results Screen */
#results-screen {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

.trophy-icon {
    text-align: center;
    font-size: 4.5rem;
    margin-bottom: 2rem;
    animation: bounce 1s infinite;
}

.results-card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    border: 2px solid #16a34a;
}

.score-section {
    margin-bottom: 2rem;
}

.results-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #15803d;
    margin-bottom: 0.5rem;
}

.results-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.score-badge {
    display: inline-block;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: white;
    padding: 1rem 2rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

.score-total {
    font-size: 1.5rem;
}

.percentage-text {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 600;
}

.prize-section {
    background: linear-gradient(135deg, #f0fdf4, #fef3c7);
    border: 3px solid #16a34a;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.prize-label {
    font-size: 1.125rem;
    color: #374151;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.prize-badge {
    background: linear-gradient(135deg, #16a34a, #f59e0b);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    display: inline-block;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.prize-text {
    font-size: 1.5rem;
    font-weight: bold;
}

.prize-limit {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
    color: white;
}

.prize-cta-text {
    font-size: 1.125rem;
    color: #374151;
    margin-top: 1rem;
    font-weight: 600;
    text-align: center;
}

.scroll-indicator {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    animation: bounce-down 2s infinite;
}

@keyframes bounce-down {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.cta-section {
    margin-bottom: 0;
}

.footer-text {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 2rem;
    border-radius: 0.75rem;
    font-weight: bold;
    font-size: 1.25rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: 2px solid #1e40af;
    animation: pulse 2s infinite;
    position: relative;
    text-align: center;
    padding-right: 5rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.5);
}

.btn-arrow {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: bold;
}

.btn-claim {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: white;
    border: 2px solid #15803d;
}

.btn-claim:hover {
    background: linear-gradient(135deg, #15803d, #16a34a);
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(34, 197, 94, 0.5);
}

/* Responsive */
@media (min-width: 768px) {
    .question-text {
        font-size: 1.875rem;
    }

    .results-title {
        font-size: 3rem;
    }

    .motivational-title {
        font-size: 3rem;
    }

    .prize-text {
        font-size: 1.875rem;
    }
}
