/* ============================================================
   Bait shop
   ============================================================ */
.bait-hero {
    display: flex; justify-content: space-between; gap: 18px; align-items: center;
    padding: 14px 16px; margin-bottom: 14px; border: 1px solid var(--line);
    border-radius: 12px; background: linear-gradient(135deg, rgba(101, 232, 201, 0.08), rgba(246, 201, 106, 0.035));
}
.bait-hero h3 { margin: 0 0 4px; font-family: var(--display); font-size: 22px; font-weight: 500; }
.bait-hero p { margin: 0; max-width: 520px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.bait-hero-stats { display: flex; gap: 8px; flex: 0 0 auto; }
.bait-hero-stat { min-width: 74px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: rgba(3, 21, 27, 0.35); text-align: center; }
.bait-hero-stat small { display: block; color: var(--muted-2); font-size: 7px; margin-bottom: 3px; }
.bait-hero-stat b { color: var(--mint); font-size: 15px; }
.bait-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 12px; }
.bait-card {
    position: relative; padding: 14px; border: 1px solid var(--line); border-radius: 12px;
    background: rgba(255, 255, 255, 0.025); overflow: hidden;
}
.bait-card.is-selected { border-color: rgba(101, 232, 201, 0.6); box-shadow: 0 0 0 1px rgba(101, 232, 201, 0.12); background: rgba(101, 232, 201, 0.055); }
.bait-card.is-locked { opacity: 0.72; }
.bait-card-top { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 8px; }
.bait-icon { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); color: var(--mint); background: rgba(101, 232, 201, 0.06); }
.bait-icon .icon { width: 18px; height: 18px; }
.bait-card h4 { margin: 0 0 3px; font-size: 12px; }
.bait-card p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.bait-count { margin: 8px 0 9px; color: var(--muted); font-size: 9px; }
.bait-count b { color: var(--ink); font-size: 14px; }
.bait-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.bait-actions .btn { padding: 7px 9px; font-size: 8px; border-radius: 7px; }
.bait-tag { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; padding: 2px 5px; border-radius: 4px; color: var(--gold); background: rgba(246, 201, 106, 0.1); font-size: 6px; font-weight: 800; letter-spacing: 0.05em; vertical-align: middle; }
.bait-note { display: flex; align-items: center; gap: 6px; margin-top: 9px; padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(246, 201, 106, 0.16); background: rgba(246, 201, 106, 0.04); color: var(--muted); font-size: 8px; line-height: 1.55; }
.bait-note .icon { width: 12px; height: 12px; color: var(--gold); flex: 0 0 auto; }
.fair-strip { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted-2); font-size: 7px; line-height: 1.5; }
.fair-strip b { color: var(--mint); font-size: 8px; }
.fair-strip code { color: var(--muted); font-size: 7px; word-break: break-all; }
.bait-offline { padding: 14px; border: 1px solid rgba(255, 115, 94, 0.3); border-radius: 10px; color: #ffd0c8; background: rgba(255, 115, 94, 0.07); font-size: 9px; line-height: 1.6; }

/* ============================================================
   Live chat & other sailors
   ============================================================ */
.chat-toggle {
    position: absolute; z-index: 64; right: 18px; bottom: calc(94px + var(--safe));
    display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 10px;
    border: 1px solid var(--line-strong); border-radius: 10px; color: #e4fff8;
    background: rgba(3, 22, 28, 0.82); backdrop-filter: blur(12px); font-size: 8px; font-weight: 700;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}
.chat-toggle .icon { width: 14px; height: 14px; color: var(--mint); }
.chat-toggle em { min-width: 14px; height: 14px; padding: 0 3px; display: none; place-items: center; border-radius: 5px; background: var(--gold); color: #3a2906; font-size: 7px; font-style: normal; }
.chat-toggle em.is-visible { display: grid; }
.chat-panel {
    position: absolute; z-index: 66; right: 18px; bottom: calc(136px + var(--safe));
    width: min(340px, calc(100vw - 24px)); height: min(420px, calc(100dvh - 200px));
    display: flex; flex-direction: column; overflow: hidden;
    border: 1px solid var(--line-strong); border-radius: 14px;
    background: rgba(4, 24, 31, 0.96); backdrop-filter: blur(18px);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.38);
}
.chat-head { display: flex; align-items: center; gap: 8px; padding: 11px 11px 9px; border-bottom: 1px solid var(--line); }
.chat-head > div { flex: 1; min-width: 0; }
.chat-kicker { display: block; color: var(--gold); font-size: 6px; font-weight: 800; letter-spacing: 0.12em; margin-bottom: 2px; }
.chat-head h3 { margin: 0; font-family: var(--display); font-size: 18px; font-weight: 500; }
.chat-online { flex: 0 0 auto; padding: 3px 6px; border-radius: 10px; color: var(--mint); background: rgba(101, 232, 201, 0.08); font-size: 7px; }
.chat-head .icon-btn { width: 24px; height: 24px; flex: 0 0 auto; }
.chat-messages { flex: 1; min-height: 0; overflow-y: auto; padding: 9px 10px; display: flex; flex-direction: column; gap: 7px; }
.chat-empty { margin: auto; padding: 20px; color: var(--muted-2); font-size: 8px; text-align: center; line-height: 1.6; }
.chat-message { padding: 7px 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.045); }
.chat-message.is-self { background: rgba(101, 232, 201, 0.055); border-color: rgba(101, 232, 201, 0.12); }
.chat-message b { display: block; margin-bottom: 2px; color: var(--mint); font-size: 7px; }
.chat-message p { margin: 0; color: #d8ece7; font-size: 9px; line-height: 1.5; overflow-wrap: anywhere; }
.chat-form { display: flex; gap: 5px; padding: 8px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; height: 32px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; outline: 0; background: rgba(3, 20, 26, 0.65); color: var(--ink); font-size: 9px; }
.chat-form input:focus { border-color: rgba(101, 232, 201, 0.5); }
.chat-form .btn { width: 32px; min-width: 32px; height: 32px; padding: 0; border-radius: 8px; }
.chat-form .btn .icon { width: 14px; height: 14px; }
.chat-message .chat-time { color: var(--muted-2); font-size: 6px; margin-left: 4px; font-weight: 400; }
.chat-mention { color: var(--gold); background: rgba(246, 201, 106, 0.12); border-radius: 4px; padding: 0 2px; font-weight: 700; }
.mention-list {
    position: absolute; left: 8px; right: 8px; bottom: 48px; z-index: 4;
    max-height: 190px; overflow-y: auto; padding: 4px;
    border: 1px solid var(--line-strong); border-radius: 9px;
    background: rgba(4, 24, 31, 0.98); box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
}
.mention-item {
    display: flex; align-items: center; gap: 6px; width: 100%; padding: 6px 7px;
    border: 0; border-radius: 6px; background: transparent; color: var(--ink);
    text-align: left; cursor: pointer;
}
.mention-item:hover, .mention-item:focus-visible { background: rgba(255, 255, 255, 0.07); outline: 0; }
.mention-item .mention-dot { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto; background: var(--c, var(--mint)); }
.mention-item b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 8px; }
.mention-item small { flex: 0 0 auto; padding: 2px 5px; border-radius: 4px; font-size: 6px; font-weight: 700; }
.mention-item small.is-online { color: #9fffe7; background: rgba(101, 232, 201, 0.12); }
.mention-item small.is-offline { color: var(--muted-2); background: rgba(255, 255, 255, 0.05); }
.mention-empty { padding: 9px 8px; color: var(--muted-2); font-size: 7px; }
.mention-loading { padding: 9px 8px; color: var(--muted); font-size: 7px; }

@media (max-width: 760px) {
    .bait-grid { grid-template-columns: 1fr; }
    .bait-hero { flex-direction: column; align-items: stretch; }
    .bait-hero-stats { justify-content: flex-start; }
    .chat-toggle { right: 9px; bottom: calc(86px + var(--safe)); padding: 0 8px; }
    .chat-toggle span { display: none; }
    .chat-panel { right: 7px; left: 7px; width: auto; bottom: calc(120px + var(--safe)); height: min(440px, calc(100dvh - 190px)); }
}
