/* หน้าสถานะ: แผงคำอธิบาย ⓘ · ค่าแนะนำ · สูตร (พับได้) · รีเซ็ตที่ Rowan — status-help.js (7 ต.ค.)
   ⚠️ ไม่มี position/top/left — เนื้อในหน้าต่าง (Screen Shell เป็นเจ้าของกรอบ) · ไม่มี CSS animation */
html body #windows .win[data-win="status"] [data-help] { cursor: pointer; }
html body #windows .win[data-win="status"] .st-i { font-style: normal; font-weight: 400; font-size: 11px; color: #2f6f73; opacity: .75; }
html body #windows .win[data-win="status"] .st-row.st-sel { box-shadow: inset 0 0 0 2px #2f6f73; background: #eef6f2; border-radius: 9px; }

html body #windows .win[data-win="status"] .st-explain {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-height: 40px; margin: 0 0 8px; padding: 7px 10px;
  background: #eef6f2; border: 1px solid #b9d3c8; border-radius: 10px; color: #33453f; font-size: 13px; line-height: 1.45;
}
/* เลือกค่าแล้ว = ติดบนสุดของส่วนที่เลื่อน — แตะแถวล่าง ๆ (Flee/ธาตุ) แล้วคำอธิบายยังเห็น ไม่ต้องเลื่อนกลับขึ้นไป */
html body #windows .win[data-win="status"] .st-explain.on { position: sticky; top: 0; z-index: 1; box-shadow: 0 4px 10px rgba(70, 50, 20, .14); }   /* z-index 1 = ซ้อนในหน้าต่างเท่านั้น: ปุ่ม + (position: relative · ui-badges.css) เคยทะลุแผงที่ติดบนสุด (crit-build-1030 คำอธิบายคริยาว) */
html body #windows .win[data-win="status"] .st-explain .st-ex-hint { color: #5d7a70; }
html body #windows .win[data-win="status"] .st-explain .st-ex-k { color: #245d60; font-size: 14px; }
html body #windows .win[data-win="status"] .st-explain .st-ex-t { flex: 1 1 200px; }
html body #windows .win[data-win="status"] .st-explain .st-ex-s { flex-basis: 100%; color: #7a6a4c; font-size: 12px; }

html body #windows .win[data-win="status"] .st-guide { margin-top: 8px; display: grid; gap: 6px; }
html body #windows .win[data-win="status"] .st-rec { padding: 6px 10px; background: #fff5dc; border: 1px solid #e8cf8f; border-radius: 9px; font-size: 13px; color: #5b4720; }
html body #windows .win[data-win="status"] .st-rec b { color: #8a5a10; }
html body #windows .win[data-win="status"] .st-learn { border: 1px solid #dfcfaf; border-radius: 9px; background: #fffdf5; padding: 0 10px; }
html body #windows .win[data-win="status"] .st-learn > summary { cursor: pointer; padding: 8px 0; color: #57452f; font-size: 13px; font-weight: 600; }
html body #windows .win[data-win="status"] .st-gloss { margin: 0 0 6px; padding: 0 0 0 16px; font-size: 12.5px; line-height: 1.5; color: #4a3d2c; }
html body #windows .win[data-win="status"] .st-gloss b { color: #245d60; }
html body #windows .win[data-win="status"] .st-learn h5 { margin: 6px 0 4px; font-size: 13px; color: #57452f; }
html body #windows .win[data-win="status"] .st-formula { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 3px 10px; margin: 0 0 8px; font-size: 12px; line-height: 1.45; }
html body #windows .win[data-win="status"] .st-formula dt { font-weight: 600; color: #245d60; }
html body #windows .win[data-win="status"] .st-formula dd { margin: 0; color: #4a3d2c; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
html body #windows .win[data-win="status"] .st-reset { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 7px 10px; background: #f4ead4; border: 1px solid #ddc9a3; border-radius: 9px; font-size: 13px; color: #5b4a35; }
html body #windows .win[data-win="status"] .st-reset > span { flex: 1 1 220px; }
html body #windows .win[data-win="status"] .st-reset .st-go-rowan { flex: none; background: #2f6f73; border: 1px solid #245d60; color: #fff; border-radius: 8px; padding: 4px 12px; font-size: 13px; }
@media (pointer: coarse), (max-width: 760px) {
  html body #windows .win[data-win="status"] .st-learn > summary { min-height: 44px; display: flex; align-items: center; }
  html body #windows .win[data-win="status"] .st-explain { font-size: 14px; }
}

/* ── ไอคอนค่าพลัง 6 ค่า (assets/ui/stats/*.webp · 57 · 7 ต.ค.) ── */
html body #windows .win[data-win="status"] .st-ico { width: 20px; height: 20px; object-fit: contain; vertical-align: -5px; margin-right: 4px; flex: none; }
html body #windows .win[data-win="status"] .st-explain .st-ex-k .st-ico { width: 22px; height: 22px; }

/* ── มือถือแนวนอน: แถวค่าพลังเคยถูกดันจนมองไม่เห็นใต้ "แต้มที่แจกได้" (57) ──
   แถบเลเวลสองแถวเรียงข้างกัน · คำใบ้เตี้ยลง · แถวท้ายบรรทัดเดียว → ค่าพลังขึ้นมาเห็นโดยไม่ต้องเลื่อน */
html.touch-ui.land body #windows .win[data-win="status"] .st-lvs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; padding: 4px 8px; margin-bottom: 6px; }
html.touch-ui.land body #windows .win[data-win="status"] .st-lv { grid-template-columns: auto minmax(24px, 1fr) auto; gap: 6px; font-size: 12px; }
html.touch-ui.land body #windows .win[data-win="status"] .st-lv > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
html.touch-ui.land body #windows .win[data-win="status"] .st-explain { min-height: 0; padding: 4px 10px; margin-bottom: 6px; font-size: 13px; }
html.touch-ui.land body #windows .win[data-win="status"] .st-points { margin-bottom: 6px; padding: 4px 9px; }
html.touch-ui.land body #windows .win[data-win="status"] .status-service-footer { display: flex !important; flex-wrap: nowrap; align-items: center; gap: 8px; }
html.touch-ui.land body #windows .win[data-win="status"] .status-service-footer > .small { flex: 1 1 auto; min-width: 0; font-size: 12px; }
html.touch-ui.land body #windows .win[data-win="status"] .stat-presets { width: auto; display: flex !important; align-items: center; gap: 6px; flex: none; }
html.touch-ui.land body #windows .win[data-win="status"] .stat-preset-label { font-size: 12px; white-space: nowrap; }

/* info-tags-1108: การ์ดที่เปิดอยู่แตะเพื่อปิดได้ · จอเตี้ย (มือถือแนวนอน) จำกัดสูง ไม่ให้บังเกินครึ่งหน้าต่าง — เกินเลื่อนในการ์ด */
html body #windows .win[data-win="status"] .st-explain.on { cursor: pointer; padding-right: 26px; }
html body #windows .win[data-win="status"] .st-explain.on::after { content: '✕'; position: absolute; top: 4px; right: 8px; color: #5d7a70; font-size: var(--fs-xs, 12px); }
@media (max-height: 460px) { html body #windows .win[data-win="status"] .st-explain.on { max-height: 42vh; overflow-y: auto; padding-right: 24px; } }
html.touch-ui.land body #windows .win[data-win="status"] .st-explain.on { padding-right: 26px; }   /* ✕ ไม่ทับตัวหนังสือ (ชนะกฎ land ด้านบน) */
