* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0f0f1a;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#app {
    text-align: center;
}

#top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

h1 {
    margin-bottom: 0;
    font-size: 28px;
    color: #00ff41;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

#level-set-picker {
    display: flex;
    align-items: center;
    gap: 8px;
}

#level-set-picker label {
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#level-set-select {
    background: #1a1a2e;
    color: #00ff41;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
}

#level-set-select:hover {
    border-color: #00ff41;
}

#game-area {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    justify-content: center;
}

#game-canvas {
    border: 2px solid #333;
    border-radius: 4px;
    background: #1a1a2e;
}

#side-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.dpad {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.dpad-row {
    display: flex;
    gap: 4px;
}

.dir-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
    background: #2a2a3e;
    color: #00ff41;
    border: 2px solid #444;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dir-btn:hover:not(:disabled) {
    background: #3a3a5e;
    border-color: #00ff41;
}

.dir-btn:active:not(:disabled) {
    background: #00ff41;
    color: #1a1a2e;
}

.dir-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.action-btn {
    padding: 10px 24px;
    font-size: 14px;
    background: #2a2a3e;
    color: #e0e0e0;
    border: 2px solid #444;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.action-btn:hover {
    background: #3a3a5e;
    border-color: #666;
}

.mute-btn {
    font-size: 13px;
}

.mute-btn.muted {
    opacity: 0.4;
}

#status {
    text-align: left;
    font-size: 14px;
    color: #888;
}

#status div {
    margin-bottom: 4px;
}

#game-status {
    font-weight: bold;
    color: #00ff41;
}

#win-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.win-content {
    background: #1a1a2e;
    border: 2px solid #00ff41;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
}

.win-content h2 {
    color: #00ff41;
    font-size: 32px;
    margin-bottom: 10px;
}

.win-content p {
    margin-bottom: 20px;
    font-size: 18px;
}

#death-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.death-content {
    border-color: #cc2222;
}

.death-content h2 {
    color: #cc2222;
}

#all-complete-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.complete-content {
    border-color: #ffcc00;
}

.complete-content h2 {
    color: #ffcc00;
}

#expired-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.expired-content {
    border-color: #cc8800;
}

.expired-content h2 {
    color: #cc8800;
}

/* Batch move queue */
