/* ==========================================================
   UNKNOWN WORLD - QUEST FOR NGC-X1
   Aesthetic Sci-Fi Glassmorphism & Neon Design System
   ========================================================== */

:root {
    --bg-dark: #050813;
    --bg-space: #070c1e;
    --panel-bg: rgba(10, 18, 36, 0.75);
    --panel-border: rgba(0, 243, 255, 0.28);
    --panel-glow: 0 0 25px rgba(0, 243, 255, 0.15);
    
    --neon-cyan: #00f3ff;
    --neon-blue: #0088ff;
    --neon-purple: #9d4edd;
    --neon-magenta: #f72585;
    --neon-amber: #ffaa00;
    --neon-green: #00ff88;
    --neon-red: #ff3366;
    
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --text-highlight: #00f3ff;
    
    --font-heading: 'Orbitron', -apple-system, sans-serif;
    --font-body: 'Rajdhani', -apple-system, sans-serif;
}

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

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-dark);
    font-family: var(--font-body);
    color: var(--text-main);
    font-size: 16px;
    letter-spacing: 0.5px;
}

/* Canvas Viewport */
#gameCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    z-index: 1;
    background: radial-gradient(ellipse at center, #091226 0%, #03060f 100%);
}

/* Glassmorphism Panel Base */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--panel-border);
    box-shadow: var(--panel-glow);
    border-radius: 12px;
}

/* Buttons */
.btn {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 8px;
    border: 1px solid var(--neon-cyan);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.25), rgba(0, 136, 255, 0.45));
    color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.5), rgba(0, 136, 255, 0.7));
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(148, 163, 184, 0.3);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.btn-accent {
    background: linear-gradient(135deg, rgba(247, 37, 133, 0.3), rgba(157, 78, 221, 0.5));
    border-color: var(--neon-magenta);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(247, 37, 133, 0.3);
}

.btn-accent:hover {
    background: linear-gradient(135deg, rgba(247, 37, 133, 0.6), rgba(157, 78, 221, 0.8));
    box-shadow: 0 0 25px rgba(247, 37, 133, 0.6);
    transform: translateY(-2px);
}

/* ==========================================================
   PILOT LOGIN SCREEN
   ========================================================== */
.overlay-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(10, 20, 45, 0.92) 0%, rgba(3, 6, 15, 0.98) 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.overlay-screen.active {
    opacity: 1;
    pointer-events: all;
}

.login-box {
    width: 90%;
    max-width: 680px;
    padding: 36px 40px;
    text-align: center;
    border: 1px solid rgba(0, 243, 255, 0.4);
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.2), inset 0 0 30px rgba(0, 243, 255, 0.05);
    animation: floatIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes floatIn {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.logo-container {
    position: relative;
    margin-bottom: 24px;
}

.glow-orb {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 60px;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.4), transparent 70%);
    filter: blur(20px);
    z-index: -1;
}

.game-title {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.6);
}

.game-title .highlight {
    color: var(--neon-cyan);
    text-shadow: 0 0 25px var(--neon-cyan);
}

.subtitle {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 6px;
    color: var(--neon-purple);
    font-weight: 700;
    margin-top: 4px;
}

.pilot-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.input-group label, .ship-select-section label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--neon-cyan);
    font-weight: 600;
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    padding: 12px 18px;
    background: rgba(15, 25, 50, 0.6);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    outline: none;
    transition: all 0.25s ease;
}

.input-group input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
    background: rgba(15, 25, 50, 0.85);
}

.ship-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.ship-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ship-card:hover {
    border-color: rgba(0, 243, 255, 0.5);
    background: rgba(15, 25, 50, 0.8);
    transform: translateY(-3px);
}

.ship-card.selected {
    border-color: var(--neon-cyan);
    background: linear-gradient(180deg, rgba(0, 243, 255, 0.15), rgba(15, 25, 50, 0.9));
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.35);
}

.ship-preview-box {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.ship-info h3 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: #fff;
    margin-bottom: 4px;
}

.ship-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.ship-info .tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--neon-cyan);
    background: rgba(0, 243, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.login-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 8px;
}

.login-actions #btnStartGame {
    grid-column: 1 / -1;
}

.lore-footer {
    margin-top: 24px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.lore-footer b {
    color: var(--neon-cyan);
}

/* ==========================================================
   GAME HUD (HEADS UP DISPLAY)
   ========================================================== */
.hud-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    pointer-events: none;
}

.hud-container.hidden {
    display: none;
}

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

/* Top Bar */
.hud-top-bar {
    position: absolute;
    top: 12px;
    left: 16px;
    right: 16px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.pilot-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pilot-avatar {
    font-size: 1.6rem;
    background: rgba(0, 243, 255, 0.15);
    border: 1px solid var(--neon-cyan);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pilot-name-display {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.pilot-rank {
    font-size: 0.75rem;
    color: var(--neon-cyan);
}

.sector-indicator {
    text-align: center;
}

.telemetry-coords-panel {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(0, 243, 255, 0.06);
    border: 1px solid rgba(0, 243, 255, 0.25);
    padding: 4px 12px;
    border-radius: 8px;
}

.coord-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}

.coord-val {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--neon-cyan);
    letter-spacing: 0.5px;
}

.dist-val {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--neon-green);
    letter-spacing: 0.5px;
}

.sector-indicator .label, .telemetry-coords-panel .label, .ngc-progress-indicator .label, .score-display .label {
    display: block;
    font-size: 0.65rem;
    font-family: var(--font-heading);
    color: var(--text-muted);
    letter-spacing: 1px;
}

.sector-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--neon-amber);
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.4);
}

.ngc-progress-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(157, 78, 221, 0.12);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(157, 78, 221, 0.35);
}

.beacon-slots {
    display: flex;
    gap: 6px;
}

.beacon-slot {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.beacon-slot.active {
    color: var(--neon-magenta);
    text-shadow: 0 0 12px var(--neon-magenta);
    transform: scale(1.2);
}

.beacon-count {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--neon-purple);
}

.score-display {
    text-align: right;
}

.score-value {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--neon-green);
    text-shadow: 0 0 12px rgba(0, 255, 136, 0.5);
}

.hud-quick-btns {
    display: flex;
    gap: 8px;
}

.btn-hud {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    background: rgba(15, 25, 50, 0.7);
    border: 1px solid rgba(0, 243, 255, 0.3);
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-hud:hover {
    background: rgba(0, 243, 255, 0.25);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}

.btn-event-meteor {
    background: rgba(255, 69, 0, 0.2) !important;
    border-color: rgba(255, 69, 0, 0.5) !important;
    color: #ff6a00 !important;
}
.btn-event-meteor:hover {
    background: rgba(255, 69, 0, 0.45) !important;
    border-color: #ff4500 !important;
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.7) !important;
    color: #fff !important;
}

.btn-event-solar {
    background: rgba(255, 170, 0, 0.2) !important;
    border-color: rgba(255, 170, 0, 0.5) !important;
    color: #ffaa00 !important;
}
.btn-event-solar:hover {
    background: rgba(255, 170, 0, 0.45) !important;
    border-color: #ffaa00 !important;
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.7) !important;
    color: #fff !important;
}

.btn-icon-only {
    padding: 6px 10px;
}

/* Cosmic Alert Banner */
.hud-cosmic-alert {
    position: absolute;
    top: 76px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 22px;
    border-radius: 10px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 40;
    pointer-events: auto;
    animation: alertSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1), alertPulseGlow 1.8s infinite alternate;
}

.hud-cosmic-alert.meteor-theme {
    background: linear-gradient(135deg, rgba(40, 10, 5, 0.95) 0%, rgba(20, 5, 2, 0.98) 100%);
    border: 1.5px solid #ff4500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 69, 0, 0.5);
}

.hud-cosmic-alert.solar-theme {
    background: linear-gradient(135deg, rgba(45, 25, 5, 0.95) 0%, rgba(20, 12, 2, 0.98) 100%);
    border: 1.5px solid #ffaa00;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 170, 0, 0.5);
}

.alert-icon-wrap {
    font-size: 1.6rem;
    animation: iconShake 0.6s infinite ease-in-out;
}

.alert-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.alert-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 1px;
}
.hud-cosmic-alert.meteor-theme .alert-title {
    color: #ff5500;
    text-shadow: 0 0 10px rgba(255, 85, 0, 0.8);
}
.hud-cosmic-alert.solar-theme .alert-title {
    color: #ffaa00;
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.8);
}

.alert-timer {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 900;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.alert-desc {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: #e2e8f0;
    margin-top: 2px;
}

@keyframes alertSlideDown {
    from { opacity: 0; transform: translate(-50%, -20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes alertPulseGlow {
    0% { transform: translateX(-50%) scale(1); }
    100% { transform: translateX(-50%) scale(1.02); }
}

@keyframes iconShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-8deg); }
    75% { transform: rotate(8deg); }
}

/* Status Panel (Bottom Left) */
.hud-status-panel {
    position: absolute;
    bottom: 20px;
    left: 16px;
    width: 260px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status-gauge .gauge-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 3px;
}

.bar-container {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.2s ease;
}

.shield-bar {
    background: linear-gradient(90deg, #0088ff, #00f3ff);
    box-shadow: 0 0 8px #00f3ff;
}

.hull-bar {
    background: linear-gradient(90deg, #ff3366, #00ff88);
    box-shadow: 0 0 8px #00ff88;
}

.fuel-bar {
    background: linear-gradient(90deg, #ff8800, #ffea00);
    box-shadow: 0 0 8px #ffea00;
}

.scanner-bar {
    background: linear-gradient(90deg, #9d4edd, #f72585);
    box-shadow: 0 0 8px #f72585;
}

.telemetry-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 8px;
    font-family: var(--font-heading);
}

.telemetry-info b {
    color: #fff;
}

.telemetry-info .ready {
    color: var(--neon-cyan);
}

/* Resources Panel (Bottom Right) */
.hud-resources-panel {
    position: absolute;
    bottom: 20px;
    right: 16px;
    width: 250px;
    padding: 14px 16px;
}

.panel-header {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--neon-cyan);
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    padding-bottom: 4px;
}

.resource-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.res-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.25);
    padding: 4px 6px;
    border-radius: 6px;
}

.res-val {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
    margin-left: auto;
}

.cargo-capacity {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Radar Panel (Top Right) */
.hud-radar-panel {
    position: absolute;
    top: 80px;
    right: 16px;
    width: 180px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hud-radar-panel:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.radar-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--neon-cyan);
    margin-bottom: 6px;
}

.radar-range {
    color: var(--neon-cyan);
    font-weight: 700;
    background: rgba(0, 243, 255, 0.12);
    padding: 1px 5px;
    border-radius: 4px;
    border: 1px solid rgba(0, 243, 255, 0.25);
}

.radar-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.08) 0%, rgba(5, 10, 25, 0.9) 70%);
    border-radius: 50%;
    border: 1px solid rgba(0, 243, 255, 0.35);
    overflow: hidden;
    box-shadow: inset 0 0 15px rgba(0, 243, 255, 0.2);
}

#radarCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.radar-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border: 1px solid var(--neon-cyan);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.radar-sweep {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(0, 243, 255, 0.25) 0deg, transparent 60deg, transparent 360deg);
    animation: radarSpin 4s linear infinite;
    pointer-events: none;
}

@keyframes radarSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.radar-legend {
    display: flex;
    justify-content: space-around;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.leg-item {
    display: flex;
    align-items: center;
    gap: 3px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.planet-dot { background: var(--neon-cyan); box-shadow: 0 0 5px var(--neon-cyan); }
.beacon-dot { background: var(--neon-magenta); box-shadow: 0 0 5px var(--neon-magenta); }
.gate-dot { background: var(--neon-amber); box-shadow: 0 0 5px var(--neon-amber); }

/* Notifications */
.hud-notifications {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    pointer-events: none;
}

.notification-item {
    background: rgba(10, 20, 45, 0.85);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
    padding: 8px 20px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    animation: notifIn 0.3s cubic-bezier(0.16, 1, 0.3, 1), notifOut 0.4s ease 3.6s forwards;
}

@keyframes notifIn {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes notifOut {
    to { opacity: 0; transform: translateY(-10px); }
}

/* Interaction Prompt */
.hud-prompt {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.prompt-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.4);
    animation: pulsePrompt 2s infinite ease-in-out;
}

@keyframes pulsePrompt {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(0, 243, 255, 0.3); }
    50% { transform: scale(1.04); box-shadow: 0 0 35px rgba(0, 243, 255, 0.6); }
}

.key-badge {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 900;
    background: var(--neon-cyan);
    color: #050813;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    box-shadow: 0 0 10px var(--neon-cyan);
}

.prompt-text {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

/* Controls Hint (Bottom Center) */
.hud-controls-hint {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
    background: rgba(5, 10, 25, 0.5);
    padding: 4px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================
   MODALS (PLANET SCAN, PUZZLE, HANGAR, CODEX, LEADERBOARD)
   ========================================================== */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 6, 15, 0.85);
    backdrop-filter: blur(8px);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    display: none;
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 720px;
    padding: 30px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(0, 243, 255, 0.4);
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.25);
    animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--neon-magenta);
}

.modal-header {
    margin-bottom: 20px;
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 4px;
}

.modal-header p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Planet Scan Modal */
.modal-content-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: center;
}

.planet-3d-view {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#planetViewCanvas {
    width: 240px;
    height: 240px;
}

.planet-type-badge {
    position: absolute;
    bottom: 4px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--neon-cyan);
    background: rgba(0, 243, 255, 0.15);
    border: 1px solid var(--neon-cyan);
    padding: 3px 10px;
    border-radius: 12px;
}

.planet-details .planet-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 6px;
}

.planet-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.4;
}

.stats-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(0, 0, 0, 0.25);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.stat-row span {
    color: var(--text-muted);
}

.stat-row b {
    color: #fff;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Sinyal Çözücü Puzzle */
.puzzle-modal {
    max-width: 620px;
    text-align: center;
}

.puzzle-header h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--neon-magenta);
    margin-bottom: 4px;
}

.puzzle-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.waveform-container {
    background: #030610;
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 16px;
}

#waveformCanvas {
    width: 100%;
    height: 180px;
    display: block;
}

.wave-match-meter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
}

.match-bar {
    flex: 1;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.match-fill {
    height: 100%;
    background: linear-gradient(90deg, #f72585, #00f3ff, #00ff88);
    box-shadow: 0 0 10px #00ff88;
    transition: width 0.15s ease;
}

.tuner-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    margin-bottom: 20px;
}

.slider-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--neon-cyan);
    margin-bottom: 4px;
}

.slider-group input[type="range"] {
    width: 100%;
    accent-color: var(--neon-cyan);
    cursor: pointer;
}

/* Hangar / Upgrade Cards */
.upgrades-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.upgrade-card {
    background: rgba(15, 25, 50, 0.6);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}

.upgrade-card .up-icon {
    font-size: 1.8rem;
}

.upgrade-card h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 4px;
}

.upgrade-card p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.up-level {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--neon-cyan);
}

.up-cost {
    font-size: 0.72rem;
    color: var(--neon-amber);
    margin-top: 2px;
}

.btn-upgrade {
    background: rgba(0, 243, 255, 0.2);
    border: 1px solid var(--neon-cyan);
    color: #fff;
    padding: 8px;
    font-size: 0.8rem;
}

.btn-upgrade:hover {
    background: var(--neon-cyan);
    color: #050813;
    box-shadow: 0 0 15px var(--neon-cyan);
}

/* Codex Modal */
.codex-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.codex-stat-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 243, 255, 0.2);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.codex-stat-box .num {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--neon-cyan);
}

.codex-stat-box .lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.codex-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 6px;
}

.codex-item {
    background: rgba(15, 25, 50, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.codex-item.undiscovered {
    opacity: 0.4;
    filter: grayscale(1);
}

.codex-item-info h4 {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    color: #fff;
}

.codex-item-info p {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Leaderboard Modal */
.leaderboard-modal {
    max-width: 650px;
}

.leaderboard-table-container {
    max-height: 400px;
    overflow-y: auto;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.leaderboard-table th {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--neon-cyan);
    padding: 10px 12px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.3);
}

.leaderboard-table td {
    padding: 10px 12px;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.leaderboard-table tr:hover {
    background: rgba(0, 243, 255, 0.06);
}

.leaderboard-table tr.current-pilot {
    background: rgba(0, 243, 255, 0.15);
    font-weight: 700;
    color: var(--neon-cyan);
}

.rank-badge {
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--neon-amber);
}

/* Domain & Server Status Badges */
.domain-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--neon-cyan);
    background: rgba(0, 243, 255, 0.12);
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid rgba(0, 243, 255, 0.35);
    margin-bottom: 8px;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.server-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--neon-green);
    background: rgba(0, 255, 136, 0.1);
    padding: 3px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    margin-top: 10px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online {
    background-color: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
    animation: statusPulse 2s infinite ease-in-out;
}

.status-dot.offline {
    background-color: var(--neon-red);
}

@keyframes statusPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

.online-explorers-tag {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--neon-cyan);
    background: rgba(0, 243, 255, 0.08);
    padding: 3px 10px;
    border-radius: 10px;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

/* Online HUD Button */
.btn-online-pulse {
    border-color: rgba(0, 255, 136, 0.4) !important;
    background: rgba(0, 255, 136, 0.1) !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.25);
    transition: all 0.25s ease;
}

.btn-online-pulse:hover {
    background: rgba(0, 255, 136, 0.25) !important;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.dot.player-dot {
    background: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
}

/* ==========================================================
   IN-GAME GALACTIC CHAT / COMMUNICATOR TERMINAL (HOLO-COMMS)
   ========================================================== */
.hidden {
    display: none !important;
}

.hud-chat-panel {
    position: absolute;
    bottom: 225px;
    left: 20px;
    width: 310px;
    height: 215px;
    display: flex;
    flex-direction: column;
    z-index: 25;
    padding: 8px 10px;
    background: linear-gradient(145deg, rgba(7, 14, 34, 0.94) 0%, rgba(3, 7, 18, 0.98) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 243, 255, 0.35);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 20px rgba(0, 243, 255, 0.12), inset 0 0 15px rgba(0, 243, 255, 0.04);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: text;
    overflow: hidden;
    box-sizing: border-box;
}

/* Cyber Corner Accents */
.chat-corner-tl {
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--neon-cyan);
    border-left: 2px solid var(--neon-cyan);
    pointer-events: none;
}

.chat-corner-br {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    border-bottom: 2px solid var(--neon-cyan);
    border-right: 2px solid var(--neon-cyan);
    pointer-events: none;
}

.hud-chat-panel.collapsed {
    height: 38px !important;
    width: 250px !important;
    padding: 6px 10px !important;
    overflow: hidden;
    background: rgba(7, 14, 34, 0.95);
    border-color: rgba(0, 243, 255, 0.35);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.hud-chat-panel.collapsed .chat-messages-container,
.hud-chat-panel.collapsed .quick-emotes-bar,
.hud-chat-panel.collapsed .chat-input-row,
.hud-chat-panel.collapsed .chat-corner-br,
.hud-chat-panel.collapsed .chat-sub,
.hud-chat-panel.collapsed .chat-freq-tag,
.hud-chat-panel.collapsed .chat-signal-bars {
    display: none !important;
}

.hud-chat-panel.collapsed .chat-header {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Chat Header */
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.18);
    cursor: pointer;
    user-select: none;
    background: rgba(0, 243, 255, 0.02);
    margin: -2px -4px 4px -4px;
    padding: 3px 6px;
    border-radius: 4px;
}

.chat-header:hover {
    background: rgba(0, 243, 255, 0.06);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-antenna-icon {
    font-size: 0.9rem;
    animation: antennaPulse 2.5s infinite ease-in-out;
}

@keyframes antennaPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px var(--neon-cyan)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 6px var(--neon-cyan)); }
}

.chat-title-texts {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.chat-name {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.5);
}

.chat-sub {
    font-family: var(--font-heading);
    font-size: 0.52rem;
    font-weight: 600;
    color: rgba(148, 163, 184, 0.7);
    letter-spacing: 0.8px;
}

.chat-freq-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-heading);
    font-size: 0.58rem;
    font-weight: 700;
    color: #c084fc;
    background: rgba(157, 78, 221, 0.15);
    border: 1px solid rgba(157, 78, 221, 0.35);
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 2px;
}

.freq-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--neon-green);
    box-shadow: 0 0 4px var(--neon-green);
}

.chat-header-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Signal Strength Indicator */
.chat-signal-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
    padding: 0 2px;
}

.sig-bar {
    width: 2.5px;
    background: var(--neon-green);
    border-radius: 1px;
    box-shadow: 0 0 3px var(--neon-green);
}

.sig-bar.s1 { height: 3px; }
.sig-bar.s2 { height: 6px; }
.sig-bar.s3 { height: 9px; }
.sig-bar.s4 { height: 12px; animation: sigFlicker 3s infinite ease-in-out; }

@keyframes sigFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.chat-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-family: var(--font-heading);
    font-size: 0.58rem;
    font-weight: 700;
    color: var(--neon-green);
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    padding: 1px 5px;
    border-radius: 8px;
}

.chat-pulse {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--neon-green);
    box-shadow: 0 0 5px var(--neon-green);
    animation: statusPulse 1.5s infinite ease-in-out;
}

.btn-chat-toggle {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 4px;
    color: var(--neon-cyan);
    font-size: 0.75rem;
    cursor: pointer;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s ease;
}

.btn-chat-toggle:hover {
    background: rgba(0, 243, 255, 0.25);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 8px rgba(0, 243, 255, 0.5);
    transform: scale(1.05);
}

.chat-unread-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff0055;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.55rem;
    font-weight: 900;
    padding: 1px 4px;
    border-radius: 6px;
    border: 1px solid #ffffff;
    box-shadow: 0 0 8px #ff0055;
    animation: unreadPulse 1.2s infinite ease-in-out;
}

@keyframes unreadPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); box-shadow: 0 0 12px #ff0055; }
}

/* Chat Messages Feed */
.chat-messages-container {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px 2px 4px 0;
    margin: 2px 0 4px 0;
    font-size: 0.8rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 243, 255, 0.4) transparent;
}

.chat-messages-container::-webkit-scrollbar {
    width: 4px;
}

.chat-messages-container::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages-container::-webkit-scrollbar-thumb {
    background: rgba(0, 243, 255, 0.4);
    border-radius: 4px;
}

.chat-msg-item {
    line-height: 1.35;
    word-break: break-word;
    padding: 3px 6px;
    border-radius: 4px;
    background: rgba(0, 243, 255, 0.03);
    border-left: 2px solid rgba(0, 243, 255, 0.3);
    animation: commMsgIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    transition: background 0.15s ease;
}

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

.chat-msg-item:hover {
    background: rgba(0, 243, 255, 0.08);
}

.chat-msg-item.self-msg {
    border-left-color: var(--neon-cyan);
    background: rgba(0, 243, 255, 0.05);
}

.chat-msg-item.other-msg {
    border-left-color: var(--neon-magenta);
    background: rgba(255, 0, 119, 0.04);
}

.chat-msg-item.system-msg {
    border-left-color: var(--neon-amber) !important;
    background: rgba(255, 170, 0, 0.07) !important;
}

.chat-time {
    font-size: 0.62rem;
    font-family: var(--font-heading);
    color: rgba(148, 163, 184, 0.7);
    margin-right: 4px;
    letter-spacing: 0.5px;
}

.chat-sender-badge {
    font-family: var(--font-heading);
    font-size: 0.74rem;
    font-weight: 700;
    margin-right: 4px;
}

.chat-sender-badge.self-badge {
    color: var(--neon-cyan);
    text-shadow: 0 0 6px rgba(0, 243, 255, 0.4);
}

.chat-sender-badge.other-badge {
    color: #ff66b2;
    text-shadow: 0 0 6px rgba(255, 102, 178, 0.4);
}

.system-badge {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--neon-amber);
    text-shadow: 0 0 6px rgba(255, 170, 0, 0.4);
    margin-right: 4px;
}

.chat-body {
    color: #f1f5f9;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
}

/* Quick Emote / Radio Macro Chips */
.quick-emotes-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 5px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.quick-emotes-bar::-webkit-scrollbar {
    display: none;
}

.quick-emote-btn {
    all: unset;
    background: rgba(12, 22, 45, 0.85);
    border: 1px solid rgba(0, 243, 255, 0.25);
    border-radius: 12px;
    color: #e2e8f0;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.quick-emote-btn .btn-em-icon {
    font-size: 0.72rem;
}

.quick-emote-btn:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
    color: #ffffff;
}

.quick-emote-btn.emote-hello:hover {
    border-color: var(--neon-cyan);
    background: rgba(0, 243, 255, 0.2);
}

.quick-emote-btn.emote-travel:hover {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.2);
}

.quick-emote-btn.emote-mine:hover {
    border-color: var(--neon-green);
    background: rgba(0, 255, 136, 0.2);
}

.quick-emote-btn.emote-sos:hover {
    border-color: #f87171;
    background: rgba(248, 113, 113, 0.2);
    box-shadow: 0 0 10px rgba(248, 113, 113, 0.4);
}

.quick-emote-btn.emote-gate:hover {
    border-color: #c084fc;
    background: rgba(192, 132, 252, 0.2);
}

/* Chat Input Row */
.chat-input-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.chat-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: rgba(8, 15, 32, 0.95);
    border: 1px solid rgba(0, 243, 255, 0.35);
    border-radius: 6px;
    padding: 0 8px;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.6);
    transition: all 0.2s ease;
}

.chat-input-wrapper:focus-within {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 12px rgba(0, 243, 255, 0.4), inset 0 0 8px rgba(0, 0, 0, 0.6);
    background: rgba(8, 15, 32, 1);
}

.input-prefix {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--neon-cyan);
    margin-right: 4px;
    user-select: none;
    opacity: 0.8;
}

.chat-input-wrapper input {
    all: unset;
    flex: 1;
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: #ffffff;
    padding: 5px 0;
    box-sizing: border-box;
}

.chat-input-wrapper input::placeholder {
    color: rgba(148, 163, 184, 0.55);
    font-size: 0.74rem;
}

.btn-send-chat {
    all: unset;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #00f3ff 0%, #0077ff 100%);
    border: 1px solid var(--neon-cyan);
    border-radius: 6px;
    color: #030814;
    cursor: pointer;
    padding: 5px 10px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
    transition: all 0.2s ease;
    box-sizing: border-box;
    white-space: nowrap;
}

.btn-send-chat .send-icon {
    font-size: 0.72rem;
    color: #030814;
}

.btn-send-chat:hover {
    background: linear-gradient(135deg, #33f6ff 0%, #2288ff 100%);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.6);
    transform: translateY(-1px);
}

.btn-send-chat:active {
    transform: scale(0.96);
}

/* Victory Modal */
.victory-modal {
    max-width: 600px;
    text-align: center;
    border: 1px solid var(--neon-magenta);
    box-shadow: 0 0 60px rgba(247, 37, 133, 0.4);
}

.galaxy-orb {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: radial-gradient(circle, #f72585, #7209b7, #00f3ff);
    border-radius: 50%;
    box-shadow: 0 0 35px var(--neon-magenta);
    animation: rotateOrb 10s linear infinite;
}

@keyframes rotateOrb {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.victory-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 20px var(--neon-magenta);
    margin-bottom: 8px;
}

.victory-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.victory-summary {
    display: flex;
    justify-content: space-around;
    background: rgba(0, 0, 0, 0.3);
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 24px;
    border: 1px solid rgba(247, 37, 133, 0.3);
}

.v-stat span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.v-stat b {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #fff;
}

.victory-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.highlight-cyan {
    color: var(--neon-cyan) !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 243, 255, 0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}

/* ==========================================================
   DEVELOPERS BANNER & CREDITS MODAL
   ========================================================== */
.developers-banner {
    margin-top: 14px;
    padding: 10px 14px;
    background: rgba(10, 20, 45, 0.6);
    border: 1px solid rgba(0, 243, 255, 0.25);
    border-radius: 10px;
    text-align: center;
}

.devs-title {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--neon-cyan);
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.devs-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.dev-chip {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    background: rgba(0, 243, 255, 0.08);
    border: 1px solid rgba(0, 243, 255, 0.2);
    padding: 3px 10px;
    border-radius: 20px;
    transition: all 0.25s ease;
}

.dev-chip:hover {
    background: rgba(0, 243, 255, 0.2);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
    transform: translateY(-2px);
}

.btn-credits-highlight {
    border-color: rgba(247, 37, 133, 0.4) !important;
}

.btn-credits-highlight:hover {
    border-color: var(--neon-magenta) !important;
    color: var(--neon-magenta) !important;
}

/* Credits Modal */
.credits-modal {
    max-width: 820px;
    text-align: center;
    border: 1px solid rgba(0, 243, 255, 0.4);
    box-shadow: 0 0 60px rgba(0, 243, 255, 0.25);
}

.credits-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--neon-amber);
    background: rgba(255, 170, 0, 0.12);
    border: 1px solid rgba(255, 170, 0, 0.3);
    padding: 3px 12px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.developers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 20px 0;
    text-align: left;
}

.dev-card {
    padding: 16px 18px;
    border: 1px solid var(--card-border, rgba(0, 243, 255, 0.3));
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.dev-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--card-glow, var(--neon-cyan));
    box-shadow: 0 0 12px var(--card-glow, var(--neon-cyan));
}

.dev-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 25px var(--card-glow, rgba(0, 243, 255, 0.4));
}

.dev-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.dev-avatar {
    font-size: 1.8rem;
}

.dev-badge-tag {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 800;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.dev-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 2px;
}

.dev-role {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--neon-cyan);
    margin-bottom: 8px;
}

.dev-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.credits-footer {
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================
   MOBILE & TABLET TOUCH CONTROLS
   ========================================================== */
.touch-controls-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 50;
    display: none;
    overflow: hidden;
}

.touch-controls-container.visible {
    display: block;
}

/* Sol Dinamik / Serbest Yüzen Sanal Joystick Alanı */
.touch-joystick-zone {
    position: absolute;
    top: 0;
    left: 0;
    width: 50vw;
    height: 100vh;
    pointer-events: auto;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    z-index: 50;
}

.touch-joystick-base {
    position: absolute;
    left: 110px;
    top: calc(100vh - 120px);
    width: 130px;
    height: 130px;
    margin-left: -65px;
    margin-top: -65px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.08) 0%, rgba(10, 20, 45, 0.75) 100%);
    border: 2px solid rgba(0, 243, 255, 0.4);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.2), inset 0 0 20px rgba(0, 243, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: opacity 0.25s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    opacity: 0.6;
}

.touch-joystick-base.active {
    opacity: 1;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 35px rgba(0, 243, 255, 0.45), inset 0 0 25px rgba(0, 243, 255, 0.25);
}

.joystick-ring-glow {
    position: absolute;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 1px dashed rgba(0, 243, 255, 0.35);
    pointer-events: none;
    animation: rotateSlow 20s linear infinite;
}

.joystick-arrow {
    position: absolute;
    font-size: 0.75rem;
    color: rgba(0, 243, 255, 0.55);
    font-family: var(--font-heading);
    pointer-events: none;
    line-height: 1;
}
.joystick-arrow.arrow-up { top: 7px; left: 50%; transform: translateX(-50%); }
.joystick-arrow.arrow-down { bottom: 7px; left: 50%; transform: translateX(-50%); }
.joystick-arrow.arrow-left { left: 7px; top: 50%; transform: translateY(-50%); }
.joystick-arrow.arrow-right { right: 7px; top: 50%; transform: translateY(-50%); }

.touch-joystick-knob {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #00f3ff 0%, #0066cc 60%, #040c1e 100%);
    border: 2.5px solid #ffffff;
    box-shadow: 0 0 18px rgba(0, 243, 255, 0.8), inset 0 0 10px rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    position: relative;
    will-change: transform;
}

.knob-core {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 8px #ffffff, 0 0 14px #00f3ff;
}

.joystick-hint-badge {
    position: absolute;
    bottom: 18px;
    left: 20px;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(0, 243, 255, 0.75);
    letter-spacing: 0.5px;
    pointer-events: none;
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.5);
    transition: opacity 0.3s ease;
}

/* Sağ Dokunmatik Aksiyon Butonları (Ergonomik Başparmak Arkı) */
.touch-action-buttons {
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: grid;
    grid-template-columns: repeat(2, 68px);
    grid-template-rows: repeat(2, 68px);
    gap: 16px;
    pointer-events: auto;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    z-index: 52;
}

.touch-btn {
    all: unset;
    box-sizing: border-box;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 25, 55, 0.88) 0%, rgba(5, 12, 28, 0.95) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 2px solid rgba(255, 255, 255, 0.22);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    touch-action: none;
    transition: transform 0.08s ease, box-shadow 0.12s ease, filter 0.12s ease;
    color: #fff;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.touch-btn:active, .touch-btn.active {
    transform: scale(0.91);
    filter: brightness(1.35);
}

.touch-btn .t-icon {
    font-size: 1.4rem;
    line-height: 1;
    pointer-events: none;
}

.touch-btn .t-label {
    font-family: var(--font-heading);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    margin-top: 3px;
    pointer-events: none;
}

.touch-btn-fire {
    grid-column: 2;
    grid-row: 2;
    width: 78px;
    height: 78px;
    margin-left: -10px;
    margin-top: -10px;
    background: radial-gradient(circle, rgba(255, 51, 85, 0.45) 0%, rgba(30, 8, 18, 0.95) 100%);
    border-color: #ff3366;
    box-shadow: 0 0 25px rgba(255, 51, 85, 0.5), inset 0 0 15px rgba(255, 51, 85, 0.2);
}

.touch-btn-fire:active, .touch-btn-fire.active {
    box-shadow: 0 0 40px rgba(255, 51, 85, 0.9), inset 0 0 25px rgba(255, 51, 85, 0.5);
}

.touch-btn-boost {
    grid-column: 1;
    grid-row: 2;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.35) 0%, rgba(6, 20, 48, 0.95) 100%);
    border-color: #00f3ff;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4), inset 0 0 12px rgba(0, 243, 255, 0.2);
}

.touch-btn-boost:active, .touch-btn-boost.active {
    box-shadow: 0 0 35px rgba(0, 243, 255, 0.85);
}

.touch-btn-scan {
    grid-column: 2;
    grid-row: 1;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.35) 0%, rgba(22, 10, 40, 0.95) 100%);
    border-color: #a855f7;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4), inset 0 0 12px rgba(168, 85, 247, 0.2);
}

.touch-btn-scan:active, .touch-btn-scan.active {
    box-shadow: 0 0 35px rgba(168, 85, 247, 0.85);
}

.touch-btn-interact {
    grid-column: 1;
    grid-row: 1;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.45) 0%, rgba(6, 32, 18, 0.95) 100%);
    border-color: #00ff88;
    box-shadow: 0 0 28px rgba(0, 255, 136, 0.6), inset 0 0 16px rgba(0, 255, 136, 0.3);
    animation: statusPulse 1.2s infinite ease-in-out;
}

/* Mobil Üst Bar Hızlı İşlemler */
.touch-top-bar {
    position: absolute;
    top: 14px;
    right: 175px;
    display: flex;
    gap: 8px;
    pointer-events: auto;
    z-index: 55;
}

.touch-mini-btn {
    all: unset;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--neon-cyan);
    background: rgba(10, 20, 45, 0.88);
    border: 1px solid rgba(0, 243, 255, 0.35);
    border-radius: 6px;
    padding: 5px 10px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 12px rgba(0, 243, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    user-select: none;
    touch-action: none;
}

.touch-mini-btn:active {
    background: rgba(0, 243, 255, 0.3);
    transform: scale(0.94);
}

/* ==========================================================
   CINEMATIC MOBILE & TABLET COCKPIT RESPONSIVE DESIGN SYSTEM
   ========================================================== */

/* Tablets & Small Laptops (<= 1024px) */
@media (max-width: 1024px) {
    .touch-controls-container {
        display: block !important;
    }

    .hud-controls-hint {
        display: none !important;
    }

    .hud-resources-panel {
        display: none !important; /* Accessible cleanly from Hangar */
    }
}

/* Smart Phones & Tablets (<= 880px) */
@media (max-width: 880px) {
    body, html {
        font-size: 13px !important;
        overflow: hidden !important;
        user-select: none !important;
        -webkit-user-select: none !important;
    }

    /* 1. Sleek Mobile Login & Ship Selection Screen */
    .login-box {
        width: 92% !important;
        max-width: 480px !important;
        padding: 16px 14px !important;
        max-height: 92vh !important;
        overflow-y: auto !important;
        border-radius: 14px !important;
        background: linear-gradient(145deg, rgba(8, 16, 38, 0.95) 0%, rgba(3, 8, 22, 0.98) 100%) !important;
        border: 1px solid rgba(0, 243, 255, 0.35) !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 243, 255, 0.15) !important;
    }

    .game-title {
        font-size: 1.6rem !important;
        letter-spacing: 2px !important;
        margin-bottom: 2px !important;
    }

    .subtitle {
        font-size: 0.68rem !important;
        letter-spacing: 1.5px !important;
        margin-bottom: 8px !important;
    }

    .ship-cards {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
        margin-bottom: 12px !important;
    }

    .ship-card {
        flex-direction: column !important;
        text-align: center !important;
        padding: 6px 4px !important;
        gap: 4px !important;
        border-radius: 8px !important;
        min-height: auto !important;
    }

    .ship-preview-box {
        width: 44px !important;
        height: 44px !important;
        margin: 0 auto !important;
    }

    .ship-preview-box canvas {
        width: 44px !important;
        height: 44px !important;
    }

    .ship-info h3 {
        font-size: 0.64rem !important;
        letter-spacing: 0.2px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .ship-info p, .ship-info .tag {
        display: none !important;
    }

    .login-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        margin-top: 10px !important;
    }

    .btn-start-mission {
        padding: 12px 16px !important;
        font-size: 0.9rem !important;
    }

    .developers-banner {
        display: none !important;
    }

    /* 2. Ultra-Sleek Single-Line Top Cockpit Bar */
    .hud-top-bar {
        top: 6px !important;
        left: 6px !important;
        right: 6px !important;
        height: 38px !important;
        padding: 0 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
        border-radius: 8px !important;
        background: rgba(6, 12, 28, 0.92) !important;
        backdrop-filter: blur(14px) !important;
        -webkit-backdrop-filter: blur(14px) !important;
        border: 1px solid rgba(0, 243, 255, 0.3) !important;
        z-index: 40 !important;
    }

    .pilot-profile {
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
        flex-shrink: 0 !important;
    }

    .pilot-avatar {
        width: 26px !important;
        height: 26px !important;
        font-size: 1.1rem !important;
        border-width: 1.5px !important;
    }

    .pilot-name-display {
        font-size: 0.76rem !important;
        font-weight: 800 !important;
        color: #00f3ff !important;
        max-width: 80px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .pilot-rank, .sector-indicator {
        display: none !important;
    }

    .ngc-progress-indicator {
        display: flex !important;
        align-items: center !important;
        gap: 3px !important;
        padding: 2px 6px !important;
        background: rgba(0, 243, 255, 0.08) !important;
        border: 1px solid rgba(0, 243, 255, 0.25) !important;
        border-radius: 12px !important;
        font-size: 0.65rem !important;
        flex-shrink: 0 !important;
    }

    .ngc-label {
        display: none !important;
    }

    .beacon-slots {
        display: none !important;
    }

    .score-display {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        flex-shrink: 0 !important;
    }

    .score-display .label {
        display: none !important;
    }

    .score-value {
        font-size: 0.85rem !important;
        color: #ffd700 !important;
    }

    .hud-quick-btns {
        display: flex !important;
        align-items: center !important;
        gap: 3px !important;
        flex-shrink: 0 !important;
        overflow: visible !important;
        padding: 0 !important;
        border: none !important;
        width: auto !important;
    }

    .btn-hud {
        padding: 4px 6px !important;
        font-size: 0.65rem !important;
        border-radius: 5px !important;
        height: 26px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Hide non-essential test buttons on mobile header */
    #btnTriggerMeteor, #btnTriggerSolar, #btnCredits, #btnOnlinePilots, #btnLeaderboard {
        display: none !important;
    }

    /* 3. Micro Status Gauges (Top Left under Header) */
    .hud-status-panel {
        top: 48px !important;
        left: 6px !important;
        bottom: auto !important;
        width: 125px !important;
        padding: 5px 7px !important;
        border-radius: 8px !important;
        background: rgba(6, 12, 28, 0.85) !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(0, 243, 255, 0.25) !important;
        z-index: 35 !important;
    }

    .status-gauge {
        margin-bottom: 3px !important;
    }

    .gauge-label {
        font-size: 0.58rem !important;
        font-weight: 700 !important;
        margin-bottom: 1px !important;
    }

    .bar-container {
        height: 4px !important;
        border-radius: 2px !important;
    }

    .telemetry-info {
        display: none !important;
    }

    /* 4. Circular Holo Radar (Top Right under Header) */
    .hud-radar-panel {
        top: 48px !important;
        right: 6px !important;
        bottom: auto !important;
        width: 76px !important;
        height: 76px !important;
        padding: 3px !important;
        border-radius: 50% !important;
        background: rgba(6, 12, 28, 0.85) !important;
        border: 1.5px solid rgba(0, 243, 255, 0.4) !important;
        box-shadow: 0 0 15px rgba(0, 243, 255, 0.2) !important;
        z-index: 35 !important;
    }

    .radar-header, .radar-legend {
        display: none !important;
    }

    .radar-wrapper {
        width: 70px !important;
        height: 70px !important;
        border-radius: 50% !important;
    }

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

    /* 5. Mobile Drawer Chat (Hidden by default, slides down on tap) */
    .hud-chat-panel {
        top: 48px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        bottom: auto !important;
        width: 92% !important;
        max-width: 380px !important;
        height: 220px !important;
        z-index: 80 !important;
        display: none !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 243, 255, 0.25) !important;
    }

    .hud-chat-panel.active-mobile, .hud-chat-panel:not(.collapsed-mobile) {
        display: flex !important;
    }

    /* 6. Dynamic Floating Virtual Joystick */
    .touch-joystick-zone {
        top: 0 !important;
        left: 0 !important;
        width: 50vw !important;
        height: 100vh !important;
        position: absolute !important;
        z-index: 45 !important;
    }

    .touch-joystick-base {
        width: 105px !important;
        height: 105px !important;
        margin-left: -52px !important;
        margin-top: -52px !important;
        border-radius: 50% !important;
        background: radial-gradient(circle, rgba(0, 243, 255, 0.08) 0%, rgba(8, 16, 40, 0.75) 100%) !important;
        border: 2px solid rgba(0, 243, 255, 0.45) !important;
        box-shadow: 0 0 20px rgba(0, 243, 255, 0.25) !important;
    }

    .touch-joystick-knob {
        width: 42px !important;
        height: 42px !important;
    }

    .knob-core {
        width: 12px !important;
        height: 12px !important;
    }

    .joystick-hint-badge {
        display: none !important;
    }

    /* 7. Ergonomic Radial Cockpit Action Cluster */
    .touch-action-buttons {
        bottom: 16px !important;
        right: 16px !important;
        grid-template-columns: repeat(2, 58px) !important;
        grid-template-rows: repeat(2, 58px) !important;
        gap: 12px !important;
        z-index: 50 !important;
    }

    .touch-btn {
        width: 58px !important;
        height: 58px !important;
        border-radius: 50% !important;
    }

    .touch-btn .t-svg-icon {
        width: 24px !important;
        height: 24px !important;
    }

    .touch-btn .t-label {
        font-size: 0.55rem !important;
        margin-top: 1px !important;
    }

    .touch-btn-fire {
        width: 70px !important;
        height: 70px !important;
        margin-left: -12px !important;
        margin-top: -12px !important;
    }

    .touch-btn-fire .t-svg-icon {
        width: 28px !important;
        height: 28px !important;
    }

    .touch-top-bar {
        display: none !important; /* Integrated cleanly into main HUD header */
    }
}

/* ==========================================================================
   AUTO-SAVE RESUME BANNER & CONTROLS
   ========================================================================== */
.saved-game-pill {
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.08) 0%, rgba(157, 78, 221, 0.12) 100%);
    border: 1px solid rgba(0, 243, 255, 0.35);
    border-radius: 10px;
    padding: 10px 14px;
    margin: 12px 0 16px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(0, 243, 255, 0.05);
    text-align: left;
    animation: pulseBorder 3s infinite alternate;
}

@keyframes pulseBorder {
    0% { border-color: rgba(0, 243, 255, 0.3); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); }
    100% { border-color: rgba(0, 255, 136, 0.6); box-shadow: 0 4px 25px rgba(0, 255, 136, 0.15); }
}

.saved-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: var(--neon-cyan);
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.15);
}

.saved-status-badge {
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid rgba(0, 255, 136, 0.4);
    color: #00ff88;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.saved-game-details {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.88rem;
    color: #e2e8f0;
    font-weight: 600;
    line-height: 1.4;
}

.saved-game-details b {
    color: #00f3ff;
}

.btn-reset-save {
    background: rgba(255, 51, 102, 0.12) !important;
    border: 1px solid rgba(255, 51, 102, 0.4) !important;
    color: #ff3366 !important;
    font-size: 0.78rem !important;
    transition: all 0.2s ease !important;
}

.btn-reset-save:hover {
    background: rgba(255, 51, 102, 0.3) !important;
    border-color: #ff3366 !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.4) !important;
    transform: translateY(-2px) !important;
}




