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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e1b4b 0%, #7e22ce 50%, #be185d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 800px;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeIn 0.5s ease-out;
}

@media (max-width: 640px) {
    .card {
        padding: 24px;
        border-radius: 20px;
    }
}

.icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: block;
}

@media (max-width: 640px) {
    .icon {
        width: 64px;
        height: 64px;
    }
}

.icon-pulse {
    animation: pulse 2s infinite;
}

.icon-bounce {
    animation: bounce 1s infinite;
}

h1 {
    font-size: 3.5rem;
    font-weight: bold;
    color: white;
    text-align: center;
    margin-bottom: 16px;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

@media (max-width: 640px) {
    h1 {
        font-size: 2.5rem;
    }
}

.subtitle {
    font-size: 1.25rem;
    color: #e9d5ff;
    text-align: center;
    margin-bottom: 32px;
}

@media (max-width: 640px) {
    .subtitle {
        font-size: 1rem;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.875rem;
    color: #e9d5ff;
}

.btn-primary {
    background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
    color: #1f2937;
    font-weight: bold;
    font-size: 1.25rem;
    padding: 20px 48px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 auto;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.3);
}

.btn-primary:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(251, 191, 36, 0.4);
}

@media (max-width: 640px) {
    .btn-primary {
        font-size: 1rem;
        padding: 16px 32px;
    }
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .game-header {
        flex-direction: column;
    }
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-box svg {
    width: 32px;
    height: 32px;
}

.stat-info {
    text-align: left;
}

.stat-info-label {
    font-size: 0.875rem;
    color: #e9d5ff;
}

.stat-info-value {
    font-size: 1.875rem;
    font-weight: bold;
    color: white;
}

.time-warning {
    color: #f87171;
    animation: pulse 1s infinite;
}

.streak-badge {
    background: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: bold;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.category-badge {
    background: rgba(168, 85, 247, 0.5);
    padding: 8px 16px;
    border-radius: 50px;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
}

.question-counter {
    color: #e9d5ff;
    font-weight: 600;
}

.question-text {
    font-size: 1.875rem;
    font-weight: bold;
    color: white;
    margin-bottom: 32px;
    line-height: 1.4;
}

@media (max-width: 640px) {
    .question-text {
        font-size: 1.25rem;
    }
}

.answers-grid {
    display: grid;
    gap: 16px;
}

.answer-btn {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    color: white;
    font-weight: 600;
    padding: 20px 24px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.answer-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

@media (max-width: 640px) {
    .answer-btn {
        font-size: 0.875rem;
        padding: 16px 16px;
    }
}

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

.answer-letter {
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.answer-correct {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.answer-incorrect {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.answer-disabled {
    background: #4b5563;
    opacity: 0.5;
}

.result-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 24px;
    display: block;
}

.result-title {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 16px;
}

@media (max-width: 640px) {
    .result-title {
        font-size: 2rem;
    }
}

.result-correct {
    color: #4ade80;
}

.result-incorrect {
    color: #f87171;
}

.result-points {
    font-size: 1.25rem;
    color: #e9d5ff;
    text-align: center;
    margin-bottom: 32px;
}

.final-score {
    background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
    color: #1f2937;
    font-weight: bold;
    font-size: 3.5rem;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 32px;
}

@media (max-width: 640px) {
    .final-score {
        font-size: 2.5rem;
    }
}

.final-stats {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.final-stats p {
    font-size: 1.25rem;
    color: #e9d5ff;
    margin-bottom: 16px;
}

.final-percentage {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
}

.hidden {
    display: none;
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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