/* ── City Panel ─────────────────────────────────────────────────────── */

/* Reset the vessel.css -34px margin that is only needed for ship-slot icons */
#city-panel .item-icon__img {
    margin-bottom: 0;
}
#city-panel.city-panel--open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
    transition:
        opacity 0.22s ease,
        transform 0.22s ease;
}
.city-inner {
    max-width: var(--panel-content-max);
    margin: 0 auto;
    padding: 24px 24px 8px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
/* city-hero layout classes removed - rp-banner + rp-inner + rp-hero now used */
.city-hero-name {
    font-family: var(--font-heading);
    font-size: var(--font-size-5xl);
    color: #a8ffb8;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
    margin: 0;
    line-height: 1.1;
}
.panel-tagline {
    font-size: var(--font-size-md);
    font-style: italic;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
    margin-bottom: 4px;
    line-height: 1.4;
}
.city-panel-lore {
    font-size: var(--font-size-md);
    color: var(--text-gold);
    margin-top: -5.5rem;
    margin-bottom: 0;
    line-height: 1.6;
    width: 100%;
}
.city-panel-lore[hidden] {
    display: none !important;
}
@media (min-width: 1600px) {
    .city-panel-lore {
        width: 66%;
    }
}
.city-panel-lore:empty {
    display: none;
}
.city-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
/* Dead CSS removed: .city-service-card, .city-service-label, .city-service-arrow, .city-sail-btn */

/* ================================================================== */
/* Leaderboard                                                        */
/* ================================================================== */
/* Diverges intentionally from .panel-tabs - pill-style toggle with equal-width flex items. */
.lb-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 14px;
}

.lb-tab {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
    font-size: var(--font-size-base);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 3px;
    cursor: pointer;
    transition:
        background 0.14s,
        border-color 0.14s,
        color 0.14s;
}
.lb-tab:hover,
.lb-tab.lb-tab--active {
    background: rgba(197, 160, 89, 0.12);
    border-color: rgba(197, 160, 89, 0.35);
    color: var(--gold);
}

.lb-table {
    width: 100%;
    border-collapse: collapse;
}

.lb-table th {
    font-size: var(--font-size-base);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    padding: 0 6px 8px;
    text-align: left;
}
.lb-table th:last-child {
    text-align: right;
}

.lb-row {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.lb-row td {
    padding: 8px 6px;
    font-size: var(--font-size-lg);
    color: #c0c8d4;
}

.lb-rank {
    font-family: var(--font-body);
    font-size: var(--font-size-lg);
    color: var(--text-muted);
    width: 28px;
}
.lb-rank--top {
    color: var(--gold);
    font-weight: 700;
}

.lb-name {
    font-weight: 600;
}
.lb-name--me {
    color: var(--gold);
}

.lb-xp {
    text-align: right;
    font-family: var(--font-body);
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.45);
}

.lb-lvl {
    text-align: right;
    font-family: var(--font-body);
    font-size: var(--font-size-lg);
    color: rgba(197, 160, 89, 0.7);
}

/* .lb-empty - migrated to canonical .empty-state (base.css) */

/* ================================================================== */
/* Manifest Panel                                                     */
/* ================================================================== */
#inventory-panel.inv-panel--open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
    transition:
        opacity 0.22s ease,
        transform 0.22s ease;
}
#inv-banner {
    background: #05070a url(/assets/screen-manifest-brnKSiSi.avif) left top/contain no-repeat;
    background-size: auto 315px;
}
#char-banner {
    background: #05070a url(/assets/screen-ship-CRD4P1a6.avif) left top / contain no-repeat;
    background-size: auto 315px;
}
#ship-banner {
    background: #05070a url(/assets/screen-ship-CRD4P1a6.avif) left top/contain no-repeat;
    background-size: auto 315px;
}
#city-banner {
    background-color: #05070a;
}

/* Preact portals inventory overlay modals here. Positioned `fixed` so the
   overlay covers the full viewport, not just the inventory panel it lives in. */
#inventory-modals-root {
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
}
#inventory-modals-root > * {
    pointer-events: auto;
}

/* Legacy modal show/hide rules removed - modals now use ModalShell which
   manages display via Preact's conditional render (returns null when closed). */

/* ================================================================== */
/* Mining node cards - city panel                                     */
/* ================================================================== */
/* Two-column grid for skill activity sections inside city panel */
.city-skill-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
/* A hidden section (display:none) is removed from flow - the grid
   collapses cleanly with however many sections are visible. */

#city-mining-section {
} /* spacing handled by city-inner gap */
