@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Rajdhani:wght@300;500;700&display=swap');

:root {
    --primary-glow: #00f2ff;
    --accent-glow: #7000ff;
    --bg-dark: #050505;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-color);
    font-family: 'Rajdhani', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    background: radial-gradient(circle at center, #1a1a2e 0%, #050505 100%);
}

#game-container {
    position: relative;
    width: 800px;
    height: 600px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* UI Overlay */
#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

#menu,
#game-over {
    pointer-events: all;
    background: rgba(10, 10, 10, 0.85);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--primary-glow);
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.2);
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#menu.hidden,
#game-over.hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    margin-bottom: 2rem;
    background: linear-gradient(to right, var(--primary-glow), var(--accent-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

.difficulty-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}





button {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1.5rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    border-color: var(--primary-glow);
    box-shadow: 0 0 15px var(--primary-glow);
    background: rgba(0, 242, 255, 0.1);
}

button.active {
    background: var(--primary-glow);
    color: #000;
    box-shadow: 0 0 20px var(--primary-glow);
    font-weight: bold;
}

#start-btn {
    width: 100%;
    font-size: 1.2rem;
    padding: 1rem;
    border-color: var(--accent-glow);
}

#start-btn:hover {
    background: var(--accent-glow);
    color: white;
    box-shadow: 0 0 20px var(--accent-glow);
}

/* Score Board */
#scoreboard {
    position: absolute;
    top: 20px;
    width: 100%;
    display: flex;
    justify-content: space-around;
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.player-score,
.ai-score {
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
}