:root {
    --invader-green: #22c55e;
    --invader-bg: #020617;
    --player-blue: #3b82f6;
    --danger-red: #ef4444;
}

body {
    margin: 0;
    padding: 0;
    background: radial-gradient(ellipse at 50% 0%, #0f172a 0%, #020617 70%);
    font-family: 'Outfit', sans-serif;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.game-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 1.5rem;
}

.header-controls {
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-btn {
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.back-btn:hover {
    color: var(--invader-green);
}

.game-wrapper {
    position: relative;
    padding: 10px;
    background: #000;
    border: 3px solid #1e293b;
    border-radius: 1rem;
    box-shadow: 0 0 50px rgba(34, 197, 94, 0.1);
}

#gameCanvas {
    display: block;
    background: radial-gradient(circle at center, #020617 0%, #000 100%);
    border-radius: 0.5rem;
}

.stats-bar {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 800px;
    background: rgba(15, 23, 42, 0.6);
    padding: 1rem 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.3rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--invader-green);
    text-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    border-radius: 0.5rem;
    transition: opacity 0.5s;
}

.overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.overlay h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #fff;
}

.primary-btn {
    background: var(--invader-green);
    color: #052e16;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.primary-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4);
}
