/* ═══════════════════════════════════════════════════════════════════════════
   EXANAUT LAYOUT — Grid, Container, Resets, Spacing
   ═══════════════════════════════════════════════════════════════════════════
   Source: Void-Luxury design system (tokens.css)
   Rule:   All color values via tokens. No hardcoded hex/hsl.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Monospace styling for numeric values - with tabular figures */
.numeric,
.fuel-amount,
.metric-value,
.font-size-display,
.stat-value {
    font-family: 'Space Mono', monospace;
    letter-spacing: -0.02em;
    font-feature-settings: "tnum" 1;
}

/* Custom text selection - gold themed */
::selection {
    background: rgba(255, 149, 0, 0.3);
    color: var(--text-pri);
}

::-moz-selection {
    background: rgba(255, 149, 0, 0.3);
    color: var(--text-pri);
}

/* Placeholder text styling */
::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

::-webkit-input-placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

::-moz-placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

/* Global scrollbar styling - void theme */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--void);
}

::-webkit-scrollbar-thumb {
    background: var(--bulkhead);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--plate);
}

::-webkit-scrollbar-corner {
    background: var(--void);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--bulkhead) var(--void);
}

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

/* Remove default focus outlines - prevent white border flashes */
*:focus {
    outline: none;
}

/* Keyboard focus indicator for accessibility (only shows on keyboard nav) */
*:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Micro button press effect - subtle tactile feedback */
button:active:not(:disabled),
.hud-dept-btn:active,
.hud-station-tab:active,
.hud-arrange-btn:active,
.hud-font-btn:active {
    transform: scale(0.97);
    transition: transform 0.05s ease-out;
}

body {
    background: var(--void);
    color: var(--text-pri);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: var(--base-font);
    font-weight: var(--weight-normal);
    letter-spacing: 0.02em;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ═══ CONTAINER ═══ */
.hud-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: var(--void);
    position: relative;
}


/* ═══ GRID ═══ */
.hud-grid {
    flex: 1;
    display: grid;
    gap: 4px;
    padding: 4px;
    background: var(--void);
    overflow: hidden;
}

/* Stations: 1 station */
.hud-grid.stations-1 {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

/* Stations: 2 stations */
.hud-grid.stations-2.arrange-grid,
.hud-grid.stations-2.arrange-columns {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
}

.hud-grid.stations-2.arrange-rows {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
}

/* Stations: 3 stations */
.hud-grid.stations-3.arrange-grid {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.hud-grid.stations-3.arrange-grid .station-1 {
    grid-row: 1 / 3;
}

.hud-grid.stations-3.arrange-rows {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr 1fr;
}

.hud-grid.stations-3.arrange-columns {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr;
}

/* Stations: 4 stations */
.hud-grid.stations-4.arrange-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.hud-grid.stations-4.arrange-rows {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr;
}

.hud-grid.stations-4.arrange-columns {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr;
}

/* NOTE: Station limit is 4. Stations 5-6 CSS removed v0.68.11. */

