﻿/* Dimensional Atlas */
.atlas-section {
    padding-bottom: 5rem;
}

/* Atlas Hero */
.atlas-hero {
    position: relative;
    margin: 2rem 0 2.5rem;
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: calc(var(--mp-radius) * 1.25);
    overflow: hidden;
}

    .atlas-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 85% 20%, rgba(124, 140, 255, .28), transparent 18rem), radial-gradient(circle at 10% 0%, rgba(246, 200, 95, .13), transparent 16rem), linear-gradient(135deg, rgba(168, 85, 247, .14), transparent 50%);
        pointer-events: none;
    }

    .atlas-hero .section-eyebrow,
    .atlas-title,
    .atlas-subtitle {
        position: relative;
        z-index: 1;
    }

.atlas-title {
    margin: .8rem 0 1rem;
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    line-height: .9;
    font-weight: 950;
    letter-spacing: -.06em;
}

.atlas-subtitle {
    max-width: 760px;
    color: var(--mp-muted);
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.section-heading {
    margin-bottom: 1.5rem;
}

    .section-heading h2 {
        margin: .75rem 0 .35rem;
        font-size: clamp(1.8rem, 5vw, 3rem);
        line-height: 1;
        font-weight: 950;
        letter-spacing: -.045em;
    }

    .section-heading p {
        margin: 0;
        color: var(--mp-muted);
    }

/* Grid */
.realm-grid {
    display: grid;
    gap: 1rem;
}

.unlocked-grid {
    grid-template-columns: repeat(12, 1fr);
}

.locked-grid {
    grid-template-columns: repeat(12, 1fr);
}

/* Realm Card */
.realm-card {
    position: relative;
    min-height: 280px;
    padding: 1.25rem;
    border-radius: var(--mp-radius);
    background: rgba(255, 255, 255, .065);
    border: 1px solid var(--mp-border);
    box-shadow: 0 16px 44px rgba(0, 0, 0, .18);
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

    .realm-card::before {
        content: "";
        position: absolute;
        inset: auto 1.25rem 0;
        height: 3px;
        border-radius: 999px 999px 0 0;
        background: linear-gradient(90deg, var(--mp-gold), var(--mp-purple), var(--mp-blue));
        opacity: .85;
    }

    .realm-card:hover {
        transform: translateY(-4px);
        border-color: rgba(124, 140, 255, .55);
        background: rgba(255, 255, 255, .09);
        box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
    }

.unlocked-realm {
    grid-column: span 8;
    min-height: 360px;
    padding: clamp(1.25rem, 3vw, 2rem);
    background: linear-gradient(145deg, rgba(246, 200, 95, .13), rgba(124, 140, 255, .08)), rgba(255, 255, 255, .065);
}

.locked-realm {
    grid-column: span 4;
}

.realm-card-glow {
    position: absolute;
    width: 16rem;
    height: 16rem;
    right: -5rem;
    top: -5rem;
    border-radius: 999px;
    background: rgba(246, 200, 95, .13);
    filter: blur(8px);
    pointer-events: none;
}

/* Header */
.realm-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.realm-code {
    display: inline-flex;
    width: fit-content;
    padding: .38rem .65rem;
    border-radius: 999px;
    color: var(--mp-gold);
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.realm-card h3 {
    position: relative;
    z-index: 2;
    margin: .75rem 0 .4rem;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -.045em;
}

.realm-location {
    position: relative;
    z-index: 2;
    margin-bottom: .85rem;
}

    .realm-location h4 {
        margin: 0 0 .2rem;
        color: var(--mp-gold);
        font-size: .82rem;
        font-weight: 950;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .realm-location p {
        margin: 0;
        color: var(--mp-text);
        font-weight: 800;
    }

.realm-description {
    position: relative;
    z-index: 2;
    max-width: 700px;
    color: var(--mp-muted);
    margin: 1.25rem 0;
}

/* Tags */
.tag {
    display: inline-flex;
    width: fit-content;
    padding: .38rem .7rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.threat-unknown {
    color: #111122;
    background: linear-gradient(135deg, var(--mp-gold), #fff2b8);
}

.region-tag {
    color: var(--mp-text);
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
}

/* Meta */
.realm-meta-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
    margin-top: 1rem;
}

    .realm-meta-grid span {
        display: flex;
        flex-direction: column;
        gap: .18rem;
        padding: .7rem .8rem;
        border-radius: 1rem;
        color: var(--mp-muted);
        background: rgba(255, 255, 255, .06);
        border: 1px solid rgba(255, 255, 255, .09);
        font-size: .82rem;
        font-weight: 750;
    }

    .realm-meta-grid strong {
        color: var(--mp-text);
        font-size: .9rem;
        font-weight: 900;
    }

.realm-footer {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .75rem;
    margin-top: 1.25rem;
}

.realm-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: .38rem .7rem;
    border-radius: 999px;
    color: var(--mp-gold);
    background: rgba(246, 200, 95, .08);
    border: 1px solid rgba(246, 200, 95, .16);
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Locked Realm */
.realm-card-content {
    position: relative;
    z-index: 2;
}

.locked-realm {
    background: rgba(255, 255, 255, .035);
}

.locked-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(7, 7, 18, .42), rgba(7, 7, 18, .76));
    z-index: 1;
}

    .locked-overlay img {
        width: 4.25rem;
        opacity: .62;
        filter: drop-shadow(0 16px 28px rgba(0, 0, 0, .55));
    }

.locked-realm .realm-card-content {
    opacity: .38;
}

.locked-realm h3 {
    font-size: 1.45rem;
}

.locked-realm p {
    color: var(--mp-muted);
}

/* Responsive */
@media (max-width: 1199.98px) {
    .unlocked-realm {
        grid-column: span 12;
    }

    .locked-realm {
        grid-column: span 6;
    }
}

@media (max-width: 767.98px) {
    .realm-header {
        display: grid;
    }

    .realm-meta-grid {
        grid-template-columns: 1fr;
    }

    .locked-realm {
        grid-column: span 12;
    }
}

@media (max-width: 575.98px) {
    .atlas-hero,
    .realm-card {
        border-radius: var(--mp-radius);
    }

    .realm-card {
        min-height: 240px;
    }
}
.region-group {
    margin-bottom: 2rem;
    padding: clamp(1.25rem, 4vw, 2rem);
    border-radius: calc(var(--mp-radius) * 1.15);
}

.region-group-header {
    margin-bottom: 1.25rem;
}

    .region-group-header h2 {
        margin: .75rem 0 .35rem;
        font-size: clamp(1.8rem, 4vw, 3rem);
        line-height: 1;
        font-weight: 950;
        letter-spacing: -.045em;
    }

    .region-group-header p {
        margin: 0;
        color: var(--mp-muted);
    }
.region-cluster {
    margin-bottom: 2rem;
    padding: clamp(1.25rem, 4vw, 2rem);
    border-radius: calc(var(--mp-radius) * 1.15);
}

.region-cluster-header {
    margin-bottom: 1.25rem;
}

    .region-cluster-header h2 {
        margin: .75rem 0 .35rem;
        font-size: clamp(1.8rem, 4vw, 3rem);
        line-height: 1;
        font-weight: 950;
        letter-spacing: -.045em;
    }

    .region-cluster-header p,
    .sector-panel-header p {
        margin: 0;
        color: var(--mp-muted);
    }

.sector-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.25rem;
}

.sector-link {
    min-height: 2.45rem;
    padding: .6rem .9rem;
    border-radius: 999px;
    color: var(--mp-text);
    background: rgba(255, 255, 255, .07);
    border: 1px solid var(--mp-border);
    font-size: .82rem;
    font-weight: 850;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

    .sector-link:hover {
        transform: translateY(-2px);
        border-color: rgba(246, 200, 95, .55);
    }

    .sector-link.active {
        color: #111122;
        background: linear-gradient(135deg, var(--mp-gold), #fff2b8);
        border-color: transparent;
    }

.sector-panel {
    display: none;
}

    .sector-panel.active {
        display: block;
    }

.sector-panel-header {
    margin-bottom: 1rem;
}

    .sector-panel-header h3 {
        margin: 0 0 .35rem;
        font-size: 1.4rem;
        font-weight: 950;
        letter-spacing: -.035em;
    }

.empty-atlas-card {
    padding: 2rem;
    border-radius: var(--mp-radius);
}

    .empty-atlas-card h3 {
        margin: .8rem 0 .5rem;
        font-weight: 950;
    }

    .empty-atlas-card p {
        color: var(--mp-muted);
        margin: 0;
    }
.current-planet-panel {
    position: relative;
    z-index: 2;
    margin: 1.25rem 0;
    padding: 1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(246, 200, 95, .10), rgba(124, 140, 255, .06)), rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .09);
}

.current-planet-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

    .current-planet-main strong {
        color: var(--mp-text);
        font-size: 1.15rem;
        font-weight: 950;
        letter-spacing: -.02em;
    }

    .current-planet-main span {
        display: inline-flex;
        width: fit-content;
        padding: .35rem .65rem;
        border-radius: 999px;
        color: var(--mp-gold);
        background: rgba(246, 200, 95, .08);
        border: 1px solid rgba(246, 200, 95, .16);
        font-size: .75rem;
        font-weight: 850;
    }

.planet-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 1rem 0 1.25rem;
}

.planet-filter {
    min-height: 2.35rem;
    padding: .55rem .85rem;
    border-radius: 999px;
    color: var(--mp-text);
    background: rgba(255, 255, 255, .07);
    border: 1px solid var(--mp-border);
    font-size: .8rem;
    font-weight: 850;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

    .planet-filter:hover {
        transform: translateY(-2px);
        border-color: rgba(246, 200, 95, .55);
    }

    .planet-filter.active {
        color: #111122;
        background: linear-gradient(135deg, var(--mp-gold), #fff2b8);
        border-color: transparent;
    }