/* NUSHI — fitur sosial: obrolan cepat & emote, peta mini, daftar pemancing, keistimewaan pemegang $NUSHI. */

/* ── peta mini (desktop: kiri bawah, pojok yang kosong) ── */
.minimap { position: fixed; left: 18px; bottom: calc(18px + var(--safe-b)); z-index: 9; width: 148px; height: 148px; border-radius: 50%; cursor: pointer; box-shadow: 0 0 0 3px rgba(21, 18, 14, 0.55), 0 8px 22px rgba(20, 16, 10, 0.3); background: rgba(246, 240, 226, 0.6); transition: width 0.25s, height 0.25s; }
.minimap canvas { display: block; width: 100%; height: 100%; border-radius: 50%; }
.minimap.folded { width: 44px; height: 44px; }

/* ── tombol obrolan cepat ── */
.chat-btn { position: fixed; left: 178px; bottom: calc(18px + var(--safe-b)); z-index: 11; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--wash); color: var(--washi); }
.chat-btn svg { width: 22px; height: 22px; }
.chat-btn kbd { position: absolute; right: -3px; top: -3px; }
.chat-btn.on { background: var(--shu); color: var(--washi); }
.chat-btn svg circle { fill: var(--ink); }
.chat-btn.on svg circle { fill: var(--shu); }
body:has(.minimap.folded) .chat-btn { left: 72px; }
.chat-pop kbd, .chat-btn kbd { display: inline-grid; place-items: center; min-width: 19px; height: 19px; margin: 0; padding: 0 4px; font-size: 12px; line-height: 1; }
.chat-pop { position: fixed; left: 18px; bottom: calc(178px + var(--safe-b)); z-index: 12; width: 330px; padding: 10px; background: var(--washi) var(--fibre) 0 0 / 320px; border-image: var(--deckle) 60 / 30px / 6px round; filter: drop-shadow(0 14px 24px rgba(10, 8, 5, 0.38)); animation: chatIn 0.18s ease-out; }
.chat-pop[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(8px); } }
.chat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.chat-emotes { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; padding-top: 10px; }
.chat-emotes::before { top: 0; }
.chat-pop button { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 9px; border-radius: var(--r); box-shadow: inset 0 0 0 1px rgba(31, 28, 24, 0.2); font-size: 15px; font-weight: 500; text-align: left; transition: background 0.15s, opacity 0.2s; }
.chat-pop button:hover { background: rgba(31, 28, 24, 0.07); }
.chat-emotes button { justify-content: center; gap: 5px; padding: 6px 4px; min-width: 0; font: 700 14px var(--sc); letter-spacing: 0.02em; }
.chat-pop.cool button { opacity: 0.45; pointer-events: none; }

/* ── daftar pemancing (tab Anglers) ── */
.online.clickable { cursor: pointer; }
.an-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.an-head b { font: 800 21px var(--display); }
.an-head span { font: 500 14px var(--sc); letter-spacing: 0.03em; color: var(--ink-3); }
.an-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.an-list li { display: flex; align-items: center; gap: 9px; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.an-list li.bot { color: var(--ink-3); }
.an-list li.me .an-name { font-weight: 700; }
.an-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-name small { margin-left: 8px; font: 600 13.5px var(--sc); letter-spacing: 0.03em; color: var(--gold); }
.an-tag { font: 700 12.5px var(--sc); font-style: normal; letter-spacing: 0.06em; padding: 0 7px 1px; box-shadow: inset 0 0 0 1px rgba(31, 28, 24, 0.25); color: var(--ink-3); }
.an-tag.you { background: var(--ink); color: var(--washi); }
.an-note { text-align: left; }

/* ── segel emas & keistimewaan pemegang ── */
.seal-gold { flex: none; width: 22px; height: 22px; display: inline-grid; place-items: center; background: var(--gold); color: #fff6e0; font: 400 14px/1 var(--kanji); transform: rotate(-4deg); box-shadow: inset 0 0 0 1.5px var(--gold), inset 0 0 0 2.5px rgba(255, 246, 224, 0.7); }
.holder-box { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; padding: 10px 12px; border-radius: var(--r); background: rgba(255, 251, 242, 0.5); box-shadow: inset 0 0 0 1px rgba(184, 137, 47, 0.45); }
.holder-box > div { flex: 1; min-width: 0; }
.holder-box b { display: block; font-size: 15px; }
.holder-box small { display: block; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.holder-box a { color: var(--shu-d); }
.holder-box.ok { background: rgba(247, 236, 208, 0.8); box-shadow: inset 0 0 0 1px rgba(184, 137, 47, 0.7); }
.holder-btn { height: 34px; margin-top: 7px; padding: 0 12px; font-size: 14.5px; }
.holder-btn[disabled] { opacity: 0.55; }
.sw.holder-sw::before { content: '主'; position: absolute; right: -5px; top: -5px; z-index: 1; width: 16px; height: 16px; display: grid; place-items: center; background: var(--gold); color: #fff6e0; font: 400 11px/1 var(--kanji); }
.sw.locked { opacity: 0.45; filter: saturate(0.5); cursor: help; }

body.dressing .minimap, body.dressing .chat-btn, body.dressing .chat-pop { display: none; }

/* ── layar sentuh lebar (tablet): joystick di kiri bawah → peta & tombol naik ── */
.touch .minimap { left: 22px; bottom: calc(222px + var(--safe-b)); width: 110px; height: 110px; }
.touch .minimap.folded { width: 40px; height: 40px; }
.touch .chat-btn, body.touch:has(.minimap.folded) .chat-btn { left: 22px; bottom: calc(162px + var(--safe-b)); width: 46px; height: 46px; }
.touch .chat-pop { left: 12px; bottom: calc(218px + var(--safe-b)); }
.touch .chat-pop button { min-height: 42px; }

/* ── HP: peta kecil di kanan, di bawah papan pot ── */
@media (max-width: 760px) {
  .minimap, .touch .minimap { left: auto; right: 10px; bottom: auto; top: 150px; width: 86px; height: 86px; }
  .minimap.folded, .touch .minimap.folded { width: 38px; height: 38px; }
  .chat-btn, .touch .chat-btn, body:has(.minimap.folded) .chat-btn { left: 22px; bottom: calc(162px + var(--safe-b)); width: 44px; height: 44px; }
  .chat-pop, .touch .chat-pop { left: 10px; right: 10px; width: auto; bottom: calc(214px + var(--safe-b)); }
  .chat-pop button { font-size: 14px; }
}
