/* ============================================================
   GWM V2 — Guild War Manager
   Copyright (c) 2026 xvorzx-byte (凌阳 LingYang)
   PHOENIX GUILD — Sword of Justice, TD server
   All rights reserved.

   ไฟล์นี้เปิดอ่านได้เพราะเบราว์เซอร์ต้องโหลดไปรัน
   ไม่ใช่การอนุญาตให้ทำซ้ำ ดัดแปลง หรือนำไปใช้ต่อ
   Unauthorized copying, modification, or redistribution
   of this file, via any medium, is strictly prohibited.

   src: css/honor.css
   ============================================================ */
/* ============================================================
   HN-1 (2026-10-23) หอเกียรติยศอาชีพ — js/honor.js
   HN-3 (2026-10-29) วงเวท + ละอองแสง + เอฟเฟกต์จากไฟล์ (assets/honor/fx/)
   HN-4 (2026-10-29) ไซด์บาร์ ทำเนียบซีซันก่อน / ภาพรวม
   HN-5 (2026-10-30) กดดูข้อมูลสมาชิกในไซด์บาร์ขวา
   เวทีออกแบบที่ 1200×640 แล้ว scale ตามความกว้าง (.hn-stage-wrap)
   โทนมืดคงที่ทุกธีม (เป็นงานภาพแบบเดียวกับการ์ด WAR MVP)
   ============================================================ */

/* HN-1b: ไม่ขยายเกินขนาดออกแบบ และให้เวทีพอดีความสูงจอ
   หัวข้อ เวที และรายชื่อ กว้างเท่ากันและอยู่กลาง */
.hn-page { --hn-w: min(1200px, calc((100vh - 260px) * 1.8028));   /* 1280/710 (HN-2 รวมกรอบ) */
  width: 100%; max-width: calc(var(--hn-w) + 600px); margin: 0 auto; padding: 4px 0 24px; }
/* HN-4: เนื้อหาหลักกว้างเท่าเดิม · ไซด์บาร์ 2 ข้างเมื่อกว้างพอ (.hn-wide ตั้งจาก JS) ไม่พอ = อยู่ใต้รายชื่อ */
.hn-main { position: relative; width: 100%; max-width: var(--hn-w); margin: 0 auto; display: flex; flex-direction: column; gap: 14px; grid-area: main; min-width: 0; }
.hn-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "main main" "l r"; gap: 24px 20px; }
.hn-shell.hn-wide { grid-template-columns: 260px minmax(0, var(--hn-w)) 260px; grid-template-areas: "l main r"; column-gap: 40px; justify-content: center; }
.hn-side-l { grid-area: l; } .hn-side-r { grid-area: r; }
.hn-side { align-self: start; box-sizing: border-box; padding: 14px 14px 16px; border-radius: 4px; color: #f2efe9;
  background: linear-gradient(180deg, rgba(42,28,17,.94), rgba(18,12,8,.94)); border: 1px solid rgba(201,163,90,.5);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.55), inset 0 1px 0 rgba(243,217,166,.18), 0 10px 28px rgba(0,0,0,.45);
  display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hn-side-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-bottom: 9px;
  background: linear-gradient(90deg, rgba(201,163,90,0), rgba(201,163,90,.7), rgba(201,163,90,0)) bottom / 100% 1px no-repeat; }
.hn-side-tt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hn-side-title { font-size: 17px; font-weight: 800; color: #f3d9a6; }
.hn-side-sub { font-size: 12px; color: #b9ae9e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hn-side-zh { font-family: 'Ma Shan Zheng', 'Zhi Mang Xing', serif; font-size: 22px; color: #c9a35a; line-height: 1; flex: none; }
.hn-side-note, .hn-side-empty { margin: 0; font-size: 11px; color: #8f8576; }
.hn-side-empty { font-size: 13px; padding: 6px 2px; }
.hn-prev-list { display: flex; flex-direction: column; gap: 2px; }
.hn-prev-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px; margin: 0; border: 0; border-radius: 4px;
  background: transparent; color: inherit; font: inherit; cursor: pointer; text-align: left; transition: background .15s; }
.hn-prev-row:hover { background: rgba(243,217,166,.06); }
.hn-prev-row.on { background: var(--tc-a14); box-shadow: inset 2px 0 0 var(--tc); }
.hn-prev-row:focus-visible { outline: 2px solid #f3d9a6; outline-offset: 1px; }
.hn-prev-ico { width: 28px; height: 28px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1.5px var(--tc-a80); }
.hn-prev-txt { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hn-prev-name { font-size: 14px; font-weight: 600; color: #f2efe9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hn-prev-cls { font-family: 'EB Garamond', 'Cormorant Garamond', 'Noto Sans Thai', serif; font-size: 12.5px; font-weight: 700; letter-spacing: .05em; color: var(--tc); }
.hn-prev-score { font-family: 'EB Garamond', 'Cormorant Garamond', 'Noto Sans Thai', serif; font-size: 19px; font-weight: 800; flex: none; }
.hn-ov-list { display: flex; flex-direction: column; }
.hn-ov-item { display: flex; align-items: center; gap: 12px; padding: 8px 2px; border-bottom: 1px dashed rgba(243,217,166,.14); }
.hn-ov-item:last-child { border-bottom: 0; }
.hn-ov-ico { width: 40px; height: 40px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #f3d9a6;
  background: radial-gradient(circle, rgba(201,163,90,.22), rgba(201,163,90,.04)); box-shadow: inset 0 0 0 1px rgba(201,163,90,.55); }
.hn-ov-txt { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hn-ov-label { font-size: 12px; color: #c9c2b6; }
.hn-ov-value { font-family: 'EB Garamond', 'Cormorant Garamond', 'Noto Sans Thai', serif; font-size: 24px; font-weight: 800; line-height: 1.05; color: #e8c983; }
.hn-ov-sub { font-size: 12px; color: #b9ae9e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* HN-5 กดดูข้อมูลสมาชิก — ตัวละครกลาง/ชื่อ/แถวรายชื่อกดได้ · การ์ดในไซด์บาร์ขวา */
.hn-hero-fig[data-hn-person], .hn-name[data-hn-person] { pointer-events: auto; cursor: pointer; }
.hn-name[data-hn-person]:hover { text-decoration: underline; text-decoration-color: var(--hc); text-underline-offset: 4px; }
.hn-row[data-hn-person] { cursor: pointer; border-radius: 4px; transition: background .15s; }
.hn-row[data-hn-person]:hover { background: color-mix(in oklch, var(--hc) 8%, transparent); }
.hn-row.sel { background: color-mix(in oklch, var(--hc) 16%, transparent); box-shadow: inset 2px 0 0 var(--hc); }
.hn-row:focus-visible { outline: 2px solid #f3d9a6; outline-offset: -2px; }
.hn-p { display: flex; flex-direction: column; gap: 10px; }
.hn-p-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hn-p-ico { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--tc); flex: none; }
.hn-p-score { font-family: 'EB Garamond', 'Cormorant Garamond', 'Noto Sans Thai', serif; font-size: 30px; font-weight: 800; line-height: 1; }
.hn-p-rank { font-size: 12px; color: #c9c2b6; flex: 1 1 100%; }
.hn-p-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: #c9c2b6; }
.hn-p-wars.thin { color: #f0a43a; }
.hn-p-note { font-size: 12.5px; color: #f3d9a6; padding: 6px 8px; border-radius: 4px; background: rgba(201,163,90,.1); box-shadow: inset 2px 0 0 #c9a35a; }
.hn-p-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 6px; padding: 8px 0; border-top: 1px dashed rgba(243,217,166,.16); border-bottom: 1px dashed rgba(243,217,166,.16); }
.hn-p-stat { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; text-align: center; }
.hn-p-v { font-family: 'Geist Mono', ui-monospace, 'Noto Sans Thai', monospace; font-size: 13px; font-weight: 700; color: #e8c983; white-space: nowrap; }
.hn-p-v.bad { color: var(--absent, #ef6b6b); }
.hn-p-l { font-size: 10px; color: #b9ae9e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.hn-p-sec { font-size: 12px; font-weight: 700; color: #f3d9a6; }
.hn-p-best { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: baseline; }
.hn-p-best-l { font-size: 12px; color: #c9c2b6; }
.hn-p-best-v { font-family: 'EB Garamond', 'Cormorant Garamond', 'Noto Sans Thai', serif; font-size: 20px; font-weight: 800; color: #e8c983; text-align: right; }
.hn-p-best-w { grid-column: 1 / -1; font-size: 12px; color: #b9ae9e; line-height: 1.35; overflow-wrap: anywhere; }
.hn-p-back { align-self: flex-start; }

/* HN-4b ลวดลายกรอบไซด์บาร์ — ชายคางอนด้านบน (ชุดเดียวกับศาลา) + มุมทอง 4 มุม + ขอบล่างทอง */
.hn-side { position: relative; margin-top: 12px; border-bottom-color: rgba(201,163,90,.75);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.55), inset 0 1px 0 rgba(243,217,166,.18), inset 0 -2px 0 rgba(201,163,90,.25), 0 10px 28px rgba(0,0,0,.45); }
.hn-shell.hn-wide .hn-side { margin-top: calc(var(--hn-side-top, 0px) + 12px); }
.hn-side::before { content: ''; position: absolute; left: -10px; right: -10px; top: -13px; height: 20px; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Cpath d='M30 11C18 11 9 9 3 1L0 2.5L1.5 5C7 14 16 17 30 17Z' fill='%232a1c11' stroke='%23c9a35a' stroke-width='1'/%3E%3Cpath d='M30 11C18 11 9 9 3 1' fill='none' stroke='%23f3d9a6' stroke-width='1.2'/%3E%3Cpath d='M0.5 0.5L4 -1L5.5 2.5L2 4Z' fill='%23c9a35a'/%3E%3C/svg%3E") left top / 30px 20px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Cg transform='translate(30 0) scale(-1 1)'%3E%3Cpath d='M30 11C18 11 9 9 3 1L0 2.5L1.5 5C7 14 16 17 30 17Z' fill='%232a1c11' stroke='%23c9a35a' stroke-width='1'/%3E%3Cpath d='M30 11C18 11 9 9 3 1' fill='none' stroke='%23f3d9a6' stroke-width='1.2'/%3E%3Cpath d='M0.5 0.5L4 -1L5.5 2.5L2 4Z' fill='%23c9a35a'/%3E%3C/g%3E%3C/svg%3E") right top / 30px 20px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12'%3E%3Cpath d='M0 6H13M27 6H40' stroke='%23c9a35a' stroke-width='1'/%3E%3Cpath d='M20 0.5L26 6L20 11.5L14 6Z' fill='%23140d08' stroke='%23c9a35a' stroke-width='1'/%3E%3Cpath d='M20 3.5L22.5 6L20 8.5L17.5 6Z' fill='%23f3d9a6'/%3E%3C/svg%3E") center 7px / 40px 12px no-repeat,
    linear-gradient(180deg, #f3d9a6 0, #f3d9a6 1px, #2a1c11 1px, #140d08 100%) 30px 11px / calc(100% - 60px) 6px no-repeat; }
.hn-side::after { content: ''; position: absolute; inset: 5px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cg transform='translate(0 0)' fill='none' stroke='%23c9a35a'%3E%3Cpath d='M1 21V7Q1 1 7 1H21' stroke-width='1.4'/%3E%3Cpath d='M5 21V9Q5 5 9 5H21' stroke-width='.7' opacity='.7'/%3E%3Ccircle cx='5' cy='5' r='1.6' fill='%23f3d9a6' stroke='none'/%3E%3C/g%3E%3C/svg%3E") left top / 22px 22px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cg transform='translate(22 0) scale(-1 1)' fill='none' stroke='%23c9a35a'%3E%3Cpath d='M1 21V7Q1 1 7 1H21' stroke-width='1.4'/%3E%3Cpath d='M5 21V9Q5 5 9 5H21' stroke-width='.7' opacity='.7'/%3E%3Ccircle cx='5' cy='5' r='1.6' fill='%23f3d9a6' stroke='none'/%3E%3C/g%3E%3C/svg%3E") right top / 22px 22px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12'%3E%3Cpath d='M0 6H13M27 6H40' stroke='%23c9a35a' stroke-width='1'/%3E%3Cpath d='M20 0.5L26 6L20 11.5L14 6Z' fill='%23140d08' stroke='%23c9a35a' stroke-width='1'/%3E%3Cpath d='M20 3.5L22.5 6L20 8.5L17.5 6Z' fill='%23f3d9a6'/%3E%3C/svg%3E") center bottom / 40px 12px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cg transform='translate(0 22) scale(1 -1)' fill='none' stroke='%23c9a35a'%3E%3Cpath d='M1 21V7Q1 1 7 1H21' stroke-width='1.4'/%3E%3Cpath d='M5 21V9Q5 5 9 5H21' stroke-width='.7' opacity='.7'/%3E%3Ccircle cx='5' cy='5' r='1.6' fill='%23f3d9a6' stroke='none'/%3E%3C/g%3E%3C/svg%3E") left bottom / 22px 22px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cg transform='translate(22 22) scale(-1 -1)' fill='none' stroke='%23c9a35a'%3E%3Cpath d='M1 21V7Q1 1 7 1H21' stroke-width='1.4'/%3E%3Cpath d='M5 21V9Q5 5 9 5H21' stroke-width='.7' opacity='.7'/%3E%3Ccircle cx='5' cy='5' r='1.6' fill='%23f3d9a6' stroke='none'/%3E%3C/g%3E%3C/svg%3E") right bottom / 22px 22px no-repeat; }

.hn-loading { padding: 40px; text-align: center; color: var(--fg-3); }

.hn-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hn-title-row { display: flex; align-items: baseline; gap: 12px; }
.hn-title { margin: 0; font-size: 28px; font-weight: 800; line-height: 1.15; }
.hn-title-zh { font-family: 'Ma Shan Zheng', 'Zhi Mang Xing', serif; font-size: 30px; color: #b8362b; line-height: 1; }
.hn-sub { font-size: 13px; color: var(--fg-3); margin-top: 4px; }
.hn-ctrls { display: flex; align-items: flex-end; gap: 8px; }
.hn-scope-lbl { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--fg-3); }
.hn-scope { min-width: 220px; }
.hn-cap { height: 40px; display: inline-flex; align-items: center; gap: 6px; }
.hn-mute { width: 40px; height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }

/* ── เวที ─────────────────────────────────────────────────── */
.hn-stage-wrap {
  position: relative; width: 100%; aspect-ratio: 1280 / 710; isolation: isolate;
}
/* ผืน 1280×710 = กรอบศาลา (SVG) + เวที 1200×640 ที่ (40,70) · scale ทั้งผืนตามความกว้าง */
.hn-stage { position: absolute; left: 0; top: 0; width: 1280px; height: 710px; transform-origin: 0 0; }
.hn-frame { position: absolute; left: 0; top: -4px; z-index: 6; pointer-events: none; overflow: visible; }
.hn-stage-in {
  position: absolute; left: 40px; top: 70px; width: 1200px; height: 640px; overflow: hidden;
  color: #f2efe9;
  background:
    radial-gradient(40% 38% at 50% 34%, var(--hc-a20, rgba(243,217,166,.2)) 0%, rgba(14,12,10,0) 70%),
    radial-gradient(70% 30% at 50% 0%, rgba(122,90,46,.22) 0%, rgba(14,12,10,0) 70%),
    linear-gradient(180deg, #1a1510 0%, #0e0c0a 60%);
}
/* HN-6 พื้นหลังประจำอาชีพ — ชั้นล่างสุด · ทับด้วยไล่สีดำ: กลาง (วงเวท/ตัวละคร) มืดกว่าขอบ · ล่าง (แถบสถิติ) มืดสุด */
.hn-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; animation: hnBgIn .6s ease-out both; }
.hn-bg img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hn-bg::after { content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(38% 52% at 50% 42%, rgba(14,12,10,.62) 0%, rgba(14,12,10,.38) 60%, rgba(14,12,10,0) 100%),
    linear-gradient(180deg, rgba(14,12,10,.45) 0%, rgba(14,12,10,.25) 30%, rgba(14,12,10,.45) 65%, rgba(14,12,10,.92) 100%); }
@keyframes hnBgIn { from { opacity: 0; } to { opacity: 1; } }
.hn-tile-fig { transform-origin: 50% 100%; }   /* HN-6 TILE_FIG_SCALE ขยายจากเท้า */
.hn-floor {
  position: absolute; left: 240px; right: 240px; bottom: 70px; height: 120px; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, var(--hc-a32, rgba(243,217,166,.32)), rgba(14,12,10,0) 70%);
}
.hn-bigchar {
  position: absolute; left: 0; right: 0; top: 10px; text-align: center; pointer-events: none; user-select: none;
  font-family: 'Ma Shan Zheng', 'Zhi Mang Xing', serif; font-size: 400px; line-height: 1; white-space: nowrap;
  color: var(--hc); opacity: .10;
}
.hn-fx { position: absolute; inset: 0; pointer-events: none; }
.hn-fx-back  { z-index: 0; }
.hn-fx-front { z-index: 4; }

/* HN-3 วงเวทอักษรรูนหลังตัวละคร (สีอาชีพ) — หมุนช้า วงเส้นหมุนสวน · เข้าใหม่ทุกครั้งที่วาด */
.hn-rune { position: absolute; left: 320px; top: 22px; width: 560px; height: 560px; z-index: 0; pointer-events: none;
  color: var(--hc); filter: drop-shadow(0 0 4px var(--hc-a90)) drop-shadow(0 0 16px var(--hc-a55)); animation: hnRunePulse 4s ease-in-out infinite; }
.hn-rune-in { position: absolute; inset: 0; animation: hnRuneIn .9s cubic-bezier(.2,.8,.2,1) both; }
.hn-rune-glyph { position: absolute; inset: 0; background: var(--hc);
  -webkit-mask: url(../assets/honor/fx/rune.webp) center / contain no-repeat; mask: url(../assets/honor/fx/rune.webp) center / contain no-repeat;
  animation: hnRuneSpin 120s linear infinite; }
.hn-rune-rings { position: absolute; inset: 0; overflow: visible; animation: hnRuneSpinR 180s linear infinite; }
.hn-gfx img { max-width: none; will-change: transform, opacity; }

/* ไทล์อาชีพ (เงา) */
.hn-tile {
  position: absolute; z-index: 2; padding: 0; margin: 0; border: 0; background: none; cursor: pointer;
  color: inherit; font: inherit; transform-origin: 50% 100%;
}
.hn-tile-fig {
  position: absolute; left: -18px; top: 0; width: 140px; height: 248px; object-fit: contain; object-position: 50% 100%;
  filter: brightness(.12) sepia(.6) saturate(.5) drop-shadow(0 0 1px rgba(243,217,166,.28));   /* HN-4c มืดลงจาก .24 */
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  transition: filter .25s;
}
.hn-tile:hover .hn-tile-fig { filter: brightness(.32) sepia(.5) saturate(.7) drop-shadow(0 0 4px var(--tc-a45)); }
.hn-tile.on .hn-tile-fig { filter: brightness(.55) sepia(.3) drop-shadow(0 0 10px var(--tc-a90)); }
.hn-tile:focus-visible { outline: 2px solid #f3d9a6; outline-offset: 4px; border-radius: 6px; }
.hn-tile-cap { position: absolute; left: -10px; right: -10px; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.hn-tile-cls { display: flex; align-items: center; gap: 6px; }
.hn-tile-cls img { width: 22px; height: 22px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1.5px var(--tc-a45); }
.hn-tile-cls b { font-family: 'EB Garamond', 'Cormorant Garamond', 'Noto Sans Thai', serif; font-size: 15px; font-weight: 700; letter-spacing: .06em; color: #a39886; }
.hn-tile-top { font-size: 13px; font-weight: 600; color: #8f8576; max-width: 112px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hn-tile.on .hn-tile-cls img { box-shadow: 0 0 0 1.5px var(--tc); }
.hn-tile.on .hn-tile-cls b { color: var(--tc); }
.hn-tile.on .hn-tile-top { color: #fbf3e6; }

/* ตัวละครอันดับหนึ่ง */
.hn-hero { position: absolute; left: 380px; top: 0; width: 440px; height: 640px; z-index: 1; pointer-events: none; }   /* HN-3: 1 = ใต้ชั้น .hn-gfx-over (DOM หลัง) และใต้ไทล์ */
.hn-hero-fig {
  position: absolute; left: 0; top: 0; width: 440px; height: 560px; object-fit: contain; object-position: 50% 100%;
  filter: drop-shadow(0 0 28px var(--hc-a35, rgba(243,217,166,.35)));
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 98%); mask-image: linear-gradient(180deg, #000 72%, transparent 98%);
}
/* fallback = ภาพ mvp แนวนอนของ art-store → ครอบตัด + จางขอบ */
.hn-fig-art { object-fit: cover !important; object-position: 50% 20% !important;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 45%, #000 50%, transparent 100%) !important;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 45%, #000 50%, transparent 100%) !important; }
.hn-medal-pos { position: absolute; right: -10px; top: 18px; }
.hn-info { position: absolute; left: 30px; right: 30px; bottom: 0; display: flex; flex-direction: column; gap: 8px; }
.hn-info-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.hn-info-l { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hn-name { font-size: 26px; font-weight: 700; line-height: 1.15; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.95); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hn-cls { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--hc); text-shadow: 0 1px 3px rgba(0,0,0,.9); }
.hn-cls img { width: 22px; height: 22px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px var(--hc); }
.hn-duty { margin-left: 0; }
.hn-wars { font-size: 12.5px; color: rgba(255,255,255,.75); text-shadow: 0 1px 3px rgba(0,0,0,.9); white-space: nowrap; flex: none; }
.hn-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px 0 2px;
  border-top: 1px solid rgba(255,255,255,.15); background: linear-gradient(180deg, transparent, rgba(0,0,0,.35));
}
.hn-stat { display: flex; flex-direction: column; align-items: center; gap: 1px; text-align: center; }
.hn-stat-v { font-family: 'Geist Mono', ui-monospace, 'Noto Sans Thai', monospace; font-size: 14px; font-weight: 700; color: var(--gold, #e8c983); text-shadow: 0 1px 4px rgba(0,0,0,.95); }
.hn-stat-v.bad { color: var(--absent, #ef6b6b); }
.hn-stat-l { font-size: 9px; letter-spacing: .1em; color: rgba(255,255,255,.7); text-shadow: 0 1px 2px rgba(0,0,0,.85); }
.hn-unq { font-size: 11.5px; color: #f0a43a; text-align: center; }

/* entrance — เล่นเฉพาะตอนกดเปลี่ยนอาชีพ (.hn-anim) · DOM ใหม่ทุกครั้ง animation จึงเริ่มใหม่เอง */
.hn-page.hn-anim .hn-hero-fig   { animation: hnHero .55s cubic-bezier(.2,.8,.2,1) both; }
.hn-page.hn-anim .hn-bigchar    { animation: hnChar .7s cubic-bezier(.2,.8,.2,1) both; }
.hn-page.hn-anim .hn-medal-pos  { animation: hnFade .45s .22s cubic-bezier(.2,.8,.2,1) both; }
.hn-page.hn-anim .hn-info       { animation: hnFade .45s .14s cubic-bezier(.2,.8,.2,1) both; }
.hn-page.hn-anim .hn-grid { animation: hnFade .4s .2s ease-out both; }
.hn-fx span { will-change: transform, opacity; }

/* ── รายชื่อ ───────────────────────────────────────────────── */
.hn-list { display: flex; flex-direction: column; gap: 10px; padding-top: 12px;
  background: linear-gradient(90deg, rgba(243,217,166,0), rgba(243,217,166,.35), rgba(243,217,166,0)) top / 100% 1px no-repeat; }
.hn-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hn-list-title { font-family: 'EB Garamond', 'Cormorant Garamond', 'Noto Sans Thai', serif; font-size: 26px; font-weight: 800; color: var(--hc); margin-right: 10px; }
.hn-list-count { font-size: 14px; color: var(--fg-2); }
.hn-list-note { font-size: 12px; color: var(--fg-3); }
.hn-grid { display: grid; grid-auto-flow: column; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.hn-row { display: flex; align-items: center; gap: 10px; height: 34px; border-bottom: 1px dashed color-mix(in oklch, var(--fg-3) 30%, transparent); }
.hn-rank { width: 26px; text-align: center; font-family: 'EB Garamond', 'Cormorant Garamond', 'Noto Sans Thai', serif; font-size: 17px; font-weight: 800; color: var(--fg-3); flex: none; }
.hn-rname { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 8px; }
.hn-rn { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hn-rwars { width: 52px; text-align: right; font-size: 13px; color: var(--fg-3); flex: none; }
.hn-rwars.thin { color: #f0a43a; }
.hn-bar { width: 110px; height: 6px; border-radius: 3px; background: color-mix(in oklch, var(--fg-3) 18%, transparent); position: relative; flex: none; }
.hn-bar > span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; }
.hn-rscore { width: 34px; text-align: right; font-family: 'EB Garamond', 'Cormorant Garamond', 'Noto Sans Thai', serif; font-size: 19px; font-weight: 800; flex: none; }
.hn-empty { color: var(--fg-3); font-size: 13px; margin: 6px 0; }

@media (max-width: 760px) {
  .hn-shell:not(.hn-wide) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "l" "r"; }
  .hn-grid { grid-auto-flow: row; grid-template-columns: 1fr; grid-template-rows: none !important; }
  .hn-bar { width: 60px; }
  .hn-title { font-size: 22px; }
}

/* ── keyframes ─────────────────────────────────────────────── */
@keyframes hnHero  { from { opacity: 0; transform: translateY(26px) scale(.965); filter: blur(6px) brightness(1.6); } to { opacity: 1; transform: none; } }
@keyframes hnFade  { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes hnChar  { from { opacity: 0; transform: scale(1.08); letter-spacing: .12em; } to { opacity: .10; transform: none; letter-spacing: 0; } }
@keyframes hnFlash { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hnMist  { 0% { opacity: 0; transform: translateY(30px) scale(.9); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-24px) scale(1.15); } }
@keyframes hnShard { 0% { opacity: 0; transform: rotate(var(--rot)) scale(.3); } 12% { opacity: 1; transform: rotate(var(--rot)) scale(1.1); } 30% { opacity: .45; } 45% { opacity: 1; } 62% { opacity: .6; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(.5); } }
@keyframes hnRise  { 0% { opacity: 0; transform: translate(0, 0); } 12% { opacity: 1; } 70% { opacity: .85; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.3); } }
@keyframes hnThrust { 0% { opacity: 0; transform: rotate(var(--rot)) translateX(-420px) scaleX(.15); } 25% { opacity: 1; transform: rotate(var(--rot)) translateX(0) scaleX(1); } 60% { opacity: .9; } 100% { opacity: 0; transform: rotate(var(--rot)) translateX(90px) scaleX(1.05); } }
@keyframes hnCut   { 0% { opacity: 1; clip-path: inset(0 100% 0 0); transform: rotate(var(--rot)) scaleY(1.6); } 28% { opacity: 1; clip-path: inset(0 0 0 0); transform: rotate(var(--rot)) scaleY(1); } 55% { opacity: 1; clip-path: inset(0 0 0 0); transform: rotate(var(--rot)) scaleY(.8); } 100% { opacity: 0; clip-path: inset(0 0 0 0); transform: rotate(var(--rot)) scaleY(.2); } }
@keyframes hnSlash { 0% { opacity: 0; transform: rotate(var(--t)) scaleY(var(--k)) rotate(var(--a0)); } 20% { opacity: 1; } 65% { opacity: .9; } 100% { opacity: 0; transform: rotate(var(--t)) scaleY(var(--k)) rotate(var(--a1)); } }
@keyframes hnPluck { 0% { opacity: 0; transform: rotate(var(--rot)) scaleX(.4); } 12% { opacity: 1; transform: rotate(var(--rot)) translateY(-2px); } 20% { transform: rotate(var(--rot)) translateY(2px); } 28% { transform: rotate(var(--rot)) translateY(-1.5px); } 36% { transform: rotate(var(--rot)) translateY(1.5px); } 46% { transform: rotate(var(--rot)) translateY(-1px); } 56% { opacity: .9; transform: rotate(var(--rot)) translateY(.6px); } 100% { opacity: 0; transform: rotate(var(--rot)); } }
@keyframes hnRingQ { 0% { opacity: 0; transform: rotate(var(--rot)) scale(.4); } 20% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--rot)) scale(2.6); } }
@keyframes hnSpark { 0% { opacity: 0; transform: scale(0) rotate(0deg); } 30% { opacity: 1; transform: scale(var(--s)) rotate(45deg); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.1) rotate(120deg); } }
@keyframes hnPop   { 0% { opacity: 0; transform: scale(.2); } 18% { opacity: 1; transform: scale(1.15); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes hnHaze  { 0% { opacity: 0; transform: translate(0, 0) scale(.25); } 10% { opacity: 1; transform: translate(calc(var(--dx) * .45), calc(var(--dy) * .45)) scale(1); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.9); } }
@keyframes hnBurst { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 10% { opacity: 1; transform: translate(0, 0) scale(1.2); } 80% { opacity: .8; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.3); } }
@keyframes hnBurstSlow { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 8% { opacity: 1; transform: translate(calc(var(--dx) * .55), calc(var(--dy) * .55)) scale(1.1); } 100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) - 30px)) scale(.5); } }
@keyframes hnFly   { 0% { opacity: 0; transform: translate(0, 0) scaleX(1) scale(.3); } 12% { opacity: 1; transform: translate(calc(var(--dx) * .12), calc(var(--dy) * .12)) scaleX(.3) scale(.8); } 25% { transform: translate(calc(var(--dx) * .25), calc(var(--dy) * .25)) scaleX(1) scale(1); } 40% { transform: translate(calc(var(--dx) * .42), calc(var(--dy) * .42)) scaleX(.3); } 55% { transform: translate(calc(var(--dx) * .58), calc(var(--dy) * .58)) scaleX(1); } 70% { opacity: .9; transform: translate(calc(var(--dx) * .74), calc(var(--dy) * .74)) scaleX(.3); } 85% { transform: translate(calc(var(--dx) * .88), calc(var(--dy) * .88)) scaleX(1); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scaleX(.4); } }
@keyframes hnBolt  { 0% { opacity: 0; transform: rotate(var(--rot)); } 8% { opacity: 1; } 20% { opacity: .15; } 32% { opacity: 1; } 48% { opacity: .3; } 60% { opacity: .9; } 100% { opacity: 0; transform: rotate(var(--rot)); } }

/* HN-3 เอฟเฟกต์จากไฟล์ / วงเวท / ละอองแสง */
@keyframes hnRuneSpin  { to { transform: rotate(360deg); } }
@keyframes hnRuneSpinR { to { transform: rotate(-360deg); } }
@keyframes hnRunePulse { 0%, 100% { opacity: .5; } 50% { opacity: .75; } }
@keyframes hnRuneIn    { from { opacity: 0; transform: scale(.6) rotate(-40deg); } to { opacity: 1; transform: none; } }
@keyframes hnAmbFloat  { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: var(--o); } 85% { opacity: var(--o); } 100% { opacity: 0; transform: translate(var(--dx), -140px); } }
@keyframes hnAmbTwinkle { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.8); } }
@keyframes hnFieldDrift { to { background-position: 0 -705px; } }
@keyframes hnFieldTw   { 0%, 100% { opacity: .22; } 50% { opacity: .4; } }
@keyframes hnOrbPop    { 0% { opacity: 0; transform: scale(.15) rotate(-30deg); } 14% { opacity: 1; transform: scale(1.05) rotate(0deg); } 100% { opacity: 0; transform: scale(1.7) rotate(25deg); } }
@keyframes hnOrbIdle   { 0% { transform: rotate(0deg) scale(1); opacity: .32; } 50% { transform: rotate(180deg) scale(1.06); opacity: .48; } 100% { transform: rotate(360deg) scale(1); opacity: .32; } }
@keyframes hnRipPop    { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--rd)) scale(.25, .1); } 18% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--rd)) scale(1.6, .68); } }
@keyframes hnRipIdle   { 0%, 100% { opacity: .6; } 50% { opacity: .9; } }
@keyframes hnSlStreak  { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--r)) scale(var(--sx), .05); } 22% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--r)) scale(var(--sx), 1.08); } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--r)) scale(calc(var(--sx) * .55), 1.25); } }
@keyframes hnSlArc     { 0% { opacity: 0; clip-path: inset(0 0 100% 0); } 30% { opacity: 1; clip-path: inset(0 0 0 0); } 60% { opacity: .9; } 100% { opacity: 0; clip-path: inset(0 0 0 0); } }
@keyframes hnSlRing    { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--r)) scale(.2); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(calc(var(--r) + 170deg)) scale(1.55); } }
@keyframes hnSlIdle    { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--r)) scale(var(--sx), .05); } 2.5% { opacity: .75; transform: translate(-50%, -50%) rotate(var(--r)) scale(var(--sx), 1.05); } 8% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--r)) scale(calc(var(--sx) * .5), 1.2); } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--r)) scale(calc(var(--sx) * .5), 1.2); } }
@keyframes hnZapBolt   { 0% { opacity: 0; } 6% { opacity: 1; } 14% { opacity: .25; } 22% { opacity: 1; } 34% { opacity: .5; } 100% { opacity: 0; } }
@keyframes hnZapRing   { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.35); } 20% { opacity: 1; } 55% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1); } }
@keyframes hnZapStrike { 0% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hnZapIdle   { 0% { opacity: 0; } 1.5% { opacity: .7; } 3% { opacity: .15; } 4.5% { opacity: .6; } 9% { opacity: 0; } 100% { opacity: 0; } }
@keyframes hnZapAura   { 0%, 100% { opacity: .45; } 50% { opacity: .75; } }
@keyframes hnPzMistL   { 0% { transform: translate(0, 0) scale(1) rotate(0deg); } 100% { transform: translate(-30px, -14px) scale(1.12) rotate(-8deg); } }
@keyframes hnPzMistR   { 0% { transform: translate(0, 0) scale(1.05) rotate(0deg); } 100% { transform: translate(34px, -10px) scale(.95) rotate(7deg); } }
@keyframes hnPzSpore   { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: .55; transform: translateY(-12px); } }
@keyframes hnPzSwell   { 0% { opacity: .15; transform: scale(.82); } 35% { opacity: 1; transform: scale(1.03); } 100% { opacity: 1; transform: scale(1); } }
@keyframes hnHealIn    { 0% { opacity: 0; transform: scale(.6, .3); } 100% { opacity: .9; transform: scale(1); } }
@keyframes hnHealBreath { 0%, 100% { opacity: .9; } 50% { opacity: .65; } }
@keyframes hnGfxLife   { 0% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; } }
/* Mystech: มีดสาดออกจากศูนย์กลาง (เล่นครั้งเดียว) + มีดบินหมุนช้า ๆ ระหว่างรอ */
@keyframes hnMstBurst  { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--r)) scale(.2); } 14% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--r)) scale(1.45); } }
@keyframes hnMstSpin   { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .hn-stage-in *, .hn-list * { animation: none !important; transition: none !important; }
  .hn-fx { display: none; }
  .hn-gfx:not(.hn-rune) { display: none; }   /* HN-3: ไฟล์ภาพเคลื่อนไหวหยุดด้วย CSS ไม่ได้ → ซ่อน · วงเวทนิ่ง */
}

/* ref-77fed4a1f2 */
