:root { color-scheme: dark; font-family: system-ui, sans-serif; color: #eee8dc; background: #090f1a; }
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 50% 15%, #1d3048, #090f1a 75%); min-height: 100vh; }
main { max-width: 1320px; margin: auto; padding: 24px 28px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 15px; }
h1 { font-size: 24px; font-weight: 650; letter-spacing: -.6px; margin: 0; }
p { font-size: 13px; line-height: 1.5; color: #a7b7c9; margin: 4px 0 0; }
.planet-mark { display: inline-block; width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #96d6c6, #2d7590 50%, #193957); box-shadow: 0 0 24px #6dbabc20; flex-shrink: 0; }
.planet-mark.large { width: 72px; height: 72px; margin-bottom: 12px; }
nav { display: flex; gap: 8px; }
button { border: 1px solid #3a5069; border-radius: 9px; background: #1c2c40; color: #eee8dc; padding: 10px 17px; font: inherit; font-size: 13px; cursor: pointer; }
button:hover:not(:disabled) { background: #294362; border-color: #7facc6; }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, canvas:focus-visible { outline: 2px solid #ffdb66; outline-offset: 3px; }
.game-frame { position: relative; width: 100%; height: min(72vh, 780px); min-height: 440px; border: 1px solid #32465f; border-radius: 16px; overflow: hidden; background: #070b13; box-shadow: 0 24px 80px #0005; }
canvas { display: block; width: 100%; height: 100%; }
.game-frame:fullscreen { height: 100vh; border: none; border-radius: 0; }
#loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #0b1321; }
#loading[hidden] { display: none; }
#loading-label { color: #e2e6e9; font-size: 16px; }
progress { width: 220px; height: 5px; accent-color: #91cdbd; margin-top: 22px; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 14px 4px; }
#save-status { color: #c4d5cf; }
@media (max-width: 720px) { main { padding: 16px 12px; } header { flex-wrap: wrap; gap: 14px; } .game-frame { min-height: 400px; } h1 { font-size: 22px; } }
