/* ========================================
   NOVA AI GAMES - Game Screen
   Game Header, Timer, Container & Score Bar
   ======================================== */

/* Game Header */
.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    padding-top: calc(var(--spacing-lg) + var(--safe-top));
    background: var(--bg-secondary);
}

.game-info h2 {
    font-size: 18px;
    font-weight: 600;
}

.game-timer {
    font-size: 18px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Game Container */
.game-container {
    flex: 1;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Game Score Bar */
.game-score-bar {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
}

.score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.score-value {
    font-size: 24px;
    font-weight: 700;
}

/* Countdown Overlay */
.countdown-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.countdown-number {
    font-size: 120px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: countPulse 1s ease infinite;
}

@keyframes countPulse {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Result Screen */
#result-screen {
    justify-content: center;
    align-items: center;
    background: radial-gradient(ellipse at center, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: var(--spacing-xl);
}

.result-container {
    text-align: center;
    max-width: 320px;
    width: 100%;
}

.result-icon {
    font-size: 80px;
    margin-bottom: var(--spacing-md);
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

#result-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
}

.result-score {
    background: var(--bg-glass);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.result-label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.result-value {
    font-size: 48px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: var(--spacing-xl);
}

.result-stat {
    text-align: center;
}

.result-stat .stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.result-stat .stat-value {
    font-size: 18px;
    font-weight: 600;
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* Result Coins Earned */
.result-coins-earned {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(245, 158, 11, 0.15);
    border-radius: var(--radius-md);
    animation: coinBounce 0.5s ease;
}

@keyframes coinBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.coins-earned-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.coins-earned-value {
    font-size: 28px;
    font-weight: 800;
    color: #fbbf24;
}

.result-ad-container {
    margin: var(--spacing-lg) 0;
    min-height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
}