.hb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.hb-header {
    text-align: center;
    margin-bottom: 2rem;
}

.hb-header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.hb-header p {
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
}

.hb-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.hb-picker-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.6rem 1rem;
    background: var(--tertiary-dark);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.hb-picker-btn:hover {
    border-color: var(--accent-blue);
}

.hb-picker-btn.active {
    background: rgba(0, 212, 255, 0.12);
    border-color: var(--accent-blue);
}

.hb-picker-name {
    font-weight: 600;
}

.hb-picker-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.hb-source-note {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
    margin: 0 auto 1.5rem;
    max-width: 640px;
}

.hb-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
}

.hb-map-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#hb-map {
    height: 420px;
    width: 100%;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.15);
    background: var(--secondary-dark);
}

.hb-strip {
    list-style: none;
    margin: 0;
    padding: 0.25rem;
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.hb-strip-item {
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.8rem;
    background: var(--tertiary-dark);
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s ease, opacity 0.2s ease;
    opacity: 0.75;
}

.hb-strip-item.active {
    opacity: 1;
    border-color: var(--accent-blue);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.15);
}

.hb-strip-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-blue);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 700;
}

.hb-strip-body {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.hb-strip-body strong {
    color: var(--text-primary);
}

.hb-strip-date {
    font-size: 0.78rem;
    color: var(--accent-blue);
    font-weight: 600;
}

.hb-battle-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.hb-victor-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.5rem;
}

.hb-info-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hb-panel {
    background: var(--tertiary-dark);
    border-radius: 15px;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.hb-panel h2 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.hb-panel p, .hb-panel li {
    color: var(--text-secondary);
    line-height: 1.5;
}

#hb-victor {
    font-weight: 600;
    color: var(--accent-green);
}

.hb-belligerent-card {
    border-left: 3px solid var(--hb-side-color, var(--accent-blue));
    padding: 0.5rem 0 0.5rem 0.9rem;
    margin-bottom: 1rem;
}

.hb-belligerent-card:last-child {
    margin-bottom: 0;
}

.hb-belligerent-card h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.hb-belligerent-regime {
    font-size: 0.8rem;
    font-style: italic;
    margin-bottom: 0.4rem;
}

#hb-tactics {
    padding-left: 1.2rem;
}

#hb-tactics li {
    margin-bottom: 0.4rem;
}

.hb-error {
    color: #e74c3c;
}

.hb-pin {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hb-pin span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent-blue);
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 700;
    border: 2px solid var(--primary-dark);
    box-shadow: 0 0 6px rgba(0, 212, 255, 0.5);
}

.hb-pin-active span {
    background: var(--accent-purple);
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.7);
}

@media (max-width: 900px) {
    .hb-layout {
        grid-template-columns: 1fr;
    }

    #hb-map {
        height: 320px;
    }
}
