.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.stat {
    background: var(--bg);
    padding: 1.25rem;
    animation: fade-in 0.4s ease both;
}

.stat:nth-child(1) { animation-delay: 0.05s; }
.stat:nth-child(2) { animation-delay: 0.10s; }
.stat:nth-child(3) { animation-delay: 0.15s; }
.stat:nth-child(4) { animation-delay: 0.20s; }

@keyframes fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.stat-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    color: var(--fg);
    letter-spacing: -0.02em;
}

.stat-unit {
    font-size: 0.7rem;
    color: var(--muted);
    margin-left: 0.25rem;
}

/* ── Position bar ── */

.track {
    margin-bottom: 2rem;
    animation: fade-in 0.4s ease both;
}

.track-bar {
    position: relative;
    height: 1px;
    background: var(--border);
    margin: 1.75rem 0 1rem;
}

.track-endpoint {
    position: absolute;
    top: -4px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--muted);
}

.track-endpoint.earth { left: 0; }
.track-endpoint.moon  { right: 0; margin-right: -4px; }

.orion-dot {
    position: absolute;
    top: -6px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateX(-50%);
    transition: left 2s ease;
    animation: orion-pulse 2.8s ease-in-out infinite;
}

@keyframes orion-pulse {
    0%, 100% { box-shadow: 0 0 4px  rgba(77, 163, 255, 0.3); }
    50%       { box-shadow: 0 0 14px rgba(77, 163, 255, 0.7); }
}

.track-labels {
    display: flex;
    justify-content: space-between;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--muted);
}

.track-label-center {
    color: var(--accent);
}

/* ── Misc ── */

.update-info {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--muted);
    margin-top: 0.5rem;
}

.status-msg {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--muted);
    padding: 1.5rem 0;
}

.warn-msg {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #f59e0b;
    padding: 1rem 0;
}

@media (max-width: 480px) {
    .stat-grid  { grid-template-columns: 1fr; }
    .stat-value { font-size: 1.1rem; }
}