body {
    margin: 0;
    background-color: #000;
    color: #eee;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    /* Prevent scroll */
}

#app-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#game-header {
    background: rgba(20, 20, 20, 0.9);
    padding: 4px 8px;
    display: flex;
    flex-direction: row;
    /* Side by side to save height */
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    z-index: 10;
    flex-shrink: 0;
    border-bottom: 1px solid #333;
    height: 40px;
    /* Fixed compact height */
}

#controls {
    display: flex;
    gap: 5px;
    align-items: center;
}

#status {
    font-size: 11px;
    font-weight: bold;
    color: #aaa;
    white-space: nowrap;
}

#game-container {
    flex: 1;
    width: 100%;
    position: relative;
    background-color: #000;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

canvas {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#touch-controls {
    height: 15vh;
    /* Use percentage of viewport height */
    min-height: 80px;
    max-height: 150px;
    background-color: #1a1a1a;
    /* Distinct gray */
    border-top: 2px solid #444;
    /* Visible border */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    cursor: ew-resize;
    touch-action: none;
    user-select: none;
    z-index: 20;
}

.hint {
    color: #666;
    font-size: 14px;
    pointer-events: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Button Styles */
button {
    background: #333;
    color: #fff;
    border: 1px solid #555;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 11px;
    border-radius: 3px;
    transition: background 0.2s;
}

button:hover {
    background: #444;
}

button.active {
    background: #007bff;
    border-color: #0056b3;
}

.separator {
    width: 1px;
    height: 15px;
    background: #555;
    margin: 0 5px;
}