body {
    margin: 0;
    overflow: hidden;
    background-color: #ffcf70;
    font-family: 'Press Start 2P', monospace;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}
#ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    color: #fff;
    text-shadow: 2px 2px 0 #000;
}
#top-right-ui {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.4);
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 16px;
    display: flex;
    gap: 10px;
    align-items: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
}
#controls-ui {
    position: absolute;
    bottom: 20px;
    right: 20px;
    text-align: right;
    line-height: 2.0;
    font-size: 14px;
}
#game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: none;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.8);
    padding: 40px;
    border-radius: 12px;
    border: 4px solid #fff;
}
#game-over h1 {
    font-size: 40px;
    margin: 0 0 20px 0;
    color: #ef4444;
}
#game-over p {
    font-size: 16px;
    cursor: pointer;
    animation: blink 1.2s infinite;
    color: #fff;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Mobile Controls */
#mobile-controls {
    display: none;
    pointer-events: auto;
    position: absolute;
    bottom: 20px;
    width: 100%;
    justify-content: space-around;
    align-items: flex-end;
    padding: 0 10px;
    box-sizing: border-box;
}
.btn {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: white;
}
.btn:active {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    #mobile-controls { display: flex; }
    #controls-ui { display: none; }
    #top-right-ui {
        font-size: 10px;
        padding: 10px;
        top: 10px;
        right: 10px;
    }
    #game-over h1 { font-size: 24px; }
    #game-over p { font-size: 12px; }
}
