/* zone_west.css — ส่วนจาก ui2 ทุกไฟล์ + online + arena (โหลดท้ายสุด) · ธีม UI โซน The Haunted West สร้างอัตโนมัติจากธีมทะเลทราย (tools/make_zone_west.py)
   ห้ามแก้มือ: แก้ที่สคริปต์แล้วรันใหม่ · สีต้นแบบ = ฉาก 4 ประตูปราสาท (18 ต.ค. ⚑ เนวิล) */

/* ---- จาก ui2.css ---- */
body[data-zone="west"] .job,
body[data-zone="west"] #btn-auto,
body[data-zone="west"] #btn-warp,
body[data-zone="west"] #btn-newgame,
body[data-zone="west"] #btn-export,
body[data-zone="west"] #btn-import {
  --img: url(../assets/ui/v2/west_n.png); --img-h: url(../assets/ui/v2/west_h.png); --img-p: url(../assets/ui/v2/west_p.png);
  color: #f0e6dc !important; text-shadow: 1px 1px 0 #16101c; }
body[data-zone="west"] .job.tiny,
body[data-zone="west"] #btn-fullscreen, body[data-zone="west"] #btn-rest,
body[data-zone="west"] .job.dismiss {
  --img: url(../assets/ui/v2/small_w_n.png); --img-h: url(../assets/ui/v2/small_w_h.png); --img-p: url(../assets/ui/v2/small_w_p.png); color: #d9cabc !important; }
body[data-zone="west"] .node { --img: url(../assets/ui/v2/small_w_n.png); --img-h: url(../assets/ui/v2/small_w_h.png); --img-p: url(../assets/ui/v2/small_w_p.png); color: #e3d6c9 !important; text-shadow: 1px 1px 0 #16101c; }
body[data-zone="west"] .node.on { --img: url(../assets/ui/v2/node_on_w_n.png); --img-h: url(../assets/ui/v2/node_on_w_h.png); --img-p: url(../assets/ui/v2/node_on_w_p.png); color: #1d1524 !important; text-shadow: 1px 1px 0 #ebe0d4; }
body[data-zone="west"] main > section { border-image-source: url(../assets/ui/v2/panel_west.png) !important; }
body[data-zone="west"] main > section > h2,
body[data-zone="west"] #col-log > h2 { background: #18121e; border-bottom-color: #16101c; box-shadow: 0 2px 0 #51263b; color: #e8ddd1 !important; text-shadow: 1px 1px 0 #100c14; }
body[data-zone="west"] #col-people .tabs .tab { --tab: url(../assets/ui/v2/tab_off_west.png); color: #bfaa9e !important; }
body[data-zone="west"] #col-people .tabs .tab.on { --tab: url(../assets/ui/v2/panel_west.png); color: #eee4d8 !important; }
body[data-zone="west"] #col-people .tabs .tab.on::before { background-image: url(../assets/ui/v2/tabjoin_l_west.png); }
body[data-zone="west"] #col-people .tabs .tab.on::after { background-image: url(../assets/ui/v2/tabjoin_r_west.png); }
body[data-zone="west"] #col-people .tab-page { border-image-source: url(../assets/ui/v2/panel_west.png); }
body[data-zone="west"] #topbar { border-image-source: url(../assets/ui/v2/panel_west.png) !important; }
body[data-zone="west"] #resources .res { background: #15101b !important; box-shadow: inset 0 2px 0 #261b2d, inset 0 -1px 0 #51263b !important; }
body[data-zone="west"] #tip { border-image-source: url(../assets/ui/v2/panel_west.png) !important; color: #ddcfc1 !important; }
body[data-zone="west"] #tip .tip-h { background: #18121e; border-bottom-color: #16101c; box-shadow: 0 2px 0 #51263b; color: #eee4d8 !important; }
body[data-zone="west"] .dd .menu { background: #18121e; box-shadow: inset 2px 2px 0 #722b3e, inset -2px -2px 0 #251a2c, 0 4px 0 #16101c; }
body[data-zone="west"] .dd .menu .row { border-top-color: #331e32; }
body[data-zone="west"] .dd .menu .row:hover:not(:disabled) { background: #51263b; box-shadow: inset 2px 0 0 #d6c7b8; }
body[data-zone="west"] .storerow { border-top-color: #51263b; }
body[data-zone="west"] .creator-mini { background: #15101b; box-shadow: inset 0 2px 0 #261b2d, inset 0 -1px 0 #51263b; }
body[data-zone="west"] .creator-mini .cm-name { color: #eee4d8; }
body[data-zone="west"] .wiki-mini { background: #15101b; box-shadow: inset 0 2px 0 #261b2d, inset 0 -1px 0 #51263b; }

/* ---- จาก ui2_cards.css ---- */
body[data-zone="west"] .cv-panel { border-image-source: url(../assets/ui/v2/panel_west.png); }
body[data-zone="west"] .cv-panel > .pf-h { background: #18121e; border-bottom-color: #16101c; box-shadow: 0 2px 0 #51263b; color: #e8ddd1; }
body[data-zone="west"] .cv-stats .st { background: #15101b; box-shadow: inset 1px 1px 0 #261b2d; }
body[data-zone="west"] .cv-item { background: #15101b; }

/* ---- จาก ui2_inner.css ---- */
body[data-zone="west"] { --in-bg: #15101b; --in-edge: #16101c; --in-hi: #261b2d; --in-lo: #51263b; }
body[data-zone="west"] .site-row.on { box-shadow: inset 3px 0 0 #d6c7b8, inset 1px 1px 0 var(--in-hi) !important; }

/* ---- จาก ui2_modal.css ---- */
body[data-zone="west"] .modal-box.confirm-box { border-image-source: url(../assets/ui/v2/panel_west.png); }
body[data-zone="west"] .confirm-box .c-title { background: #18121e; border-bottom-color: #16101c; box-shadow: 0 2px 0 #51263b; color: #e8ddd1; }
body[data-zone="west"] .confirm-box .c-text { color: #ddcfc1; }
body[data-zone="west"] .confirm-box .c-btn { --img: url(../assets/ui/v2/west_n.png); --img-h: url(../assets/ui/v2/west_h.png); --img-p: url(../assets/ui/v2/west_p.png); color: #f0e6dc !important; text-shadow: 1px 1px 0 #16101c; }
body[data-zone="west"] .away-box .aw-h { color: #e8ddd1; }

/* ---- จาก ui2_round.css ---- */
body[data-zone="west"] main > section,
body[data-zone="west"] #topbar,
body[data-zone="west"] #tip,
body[data-zone="west"] .cv-panel,
body[data-zone="west"] .modal-box.confirm-box {
  border-image: url(../assets/ui/v2/panel_west_r.png) 10 fill / 10px stretch !important; }
body[data-zone="west"] #col-people .tab-page { border-image: url(../assets/ui/v2/panel_west_rb.png) 10 fill / 10px stretch !important; }
body[data-zone="west"] #col-people .tabs .tab { border-image-source: url(../assets/ui/v2/tab_off_west_r.png) !important; }
body[data-zone="west"] #col-people .tabs .tab.on { border-image-source: url(../assets/ui/v2/panel_west_r.png) !important; }

/* ---- จาก ui2_mobile.css ---- */
@media (max-width: 820px) {
  body.m-mode[data-zone="west"] .m-nav { background: #110c16; border-top-color: #1f1727; }
  body[data-zone="west"] .m-menu .m-h { color: #e8ddd1; }
  body.m-mode[data-zone="west"] .m-menu #btn-fullscreen, body.m-mode[data-zone="west"] .m-menu #btn-rest { --img: url(../assets/ui/v2/west_n.png); --img-h: url(../assets/ui/v2/west_h.png); --img-p: url(../assets/ui/v2/west_p.png); color: #f0e6dc !important; }
}

/* ---- จาก online.css ---- */
body[data-zone="west"] .tt-btn {
  --img: url(../assets/ui/v2/west_n.png); --img-h: url(../assets/ui/v2/west_h.png); --img-p: url(../assets/ui/v2/west_p.png);
  color: #f0e6dc !important; text-shadow: 1px 1px 0 #16101c; }
body[data-zone="west"] #vname-tag .vn-box { background: #15101b; box-shadow: inset 0 2px 0 #261b2d, inset 0 -1px 0 #51263b; }
body[data-zone="west"] #vname-tag .vn-box:hover { box-shadow: inset 0 2px 0 #382034, inset 0 -1px 0 #7d3a49, 0 0 0 1px #7d3a49; }

/* ---- จาก arena.css ---- */
body[data-zone="west"] #col-tower .tabs .tab { --tab: url(../assets/ui/v2/tab_off_west.png); color: #bfaa9e !important; }
body[data-zone="west"] #col-tower .tabs .tab.on { --tab: url(../assets/ui/v2/panel_west.png); color: #eee4d8 !important; }
body[data-zone="west"] #col-tower .tabs .tab.on::before { background-image: url(../assets/ui/v2/tabjoin_l_west.png); }
body[data-zone="west"] #col-tower .tabs .tab.on::after { background-image: url(../assets/ui/v2/tabjoin_r_west.png); }
body[data-zone="west"] #col-tower .tab-page { border-image-source: url(../assets/ui/v2/panel_west.png); }
body[data-zone="west"] #col-tower .tab-page { border-image: url(../assets/ui/v2/panel_west_rb.png) 10 fill / 10px stretch !important; }
body[data-zone="west"] #col-tower .tabs .tab { border-image-source: url(../assets/ui/v2/tab_off_west_r.png) !important; }
body[data-zone="west"] #col-tower .tabs .tab.on { border-image-source: url(../assets/ui/v2/panel_west_r.png) !important; }

/* ---- ย้ำปุ่มเขียว/เทาของ ui2.css ทับปุ่มเล็กโซนนี้ (make_zone_west.py WEST_TAIL) ---- */
body[data-zone="west"] .job.on, body[data-zone="west"] .job.keep-on, body[data-zone="west"] .job.auto.on {
  --img: url(../assets/ui/v2/toggle_on_n.png); --img-h: url(../assets/ui/v2/toggle_on_h.png); --img-p: url(../assets/ui/v2/toggle_on_p.png);
  color: #eef7fd !important; text-shadow: 1px 1px 0 #0b1a08; }
body[data-zone="west"] .job.keep-toggle:not(.keep-on) {
  --img: url(../assets/ui/v2/off_n.png); --img-h: url(../assets/ui/v2/off_h.png); --img-p: url(../assets/ui/v2/off_p.png); color: #c3ccd8 !important; text-shadow: 1px 1px 0 #14181e; }
body[data-zone="west"] .job:disabled {
  --img: url(../assets/ui/v2/off_n.png) !important; --img-h: url(../assets/ui/v2/off_n.png) !important; --img-p: url(../assets/ui/v2/off_n.png) !important;
  color: #8794ab !important; text-shadow: 1px 1px 0 #14181e; cursor: not-allowed; }
body[data-zone="west"] #res-items-pop { background: #18121e; box-shadow: inset 2px 2px 0 #722b3e, inset -2px -2px 0 #251a2c, 0 4px 0 #16101c; }   /* กล่อง Items กรอบแบบเมนูเลือก (10 พ.ย.) */
