:root {
    --bg-color: #0d1117;
    --card-bg: #161b22;
    --accent-color: #58a6ff;
    --secondary-accent: #bc8cff;
    --text-color: #c9d1d9;
    --text-dim: #8b949e;
    --danger: #f85149;
    --success: #3fb950;
    --bubble-primary: #ff5f6d;
    --bubble-secondary: #ffc371;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

#game-container {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 
                inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 900px;
    width: 95%;
}

header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    font-size: 1.8rem;
    letter-spacing: 2px;
    font-weight: 700;
}

.highlight {
    color: var(--accent-color);
    text-shadow: 0 0 15px rgba(88, 166, 255, 0.4);
}

#stats {
    display: flex;
    gap: 2rem;
}

.stat {
    font-size: 0.9rem;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.stat span {
    color: var(--text-color);
    font-weight: 700;
    margin-left: 5px;
    font-variant-numeric: tabular-nums;
}

#gameCanvas {
    background: radial-gradient(circle at center, #1c2128, #0d1117);
    border-radius: 1rem;
    border: 2px solid rgba(88, 166, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
    image-rendering: pixelated;
    max-width: 100%;
}

footer {
    width: 100%;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.key {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--text-color);
    font-weight: 700;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

/* Animations */
/* Touch Controls */
#touch-controls {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 1rem;
    gap: 1rem;
}

.control-group {
    display: flex;
    gap: 1rem;
}

.touch-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-size: 1.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
    touch-action: manipulation;
}

.touch-btn:active {
    background: var(--accent-color);
    transform: scale(0.95);
    box-shadow: 0 0 20px rgba(88, 166, 255, 0.4);
}

.shoot-btn {
    background: rgba(188, 140, 255, 0.1);
    border-color: rgba(188, 140, 255, 0.2);
    font-weight: 700;
    flex-grow: 1;
}

.shoot-btn:active {
    background: var(--secondary-accent);
}

@media (min-width: 1024px) {
    #touch-controls {
        display: none; /* Hide on desktop unless manually toggled */
    }
}
