body {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #1a1a1a;
    font-family: Arial, sans-serif;
    color: white;
}

.menu {
    text-align: center;
}

.button {
    margin: 20px;
    padding: 15px 40px;
    font-size: 24px;
    background: #ff4444;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
    user-select: none;
}

.button:hover {
    transform: scale(1.1);
}

.wobble {
    animation: wobble 2s infinite;
}

@keyframes wobble {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
    100% { transform: rotate(0deg); }
}

@keyframes fall {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(2000px) rotate(720deg); }
}

.falling {
    animation: fall 2s forwards;
}

#warning {
    color: red;
    font-size: 32px;
    margin-top: 20px;
    font-weight: bold;
}

.hidden {
    display: none;
}

.fade-in {
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.warning-sign {
    color: #ff0000;
    font-size: 24px;
    text-shadow: 0 0 10px #ff0000;
    margin-bottom: 20px;
    animation: glow 1.5s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #ff0000, 0 0 10px #ff0000, 0 0 15px #ff0000;
    }
    to {
        text-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000, 0 0 30px #ff0000;
    }
}

.builder-button {
    background: #ffd700;
    color: black;
    margin: 20px;
    padding: 15px 40px;
    font-size: 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
    user-select: none;
    display: none;
}

.builder-button:hover {
    transform: scale(1.1);
}

@keyframes hammer {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(-20deg); }
    100% { transform: rotate(0deg); }
}

.hammering {
    animation: hammer 0.5s infinite;
}

@keyframes rise {
    0% { transform: translateY(2000px) rotate(720deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.rising {
    animation: rise 2s forwards;
}

.settings-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #333;
    padding: 20px;
    border-radius: 10px;
    z-index: 1000;
}

.slider-container {
    margin: 15px 0;
}

.modal-close {
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
}

.game-container {
    display: none;
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.player {
    position: absolute;
    width: 40px;
    height: 40px;
    background: #00ff00;
    border-radius: 50%;
}

.enemy {
    position: absolute;
    width: 30px;
    height: 30px;
    background: #ff0000;
    border-radius: 50%;
}

.bullet {
    position: absolute;
    width: 10px;
    height: 10px;
    background: yellow;
    border-radius: 50%;
}

.wave-counter {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: white;
}