/* gui16.css — รอบ 16 GUI "ไล่เฉดสีแบบ fft" (พี่สั่ง 2569-11-05) · สกินหน้าจอเสริม ow2 ตาม Figma A–E + F1/F2
   ดู _ow2/GUI-SPEC.md §2.2–2.12 · โหลดหลัง ow2.css · ทุกตัวเลือกขึ้นต้นด้วย "html " ชนะ <style> ที่โมดูลฉีดตอนรันไทม์
   กติกา: ไล่เฉดแนวตั้งเฉพาะหน้าต่าง/ปุ่มเกม (หน้าครูยังพื้นเรียบ) · เงาตัน blur 0 เท่านั้น ไม่มี filter/backdrop-filter
   · ตัวหนังสือ ≥ 4.5:1 กับทุกจุดสีของ gradient (§1.6) · เป้ากด ≥ 44 px (ปุ่มในกล่อง ≥ 48) · ลดการเคลื่อนไหว = ภาพนิ่ง
   · ไม่แตะเรขาคณิต (ตำแหน่ง/ขนาด) ยกเว้นข้อที่ spec เขียนว่า "size" · ใช้ var(--g16-*) ของ fft.css มีค่าสำรองเสมอ */

/* == ชื่อเล่นโทเคน (สำรองเมื่อ fft.css ยังไม่มี --g16-*) == */
html {
  --b2-win: var(--g16-win, linear-gradient(180deg, #294a9f 0%, #1a3378 45%, #0c1a48 100%));
  --b2-screen: var(--g16-screen, linear-gradient(180deg, #13245a 0%, #070f2e 100%));
  --b2-well: var(--g16-well, #0f1d4a);
  --b2-row: var(--g16-row, linear-gradient(180deg, #3f64b8 0%, #2a4a9e 100%));
  --b2-row-line: var(--g16-row-line, #9fb8f0);
  --b2-red: var(--g16-red, linear-gradient(180deg, #d13a30 0%, #c4302a 50%, #8e1c17 100%));
  --b2-gold: var(--g16-gold, linear-gradient(180deg, #fff0b0 0%, #e3c46a 50%, #b08a2e 100%));
  --b2-blue: var(--g16-blue, linear-gradient(180deg, #30509f 0%, #1a3378 50%, #0f2160 100%));
  --b2-ink: var(--g16-ink, #0a1230);
  --b2-rim: var(--g16-rim, #e9dfb8);
  --b2-cream: var(--g16-cream, #f6f0dc);
  --b2-sub: var(--g16-sub, #cdd3ea);
  --b2-gold-t: var(--g16-gold-t, #e3c46a);
  --b2-gold2: var(--g16-gold2, #ffe08a);
  --b2-ok: var(--g16-ok, #7fe0a6);
  --b2-bad: var(--g16-bad, #ffb3aa);
  --b2-on-gold: var(--g16-on-gold, #2a1c00);
  --b2-star: var(--g16-star, #3fbf7f);
  --b2-frame: var(--g16-frame, 0 0 0 1px #0a1230, inset 0 0 0 2px #e9dfb8, inset 0 0 0 3px #0a1230, inset 0 0 0 4px rgba(111,143,216,.9), 0 4px 0 rgba(3,7,22,.6));
  --b2-frame-sm: var(--g16-frame-sm, 0 0 0 1px #0a1230, inset 0 0 0 1px #e9dfb8, inset 0 0 0 2px #0a1230);
  --b2-btn: var(--g16-btn, 0 0 0 1px #0a1230, inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 0 rgba(0,0,0,.28), 0 3px 0 #0a1230);
  --b2-btn-down: var(--g16-btn-down, 0 0 0 1px #0a1230, inset 0 1px 0 rgba(255,255,255,.2), 0 1px 0 #0a1230);
  --b2-r-win: var(--g16-r-win, 6px);
  --b2-r-btn: var(--g16-r-btn, 4px);
  --b2-rule: var(--g16-rule, linear-gradient(90deg, rgba(227,196,106,0) 0%, #e3c46a 18%, #e3c46a 82%, rgba(227,196,106,0) 100%));
  --b2-hand: var(--ff-hand, none);
  /* สีประจำภาค (พื้นเรียบ ใช้เป็นภาพสำรองของการ์ด · ตัวหนังสือไม่วางบนสีนี้) */
  --ow2-reg-school: #3f6fb3; --ow2-reg-village: #a8743a; --ow2-reg-river: #2f7f95; --ow2-reg-viewhill: #5f8f3e;
  --ow2-reg-temple: #c98a2a; --ow2-reg-farm: #7d9a2f; --ow2-reg-friend2: #9a5a7a; --ow2-reg-transit: #6a6f80; --ow2-reg-lake: #3a8f8a;
}

/* == ส่วนกลาง: ปุ่ม 3 แบบ (ทอง = รับ/เก็บ/หลักของหน้าจอเสริม · น้ำเงิน = รอง · แดง = ภารกิจหลัก) == */
html .ow2-q-btn, html .ow2-d-btn, html .ow2-mini-b, html .ow2-j-btn, html .ow2-m-tb, html .ow2-j-x, html .ow2-j-x2, html .ow2-mini-del,
html .ow2-j-cf button, html .ow2-fan-b {
  color: var(--b2-cream); background: var(--b2-blue); border: 1px solid var(--b2-ink); border-radius: var(--b2-r-btn);
  box-shadow: var(--b2-btn); text-shadow: 1px 1px 0 var(--b2-ink); }
html .ow2-q-btn.ow2-q-pri, html .ow2-d-btn.ow2-d-pri, html .ow2-screen .ow2-g-pri, html .ow2-g-pri, html .ow2-fan-b {
  color: var(--b2-on-gold); background: var(--b2-gold); border-color: var(--b2-ink); text-shadow: none; }
/* ตกปลา/ถ่ายรูป = กิจกรรมเสริม → ทอง (แดงสงวนให้ภารกิจหลัก) */
html .ow2-mini-b.ow2-mini-pri, html .ow2-mini-shoot { color: var(--b2-on-gold); background: var(--b2-gold); border-color: var(--b2-ink); box-shadow: var(--b2-btn); text-shadow: none; }
html .ow2-mini-b.ow2-mini-pri::before, html .ow2-mini-b.ow2-mini-pri::after { background: var(--b2-ink); box-shadow: 0 0 0 1px var(--b2-gold2); }
html .ow2-mini-pri:focus-visible, html .ow2-mini-shoot:focus-visible { outline-color: var(--b2-cream); }
html .ow2-q-btn:active, html .ow2-d-btn:active, html .ow2-mini-b:active, html .ow2-j-btn:active, html .ow2-m-tb:active, html .ow2-j-x:active, html .ow2-j-x2:active,
html .ow2-fan-b:active, html .ow2-mini-shoot:active, html .ow2-j-cf button:active { transform: translateY(2px); box-shadow: var(--b2-btn-down); }
/* โฟกัส: ทอง 3 px · บนปุ่มทองเป็นครีม */
html .ow2-q-btn:focus-visible, html .ow2-d-btn:focus-visible, html .ow2-mini-b:focus-visible, html .ow2-screen button:focus-visible,
html .ow2-screen [tabindex]:focus-visible, html .ow2-fan-b:focus-visible, html .mapwrap.ow .ow2-sbtn:focus-visible, html .mapwrap.ow .ow2-act:focus-visible,
html .mapwrap.ow .ow2-tr-tg:focus-visible, html .mapwrap.ow .ow2-tr-b:focus-visible, html .mapwrap.ow .ow2-edge:focus-visible, html .ow2-mini-shoot:focus-visible,
html .ow2-mini-del:focus-visible, html .side-menu-b:focus-visible {
  outline: 3px solid var(--b2-gold-t); outline-offset: 2px; }
html .ow2-q-pri:focus-visible, html .ow2-d-pri:focus-visible, html .ow2-screen .ow2-g-pri:focus-visible, html .ow2-g-pri:focus-visible,
html .ow2-fan-b:focus-visible, html .mapwrap.ow .ow2-act:focus-visible { outline-color: var(--b2-cream); }
/* ปิดใช้: พื้นเรียบ */
html .ow2-screen button:disabled, html .ow2-q-btn:disabled, html .ow2-d-btn:disabled, html .ow2-mini-b:disabled {
  opacity: 1; color: #c3c8d8; background: #2a3354; box-shadow: var(--b2-frame-sm); text-shadow: none; }

/* เพชรสองข้างปุ่มในกล่อง (วาดด้วย CSS ไม่ใช่ตัวอักษร ชื่อปุ่มจึงไม่มี ◆) */
html .ow2-q-btn, html .ow2-d-btn, html .ow2-mini-b, html .ow2-fan-b { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
html .ow2-d-btn { justify-content: flex-start; }
html .ow2-q-btn::before, html .ow2-q-btn::after, html .ow2-d-btn.ow2-d-pri::before, html .ow2-d-btn.ow2-d-pri::after,
html .ow2-mini-b::before, html .ow2-mini-b::after, html .ow2-fan-b::before, html .ow2-fan-b::after {
  content: ""; flex: 0 0 7px; width: 7px; height: 7px; transform: rotate(45deg); background: var(--b2-gold2); box-shadow: 0 0 0 1px var(--b2-ink); }
html .ow2-q-btn.ow2-q-pri::before, html .ow2-q-btn.ow2-q-pri::after, html .ow2-d-btn.ow2-d-pri::before, html .ow2-d-btn.ow2-d-pri::after,
html .ow2-fan-b::before, html .ow2-fan-b::after { background: var(--b2-ink); box-shadow: 0 0 0 1px var(--b2-gold2); }
html .ow2-d-btn.ow2-d-pri { justify-content: center; }

/* หัวข้อในหน้าต่าง: ทอง Kanit + เส้นทองจางสองปลาย */
html .ow2-q-title, html .ow2-d-dt, html .ow2-fan-k, html .ow2-meta-h, html .ow2-m-h, html .ow2-g-tchip h4, html .ow2-mini-fh, html .ow2-meta-lg {
  font-family: var(--fh, Kanit, sans-serif); font-weight: 600; color: var(--b2-gold-t); text-shadow: 1px 1px 0 var(--b2-ink); }

/* == 2.2 กล่องเสนอเควสต์ / เลือก (ow-quest · ow-discover · ow-mini) == */
html .ow2-q-dlg, html .ow2-d-dlg, html .ow2-mini-fish {
  background: var(--b2-win); color: var(--b2-cream); border: 0; outline: 0; border-radius: var(--b2-r-win); box-shadow: var(--b2-frame);
  padding: 14px 16px; }
html .ow2-q-scrim { background: rgba(4, 8, 24, .38); }
html .ow2-q-head { align-items: flex-start; gap: 12px; position: relative; padding-bottom: 8px; margin-bottom: 8px; }
html .ow2-q-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--b2-rule); }
html .ow2-q-face { width: 64px; height: 64px; flex: 0 0 64px; border: 0; border-radius: 4px; background: var(--b2-well); image-rendering: auto; object-fit: cover;
  box-shadow: 0 0 0 2px #e3c46a, 0 0 0 3px #0a1230; margin: 3px; }
@media (max-height: 380px) { html .ow2-q-face { width: 56px; height: 56px; flex-basis: 56px; } }
html .ow2-q-title { font-size: 17px; line-height: 1.35; }
html .ow2-q-who { display: inline-block; margin-top: 4px; padding: 2px 10px; font: 600 13px/1.5 var(--fh, Kanit, sans-serif); color: var(--b2-on-gold);
  background: var(--b2-gold); border-radius: 3px; box-shadow: 0 0 0 1px #0a1230; opacity: 1; vertical-align: baseline; }
html .ow2-q-title + .ow2-q-who { font-size: 13px; }
html .ow2-q-draft { align-self: auto; vertical-align: baseline; margin-top: 4px; font-size: 12px; line-height: 1.5; padding: 2px 6px; color: var(--b2-gold-t); border: 1px solid var(--b2-gold-t); border-radius: 3px; }
html .ow2-q-line { color: var(--b2-cream); font-size: 15px; line-height: 1.55; }
html .ow2-q-sec { border-top: 1px solid rgba(111, 143, 216, .45); }
html .ow2-q-h { color: var(--b2-gold-t); font: 600 13px/1.5 var(--fh, Kanit, sans-serif); }
html .ow2-q-list { color: var(--b2-cream); }
html .ow2-q-rw .ow2-q-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin-top: 4px; }
html .ow2-q-rw .ow2-q-list li { padding: 2px 10px; font-size: 13.5px; line-height: 1.6; color: var(--b2-cream); background: var(--b2-well); border-radius: 3px; box-shadow: var(--b2-frame-sm); }
html .ow2-q-rw .ow2-q-list li .ow2-star, html .ow2-q-rw .ow2-q-list li.ow2-star { color: var(--b2-ok); }
/* แถบปุ่ม: พื้นสีล่างสุดของ gradient · หลักซ้าย ครึ่ง-ครึ่ง */
html .ow2-q-btns, html .ow2-d-db { background: linear-gradient(180deg, #1a3378, #0c1a48); border-top: 1px solid rgba(111, 143, 216, .45); border-radius: 0 0 var(--b2-r-win) var(--b2-r-win);
  margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; margin-bottom: -14px; bottom: -14px; }
html .ow2-q-btns:not(.ow2-q-col) .ow2-q-btn { flex: 1 1 0; min-width: 0; min-height: 48px; }
html .ow2-q-btn, html .ow2-d-btn { min-height: 48px; font: 700 15px/1.2 var(--fh, Kanit, sans-serif); }
html .ow2-q-col .ow2-q-btn { width: 100%; }
html .ow2-d-dw { color: var(--b2-sub); }
html .ow2-d-dl { color: var(--b2-cream); }

/* ป้ายเควสต์บน NPC: เพชรทองไล่เฉด + เงาพื้นตัน */
html .mapwrap.ow .ow-npc.ow2-q-avail::after, html .mapwrap.ow .ow-npc.ow2-q-turnin::after {
  background: var(--b2-gold); border: 2px solid #0a1230; box-shadow: 8px 8px 0 -5px rgba(10, 18, 48, .45); }
html .mapwrap.ow .ow-npc.ow2-q-later::after { background: #8f9bb8; box-shadow: none; }

/* == 2.3 ตัวติดตาม + ปุ่มข้าง + ลูกศรขอบ == */
html .mapwrap.ow .ow2-tr-b { background: var(--b2-win); border-radius: 4px; box-shadow: var(--b2-frame-sm); }
html .mapwrap.ow .ow2-tr-t { color: var(--b2-gold-t); font-size: 12.5px; text-shadow: 1px 1px 0 var(--b2-ink); }
html .mapwrap.ow .ow2-tr-t::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 6px 1px 1px; transform: rotate(45deg); background: var(--b2-gold-t); box-shadow: 0 0 0 1px var(--b2-ink); vertical-align: middle; }
html .mapwrap.ow .ow2-tr-s { color: var(--b2-cream); }
html .mapwrap.ow .ow2-tr-s::before { content: ""; display: inline-block; width: 0; height: 0; margin: 0 6px 1px 0; border: 4px solid transparent; border-left: 5px solid var(--b2-gold-t); border-right: 0; vertical-align: middle; }
html .mapwrap.ow .ow2-tr-d { color: var(--b2-sub); }
html .mapwrap.ow .ow2-tracker.ow2-tr-wait .ow2-tr-d { color: var(--b2-gold-t); }
html .mapwrap.ow .ow2-tracker.ow2-tr-sugg .ow2-tr-b { box-shadow: var(--b2-frame-sm), inset 0 0 0 3px rgba(233, 223, 184, .5); }
html .mapwrap.ow .ow2-sbtn, html .mapwrap.ow .ow2-tr-tg, html .mapwrap.ow .ow2-edge {
  background: var(--b2-blue); border-color: var(--b2-ink); border-radius: var(--b2-r-btn); box-shadow: var(--b2-btn); }
html .mapwrap.ow .ow2-edge { border-radius: 50%; box-shadow: var(--b2-btn), inset 0 0 0 2px #e3c46a, inset 0 0 0 3px #0a1230; }
html .mapwrap.ow .ow2-sbtn .ow2-ic, html .mapwrap.ow .ow2-sbtn svg, html .mapwrap.ow .ow2-tr-tg svg { color: var(--b2-gold2); }
html .mapwrap.ow .ow2-sbtn:active, html .mapwrap.ow .ow2-tr-tg:active { transform: translateY(2px); box-shadow: var(--b2-btn-down); }
/* ปุ่มทำตามบริบท = หลักของ HUD ฝั่งเสริม (ทอง) */
html .mapwrap.ow .ow2-act { color: var(--b2-on-gold); background: var(--b2-gold); border-color: var(--b2-ink); border-radius: var(--b2-r-btn); box-shadow: var(--b2-btn); text-shadow: none; }
html .mapwrap.ow .ow2-act:active { transform: translateY(2px); box-shadow: var(--b2-btn-down); }
html .mapwrap.ow .ow2-act-k { border-color: var(--b2-on-gold); }
html .ow2-dot { background: var(--b2-star); }
/* จุดนำทาง / แผนที่ย่อ */
html .mapwrap.ow .ow2-wp-d, html .mapwrap.ow .ow2-mm-t { background: var(--b2-gold); }
html .mapwrap.ow .ow2-mm-g { background: var(--b2-gold); }
html .mapwrap.ow .ow2-wp.ow2-wp-pin .ow2-wp-d, html .mapwrap.ow .ow2-mm-p { background: #f05a44; }

/* == 2.4 ข้อความสั้น == */
html .mapwrap.ow .ow2-toast { background: var(--b2-win); border-color: var(--b2-ink); border-radius: 4px; box-shadow: var(--b2-frame-sm);
  font: 500 14px/1.45 var(--fh, Kanit, sans-serif); color: var(--b2-cream); text-shadow: 1px 1px 0 var(--b2-ink); }
html .mapwrap.ow .ow2-toast:not([hidden]) { animation: b2Fade .15s ease-out; }
@keyframes b2Fade { from { opacity: 0; } to { opacity: 1; } }

/* == 2.5 หน้าต่างรางวัล == */
html .mapwrap.ow .ow2-fanfare { background: var(--b2-win); border: 0; border-radius: var(--b2-r-win); box-shadow: var(--b2-frame), inset 0 0 0 5px rgba(227, 196, 106, .9);
  padding: 16px 18px 14px; width: min(86%, 335px); }
html .mapwrap.ow .ow2-fan-k { position: relative; display: block; padding-bottom: 6px; margin-bottom: 6px; font: 700 19px/1.3 var(--fh, Kanit, sans-serif); letter-spacing: .02em; color: var(--b2-gold-t); }
html .mapwrap.ow .ow2-fan-k::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--b2-rule); }
html .mapwrap.ow .ow2-fan-t { font-size: 15px; font-weight: 600; color: var(--b2-cream); margin: 2px 0 8px; }
html .mapwrap.ow .ow2-fan-r { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; border-top: 0; padding: 4px 0 0; }
html .mapwrap.ow .ow2-fan-r li { display: flex; flex-direction: column; justify-content: center; gap: 2px; margin: 0; padding: 8px 6px; min-height: 44px;
  background: var(--b2-well); border-radius: 4px; box-shadow: inset 0 0 0 1px #e3c46a; color: var(--b2-cream); font: 600 14px/1.35 var(--fh, Kanit, sans-serif); }
html .mapwrap.ow .ow2-fan-r li.ow2-star, html .mapwrap.ow .ow2-fan-r .ow2-star .ow2-fan-v { color: var(--b2-ok); }
html .mapwrap.ow .ow2-fan-v { display: block; font: 600 15px/1.3 var(--fh, Kanit, sans-serif); color: var(--b2-cream); }
html .mapwrap.ow .ow2-fan-l { display: block; font: 400 12px/1.4 var(--f, "Noto Sans Thai", sans-serif); color: var(--b2-sub); }
html .mapwrap.ow .ow2-fan-p { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: var(--b2-sub); }
html .mapwrap.ow .ow2-fan-n { margin: 6px 0 0; font: 500 12.5px/1.45 var(--fh, Kanit, sans-serif); color: var(--b2-gold-t); }
html .mapwrap.ow .ow2-fan-b { min-height: 48px; min-width: 60%; margin-top: 10px; padding: 0 18px; font: 700 15px/1.2 var(--fh, Kanit, sans-serif); cursor: pointer; }
html .mapwrap.ow .ow2-fan-h { color: var(--b2-sub); }
@media (pointer: fine) { html .mapwrap.ow .ow2-fanfare:has(.ow2-fan-b) .ow2-fan-h { display: none; } }
/* แนวนอนจอเตี้ย: ชิดขวา ไม่บัง d-pad ซ้ายล่าง · กดปุ่มได้ */
/* แนวนอน: ชิดซ้าย (ปุ่มเก็บรางวัลอยู่ในระยะนิ้วโป้งซ้าย) · fanPlace() เลื่อนหลบปุ่มเดิน/ปุ่มข้างเอง */
html .mapwrap.ow.ow-m-l .ow2-fanfare { left: calc(8px + var(--ow-sl, 0px)); right: auto; transform: none; pointer-events: auto; padding: 8px 12px 8px; }
html .mapwrap.ow.ow-m-l .ow2-fanfare.ow2-pop { animation-name: b2PopR; }
html .mapwrap.ow.ow-m-l .ow2-fan-k { font-size: 16px; padding-bottom: 4px; margin-bottom: 4px; }
html .mapwrap.ow.ow-m-l .ow2-fan-r { grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 6px; padding-top: 2px; }
html .mapwrap.ow.ow-m-l .ow2-fan-r li { display: flex; margin: 0; padding: 4px 6px; font-size: 13px; }
html .mapwrap.ow.ow-m-l .ow2-fan-b { margin-top: 6px; }
html .mapwrap.ow.ow-m-l .ow2-fan-p, html .mapwrap.ow.ow-m-l .ow2-fan-n { margin-top: 4px; }
/* หน้ารางวัลแบบย่อ (จอแนวตั้งที่ที่ว่างเหนือปุ่มนิ้วโป้งน้อย) */
html .mapwrap.ow .ow2-fanfare.ow2-fan-cp { padding: 8px 14px 8px; }
html .mapwrap.ow .ow2-fan-cp .ow2-fan-k { font-size: 16px; padding-bottom: 3px; margin-bottom: 3px; }
html .mapwrap.ow .ow2-fan-cp .ow2-fan-t { font-size: 14px; margin: 0 0 4px; }
html .mapwrap.ow .ow2-fan-cp .ow2-fan-r { gap: 6px; padding-top: 0; }
html .mapwrap.ow .ow2-fan-cp .ow2-fan-r li { flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: center; column-gap: 6px; min-height: 32px; padding: 4px 6px; }
html .mapwrap.ow .ow2-fan-xs .ow2-fan-p { display: none; }
html .mapwrap.ow .ow2-fan-cp .ow2-fan-p { margin-top: 4px; font-size: 12.5px; }
html .mapwrap.ow .ow2-fan-cp .ow2-fan-b { min-height: 48px; margin-top: 4px; }
html .mapwrap.ow .ow2-fan-cp .ow2-fan-n { margin-top: 2px; }
@keyframes b2PopR { from { transform: scale(.86); opacity: 0; } to { transform: none; opacity: 1; } }

/* == 2.6 สมุด (หน้าจอเต็ม) == */
html .ow2-screen { background: var(--b2-screen); }
html .ow2-j-win { background: var(--b2-win); box-shadow: none; }
@media (min-width: 760px) and (min-height: 560px) {
  html .ow2-screen { background: rgba(10, 18, 48, .78); }
  html .ow2-j-win { border: 0; border-radius: var(--b2-r-win); box-shadow: var(--b2-frame); padding: 4px; }
}
html .ow2-j-top { position: relative; border-bottom: 0; padding-bottom: 8px; }
html .ow2-j-top::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--ow2-frame, #e3c46a) 18%, var(--ow2-frame, #e3c46a) 82%, transparent 100%); }
html .ow2-j-top[data-art] { background: linear-gradient(90deg, rgba(12, 26, 72, .92) 0 55%, rgba(12, 26, 72, .55) 100%), var(--ow2-keyart) right center / cover no-repeat; }
html .ow2-j-h { color: var(--b2-gold-t); font-weight: 600; text-shadow: 1px 1px 0 var(--b2-ink); }
html .ow2-j-star { color: var(--b2-cream); }
html .ow2-j-star b, html .ow2-j-star svg { color: var(--b2-ok); }
html .ow2-j-x, html .ow2-j-x2 { color: var(--b2-cream); border-radius: var(--b2-r-btn); }
/* แท็บ: กล่องปุ่มน้ำเงิน · ที่เลือก = แถวเลือก + ขีดทองล่าง */
html .ow2-j-tabs { border-bottom: 1px solid rgba(111, 143, 216, .45); padding-bottom: 6px; gap: 8px; }
@media (max-width: 480px) { html .ow2-j-tabs { gap: 6px 8px; } }
html .ow2-j-tab { color: var(--b2-cream); background: var(--b2-blue); border: 1px solid var(--b2-ink); border-radius: var(--b2-r-btn); box-shadow: var(--b2-btn);
  text-shadow: 1px 1px 0 var(--b2-ink); margin-bottom: 3px; }
html .ow2-j-tab[aria-selected="true"] { color: var(--b2-cream); background: var(--b2-row); border-color: var(--b2-ink);
  box-shadow: 0 0 0 1px #0a1230, inset 0 0 0 1px var(--b2-row-line), inset 0 -3px 0 #e3c46a; }
/* ชิปกรอง: สี่เหลี่ยมมุม 4 */
html .ow2-j-chip { color: var(--b2-cream); background: var(--b2-blue); border: 1px solid var(--b2-ink); border-radius: var(--b2-r-btn); box-shadow: var(--b2-btn); text-shadow: 1px 1px 0 var(--b2-ink); margin-bottom: 3px; }
html .ow2-j-chip .ow2-j-n { color: var(--b2-gold2); }
html .ow2-j-chip[aria-pressed="true"] { color: var(--b2-cream); background: var(--b2-row); border-color: var(--b2-ink); box-shadow: 0 0 0 1px #0a1230, inset 0 0 0 1px var(--b2-row-line); }
html .ow2-j-chip[aria-pressed="true"] .ow2-j-n { color: var(--b2-cream); }
html .ow2-j-chip:active { transform: translateY(2px); box-shadow: var(--b2-btn-down); }
/* รายการเควสต์ = หน้าต่างเดียว แต่ละเควสต์เป็นแถว · แถวที่ติดตาม/โฟกัส = แถวเลือก + มือชี้ */
html .ow2-j-list { gap: 0 8px; padding: 6px; background: var(--b2-win); border-radius: var(--b2-r-win); box-shadow: var(--b2-frame); }
html .ow2-j-q { position: relative; padding: 10px 12px 12px 40px; background: transparent; border: 0; border-radius: 3px;
  box-shadow: none; border-bottom: 1px solid rgba(111, 143, 216, .35); }
html .ow2-j-q.ow2-j-active, html .ow2-j-q.ow2-j-locked { box-shadow: none; }
html .ow2-j-q.ow2-j-done { box-shadow: inset 3px 0 0 var(--b2-ok); }
html .ow2-j-q.ow2-j-locked { border-style: solid; }
html .ow2-j-q.ow2-j-trk, html .ow2-j-q:focus-within { background: var(--b2-row); box-shadow: inset 0 0 0 1px var(--b2-row-line); border-bottom-color: transparent; }
html .ow2-j-q.ow2-j-trk::before, html .ow2-j-q:focus-within::before { content: ""; position: absolute; left: 8px; top: 15px; width: 22px; height: 15px;
  background: var(--b2-hand) center / contain no-repeat; }
html .ow2-j-q:focus-within::before { animation: b2Point .9s ease-in-out infinite; }
@keyframes b2Point { 0%, 100% { translate: 0 0; } 50% { translate: 3px 0; } }
html .ow2-j-qt { color: var(--b2-gold-t); font-size: 16px; text-shadow: 1px 1px 0 var(--b2-ink); }
html .ow2-j-q.ow2-j-trk .ow2-j-qt, html .ow2-j-q:focus-within .ow2-j-qt { color: var(--b2-cream); }
html .ow2-j-locked .ow2-j-qt { color: var(--b2-sub); }
html .ow2-j-q, html .ow2-j-now, html .ow2-j-rw { color: var(--b2-cream); }
html .ow2-j-tag { color: var(--b2-cream); border-color: rgba(159, 184, 240, .6); border-radius: 3px; }
html .ow2-j-tag.ow2-j-st { color: var(--b2-gold-t); border-color: var(--b2-gold-t); }
html .ow2-j-q.ow2-j-trk .ow2-j-tag.ow2-j-st, html .ow2-j-q:focus-within .ow2-j-tag.ow2-j-st { color: var(--b2-cream); border-color: var(--b2-cream); }
html .ow2-j-done .ow2-j-tag.ow2-j-st { color: var(--b2-ok); border-color: var(--b2-ok); }
html .ow2-j-tag.ow2-j-new { background: var(--b2-ok); color: var(--b2-ink); border-color: var(--b2-ok); }
html .ow2-j-when { color: var(--b2-gold-t); }
html .ow2-j-q.ow2-j-trk .ow2-j-when, html .ow2-j-q:focus-within .ow2-j-when { color: var(--b2-cream); }
html .ow2-j-rk { color: var(--b2-sub); }
html .ow2-j-q.ow2-j-trk .ow2-j-rk, html .ow2-j-q:focus-within .ow2-j-rk { color: var(--b2-cream); }
html .ow2-j-rw .ow2-star, html .ow2-screen .ow2-star { color: var(--b2-ok); }
html .ow2-j-q.ow2-j-trk .ow2-star, html .ow2-j-q:focus-within .ow2-star { color: #fff; }
/* ขั้น: เสร็จ ✓ เขียว · ปัจจุบัน ◇ ทอง · อนาคต รอง */
html .ow2-j-steps .ow2-j-sd { color: var(--b2-sub); text-decoration-color: var(--b2-ok); }
html .ow2-j-steps .ow2-j-sd::before { content: ""; background: var(--b2-ok); border-color: var(--b2-ok); }
html .ow2-j-steps .ow2-j-sd::after { content: ""; position: absolute; left: 5px; top: 6px; width: 7px; height: 4px; border: solid var(--b2-ink); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
html .ow2-j-steps .ow2-j-sc { color: var(--b2-cream); }
html .ow2-j-steps .ow2-j-sc::before { content: ""; left: 3px; top: 6px; width: 12px; height: 12px; border: 2px solid var(--b2-gold-t); border-radius: 1px; transform: rotate(45deg); background: transparent; }
html .ow2-j-steps .ow2-j-sf { color: var(--b2-sub); }
html .ow2-j-steps li::before { border-color: var(--b2-sub); }
html .ow2-j-q.ow2-j-trk .ow2-j-steps .ow2-j-sd, html .ow2-j-q:focus-within .ow2-j-steps .ow2-j-sd,
html .ow2-j-q.ow2-j-trk .ow2-j-steps .ow2-j-sf, html .ow2-j-q:focus-within .ow2-j-steps .ow2-j-sf { color: var(--b2-cream); }
/* ปุ่มในรายการ: น้ำเงินทุกปุ่ม · หลักหนึ่งปุ่มต่อหน้าจอ = .ow2-g-pri (ใส่โดย J) */
html .ow2-j-btn, html .ow2-j-btn.ow2-j-ghost { color: var(--b2-cream); background: var(--b2-blue); border-color: var(--b2-ink); box-shadow: var(--b2-btn); }
html .ow2-j-btn.ow2-on { color: var(--b2-cream); background: var(--b2-row); box-shadow: var(--b2-btn), inset 0 0 0 1px var(--b2-row-line); }
html .ow2-screen .ow2-j-btn.ow2-g-pri { color: var(--b2-on-gold); background: var(--b2-gold); text-shadow: none; }
html .ow2-j-cf button { min-height: 44px; padding: 0 16px; font: 600 14px/1 var(--fh, Kanit, sans-serif); cursor: pointer; }
html .ow2-draft-h { background: transparent; border-radius: 3px; color: var(--b2-gold-t); border-color: var(--b2-gold-t); }
/* ว่าง: กลางจอ เพชรเส้นทอง 36 px ด้านบน ปุ่มเดียว */
html .ow2-j-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 24px auto; max-width: 420px; padding: 16px 12px;
  font-size: 14.5px; line-height: 1.6; color: var(--b2-sub); text-align: center; list-style: none; }
html .ow2-j-empty::before { content: ""; width: 26px; height: 26px; margin: 6px 0 4px; transform: rotate(45deg); border: 2px solid var(--b2-gold-t); box-shadow: 0 0 0 1px var(--b2-ink); }
html .ow2-j-list > .ow2-j-empty { grid-column: 1 / -1; }
html .ow2-j-empty button { min-height: 44px; padding: 0 18px; }
html .ow2-g-dia { display: inline-grid; place-items: center; width: 14px; height: 14px; margin: 0 5px 2px; transform: rotate(45deg); background: var(--b2-gold); box-shadow: 0 0 0 1px var(--b2-ink); vertical-align: middle; }
html .ow2-g-dia-x { transform: rotate(-45deg); font: 800 11px/1 system-ui, sans-serif; font-style: normal; color: var(--b2-on-gold); }

/* == 2.7 แผนที่เต็ม == */
html .ow2-m-tb { color: var(--b2-cream); background: var(--b2-blue); border-color: var(--b2-ink); border-radius: var(--b2-r-btn); box-shadow: var(--b2-btn); margin-bottom: 3px; }
html .ow2-m-tb.ow2-m-pri { color: var(--b2-cream); background: var(--b2-blue); border-color: var(--b2-ink); box-shadow: var(--b2-btn), inset 0 0 0 1px #e3c46a; }
html .ow2-m-tb.ow2-on { color: var(--b2-cream); background: var(--b2-row); box-shadow: 0 0 0 1px #0a1230, inset 0 0 0 1px var(--b2-row-line); }
html .ow2-m-tb svg { color: var(--b2-gold2); }
html .ow2-m-vp { background: var(--ow2-mapbg, none) repeat, var(--b2-well); border: 0; border-radius: 4px; box-shadow: var(--b2-frame-sm); }
html .ow2-m-n { background: var(--b2-ink); color: var(--b2-gold-t); }
html .ow2-m-h { position: relative; padding-bottom: 5px; }
html .ow2-m-h::after { content: ""; position: absolute; left: 0; right: 12px; bottom: 0; height: 2px; background: var(--b2-rule); }
/* ชิปกรอง (Figma E = แคปซูล) */
html .ow2-m-lchip { border-radius: 999px; }
html .ow2-m-lchip[aria-pressed="true"] { color: var(--b2-cream); background: var(--b2-blue); border-color: var(--b2-ink); box-shadow: var(--b2-btn); }
html .ow2-m-lchip[aria-pressed="false"] { color: var(--b2-sub); background: var(--b2-well); border-color: rgba(111, 143, 216, .6); box-shadow: none; text-decoration: line-through; text-shadow: none; }
html .ow2-m-lchip[aria-pressed="false"] .ow2-m-sw { opacity: .55; }
html .ow2-m-fixed, html .ow2-m-note { color: var(--b2-sub); }
/* แผงสถานะ/วาร์ป = หน้าต่างเล็ก */
html .ow2-m-stw { padding: 8px 10px; background: var(--b2-win); border-radius: 4px; box-shadow: var(--b2-frame-sm); }
html .ow2-m-st { color: var(--b2-cream); }
html .ow2-m-trav li { padding: 4px 6px; border-bottom: 1px solid rgba(111, 143, 216, .35); }
html .ow2-m-tn { color: var(--b2-cream); }
html .ow2-m-trav .ow2-m-go:not(.ow2-g-pri) { color: var(--b2-cream); background: var(--b2-blue); text-shadow: 1px 1px 0 var(--b2-ink); }
/* รายการภาค % */
html .ow2-m-reg { color: var(--b2-cream); background: var(--b2-well); border: 0; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(111, 143, 216, .6); }
@media (hover: hover) { html .ow2-m-reg:hover { background: var(--b2-row); } }
html .ow2-m-reg:focus-visible { background: var(--b2-row); box-shadow: inset 0 0 0 1px var(--b2-row-line); }
html .ow2-m-bar { background: var(--b2-ink); border-color: rgba(111, 143, 216, .6); }
html .ow2-m-bar i { background: var(--b2-star); }
html .ow2-m-rp, html .ow2-m-ck { color: var(--b2-sub); }
html .ow2-m-reg:hover .ow2-m-rp, html .ow2-m-reg:hover .ow2-m-ck, html .ow2-m-reg:focus-visible .ow2-m-rp, html .ow2-m-reg:focus-visible .ow2-m-ck { color: var(--b2-cream); }
html .ow2-m-all { box-shadow: inset 0 0 0 1px #e3c46a; }
html .ow2-m-all .ow2-m-rp { color: var(--b2-gold-t); }
html .ow2-m-all:hover .ow2-m-rp, html .ow2-m-all:focus-visible .ow2-m-rp { color: var(--b2-cream); }

/* == 2.8 สมุดสะสม · ความสำเร็จ · สถิติ == */
html .ow2-meta-head { position: relative; padding-bottom: 8px; }
html .ow2-meta-head::after { content: ""; position: absolute; left: 0; right: 12px; bottom: 0; height: 2px; background: var(--b2-rule); }
html .ow2-meta-sub, html .ow2-meta-note { color: var(--b2-sub); }
html .ow2-meta-cap, html .ow2-meta-rank { color: var(--b2-cream); }
html .ow2-meta-it, html .ow2-meta-ach { color: var(--b2-cream); background: var(--b2-well); border: 0; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(111, 143, 216, .6); }
html .ow2-meta-got { box-shadow: inset 0 0 0 1px rgba(111, 143, 216, .6), inset 3px 0 0 var(--b2-ok); }
html .ow2-meta-lock { border-style: solid; }
html .ow2-meta-nm { color: var(--b2-cream); }
html .ow2-meta-lock .ow2-meta-nm, html .ow2-meta-ach:not(.ow2-meta-got) .ow2-meta-nm, html .ow2-meta-ds, html .ow2-meta-lock .ow2-meta-ds { color: var(--b2-sub); }
html .ow2-meta-got .ow2-meta-ds { color: var(--b2-cream); }
html .ow2-meta-pr { color: var(--b2-gold-t); }
html .ow2-meta-got .ow2-meta-pr { color: var(--b2-ok); }
html .ow2-meta-ic { color: var(--b2-sub); background: var(--b2-ink); border-color: rgba(111, 143, 216, .6); }
html .ow2-meta-got .ow2-meta-ic { background: var(--b2-ok); border-color: var(--b2-ok); }
html .ow2-meta-ic:has(img) { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 4px; background: var(--b2-ink); overflow: hidden; }
html .ow2-meta-ic:has(img)::after { display: none; }
html .ow2-meta-ic img { display: block; width: 100%; height: 100%; object-fit: contain; }
html .ow2-meta-bar { background: var(--b2-ink); border-color: rgba(111, 143, 216, .6); }
html .ow2-meta-bar i { background: var(--b2-star); }
html .ow2-meta-pick { background: var(--b2-win); border: 0; border-radius: 4px; box-shadow: var(--b2-frame-sm); }
html .ow2-meta-opt { color: var(--b2-cream); }
html .ow2-meta-opt:hover, html .ow2-meta-opt:focus-within { background: var(--b2-row); box-shadow: inset 0 0 0 1px var(--b2-row-line); }
html .ow2-meta-stats { color: var(--b2-cream); }
/* การ์ดชุมชน: ตาราง 4/6/8 คอลัมน์ ช่อง 3:4 (H8 ใส่ .ow2-g-cards) */
html .ow2-meta-grid.ow2-g-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 600px) { html .ow2-meta-grid.ow2-g-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 900px) { html .ow2-meta-grid.ow2-g-cards { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
html .ow2-g-cards > li { display: block; min-width: 0; margin: 0; padding: 0; list-style: none; }
html .ow2-g-cards .ow2-meta-it { position: relative; width: 100%; aspect-ratio: 3 / 4; min-height: 44px; margin: 0; padding: 4px; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 4px; text-align: center; font: inherit; cursor: pointer; overflow: hidden; }
html .ow2-g-cards .ow2-meta-it.ow2-meta-got { background: var(--b2-gold); border: 1px solid var(--b2-ink); border-radius: 4px; box-shadow: var(--b2-btn); color: var(--b2-on-gold); }
html .ow2-g-cards .ow2-meta-it.ow2-meta-lock { background: var(--b2-well); border: 0; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(111, 143, 216, .6); justify-content: flex-start; }
/* ช่องว่าง: กรอบรูปด้านใน + ??? ด้านล่าง (โครงเดียวกับช่องที่สะสมแล้ว Figma C) */
html .ow2-g-cards .ow2-meta-lock::before { content: ""; display: block; flex: 0 0 auto; width: 100%; aspect-ratio: 1 / 1; background: var(--b2-ink); box-shadow: inset 0 0 0 1px rgba(111, 143, 216, .35); border-radius: 2px; }
html .ow2-g-cards .ow2-meta-it:active { transform: translateY(2px); }
html .ow2-g-cards .ow2-meta-it.ow2-meta-got:active { box-shadow: var(--b2-btn-down); }
html .ow2-g-cards .ow2-meta-tx { min-width: 0; align-items: stretch; }
html .ow2-g-cards .ow2-meta-ds { display: none; }
html .ow2-g-cards .ow2-meta-ic { display: none; }
html .ow2-g-cards .ow2-meta-got .ow2-meta-nm { display: block; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;
  font: 600 11.5px/1.3 var(--fh, Kanit, sans-serif); color: var(--b2-on-gold); text-shadow: none; }
html .ow2-g-cards .ow2-meta-lock .ow2-meta-nm { font: 600 12px/1.3 var(--fh, Kanit, sans-serif); color: var(--b2-sub); white-space: nowrap; overflow: hidden; }
html .ow2-g-art { display: block; flex: 0 0 auto; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid var(--b2-ink); border-radius: 2px; box-sizing: border-box;
  background: var(--b2-ink); image-rendering: auto; }
html .ow2-g-art[data-fallback] { position: relative; background: var(--c, #3f6fb3); display: grid; place-items: center; }
html .ow2-g-art[data-fallback] svg, html .ow2-g-art[data-fallback] .ow2-ic { width: 24px; height: 24px; color: var(--b2-cream); }
html .ow2-g-art[data-fallback]:empty::after { content: ""; width: 22px; height: 16px; border: 2px solid var(--b2-cream); border-radius: 2px; box-shadow: 0 0 0 1px var(--b2-ink); }
html .ow2-g-cards .ow2-meta-it:focus-visible { outline: 3px solid var(--b2-cream); outline-offset: 2px; }
html .ow2-g-cards .ow2-meta-lock:focus-visible { outline-color: var(--b2-gold-t); }
/* อัลบั้ม (ow-mini) */
html .ow2-mini-ph1 { background: var(--b2-gold); border: 1px solid var(--b2-ink); border-radius: 4px; box-shadow: var(--b2-btn); padding: 6px; }
html .ow2-mini-alb[data-pframe] .ow2-mini-ph1 { border: 16px solid transparent; border-image: var(--ow2-pframe) var(--ow2-pframe-sl, 64) fill / 16px stretch; }
html .ow2-mini-cap { color: var(--b2-on-gold); }
html .ow2-mini-an { color: var(--b2-sub); }
html .ow2-mini-noimg { color: var(--b2-sub); }
html .ow2-mini-del { color: var(--b2-cream); }
/* ตกปลา / ถ่ายรูป */
html .ow2-mini-res { background: var(--b2-well); border: 0; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(111, 143, 216, .6), inset 3px 0 0 var(--b2-ok); }
html .ow2-mini-rn { color: var(--b2-gold-t); }
html .ow2-mini-rr { color: var(--b2-ok); }
html .ow2-mini-safe { color: var(--b2-sub); border-top-color: rgba(111, 143, 216, .45); }
html .ow2-mini-hint { background: var(--b2-win); color: var(--b2-cream); border-radius: 4px; box-shadow: var(--b2-frame-sm); }
html .ow2-mini-fish[style*="--ow2-fishbg"] .ow2-mini-water { background: linear-gradient(rgba(12, 26, 72, .35), rgba(12, 26, 72, .35)), var(--ow2-fishbg) center / cover no-repeat, #2f7f95; }

/* == 2.9 เมนู > ชุมชน: รายการคำสั่งแนวตั้ง + ป้ายฉายา == */
html .side-menu { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 600px) {   /* จอแคบ: ป้ายฉายาอยู่บนรายการเต็มความกว้าง */
  html .side-menu:has(.ow2-g-tchip) { grid-template-columns: minmax(0, 1fr) 140px; grid-auto-flow: row dense; }
  html .side-menu:has(.ow2-g-tchip) > :not(.ow2-g-tchip):not(.side-menu-list) { grid-column: 1 / -1; }
  html .side-menu:has(.ow2-g-tchip) > .side-menu-list { grid-column: 1; }
  html .side-menu:has(.ow2-g-tchip) > .ow2-g-tchip { grid-column: 2; }
}
html .side-menu-list { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 6px; margin-top: 0; background: var(--b2-win); border-radius: var(--b2-r-win); box-shadow: var(--b2-frame); }
html .side-menu-b, html .btn.side-menu-b { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: 10px; row-gap: 0;
  width: 100%; min-height: 48px; margin: 0; padding: 6px 12px 6px 40px; text-align: left; color: var(--b2-cream); background: transparent; border: 0;
  border-bottom: 1px solid rgba(111, 143, 216, .35); border-radius: 3px; box-shadow: none; text-shadow: 1px 1px 0 var(--b2-ink); transform: none; }
html .side-menu-b::after { display: none; }
html .side-menu-b b { grid-column: 1; grid-row: 1; font: 600 15px/1.35 var(--fh, Kanit, sans-serif); color: var(--b2-cream); }
html .side-menu-b small { grid-column: 1; grid-row: 2; font-size: 12.5px; line-height: 1.45; color: var(--b2-sub); }
html .side-menu-n { grid-column: 2; grid-row: 1 / span 2; font: 600 14px/1 var(--fh, Kanit, sans-serif); color: var(--b2-gold-t); font-variant-numeric: tabular-nums; }
html .side-menu-b:focus-visible { background: var(--b2-row); box-shadow: inset 0 0 0 1px var(--b2-row-line); border-bottom-color: transparent; }
html .side-menu-b:focus-visible small, html .side-menu-b:focus-visible .side-menu-n { color: var(--b2-cream); }
@media (hover: hover) { html .side-menu-b:hover { background: var(--b2-row); box-shadow: inset 0 0 0 1px var(--b2-row-line); } html .side-menu-b:hover small, html .side-menu-b:hover .side-menu-n { color: var(--b2-cream); } }
html .side-menu-b::before { content: ""; position: absolute; left: 9px; top: 50%; width: 22px; height: 15px; margin-top: -7.5px; border: 0; transform: none;
  background: var(--b2-hand) center / contain no-repeat; box-shadow: none; opacity: 0; }
html .side-menu-b:focus-visible::before, html .side-menu-b[aria-current="true"]::before { opacity: 1; }
html .side-menu-b[aria-current="true"] { background: var(--b2-row); box-shadow: inset 0 0 0 1px var(--b2-row-line); border-bottom-color: transparent; }
html .side-menu-b[aria-current="true"] small, html .side-menu-b[aria-current="true"] .side-menu-n { color: var(--b2-cream); }
html .side-menu-b:focus-visible::before { animation: b2Point .9s ease-in-out infinite; }
html .ow2-g-tchip { align-self: start; padding: 10px 12px; background: var(--b2-win); color: var(--b2-cream); border-radius: var(--b2-r-win); box-shadow: var(--b2-frame); }
html .ow2-g-tchip h4 { position: relative; margin: 0 0 6px; padding-bottom: 5px; font-size: 14px; line-height: 1.3; }
html .ow2-g-tchip h4::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--b2-rule); }
html .ow2-g-tn { margin: 0; font: 600 15px/1.35 var(--fh, Kanit, sans-serif); color: var(--b2-cream); }
html .ow2-g-ts { margin: 4px 0 0; font: 600 13px/1.3 var(--fh, Kanit, sans-serif); color: var(--b2-ok); font-variant-numeric: tabular-nums; }
html .ow2-g-tnx { margin: 2px 0 0; font: 500 12.5px/1.4 var(--f, "Noto Sans Thai", sans-serif); color: var(--b2-sub); }
html .ow2-g-star { display: inline-block; width: 12px; height: 12px; margin-right: 5px; vertical-align: -1px; background: var(--b2-star);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }

/* == 2.10 ป้ายเข้าพื้นที่ == */
html .mapwrap.ow .ow-banner { background: var(--b2-win); border-color: var(--b2-ink); border-radius: 4px; box-shadow: var(--b2-frame-sm); }
html .mapwrap.ow .ow-banner b { border-top: 0; position: relative; padding-top: 4px; color: var(--b2-cream); text-shadow: 1px 1px 0 var(--b2-ink); }
html .mapwrap.ow .ow-banner b::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--b2-rule); }
html .mapwrap.ow .ow-banner-k { color: var(--b2-gold-t); }
html .mapwrap.ow .ow-banner[data-art] { min-height: 64px; align-items: flex-start; text-align: left; padding-right: 120px;
  background: linear-gradient(90deg, rgba(12, 26, 72, .92) 0 55%, rgba(12, 26, 72, .4) 100%), var(--ow2-banner) right center / auto 100% no-repeat, var(--b2-win); }

/* == ลดการเคลื่อนไหว: ภาพนิ่ง ไม่ยุบ ไม่เด้ง == */
@media (prefers-reduced-motion: reduce) {
  html .ow2-j-q:focus-within::before, html .side-menu-b:focus-visible::before, html .mapwrap.ow .ow2-toast:not([hidden]),
  html .mapwrap.ow .ow2-fanfare.ow2-pop, html .mapwrap.ow.ow-m-l .ow2-fanfare.ow2-pop, html .ow2-screen.ow2-in .ow2-j-win { animation: none; }
  html .ow2-q-btn:active, html .ow2-d-btn:active, html .ow2-mini-b:active, html .ow2-j-btn:active, html .ow2-m-tb:active, html .ow2-j-x:active, html .ow2-j-x2:active,
  html .ow2-fan-b:active, html .ow2-mini-shoot:active, html .ow2-j-chip:active, html .ow2-j-cf button:active, html .ow2-g-cards .ow2-meta-it:active,
  html .mapwrap.ow .ow2-sbtn:active, html .mapwrap.ow .ow2-tr-tg:active, html .mapwrap.ow .ow2-act:active { transform: none; }
}
/* โหมดสีบังคับ (Windows high contrast): ใช้สีระบบ */
@media (forced-colors: active) {
  html .ow2-q-dlg, html .ow2-d-dlg, html .ow2-j-list, html .mapwrap.ow .ow2-fanfare, html .side-menu-list { border: 2px solid CanvasText; }
}

/* ===== I (integrator) · hooks H9/H10/H15 ===== */
html .ow2-mini-ric { float: left; width: 48px; height: 48px; margin: 0 10px 4px 0; object-fit: contain; border-radius: 4px; background: var(--b2-ink); }
html .ow2-g-ti { width: 28px; height: 28px; margin-right: 6px; vertical-align: middle; object-fit: contain; }
html .ow2-j-top[data-fimg] { border: 12px solid transparent; border-image: var(--ow2-frame-img) var(--ow2-frame-sl, 24) fill / 12px stretch; }
html .mapwrap.ow[data-ow2-mimg] .ow-mini-ov .ow-mhero { width: 18px; height: 18px; margin: -16px 0 0 -9px; border: 0; border-radius: 0; box-shadow: none;
  background: var(--ow2-marker-img) center bottom / contain no-repeat; }
/* Figma UX 87:81: เป้ากดห่างกัน ≥ 8 px (แท็บ ชิป เครื่องมือแผนที่ ตัวกรอง) */
html .ow2-j-seg, html .ow2-j-regs, html .ow2-m-tools, html .ow2-m-leg { gap: 8px; }
/* แผนที่เต็มจอแนวตั้งเตี้ย (360×640): ย่อความสูงแผนที่ให้แถวเครื่องมืออยู่ในแผง เหนือแถบ "ปิดสมุด" */
@media (orientation: portrait) and (max-height: 700px) and (max-width: 759px) {
  html .ow2-m-vp { height: max(220px, calc(100vh - 360px)); height: max(220px, calc(100dvh - 360px)); min-height: 220px; }
}
/* สมุดบนมือถือแนวตั้ง: หัวสมุดเป็นหน้าต่างของตัวเอง (Figma B หน้าต่างหัว) */
@media (orientation: portrait) and (max-width: 759px) {
  html .ow2-j-top:not([data-fimg]) { margin: 6px 8px 2px; border-radius: 4px; box-shadow: var(--b2-frame-sm); }
  html .ow2-j-top:not([data-fimg]):not([data-art]) { background: var(--b2-win); }
}
html .ow2-j-nw { white-space: nowrap; }

/* == gui16-fix r2: หน้าต่าง HUD บนแผนที่ (.ow-win) + ปุ่มเดิน/กล้อง/สลับใบภารกิจ ไล่เฉดแบบเดียวกับ ow2 (สกินเท่านั้น ไม่แตะขนาด) == */
html .mapwrap.ow .ow-win { background: var(--b2-win); box-shadow: var(--b2-frame-sm); }
html .mapwrap.ow .ow-ch-t { color: var(--b2-gold-t); font-family: var(--fh, Kanit, sans-serif); font-weight: 600; text-shadow: 1px 1px 0 var(--b2-ink); }
html .mapwrap.ow .dp, html .mapwrap.ow .ow-btn, html .mapwrap.ow .ow-dock-tg { background: var(--b2-blue); border-color: var(--b2-ink); box-shadow: var(--b2-btn); }
html .mapwrap.ow .dp:active, html .mapwrap.ow .ow-btn:active, html .mapwrap.ow .ow-dock-tg:active { box-shadow: var(--b2-btn-down); }
html .mapwrap.ow .ow-btn[aria-expanded="true"] { background: var(--b2-row); }
/* เป้าหมายในกล่องเสนอ: มีเลขข้อแล้ว ไม่ต้องมีจุดนำหน้าซ้ำ */
html .ow2-q-sec:not(.ow2-q-rw) .ow2-q-list { list-style: none; padding-left: 0; }
/* แนวนอนจอเตี้ย: เนื้อหาเลื่อนพ้นแถบปุ่มติดล่าง */
@media (orientation: landscape) and (max-height: 520px) {
  html .ow2-q-dlg { padding-top: 10px; }
  html .ow2-q-head { gap: 10px; padding-bottom: 4px; margin-bottom: 4px; }
  html .ow2-q-face { width: 52px; height: 52px; flex-basis: 52px; }
  html .ow2-q-line { margin: 2px 0; font-size: 14.5px; line-height: 1.5; }
  html .ow2-q-sec { margin-top: 4px; padding-top: 4px; }
  html .ow2-q-btns { padding-top: 6px; padding-bottom: 10px; }
}
/* ปุ่ม "ไปที่เป้าหมาย" ท้ายตัวติดตาม */
html .mapwrap.ow .ow2-tr-go { flex: 0 0 44px; width: 44px; height: auto; min-height: 44px; }
/* หน้ารางวัล (Figma D 88:81): ช่องรางวัลเป็นแผ่นทองนูน ตัวหนังสือหมึก (≥ 5.16:1 ตาม §1.6) */
html .mapwrap.ow .ow2-fan-r li { background: var(--b2-gold); box-shadow: 0 0 0 1px var(--b2-ink), var(--b2-btn); color: var(--b2-on-gold); text-shadow: none; }
html .mapwrap.ow .ow2-fan-r li .ow2-fan-v, html .mapwrap.ow .ow2-fan-r li .ow2-fan-l,
html .mapwrap.ow .ow2-fan-r li.ow2-star, html .mapwrap.ow .ow2-fan-r .ow2-star .ow2-fan-v { color: var(--b2-on-gold); }
html .mapwrap.ow .ow2-fan-r .ow2-star .ow2-fan-v::before { content: ""; display: inline-block; width: .8em; height: .8em; margin-right: 4px; vertical-align: -.05em; background: var(--b2-on-gold);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
/* แนวนอนแบบย่อมาก: ซ่อนบรรทัดเควสต์ถัดไปด้วย (ดูได้ในสมุด) ให้หน้ารางวัลพอดีเหนือปุ่มเดินฝั่งซ้าย */
html .mapwrap.ow.ow-m-l .ow2-fan-xs .ow2-fan-n { display: none; }
html .mapwrap.ow.ow-m-l .ow2-fan-xs .ow2-fan-b { margin-top: 4px; }
/* แนวนอน: ช่องรางวัลบรรทัดเดียว (ค่า + ชื่อชนิด) ตัดด้วย … · หน้ารางวัลอยู่เหนือใบภารกิจเสมอ */
html .mapwrap.ow.ow-m-l .ow2-fan-r li { flex-direction: row; align-items: baseline; justify-content: center; gap: 4px; min-height: 36px; padding: 4px 6px; min-width: 0; }
html .mapwrap.ow.ow-m-l .ow2-fan-r li .ow2-fan-v { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; font-size: 14px; }
html .mapwrap.ow.ow-m-l .ow2-fan-r li .ow2-fan-l { white-space: nowrap; flex: 0 0 auto; }
html .mapwrap.ow .ow2-fanfare { z-index: 30; }
