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

body {
    margin: 0;
    overflow: hidden;
    background: #1a1a1a;
    font-family: 'Roboto', sans-serif;
    color: white;
    user-select: none; /* Prevent selection */
    -webkit-user-select: none;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

canvas {
    display: block;
    /* Optional: shadow or border, but renderer handles most */
}

#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;
    text-align: center;
    z-index: 10;
}

h1, h2, h3 {
    font-family: 'Audiowide', cursive;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    margin: 0 0 20px 0;
    letter-spacing: 2px;
}

h1 { font-size: 3.5rem; color: #00ffff; }
h2 { font-size: 3rem; color: #ff0055; }
h3 { font-size: 1.5rem; color: #ffff00; margin-bottom: 15px; }

.menu, .game-over {
    background: rgba(20, 20, 20, 0.9);
    padding: 50px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 40px rgba(0,0,0,0.8), inset 0 0 0 1px rgba(255,255,255,0.1);
    pointer-events: auto;
    animation: fadeIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 400px;
    width: 90%;
}

.score {
    position: absolute;
    top: 30px;
    right: 30px;
    font-family: 'Audiowide', cursive;
    font-size: 2rem;
    color: white;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
    pointer-events: none;
}

.message {
    font-family: 'Audiowide', cursive;
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 0 0 20px #00ffff;
    margin-top: 20px;
}

.btn {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    border: none;
    padding: 15px 40px;
    color: white;
    font-family: 'Audiowide', cursive;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0, 114, 255, 0.4);
    margin: 10px;
    outline: none;
    letter-spacing: 1px;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 114, 255, 0.6);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 114, 255, 0.4);
}

.btn.secondary {
    background: linear-gradient(135deg, #434343, #2b2b2b);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    color: #ddd;
}
.btn.secondary:hover {
    color: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.7);
}

.highscores {
    margin-top: 30px;
    width: 100%;
    text-align: center;
}

.highscores ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.highscores li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-family: 'Audiowide', cursive;
    font-size: 1.2rem;
    color: #ccc;
    display: flex;
    justify-content: center;
}
.highscores li:first-child {
    color: #ffd700;
    font-size: 1.4rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.pulse {
    animation: pulse 1.5s infinite;
}

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

/* Mobile adjustments */
@media (max-width: 600px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .btn { padding: 12px 30px; font-size: 1rem; }
    .score { font-size: 1.5rem; top: 15px; right: 15px; }
}
