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

body {
    overflow: hidden;
    background: #000;
    font-family: 'IBM Plex Mono', monospace;
    color: #c0e8f0;
    cursor: crosshair;
}

#scene-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

#scene-container canvas {
    display: block;
}

.hud {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.4s;
}

.hud.hidden-hud {
    opacity: 0;
}

.panel {
    position: absolute;
    background: rgba(5, 15, 30, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 200, 220, 0.25);
    border-radius: 6px;
    padding: 12px 16px;
    pointer-events: auto;
    box-shadow: 0 0 20px rgba(0, 180, 220, 0.08), inset 0 0 30px rgba(0, 100, 140, 0.05);
}

.panel-title {
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 3px;
    color: rgba(0, 220, 240, 0.7);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.top-left {
    top: 16px;
    left: 16px;
    min-width: 260px;
}

.top-right {
    top: 16px;
    right: 16px;
    min-width: 200px;
    text-align: right;
}

.bottom-center {
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    font-size: 11px;
    white-space: nowrap;
    transition: opacity 0.6s;
    padding: 8px 20px;
}

.bottom-center span {
    color: rgba(180, 220, 240, 0.8);
}

.bottom-center .sep {
    color: rgba(0, 200, 220, 0.3);
    margin: 0 2px;
}

.bottom-left {
    bottom: 16px;
    left: 16px;
}

.bottom-right {
    bottom: 16px;
    right: 16px;
    min-width: 220px;
    max-width: 280px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.bottom-right.hidden {
    transform: translateX(20px);
    opacity: 0;
    pointer-events: none;
}

.system-name {
    font-family: 'Exo 2', sans-serif;
    font-weight: 800;
    font-size: 16px;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.4);
    margin-bottom: 4px;
}

.coords {
    font-size: 11px;
    color: rgba(160, 210, 230, 0.8);
    line-height: 1.6;
}

.nearest {
    font-size: 12px;
    color: #00dce8;
    margin-top: 6px;
    font-weight: 500;
}

.speed {
    font-size: 14px;
    font-weight: 500;
    color: #e0f0ff;
    margin-bottom: 4px;
}

.warp {
    font-size: 12px;
    color: rgba(0, 220, 240, 0.9);
    font-weight: 700;
}

.orient {
    font-size: 10px;
    color: rgba(160, 200, 220, 0.6);
    margin-top: 4px;
}

#minimap {
    display: block;
    border-radius: 50%;
    border: 1px solid rgba(0, 200, 220, 0.2);
    background: rgba(0, 10, 20, 0.6);
}

.obj-name {
    font-family: 'Exo 2', sans-serif;
    font-weight: 800;
    font-size: 15px;
    color: #fff;
    margin-bottom: 4px;
}

.obj-type {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.obj-details {
    font-size: 11px;
    line-height: 1.7;
    color: rgba(180, 220, 240, 0.85);
}

.search-container {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    pointer-events: auto;
    transition: opacity 0.2s;
}

.search-container.hidden {
    opacity: 0;
    pointer-events: none;
}

.search-input {
    background: rgba(5, 15, 30, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 200, 220, 0.4);
    border-radius: 6px;
    padding: 10px 18px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    color: #e0f0ff;
    width: 320px;
    outline: none;
}

.search-input::placeholder {
    color: rgba(100, 160, 180, 0.5);
}

.search-input:focus {
    border-color: rgba(0, 220, 240, 0.7);
    box-shadow: 0 0 20px rgba(0, 180, 220, 0.2);
}

.search-results {
    background: rgba(5, 15, 30, 0.9);
    border: 1px solid rgba(0, 200, 220, 0.25);
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
}

.search-result-item {
    padding: 8px 18px;
    font-size: 12px;
    color: #c0e0f0;
    cursor: pointer;
    transition: background 0.15s;
}

.search-result-item:hover {
    background: rgba(0, 200, 220, 0.15);
    color: #fff;
}

.footer-link {
    position: absolute;
    bottom: 4px;
    right: 16px;
    pointer-events: auto;
}

.footer-link a {
    font-family: 'Exo 2', sans-serif;
    font-size: 10px;
    color: rgba(0, 200, 220, 0.35);
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.2s;
}

.footer-link a:hover {
    color: rgba(0, 220, 240, 0.7);
}

/* Start overlay */
.start-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse at center, rgba(0,20,40,0.95) 0%, rgba(0,0,0,0.98) 100%);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.8s;
}

.start-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.start-content {
    text-align: center;
}

.start-title {
    font-family: 'Exo 2', sans-serif;
    font-weight: 200;
    font-size: 48px;
    letter-spacing: 12px;
    color: #fff;
    text-shadow: 0 0 40px rgba(0, 180, 255, 0.3);
    margin-bottom: 12px;
}

.start-sub {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    color: rgba(0, 200, 220, 0.6);
    letter-spacing: 4px;
    margin-bottom: 40px;
}

.start-prompt {
    font-family: 'Exo 2', sans-serif;
    font-size: 16px;
    color: rgba(200, 230, 255, 0.6);
    animation: pulse 2s ease-in-out infinite;
    margin-bottom: 24px;
}

.seed-input {
    background: rgba(0, 20, 40, 0.8);
    border: 1px solid rgba(0, 200, 220, 0.3);
    border-radius: 4px;
    padding: 6px 12px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    color: #00dce8;
    width: 100px;
    text-align: center;
    outline: none;
}

.start-seed {
    font-size: 12px;
    color: rgba(0, 200, 220, 0.5);
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 200, 220, 0.3);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .top-left { min-width: auto; max-width: 200px; font-size: 10px; }
    .top-right { min-width: auto; font-size: 10px; }
    .bottom-center { font-size: 9px; gap: 2px; }
    .bottom-left { display: none; }
    .start-title { font-size: 24px; letter-spacing: 6px; }
    .system-name { font-size: 13px; }
    .speed { font-size: 12px; }
}