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

body {
    background: #000;
    color: #fff;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

#moon-canvas {
    display: block;
    width: 100vw;
    height: 100vh;
}

/* Loading screen */
#loading {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
    z-index: 100;
    transition: opacity 0.5s;
}

#loading.hidden {
    opacity: 0;
    pointer-events: none;
}

#loading-text {
    font-size: 1.4rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

#loading-status {
    font-size: 0.85rem;
    color: #888;
}

/* Info overlay */
#info-overlay {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 10;
    pointer-events: none;
    line-height: 1.6;
}

#mission-phase {
    font-size: 1rem;
    color: #4fc3f7;
    font-weight: bold;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

#utc-time {
    font-size: 0.85rem;
    color: #ccc;
}

#met-time {
    font-size: 0.85rem;
    color: #999;
}

#distance {
    font-size: 1.1rem;
    color: #fff;
    margin-top: 0.4rem;
}

#range-rate {
    font-size: 0.8rem;
    color: #888;
}

/* Timeline */
#timeline {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    padding: 0.6rem 1.5rem 1rem;
}

#timeline-track-container {
    position: relative;
    margin-bottom: 0.5rem;
}

#event-markers {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.event-marker {
    position: absolute;
    bottom: 3px;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: auto;
    cursor: default;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    z-index: 3;
}

.event-marker-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4fc3f7;
}

.event-marker-label {
    font-size: 0.7rem;
    color: #4fc3f7;
    white-space: nowrap;
    opacity: 0.8;
    margin-bottom: 3px;
}

#scrubber {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: #333;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

#scrubber::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #4fc3f7;
    cursor: grab;
    border: 2px solid #fff;
}

#scrubber::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #4fc3f7;
    cursor: grab;
    border: 2px solid #fff;
}

#timeline-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#play-pause,
#reset-time {
    background: none;
    border: 1px solid #555;
    color: #fff;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    cursor: pointer;
    border-radius: 3px;
    font-family: inherit;
}

#play-pause:hover,
#reset-time:hover,
#auto-zoom:hover {
    border-color: #4fc3f7;
}

#auto-zoom,
#even-light,
#show-labels,
#go-now {
    background: none;
    border: 1px solid #555;
    color: #999;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    cursor: pointer;
    border-radius: 3px;
    font-family: inherit;
}

#auto-zoom.active,
#even-light.active,
#show-labels.active,
#go-now.active {
    background: #4fc3f7;
    color: #000;
    border-color: #4fc3f7;
}

#speed {
    background: #111;
    color: #ccc;
    border: 1px solid #555;
    font-size: 0.75rem;
    padding: 0.2rem;
    border-radius: 3px;
    font-family: inherit;
}

#timeline-label {
    font-size: 0.75rem;
    color: #666;
}

/* Feature labels */
#feature-labels {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

.feature-label {
    position: absolute;
    transform: translate(-50%, -50%);
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 6px #000, 0 0 3px #000, 0 1px 2px #000;
    white-space: nowrap;
    letter-spacing: 0.05em;
}
