body {
    margin: 0; padding: 0; background: #000;
    font-family: 'Courier New', Courier, monospace;
    display: flex; justify-content: center; align-items: center;
    height: 100vh; color: white; overflow: hidden;
}
#game-container { position: relative; }
canvas { display: block; background: radial-gradient(circle, #111 0%, #000 100%); }

#ui {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; padding: 20px; box-sizing: border-box;
}

#planet-info {
    position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
    text-align: center; background: rgba(0,0,0,0.6); padding: 10px 30px;
    border: 2px solid #555;
}

#progress-bar-bg { width: 300px; height: 20px; background: #222; border: 2px solid #fff; margin: 10px 0; }
#progress-bar { width: 0%; height: 100%; background: #f00; transition: width 0.3s; }

#hotbar {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 10px; pointer-events: auto;
}

.slot {
    width: 80px; height: 80px; background: #444; border: 4px solid #888;
    display: flex; flex-direction: column; justify-content: center;
    align-items: center; cursor: pointer; text-align: center;
}
.slot.active { border-color: #fff; background: #666; transform: scale(1.1); }
.slot span { font-size: 10px; margin-top: 5px; }

#info { position: absolute; bottom: 120px; left: 50%; transform: translateX(-50%); font-size: 12px; }

.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); display: flex; flex-direction: column;
    justify-content: center; align-items: center; z-index: 100;
}
h1 { font-size: 60px; color: #ff3333; text-shadow: 4px 4px #000; }
button {
    padding: 20px 50px; font-size: 24px; background: #4a8d3e; color: white;
    border: none; cursor: pointer; margin-top: 20px;
}
