/* ========================================
   JOURNEY — guided passage + (i) markers
   Uses the tokens defined in styles.css
   ======================================== */

.journey-bar {
    position: fixed;
    left: 50%;
    bottom: 196px;              /* clears the timeline (bottom 20px, ~152px tall) */
    transform: translateX(-50%);
    z-index: 150;               /* above the timeline (100), below the dock (200) */

    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;

    background: rgba(10, 10, 18, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);

    font-family: var(--font-sans);
    max-width: min(680px, calc(100vw - 32px));
}

/* Before the journey starts, only the invitation shows. */
.journey-bar .running-only { display: none; }
.journey-bar.running .running-only { display: flex; }
.journey-bar.running #journey-begin { display: none; }

.journey-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;

    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.journey-btn:hover {
    background: rgba(220, 38, 38, 0.22);
    border-color: var(--accent-blood-dim);
}

.journey-btn:active { transform: translateY(1px); }

.journey-btn:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

#journey-begin {
    padding: 0 18px;
    background: rgba(220, 38, 38, 0.9);
    border-color: transparent;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

#journey-begin:hover { background: #ef4444; }

.journey-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 168px;
}

#journey-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#journey-count {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* The rail of stops — one dot per war, in the order they happened. */
.journey-rail {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
}

.journey-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.journey-dot:hover { transform: scale(1.45); }
.journey-dot.done { background: var(--accent-blood-dim); }

.journey-dot.current {
    background: var(--accent-gold);
    transform: scale(1.5);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.75);
}

.journey-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.journey-hint kbd {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    padding: 1px 5px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
}

/* Narrow screens: drop the rail and the hint, keep the controls. */
@media (max-width: 720px) {
    .journey-bar { bottom: 176px; gap: 10px; padding: 8px 12px; }
    .journey-rail, .journey-hint { display: none; }
    .journey-meta { min-width: 110px; }
}

@media (prefers-reduced-motion: reduce) {
    .journey-btn, .journey-dot { transition: none; }
}
