/* ============================================
   Hunt OBS Overlay — Saloon Chalkboard
   ============================================ */

.hunt-overlay {
    --ho-bg: #120e0b;
    --ho-surface: #1c1612;
    --ho-fg: #e3d9ce;
    --ho-soft: #c4b5a0;
    --ho-muted: #8a7a6a;
    --ho-dim: #5a4a3a;
    --ho-border: rgba(200, 170, 130, 0.1);
    --ho-primary: #e8c34a;
    --ho-primary-dim: rgba(232, 195, 74, 0.5);
    --ho-accent: #c49a3a;
    --ho-divider: rgba(200, 170, 130, 0.07);

    --ho-font-display: "Libre Caslon Text", Georgia, serif;
    --ho-font-body: "Work Sans", system-ui, sans-serif;
    --ho-font-label: "Geist", system-ui, sans-serif;

    background: transparent;
    color: var(--ho-fg);
    font-family: var(--ho-font-body);
    font-size: 16px;
    line-height: 1.45;
    overflow: hidden;
    user-select: none;
}

/* ─── Panel — sandwich board ──────────── */

.hunt-overlay .ol-panel {
    position: relative;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--ho-bg) 82%, transparent) 0%,
        color-mix(in srgb, var(--ho-surface) 65%, transparent) 100%
    );
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(200, 170, 130, 0.12);
    box-shadow:
        inset 0 0 0 1px rgba(200, 170, 130, 0.05),
        0 4px 24px rgba(0, 0, 0, 0.4);
    width: 300px;
}

/* Top rail — like the wooden top of a sandwich board */
.hunt-overlay .ol-panel::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(200, 170, 130, 0.15) 15%,
        rgba(200, 170, 130, 0.15) 85%,
        transparent 100%
    );
}

/* Bottom rail */
.hunt-overlay .ol-panel::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(200, 170, 130, 0.15) 15%,
        rgba(200, 170, 130, 0.15) 85%,
        transparent 100%
    );
}

/* ─── Pending badge — chalk tally board ── */

.hunt-overlay .ol-pending-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 0 7px;
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid var(--ho-divider);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.hunt-overlay .ol-pending-label {
    font-family: var(--ho-font-display);
    font-size: 10px;
    font-style: italic;
    color: rgba(200, 195, 180, 0.45);
    letter-spacing: 0.04em;
}

.hunt-overlay .ol-pending-count {
    font-family: var(--ho-font-display);
    font-size: 13px;
    font-weight: 700;
    color: rgba(220, 215, 200, 0.65);
    line-height: 1;
}

.hunt-overlay .ol-pending-count::before {
    content: "—";
    margin-right: 6px;
    color: rgba(200, 195, 180, 0.2);
    font-weight: 400;
}

/* ─── Header — tavern board heading ───── */

.hunt-overlay .ol-header {
    padding: 10px 14px 8px;
    text-align: right;
    border-bottom: 1px solid var(--ho-divider);
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(232, 195, 74, 0.03) 100%
    );
}

/* Small corner flourish above the header */
.hunt-overlay .ol-header::before {
    content: "✧";
    display: block;
    text-align: right;
    font-size: 8px;
    color: rgba(200, 170, 130, 0.2);
    margin-bottom: 2px;
    letter-spacing: 0.5em;
    padding-right: 2px;
}

.hunt-overlay .ol-header-title {
    font-family: var(--ho-font-display);
    font-size: 11px;
    color: var(--ho-dim);
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.hunt-overlay .ol-header-byline {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 1px;
}

.hunt-overlay .ol-header-by {
    font-family: var(--ho-font-label);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ho-dim);
    font-weight: 400;
}

.hunt-overlay .ol-header-user {
    font-family: var(--ho-font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--ho-accent);
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

/* ─── Weapons — today's specials ────────── */

.hunt-overlay .ol-weapons {
    display: flex;
    flex-direction: column;
}

.hunt-overlay .ol-weapon {
    padding: 9px 14px 8px;
    border-bottom: 1px solid var(--ho-divider);
}

.hunt-overlay .ol-weapon-primary {
    background: linear-gradient(
        90deg,
        rgba(232, 195, 74, 0.04) 0%,
        transparent 40%
    );
}

.hunt-overlay .ol-weapon-secondary {
    background: linear-gradient(
        90deg,
        rgba(90, 74, 58, 0.08) 0%,
        transparent 40%
    );
}

.hunt-overlay .ol-weapon-name {
    font-family: var(--ho-font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--ho-fg);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

.hunt-overlay .ol-weapon-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 1px;
}

.hunt-overlay .ol-weapon-tag {
    font-family: var(--ho-font-label);
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    padding: 1px 4px;
    border-radius: 1px;
}

.hunt-overlay .ol-weapon-tag.is-primary {
    color: var(--ho-accent);
    background: rgba(232, 195, 74, 0.08);
}

.hunt-overlay .ol-weapon-tag.is-secondary {
    color: var(--ho-muted);
    background: rgba(90, 74, 58, 0.2);
}

.hunt-overlay .ol-weapon-caliber {
    font-family: var(--ho-font-label);
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ho-dim);
}

/* ─── Gear — supply list ────────────── */

.hunt-overlay .ol-gear {
    padding: 5px 14px 7px;
    border-bottom: 1px solid var(--ho-divider);
}

.hunt-overlay .ol-gear-label {
    font-family: var(--ho-font-display);
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ho-dim);
    font-weight: 400;
    font-style: italic;
    margin-bottom: 2px;
}

.hunt-overlay .ol-gear-items {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 8px;
}

.hunt-overlay .ol-gear-item {
    font-size: 12px;
    color: var(--ho-soft);
    line-height: 1.4;
}

/* ─── Empty/awaiting state ─────────────── */

.hunt-overlay .ol-empty {
    padding: 28px 14px;
    text-align: center;
}

.hunt-overlay .ol-empty-text {
    font-size: 13px;
    font-style: italic;
    color: var(--ho-muted);
    font-family: var(--ho-font-display);
}

/* ─── Hide scrollbar ───────────────────── */

.hunt-overlay ::-webkit-scrollbar {
    display: none;
}

/* ─── Animations ───────────────────────── */

@keyframes ol-fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hunt-overlay .ol-fade-in {
    animation: ol-fadeIn 0.25s ease-out;
}
