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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#menu {
    text-align: center;
    color: white;
    z-index: 100;
}

#menu h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    animation: pulse 2s infinite;
}

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

.mode-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.mode-btn {
    padding: 1.5rem 3rem;
    font-size: 1.5rem;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid white;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 10px;
}

.mode-btn:hover {
    background: white;
    color: #667eea;
    transform: scale(1.1);
}

.instructions {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.instructions h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.instructions p {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

#score-display {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    z-index: 10;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

#game-canvas {
    width: 100%;
    height: 100%;
}

.mobile-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    padding: 20px 40px;
    font-size: 1.5rem;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.3);
    border: 3px solid white;
    color: white;
    cursor: pointer;
    border-radius: 15px;
    z-index: 10;
    display: none;
}

@media (max-width: 768px) {
    .mobile-btn {
        display: block;
    }
}

#game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    color: white;
    z-index: 100;
}

#game-over h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ff4444;
}

#game-over p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

#game-over button {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    margin: 0.5rem;
    background: #667eea;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s;
}

#game-over button:hover {
    background: #764ba2;
    transform: scale(1.1);
}
