/* status2.css — bảng Nhân vật (C) + HUD của js/ext_status2.js: radar lục giác pixel, giữ chuột cộng điểm, xem trước +1,
   huy hiệu điểm tiềm năng / kỹ năng dưới thanh HP, Lv + SP trên ô kỹ năng, nút Ngồi cạnh AUTO. Dùng biến màu của ui2.css / kit.css. */

/* ---------- bảng Nhân vật ---------- */
/* nút + đang giữ: lún xuống và sáng vàng */
#win-char .stat button.held { background: var(--gold-2); transform: translateY(2px); box-shadow: none; }
#win-char .stat button[data-act="stat"] { min-width: 26px; }
/* điểm tiềm năng nổi bật khi còn điểm */
#win-char .pts.st2-pts { margin-top: 8px; padding: 5px 8px; border: 2px dashed rgba(42, 36, 53, .25); border-radius: 8px; }
#win-char .pts.st2-pts.has { color: var(--ink); background: #fff3c8; border: 2px solid var(--ink); box-shadow: inset 0 0 0 2px var(--gold-2); }
#win-char .pts.st2-pts.has > b { font: 900 18px/1 var(--f-head); color: #a8620c; }
#win-char .pts .st2-reset { margin-left: 4px; background: var(--cream-2); }

/* radar: ô trải hết 2 cột của .derived, không viền như các dòng chỉ số */
#win-char .derived .st2-radar-box { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; margin-top: 6px; padding: 0; border: 0; }
#win-char .st2-radar { position: relative; flex: none; }
#win-char .st2-cv { display: block; image-rendering: pixelated; image-rendering: crisp-edges; }
#win-char .st2-lab { position: absolute; display: flex; flex-direction: column; align-items: center; line-height: 1; transform: translate(-50%, -50%); pointer-events: none; }
#win-char .st2-lab b { font: 800 11px/1 var(--f-head); color: var(--ink); }
#win-char .st2-lab i { margin-top: 1px; padding: 0 3px; font: 700 10px/12px var(--f-head); font-style: normal; color: var(--ink); background: var(--gold-2); border: 1px solid var(--ink); border-radius: 4px; }
#win-char .st2-lab i.up { color: #fff; background: #2a5a9a; }
#win-char .derived .st2-legend { display: flex; justify-content: center; gap: 12px; border: 0; padding: 0; font-size: 11px; color: var(--ink-soft); }
#win-char .st2-legend span { display: inline-flex; align-items: center; gap: 4px; }
#win-char .st2-legend i { display: inline-block; width: 10px; height: 10px; border: 1px solid var(--ink); }
#win-char .st2-legend i.base { background: #ffd56a; }
#win-char .st2-legend i.tot { background: #74b6ec; }

/* ---------- HUD: huy hiệu điểm dưới thanh HP / SP ---------- */
#hud-tl .st2-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; padding-right: 62px; }   /* chừa chỗ cho #zeny góc dưới phải */
#hud-tl .st2-badge { flex: none; margin: 0; padding: 0 7px 0 6px; font: 800 10px/16px var(--f-head); color: var(--ink); background: var(--gold-2);
  border: 2px solid var(--ink); border-radius: 8px; box-shadow: 0 2px 0 var(--ink); cursor: pointer; white-space: nowrap; }
#hud-tl .st2-badge.skill { color: #fff; background: #2f4a8a; }
#hud-tl .st2-badge b { margin-left: 2px; font-size: 11px; font-weight: 900; }
#hud-tl .st2-badge:hover { filter: brightness(1.08); }
#hud-tl .st2-badge:active { transform: translateY(2px); box-shadow: none; }

/* ---------- HUD: Lv + SP cost trên ô kỹ năng ---------- */
#slots .slot.skill .st2-lv { position: absolute; right: -5px; top: -8px; z-index: 4; padding: 0 3px; font: 900 9px/12px var(--f-head); color: var(--ink);
  background: var(--cream); border: 2px solid var(--ink); border-radius: 4px; text-shadow: none; pointer-events: none; }
#slots .slot.skill .st2-lv:empty, #slots .slot.skill .st2-sp:empty { display: none; }
#slots .slot.skill .st2-sp { position: absolute; right: 2px; bottom: 1px; z-index: 4; font: 900 10px/12px var(--f-head); color: #9ac8ff; pointer-events: none;
  text-shadow: 1px 1px 0 var(--ink), -1px 1px 0 var(--ink), 1px -1px 0 var(--ink), -1px -1px 0 var(--ink); }
#slots .slot.skill .st2-sp.no { color: #ff6a6a; }

/* ---------- HUD: nút Ngồi cạnh AUTO ---------- */
/* .auto-wrap thành lưới 2 cột: AUTO cao hết bên trái, ⚙ và Ngồi xếp dọc bên phải (chỉ khi ext_status2 đã gắn, class st2) */
#slots .auto-wrap.st2 { display: grid; grid-template-columns: 64px auto; grid-template-rows: 1fr 1fr; gap: 3px 4px; align-items: stretch; }
#slots .auto-wrap.st2 #btn-auto { grid-row: 1 / 3; height: auto; min-height: 36px; }
#slots .auto-wrap.st2 .gear { grid-column: 2; grid-row: 1; height: auto; min-height: 22px; }
#slots .auto-wrap.st2 .st2-sit { grid-column: 2; grid-row: 2; position: relative; overflow: visible; min-width: 44px; margin: 0; padding: 0 6px; display: flex; align-items: center; justify-content: center;
  font: 800 11px/1 var(--f-head); color: var(--ink); background: var(--cream); border: 2px solid var(--ink); border-radius: 7px; box-shadow: 0 2px 0 var(--ink); cursor: pointer; }
#slots .auto-wrap.st2 .st2-sit .key { position: absolute; left: -6px; top: -8px; z-index: 4; padding: 0 4px; font-size: 10px; font-weight: 900; line-height: 13px; letter-spacing: 0;
  color: var(--ink); background: var(--gold-2); border: 2px solid var(--ink); border-radius: 5px; text-shadow: none; }
#slots .auto-wrap.st2 .st2-sit:active { transform: translateY(2px); box-shadow: none; }
#slots .auto-wrap.st2 .st2-sit.on { color: #f0ffe0; background: #3b8a2a; animation: st2Sit 1.4s ease-in-out infinite; }
@keyframes st2Sit { 50% { box-shadow: 0 2px 0 var(--ink), 0 0 8px 2px rgba(130, 255, 140, .5); } }
