*{box-sizing:border-box}html,body{margin:0;height:100%;background:#05060c;color:#e8ecf7;font-family:'Segoe UI','Malgun Gothic',sans-serif}body{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:16px}.stage{position:relative;width:1000px;height:700px;max-width:100%;box-shadow:0 0 40px rgba(0,0,0,0.6);border-radius:8px;overflow:hidden}#game-container{position:absolute;inset:0}#game-container canvas{display:block}#ui-root{position:absolute;inset:0;pointer-events:none}.hud{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;gap:20px;padding:10px 16px;background:rgba(10,14,28,0.85);border-bottom:1px solid rgba(255,255,255,0.08);pointer-events:auto;font-size:14px}.hud-credits{font-weight:700;color:#ffd23f;white-space:nowrap}.hud-inventory{display:flex;flex-wrap:wrap;gap:10px;flex:1}.hud-ore{display:flex;align-items:center;gap:4px;font-size:12px;color:#c3cbe0}.hud-ore .dot{width:8px;height:8px;border-radius:50%;display:inline-block}.hud-ore-empty{font-size:12px;color:#6b7390}.hud-actions{display:flex;gap:6px;white-space:nowrap}.hud-actions button,.panel button{background:#2a3557;color:#e8ecf7;border:1px solid #4a5a8c;border-radius:4px;padding:5px 10px;font-size:12px;cursor:pointer}.hud-actions button:hover,.panel button:hover:not(:disabled){background:#384a80}.panel button:disabled{opacity:.4;cursor:not-allowed}.zone-selector{position:absolute;top:56px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:10px;padding:6px 14px;background:rgba(10,14,28,0.85);border:1px solid rgba(255,255,255,0.08);border-radius:8px;pointer-events:auto;font-size:13px}.zone-selector button{background:#2a3557;color:#e8ecf7;border:1px solid #4a5a8c;border-radius:4px;padding:4px 10px;font-size:13px;cursor:pointer}.zone-selector button:hover{background:#384a80}.zone-label{color:#8fd9ff;font-weight:600;min-width:90px;text-align:center}.panel{position:absolute;bottom:12px;width:240px;max-height:55%;overflow-y:auto;background:rgba(10,14,28,0.9);border:1px solid rgba(255,255,255,0.08);border-radius:8px;padding:12px;pointer-events:auto;font-size:13px}.research-panel{right:12px;width:300px}.skill-tree{display:flex;flex-direction:column;align-items:center}.skill-row{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;width:100%}.skill-branch{width:2px;height:16px;background:#4a5a8c}.skill-node{flex:1 1 80px;min-width:80px;background:rgba(255,255,255,0.03);border:1px solid #4a5a8c;border-radius:6px;padding:8px;text-align:center}.skill-node.locked{opacity:.6;border-style:dashed}.skill-node-title{font-size:12px;color:#e8ecf7;margin-bottom:4px}.skill-node-tier{color:#ffd23f;font-weight:600}.skill-dots{display:flex;justify-content:center;gap:3px;margin-bottom:6px}.skill-dot{width:8px;height:8px;border-radius:50%;background:#2a3557;border:1px solid #4a5a8c;display:inline-block}.skill-dot.filled{background:#4fd1c5;border-color:#4fd1c5}.skill-node button{width:100%;white-space:normal;font-size:11px;padding:4px 6px}.skill-lock,.skill-maxed{font-size:11px;color:#8891ad;margin:0}.info-panel{left:12px}.inventory-panel{left:12px;top:56px;bottom:auto;width:260px;max-height:calc(100% - 68px)}.owned-bodies-panel{right:12px;top:56px;bottom:auto;width:300px;max-height:calc(100% - 68px)}.owned-body-row{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px solid rgba(255,255,255,0.08)}.owned-body-actions{display:flex;flex-direction:column;gap:4px;flex-shrink:0}.challenge-panel{left:50%;transform:translateX(-50%);width:280px;text-align:center}.challenge-panel #rankingStatus{min-height:14px;font-size:12px;color:#8fd9ff}.surface-panel{left:12px;top:56px;bottom:auto;width:260px;max-height:calc(100% - 68px)}.surface-panel #surface-back{margin-bottom:8px}.surface-toolbar{display:flex;flex-direction:column;gap:6px;margin-bottom:8px}.surface-toolbar button.tool-active{background:#4a5a8c;border-color:#8fd9ff}.surface-cell-actions{flex-wrap:wrap}.surface-cell-info{margin-top:10px;border-top:1px solid rgba(255,255,255,0.08);padding-top:8px}.panel h3{margin:0 0 8px;font-size:15px;color:#8fd9ff}.panel h4{margin:12px 0 6px;font-size:12px;color:#9aa4c4;text-transform:uppercase}.shop-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}.shop-hint,.info-hint,.info-empty{color:#8891ad;font-size:12px}.panel select{background:#1a2138;color:#e8ecf7;border:1px solid #4a5a8c;border-radius:4px;padding:3px;font-size:12px;margin-right:6px}