:root {
    --neon-blue: #00f3ff;
    --neon-pink: #ff00ff;
    --cosmic-bg: #0b0e14;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--cosmic-bg);
    color: white;
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #1a1a2e 0%, #0b0e14 100%);
}

canvas {
    display: block;
}

#ui-overlay {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#player-stats {
    display: flex;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
}

.player-card {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border: 2px solid var(--neon-blue);
    border-radius: 10px;
    width: 300px;
    box-shadow: 0 0 15px var(--neon-blue);
}

#p2-info {
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px var(--neon-pink);
}

.progress-container {
    width: 100%;
    height: 10px;
    background: #333;
    margin: 10px 0;
    border-radius: 5px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    transition: width 0.5s ease-out;
}

#p1-progress { background: var(--neon-blue); }
#p2-progress { background: var(--neon-pink); }

#turn-indicator {
    margin-top: 20px;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px white;
}

#message-box {
    margin-top: 10px;
    font-size: 18px;
    color: #ffeb3b;
    min-height: 24px;
}

#controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#power-meter {
    width: 300px;
    height: 30px;
    background: #222;
    border: 2px solid white;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

#power-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #4caf50, #ffeb3b, #f44336);
}

#target-zone {
    position: absolute;
    top: 0;
    height: 100%;
    width: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-left: 2px solid white;
    border-right: 2px solid white;
}

#shoot-btn {
    padding: 15px 40px;
    font-size: 24px;
    font-weight: bold;
    background: transparent;
    color: white;
    border: 3px solid white;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 5px;
}

#shoot-btn:active {
    background: white;
    color: black;
}

#winner-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.hidden { display: none !important; }

.rewards {
    margin: 30px 0;
    text-align: center;
}

.reward-item {
    font-size: 24px;
    margin: 10px 0;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.glitch-text {
    position: relative;
}

.glitch-text::before, .glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
