:root {
    --primary-glow: #D92525;
    --secondary-glow: #6366F1;
}

.game-wrapper {
    padding-top: 120px;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top right, rgba(217, 37, 37, 0.05), transparent),
        radial-gradient(circle at bottom left, rgba(99, 102, 241, 0.05), transparent);
}

.game-card {
    width: 92%;
    max-width: 750px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem);
    text-align: center;
    display: none;
    animation: fadeIn 0.4s ease-out;
    min-height: 450px;
}

.game-card.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.game-card:hover {
    border-color: rgba(255, 255, 255, 0.4) !important;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Start Screen Custom */
.rush-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(217, 37, 37, 0.1);
    color: var(--primary-glow);
    border: 1px solid rgba(217, 37, 37, 0.2);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.glow-text {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stats-preview {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2.5rem 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--primary-glow);
}

/* Game Screen */
.game-header {
    margin-bottom: 2rem;
}

.game-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.timer {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-glow);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.score {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}

.combo-badge {
    background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
    color: #fff;
    padding: 0.25rem 1rem;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 1rem;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.combo-badge.hidden {
    display: none;
}

.combo-pop {
    animation: comboPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes comboPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

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

.progress-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--primary-glow), var(--secondary-glow));
    transition: width 1s linear;
}

.question-box {
    padding: 2rem 0;
}

.question-box h2 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    color: #fff;
    min-height: 100px;
    /* Provides consistent height for short vs wrapped text */
    display: flex;
    align-items: center;
    justify-content: center;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    min-height: 160px;
    /* Provides consistent height for the buttons area */
}

.option-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 1.2rem;
    border-radius: 12px;
    color: var(--text-secondary);
    font-family: 'Inter', 'Noto Sans Bengali', sans-serif;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.option-btn.correct {
    background: rgba(16, 185, 129, 0.1) !important;
    border-color: #10B981 !important;
    color: #10B981 !important;
}

.option-btn.wrong {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: #EF4444 !important;
    color: #EF4444 !important;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    50% {
        transform: translateX(10px);
    }

    75% {
        transform: translateX(-5px);
    }
}

/* Result Screen */
.trophy-icon {
    font-size: 4rem;
    color: var(--primary-glow);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px rgba(217, 37, 37, 0.3));
}

.final-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin: 3rem 0;
}

.final-stat {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.final-stat label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.final-stat .value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}

.action-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.icon-btn:hover {
    color: #fff !important;
}

.btn-large {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

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

    .final-stats {
        grid-template-columns: 1fr;
    }
}