/* -- Info button -- */

#info-btn {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 101;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    /*border: 1px solid var(--color-border-subtle);
    background: var(--color-surface-controls);
    color: var(--color-text-primary);*/
    border: 1px solid var(--color-border-subtle);
    background: var(--color-surface-soft);
    color: var(--color-text-secondary);

    font-size: 13px;
    font-style: italic;
    font-family: Georgia, serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s, color 0.15s;
}

#info-btn:hover {
    background: var(--color-border);
    color: var(--color-text-primary);
}

/* -- Overlay (backdrop + click-outside target) --*/

#info-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(2, 6, 23, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

/* -- Panel -- */

#info-panel {
    position: fixed;
    top: 14px;
    left: 52px;
    z-index: 100;
    width: min(530px, calc(100vw - 70px));
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 20px 20px 20px;
    padding-top: 20px;
    background: var(--color-surface-soft);
    border: 1px solid var(--color-border-subtle);
    border-radius: 20px;
    color: var(--color-text-base);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
    background: rgba(50, 50, 50, 0.86);
}

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

/* -- Info box content -- */

.info-box {
    padding: 1.25rem 0 0.5rem;
    font-size: 13px;
    color: var(--color-text-primary);
}

.info-box h2{
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-primary);
}
.info-box h3 {
    padding-top: 5px;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--color-text-primary);
}

.info-box h2 { margin: 0 0 1rem; }
.info-box h3 { margin: 1.25rem 0 0.75rem; }

.info-box p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

/* -- Stat row -- */

.stat-row {
    display: flex;
    gap: 12px;
    margin-bottom: 1rem;
}

.stat {
    flex: 1;
    background: var(--color-surface-soft);
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.5;
    border: 1px solid var(--color-border-faint);
}

/* -- Tag pill -- */

.tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--color-surface-soft);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border-subtle);
}

/* -- HR -- */
#hr {
    border: 0.5px solid var(--color-text-secondary); 
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 5px;
    margin-right: 5px;
}
