/* ═══════════════════════════════════════════
   STAFF — hiring minigame
   ═══════════════════════════════════════════ */

#w-staff {
    width: 560px;
}

.staff-wrap {
    --staff-yellow:   #ffd83d;
    --staff-peach:    #ffe9c7;
    --staff-cream:    #fff4dc;
    --staff-cyan:     #9fe3f2;
    --staff-mint:     #bfe9c9;
    --staff-lavender: #d9c7f2;
    --staff-muted:    #5c3b4a;

    background: #fff;
    display: flex;
    flex-direction: column;
}

/* ── Header strip ─────────────────────────── */
.staff-header {
    flex-shrink: 0;
    padding: var(--space-3) var(--space-4);
    background: linear-gradient(135deg, var(--staff-yellow), var(--staff-peach));
    border-bottom: 3px solid var(--dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.staff-title {
    font-family: var(--font-display);
    font-size: 11px;
    color: var(--pink);
    text-shadow: 1px 1px 0 #fff;
    letter-spacing: 0.5px;
}

.staff-counter {
    background: #fff;
    border: 2.5px solid var(--dark);
    border-radius: var(--radius-pill);
    padding: 4px 12px;
    font-family: var(--font-display);
    font-size: var(--fs-xs);
    color: var(--dark);
    box-shadow: 0 2px 0 var(--dark);
    letter-spacing: 0.5px;
}

.staff-counter b {
    color: var(--pink);
}

/* ── QD progress strip ────────────────────── */
.staff-strip {
    margin: var(--space-3) var(--space-4) 0;
    background: #fff;
    border: 2.5px solid var(--dark);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 0 var(--dark);
    padding: var(--space-2) var(--space-3);
    display: flex;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
}

.staff-strip::-webkit-scrollbar { display: none; }

.staff-strip-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.staff-strip-item {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2.5px solid var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.25s;
    flex-shrink: 0;
    box-shadow: 0 2px 0 var(--dark);
}

.staff-strip-item.cur {
    width: 34px;
    height: 34px;
    font-size: 18px;
    box-shadow: 0 3px 0 var(--dark);
}

.staff-strip-item.past {
    filter: grayscale(0.7) opacity(0.5);
}

.staff-strip-item.hired {
    background: var(--staff-mint);
}

.staff-strip-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--pink);
    animation: staffPulse 1s infinite;
    margin-top: 2px;
}

.staff-strip-line {
    width: 10px;
    height: 2.5px;
    background: var(--dark);
    opacity: 0.2;
    flex-shrink: 0;
    transition: opacity 0.3s;
    align-self: center;
    margin-bottom: 4px;
}

.staff-strip-line.active {
    opacity: 1;
}

/* ── Chat window ──────────────────────────── */
.staff-chat {
    margin: var(--space-3) var(--space-4) 0;
    background: var(--cream);
    border: 2.5px solid var(--dark);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 0 var(--dark);
    height: 200px;
    overflow-y: auto;
    padding: var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    scroll-behavior: smooth;
}

.staff-chat::-webkit-scrollbar { width: 6px; }
.staff-chat::-webkit-scrollbar-track { background: var(--staff-peach); border-radius: var(--radius-pill); }
.staff-chat::-webkit-scrollbar-thumb { background: var(--pink); border-radius: var(--radius-pill); }

.staff-msg {
    display: flex;
    animation: staffSlideIn 0.2s ease;
}

.staff-msg-app {
    flex-direction: row;
    align-items: flex-end;
    gap: var(--space-2);
}

.staff-msg-me {
    justify-content: flex-end;
}

.staff-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2.5px solid var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 2px 0 var(--dark);
}

.staff-msg-name {
    font-family: var(--font-display);
    font-size: 8px;
    color: var(--pink);
    margin-bottom: 3px;
    letter-spacing: 0.5px;
}

.staff-bubble-app {
    background: #fff;
    border: 2.5px solid var(--dark);
    border-radius: var(--radius-md);
    border-bottom-left-radius: 4px;
    padding: var(--space-2) var(--space-3);
    font-family: var(--font-body);
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--dark);
    max-width: 320px;
    line-height: 1.4;
    box-shadow: 0 2px 0 var(--dark);
}

.staff-bubble-me {
    background: var(--pink);
    border: 2.5px solid var(--dark);
    border-radius: var(--radius-md);
    border-bottom-right-radius: 4px;
    padding: var(--space-2) var(--space-3);
    font-family: var(--font-body);
    font-size: var(--fs-md);
    font-weight: 700;
    color: #fff;
    max-width: 320px;
    line-height: 1.4;
    box-shadow: 0 2px 0 var(--dark);
}

.staff-msg-empty {
    background: #fff;
    border: 2.5px solid var(--dark);
    border-radius: var(--radius-pill);
    padding: 4px 12px;
    font-family: var(--font-display);
    font-size: var(--fs-xs);
    color: var(--staff-muted);
    margin: 0 auto;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 0 var(--dark);
}

.staff-typing {
    display: flex;
    gap: 4px;
    padding: 4px 8px;
    align-self: flex-start;
    background: #fff;
    border: 2.5px solid var(--dark);
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 0 var(--dark);
}

.staff-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pink);
}

.staff-typing span:nth-child(1) { animation: staffPulse 1s 0s   infinite; }
.staff-typing span:nth-child(2) { animation: staffPulse 1s 0.2s infinite; }
.staff-typing span:nth-child(3) { animation: staffPulse 1s 0.4s infinite; }

/* ── Action buttons ───────────────────────── */
.staff-actions {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    padding: var(--space-3) var(--space-4);
    min-height: 56px;
    align-items: center;
}

.staff-btn {
    font-family: var(--font-display);
    font-size: var(--fs-xs);
    border: 3px solid var(--dark);
    border-radius: var(--radius-pill);
    padding: var(--space-2) var(--space-5);
    cursor: pointer;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 0 var(--dark);
    transition: transform .12s, box-shadow .12s, background .12s;
}

.staff-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 0 var(--dark);
}

.staff-btn:active {
    transform: translateY(2px);
    box-shadow: none;
}

.staff-btn-pass {
    background: #fff;
    color: var(--dark);
}
.staff-btn-pass:hover { background: var(--cream); }

.staff-btn-hire {
    background: var(--pink);
    color: #fff;
}
.staff-btn-hire:hover { background: var(--hot); }

.staff-loading {
    font-family: var(--font-display);
    font-size: var(--fs-xs);
    color: var(--staff-muted);
    letter-spacing: 0.5px;
}

/* ── Badge row ────────────────────────────── */
.staff-badge-row {
    background: var(--staff-peach);
    border-top: 3px solid var(--dark);
    padding: var(--space-3) var(--space-4) var(--space-4);
    flex-shrink: 0;
}

.staff-badge-label {
    font-family: var(--font-display);
    font-size: var(--fs-xs);
    color: var(--pink);
    text-align: center;
    margin-bottom: var(--space-3);
    letter-spacing: 0.5px;
}

.staff-badges {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
}

/* ── Badge card ───────────────────────────── */
.staff-badge {
    width: 96px;
    height: 116px;
    cursor: pointer;
    transition: transform 0.12s;
    flex-shrink: 0;
}

.staff-badge:hover { transform: translateY(-2px); }
.staff-badge:active { transform: translateY(2px); }

.staff-badge-front,
.staff-badge-back {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    border: 2.5px solid var(--dark);
    box-shadow: 0 3px 0 var(--dark);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.staff-badge-emoji {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.staff-badge-info {
    padding: var(--space-1) var(--space-2);
    background: #fff;
    border-top: 2.5px solid var(--dark);
}

.staff-badge-name {
    font-family: var(--font-display);
    font-size: 8px;
    color: var(--pink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.5px;
}

.staff-badge-role {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 800;
    color: var(--dark);
    margin-top: 1px;
}

.staff-badge-owner {
    font-family: var(--font-display);
    font-size: 8px;
    color: var(--staff-muted);
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.staff-badge-back {
    background: var(--staff-cream);
    padding: var(--space-2);
    justify-content: center;
    gap: var(--space-1);
    align-items: center;
}

.staff-badge-file {
    font-family: var(--font-display);
    font-size: 8px;
    color: var(--pink);
    text-align: center;
    letter-spacing: 0.5px;
}

.staff-badge-divider {
    width: 36px;
    height: 2px;
    background: var(--dark);
}

.staff-badge-tags {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    line-height: 1.4;
    white-space: pre-line;
}

.staff-badge-flip-hint {
    font-family: var(--font-display);
    font-size: 8px;
    color: var(--staff-muted);
    text-align: center;
    letter-spacing: 0.5px;
}

.staff-badge-dismiss {
    font-family: var(--font-display);
    font-size: 8px;
    color: #fff;
    background: var(--pink);
    border: 2px solid var(--dark);
    border-radius: var(--radius-sm);
    padding: 3px 8px;
    cursor: pointer;
    line-height: 1.2;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 0 var(--dark);
}

.staff-badge-dismiss:hover { background: var(--hot); }
.staff-badge-dismiss:active { transform: translateY(1px); box-shadow: none; }

/* ── Empty badge slot ─────────────────────── */
.staff-badge-empty {
    border-radius: var(--radius-md);
    border: 3px dashed var(--dark);
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    cursor: default;
    opacity: 0.55;
}

.staff-badge-q {
    font-size: 26px;
    color: var(--dark);
}

.staff-badge-empty-role {
    font-family: var(--font-display);
    font-size: 8px;
    color: var(--dark);
    text-align: center;
    white-space: pre-line;
    line-height: 1.5;
    letter-spacing: 0.5px;
}

/* ── Closed state ─────────────────────────── */
.staff-closed {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-6) var(--space-5) var(--space-5);
    gap: var(--space-3);
    text-align: center;
}

.staff-closed-emoji {
    font-size: 40px;
}

.staff-closed-title {
    font-family: var(--font-display);
    font-size: var(--fs-sm);
    color: var(--pink);
    line-height: 1.5;
    letter-spacing: 0.5px;
}

.staff-closed-sub {
    font-family: var(--font-body);
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--staff-muted);
    line-height: 1.5;
    max-width: 320px;
}
