
body {
    margin: 0;
    padding: 0;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background: linear-gradient(to bottom, #87CEEB, #1E90FF);
    overflow: hidden;
    touch-action: none;
}
#game-title {
    font-size: 4rem;
    color: #FF6B6B;
    text-shadow: 4px 4px 0px #FFD166;
    margin-bottom: 2rem;
    animation: bounce 0.5s infinite alternate;
}

#end-screen {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

#end-message {
    font-size: 2rem;
    color: #06D6A0;
    margin-bottom: 2rem;
    text-align: center;
}

@keyframes rainbow {
    0% { color: #FF6B6B; }
    25% { color: #FFD166; }
    50% { color: #06D6A0; }
    75% { color: #4ECDC4; }
    100% { color: #FF6B6B; }
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(10px); }
    100% { transform: translateY(0px); }
}

@keyframes spin {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}
canvas {
    display: block;
}

#ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.btn {
    background-color: #4ECDC4;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 0 #2B8E8A;
    transition: all 0.1s;
    pointer-events: auto;
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

@keyframes bounce {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

#score-display {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 1.5rem;
    color: #FF6B6B;
    background-color: white;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#timer {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: #FF6B6B;
    background-color: white;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.enemy-emote {
    position: absolute;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s;
}

#controls {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: grid;
    grid-template-areas:
        ". up ."
        "left look right"
        ". down .";
    gap: 10px;
    pointer-events: auto;
}

.control-btn {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#up { grid-area: up; }
#left { grid-area: left; }
#down { grid-area: down; }
#right { grid-area: right; }
#look { 
    grid-area: look; 
    background-color: rgba(78, 205, 196, 0.7);
}

.control-btn:active {
    transform: scale(0.9);
    background-color: rgba(255, 255, 255, 0.9);
}
