﻿body {
    font-family: 'Press Start 2P', 'Courier New', monospace;
    margin: 0;
    padding: 0;
    background-color: #0a0a15;
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
}

.app-container {
    position: relative;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* ============================================
   ARCADE COMMAND CENTER - PIXEL ART SIDEBAR
   ============================================ */

.arcade-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #0a0a15;
    border-right: 4px solid #00ff41;
    box-shadow:
            inset -4px 0 0 0 #000,
            4px 0 0 0 #00ff41,
            8px 0 8px 0 rgba(0, 255, 65, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Press Start 2P', monospace;
    z-index: 100;
}

/* Scanline Effect */
.arcade-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.15) 0px,
            rgba(0, 0, 0, 0.15) 2px,
            transparent 2px,
            transparent 4px
    );
    pointer-events: none;
    z-index: 1000;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* ============================================
   ARCADE HEADER
   ============================================ */

.arcade-header {
    padding: 16px;
    background: #1a1a2e;
    border-bottom: 4px solid #00ff41;
    box-shadow:
            inset 0 -2px 0 0 #000,
            0 4px 0 0 #000;
}

.arcade-menu-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.screen-frame {
    background: #000;
    border: 4px solid #2a2a4e;
    box-shadow:
            inset 0 0 0 2px #00ff41,
            inset 0 0 20px rgba(0, 255, 65, 0.3),
            0 4px 0 0 #00ff41;
    padding: 12px;
}

.pixel-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 32px;
    filter: drop-shadow(0 0 8px #00ff41);
    animation: pulse 2s steps(2) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.logo-text {
    font-size: 10px;
    color: #00ff41;
    text-shadow:
            2px 2px 0 #000,
            0 0 10px #00ff41;
    line-height: 1.6;
    letter-spacing: 1px;
}

/* ============================================
   TAB BAR (VERTICAL TABS)
   ============================================ */

.tab-bar {
    max-height: 150px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 12px;
    background: #0d0d1a;
    border-bottom: 4px solid #00ff41;
    box-shadow: 0 4px 0 0 #000;
}

.tab-bar-container {
    overflow-y: auto;
}

.tab-button {
    width: 100%;
    height: 56px;
    background: #1a1a2e;
    border: 3px solid #2a2a4e;
    box-shadow:
            inset 0 0 0 1px #000,
            3px 3px 0 0 #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    transition: none;
    position: relative;
    font-family: 'Press Start 2P', monospace;
    margin-top: 4px;
    margin-bottom: 4px;
}

.tab-button::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #00ff41;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.1s steps(3);
}

.tab-button:hover::before {
    transform: scaleY(1);
}

.tab-button:hover {
    background: #2a2a3e;
    border-color: #00ff41;
    transform: translate(-2px, -2px);
    box-shadow:
            inset 0 0 0 1px #000,
            5px 5px 0 0 #000;
}

.tab-button.active {
    background: #00ff41;
    border-color: #000;
    box-shadow:
            inset 0 0 0 2px #000,
            3px 3px 0 0 #000,
            0 0 20px rgba(0, 255, 65, 0.6);
}

.tab-button.active .tab-icon,
.tab-button.active .tab-label {
    filter: drop-shadow(2px 2px 0 #000);
}

.tab-icon {
    font-size: 20px;
    line-height: 1;
}

.tab-button.active .tab-icon {
    animation: tabBounce 0.4s steps(2);
}

@keyframes tabBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.tab-label {
    font-size: 8px;
    color: #00ffff;
    letter-spacing: 1px;
}

.tab-button.active .tab-label {
    color: #000;
}

/* ============================================
   TAB CONTENT AREA
   ============================================ */

.tab-content-area {
    flex: 1;
    overflow: hidden;
    position: relative;
    background: #0a0a15;
}

.tab-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-100%);
    transition: none;
}

.tab-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    animation: slideIn 0.3s steps(6);
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   PANEL HEADER
   ============================================ */

.panel-header {
    background: #1a1a2e;
    border-bottom: 3px solid #00ff41;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow:
            inset 0 -2px 0 0 #000,
            0 3px 0 0 #000;
}

.panel-title {
    font-size: 10px;
    color: #00ff41;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 #000;
}

.blink-cursor {
    font-size: 12px;
    color: #00ff41;
    animation: blink 1s steps(2) infinite;
}

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

.is-hidden {
    display: none !important;
}

/* ============================================
   PANEL BODY
   ============================================ */

.panel-body {
    flex: 1;
    overflow: hidden;
    padding: 0;
    background: #0d0d1a;
    display: flex;
    flex-direction: column;
}

.panel-controls {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 12px 0 12px;
    background: linear-gradient(180deg, rgba(13, 13, 26, 0.98) 0%, rgba(13, 13, 26, 0.9) 100%);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.7);
}

.panel-controls .search-box {
    position: static;
    margin: 0 0 16px 0;
}

.panel-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.panel-subtabs__button {
    flex: 1 1 auto;
    min-width: 0;
    padding: 8px 10px;
    border: 3px solid #00ff41;
    background: #000;
    color: #00ff41;
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow:
            inset 0 0 0 1px #00ff41,
            3px 3px 0 0 #000;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.panel-subtabs__button:hover {
    background: #001a12;
    color: #00ffff;
}

.panel-subtabs__button.is-active {
    background: #00ff41;
    color: #000;
    box-shadow:
            inset 0 0 0 1px #000,
            3px 3px 0 0 #000,
            0 0 12px #00ff41;
}

.panel-subtabs__button--icon {
    flex: 0 0 auto;
    width: 34px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-subtabs__button--icon svg {
    width: 14px;
    height: 14px;
}

.panel-subtabs__button:focus-visible {
    outline: 2px dashed #00ffff;
    outline-offset: 4px;
}

/* Custom Scrollbar */
.panel-body::-webkit-scrollbar {
    width: 12px;
}

.panel-body::-webkit-scrollbar-track {
    background: #000;
    border: 2px solid #00ff41;
}

.panel-body::-webkit-scrollbar-thumb {
    background: #00ff41;
    border: 2px solid #000;
    box-shadow: inset 0 0 0 1px #000;
}

.panel-body::-webkit-scrollbar-thumb:hover {
    background: #00ffff;
}

/* ============================================
   SEARCH BOX (WIKI PANEL)
   ============================================ */

.search-box {
    position: sticky;
    top: 0;
    z-index: 10;
    margin: 12px 12px 16px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #000;
    border: 3px solid #00ff41;
    padding: 8px 12px;
    box-shadow:
            inset 0 0 0 1px #00ff41,
            3px 3px 0 0 #000;
}

.search-prompt {
    font-size: 12px;
    color: #00ff41;
    text-shadow: 0 0 8px #00ff41;
}

.pixel-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #00ff41;
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    outline: none;
    text-shadow: 0 0 4px #00ff41;
}

.pixel-input::placeholder {
    color: #00ff4166;
}

/* ============================================
   WIKI LIST
   ============================================ */

.wiki-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 12px 12px 12px;
    flex: 1;
    overflow-y: auto;
}

.wiki-item {
    background: #1a1a2e;
    border: 2px solid #00ffff;
    padding: 12px;
    cursor: pointer;
    box-shadow:
            inset 0 0 0 1px #000,
            2px 2px 0 0 #000;
    transition: none;
}

.wiki-item:hover {
    background: #2a2a3e;
    border-color: #00ff41;
    transform: translate(-2px, -2px);
    box-shadow:
            inset 0 0 0 1px #000,
            4px 4px 0 0 #000;
}

.wiki-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.wiki-item-icon {
    font-size: 16px;
}

.wiki-item-name {
    font-size: 9px;
    color: #00ffff;
    text-shadow: 2px 2px 0 #000;
}

.wiki-item-desc {
    font-size: 6px;
    color: #00ff41;
    line-height: 1.6;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid #00ff4144;
}

/* ============================================
   NAV TREE (PLANETS/STATIONS PANELS)
   ============================================ */

.nav-tree {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 12px 12px 12px;
    flex: 1;
    overflow-y: auto;
}

.nav-item {
    background: #1a1a2e;
    border: 2px solid #00ffff;
    cursor: pointer;
    box-shadow:
            inset 0 0 0 1px #000,
            2px 2px 0 0 #000;
    transition: none;
    position: relative;
}

.nav-item:hover {
    background: #2a2a3e;
    border-color: #00ff41;
    transform: translate(-1px, -1px);
    box-shadow:
            inset 0 0 0 1px #000,
            3px 3px 0 0 #000;
}

.nav-item.selected {
    background: #00ffff;
    border-color: #000;
    box-shadow:
            inset 0 0 0 2px #000,
            2px 2px 0 0 #000,
            0 0 16px rgba(0, 255, 255, 0.6);
}

.nav-item-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
}

.nav-item-icon {
    font-size: 14px;
}

.nav-item.selected .nav-item-icon,
.nav-item.selected .nav-item-name {
    filter: drop-shadow(2px 2px 0 #000);
}

.nav-item-name {
    flex: 1;
    font-size: 7px;
    color: #00ffff;
    text-shadow: 2px 2px 0 #000;
    line-height: 1.4;
}

.nav-item.selected .nav-item-name {
    color: #000;
    text-shadow: none;
}

.nav-item-badge {
    font-size: 6px;
    color: #00ff41;
    background: #000;
    padding: 2px 6px;
    border: 1px solid #00ff41;
    text-transform: uppercase;
}

.nav-item.selected .nav-item-badge {
    color: #000;
    background: #ff00ff;
    border-color: #000;
}

/* Sub-items (Moons) */
.nav-sub-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s steps(5);
    background: #0d0d1a;
    border-top: 2px solid #00ff4144;
}

.nav-item.expanded .nav-sub-items {
    max-height: 500px;
    padding: 8px 8px 8px 24px;
}

.nav-sub-item {
    background: #0a0a15;
    border: 2px solid #ff00ff;
    padding: 8px 10px;
    margin-bottom: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow:
            inset 0 0 0 1px #000,
            2px 2px 0 0 #000;
}

.nav-sub-item:hover {
    background: #1a1a2e;
    border-color: #00ff41;
    transform: translate(-1px, -1px);
    box-shadow:
            inset 0 0 0 1px #000,
            3px 3px 0 0 #000;
}

.nav-sub-item.selected {
    background: #ff00ff;
    border-color: #000;
}

.nav-sub-item-icon {
    font-size: 12px;
}

.nav-sub-item-name {
    font-size: 6px;
    color: #ff00ff;
    text-shadow: 2px 2px 0 #000;
}

.nav-sub-item.selected .nav-sub-item-name {
    color: #000;
    text-shadow: none;
}

/* Expand Indicator */
.expand-indicator {
    font-size: 8px;
    color: #00ff41;
    transition: transform 0.2s steps(2);
}

.nav-item.expanded .expand-indicator {
    transform: rotate(90deg);
}

/* ============================================
   POWER INDICATOR
   ============================================ */

.power-indicator {
    background: #000;
    border-top: 4px solid #00ff41;
    padding: 6px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow:
            inset 0 2px 0 0 #00ff41,
            0 -4px 0 0 #000;
}

.power-dot {
    width: 8px;
    height: 8px;
    background: #00ff41;
    border: 2px solid #000;
    box-shadow:
            inset 0 0 4px #000,
            0 0 12px #00ff41;
    animation: powerBlink 2s steps(4) infinite;
}

@keyframes powerBlink {
    0%, 90%, 100% {
        opacity: 1;
        box-shadow: inset 0 0 4px #000, 0 0 12px #00ff41;
    }
    95% {
        opacity: 0.3;
        box-shadow: inset 0 0 4px #000, 0 0 4px #00ff41;
    }
}

.power-text {
    font-size: 8px;
    color: #00ff41;
    letter-spacing: 2px;
    text-shadow:
            2px 2px 0 #000,
            0 0 8px #00ff41;
}

.main-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
}

/* ============================================
   LEGACY STYLES - TO BE REMOVED
   ============================================ */



#game {
    width: 100%;
    height: 100%;
    position: relative;
}

.galaxy-canvas {
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    width: 100%;
    height: 100%;
    display: block;
}

.galaxy-canvas-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.galaxy-canvas-container .galaxy-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.planet-surface {
    display: none; /* Hide actual planet surfaces, they're rendered to the galaxy canvas */
}

.planet-info-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(30, 35, 65, 0.9);
    border-radius: 8px;
    padding: 20px;
    max-width: 300px;
    width: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #303050;
    z-index: 10;
}

.planet-details {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #303050;
}

.resource-list, .stats-list {
    list-style-type: none;
    padding-left: 5px;
    margin-bottom: 20px;
}

.resource-list li, .stats-list li {
    padding: 5px 0;
    border-bottom: 1px solid #303050;
    color: #b8c7db;
}

.resource-list li:last-child, .stats-list li:last-child {
    border-bottom: none;
}

.reset-button {
    background-color: #3f51b5;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 20px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s, transform 0.1s;
    width: 100%;
}

.reset-button:hover {
    background-color: #303f9f;
    transform: translateY(-2px);
}

.reset-button:active {
    transform: translateY(0);
}

/* Menu styles for sidebar */


#menu h3 {
    color: #00ffff;
    margin-bottom: 12px;
    margin-top: 16px;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 2px 2px 0 #000;
}

#menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#menu li {
    padding: 10px 0;
    border-bottom: 1px solid #303050;
    cursor: pointer;
    transition: background-color 0.2s;
}

#menu li:hover {
    background-color: rgba(100, 149, 237, 0.2);
    padding-left: 10px;
}

#menu li:last-child {
    border-bottom: none;
}

/* Menu Button Styles */
.menu-button {
    width: 100%;
    background: #2a2a4e;
    border: 3px solid #00ff41;
    box-shadow:
            inset 0 0 0 1px #000,
            3px 3px 0 0 #000;
    padding: 12px 14px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    transition: none;
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    font-weight: 400;
    position: relative;
    z-index: 1001;
    image-rendering: pixelated;
}

.menu-button::before {
    display: none;
}

/* Section Toggle Specific Styles */
.section-toggle {
    justify-content: space-between;
    background: #3a3a6e;
    border: 3px solid #ff00ff;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 8px;
    box-shadow:
            inset 0 0 0 1px #000,
            3px 3px 0 0 #000;
}

.section-toggle:hover {
    background: #4a4a7e;
    border-color: #ff00ff;
    transform: translate(-2px, -2px);
    box-shadow:
            inset 0 0 0 1px #000,
            5px 5px 0 0 #000;
}

.toggle-indicator {
    font-size: 10px;
    transition: none;
    opacity: 1;
}

.section-toggle.collapsed .toggle-indicator {
    transform: rotate(-90deg);
}

.menu-button .icon {
    font-size: 16px;
    filter: drop-shadow(2px 2px 0 #000);
    min-width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-button .text {
    flex: 1;
    text-align: left;
    line-height: 1.4;
}

.menu-button:hover {
    background: #3a3a5e;
    transform: translate(-2px, -2px);
    box-shadow:
            inset 0 0 0 1px #000,
            5px 5px 0 0 #000;
    border-color: #00ff41;
}

.menu-button:active {
    transform: translate(0, 0);
    box-shadow:
            inset 0 0 0 1px #000,
            3px 3px 0 0 #000;
}

.menu-button.active {
    background: #00ff41;
    color: #000;
    box-shadow:
            inset 0 0 0 2px #000,
            3px 3px 0 0 #000;
    border-color: #000;
    z-index: 1002;
}

.menu-button.active::after {
    content: 'â–º';
    position: absolute;
    top: 50%;
    right: 8px;
    color: #000;
    font-size: 10px;
    transform: translateY(-50%);
}
.planets-container {
    max-height: 320px;
    overflow-x: hidden;
    overflow-y: auto;
    transition: max-height 0.2s steps(4), opacity 0.2s;
    opacity: 1;
    margin-bottom: 8px;
    padding: 8px 4px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #00ff41;
    scrollbar-width: thin;
    scrollbar-color: #00ff41 #1a1a2e;
}

/* Custom scrollbar for webkit browsers */
.planets-container::-webkit-scrollbar {
    width: 8px;
}

.planets-container::-webkit-scrollbar-track {
    background: #1a1a2e;
    border: 1px solid #00ff41;
}

.planets-container::-webkit-scrollbar-thumb {
    background: #00ff41;
    border: 1px solid #000;
}

.planets-container::-webkit-scrollbar-thumb:hover {
    background: #00ffff;
}

.planets-container.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0 4px;
    overflow: hidden;
    margin-bottom: 0;
}


/* Hide nested submenu when collapsed */
.submenu.collapsed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

/* Button chevron rotation when collapsed */
.planet-button.has-children .toggle-indicator {
    transition: transform 0.3s ease;
}

.planet-button.has-children.collapsed .toggle-indicator {
    transform: rotate(-90deg);
}

/* Optional spacing for nodes */
.menu-node {
    margin-bottom: 6px;
}

/* Planet Button Styles */
.planet-button {
    width: 100%;
    background: #1a1a3e;
    border: 2px solid #00ffff;
    box-shadow:
            inset 0 0 0 1px #000,
            2px 2px 0 0 #000;
    padding: 10px 12px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    transition: none;
    font-family: 'Press Start 2P', monospace;
    font-size: 7px;
    font-weight: 400;
    border-left: 4px solid transparent;
    position: relative;
    image-rendering: pixelated;
}

.planet-button::before {
    display: none;
}

.planet-button:hover {
    background: #2a2a4e;
    transform: translate(-1px, -1px);
    box-shadow:
            inset 0 0 0 1px #000,
            3px 3px 0 0 #000;
    border-left-color: #00ffff;
    border-color: #00ffff;
}

.planet-button.selected {
    background: #00ffff;
    color: #000;
    box-shadow:
            inset 0 0 0 1px #000,
            2px 2px 0 0 #000;
    border-left-color: #ff00ff;
    border-color: #000;
    font-weight: 400;
}

.planet-button .planet-icon {
    font-size: 14px;
    min-width: 18px;
    text-align: center;
}

.planet-button .planet-name {
    flex: 1;
    text-align: left;
    line-height: 1.4;
}

.planet-button .planet-size {
    font-size: 6px;
    color: #00ff41;
    background: #000;
    padding: 2px 4px;
    border: 1px solid #00ff41;
}

/* Section Separators */
#planets-section,
#stations-section {
    margin-bottom: 14px;
    position: relative;
}

#planets-section::after,
#stations-section::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(100, 149, 237, 0.3), transparent);
}



/* Resource Collection Menu - Glassmorphism Style */
.resource-collection-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 320px;
    min-height: 400px;
    background: rgba(30, 35, 65, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
    padding: 25px;
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transform: translateX(50px) scale(0.9);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff;
}

.resource-collection-menu.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
}

.resource-collection-menu.has-custom-position {
    right: auto;
    bottom: auto;
    transform: none;
}

.resource-collection-menu.has-custom-position.visible {
    transform: none;
}

.resource-collection-menu.is-dragging {
    transition: none;
}

.resource-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.resource-collection-menu.is-dragging .resource-menu-header {
    cursor: grabbing;
}

.resource-menu-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.resource-menu-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.resource-menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.sidebar-actions {
    padding: 12px 12px 0;
    background: #0d0d1a;
    border-top: 2px solid #00ff41;
    box-shadow: inset 0 4px 0 0 #000;
}

.sidebar-action-button {
    width: 100%;
    height: 30px;
    margin-bottom: 12px;
    background: #1a1a2e;
    border: 3px solid #2a2a4e;
    box-shadow:
            inset 0 0 0 1px #000,
            3px 3px 0 0 #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    letter-spacing: 0.08em;
    color: #ffffff;
    background-image: linear-gradient(135deg, rgba(0, 255, 65, 0.25), rgba(0, 255, 65, 0));
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.sidebar-action-button:hover {
    transform: translateY(-2px);
    border-color: #00ff41;
    box-shadow:
            inset 0 0 0 1px #000,
            4px 4px 0 0 #000,
            0 0 16px rgba(0, 255, 65, 0.4);
}

.sidebar-action-button__icon {
    font-size: 14px;
}

.sidebar-action-button__label {
    flex: 1;
    text-align: center;
}

.inventory-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 2000;
}

.inventory-modal.is-visible {
    pointer-events: auto;
    opacity: 1;
}

.inventory-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 22, 0.7);
    backdrop-filter: blur(6px);
}

.inventory-modal__window {
    position: relative;
    width: min(480px, calc(100% - 40px));
    max-height: calc(100% - 80px);
    background: rgba(14, 18, 40, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow:
            0 12px 40px rgba(0, 0, 0, 0.55),
            inset 0 1px 0 rgba(255, 255, 255, 0.22);
    padding: 28px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1;
}

.inventory-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.inventory-modal__title {
    margin: 0;
    font-size: 18px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.inventory-modal__close {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.inventory-modal__close:hover {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.25);
}

.inventory-modal__body {
    overflow-y: auto;
    padding-right: 6px;
}

.inventory-modal__description {
    margin: 0 0 16px 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
}

.inventory-modal__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 16px;
}

.inventory-modal__empty {
    margin-top: 20px;
    padding: 16px 18px;
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(10, 16, 32, 0.6);
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    display: none;
}

.credits-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 2050;
}

.credits-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.credits-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 22, 0.78);
    backdrop-filter: blur(6px);
}

.credits-modal__window {
    position: relative;
    width: min(520px, calc(100% - 40px));
    max-height: calc(100% - 80px);
    padding: 28px;
    border-radius: 28px;
    background: radial-gradient(circle at top, rgba(0, 255, 65, 0.08), rgba(8, 12, 32, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
            0 20px 45px rgba(0, 0, 0, 0.65),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1;
}

.credits-modal__window:focus {
    outline: none;
    box-shadow:
            0 20px 45px rgba(0, 0, 0, 0.65),
            inset 0 0 0 2px rgba(0, 255, 65, 0.4);
}

.credits-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.credits-modal__title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.credits-modal__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 65, 0.45);
    background: rgba(0, 255, 65, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #00ff41;
    text-shadow: 0 0 12px rgba(0, 255, 65, 0.6);
}

.credits-modal__title {
    margin: 0;
    font-size: 20px;
    letter-spacing: 0.16em;
    color: #ffffff;
}

.credits-modal__close {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.credits-modal__close:hover {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.2);
}

.credits-modal__body {
    overflow-y: auto;
    padding-right: 6px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.credits-modal__intro {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

.credits-modal__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.credits-card {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(0, 255, 65, 0.25);
    background: rgba(10, 16, 32, 0.7);
    box-shadow: inset 0 0 0 1px rgba(0, 255, 65, 0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.credits-card__label {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.12em;
    color: #00ff41;
}

.credits-card__text {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.82);
}

.credits-modal__footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.credits-modal__footnote {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
}

.credits-modal__link {
    align-self: flex-start;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 65, 0.6);
    color: #0a111f;
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.9), rgba(0, 255, 65, 0.4));
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-decoration: none;
    box-shadow:
            inset 0 0 0 1px #000,
            3px 3px 0 0 #000;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.credits-modal__link:hover {
    transform: translateY(-2px);
    box-shadow:
            inset 0 0 0 1px #000,
            4px 4px 0 0 #000,
            0 0 16px rgba(0, 255, 65, 0.35);
}

.adv-resource-card {
    background: rgba(10, 16, 32, 0.8);
    border: 1px solid rgba(0, 255, 65, 0.3);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.adv-resource-card:hover {
    background: rgba(20, 30, 50, 0.9);
    border-color: #00ff41;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.adv-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 8px;
}

.adv-card-icon {
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333;
}

.adv-card-title {
    font-size: 11px;
    color: #fff;
    font-weight: bold;
}

.adv-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    font-size: 9px;
    color: #aaa;
}

.adv-stat-row {
    display: flex;
    justify-content: space-between;
}

.adv-stat-val {
    color: #00ff41;
}

.adv-journal-tabs {
    display: flex;
    gap: 8px;
}

.adv-system-card {
    background: rgba(10, 16, 32, 0.6);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.adv-system-header {
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 2px solid rgba(0, 255, 65, 0.2);
    padding-bottom: 12px;
}

.adv-sun-icon {
    width: 64px;
    height: 64px;
    background: #000;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 200, 0, 0.3);
    border: 2px solid rgba(255, 200, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.adv-system-info {
    flex: 1;
}

.adv-system-name {
    font-size: 16px;
    color: #FFD700;
    margin-bottom: 6px;
    font-weight: bold;
}

.adv-system-meta {
    font-size: 10px;
    color: #aaa;
}

.adv-planets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.adv-planet-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.adv-planet-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #00ffff;
    transform: translateY(-2px);
}

.adv-planet-icon {
    width: 40px;
    height: 40px;
    background: #000;
    border-radius: 50%;
    border: 1px solid #333;
    overflow: hidden;
    flex-shrink: 0;
}

.adv-planet-info {
    flex: 1;
    min-width: 0;
}

.adv-planet-name {
    font-size: 11px;
    color: #fff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.adv-planet-type {
    font-size: 8px;
    color: #00ff41;
    text-transform: uppercase;
}

@media (max-width: 640px) {
    .credits-modal__window {
        width: calc(100% - 32px);
        padding: 22px;
    }

    .credits-modal__grid {
        grid-template-columns: 1fr;
    }
}

.inventory-tab-controls,
.inventory-panel__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.inventory-tab-controls .search-box,
.inventory-panel__toolbar .search-box {
    flex: 1;
}

.inventory-tab-open,
.inventory-panel__open {
    height: 40px;
    padding: 0 18px;
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.55), rgba(0, 255, 65, 0.2));
    border: 2px solid rgba(0, 255, 65, 0.6);
    box-shadow:
            inset 0 0 0 1px #000,
            3px 3px 0 0 #000;
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    color: #0a111f;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.inventory-tab-open:disabled,
.inventory-panel__open:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow:
            inset 0 0 0 1px #000,
            3px 3px 0 0 #000;
}

.inventory-tab-open:not(:disabled):hover,
.inventory-panel__open:not(:disabled):hover {
    transform: translateY(-2px);
    border-color: rgba(0, 255, 65, 0.9);
    box-shadow:
            inset 0 0 0 1px #000,
            4px 4px 0 0 #000,
            0 0 16px rgba(0, 255, 65, 0.4);
}

.inventory-panel__toolbar {
    flex-direction: column;
}

.inventory-panel__open {
}

.inventory-panel__list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 12px 20px;
}

.inventory-panel__item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.12), rgba(0, 255, 65, 0.04));
    border: 1px solid rgba(0, 255, 65, 0.35);
    box-shadow:
            inset 0 0 0 1px #000,
            3px 3px 0 0 #000;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.inventory-panel__item:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 255, 65, 0.65);
    box-shadow:
            inset 0 0 0 1px #000,
            4px 4px 0 0 #000,
            0 0 16px rgba(0, 255, 65, 0.25);
}

.inventory-panel__sprite {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 12, 24, 0.85);
    border: 1px solid rgba(0, 255, 65, 0.35);
    box-shadow: inset 0 0 0 1px #000;
}

.inventory-panel__sprite canvas {
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
}

.inventory-panel__details {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.inventory-panel__name {
    font-size: 12px;
    letter-spacing: 0.08em;
    color: #ffffff;
    text-transform: uppercase;
}

.inventory-panel__quantity {
    font-size: 11px;
    letter-spacing: 0.08em;
    font-family: 'Press Start 2P', monospace;
    color: rgba(0, 255, 65, 0.85);
}

.inventory-panel__empty {
    display: none;
    margin: 12px;
    padding: 16px 18px;
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.06em;
    line-height: 1.6;
    color: rgba(0, 255, 65, 0.85);
    background: rgba(0, 0, 0, 0.45);
    border: 1px dashed rgba(0, 255, 65, 0.4);
    box-shadow:
            inset 0 0 0 1px #000,
            3px 3px 0 0 #000;
}

.inventory-list {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.inventory-list__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: linear-gradient(145deg, rgba(18, 26, 48, 0.75), rgba(8, 12, 26, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.15),
            0 10px 22px rgba(0, 0, 0, 0.35);
}

.inventory-list__sprite {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(4, 8, 22, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 14px rgba(84, 143, 255, 0.25);
}

.inventory-list__sprite canvas {
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
}

.inventory-list__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.inventory-list__name {
    font-size: 12px;
    letter-spacing: 0.06em;
    color: #ffffff;
    text-transform: uppercase;
}

.inventory-list__quantity {
    font-size: 11px;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.75);
}

.inventory-panel-empty {
    margin-top: 16px;
    padding: 14px 16px;
    font-size: 12px;
    letter-spacing: 0.05em;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(12, 18, 36, 0.65);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 14px;
}

.inventory-slot {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 10px 10px;
    background: linear-gradient(145deg, rgba(18, 25, 45, 0.65), rgba(10, 14, 28, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.inventory-slot:hover {
    transform: translateY(-2px);
    border-color: rgba(98, 210, 255, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 32px rgba(0, 0, 0, 0.45);
}

.inventory-slot--empty {
    background: linear-gradient(145deg, rgba(15, 20, 40, 0.4), rgba(10, 14, 28, 0.6));
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.inventory-slot__sprite {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background: rgba(4, 8, 22, 0.62);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 0 16px rgba(64, 102, 255, 0.2);
}

.inventory-slot__sprite canvas {
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    pointer-events: none;
}

.inventory-slot__count {
    position: absolute;
    right: 6px;
    bottom: 6px;
    padding: 4px 7px;
    font-size: 12px;
    font-weight: 600;
    color: #0a1126;
    background: linear-gradient(135deg, #f7c654, #ffe88a);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.inventory-slot--empty .inventory-slot__count {
    display: none;
}

.inventory-slot__sprite::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.inventory-slot--empty .inventory-slot__sprite::before {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    letter-spacing: 0.08em;
}

.inventory-slot__name {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
    width: 100%;
    min-height: 16px;
}

.inventory-slot--empty .inventory-slot__name {
    color: rgba(255, 255, 255, 0.28);
}

.station-pod-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 320px;
    max-height: min(650px, calc(100vh - 80px));
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: rgba(20, 26, 56, 0.25);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
    padding: 24px;
    color: #ffffff;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px) scale(0.95);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1400;
}

.station-pod-menu--visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.station-pod-menu.has-custom-position {
    right: auto;
    bottom: auto;
    transform: none;
}

.station-pod-menu.has-custom-position.station-pod-menu--visible {
    transform: none;
}

.station-pod-menu.is-dragging {
    transition: none;
}

.station-pod-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 12px;
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.station-pod-menu.is-dragging .station-pod-menu__header {
    cursor: grabbing;
}

.station-pod-menu__title {
    margin: 0;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.station-pod-menu__close {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.station-pod-menu__close:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: rotate(90deg);
}

.station-pod-menu__body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
    flex: 1 1 auto;
    min-height: 0;
}

.station-pod-menu__section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.station-pod-menu__section--launch {
    flex-shrink: 0;
}

.station-pod-menu__section--pods {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.station-pod-menu__subtitle {
    margin: 0;
    font-size: 13px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.85);
}

.station-pod-menu__capacity {
    margin: 6px 0 14px;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: rgba(0, 255, 214, 0.75);
    text-transform: uppercase;
}

.station-pod-menu__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.station-pod-menu__field-label {
    font-size: 12px;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.65);
}

.station-pod-menu__select {
    background: rgba(9, 16, 38, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    color: #fff;
    padding: 10px 12px;
    font-size: 13px;
    letter-spacing: 0.5px;
    outline: none;
    appearance: none;
}

.station-pod-menu__select:focus {
    border-color: rgba(0, 255, 241, 0.55);
    box-shadow: 0 0 12px rgba(0, 255, 241, 0.25);
}

.station-pod-menu__button-wrapper {
    position: relative;
    display: flex;
    width: 100%;
    justify-content: center;
}

.station-pod-menu__button-wrapper[data-tooltip]:not([data-tooltip=""])::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(6, 14, 32, 0.95);
    border: 1px solid rgba(0, 255, 214, 0.35);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    line-height: 1.4;
    width: min(240px, 85vw);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 5;
    text-transform: none;
}

.station-pod-menu__button-wrapper[data-tooltip]:not([data-tooltip=""])::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(0, 255, 214, 0.35) transparent transparent transparent;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 4;
}

.station-pod-menu__button-wrapper[data-tooltip]:not([data-tooltip=""]):hover::after,
.station-pod-menu__button-wrapper[data-tooltip]:not([data-tooltip=""]):hover::before,
.station-pod-menu__button-wrapper[data-tooltip]:not([data-tooltip=""]):focus-within::after,
.station-pod-menu__button-wrapper[data-tooltip]:not([data-tooltip=""]):focus-within::before {
    opacity: 1;
}

.station-pod-menu__button {
    background: linear-gradient(135deg, rgba(0, 255, 194, 0.25), rgba(66, 134, 244, 0.35));
    border: 1px solid rgba(0, 255, 214, 0.4);
    border-radius: 14px;
    padding: 10px 18px;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.station-pod-menu__button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}

.station-pod-menu__button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 255, 214, 0.25);
}

.station-pod-menu__hint {
    margin: 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.4;
}

.station-pod-menu__list {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-gutter: stable both-edges;
}

.station-pod-menu__list-flow {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px;
}

.station-pod-menu__pod {
    background: rgba(12, 18, 42, 0.6);
    border: 1px solid rgba(0, 204, 255, 0.18);
    border-radius: 16px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    --pod-accent: rgba(0, 204, 255, 1);
    --pod-accent-soft: rgba(0, 204, 255, 0.22);
    --pod-text-strong: rgba(255, 255, 255, 0.92);
    --pod-text-regular: rgba(255, 255, 255, 0.72);
    --pod-text-muted: rgba(255, 255, 255, 0.55);
}

.station-pod-menu__pod:hover,
.station-pod-menu__pod:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(0, 255, 214, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    outline: none;
    border-color: rgba(0, 255, 214, 0.4);
}

.station-pod-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.station-pod-card__header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.station-pod-card__title {
    margin: 0;
    font-size: 14px;
    letter-spacing: 0.6px;
    color: var(--pod-text-strong);
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.station-pod-card__status {
    font-size: 10px;
    width: fit-content;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(0, 255, 214, 0.25), rgba(0, 122, 255, 0.25));
    border: 1px solid rgba(0, 255, 214, 0.35);
    color: rgba(0, 255, 241, 0.95);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}


.station-pod-card__status--traveling {
    background: linear-gradient(135deg, rgba(0, 183, 255, 0.18), rgba(0, 110, 255, 0.28));
    border-color: rgba(0, 191, 255, 0.45);
    color: rgba(153, 236, 255, 0.95);
}


.station-pod-card__status--returning {
    background: linear-gradient(135deg, rgba(255, 196, 0, 0.18), rgba(255, 120, 0, 0.28));
    border-color: rgba(255, 196, 0, 0.45);
    color: rgba(255, 223, 157, 0.95);
}

.station-pod-card__status--scanning {
    background: linear-gradient(135deg, rgba(255, 64, 64, 0.22), rgba(255, 0, 102, 0.32));
    border-color: rgba(255, 0, 85, 0.45);
    color: rgba(255, 200, 220, 0.95);
    box-shadow: 0 0 12px rgba(255, 0, 85, 0.25);
}


.station-pod-card__status--orbiting {
    background: linear-gradient(135deg, rgba(0, 255, 170, 0.2), rgba(0, 140, 122, 0.25));
    border-color: rgba(0, 255, 170, 0.45);
    color: rgba(186, 255, 227, 0.95);
}


.station-pod-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.station-pod-card__status-detail {
    margin: 0;
    font-size: 11px;
    line-height: 1.5;
    color: var(--pod-text-regular);
}

.station-pod-card__field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.station-pod-card__field-label {
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--pod-text-muted);
}

.station-pod-card__field-value {
    font-size: 12px;
    color: var(--pod-text-strong);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}



.station-pod-card__progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.station-pod-card__progress-bar {
    position: relative;
    flex: 1 1 auto;
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.station-pod-card__progress-fill {
    position: absolute;
    inset: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(0, 255, 214, 0.35), rgba(0, 122, 255, 0.55));
    border-radius: inherit;
    transition: width 0.3s ease;
}

.station-pod-card__progress-value {
    font-size: 11px;
    color: var(--pod-text-regular);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}









.station-pod-card--traveling {
    --pod-accent: rgba(0, 213, 255, 1);
    --pod-accent-soft: rgba(0, 191, 255, 0.18);
    border-color: rgba(0, 191, 255, 0.35);
}

.station-pod-card--traveling .station-pod-card__progress-fill {
    background: linear-gradient(90deg, rgba(0, 191, 255, 0.45), rgba(0, 122, 255, 0.65));
}

.station-pod-card--returning {
    --pod-accent: rgba(255, 196, 0, 1);
    --pod-accent-soft: rgba(255, 196, 0, 0.18);
    border-color: rgba(255, 196, 0, 0.32);
}

.station-pod-card--returning .station-pod-card__progress-fill {
    background: linear-gradient(90deg, rgba(255, 196, 0, 0.45), rgba(255, 140, 0, 0.6));
}

.station-pod-card--scanning {
    --pod-accent: rgba(255, 70, 70, 1);
    --pod-accent-soft: rgba(255, 0, 85, 0.24);
    border-color: rgba(255, 0, 85, 0.35);
}

.station-pod-card--scanning .station-pod-card__progress-fill {
    background: linear-gradient(90deg, rgba(255, 120, 120, 0.65), rgba(255, 0, 102, 0.8));
    box-shadow: 0 0 18px rgba(255, 0, 102, 0.35);
}

.station-pod-card--orbiting {
    --pod-accent: rgba(0, 255, 170, 1);
    --pod-accent-soft: rgba(0, 255, 170, 0.16);
    border-color: rgba(0, 255, 170, 0.28);
}

.station-pod-card--orbiting .station-pod-card__progress-fill {
    background: linear-gradient(90deg, rgba(0, 255, 170, 0.45), rgba(0, 173, 135, 0.6));
}

.station-pod-card--collecting {
    --pod-accent: rgba(0, 255, 170, 1);
    --pod-accent-soft: rgba(0, 255, 170, 0.22);
    border-color: rgba(0, 255, 170, 0.32);
    box-shadow:
            inset 0 1px 0 rgba(0, 255, 170, 0.18),
            0 6px 18px rgba(0, 255, 170, 0.18);
}

.station-pod-card--collecting .station-pod-card__progress-fill {
    background: linear-gradient(90deg, rgba(0, 255, 170, 0.6), rgba(0, 173, 135, 0.8));
    box-shadow: 0 0 18px rgba(0, 255, 170, 0.32);
}

.station-pod-card__status--collecting {
    color: rgba(0, 255, 170, 0.9);
}

.station-pod-card--idle {
    --pod-accent: rgba(120, 120, 255, 1);
    --pod-accent-soft: rgba(120, 120, 255, 0.18);
}

.station-pod-menu__empty {
    display: none;
    font-size: 12px;
    padding: 14px;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.station-pod-menu__empty--visible {
    display: block;
}

.pod-management-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px;
    background: rgba(16, 24, 54, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    color: #ffffff;
    opacity: 0;
    visibility: hidden;
    transform: translateX(24px) scale(0.95);
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1450;
}

.pod-management-menu--visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.pod-management-menu.has-custom-position {
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
}

.pod-management-menu.has-custom-position.pod-management-menu--visible {
    transform: none;
}

.pod-management-menu.is-dragging {
    transition: none;
}

.pod-management-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    padding-bottom: 12px;
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.pod-management-menu.is-dragging .pod-management-menu__header {
    cursor: grabbing;
}

.pod-management-menu__title {
    margin: 0;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pod-management-menu__close {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pod-management-menu__close:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: rotate(90deg);
}

.pod-management-menu__body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pod-management-menu__info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 16px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.pod-management-menu__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(0, 191, 255, 0.12);
    border: 1px solid rgba(0, 191, 255, 0.35);
    color: #00d5ff;
    width: fit-content;
}

.pod-management-menu__badge--orbiting {
    background: rgba(0, 255, 170, 0.12);
    border-color: rgba(0, 255, 170, 0.35);
    color: #56ffcb;
}

.pod-management-menu__badge--collecting {
    background: rgba(0, 255, 170, 0.2);
    border-color: rgba(0, 255, 170, 0.45);
    color: #00ff96;
    box-shadow: 0 0 12px rgba(0, 255, 170, 0.25);
}

.pod-management-menu__badge--returning {
    background: rgba(255, 196, 0, 0.15);
    border-color: rgba(255, 196, 0, 0.38);
    color: #ffc400;
}

.pod-management-menu__meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
}

.pod-management-menu__meta-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.pod-management-menu__label {
    color: rgba(255, 255, 255, 0.6);
}

.pod-management-menu__value {
    color: rgba(255, 255, 255, 0.9);
}

.pod-management-menu__controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pod-management-menu__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pod-management-menu__field-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
}

.pod-management-menu__select {
    background: rgba(8, 12, 34, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    padding: 10px 12px;
    font-size: 13px;
    outline: none;
}

.pod-management-menu__select:focus {
    border-color: rgba(0, 255, 214, 0.5);
    box-shadow: 0 0 12px rgba(0, 255, 214, 0.2);
}

.pod-management-menu__button {
    background: linear-gradient(135deg, rgba(0, 177, 255, 0.25), rgba(66, 134, 244, 0.35));
    border: 1px solid rgba(0, 191, 255, 0.4);
    border-radius: 12px;
    padding: 10px 18px;
    color: #ffffff;
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pod-management-menu__button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    box-shadow: none;
}

.pod-management-menu__button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 191, 255, 0.25);
}

.pod-management-menu__button--danger {
    background: linear-gradient(135deg, rgba(255, 86, 0, 0.35), rgba(255, 0, 102, 0.3));
    border: 1px solid rgba(255, 86, 0, 0.45);
}

.pod-management-menu__button--scan {
    background: linear-gradient(135deg, rgba(255, 64, 64, 0.32), rgba(255, 0, 85, 0.35));
    border: 1px solid rgba(255, 64, 64, 0.45);
    box-shadow: 0 6px 18px rgba(255, 0, 85, 0.18);
}

.pod-management-menu__button--scan:disabled {
    box-shadow: none;
}

.pod-management-menu__button--warning {
    background: linear-gradient(135deg, rgba(255, 196, 0, 0.35), rgba(255, 140, 0, 0.3));
    border: 1px solid rgba(255, 166, 0, 0.45);
    box-shadow: 0 6px 18px rgba(255, 166, 0, 0.18);
}

.pod-management-menu__button--warning:disabled {
    box-shadow: none;
}

.pod-management-menu__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.pod-management-menu__scan-progress {
    background: rgba(8, 12, 34, 0.55);
    border: 1px solid rgba(255, 0, 102, 0.28);
    box-shadow: inset 0 0 18px rgba(255, 0, 85, 0.25);
    border-radius: 14px;
    padding: 12px;
    display: none;
    flex-direction: column;
    gap: 8px;
    animation: scan-progress-intro 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pod-management-menu__scan-progress--visible {
    display: flex;
}

.pod-management-menu__scan-progress-bar {
    position: relative;
    height: 9px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 0, 85, 0.18);
}

.pod-management-menu__scan-progress-fill {
    position: absolute;
    inset: 0;
    width: 0%;
    background: linear-gradient(90deg, rgba(255, 120, 120, 0.65), rgba(255, 0, 102, 0.75));
    box-shadow: 0 0 14px rgba(255, 0, 102, 0.45);
    transition: width 0.2s ease;
}

.pod-management-menu__scan-progress-value {
    font-size: 11px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: rgba(255, 210, 210, 0.85);
    align-self: flex-end;
}

@keyframes scan-progress-intro {
    0% {
        opacity: 0;
        transform: translateY(6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.pod-management-menu__collection {
    display: none;
    flex-direction: column;
    gap: 8px;
    background: rgba(8, 18, 34, 0.6);
    border: 1px solid rgba(0, 255, 170, 0.32);
    box-shadow: inset 0 0 18px rgba(0, 255, 170, 0.18);
    border-radius: 14px;
    padding: 12px;
}

.pod-management-menu__collection--visible {
    display: flex;
}

.pod-management-menu__collection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(0, 255, 170, 0.85);
}

.pod-management-menu__collection-resource {
    font-size: 12px;
}

.pod-management-menu__collection-time {
    font-size: 10px;
    letter-spacing: 0.05em;
    color: rgba(0, 255, 170, 0.8);
}

.pod-management-menu__collection-progress {
    position: relative;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(0, 255, 170, 0.18);
}

.pod-management-menu__collection-progress-bar {
    position: absolute;
    inset: 0;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(0, 255, 170, 0.6), rgba(0, 180, 120, 0.75));
    box-shadow: 0 0 16px rgba(0, 255, 170, 0.32);
    transition: width 0.25s ease;
}
.planet-name-display {
    font-size: 14px;
    font-weight: 500;
    color: #6495ed;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.resources-section-menu {
    margin-bottom: 25px;
}

.resources-section-menu h4 {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.resource-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 149, 237, 0.5) transparent;
}

.resource-options::-webkit-scrollbar {
    width: 6px;
}

.resource-options::-webkit-scrollbar-track {
    background: transparent;
}

.resource-options::-webkit-scrollbar-thumb {
    background: rgba(100, 149, 237, 0.5);
    border-radius: 3px;
}

/* Resource Menu Header Layout */
.resources-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-right: 4px;
}

.resources-section-header h4 {
    margin: 0;
    font-size: 12px;
    color: #8899a6;
}

/* Stop All Button (Header) */
.stop-all-btn-header {
    background: rgba(255, 59, 48, 0.15);
    border: 1px solid rgba(255, 59, 48, 0.4);
    color: #ff453a;
    font-family: 'Roboto', sans-serif;
    font-size: 10px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
}

.stop-all-btn-header:hover {
    background: rgba(255, 59, 48, 0.3);
    border-color: #ff453a;
    color: #fff;
}

/* Consolidated Resource Option Styles */
.resource-option {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 8px;
    padding: 10px;
    padding-bottom: 0;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.resource-option:hover {
    background: rgba(100, 149, 237, 0.1);
    border-color: rgba(100, 149, 237, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 149, 237, 0.2);
}

.resource-option.collecting {
    border-color: #00ffaa;
    box-shadow: 0 0 10px rgba(0, 255, 170, 0.1);
}

.resource-option.selected {
    background: rgba(100, 149, 237, 0.15);
    border-color: #6495ed;
}

.resource-option-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 10px;
}

.resource-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.resource-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    min-width: 120px;
}

.resource-meta__time {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(100, 149, 237, 0.9);
}

.resource-meta__pods {
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

.resource-meta__pods[data-available="0"] {
    color: rgba(255, 120, 120, 0.85);
}

/* Footer / Active Row */
.resource-active-row {
    display: flex;
    align-items: center;
    width: calc(100% + 20px);
    margin-left: -10px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.3);
    height: 32px;
    box-sizing: border-box;
    gap: 10px;
}

/* Progress Bar */
.resource-progress-track {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.resource-progress-fill {
    height: 100%;
    background: #00ff41;
    width: 0%;
    transition: width 0.2s linear;
}

/* Stats Text */
.resource-progress-stats {
    font-size: 10px;
    color: #00ffaa;
    font-family: monospace;
    min-width: 60px;
    text-align: right;
    font-weight: 600;
}

/* Stop Controls Container */
.resource-stop-controls {
    display: flex;
    gap: 4px;
    position: relative;
    z-index: 20;
}

/* Stop Button */
.resource-stop-btn {
    width: 20px;
    height: 20px;
    min-width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    border-radius: 4px;
    color: #ff453a;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    transition: all 0.2s;
    line-height: 1;
    position: relative;
    z-index: 20;
    pointer-events: auto; /* Force pointer events */
}

.resource-stop-btn:hover {
    background: rgba(255, 59, 48, 0.3);
    border-color: #ff453a;
    color: #fff;
}

.resource-collection-status {
    margin-bottom: 12px;
    font-size: 12px;
    letter-spacing: 0.05em;
    min-height: 18px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.25s ease;
}

.resource-collection-status[data-tone="success"] {
    color: #5afad1;
}

.resource-collection-status[data-tone="warning"] {
    color: #ffd166;
}

.resource-collection-status[data-tone="error"] {
    color: #ff6b6b;
}

.resource-collection-status[data-tone="info"] {
    color: rgba(255, 255, 255, 0.7);
}

.resource-collection-active {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.resource-collection-active__empty {
    font-size: 11px;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 10px 12px;
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    background: rgba(8, 14, 28, 0.35);
}

.resource-collection-task {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    background: rgba(10, 18, 36, 0.65);
    border: 1px solid rgba(0, 255, 170, 0.28);
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.45);
}

.resource-collection-task__title {
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
}

.resource-collection-task__subtitle {
    font-size: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.resource-collection-task__progress {
    position: relative;
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(0, 255, 170, 0.12);
}

.resource-collection-task__progress-fill {
    position: absolute;
    inset: 0;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(0, 255, 170, 0.55), rgba(0, 173, 135, 0.75));
    box-shadow: 0 0 14px rgba(0, 255, 170, 0.3);
    transition: width 0.25s ease;
}

.resource-collection-task__time {
    align-self: flex-end;
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(0, 255, 170, 0.85);
}

.resource-icon {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    background: linear-gradient(135deg, #6495ed, #4169e1);
    box-shadow: 0 2px 6px rgba(100, 149, 237, 0.3);
}

.resource-name {
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    text-transform: capitalize;
}

.resource-type {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
}

.start-collection-btn {
    width: 100%;
    background: linear-gradient(135deg, #6495ed, #4169e1);
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 16px rgba(100, 149, 237, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.start-collection-btn:hover {
    background: linear-gradient(135deg, #5a8ae8, #365fc7);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 149, 237, 0.5);
}

.start-collection-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(100, 149, 237, 0.4);
}

.start-collection-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.no-resources-message {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    font-size: 12px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

/* Animation for menu appearance */
@keyframes menuSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0) scale(1);
    }
}

/* Glassmorphism effect enhancement */
.resource-collection-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0.02) 100%
    );
    border-radius: 20px;
    pointer-events: none;
    z-index: -1;
}

/* ============================================
   PLANETS LIST (New format for Planets tab)
   ============================================ */

.planets-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    flex: 1;
    overflow-y: auto;
}

.planet-list-item {
    background: #1a1a2e;
    border: 2px solid #00ffff;
    padding: 12px;
    cursor: pointer;
    box-shadow:
            inset 0 0 0 1px #000,
            2px 2px 0 0 #000;
    transition: none;
}

.planet-list-item:hover {
    background: #2a2a3e;
    border-color: #00ff41;
    transform: translate(-2px, -2px);
    box-shadow:
            inset 0 0 0 1px #000,
            4px 4px 0 0 #000;
}

.planet-list-item.selected {
    background: #00ffff22;
    border-color: #00ff41;
    box-shadow:
            inset 0 0 0 2px #00ff41,
            2px 2px 0 0 #000,
            0 0 16px rgba(0, 255, 65, 0.4);
}

.planet-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.planet-item-icon {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.planet-item-name {
    font-size: 9px;
    color: #00ffff;
    text-shadow: 2px 2px 0 #000;
}

.planet-item-desc {
    font-size: 6px;
    color: #00ff41;
    line-height: 1.6;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid #00ff4144;
}

/* Custom Scrollbar for lists */
.tab-bar-container::-webkit-scrollbar,
.planets-list::-webkit-scrollbar,
.wiki-list::-webkit-scrollbar,
.nav-tree::-webkit-scrollbar,
.inventory-panel__list::-webkit-scrollbar,
.station-pod-menu__list::-webkit-scrollbar,
.station-pod-menu__scrollable::-webkit-scrollbar,
.credits-modal__body::-webkit-scrollbar {
    width: 8px;
}

.tab-bar-container::-webkit-scrollbar-track,
.planets-list::-webkit-scrollbar-track,
.wiki-list::-webkit-scrollbar-track,
.nav-tree::-webkit-scrollbar-track,
.inventory-panel__list::-webkit-scrollbar-track,
.station-pod-menu__list::-webkit-scrollbar-track,
.station-pod-menu__scrollable::-webkit-scrollbar-track,
.credits-modal__body::-webkit-scrollbar-track {
    background: #000;
    border: 1px solid #00ff41;
}

.tab-bar-container::-webkit-scrollbar-thumb,
.planets-list::-webkit-scrollbar-thumb,
.wiki-list::-webkit-scrollbar-thumb,
.nav-tree::-webkit-scrollbar-thumb,
.inventory-panel__list::-webkit-scrollbar-thumb,
.station-pod-menu__list::-webkit-scrollbar-thumb,
.station-pod-menu__scrollable::-webkit-scrollbar-thumb,
.credits-modal__body::-webkit-scrollbar-thumb {
    background: #00ff41;
    border: 1px solid #000;
}

.tab-bar-container::-webkit-scrollbar-thumb:hover,
.planets-list::-webkit-scrollbar-thumb:hover,
.wiki-list::-webkit-scrollbar-thumb:hover,
.nav-tree::-webkit-scrollbar-thumb:hover,
.inventory-panel__list::-webkit-scrollbar-thumb:hover,
.station-pod-menu__list::-webkit-scrollbar-thumb:hover,
.station-pod-menu__scrollable::-webkit-scrollbar-thumb:hover,
.credits-modal__body::-webkit-scrollbar-thumb:hover {
    background: #00ffff;
}

/* ============================================
   WIKI BUTTONS (Journal tab)
   ============================================ */

.wiki-button {
    background: #1a1a2e;
    border: 2px solid #ff00ff;
    padding: 8px 16px;
    cursor: pointer;
    box-shadow:
            inset 0 0 0 1px #000,
            2px 2px 0 0 #000;
    transition: none;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
    margin-top: 4px;
    font-family: 'Press Start 2P', monospace;
}

.wiki-button:hover {
    background: #2a2a3e;
    border-color: #00ffff;
    transform: translate(-2px, -2px);
    box-shadow:
            inset 0 0 0 1px #000,
            4px 4px 0 0 #000;
}

.wiki-button:active {
    transform: translate(0, 0);
    box-shadow:
            inset 0 0 0 1px #000,
            2px 2px 0 0 #000;
}

.wiki-button-icon {
    font-size: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.wiki-button-name {
    flex: 1;
    font-size: 8px;
    color: #ff00ff;
    text-align: left;
    text-shadow: 2px 2px 0 #000;
}

.wiki-button-arrow {
    font-size: 10px;
    color: #00ffff;
    flex-shrink: 0;
}

.wiki-button--resource {
    align-items: flex-start;
    gap: 16px;
}

.wiki-button--resource .wiki-button-icon {
    width: 32px;
    height: 32px;
}

.wiki-button--resource .wiki-button-icon canvas {
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
}

.wiki-button--resource .wiki-button-arrow {
    display: none;
}

.wiki-button--resource.selected {
    border-color: #00ffff;
    box-shadow:
            inset 0 0 0 1px #000,
            4px 4px 0 0 #000,
            0 0 12px rgba(0, 255, 255, 0.4);
}

.wiki-button-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    flex: 1;
}

.wiki-button-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wiki-chip {
    font-size: 7px;
    letter-spacing: 1px;
    padding: 4px 6px;
    background: #000;
    border: 1px solid #00ff41;
    color: #00ff41;
    box-shadow: inset 0 0 0 1px #000;
    text-transform: uppercase;
}

.wiki-chip--rarity {
    border-color: #ff00ff;
    color: #ff00ff;
}

.wiki-chip--difficulty {
    border-color: #ffae00;
    color: #ffae00;
}

.wiki-chip--yield {
    border-color: #00ffff;
    color: #00ffff;
}

.wiki-chip--time {
    border-color: #ffffff;
    color: #ffffff;
}

.journal-resource-extra {
    margin-top: 20px;
}

.resource-meta-grid {
    display: grid;
    gap: 10px;
}

.resource-meta-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 8px;
    letter-spacing: 1px;
    padding: 6px 8px;
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid rgba(0, 255, 65, 0.2);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6);
}

.resource-meta-line__label {
    color: #00ff41;
}

.resource-meta-line__value {
    color: #00ffff;
    text-align: right;
}

/* ============================================
   GALACTIC JOURNAL POPUP
   ============================================ */

.galactic-journal-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    font-family: 'Press Start 2P', monospace;
}

.galactic-journal-popup.active .journal-container {
    opacity: 1;
    transform: scale(1);
}

.journal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1;
}

.journal-container {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 600px;
    background: #0d0d1a;
    border: 4px solid #00ffff;
    box-shadow:
            inset 0 0 0 2px #000,
            0 0 0 6px #0d0d1a,
            0 0 0 8px #ff00ff,
            8px 8px 0 0 #000,
            0 0 32px rgba(0, 255, 255, 0.6),
            0 0 64px rgba(255, 0, 255, 0.4);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.journal-header {
    background: linear-gradient(180deg, #1a1a2e 0%, #0d0d1a 100%);
    padding: 16px 20px;
    border-bottom: 3px solid #00ffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.journal-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.journal-icon {
    font-size: 20px;
    filter: drop-shadow(0 0 8px #00ffff);
}

.journal-title-text {
    font-size: 10px;
    color: #00ffff;
    text-shadow: 2px 2px 0 #000, 0 0 16px rgba(0, 255, 255, 0.8);
    letter-spacing: 2px;
}

.journal-close {
    background: #ff00ff;
    border: 2px solid #000;
    color: #000;
    font-size: 16px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    box-shadow: 2px 2px 0 0 #000;
    transition: none;
    font-family: 'Press Start 2P', monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.journal-close:hover {
    background: #00ffff;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 0 #000;
}

.journal-close:active {
    transform: translate(0, 0);
    box-shadow: 2px 2px 0 0 #000;
}

.journal-body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
    background: #0d0d1a;
}

.journal-body::-webkit-scrollbar {
    width: 12px;
}

.journal-body::-webkit-scrollbar-track {
    background: #1a1a2e;
    border: 2px solid #00ffff;
}

.journal-body::-webkit-scrollbar-thumb {
    background: #00ffff;
    border: 2px solid #000;
}

.journal-body::-webkit-scrollbar-thumb:hover {
    background: #ff00ff;
}

.journal-planet-name {
    font-size: 16px;
    color: #00ff41;
    text-shadow: 3px 3px 0 #000, 0 0 20px rgba(0, 255, 65, 0.8);
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: 3px;
}

.journal-planet-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 16px rgba(0, 255, 255, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 128px;
}

.journal-section {
    margin-bottom: 20px;
}

.journal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.journal-section-title {
    font-size: 7px;
    color: #ff00ff;
    text-shadow: 2px 2px 0 #000;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #ff00ff44;
    letter-spacing: 1px;
}

.journal-section-content {
    font-size: 6px;
    color: #00ff41;
    line-height: 1.8;
    text-shadow: 1px 1px 0 #000;
}

.journal-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    margin: 4px 4px 4px 0;
    border: 2px solid;
    box-shadow: 2px 2px 0 0 #000;
    font-size: 5px;
    letter-spacing: 1px;
}

.journal-tag canvas {
    display: block;
    image-rendering: pixelated;
    border: 1px solid rgba(0, 0, 0, 0.5);
    box-shadow: 1px 1px 0 0 rgba(0, 0, 0, 0.6);
    background: rgba(0, 0, 0, 0.35);
}

.journal-tag__label {
    display: inline-block;
}

.journal-tag.is-clickable {
    cursor: pointer;
}

.journal-tag.is-clickable:focus-visible,
.journal-tag.is-clickable:focus {
    outline: 1px dashed currentColor;
    outline-offset: 2px;
}

.ore-tag {
    background: #ff00ff22;
    border-color: #ff00ff;
    color: #ff00ff;
}

.resource-tag {
    background: #00ffff22;
    border-color: #00ffff;
    color: #00ffff;
}

.journal-empty {
    color: #666;
    font-style: italic;
    font-size: 5px;
}

.journal-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 2px solid #00ffff44;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.journal-footer-text {
    font-size: 5px;
    color: #00ffff;
    text-shadow: 1px 1px 0 #000;
}

.journal-footer-date {
    font-size: 5px;
    color: #00ff41;
    text-shadow: 1px 1px 0 #000;
}


/* Upgrade Modal Styles */
.upgrade-cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    border-radius: 8px;
    font-size: 10px;
}

.upgrade-cost-item.cost-ok {
    border-color: #00ff41;
    color: #00ff41;
}

.upgrade-cost-item.cost-missing {
    border-color: #ff0055;
    color: #ff0055;
    opacity: 0.8;
}

.cost-amount {
    font-weight: bold;
}


/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.notification-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 3000;
    pointer-events: none;
}

.notification-toast {
    background: rgba(13, 13, 26, 0.95);
    border: 2px solid #00ff41;
    padding: 16px;
    color: #ffffff;
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    line-height: 1.6;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(0, 0, 0, 0.2);
    animation: toastSlideDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    position: relative;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-toast::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

/* Notification Types */
.notification-toast.type-success {
    border-color: #FFD700; /* Gold */
    color: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.notification-toast.type-error {
    border-color: #ff0055; /* Red */
    color: #ff5577;
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.2);
}

.notification-toast.type-info {
    border-color: #00ffff; /* Cyan */
    color: #00ffff;
}

.notification-toast.fading-out {
    animation: toastFadeOut 0.5s forwards;
}

.notification-icon {
    font-size: 16px;
}

@keyframes toastSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes toastFadeOut {
    to {
        transform: translateY(-20px);
        opacity: 0;
    }
}


.station-pod-card__status--docked {
    background: rgba(0, 255, 255, 0.15);
    color: #00ffff;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.station-pod-card--docked {
    border-left: 3px solid #00ffff;
}

/* ============================================
   THEATER MODE / TV TURN OFF EFFECT
   ============================================ */

@keyframes tv-turn-off {
    0% {
        transform: scale(1, 1);
        filter: brightness(1);
        opacity: 1;
    }
    40% {
        transform: scale(1, 0.005);
        filter: brightness(5); /* Flash */
        opacity: 1;
    }
    70% {
        transform: scale(0.005, 0.005);
        opacity: 1;
    }
    100% {
        transform: scale(0, 0);
        opacity: 0;
    }
}

.app-container.fullscreen-mode .arcade-sidebar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    background: transparent;
    border-right: none;
    box-shadow: none;
}

.app-container.fullscreen-mode .arcade-sidebar::before {
    display: none;
}

.app-container.fullscreen-mode .arcade-header {
    pointer-events: auto;
    background: #1a1a2e;
    border-right: 4px solid #00ff41;
    width: 280px;
    box-sizing: border-box;
}

.app-container.fullscreen-mode .arcade-menu-body {
    animation: tv-turn-off 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    transform-origin: top center;
}

.app-container.fullscreen-mode .main-content {
    width: 100vw;
    flex: none; /* Force full width */
}

/* Add a way to reverse it? Maybe later. For now, header is clickable only when visible. */
.screen-frame {
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.screen-frame:hover {
    box-shadow:
            inset 0 0 0 2px #fff,
            inset 0 0 30px rgba(0, 255, 65, 0.6),
            0 4px 0 0 #00ff41;
}

/* ============================================
   ACHIEVEMENTS STYLES
   ============================================ */

.achievements-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.achievement-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: rgba(20, 30, 60, 0.6);
    border: 2px solid #00ff41;
    box-shadow: 2px 2px 0 #000;
    transition: transform 0.1s steps(2);
}

.achievement-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 #000;
    background: rgba(30, 40, 80, 0.8);
}

.achievement-card.locked {
    border-color: #555 !important;
    background: rgba(20, 20, 20, 0.8) !important;
    opacity: 0.7;
    filter: grayscale(1);
}

.achievement-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border: 2px solid inherit;
    box-shadow: inset 0 0 10px rgba(0, 255, 65, 0.2);
}

.achievement-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.achievement-title {
    font-size: 10px;
    color: #00ffff;
    text-shadow: 1px 1px 0 #000;
}

.achievement-desc {
    font-size: 8px;
    color: #aaa;
    line-height: 1.4;
}

.achievement-date {
    font-size: 7px;
    color: #00ff41;
    margin-top: 4px;
    font-style: italic;
}

.achievement-card.locked .achievement-title {
    color: #777;
}

.achievement-card.locked .achievement-desc {
    color: #555;
}