/* ═══════════════════════════════════════════
       WORLD MAP SCREEN
    ═══════════════════════════════════════════ */

/* World map background. */
#screen-map {
    background: var(--bg);
}


/* Scrollable map card container. */
.map-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.map-intro {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
    font-family: var(--font-mono);
}

.map-locations {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* Single location tile (locked / open / solved). */
.location-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    transition: transform 0.2s var(--ease-out), border-color 0.2s;
}

.location-card:hover:not([aria-disabled='true']) {
    background: var(--surface2);
}

.location-card.unlocked:active {
    transform: scale(0.98);
}

.location-card.locked {
    opacity: 0.45;
    cursor: pointer;
}

.location-card.locked:active {
    transform: scale(0.98);
}

.location-card.all-solved {
    border-color: var(--green);
}


/* Icon + info flex layout. */
.location-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
}

.location-icon {
    font-size: 2.4rem;
    flex-shrink: 0;
    width: 52px;
    text-align: center;
}

.location-info {
    flex: 1;
    cursor: pointer;
}

.location-name {
    font-size: 1.1rem;
    font-weight: 700;
}

.location-region {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-top: 2px;
}

.location-fact {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.4;
}

.location-status {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    margin-top: 6px;
}

.location-status.open {
    color: var(--blue);
}

.location-status.solved {
    color: var(--green);
}

.location-status.locked {
    color: var(--text-dim);
}


/* Lock / magnify / check badge in the corner. */
.location-badge {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 1.1rem;
}


/* Bottom bar: quest progress + score. */
.map-progress-bar {
    background: var(--surface2);
    padding: 14px 16px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-label {
    font-size: 0.72rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    flex-shrink: 0;
}


/* Thin track for the progress fill. */
.progress-track {
    flex: 1;
    height: 4px;
    background: var(--surface3);
    border-radius: 4px;
    overflow: hidden;
}


/* Animated fill width. */
.progress-fill {
    height: 100%;
    background: var(--gold);
    border-radius: 4px;
    transition: width 0.6s var(--ease-out);
}

.progress-score {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--gold);
    flex-shrink: 0;
}

