* { margin: 0; padding: 0; box-sizing: border-box; } body { overflow: hidden; background: #000; font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif; color: #fff; } canvas { display: block; } #ui-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 10; } #ui-overlay > * { pointer-events: auto; } #title-bar { position: absolute; top: 12px; left: 16px; } #title-bar h1 { font-size: 1.1rem; font-weight: 300; letter-spacing: 2px; text-transform: uppercase; text-shadow: 0 0 10px rgba(100,180,255,0.5); } #credit { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); font-size: 0.65rem; color: rgba(255,255,255,0.4); letter-spacing: 0.5px; } #controls { position: absolute; top: 12px; right: 16px; display: flex; gap: 8px; } #controls button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); background: rgba(10,20,40,0.7); color: #fff; font-size: 1.2rem; cursor: pointer; backdrop-filter: blur(4px); transition: background 0.2s, border-color 0.2s; } #controls button:hover { background: rgba(30,60,120,0.8); border-color: rgba(100,180,255,0.6); } #toggle-panel { position: absolute; top: 50px; right: 16px; background: rgba(5,15,35,0.8); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 12px 14px; backdrop-filter: blur(6px); } .toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; } .toggle-row label { font-size: 0.75rem; color: #bbb; white-space: nowrap; } .toggle-row input[type="checkbox"] { accent-color: #4ab4ff; width: 16px; height: 16px; cursor: pointer; } #speed-control { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: rgba(10,20,40,0.7); border: 1px solid rgba(255,255,255,0.15); border-radius: 20px; padding: 8px 16px; backdrop-filter: blur(4px); font-size: 0.8rem; } #btn-play-pause { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); background: rgba(20,40,80,0.6); color: #fff; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s, border-color 0.2s; } #btn-play-pause:hover { background: rgba(30,60,120,0.8); border-color: rgba(100,180,255,0.6); } #speed-slider { width: 100px; accent-color: #4ab4ff; } #speed-value { min-width: 32px; text-align: center; } #planet-nav { position: absolute; bottom: 64px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 90vw; } #planet-nav button { padding: 5px 12px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.2); background: rgba(10,20,40,0.7); color: #ccc; font-size: 0.75rem; cursor: pointer; backdrop-filter: blur(4px); transition: all 0.2s; letter-spacing: 0.5px; } #planet-nav button:hover, #planet-nav button.active { background: rgba(30,60,120,0.8); border-color: rgba(100,180,255,0.6); color: #fff; } #info-panel { position: absolute; top: 60px; left: 16px; width: 300px; max-height: calc(100vh - 160px); overflow-y: auto; background: rgba(5,15,35,0.9); border: 1px solid rgba(100,180,255,0.2); border-radius: 12px; padding: 20px; backdrop-filter: blur(10px); transition: opacity 0.3s, transform 0.3s; } #info-panel.hidden { opacity: 0; transform: translateX(-20px); pointer-events: none; } #close-info { position: absolute; top: 10px; right: 12px; background: none; border: none; color: #aaa; font-size: 1.4rem; cursor: pointer; } #close-info:hover { color: #fff; } #info-name { font-size: 1.3rem; font-weight: 400; margin-bottom: 12px; color: #4ab4ff; } #info-body { font-size: 0.82rem; line-height: 1.6; color: #ccc; } #info-body .stat { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.06); } #info-body .stat-label { color: #888; } #info-body .description { margin-top: 12px; font-style: italic; color: #aaa; } /* Mobile adjustments */ @media (max-width: 600px) { #title-bar h1 { font-size: 0.85rem; } #toggle-panel { top: 46px; right: 10px; padding: 8px 10px; } .toggle-row label { font-size: 0.68rem; } #info-panel { top: auto; bottom: 110px; left: 10px; right: 10px; width: auto; max-height: 35vh; } #planet-nav { bottom: 58px; gap: 4px; } #planet-nav button { padding: 4px 8px; font-size: 0.65rem; } #speed-control { bottom: 12px; padding: 6px 12px; } #speed-slider { width: 70px; } #controls button { width: 30px; height: 30px; font-size: 1rem; } } /* Scrollbar */ #info-panel::-webkit-scrollbar { width: 4px; } #info-panel::-webkit-scrollbar-thumb { background: rgba(100,180,255,0.3); border-radius: 2px; } .planet-label { position: absolute; color: rgba(255,255,255,0.85); font-size: 11px; pointer-events: none; text-shadow: 0 0 4px rgba(0,0,0,0.9); white-space: nowrap; transform: translate(-50%, -100%); }