body {
    margin: 0;
    overflow: hidden;
    background-color: #000;
    color: #fff;
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    max-width: 1000px; /* Max width for game area */
    max-height: 750px; /* Max height based on 4:3 aspect ratio for WORLD_WIDTH/HEIGHT */
    aspect-ratio: 4 / 3;
}

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

#ui-container {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    /* Allow for wrapping if too many items for one line on small screens */
    flex-wrap: wrap; 
    padding: 10px;
    background-color: rgba(0,0,0,0.3);
    border-radius: 5px;
    pointer-events: none; /* Allow clicks to pass through to canvas if needed */
}
#ui-container div {
    font-size: clamp(14px, 2.5vw, 20px); /* Adjusted font size slightly for more elements */
    color: #0f0; /* Bright green for retro feel */
    text-shadow: 0 0 5px #0f0;
    margin: 2px 5px; /* Add some margin for wrapped items */
}
#beam-battery {
    /* Specific styling if needed, for now inherits from #ui-container div */
    /* Example: color: #ffff00; to make it yellow */
}

#message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: rgba(0, 50, 0, 0.8);
    border: 2px solid #0f0;
    border-radius: 10px;
    text-align: center;
    font-size: clamp(20px, 4vw, 30px);
    color: #0f0;
    text-shadow: 0 0 8px #0f0;
    z-index: 100;
}
#action-btn { /* Styling for the new action button */
    position: absolute;
    bottom: 120px; /* Position above mobile controls */
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    font-size: clamp(18px, 3.5vw, 28px);
    min-width: 150px;
    z-index: 101;
}
#skip-cutscene-btn { /* Style for the skip cutscene button */
    position: absolute;
    bottom: 90px; /* Increased from 80px to raise it slightly higher */
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px; /* Reduced padding */
    font-size: clamp(14px, 3vw, 22px); /* Reduced font size */
    z-index: 105; 
    background-color: rgba(120, 0, 0, 0.75); /* Slightly less prominent background */
    border: 1px solid #dd5555; /* Slightly thinner border */
    color: #eee; /* Slightly dimmer text */
    min-width: 160px; /* Reduced min-width */
}
.hidden {
    display: none !important;
}
#mobile-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px; /* Spacing between buttons */
    z-index: 100; /* Ensure buttons are on top */
    opacity: 0.7; /* Slightly transparent */
}
.control-btn {
    background-color: rgba(0, 255, 0, 0.4); /* Semi-transparent green */
    border: 2px solid #0f0; /* Bright green border */
    color: #0f0; /* Bright green text */
    font-size: clamp(24px, 5vw, 36px); /* Responsive font size */
    padding: 15px 20px;
    border-radius: 10px;
    cursor: pointer;
    user-select: none; /* Prevent text selection on tap */
    text-shadow: 0 0 5px #0f0;
    transition: background-color 0.2s;
}
.control-btn:active {
    background-color: rgba(0, 255, 0, 0.7); /* Darker green when pressed */
}
/* Hide mobile controls on larger screens where keyboard is primary */
@media (min-width: 769px) {
    #mobile-controls {
        display: none;
    }
}