/* ── Port Noticeboard Strip ─────────────────────────────────────────────
   Self-contained strip pinned to the bottom of #city-panel.
   Removal: delete this file's <link> and the #noticeboard-strip block in
   game.html. No JS changes required.
   ──────────────────────────────────────────────────────────────────────── */

#noticeboard-strip[hidden] {
    display: none !important;
}

#noticeboard-strip {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    height: 52px;
    padding: 0 var(--space-md);
    background: rgba(197, 160, 89, 0.02);
    border-top: 1px solid rgba(197, 160, 89, 0.1);
    overflow: hidden;
}

/* ── Icon ──────────────────────────────────────────────────────────────── */
.noticeboard-strip__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.noticeboard-strip__icon img {
    width: 30px;
    height: 30px;
    opacity: 0.85;
}

/* ── Title group ───────────────────────────────────────────────────────── */
.noticeboard-strip__title-group {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex-shrink: 0;
}

/* ── Label ─────────────────────────────────────────────────────────────── */
.noticeboard-strip__label {
    font-family: var(--font-heading);
    font-size: var(--font-size-sm);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-gold);
    white-space: nowrap;
    margin: 0;
}

.noticeboard-strip__desc {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    white-space: nowrap;
    margin: 0;
}

/* ── Separator ─────────────────────────────────────────────────────────── */
.noticeboard-strip__sep {
    width: 1px;
    height: 22px;
    background: rgba(197, 160, 89, 0.08);
    flex-shrink: 0;
}

/* ── Active quest segment ──────────────────────────────────────────────── */
.noticeboard-strip__quest {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    min-width: 0;
    flex: 1;
}

.noticeboard-strip__quest-tag {
    font-size: var(--font-size-sm);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    background: #161515;
    /* padding-right is wider to leave room for the inward notch */
    padding: 5px 22px 5px 10px;
    white-space: nowrap;
    flex-shrink: 0;
    /* Inward V-notch on the right edge */
    clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%);
    /* Gold outline that follows the clip-path shape */
    filter: drop-shadow(0 0 0.5px rgba(197, 160, 89, 0.55));
}

.noticeboard-strip__quest-name {
    font-size: var(--font-size-base);
    color: rgba(210, 220, 230, 0.88);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.noticeboard-strip__quest-progress {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.38);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Stats list ────────────────────────────────────────────────────────── */
.noticeboard-strip__stats {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0 0 0 auto;
    padding: 0;
    flex-shrink: 0;
}

.noticeboard-strip__stats li {
    font-size: var(--font-size-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    white-space: nowrap;
}

.noticeboard-strip__stats li + li::before {
    content: '•';
    margin: 0 var(--space-xs);
    color: rgba(255, 255, 255, 0.15);
}

/* ── CTA arrow ─────────────────────────────────────────────────────────── */
.noticeboard-strip__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(197, 160, 89, 0.08);
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: var(--radius-sm);
    color: var(--gold);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.12s;
}

.noticeboard-strip__cta:hover {
    background: rgba(197, 160, 89, 0.18);
}

/* ── Mobile: ≤767px - wrap content instead of hiding ───────────────────── */
@media (max-width: 767px) {
    #noticeboard-strip {
        height: auto;
        min-height: 52px;
        flex-wrap: wrap;
        align-items: center;
        padding: var(--space-sm);
        row-gap: 4px;
    }

    .noticeboard-strip__title-group {
        flex: 1 1 100%;
        min-width: 0;
    }

    .noticeboard-strip__desc {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .noticeboard-strip__stats {
        flex: 1 1 auto;
        min-width: 0;
        margin-left: 0;
        flex-wrap: wrap;
        gap: 0 var(--space-xs);
    }

    .noticeboard-strip__cta {
        flex: 0 0 auto;
        align-self: center;
    }
}

/* ── Mobile: ≤479px - tighter typography ───────────────────────────────── */
@media (max-width: 479px) {
    .noticeboard-strip__label {
        font-size: var(--font-size-xs);
    }

    .noticeboard-strip__stats li {
        font-size: 0.65rem;
    }
}
