/* ═══════════ Map Screen ═══════════ */
.map-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-style: italic;
    font-size: 2.2rem;
    color: var(--amber-bright);
    margin-bottom: 2rem;
    letter-spacing: 1px;
    text-shadow: 0 0 40px rgba(232, 168, 124, 0.25);
}

.map-container {
    position: relative;
    width: 80vw;
    max-width: 900px;
    height: 500px;
}

.map-path {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
}

.map-trail {
    opacity: 0.15;
    stroke: rgba(232, 168, 124, 0.2);
    stroke-width: 3;
}

.map-trail-glow {
    opacity: 0;
    transition: all 1.5s var(--ease-out-expo);
    filter: drop-shadow(0 0 10px var(--amber)) drop-shadow(0 0 25px rgba(232, 168, 124, 0.25));
    stroke: var(--amber);
    stroke-width: 3;
}
.map-trail-glow.visible { opacity: 1; }

/* ═══════ Map Nodes ═══════ */
.map-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.5s var(--ease-out-expo);
    transform: translate(-50%, -50%);
}
.map-node:hover:not(.locked) {
    transform: translate(-50%, -50%) scale(1.15);
}

.node-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--amber-bright), var(--amber-deep));
    color: var(--void);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.5s var(--ease-out-expo);
    box-shadow:
        0 0 25px rgba(232, 168, 124, 0.3),
        0 0 50px rgba(232, 168, 124, 0.1),
        inset 0 -2px 6px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.15);
}

/* Concentric ring */
.node-icon::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(232, 168, 124, 0.2);
    transition: all 0.5s var(--ease-out-expo);
}
/* Outer faint ring */
.node-icon::after {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 1px solid rgba(232, 168, 124, 0.08);
    transition: all 0.5s var(--ease-out-expo);
}

/* Locked state */
.map-node.locked .node-icon {
    background: linear-gradient(145deg, rgba(40, 40, 65, 0.8), rgba(25, 25, 50, 0.9));
    box-shadow: none;
    font-size: 1.2rem;
    color: rgba(100, 100, 140, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(100, 100, 140, 0.15);
}
.map-node.locked .node-icon::before { border-color: rgba(100, 100, 140, 0.08); }
.map-node.locked .node-icon::after { border-color: transparent; }

/* Completed state */
.map-node.completed .node-icon {
    background: linear-gradient(145deg, var(--rose-gold-soft), var(--rose-gold));
    color: var(--void);
    box-shadow:
        0 0 25px rgba(212, 160, 160, 0.35),
        0 0 50px rgba(212, 160, 160, 0.1);
}
.map-node.completed .node-icon::before { border-color: rgba(212, 160, 160, 0.25); }
.map-node.completed .node-icon::after { border-color: rgba(212, 160, 160, 0.1); }

/* Available / pulsing state */
.map-node.available .node-icon {
    animation: nodeBreathe 2.8s ease-in-out infinite;
}
.map-node.available .node-icon::before {
    animation: nodeRingExpand 2.8s ease-in-out infinite;
}

@keyframes nodeBreathe {
    0%, 100% {
        box-shadow:
            0 0 25px rgba(232, 168, 124, 0.3),
            0 0 50px rgba(232, 168, 124, 0.1);
    }
    50% {
        box-shadow:
            0 0 35px var(--amber),
            0 0 70px rgba(232, 168, 124, 0.2),
            0 0 100px rgba(232, 168, 124, 0.08);
    }
}

@keyframes nodeRingExpand {
    0%, 100% { inset: -6px; opacity: 1; }
    50% { inset: -14px; opacity: 0.3; }
}

.node-label {
    margin-top: 12px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 300;
    color: var(--cream-muted);
    text-align: center;
    max-width: 130px;
    opacity: 0.75;
    letter-spacing: 0.5px;
    line-height: 1.5;
}
.map-node.locked .node-label { opacity: 0.2; }
