/* ===== INFO PANEL - Intel Dossier ===== */
#info-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 8, 0.9);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

#info-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Scanline overlay */
#info-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(168, 85, 247, 0.02) 2px,
        rgba(168, 85, 247, 0.02) 4px
    );
    pointer-events: none;
}

#info-panel {
    width: 90%;
    max-width: 340px;
    background:
        linear-gradient(180deg,
            rgba(24, 24, 42, 0.98) 0%,
            rgba(16, 16, 24, 0.98) 100%
        );
    border: 1px solid var(--steel);
    border-top: 2px solid var(--violet-dim);
    border-radius: 4px;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(168, 85, 247, 0.1),
        inset 0 1px 0 var(--inner-light);
}

#info-overlay.visible #info-panel {
    transform: scale(1) translateY(0);
}

.info-header {
    padding: 14px 18px;
    background:
        linear-gradient(180deg,
            var(--graphite) 0%,
            var(--slate) 100%
        );
    border-bottom: 1px solid var(--steel);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.info-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--violet);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.info-close {
    width: 26px;
    height: 26px;
    background: var(--steel);
    border: 1px solid var(--iron);
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.info-close:hover {
    background: var(--crimson);
    border-color: var(--crimson);
    color: white;
}

.info-body {
    padding: 16px 18px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(37, 37, 56, 0.8);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.info-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-bright);
}

.info-value.gold {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.info-value.emerald {
    color: var(--emerald);
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.info-value.crimson {
    color: var(--crimson);
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.info-value.violet {
    color: var(--violet);
    text-shadow: 0 0 10px var(--violet-glow);
}

.info-description {
    padding: 12px 0;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.5;
    font-style: italic;
    border-left: 2px solid var(--violet-dim);
    padding-left: 12px;
    margin: 8px 0;
    background: rgba(168, 85, 247, 0.03);
}

/* Merge Chain Display */
.info-chain {
    padding: 16px 0;
    border-bottom: 1px solid rgba(37, 37, 56, 0.8);
}

.info-chain-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--violet);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.chain-items {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.chain-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.chain-sprite {
    width: 48px;
    height: 48px;
    background: var(--slate);
    border-radius: 4px;
    border: 1px solid var(--steel);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.chain-sprite svg {
    width: 40px;
    height: 40px;
}

.chain-sprite.highlighted {
    border-color: var(--violet);
    box-shadow: 0 0 12px var(--violet-glow);
}

.chain-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    max-width: 56px;
    letter-spacing: 0.02em;
}

.chain-label.highlighted {
    color: var(--violet);
}

.chain-arrow {
    font-size: 1rem;
    color: var(--text-dim);
    margin: 0 2px;
}

.chain-merge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.chain-merge-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.55rem;
    color: var(--violet);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Spawn Chance Rows */
.spawn-chance-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(37, 37, 56, 0.8);
}

.spawn-chance-row:last-child {
    border-bottom: none;
}

.spawn-chance-sprite {
    width: 40px;
    height: 40px;
    background: var(--slate);
    border-radius: 4px;
    border: 1px solid var(--steel);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.spawn-chance-sprite svg {
    width: 32px;
    height: 32px;
}

.spawn-chance-name {
    flex: 1;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.spawn-chance-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-bright);
}

.spawn-chance-value.emerald {
    color: var(--emerald);
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
}

.spawn-chance-value.violet {
    color: var(--violet);
    text-shadow: 0 0 8px var(--violet-glow);
}

