/* newbie-death-1116 — "เล่นได้แม้ไม่อ่านสักคำ": ไอคอน/สี/ลูกศรแทนข้อความ (auto-alloc.js · nd-hud.js · หน้าตาย main.js deathCard)
   ?nd=0 = ไม่มีชิ้นไหนในไฟล์นี้ถูกสร้าง · ตัวหนังสือใช้ตัวแปรกลาง ui-scale.css */

/* ── ข้อ 2: ไอคอนค่าสถานะ +N ลอยขึ้นจากการ์ดตัวละคร ── */
.aa-float { position: fixed; z-index: var(--z-popup, 300); transform: translateX(-50%); display: flex; gap: 6px; pointer-events: none;
  animation: aa-rise 2.4s ease-out both; }
.aa-chip { display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px 3px 4px; border-radius: 999px;
  background: rgba(31, 66, 69, .88); border: 1.5px solid #e8b64a; color: #ffe9a8; font-weight: 800; font-size: var(--fs-sm, 14px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.aa-chip img { width: 22px; height: 22px; object-fit: contain; }
@keyframes aa-rise { 0% { opacity: 0; translate: 0 8px; } 12% { opacity: 1; translate: 0 0; } 75% { opacity: 1; } 100% { opacity: 0; translate: 0 -34px; } }

/* ── ข้อ 2 (17 พ.ย.): การ์ดถามตัวที่ลงแต้มมาแล้ว "อัปแต้มยังไงดี" — 2 ปุ่มไอคอนใหญ่ (สไตล์ .nd-act เดียวกับหน้าตาย) ── */
.aa-ask { position: fixed; inset: 0; z-index: var(--z-popup, 300); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.aa-card { position: relative; pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 18px 12px; max-width: min(92vw, 360px);
  border-radius: 18px; background: #fff8e6; border: 2px solid #e8b64a; box-shadow: 0 6px 24px rgba(40, 30, 10, .35); color: #4a3b22; text-align: center; }
.aa-card b { font-size: var(--fs-title, 20px); }
.aa-card small { font-size: var(--fs-sm, 14px); color: #6b5a3a; }
.aa-card .aa-free { color: #2f6f73; font-weight: 700; }
.aa-btns { display: flex; gap: 12px; margin: 4px 0 2px; }
.aa-btns .nd-act { min-width: 104px; font-size: var(--fs-sm, 14px); }
.aa-x { position: absolute; right: 6px; top: 6px; width: 44px; height: 44px; border: 0; background: transparent; color: #8a7650; font-size: var(--fs-name, 18px); cursor: pointer; }

/* ── ข้อ 5: หน้าตายแบบไอคอน ── */
.nd-why { display: flex; align-items: center; gap: 10px; margin: 4px 0 6px; }
.nd-mob { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: #f3e6c4; border: 2px solid #c9a26a; flex: none; }
.nd-vs { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: var(--fs-name, 18px); color: #4a3b22; }
.nd-vs .nd-lv { padding: 2px 8px; border-radius: 10px; background: #efe3c2; }
.nd-vs .nd-lv.hot { background: #b8323f; color: #fff; }
.nd-vs .nd-me { background: #2f6f73; color: #fff; }
.nd-acts { display: flex; gap: 10px; justify-content: center; margin: 6px 0 4px; flex-wrap: wrap; }
.nd-act { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 76px; min-height: 76px; padding: 6px 8px;
  border-radius: 16px; border: 2px solid #e8b64a; background: linear-gradient(#fff8e6, #f3e1b0); color: #4a3b22; font-weight: 800;
  font-size: var(--fs-xs, 12px); cursor: pointer; box-shadow: 0 3px 0 #c9a26a; animation: nd-pulse 1.6s ease-in-out 3; }
.nd-act img { width: 38px; height: 38px; object-fit: contain; }
.nd-act:active { translate: 0 2px; box-shadow: 0 1px 0 #c9a26a; }
@keyframes nd-pulse { 50% { box-shadow: 0 3px 0 #c9a26a, 0 0 0 5px rgba(232, 182, 74, .45); } }

/* ── ข้อ 3: ของดีกว่าในกระเป๋า — ไอคอนลูกศรเขียว + ปุ่มสวมเรือง ── */
.nd-up { position: absolute; right: 1px; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: #3fa14a; color: #fff;
  font-weight: 900; font-size: var(--fs-xs, 12px); line-height: 18px; text-align: center; pointer-events: none; box-shadow: 0 0 0 1.5px #fff; z-index: 2; }
.nd-wear { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; min-height: 48px; border-radius: 14px;
  border: 2px solid #e8b64a; background: linear-gradient(#fff8e6, #f3e1b0); color: #2d5a2f; font-weight: 800; font-size: var(--fs-sm, 14px);
  cursor: pointer; animation: nd-glow 1.4s ease-in-out 4; }
.nd-wear img { width: 38px; height: 38px; object-fit: contain; }
@keyframes nd-glow { 50% { box-shadow: 0 0 0 4px rgba(232, 182, 74, .55), 0 0 14px rgba(255, 220, 120, .9); } }

.nd-wear[hidden], #nd-death[hidden] { display: none; }
.nd-wic { position: relative; display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; }
.nd-wic img { width: 38px; height: 38px; object-fit: contain; }
/* จอสัมผัส: ลูกโซนบนกลาง (ui-root ZONES.tc) — โซนตั้ง pointer-events none ให้ลูกที่ลงทะเบียนเปิดเอง (แบบ #follow-badge ใน ui-touch.css) */
html.touch-ui body #hud .hud-zone #nd-wear { position: relative; flex: none; pointer-events: auto; align-self: center; }
/* คอม (ไม่อยู่ในโครงโซนจอสัมผัส): ลอยกลางบนใต้ป้ายมอน แบบ #follow-badge */
html:not(.touch-ui) #nd-wear { position: fixed; left: 50%; top: 96px; transform: translateX(-50%); z-index: var(--z-hud, 100); }

/* ── ข้อ 6: 🧭 บนการ์ดเป้าหมาย (มอนแรงกว่าเรา ≥ 3) ── */
.t-nd-go { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-left: 4px; padding: 0; border-radius: 50%;
  border: 2px solid #e8b64a; background: #fff8e6; cursor: pointer; vertical-align: middle; animation: nd-glow 1.4s ease-in-out 3; }
.t-nd-go img { width: 22px; height: 22px; }
html.touch-ui .t-nd-go { width: 34px; height: 34px; }
html.touch-ui .t-nd-go img { width: 24px; height: 24px; }
/* 🧭 โผล่ = ซ่อนคำใบ้ธาตุ (ชื่อมอนต้องไม่ถูกบีบเหลือตัวเดียวบนป้ายกว้างตายตัว · แผงรายละเอียดยังบอกธาตุ) */
#t-info:has(.t-nd-go) .t-weak { display: none; }

/* ── ข้อ 4: วาร์ปเข้าแผนที่ที่มอนแรงเกิน — ขอบจอแดงจาง 2 วิ + ไอคอน ── */
.nd-danger { position: fixed; inset: 0; z-index: var(--z-popup, 300); pointer-events: none; box-shadow: inset 0 0 60px 18px rgba(184, 50, 63, .55);
  animation: nd-edge 2.2s ease-out both; display: flex; align-items: flex-start; justify-content: center; }
.nd-danger span { margin-top: min(58vh, calc(50vh + 90px)); display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
  background: rgba(120, 24, 36, .85); color: #fff; font-weight: 900; font-size: var(--fs-name, 18px); }
.nd-danger img { width: 30px; height: 30px; }
@keyframes nd-edge { 0% { opacity: 0; } 15% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }
