/* =====================================================================
   โครงหน้าแบบใหม่ (ทุกหน้าผู้เล่น ยกเว้นแดชบอร์ด) — ใส่เป็นสไตล์ชีตสุดท้ายโดย src/assets.js
   แนวเดียวกับเว็บเมืองอื่น: แถบบนเต็มความกว้าง · เมนูตัวหนังสือ + เส้นใต้หน้าปัจจุบัน
   · รายการเลื่อนลงธรรมดา · ท้ายเว็บเป็นข้อความ · การ์ดค่อย ๆ ลอยขึ้น
   ตัวเลือก html:not(#c1):not(#c2):not(#c3) ใช้ดันความสำคัญให้ชนะธีมเก่า (soft / neon / vibe / esx)
   ===================================================================== */

/* ---------- แถบบน ---------- */
html:not(#c1):not(#c2):not(#c3) header.nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 60;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 0 !important;
  background: rgba(6, 5, 8, 0.82) !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
}

html:not(#c1):not(#c2):not(#c3) header.nav .nav-in {
  display: flex !important;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 1200px !important;
  height: 72px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
}

html:not(#c1):not(#c2):not(#c3) .vt-logo {
  width: auto;
  height: 46px;
  filter: none;
}

html:not(#c1):not(#c2):not(#c3) .vt-brand:hover .vt-logo {
  transform: none;
}

/* เมนูตัวหนังสือ */
html:not(#c1):not(#c2):not(#c3) .vt-nav {
  flex: 1;
  justify-content: center;
  gap: 2px;
  height: 100%;
}

html:not(#c1):not(#c2):not(#c3) .vn-grp {
  position: relative;
  display: flex;
  height: 100%;
}

html:not(#c1):not(#c2):not(#c3) .vn-top {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 100% !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.68) !important;
  font: 500 15px/1 'Kanit', 'IBM Plex Sans Thai', system-ui, sans-serif !important;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

html:not(#c1):not(#c2):not(#c3) .vn-top > svg {
  display: none;
}

html:not(#c1):not(#c2):not(#c3) .vn-top::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #f293d4, #6ebbf7);
  transform: scaleX(0);
  transition: transform 0.25s;
}

html:not(#c1):not(#c2):not(#c3) .vn-top:hover,
html:not(#c1):not(#c2):not(#c3) .vn-grp.open > .vn-top,
html:not(#c1):not(#c2):not(#c3) .vn-top.on,
html:not(#c1):not(#c2):not(#c3) .vn-grp.on > .vn-top {
  color: #fff !important;
}

html:not(#c1):not(#c2):not(#c3) .vn-top.on::after,
html:not(#c1):not(#c2):not(#c3) .vn-grp.on > .vn-top::after {
  transform: scaleX(1);
}

html:not(#c1):not(#c2):not(#c3) .vn-chev {
  display: grid;
  width: 14px;
  height: 14px;
  margin: 0;
  opacity: 0.6;
  transition: rotate 0.2s;
}

html:not(#c1):not(#c2):not(#c3) .vn-chev svg {
  width: 14px;
  height: 14px;
}

html:not(#c1):not(#c2):not(#c3) .vn-grp.open .vn-chev {
  rotate: 180deg;
}

/* รายการเลื่อนลง */
html:not(#c1):not(#c2):not(#c3) .vn-dd {
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  z-index: 80;
  display: grid;
  gap: 2px;
  min-width: 290px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 16px 16px;
  background: #0d0c10;
  box-shadow: 0 24px 50px -20px #000;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity 0.16s, visibility 0.16s, transform 0.2s;
}

html:not(#c1):not(#c2):not(#c3) .vn-grp.open .vn-dd {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

html:not(#c1):not(#c2):not(#c3) .vn-di {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  transition: background 0.15s;
}

html:not(#c1):not(#c2):not(#c3) .vn-di:hover,
html:not(#c1):not(#c2):not(#c3) .vn-di:focus-visible {
  background: rgba(255, 255, 255, 0.05);
}

html:not(#c1):not(#c2):not(#c3) .vn-dic {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  background: rgba(242, 147, 212, 0.1);
  color: #f293d4;
}

html:not(#c1):not(#c2):not(#c3) .vn-dic svg {
  width: 18px;
  height: 18px;
}

html:not(#c1):not(#c2):not(#c3) .vn-di.on .vn-dic {
  background: linear-gradient(135deg, #f293d4, #6ebbf7);
  color: #141118;
}

html:not(#c1):not(#c2):not(#c3) .vn-dtx {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

html:not(#c1):not(#c2):not(#c3) .vn-dtx b {
  font: 500 15px/1.3 'Kanit', 'IBM Plex Sans Thai', system-ui, sans-serif;
}

html:not(#c1):not(#c2):not(#c3) .vn-dtx small {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
}

/* ของเดิมที่ไม่ใช้แล้ว */
html:not(#c1):not(#c2):not(#c3) .xm-drop,
html:not(#c1):not(#c2):not(#c3) .vglow,
html:not(#c1):not(#c2):not(#c3) .vt-nav .ex-ind {
  display: none !important;
}

/* ขวา: ค้นหา · ToS · คนออนไลน์ · ภาษา · โปรไฟล์ */
html:not(#c1):not(#c2):not(#c3) header.nav .nav-r {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

html:not(#c1):not(#c2):not(#c3) .vt-search {
  height: 40px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  box-shadow: none !important;
}

html:not(#c1):not(#c2):not(#c3) .vt-tos {
  padding: 0 4px;
  color: rgba(255, 255, 255, 0.68);
  font: 500 15px/1 'Kanit', 'IBM Plex Sans Thai', system-ui, sans-serif;
  text-decoration: none;
  transition: color 0.2s;
}

html:not(#c1):not(#c2):not(#c3) .vt-tos:hover {
  color: #fff;
}

html:not(#c1):not(#c2):not(#c3) .vt-live,
html:not(#c1):not(#c2):not(#c3) .lang-sw,
html:not(#c1):not(#c2):not(#c3) .ubtn {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  box-shadow: none !important;
}

@media (max-width: 1023.98px) {
  html:not(#c1):not(#c2):not(#c3) header.nav .nav-in {
    height: 60px !important;
    padding: 0 14px !important;
    gap: 10px;
  }

  html:not(#c1):not(#c2):not(#c3) .vt-logo {
    height: 38px;
  }

  html:not(#c1):not(#c2):not(#c3) .vt-tos {
    display: none;
  }
}

/* ---------- ท้ายเว็บ: ข้อความเฉย ๆ ---------- */
html:not(#c1):not(#c2):not(#c3) .sitefoot,
html:not(#c1):not(#c2):not(#c3) .sitefoot-in {
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html:not(#c1):not(#c2):not(#c3) .sitefoot {
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

html:not(#c1):not(#c2):not(#c3) .sitefoot-in {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 22px 24px !important;
}
