/* ─────────────────────────────────────────────────────────────────────────────
   3D GAME MODE HUD & OVERLAY STYLES (hud-3d.css)
   Cockpit HUD, WebGL Canvas, Telemetry & Modals
   ───────────────────────────────────────────────────────────────────────────── */

#game-mode-container {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    background: #0d1117;
    color: #eceff4;
}

#game-mode-container.active {
    display: block;
}

/* 3D WebGL Canvas */
#webgl-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    display: block;
}

/* HUD Overlay */
.hud-container {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    color: #eceff4;
}

.hud-container * {
    pointer-events: auto;
}

.hud-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    background: rgba(15, 22, 34, 0.88);
    border: 1px solid rgba(136, 192, 208, 0.3);
    border-radius: var(--radius-md);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.hud-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hud-brand .logo-link {
    color: #eceff4;
}

.callsign-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    background: rgba(136, 192, 208, 0.2);
    color: #88c0d0;
    border: 1px solid rgba(136, 192, 208, 0.45);
}

.btn-exit-game {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    background: #bf616a;
    color: #ffffff;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(191, 97, 106, 0.5);
    transition: var(--transition-fast);
}

.btn-exit-game:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(191, 97, 106, 0.7);
}

.hud-warp-nav {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    overflow-x: auto;
}

.warp-btn {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.45rem 0.95rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e5e9f0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.warp-btn:hover {
    background: rgba(136, 192, 208, 0.25);
    border-color: #88c0d0;
    color: #ffffff;
    transform: translateY(-1px);
}

.warp-btn.active {
    background: #88c0d0;
    color: #1e222a;
    font-weight: 700;
}

/* Telemetry Bar */
.hud-telemetry {
    position: absolute;
    top: 5rem;
    left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    z-index: 10;
}

.telemetry-panel {
    background: rgba(15, 22, 34, 0.88);
    border: 1px solid rgba(136, 192, 208, 0.3);
    border-radius: var(--radius-md);
    padding: 0.65rem 1rem;
    backdrop-filter: blur(12px);
    width: 230px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.telemetry-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: #81a1c1;
    display: block;
    letter-spacing: 0.05em;
}

.telemetry-value {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
}

.speed-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 0.35rem;
    overflow: hidden;
}

.speed-bar-fill {
    width: 20%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-orange));
}

/* Radar Minimap */
.hud-radar {
    position: absolute;
    top: 5rem;
    right: 1.5rem;
    width: 180px;
    background: rgba(10, 16, 28, 0.92);
    border: 1px solid rgba(136, 192, 208, 0.4);
    border-radius: var(--radius-md);
    padding: 0.65rem;
    backdrop-filter: blur(16px);
    z-index: 10;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(136, 192, 208, 0.08) inset;
}

.radar-title {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: #88c0d0;
    text-align: center;
    display: block;
    letter-spacing: 0.12em;
    margin-bottom: 0.45rem;
}

.radar-scope {
    width: 152px;
    height: 152px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(136, 192, 208, 0.06) 0%, rgba(10, 16, 28, 0.95) 70%);
    border: 1.5px solid rgba(136, 192, 208, 0.45);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

/* Inner radar grid rings */
.radar-scope::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 1px solid rgba(136, 192, 208, 0.18);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.radar-scope::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(136, 192, 208, 0.15) 50%, transparent 100%);
    transform: translate(-50%, -50%) rotate(0deg);
    transform-origin: center;
    animation: radarScan 4s linear infinite;
    pointer-events: none;
}

@keyframes radarScan {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.radar-player-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #88c0d0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px #88c0d0, 0 0 20px rgba(136, 192, 208, 0.4);
    z-index: 5;
}

.radar-blip {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    transition: left 0.3s ease, top 0.3s ease;
}

/* Flight Crosshair */
.flight-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 5;
}

.crosshair-ring {
    width: 44px;
    height: 44px;
    border: 1.5px solid rgba(136, 192, 208, 0.6);
    border-radius: 50%;
    position: relative;
}

.crosshair-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* ─────────────────────────────────────────────────────────────────────────────
   NAVIGATION UX: FLIGHT GUIDE BANNER & PROXIMITY PROMPT
   ───────────────────────────────────────────────────────────────────────────── */

.flight-guide-banner {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 22, 34, 0.92);
    border: 1px solid rgba(136, 192, 208, 0.4);
    border-radius: var(--radius-full);
    padding: 0.6rem 1.4rem;
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    z-index: 20;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    font-size: 0.82rem;
    color: #e5e9f0;
}

.guide-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.key-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: rgba(136, 192, 208, 0.2);
    border: 1px solid rgba(136, 192, 208, 0.4);
    color: #88c0d0;
}

/* Proximity Docking Prompt */
.docking-prompt {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 100;
}

.docking-prompt.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.prompt-content {
    background: rgba(15, 22, 34, 0.95);
    border: 2px solid #d08770;
    border-radius: var(--radius-lg);
    padding: 1rem 1.75rem;
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 0 35px rgba(208, 135, 112, 0.55);
}

.docking-text-info {
    display: flex;
    flex-direction: column;
}

.docking-title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #d08770;
    letter-spacing: 0.08em;
}

.docking-planet-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
}

.btn-dock {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 0.9rem;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-md);
    background: #d08770;
    color: #ffffff;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(208, 135, 112, 0.7);
    transition: var(--transition-fast);
}

.btn-dock:hover {
    transform: scale(1.05);
    background: #e09780;
}

/* Floating 3D Waypoint Labels Overlay */
.waypoint-overlay-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 12;
}

.waypoint-tag {
    position: absolute;
    transform: translate(-50%, -100%);
    pointer-events: auto;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.waypoint-card {
    background: rgba(15, 22, 34, 0.9);
    border: 1px solid rgba(136, 192, 208, 0.5);
    border-radius: var(--radius-md);
    padding: 0.4rem 0.85rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.waypoint-card:hover {
    border-color: #88c0d0;
    transform: scale(1.08);
}

.waypoint-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
}

.waypoint-dist {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #88c0d0;
}

.waypoint-arrow {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid rgba(136, 192, 208, 0.8);
    margin-top: 2px;
}

/* On-Screen Joystick & Elevation */
.on-screen-flight-controls {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
    z-index: 25;
}

.on-screen-flight-controls * {
    pointer-events: auto;
}

.joystick-container {
    background: rgba(15, 22, 34, 0.88);
    border: 1px solid rgba(136, 192, 208, 0.3);
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    backdrop-filter: blur(16px);
    outline: none; /* remove red focus ring */
}

.joystick-base {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(136, 192, 208, 0.15) 0%, rgba(15, 22, 34, 0.95) 70%);
    border: 2px solid rgba(136, 192, 208, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
    cursor: grab;
}

.joystick-ball {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #88c0d0, #81a1c1 60%, #5e81ac);
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 16px rgba(136, 192, 208, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    pointer-events: none;
    transition: transform 0.05s ease;
}

.elevation-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(15, 22, 34, 0.88);
    border: 1px solid rgba(136, 192, 208, 0.3);
    border-radius: 18px;
    padding: 0.6rem;
    backdrop-filter: blur(12px);
}

.axis-btn {
    width: 60px;
    height: 55px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(136, 192, 208, 0.35);
    color: #ffffff;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    transition: background 0.12s ease;
}

.axis-btn:active,
.axis-btn.pressed {
    background: rgba(136, 192, 208, 0.3);
    border-color: #88c0d0;
}

/* Modals Overlay */
.station-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(13, 17, 23, 0.92);
    backdrop-filter: blur(25px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.station-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.station-modal-window {
    width: 100%;
    max-width: 960px;
    max-height: 88vh;
    background: #1e222a;
    border: 1px solid rgba(136, 192, 208, 0.4);
    border-radius: var(--radius-lg);
    position: relative;
    overflow-y: auto;
    padding: 2.25rem;
    color: #eceff4;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.station-modal-content {
    display: none !important;
}

.station-modal-content.active {
    display: block !important;
    animation: fadeInModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInModal {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────────────────────────────────────────
   STATION MODAL RICH CONTENT STYLES (.sm-*)
   ───────────────────────────────────────────────────────────────────────────── */

.sm-profile-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(136, 192, 208, 0.2);
    padding-bottom: 1.25rem;
}

.sm-profile-img-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 50%;
    padding: 2.5px;
    background: linear-gradient(135deg, #88c0d0 0%, #d08770 100%);
    box-shadow: 0 0 20px rgba(136, 192, 208, 0.3);
}

.sm-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    background: #1e222a;
    display: block;
}

.sm-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #a3be8c;
    border: 2px solid #1e222a;
    border-radius: 50%;
    box-shadow: 0 0 8px #a3be8c;
}

.sm-header-info {
    display: flex;
    flex-direction: column;
}

.sm-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(136, 192, 208, 0.2);
    padding-bottom: 1rem;
}

.sm-tag {
    font-family: var(--font-mono, monospace);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #88c0d0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
}

.sm-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 0.25rem 0;
}

.sm-accent {
    color: #88c0d0;
}

.sm-subtitle {
    font-size: 0.92rem;
    color: #d8dee9;
    margin: 0;
}

.sm-bio {
    font-size: 1rem;
    line-height: 1.65;
    color: #e5e9f0;
    margin-bottom: 1.5rem;
}

/* Metrics */
.sm-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.sm-metric {
    background: rgba(15, 22, 34, 0.6);
    border: 1px solid rgba(136, 192, 208, 0.25);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sm-metric i {
    font-size: 1.4rem;
    color: #88c0d0;
    margin-bottom: 0.4rem;
}

.sm-metric.highlight-metric i {
    color: #ebcb8b;
}

.sm-m-val {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    font-family: var(--font-mono, monospace);
}

.sm-m-lbl {
    font-size: 0.75rem;
    color: #d8dee9;
    margin-top: 0.15rem;
}

/* Actions & Buttons */
.sm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.sm-btn-primary {
    background: #88c0d0;
    color: #1e222a;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.sm-btn-primary:hover {
    background: #81a1c1;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(136, 192, 208, 0.35);
}

.sm-btn-outline {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(136, 192, 208, 0.35);
    color: #eceff4;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.sm-btn-outline:hover {
    background: rgba(136, 192, 208, 0.18);
    border-color: #88c0d0;
}

.sm-socials {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.sm-social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #eceff4;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.sm-social-link:hover {
    background: #88c0d0;
    color: #1e222a;
    border-color: #88c0d0;
}

.sm-loc {
    font-size: 0.8rem;
    color: #d8dee9;
    margin-left: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Skills Grid */
.sm-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.sm-skill-card {
    background: rgba(15, 22, 34, 0.65);
    border: 1px solid rgba(136, 192, 208, 0.2);
    border-radius: 12px;
    padding: 1.1rem;
    transition: all 0.2s ease;
}

.sm-skill-card:hover {
    border-color: #88c0d0;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.sm-skill-ico {
    font-size: 1.75rem;
    color: #88c0d0;
    margin-bottom: 0.6rem;
}

.sm-skill-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.4rem 0;
}

.sm-skill-card p {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #d8dee9;
    margin: 0 0 0.8rem 0;
}

.sm-tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.sm-tag-pill {
    font-family: var(--font-mono, monospace);
    font-size: 0.68rem;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    background: rgba(136, 192, 208, 0.12);
    border: 1px solid rgba(136, 192, 208, 0.25);
    color: #88c0d0;
}

/* Projects Hangar Grid */
.sm-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.sm-proj-card {
    background: rgba(15, 22, 34, 0.65);
    border: 1px solid rgba(136, 192, 208, 0.2);
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.sm-proj-card:hover {
    border-color: #88c0d0;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.sm-proj-award {
    border-color: rgba(235, 203, 139, 0.45);
    background: radial-gradient(circle at top right, rgba(235, 203, 139, 0.08), rgba(15, 22, 34, 0.75));
}

.sm-proj-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.sm-proj-head i {
    font-size: 1.4rem;
    color: #88c0d0;
    margin-top: 0.2rem;
}

.sm-proj-head h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.15rem 0;
}

.sm-proj-co {
    font-size: 0.78rem;
    color: #d8dee9;
    margin: 0;
}

.sm-award-badge {
    color: #ebcb8b;
    font-weight: 700;
}

.sm-proj-card p {
    font-size: 0.85rem;
    line-height: 1.55;
    color: #d8dee9;
    margin: 0 0 1rem 0;
}

.sm-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(163, 190, 140, 0.15);
    border: 1px solid rgba(163, 190, 140, 0.4);
    color: #a3be8c;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 0.8rem;
    align-self: flex-start;
    transition: all 0.2s ease;
}

.sm-store-btn:hover {
    background: #a3be8c;
    color: #1e222a;
}

.sm-ios-btn {
    background: rgba(136, 192, 208, 0.15);
    border-color: rgba(136, 192, 208, 0.4);
    color: #88c0d0;
}

.sm-ios-btn:hover {
    background: #88c0d0;
    color: #1e222a;
}

/* Timeline Orbit */
.sm-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.sm-timeline::before {
    content: '';
    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    left: 7px;
    width: 2px;
    background: rgba(136, 192, 208, 0.25);
}

.sm-tl-item {
    position: relative;
}

.sm-tl-dot {
    position: absolute;
    left: -1.5rem;
    top: 0.35rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #1e222a;
    border: 3px solid #88c0d0;
    box-shadow: 0 0 10px #88c0d0;
    transform: translateX(-50%);
}

.sm-gold-dot {
    border-color: #ebcb8b;
    box-shadow: 0 0 10px #ebcb8b;
}

.sm-tl-card {
    background: rgba(15, 22, 34, 0.65);
    border: 1px solid rgba(136, 192, 208, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
}

.sm-tl-head h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.15rem 0;
}

.sm-tl-head h4 {
    font-size: 0.9rem;
    color: #88c0d0;
    margin: 0 0 0.4rem 0;
    font-weight: 600;
}

.sm-tl-date {
    font-family: var(--font-mono, monospace);
    font-size: 0.75rem;
    color: #d8dee9;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.sm-tl-card ul {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #e5e9f0;
}

.sm-tl-card li {
    margin-bottom: 0.4rem;
}

/* Contact Grid */
.sm-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.sm-contact-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
}

.sm-contact-info p {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #d8dee9;
    margin-bottom: 1.25rem;
}

.sm-c-detail {
    font-size: 0.9rem;
    color: #eceff4;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.sm-c-detail i {
    color: #88c0d0;
    font-size: 1rem;
}

.sm-contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    background: rgba(15, 22, 34, 0.5);
    border: 1px solid rgba(136, 192, 208, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
}

.sm-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sm-form-group label {
    font-family: var(--font-mono, monospace);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #88c0d0;
}

.sm-form-group input,
.sm-form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 0.55rem 0.8rem;
    color: #ffffff;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.sm-form-group input:focus,
.sm-form-group textarea:focus {
    border-color: #88c0d0;
    background: rgba(136, 192, 208, 0.05);
}

.sm-btn-submit {
    background: #88c0d0;
    color: #1e222a;
    border: none;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.75rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.4rem;
    transition: all 0.2s ease;
}

.sm-btn-submit:hover {
    background: #81a1c1;
    box-shadow: 0 6px 20px rgba(136, 192, 208, 0.35);
}

/* ─────────────────────────────────────────────────────────────────────────────
   FORCE DARK COCKPIT HUD STYLING REGARDLESS OF GLOBAL LIGHT/DARK THEME
   ───────────────────────────────────────────────────────────────────────────── */

html[data-theme="light"] #game-mode-container,
html[data-theme="dark"] #game-mode-container,
#game-mode-container {
    background-color: #0d1117 !important;
    color: #eceff4 !important;
}

html[data-theme="light"] .hud-header,
html[data-theme="dark"] .hud-header,
.hud-header {
    background: rgba(15, 22, 34, 0.92) !important;
    border: 1px solid rgba(136, 192, 208, 0.35) !important;
    color: #eceff4 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
}

html[data-theme="light"] .hud-brand .logo-link,
html[data-theme="dark"] .hud-brand .logo-link,
.hud-brand .logo-link {
    color: #eceff4 !important;
}

html[data-theme="light"] .telemetry-panel,
html[data-theme="dark"] .telemetry-panel,
.telemetry-panel {
    background: rgba(15, 22, 34, 0.92) !important;
    border: 1px solid rgba(136, 192, 208, 0.35) !important;
    color: #eceff4 !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6) !important;
}

html[data-theme="light"] .telemetry-label,
html[data-theme="dark"] .telemetry-label,
.telemetry-label {
    color: #81a1c1 !important;
}

html[data-theme="light"] .telemetry-value,
html[data-theme="dark"] .telemetry-value,
.telemetry-value {
    color: #ffffff !important;
}

html[data-theme="light"] .hud-radar,
html[data-theme="dark"] .hud-radar,
.hud-radar {
    background: rgba(15, 22, 34, 0.92) !important;
    border: 1px solid rgba(136, 192, 208, 0.35) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6) !important;
}

html[data-theme="light"] .radar-title,
html[data-theme="dark"] .radar-title,
.radar-title {
    color: #81a1c1 !important;
}

html[data-theme="light"] .warp-btn,
html[data-theme="dark"] .warp-btn,
.warp-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #e5e9f0 !important;
}

html[data-theme="light"] .warp-btn:hover,
html[data-theme="dark"] .warp-btn:hover,
.warp-btn:hover {
    background: rgba(136, 192, 208, 0.25) !important;
    border-color: #88c0d0 !important;
    color: #ffffff !important;
}

html[data-theme="light"] .warp-btn.active,
html[data-theme="dark"] .warp-btn.active,
.warp-btn.active {
    background: #88c0d0 !important;
    color: #1e222a !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   MOBILE RESPONSIVE OVERRIDES (< 768px)
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    /* Hide non-essential desktop badges, 2nd telemetry panel & keyboard hints */
    .callsign-badge,
    .flight-guide-banner,
    .telemetry-panel:nth-child(2) {
        display: none !important;
    }

    /* Top HUD Header: CSS Grid for 2 clean rows: Row 1 = Brand + Exit button, Row 2 = Warp nav */
    .hud-header {
        top: 0.5rem !important;
        left: 0.5rem !important;
        right: 0.5rem !important;
        padding: 0.45rem 0.65rem !important;
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        grid-template-areas:
            "brand actions"
            "nav nav" !important;
        gap: 0.35rem 0.5rem !important;
        border-radius: 14px !important;
        z-index: 40 !important;
    }

    .hud-brand {
        grid-area: brand;
        display: flex;
        align-items: center;
    }

    .hud-brand .logo-link {
        font-size: 0.95rem !important;
    }

    .hud-actions {
        grid-area: actions;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .btn-exit-game {
        padding: 0.3rem 0.65rem !important;
        font-size: 0.72rem !important;
        border-radius: 8px !important;
    }

    /* Horizontal scrollable warp nav buttons */
    .hud-warp-nav {
        grid-area: nav;
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 0.3rem !important;
        padding-top: 0.15rem !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    .hud-warp-nav::-webkit-scrollbar {
        display: none !important;
    }

    .warp-btn {
        padding: 0.28rem 0.55rem !important;
        font-size: 0.7rem !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    /* Telemetry & Radar positioned cleanly below header */
    .hud-telemetry {
        top: 5.2rem !important;
        left: 0.5rem !important;
        gap: 0.3rem !important;
        z-index: 10 !important;
    }

    .telemetry-panel {
        width: 115px !important;
        padding: 0.3rem 0.5rem !important;
        border-radius: 10px !important;
    }

    .telemetry-label {
        font-size: 0.55rem !important;
    }

    .telemetry-value {
        font-size: 0.82rem !important;
    }

    .hud-radar {
        top: 5.2rem !important;
        right: 0.5rem !important;
        width: 78px !important;
        padding: 0.25rem !important;
        border-radius: 12px !important;
        z-index: 10 !important;
    }

    .radar-title {
        display: none !important;
    }

    .radar-scope {
        width: 70px !important;
        height: 70px !important;
    }

    .radar-scope::before {
        width: 35px !important;
        height: 35px !important;
    }

    .radar-player-dot {
        width: 5px !important;
        height: 5px !important;
    }

    .radar-blip {
        width: 6px !important;
        height: 6px !important;
    }

    /* Controls Bar: Joystick (Left) & Elevation (Right) */
    .on-screen-flight-controls {
        bottom: 0.75rem !important;
        left: 0.6rem !important;
        right: 0.6rem !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-end !important;
        z-index: 50 !important;
    }

    .joystick-container {
        padding: 0.35rem !important;
        border-radius: 14px !important;
    }

    .joystick-base {
        width: 95px !important;
        height: 95px !important;
    }

    .joystick-ball {
        width: 42px !important;
        height: 42px !important;
        font-size: 0.95rem !important;
    }

    .elevation-controls {
        padding: 0.35rem !important;
        gap: 0.3rem !important;
        border-radius: 14px !important;
    }

    .axis-btn {
        width: 54px !important;
        height: 46px !important;
        font-size: 1.1rem !important;
        border-radius: 10px !important;
    }

    /* Proximity Docking Prompt */
    .docking-prompt {
        bottom: 6.5rem !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: calc(100% - 2rem) !important;
        max-width: 300px !important;
    }

    .prompt-content {
        padding: 0.5rem 0.85rem !important;
        flex-direction: column !important;
        gap: 0.4rem !important;
        text-align: center !important;
        border-radius: 14px !important;
    }

    .docking-planet-name {
        font-size: 0.95rem !important;
    }

    .btn-dock {
        width: 100% !important;
        padding: 0.5rem 0.8rem !important;
        font-size: 0.8rem !important;
    }

    /* Waypoint tags */
    .waypoint-card {
        padding: 0.2rem 0.45rem !important;
        font-size: 0.68rem !important;
    }

    .waypoint-title {
        font-size: 0.65rem !important;
    }

    .waypoint-dist {
        font-size: 0.58rem !important;
    }

    /* Station Modal Mobile Tweaks */
    .station-modal-overlay {
        padding: 0.6rem !important;
    }

    .station-modal-window {
        padding: 1.25rem 0.85rem !important;
        max-height: 92vh !important;
        border-radius: 14px !important;
    }

    .modal-close-btn {
        top: 0.75rem !important;
        right: 0.75rem !important;
        width: 34px !important;
        height: 34px !important;
    }

    .sm-title {
        font-size: 1.35rem !important;
    }

    .sm-metrics {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem !important;
    }

    .sm-metric {
        padding: 0.6rem !important;
    }

    .sm-m-val {
        font-size: 1.25rem !important;
    }

    .sm-skills-grid,
    .sm-projects-grid,
    .sm-contact-grid {
        grid-template-columns: 1fr !important;
    }
}


