/* =====================================================================
   VIBE X TOWN — หน้าแรก (ข้อตกลงการใช้บริการ)
   ฉากเปิดแบบ "ลากได้" : ลากเมาส์แล้วแต่ละชั้นขยับคนละระยะ เกิดมิติลึก
   ---------------------------------------------------------------------
   ไฟล์นี้ใช้กับหน้าแรกหน้าเดียว เรียกจาก views/home.ejs
   ไม่ได้แตะ style.css เลย ไม่ชอบก็ลบ <link> ในไฟล์นั้นทิ้งได้ทันที

   หลักที่ยึด
     - ขยับแค่ transform กับ opacity การ์ดจอทำงานแทน CPU หน้าเลยลื่น
     - ทุกอย่างปิดเองเมื่อผู้ใช้ตั้งเครื่องว่า "ลดการเคลื่อนไหว"
     - โครง DOM ส่วนข้อตกลงเหมือนเดิมเป๊ะ ตัวแก้ไขของแอดมินทำงานต่อได้
   ===================================================================== */

/* หน้านี้คุมฉากหลังเอง ปิดภาพหัวของธีมหลักไม่ให้ซ้อนกันสองชั้น */
html:has(#vxHome)::before,
html:has(#vxHome)::after,
body.vx-page::before,
body.vx-page::after { display: none; }

html:has(#vxHome) { scroll-behavior: smooth; }

/* =====================================================================
   1) เวทีฉากเปิด
   ---------------------------------------------------------------------
   --mx / --my คือตำแหน่งที่ลาก (-1 ถึง 1) ตั้งค่าจาก js/home.js
   แต่ละชั้นมี --f เป็นตัวคูณของตัวเอง ชั้นหน้าขยับเยอะ ชั้นหลังขยับน้อย
   นั่นคือที่มาของความรู้สึกลึก
   ===================================================================== */
.vx-hero {
  position: relative;
  /* svh = ความสูงจอจริงบนมือถือ ไม่กระตุกตอนแถบที่อยู่เว็บหด-ขยาย */
  min-height: 100svh;
  display: grid;
  /* แถวบนปล่อยให้ภาพได้โชว์ แถวล่างเป็นตัวหนังสือ */
  grid-template-rows: 1fr auto;
  align-items: end;
  overflow: hidden;
  padding: 92px 0 96px;
  /* ให้รู้ว่าลากได้ */
  cursor: grab;
  touch-action: pan-y;             /* ลากแนวตั้ง = เลื่อนหน้าได้ตามปกติ */
  user-select: none;
  -webkit-user-select: none;
  perspective: 1400px;
}
.vx-hero.is-drag { cursor: grabbing; }

/* ทุกชั้นวางซ้อนกันกลางจอ แล้วขยับตามตัวคูณของตัวเอง */
.vx-layer {
  position: absolute;
  inset: -10%;
  pointer-events: none;
  transform:
    translate3d(calc(var(--mx, 0) * var(--f, 0px)), calc(var(--my, 0) * var(--f, 0px)), 0);
  will-change: transform;
}

/* ---------- ชั้นที่ 1 : คีย์อาร์ตของเซิร์ฟ (ขยับน้อยสุด = อยู่ไกลสุด) ----------
   ตัวนอกขยับตามเมาส์ ตัวใน <i> ซูมช้า ๆ ของมันเอง
   แยกกันเพราะ transform ใส่ซ้อนกันบน element เดียวไม่ได้ */
/* ภาพไม่กินเต็มจอ แต่กินช่วงบน แล้วจางหายลงไปหาที่ว่างของตัวหนังสือ
   ทำแบบนี้เพราะภาพเป็นแนวนอน 16:9 ถ้ายืดเต็มจอสูง ๆ จะถูกครอบจนเห็นแต่หน้า
   กันไว้ 34% ล่างให้ตัวหนังสือ ภาพเลยได้สัดส่วนกว้างใกล้ของจริง เห็นองค์ประกอบครบ */
.vx-l-bg { --f: 12px; inset: -5% -5% 34% -5%; }
.vx-l-bg > i {
  display: block; position: absolute; inset: 0;
  background: url('../img/hero-art.webp') center 30% / cover no-repeat;
  filter: saturate(.98) brightness(.92) contrast(1.02);
  /* ขอบล่างจางหายไปเอง ไม่มีเส้นตัดให้เห็น */
  mask-image: linear-gradient(to bottom, #000 58%, rgba(0,0,0,.45) 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, rgba(0,0,0,.45) 82%, transparent 100%);
  animation: vxKen 56s var(--ease-soft) infinite alternate;
}
/* จอแคบโหลดไฟล์เล็กกว่า ประหยัดเน็ตผู้เล่น */
@media (max-width: 900px) {
  .vx-l-bg { inset: -4% -4% 46% -4%; }
  .vx-l-bg > i { background-image: url('../img/hero-art-sm.webp'); background-position: center 26%; }
}

/* ---------- ชั้นที่ 2 : แสงเรืองหลังตัวละคร ---------- */
.vx-l-glow {
  --f: 26px;
  background:
    radial-gradient(46% 40% at 50% 30%, rgba(205, 230, 255, .16), transparent 70%),
    radial-gradient(72% 52% at 50% 36%, rgba(103, 115, 128, .14), transparent 72%);
  mix-blend-mode: screen;
}

/* ---------- เกรดสี ----------
   กดเฉพาะขอบกับครึ่งล่าง ส่วนกลางภาพปล่อยให้สว่าง
   จะได้เห็นหน้าตัวละครชัด ๆ แต่ตัวหนังสือข้างล่างก็ยังอ่านออก */
.vx-grade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(132% 86% at 50% 24%, transparent 26%, rgba(12, 14, 18, .52) 100%),
    linear-gradient(180deg, rgba(14, 16, 20, .55) 0%, transparent 18%, transparent 36%, rgba(20, 22, 28, .72) 58%, var(--bg) 78%);
}

/* ---------- ฝุ่นลอยหน้าสุด : ขยับเยอะสุด = อยู่ใกล้สุด ---------- */
.vx-l-dust {
  --f: 64px;
  opacity: .5;
  background-image:
    radial-gradient(1.6px 1.6px at 18% 24%, rgba(205, 230, 255, .85), transparent 60%),
    radial-gradient(1.2px 1.2px at 72% 16%, rgba(205, 230, 255, .6), transparent 60%),
    radial-gradient(2px 2px at 44% 68%, rgba(255, 255, 255, .7), transparent 60%),
    radial-gradient(1.3px 1.3px at 86% 58%, rgba(205, 230, 255, .55), transparent 60%),
    radial-gradient(1.1px 1.1px at 28% 82%, rgba(205, 230, 255, .5), transparent 60%),
    radial-gradient(1.7px 1.7px at 62% 38%, rgba(255, 255, 255, .5), transparent 60%),
    radial-gradient(1.2px 1.2px at 8% 56%, rgba(205, 230, 255, .45), transparent 60%),
    radial-gradient(1.4px 1.4px at 94% 30%, rgba(205, 230, 255, .5), transparent 60%);
  animation: vxDrift 24s linear infinite alternate;
}

/* ---------- เกรนฟิล์ม : จุดรบกวนจาง ๆ ทำให้ภาพดูเป็นฟิล์ม ---------- */
.vx-grain {
  position: absolute;
  inset: -150%;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: vxGrain 1.1s steps(4) infinite;
}

[data-theme='light'] .vx-l-bg { filter: saturate(.5) brightness(1.06); opacity: .55; }
[data-theme='light'] .vx-grade {
  background:
    radial-gradient(118% 92% at 50% 36%, transparent 42%, rgba(237, 241, 246, .62) 100%),
    linear-gradient(180deg, rgba(237, 241, 246, .6) 0%, rgba(237, 241, 246, .26) 32%, rgba(237, 241, 246, .84) 78%, var(--bg) 100%);
}
[data-theme='light'] .vx-grain { opacity: .028; }
[data-theme='light'] .vx-l-dust { opacity: .3; }

@keyframes vxKen {
  from { transform: scale(1.005); }
  to   { transform: scale(1.07) translate(-1%, -1.4%); }
}
@keyframes vxDrift {
  from { background-position: 0 0; }
  to   { background-position: -40px -70px; }
}
@keyframes vxGrain {
  0%   { transform: translate3d(0, 0, 0); }
  25%  { transform: translate3d(-3%, 2%, 0); }
  50%  { transform: translate3d(2%, -3%, 0); }
  75%  { transform: translate3d(-2%, -2%, 0); }
  100% { transform: translate3d(3%, 1%, 0); }
}

/* =====================================================================
   2) ตัวละครลอยหน้า (ไม่บังคับ)
   ---------------------------------------------------------------------
   วางไฟล์ public/img/hero-char.png (พื้นหลังโปร่ง) แล้วมันจะโผล่เอง
   ไม่มีไฟล์ ชั้นนี้ลบตัวเองทิ้ง หน้ายังสวยปกติ ไม่มีรูปแตก
   ===================================================================== */
.vx-char {
  --f: 46px;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end center;
  pointer-events: none;
  transform:
    translate3d(calc(var(--mx, 0) * var(--f)), calc(var(--my, 0) * var(--f)), 0)
    rotateY(calc(var(--mx, 0) * 4deg))
    rotateX(calc(var(--my, 0) * -3deg));
  will-change: transform;
}
.vx-char img {
  max-height: 86%;
  max-width: min(92vw, 820px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .55));
  animation: vxFloat 9s var(--ease-soft) infinite alternate;
}
@keyframes vxFloat {
  from { transform: translateY(0); }
  to   { transform: translateY(-14px); }
}

/* =====================================================================
   3) ตัวหนังสือ
   ===================================================================== */
.vx-copy {
  --f: 30px;
  position: relative;
  z-index: 2;
  width: 100%;
  grid-row: 2;
  transform:
    translate3d(calc(var(--mx, 0) * var(--f)), calc(var(--my, 0) * var(--f)), 0)
    translateY(var(--vx-shift, 0px));
  opacity: var(--vx-fade, 1);
  will-change: transform, opacity;
  text-align: center;
}

/* มีไฟล์ตัวละคร ให้ตัวหนังสือหลบไปซ้าย ตัวละครได้ที่ยืน */
.vx-hero.has-char .vx-copy { text-align: left; }
.vx-hero.has-char .vx-copy .container { max-width: var(--maxw); }
.vx-hero.has-char .vx-lead,
.vx-hero.has-char .vx-cta { margin-left: 0; }

/* ---------- ชื่อเรื่อง ซ้อนเป็นชั้น ๆ ---------- */
.vx-title {
  margin: 0;
  font-weight: var(--w-bold);
  line-height: .92;
  letter-spacing: -.02em;
  font-size: clamp(30px, 5.8vw, 74px);
}
.vx-title .vx-l {
  display: block;
  padding: 0 .04em;         /* กันเงาตัวอักษรโดนตัดตอนเบลอ */
}
/* บรรทัดรอง — ตัวเล็ก ถ่างช่องไฟกว้าง
   text-indent ชดเชยช่องไฟของตัวสุดท้าย ไม่ให้ดูเยื้องซ้าย */
.vx-title .vx-l2 {
  /* .28em ของหัวข้อ แต่ห้ามเล็กกว่า 11px
     ไม่งั้นบนมือถือที่หัวข้อเหลือ 30px บรรทัดนี้จะเหลือ 8px อ่านไม่ออก */
  font-size: max(11px, .28em);
  font-weight: var(--w-regular);
  letter-spacing: .38em;
  opacity: .6;
  line-height: 1;
  margin-top: .66em;
  text-indent: .38em;
}

/* แสงกวาดผ่านชื่อเรื่องรอบเดียวตอนเปิดหน้า
   ไล่สีสว่างทั้งเส้น ไม่มีช่วงสีเทา ไม่ว่าแสงกวาดไปหยุดตรงไหนตัวหนังสือก็ยังสว่าง */
.vx-title .grad {
  background-image: linear-gradient(104deg,
    var(--accent) 0%, var(--accent) 24%, #FFFFFF 42%, var(--accent) 62%, var(--accent) 100%);
  background-size: 260% 100%;
  background-position: 120% 0;
}
/* เงาจาง ๆ ให้ตัวหนังสือลอยออกจากภาพที่รายละเอียดเยอะ */
.vx-title { text-shadow: 0 10px 40px rgba(0, 0, 0, .55); }

.vx-lead {
  margin: 18px auto 0;
  /* กว้างพอให้อยู่บรรทัดเดียวบนจอคอม จอแคบค่อยตกบรรทัดเอง */
  max-width: min(94vw, 860px);
  font-size: clamp(13.5px, 1.5vw, 15px);
  color: var(--text);
  opacity: .58;
  line-height: 1.75;
}

.vx-cta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.vx-hero.has-char .vx-cta { justify-content: flex-start; }
.vx-cta .btn {
  pointer-events: auto;
  transition: transform var(--t-mid) var(--ease), opacity var(--t-fast) var(--ease-soft);
}
.vx-cta .btn:hover { transform: translateY(-2px); }
.vx-cta .btn:active { transform: translateY(0) scale(.98); }

/* =====================================================================
   4) ป้ายมุมจอ
   ===================================================================== */
/* ---------------------------------------------------------------
   ป้ายมุมจอ
   ---------------------------------------------------------------
   คู่ฟอนต์แบบที่งานหรู ๆ ใช้กัน
     บรรทัดบน  เซริฟบาง ถ่างช่องไฟกว้าง  -> ให้ความรู้สึกประณีต
     เส้นคั่นบาง 1 px                     -> ให้จังหวะหายใจ
     บรรทัดล่าง ตัวพิมพ์เล็กมาก ถ่างกว้าง  -> ให้ความรู้สึกเป็นของมีระดับ
   จุดสำคัญคือ "ที่ว่าง" ไม่ใช่ขนาด ยิ่งถ่างยิ่งดูแพง
   --------------------------------------------------------------- */
.vx-tag {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--text);
  pointer-events: none;
  /* ป้ายวางทับบนภาพที่บางจุดสว่างมาก เงาจาง ๆ ช่วยให้ยังอ่านออก */
  text-shadow: 0 2px 12px rgba(0, 0, 0, .7);
  animation: vxEnter 1.3s .9s var(--ease) both;
}
.vx-tag__a {
  font-family: 'Cormorant Garamond', 'Anuphan', Georgia, serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  line-height: 1;
  opacity: .78;
  /* ชดเชยช่องไฟของตัวสุดท้าย ไม่ให้กองซ้ายผิดจังหวะ */
  text-indent: .3em;
}
.vx-tag__rule {
  display: block;
  width: 36px;
  height: 1px;
  background: linear-gradient(to right, var(--accent), transparent);
  opacity: .6;
}
.vx-tag__b {
  font-size: 8.5px;
  font-weight: var(--w-medium);
  letter-spacing: .34em;
  text-transform: uppercase;
  line-height: 1;
  opacity: .38;
  text-indent: .34em;
}

.vx-tag--tl { top: 96px; left: 30px; align-items: flex-start; }
.vx-tag--tr { top: 96px; right: 30px; align-items: flex-end; text-align: right; }
/* ฝั่งขวา เส้นคั่นต้องไล่สีกลับด้าน ให้ชี้เข้าหาขอบจอเหมือนกัน */
.vx-tag--tr .vx-tag__rule { background: linear-gradient(to left, var(--accent), transparent); }
.vx-tag--tr .vx-tag__a,
.vx-tag--tr .vx-tag__b { text-indent: 0; padding-right: .04em; }

/* ---------- คำใบ้ว่าลากได้ ---------- */
.vx-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text);
  /* จางหายเองตอนเริ่มเลื่อนหรือเริ่มลาก */
  opacity: calc(var(--vx-cue, 1) * .4);
  transition: opacity .35s linear;
  pointer-events: none;
}
/* ---------------------------------------------------------------
   ข้อควรระวัง : จังหวะโผล่ตอนเปิดหน้า ต้องอยู่คนละชั้นกับการจางตามการเลื่อน
   ---------------------------------------------------------------
   ถ้าใส่ animation ที่ขยับ opacity ไว้ชั้นเดียวกัน
   แอนิเมชันจะชนะเสมอ แล้วค่าที่คำนวณจากการเลื่อนจะไม่มีผลเลย
   คำใบ้ก็จะค้างอยู่ไม่ยอมจางหาย
   --------------------------------------------------------------- */
.vx-hint__in {
  display: flex; align-items: center; gap: 10px;
  animation: vxEnter 1.4s 1.15s var(--ease) both;
}
.vx-hint__arrow {
  width: 26px; height: 1px;
  background: linear-gradient(to right, transparent, var(--accent));
  position: relative; overflow: hidden;
}
.vx-hint__arrow::after {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 9px; height: 1px; background: #fff;
  animation: vxSlide 2.2s var(--ease-soft) infinite;
}
.vx-hint__arrow.is-left { transform: scaleX(-1); }
@keyframes vxSlide {
  0%   { transform: translateX(-10px); opacity: 0; }
  35%  { opacity: 1; }
  100% { transform: translateX(28px); opacity: 0; }
}

/* =====================================================================
   4.5) ปุ่ม "แก้ไขหน้านี้" ของแอดมิน
   ---------------------------------------------------------------------
   ปุ่มนี้ตัวแก้ไขข้อตกลง (tos-editor.js) เป็นคนสร้าง ไม่ได้อยู่ในไฟล์นี้
   js/home.js จะไปหาแล้วติดคลาส vx-edit-fab ให้ เราค่อยจัดหน้าตาทับ
   ลอกค่ามาจาก .ed-fab ในหน้ากฎเซิร์ฟเวอร์ (rules-site/editor.css)
   เพื่อให้สองหน้าหน้าตาเหมือนกัน

   ใส่ !important เพราะต้องทับสไตล์ที่ตัวแก้ไขใส่มากับตัวเอง
   ===================================================================== */
.vx-edit-fab {
  position: fixed !important;
  right: 22px !important;
  bottom: 22px !important;
  left: auto !important;
  top: auto !important;
  z-index: 200 !important;
  height: 36px !important;
  padding: 0 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: var(--accent-grad) !important;
  color: var(--accent-ink) !important;
  border: none !important;
  border-radius: 8px !important;
  font-family: var(--font-sans) !important;
  font-weight: var(--w-medium) !important;
  font-size: 13.5px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  opacity: .88;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .6) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: opacity .2s ease, scale .2s ease;
}
.vx-edit-fab:hover { opacity: 1; }
.vx-edit-fab:active { scale: .95; }
.vx-edit-fab svg { width: 14px; height: 14px; flex: none; }

/* =====================================================================
   5) ส่วนข้อตกลง
   ===================================================================== */
.vx-terms { padding: 0 0 56px; position: relative; z-index: 2; }

.vx-terms__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
}
.vx-terms__head h2 {
  margin: 0;
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: var(--w-medium);
  letter-spacing: .04em;
  white-space: nowrap;
}
.vx-terms__head .vx-rule {
  flex: 1; height: 1px;
  background: linear-gradient(to right, var(--border-strong), transparent);
}

/* กล่องข้อตกลง — โครงข้างในเหมือนเดิมทุกอย่าง แค่เพิ่มระยะหายใจ */
.vx-doc { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.vx-doc .tos-section { padding: 22px 0; }

/* =====================================================================
   6) จังหวะคลี่ตัวเมื่อเลื่อนถึง
   ===================================================================== */
.vx-rise {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  filter: blur(14px);
  transition:
    opacity 1.05s var(--ease),
    transform 1.05s var(--ease),
    filter 1.05s var(--ease);
  transition-delay: var(--d, 0s);
}
.vx-rise.is-in { opacity: 1; transform: none; filter: blur(0); }

/* ในกล่องข้อตกลง ไล่ขึ้นทีละข้อ
   ใช้ nth-child แทนการใส่คลาสในแต่ละแถว เพราะตัวแก้ไขของแอดมิน
   สร้างแถวพวกนี้ใหม่ได้ ถ้าใส่คลาสไว้จะหายไปตอนมันวาดใหม่ */
.vx-doc .tos-warning,
.vx-doc .tos-section,
.vx-doc .divider,
.vx-doc .center,
.vx-doc .agree-bar {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  filter: blur(9px);
  transition:
    opacity .85s var(--ease),
    transform .85s var(--ease),
    filter .85s var(--ease);
}
.vx-doc.is-in .tos-warning,
.vx-doc.is-in .tos-section,
.vx-doc.is-in .divider,
.vx-doc.is-in .center,
.vx-doc.is-in .agree-bar { opacity: 1; transform: none; filter: blur(0); }

.vx-doc.is-in .tos-section:nth-of-type(1) { transition-delay: .10s; }
.vx-doc.is-in .tos-section:nth-of-type(2) { transition-delay: .18s; }
.vx-doc.is-in .tos-section:nth-of-type(3) { transition-delay: .26s; }
.vx-doc.is-in .tos-section:nth-of-type(4) { transition-delay: .34s; }
.vx-doc.is-in .tos-section:nth-of-type(n+5) { transition-delay: .42s; }
.vx-doc.is-in .divider,
.vx-doc.is-in .center { transition-delay: .46s; }
.vx-doc.is-in .agree-bar { transition-delay: .54s; }

.vx-doc .tos-no { transition: box-shadow .7s var(--ease); }
.vx-doc.is-in .tos-no { box-shadow: 0 0 0 1px var(--border-strong), 0 0 26px -8px var(--glow); }

/* =====================================================================
   7) จังหวะเปิดหน้า
   ===================================================================== */
@keyframes vxSweep {
  from { background-position: 120% 0; }
  to   { background-position: -60% 0; }
}
@keyframes vxEnter {
  from { opacity: 0; transform: translate3d(0, 34px, 0); filter: blur(16px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

.vx-hero .vx-title .vx-l1 { animation: vxEnter 1.25s .12s var(--ease) both; }
.vx-hero .vx-title .vx-l2 { animation: vxEnter 1.25s .28s var(--ease) both; }
.vx-hero .vx-lead         { animation: vxEnter 1.25s .34s var(--ease) both; }
.vx-hero .vx-cta          { animation: vxEnter 1.25s .48s var(--ease) both; }
.vx-hero .vx-char img     { animation: vxEnter 1.5s .22s var(--ease) both, vxFloat 9s 1.7s var(--ease-soft) infinite alternate; }
.vx-hero .vx-title .grad  { animation: vxSweep 2.6s 1.05s var(--ease-soft) 1 forwards; }

/* =====================================================================
   8) จอเล็ก
   ===================================================================== */
@media (max-width: 900px) {
  .vx-hero { padding: 80px 0 92px; min-height: 92svh; }
  /* จอแคบไม่มีที่ให้ตัวหนังสือหลบ กลับมาอยู่กลางเหมือนเดิม */
  .vx-hero.has-char .vx-copy { text-align: center; }
  .vx-hero.has-char .vx-cta { justify-content: center; }
  .vx-char img { max-height: 58%; opacity: .5; }
  .vx-title .vx-l2 { letter-spacing: .28em; text-indent: .28em; }
  .vx-cta { flex-direction: column; align-items: stretch; }
  .vx-cta .btn { justify-content: center; }
  .vx-tag { display: none; }
  .vx-hint { bottom: 16px; }
  /* เกรนกินแรงวาดบนมือถือ ปิดไปเลย ภาพแทบไม่ต่าง */
  .vx-grain { display: none; }
}

/* =====================================================================
   9) เคารพการตั้งค่าของผู้ใช้
   ผู้ที่ตั้งเครื่องว่า "ลดการเคลื่อนไหว" จะเห็นหน้าเดียวกันแบบนิ่ง ๆ
   ครบทุกข้อความ ไม่มีอะไรหาย
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html:has(#vxHome) { scroll-behavior: auto; }
  .vx-hero { cursor: default; }
  .vx-l-bg, .vx-l-dust, .vx-grain,
  .vx-hint__arrow::after,
  .vx-hero .vx-title .vx-l1,
  .vx-hero .vx-title .vx-l2,
  .vx-hero .vx-lead,
  .vx-hero .vx-cta,
  .vx-hero .vx-char img,
  .vx-hero .vx-title .grad,
  .vx-tag, .vx-hint__in { animation: none !important; }

  .vx-layer, .vx-char, .vx-copy { transform: none !important; opacity: 1 !important; }
  .vx-title .grad { background-image: var(--accent-grad); background-position: 0 0; }


  .vx-rise,
  .vx-doc .tos-warning,
  .vx-doc .tos-section,
  .vx-doc .divider,
  .vx-doc .center,
  .vx-doc .agree-bar {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}
