:root {
    --neon-pink: #ff2d95;
    --neon-pink-glow: rgba(255, 45, 149, 0.6);
    --neon-purple: #bc13fe;
    --neon-purple-glow: rgba(188, 19, 254, 0.6);
    --dark-bg: #05050a;
    --ui-bg: rgba(10, 10, 20, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

body {
    background-color: var(--dark-bg);
    font-family: 'Outfit', sans-serif;
    color: white;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 500px; /* Portrait ratio for desktop testing */
    aspect-ratio: 9/16;
    background-color: #000;
    box-shadow: 0 0 50px rgba(255, 45, 149, 0.2);
    overflow: hidden;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* HUD Styling */
.hud {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score-container {
    display: flex;
    flex-direction: column;
}

.label {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--neon-pink);
    font-weight: bold;
}

#score-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    text-shadow: 0 0 10px var(--neon-pink-glow);
}

.health-container {
    width: 120px;
}

#health-bar-bg {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

#health-bar-fill {
    width: 100%;
    height: 100%;
    background: var(--neon-pink);
    box-shadow: 0 0 10px var(--neon-pink);
    transition: width 0.3s ease;
}

/* Overlay Styling */
.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    text-align: center;
    background: var(--ui-bg);
    padding: 40px 20px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hidden {
    display: none !important;
}

.neon-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 40px;
    line-height: 1;
    color: white;
    text-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink);
    margin-bottom: 5px;
}

.neon-text-red {
    font-family: 'Orbitron', sans-serif;
    font-size: 30px;
    color: #ff4d4d;
    text-shadow: 0 0 10px #ff0000;
}

.tagline {
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--neon-pink);
    opacity: 0.8;
}

button {
    background: transparent;
    border: 2px solid var(--neon-pink);
    color: white;
    padding: 15px 30px;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 15px var(--neon-pink-glow);
}

button:hover {
    background: var(--neon-pink);
    box-shadow: 0 0 30px var(--neon-pink);
}

button:active {
    transform: scale(0.95);
}

button.btn-omega {
    border-color: var(--neon-purple);
    box-shadow: 0 0 15px var(--neon-purple-glow);
}

button.btn-omega:hover {
    background: var(--neon-purple);
    box-shadow: 0 0 30px var(--neon-purple);
}

.hint {
    font-size: 13px;
    opacity: 0.6;
    font-style: italic;
}

/* Micro-animations */
@keyframes pulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

.tagline {
    animation: pulse 2s infinite ease-in-out;
}
