/* w-npc 동네 사람들의 성격 · 명소 이야기 · 오늘의 부탁 — v823 토큰을 그대로 쓰는 단정한 대화 시트.
   낙관(도장) 초상 · 이름 · 한 줄 성격 · 이야기는 '말투'와 '기록'을 나눠 보여 줌(사실은 역사 카드 문장 그대로). */
.npc-talk{background:#fff!important;color:var(--ot-ink)!important;border:0!important;border-radius:24px!important;box-shadow:0 24px 70px rgba(13,17,23,.28)!important;width:min(440px,calc(100% - 24px))!important;max-height:88dvh;overflow:auto!important}
.npc-talk::backdrop{background:rgba(13,17,23,.42)!important}
.npc-talk>header.npc-head{display:flex;align-items:center;gap:14px;background:linear-gradient(180deg,#1b2130,#121722)!important;color:#fff!important;padding:20px 18px 18px!important;margin:0!important;border-bottom:0!important;height:auto!important;position:relative!important}
.npc-talk>header.npc-head::after{display:none}
.npc-head .npc-seal{flex:none;width:52px;height:52px;border-radius:12px;display:grid;place-items:center;background:#b8322a;color:#fff7ea;font:700 26px/1 "AppleMyungjo","Nanum Myeongjo","Noto Serif KR",serif;box-shadow:inset 0 0 0 2px rgba(255,247,234,.85),inset 0 0 0 4px #b8322a,inset 0 0 0 5px rgba(255,247,234,.45)}
.npc-head small{display:block;color:#d8b26a!important;letter-spacing:.04em!important;font:600 11.5px/1.3 "Inter Tight",system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif!important}
.npc-head h2{margin:3px 0 0!important;color:#fff!important;font:800 21px/1.2 "Inter Tight",system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif!important;letter-spacing:-.02em}
.npc-head .npc-persona{display:block;margin-top:5px;font:500 12.5px/1.4 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;font-style:normal;color:rgba(255,255,255,.72)}
.npc-talk .npc-x{flex:none;align-self:flex-start;background:rgba(255,255,255,.1)!important;border:0!important;color:#fff!important}
.npc-talk .npc-line{margin:16px 18px 12px!important;padding:16px!important;border-radius:var(--ot-r)!important;background:var(--ot-soft)!important;border:0!important;font:500 15px/1.6 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;color:var(--ot-ink)}
.npc-talk .npc-beat{display:grid;gap:8px}
.npc-talk .npc-voice{color:var(--ot-sub);font-size:13.5px;line-height:1.5}
.npc-talk .npc-fact{padding-left:12px;border-left:3px solid var(--ot-p);font-weight:600}
.npc-talk .npc-after{margin-top:2px}
.npc-talk .npc-dots{display:flex;gap:6px;justify-content:center;margin:0 0 12px}
.npc-talk .npc-dots i{width:6px;height:6px;border-radius:50%;background:var(--ot-line)}
.npc-talk .npc-dots i.on{background:var(--ot-p)}
.npc-talk .npc-gain{margin:-4px auto 12px;width:max-content;max-width:calc(100% - 36px);padding:6px 12px;border-radius:999px;background:var(--ot-grad);color:#fff;font:700 12.5px/1.3 "Inter Tight",system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;text-align:center}
.npc-errand{position:relative;margin:0 18px 12px;padding:14px 16px;border:1px solid var(--ot-line);border-radius:var(--ot-r);display:grid;gap:6px;background:#fff}
.npc-errand small{color:var(--ot-p);font:700 11.5px/1.2 "Inter Tight",system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;letter-spacing:.03em}
.npc-errand b{font:700 15px/1.35 "Inter Tight",system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;color:var(--ot-ink);padding-right:52px}
.npc-errand i{display:block;height:6px;border-radius:9px;background:var(--ot-soft);overflow:hidden}
.npc-errand i em{display:block;height:100%;border-radius:9px;background:var(--ot-grad);transition:width .4s}
.npc-errand span{font-size:12.5px;line-height:1.45;color:var(--ot-sub)}
.npc-errand strong{position:absolute;top:13px;right:16px;font:800 15px/1.2 "Inter Tight",system-ui,sans-serif;color:var(--ot-ink)}
.npc-errand.ok{border-color:#12b886;background:#f2fbf7}
.npc-errand.ok small{color:#0c8a64}
.npc-errand.preview i,.npc-errand.preview strong{display:none}
.npc-talk .npc-choices{padding:0 18px 18px!important;gap:8px!important}
.npc-talk .npc-choices button{border-radius:14px!important;background:var(--ot-soft)!important;color:var(--ot-ink)!important;border:0!important;padding:14px 16px!important;font:700 15px/1.25 "Inter Tight",system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif!important;text-align:center;min-height:48px}
.npc-talk .npc-choices button.primary{background:var(--ot-p)!important;color:#fff!important;border:0!important}
@media(hover:hover) and (pointer:fine){.npc-talk .npc-choices button:hover{filter:none!important;background:var(--ot-line)!important}.npc-talk .npc-choices button.primary:hover{background:var(--ot-p2)!important}}
/* a short line over a name tag now and then */
.npc-tag{position:relative}
.npc-say{position:absolute;left:50%;bottom:calc(100% + 8px);transform:translateX(-50%);width:max-content;max-width:190px;padding:7px 11px;border-radius:12px;background:#fff;color:var(--ot-ink);font:600 12px/1.4 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;white-space:normal;text-align:center;box-shadow:0 6px 18px rgba(13,17,23,.18);pointer-events:none;animation:npc-say 5.2s ease both}
.npc-say::after{content:"";position:absolute;left:50%;top:100%;margin-left:-5px;border:5px solid transparent;border-top-color:#fff}
@keyframes npc-say{0%{opacity:0;transform:translate(-50%,4px)}8%,88%{opacity:1;transform:translate(-50%,0)}100%{opacity:0}}
@media(prefers-reduced-motion:reduce){.npc-say{animation:none}}
@media(max-width:720px){
  .npc-talk{position:fixed!important;inset:auto 0 0 0!important;margin:0!important;width:100%!important;max-width:100%!important;border-radius:24px 24px 0 0!important;padding-bottom:env(safe-area-inset-bottom,0px)!important;animation:ot-sheet-up .32s cubic-bezier(.2,.8,.2,1)}
  .npc-talk>header.npc-head{padding:18px 16px 16px!important}
  .npc-talk .npc-line{margin:14px 16px 10px!important}
  .npc-errand{margin:0 16px 10px}
  .npc-talk .npc-choices{padding:0 16px 16px!important}
}
