/* Axiom Empire - Main Stylesheet */

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

:root {
    --primary-color: #00d4ff;
    --secondary-color: #ff006e;
    --background-color: #0a0e27;
    --surface-color: #1a1f3a;
    --surface-light: #252d47;
    --text-primary: #ffffff;
    --text-secondary: #b0b5c0;
    --accent-green: #00ff88;
    --accent-orange: #ff8c00;
    --accent-purple: #b000ff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* App Container */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: linear-gradient(135deg, var(--background-color) 0%, #0f1535 100%);
}

/* Header */
.header {
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.1) 0%, rgba(255, 0, 110, 0.1) 100%);
    border-bottom: 2px solid var(--primary-color);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
}

.header h1 {
    font-size: 32px;
    text-shadow: 0 0 20px var(--primary-color);
    letter-spacing: 2px;
}

.prestige-info {
    display: flex;
    gap: 30px;
    font-size: 14px;
}

.prestige-info strong {
    color: var(--accent-green);
    font-size: 16px;
}

/* Main Container */
.main-container {
    display: flex;
    flex: 1;
    gap: 20px;
    padding: 20px;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.resources-panel,
.stats-panel,
.prestige-panel {
    background: var(--surface-color);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
}

.resources-panel h2,
.stats-panel h2,
.prestige-panel h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.resource {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.resource:last-child {
    border-bottom: none;
}

.resource-name {
    font-weight: 500;
    color: var(--text-secondary);
}

.resource-value {
    color: var(--accent-green);
    font-weight: bold;
    font-size: 16px;
}

.resource-rate {
    color: var(--primary-color);
    font-size: 12px;
    margin-left: 10px;
}

.stat {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.stat:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--text-secondary);
}

.stat-value {
    color: var(--primary-color);
    font-weight: bold;
}

.prestige-cost {
    text-align: center;
}

.prestige-cost p {
    font-size: 14px;
    margin: 10px 0;
    color: var(--text-secondary);
}

.prestige-bonus {
    color: var(--accent-green) !important;
    font-weight: bold;
}

/* Content Panel */
.content-panel {
    flex: 1;
    background: var(--surface-color);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

.tabs {
    display: flex;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    background: var(--surface-light);
}

.tab-btn {
    flex: 1;
    padding: 15px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    color: var(--primary-color);
    background: rgba(0, 212, 255, 0.05);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    box-shadow: inset 0 -2px 0 var(--primary-color);
}

.tab-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Planets Grid */
.planets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.planet-card {
    background: var(--surface-light);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.planet-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

.planet-card.selected {
    border-color: var(--accent-green);
    background: rgba(0, 255, 136, 0.05);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.planet-card h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 16px;
}

.planet-level {
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 10px;
}

.buildings-summary {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    color: var(--text-secondary);
}

.planet-slots {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.planet-energy {
    height: 6px;
    border-radius: 3px;
    margin-top: 8px;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

/* Colonization Section */
.colonization-section {
    margin-top: 30px;
}

.colonization-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
    padding-bottom: 10px;
}

.discovered-planets {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.discovered-planet-card {
    background: var(--surface-light);
    border: 2px solid rgba(255, 140, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.discovered-planet-card:hover {
    border-color: var(--accent-orange);
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.3);
    transform: translateY(-2px);
}

.discovered-planet-card h4 {
    color: var(--accent-orange);
    margin-bottom: 10px;
    font-size: 16px;
}

.discovered-planet-card p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 8px;
}

.planet-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.planet-actions .btn {
    flex: 1;
    padding: 8px;
    font-size: 12px;
}

.btn-success {
    background-color: rgba(0, 255, 136, 0.2);
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
}

.btn-success:hover:not(:disabled) {
    background-color: rgba(0, 255, 136, 0.4);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.btn-danger {
    background-color: rgba(255, 0, 110, 0.2);
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-danger:hover:not(:disabled) {
    background-color: rgba(255, 0, 110, 0.4);
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.5);
}

/* Planet Details Section */
.planet-details {
    background: var(--surface-light);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    color: var(--text-secondary);
}

.discovered-planets {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.discovered-planet {
    background: var(--surface-light);
    border: 1px solid var(--accent-orange);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.discovered-planet h4 {
    color: var(--accent-orange);
    margin-bottom: 5px;
}

/* Buildings Grid */
.buildings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.building-card {
    background: var(--surface-light);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    padding: 15px;
}

.building-card h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.building-card p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 5px 0;
}

.cost {
    color: var(--accent-orange) !important;
}

.energy-bar {
    margin: 10px 0;
    height: 25px;
    border-radius: 4px;
    border: 1px solid var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: var(--accent-green);
}

/* Technology Tree */
.tech-tree {
    overflow-y: auto;
}

.tech-research-progress {
    background: var(--surface-light);
    border: 2px solid var(--accent-purple);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 30px;
}

.tech-research-progress h3 {
    color: var(--accent-purple);
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-purple), var(--primary-color));
    transition: width 0.3s ease;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.tech-card {
    background: var(--surface-light);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.tech-card.unlocked {
    border-color: var(--accent-green);
    background: rgba(0, 255, 136, 0.05);
}

.tech-card.available {
    border-color: var(--accent-orange);
}

.tech-card h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.tech-card p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 5px 0;
}

.tech-cost {
    color: var(--accent-orange) !important;
    font-weight: bold;
    margin-top: 10px !important;
}

/* Buttons */
.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #0099cc);
    color: var(--background-color);
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-prestige {
    background: linear-gradient(135deg, var(--accent-green), #00cc66);
    color: var(--background-color);
    width: 100%;
    margin: 10px 0;
}

.btn-prestige:hover:not(:disabled) {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    transform: translateY(-2px);
}

.btn-prestige:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-reset {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: var(--text-primary);
    padding: 8px 15px;
    font-size: 12px;
}

.btn-reset:hover {
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.5);
    transform: translateY(-2px);
}

.btn-tiny {
    padding: 5px 10px;
    font-size: 10px;
}

/* Fleet Section */
.fleet-summary {
    background: var(--surface-light);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.fleet-stats p {
    margin: 8px 0;
    font-size: 13px;
}

.ship-count-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.ship-count-breakdown span {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Scout Mission Panel */
.scout-mission-panel {
    background: var(--surface-light);
    border: 2px solid var(--accent-orange);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.scout-mission-panel h3 {
    color: var(--accent-orange);
    margin-bottom: 15px;
    font-size: 16px;
}

.scout-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group label {
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.control-group input,
.control-group select {
    background: var(--background-color);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 4px;
    color: var(--text-primary);
    padding: 10px;
    font-size: 14px;
}

.control-group input:focus,
.control-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.scout-calculation {
    background: var(--background-color);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 4px;
    padding: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

.calculation-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calculation-results.affordable {
    color: var(--accent-green);
    border-left: 3px solid var(--accent-green);
    padding-left: 10px;
}

.calculation-results.unaffordable {
    color: var(--secondary-color);
    border-left: 3px solid var(--secondary-color);
    padding-left: 10px;
}

.calculation-results p {
    margin: 0;
}

.warning {
    color: var(--secondary-color);
    font-weight: bold;
}

.ship-construction {
    margin-bottom: 30px;
}

.ship-construction h3,
.active-fleet h3 {
    color: var(--primary-color);
    margin: 20px 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.ship-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.ship-build-card {
    background: var(--surface-light);
    border: 2px solid var(--accent-orange);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.ship-build-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.3);
}

.ship-icon {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

.ship-build-card h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 14px;
}

.ship-build-card p {
    font-size: 11px;
    color: var(--text-secondary);
    margin: 5px 0;
}

.ship-stats {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 8px;
    margin: 10px 0;
    font-size: 11px;
}

.build-cost {
    margin: 10px 0;
    padding: 8px;
    background: rgba(255, 140, 0, 0.1);
    border-radius: 4px;
    font-size: 10px;
    color: var(--accent-orange);
}

.ships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.ship-card {
    background: var(--surface-light);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 12px;
    transition: all 0.3s ease;
}

.ship-card.status-idle {
    border-color: var(--accent-green);
    background: rgba(0, 255, 136, 0.05);
}

.ship-card.status-traveling {
    border-color: var(--primary-color);
    background: rgba(0, 212, 255, 0.05);
}

.ship-card.status-colonizing {
    border-color: var(--accent-orange);
    background: rgba(255, 140, 0, 0.05);
}

.ship-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.ship-header .ship-icon {
    font-size: 24px;
    margin: 0;
}

.ship-header h4 {
    flex: 1;
    color: var(--primary-color);
    font-size: 13px;
    margin: 0;
}

.ship-status {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--accent-green);
    padding: 3px 6px;
    background: rgba(0, 255, 136, 0.2);
    border-radius: 3px;
}

.ship-details {
    font-size: 11px;
    color: var(--text-secondary);
}

.ship-details p {
    margin: 6px 0;
}

.ship-details p strong {
    color: var(--primary-color);
}

.btn-small {
    padding: 8px 12px;
    font-size: 11px;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.8);
}

/* Selected Planet Info */
.selected-planet-info {
    background: rgba(0, 212, 255, 0.1);
    border-left: 4px solid var(--accent-green);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.selected-planet-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.bonuses {
    display: flex;
    gap: 15px;
    font-size: 12px;
    margin-top: 10px;
}

.bonuses span {
    color: var(--accent-green);
}

.planet-resources {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.planet-resources h4 {
    color: var(--accent-orange);
    font-size: 13px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.planet-resources p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 5px 0;
}

.planet-resources p strong {
    color: var(--accent-green);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .planets-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}

@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        flex-direction: row;
        gap: 15px;
        max-height: 200px;
        overflow-y: auto;
    }

    .resources-panel,
    .stats-panel,
    .prestige-panel {
        flex: 1;
    }

    .planets-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* Animations */
@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 10px var(--primary-color);
    }
    50% {
        text-shadow: 0 0 20px var(--primary-color);
    }
}

.header h1 {
    animation: glow 2s ease-in-out infinite;
}


/* ===== Extra tabs: Operations / Empire / Settings, guide, toasts ===== */
.tabs { flex-wrap: wrap; }
.guide-panel { background: var(--surface-color); border: 1px solid var(--primary-color); border-radius: 8px; padding: 12px; margin-bottom: 15px; }
.guide-panel h2 { font-size: 1rem; margin-bottom: 6px; }
.x-guide-title { font-weight: 600; color: var(--primary-color); }
.x-guide-hint { color: var(--text-secondary); font-size: 0.9rem; margin: 4px 0 8px; }
.x-section { background: var(--surface-color); border-radius: 8px; padding: 14px; margin: 14px 0; }
.x-section h3 { margin-bottom: 8px; color: var(--primary-color); }
.x-section h4 { margin: 10px 0 6px; }
.x-section p { margin: 6px 0; }
.x-h { margin: 18px 0 8px; }
.x-dim { color: var(--text-secondary); font-size: 0.88rem; font-weight: normal; }
.x-ok { color: var(--accent-green); }
.x-bad { color: #ff5566; }
.x-warn { color: var(--accent-orange); }
.x-big { font-size: 1.8rem; font-weight: 700; }
.x-msg { font-size: 0.9rem; }
.x-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.x-card { background: var(--surface-light); border-radius: 8px; padding: 12px; margin: 8px 0; }
.x-panel { border: 1px solid var(--primary-color); }
.x-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.x-badge { background: var(--accent-purple); border-radius: 10px; padding: 0 8px; font-size: 0.78rem; }
.x-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; flex-wrap: wrap; }
.x-grow { flex: 1; min-width: 140px; }
.x-count { min-width: 28px; text-align: center; }
.x-label { display: flex; flex-direction: column; gap: 4px; margin: 6px 0; color: var(--text-secondary); font-size: 0.9rem; }
.x-label select, .x-textarea { background: var(--background-color); color: var(--text-primary); border: 1px solid #444; border-radius: 6px; padding: 6px; font: inherit; }
.x-textarea { width: 100%; min-height: 90px; margin: 8px 0; font-family: monospace; font-size: 0.8rem; }
.x-bar { display: inline-block; width: 100%; max-width: 220px; height: 6px; background: var(--background-color); border-radius: 3px; overflow: hidden; vertical-align: middle; }
.x-bar > span { display: block; height: 100%; background: var(--accent-green); }
.x-ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.x-ach { background: var(--surface-color); border-radius: 8px; padding: 10px; opacity: 0.55; display: flex; flex-direction: column; gap: 2px; font-size: 0.9rem; }
.x-ach span { color: var(--text-secondary); font-size: 0.82rem; }
.x-ach-on { opacity: 1; border: 1px solid var(--accent-green); }
.x-story-list { display: flex; flex-wrap: wrap; gap: 8px; }
.x-story { background: var(--surface-light); color: var(--text-primary); border: 1px solid #444; border-radius: 6px; padding: 6px 10px; cursor: pointer; font: inherit; }
.x-story-locked { opacity: 0.5; cursor: default; }
#toastHost { position: fixed; top: 12px; right: 12px; z-index: 2147482000; display: flex; flex-direction: column; gap: 8px; max-width: min(340px, 90vw); }
.x-toast { background: var(--surface-light); border-left: 4px solid var(--primary-color); border-radius: 6px; padding: 10px 12px; box-shadow: 0 4px 14px rgba(0,0,0,.5); display: flex; flex-direction: column; font-size: 0.9rem; transition: opacity .6s; }
.x-toast span { color: var(--text-secondary); }
.x-toast-out { opacity: 0; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== Mobile ===== */
@media (max-width: 800px) {
    .header { flex-direction: column; gap: 6px; text-align: center; }
    /* Let the page scroll on phones instead of squeezing the game area to nothing */
    .app-container { height: auto; min-height: 100vh; }
    .main-container { flex-direction: column !important; overflow: visible; padding: 10px; gap: 10px; }
    .sidebar { width: 100% !important; max-width: none !important; max-height: 42vh !important; flex-direction: column !important; overflow-y: auto; flex: none; }
    .content-panel { width: 100% !important; min-width: 0; flex: none; min-height: 60vh; overflow: visible; }
    .tab-content { overflow-y: visible; padding: 12px; }
    .tabs { overflow-x: auto; flex-wrap: nowrap; }
    .tab-btn { flex: 0 0 auto; white-space: nowrap; padding: 10px 12px; }
    .planets-grid, .ships-grid { grid-template-columns: 1fr !important; }
    .btn { min-height: 40px; }
    #nld-legal { bottom: 2px !important; }
}

/* ===== Game art (assets/icons) ===== */
.game-art { display: block; object-fit: contain; filter: drop-shadow(0 0 4px rgba(0, 212, 255, 0.35)); }
.ship-sprite .game-art, .building-sprite .game-art { width: 48px; height: 48px; }
.ship-icon .game-art { display: inline-block; vertical-align: middle; }
.planet-card h3 .game-art, td .game-art-planet { display: inline-block; vertical-align: middle; margin-right: 6px; }
.game-logo { width: 44px; height: 44px; vertical-align: middle; margin-right: 12px; border-radius: 10px; box-shadow: 0 0 14px rgba(0, 212, 255, 0.45); }
@media (max-width: 800px) { .game-logo { width: 32px; height: 32px; margin-right: 8px; } }
