/* ===========================================================================
   มนต์ตรา ทาโร่ Montra Tarot — สไตล์กลางของเว็บไซต์
   สีแบรนด์: อินดิโก #171233 · ทอง #d9b877
   การเคลื่อนไหวแบบ Apple: Liquid Glass · ไฮไลต์ไหลตาม · หน้าเปลี่ยนแบบ morph
   =========================================================================== */

:root {
  --ink:        #171233;
  --ink-2:      #221a4a;
  --ink-3:      #332a5e;
  --gold:       #d9b877;
  --gold-hi:    #f3dca0;
  --gold-deep:  #a8853f;
  --cream:      #faf7f2;
  --cream-2:    #f1ebe0;
  --line:       #e3dbcb;
  --text:       #2a2440;
  --text-soft:  #5f5878;
  --on-dark:    #ece7f5;
  --on-dark-soft:#a99fc6;
  --danger:     #8c2f39;
  --ok:         #2f6b4f;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 26px;
  --shadow: 0 1px 2px rgba(23,18,51,.04), 0 8px 24px rgba(23,18,51,.06);
  --shadow-lg: 0 2px 4px rgba(23,18,51,.05), 0 20px 56px rgba(23,18,51,.12);
  --wrap: 1120px;
  --gut: 16px;

  /* จังหวะการเคลื่อนไหว — ออกตัวเร็ว หยุดนุ่ม แบบ iOS · spring สำหรับของที่ไหล */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.32, 1.28, .52, 1);
  --fast: .18s;
  --slow: .42s;

  /* ฟอนต์: Latin ใช้ฟอนต์ระบบ (SF บนเครื่อง Apple) · ไทยใช้ IBM Plex Sans Thai */
  --sans: "IBM Plex Sans Thai", -apple-system, BlinkMacSystemFont, "SF Pro Text",
          "Segoe UI", system-ui, sans-serif;
  --serif: "Trirong", "Times New Roman", Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--text);
  font-family: var(--sans); font-size: 16.5px; font-weight: 300; line-height: 1.78;
  letter-spacing: -.003em; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: var(--serif); font-weight: 500; line-height: 1.3; color: var(--ink);
  margin: 0 0 .5em; letter-spacing: -.018em;
}
h1 { font-size: clamp(2rem, 5.4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.7vw, 2.2rem); }
h3 { font-size: clamp(1.12rem, 2.4vw, 1.35rem); }
p  { margin: 0 0 1.1em; }
a  { color: var(--gold-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 4px; }

/* ไอคอนเส้น */
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.ic.inline { color: var(--gold-deep); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: 780px; }
.center { text-align: center; }
.lead { font-size: 1.08rem; color: var(--text-soft); }
.muted { color: var(--text-soft); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
section { padding-block: clamp(48px, 7vw, 84px); }
.tight { padding-block: clamp(32px, 4vw, 48px); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--ink); padding: 12px 18px; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

/* ── แถบเมนู · Liquid Glass ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 40; color: var(--on-dark);
  background: linear-gradient(180deg, rgba(34,26,74,.82), rgba(23,18,51,.74));
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid rgba(217,184,119,.18);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.04);
  view-transition-name: site-nav;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav { background: var(--ink); }
}
.nav-in {
  max-width: var(--wrap); margin-inline: auto; padding: 10px var(--gut);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.brand {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 500; letter-spacing: -.01em;
  color: var(--cream); text-decoration: none; display: flex; align-items: center; gap: 9px;
  margin-right: auto; transition: opacity var(--fast) var(--ease);
}
.brand img { width: 30px; height: auto; }
.brand:hover { opacity: .8; color: var(--cream); }
.brand .en { font-family: var(--sans); font-size: .64rem; letter-spacing: .2em;
  color: var(--gold); font-weight: 400; }

.menu { position: relative; display: flex; gap: 2px; order: 2; }
.menu a {
  position: relative; z-index: 1;
  color: var(--on-dark-soft); text-decoration: none; font-size: .9rem; font-weight: 300;
  padding: 7px 12px; border-radius: 999px; white-space: nowrap;
  transition: color var(--slow) var(--ease), background var(--fast) var(--ease);
}
.menu a:hover { color: var(--cream); }
.menu a[aria-current="page"] { color: var(--ink); background: var(--gold); font-weight: 400; }
/* เมื่อ JS ทำงาน: ไฮไลต์เป็นชิ้นเดียวที่ไหลไปมา แทนพื้นหลังของแต่ละลิงก์ */
.menu.js-glide a[aria-current="page"] { background: transparent; color: var(--on-dark-soft); font-weight: 300; }
.menu.js-glide a.is-lit { color: var(--ink); }
.glider {
  position: absolute; left: 0; top: 0; z-index: 0; opacity: 0; pointer-events: none;
  border-radius: 999px;
  background:
    radial-gradient(120% 140% at 30% 0%, rgba(255,255,255,.55), transparent 55%),
    linear-gradient(180deg, var(--gold-hi), var(--gold));
  box-shadow: 0 1px 0 rgba(255,255,255,.55) inset, 0 6px 18px rgba(217,184,119,.35);
  transition: transform .5s var(--spring), width .5s var(--spring), height .3s var(--ease),
              opacity .25s var(--ease);
}
.menu:not(.js-glide) .glider { display: none; }

/* ปุ่มสลับภาษาแบบ segmented control ของ iOS */
.lang-seg {
  position: relative; order: 3; display: inline-grid; grid-template-columns: 1fr 1fr;
  padding: 3px; border-radius: 999px; isolation: isolate;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 1px rgba(0,0,0,.25);
}
.lang-seg::before {
  content: ""; position: absolute; z-index: -1; top: 3px; bottom: 3px; left: 3px;
  width: calc(50% - 3px); border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,.12));
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 3px 10px rgba(0,0,0,.25);
  transition: transform .5s var(--spring);
}
.lang-seg[data-cur="en"]::before { transform: translateX(100%); }
/* ชี้ที่อีกภาษา: แคปซูลไหลไปรอก่อน */
.lang-seg[data-cur="th"]:has(a[lang="en"]:hover)::before { transform: translateX(100%); }
.lang-seg[data-cur="en"]:has(a[lang="th"]:hover)::before { transform: translateX(0); }
.lang-seg a {
  min-width: 40px; padding: 4px 10px; text-align: center; border-radius: 999px;
  font-size: .76rem; letter-spacing: .08em; font-weight: 400; text-decoration: none;
  color: var(--on-dark-soft); transition: color var(--slow) var(--ease);
}
.lang-seg a[aria-current="true"] { color: var(--cream); }
.lang-seg a:active { transform: scale(.94); }

@media (max-width: 760px) {
  .nav-in { gap: 6px 10px; padding-bottom: 6px; }
  .brand { font-size: 1.1rem; }
  .menu {
    order: 4; width: 100%; overflow-x: auto; flex-wrap: nowrap;
    scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 2px;
    scroll-snap-type: x proximity; mask-image: linear-gradient(90deg, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
  }
  .menu::-webkit-scrollbar { display: none; }
  .menu a { scroll-snap-align: start; padding: 6px 12px; font-size: .86rem; }
}
@media (max-width: 460px) {
  .brand { gap: 7px; font-size: 1.04rem; }
  .brand img { width: 26px; }
  html[lang="th"] .brand .en { letter-spacing: .1em; font-size: .6rem; }
  .lang-seg a { min-width: 34px; padding: 3px 8px; }
}
@media (max-width: 350px) { .brand .en { display: none; } }

/* ── ปุ่ม ──────────────────────────────────────────────────────────────── */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  font-family: inherit; font-size: 1rem; font-weight: 400; letter-spacing: -.005em;
  cursor: pointer; text-decoration: none; min-height: 48px;
  -webkit-tap-highlight-color: transparent; user-select: none;
  transition: transform var(--fast) var(--ease), box-shadow var(--slow) var(--ease),
              background var(--fast) var(--ease), border-color var(--fast) var(--ease),
              color var(--fast) var(--ease), opacity var(--fast) var(--ease);
}
/* แสงสะท้อนที่ตามนิ้ว/เมาส์ (ค่า --mx --my ตั้งจาก site.js) */
.btn::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0;
  background: radial-gradient(140px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.5), transparent 62%);
  transition: opacity var(--slow) var(--ease);
}
.btn:hover { transform: translateY(-1.5px); box-shadow: var(--shadow-lg); }
.btn:hover::after { opacity: .55; }
.btn:active { transform: scale(.965); box-shadow: var(--shadow); transition-duration: .07s; }
.btn .ic { width: 1.1em; height: 1.1em; }
.btn:hover .ic:last-child:not(:first-child) { transform: translateX(3px); }
.btn .ic { transition: transform var(--slow) var(--spring); }

.btn-gold {
  background: linear-gradient(180deg, #e6c98c, var(--gold)); color: var(--ink);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.5);
}
.btn-gold:hover { color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--cream); box-shadow: var(--shadow); }
.btn-ink::after { background: radial-gradient(140px circle at var(--mx, 50%) var(--my, 50%), rgba(217,184,119,.45), transparent 62%); }
.btn-ink:hover { color: var(--cream); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,.7); }
.btn-ghost:hover { border-color: var(--gold); color: var(--ink); background: #fff; }
.btn-ghost::after { background: radial-gradient(140px circle at var(--mx, 50%) var(--my, 50%), rgba(217,184,119,.28), transparent 62%); }
.btn-ghost-light { border-color: rgba(236,231,245,.3); color: var(--on-dark); background: rgba(255,255,255,.04);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btns.center { justify-content: center; }

/* ── hero ──────────────────────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(1000px 420px at 78% -12%, rgba(217,184,119,.20), transparent 62%),
    radial-gradient(760px 380px at 8% 108%, rgba(217,184,119,.09), transparent 60%),
    var(--ink);
  color: var(--on-dark); padding-block: clamp(44px, 8vw, 96px);
  position: relative; overflow: hidden;
}
.hero h1 { color: var(--cream); }
.hero p { color: var(--on-dark-soft); }
.hero .lead { color: #cfc6e6; font-size: 1.12rem; max-width: 46ch; }
.hero-logo { width: clamp(180px, 24vw, 250px); height: auto; margin: 0 0 14px -8px;
  filter: drop-shadow(0 6px 30px rgba(217,184,119,.22)); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px; font-weight: 400;
}
/* อักษรไทยห้ามถ่างตัว — ถ่างได้เฉพาะตัวพิมพ์ใหญ่ละติน */
.eyebrow:lang(th) { letter-spacing: .03em; font-size: .84rem; }
html[lang="th"] .brand .en, .eyebrow .en { letter-spacing: .2em; }
html[lang="en"] .brand .en { letter-spacing: .02em; font-size: .74rem; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.deck.hero-deck { grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 520px) { .deck.hero-deck .cap span { display: none; } .deck.hero-deck .cap { padding: 7px 8px 9px; } }
.hero-facts { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-size: .86rem; color: var(--on-dark-soft); }
.hero-facts li { display: inline-flex; align-items: center; gap: 7px; }
.hero-facts .ic { color: var(--gold); }
.story-hero { padding-block: clamp(56px, 8vw, 96px); }

.page-head { background:
    radial-gradient(700px 260px at 85% -20%, rgba(217,184,119,.16), transparent 62%), var(--ink);
  color: var(--on-dark); padding-block: clamp(38px, 6vw, 64px); }
.page-head h1 { color: var(--cream); margin-bottom: .25em; }
.page-head p { color: var(--on-dark-soft); margin: 0; max-width: 62ch; }
.page-head .eyebrow { display: flex; }
.ph-icon {
  display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 16px;
  border-radius: 17px; color: var(--gold);
  background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.03));
  border: 1px solid rgba(217,184,119,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 10px 30px rgba(0,0,0,.25);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  view-transition-name: page-icon;
}
.ph-icon .ic { width: 26px; height: 26px; }

/* หัวข้อภายในหน้า */
.sec-head { text-align: center; max-width: 62ch; margin-inline: auto; margin-bottom: 36px; }
.sec-head.left { text-align: left; margin-inline: 0; margin-bottom: 22px; }
.sec-head h2 { display: flex; align-items: center; gap: 12px; justify-content: inherit; }
.sec-head:not(.left) h2 { justify-content: center; }
.sec-head h2 .ic { color: var(--gold-deep); }
.sec-ic {
  display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 12px;
  border-radius: 15px; color: var(--gold-deep); background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.sec-ic .ic { width: 23px; height: 23px; }

/* ── การ์ดกลาง ─────────────────────────────────────────────────────────── */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 27px; box-shadow: var(--shadow);
  transition: transform var(--slow) var(--ease), box-shadow var(--slow) var(--ease),
              border-color var(--slow) var(--ease);
}
.card.flat { box-shadow: none; }
/* ห้ามใช้ overflow:hidden ตรงนี้ — มันรีเซ็ต overflow-x:auto ทำให้ตารางบนมือถือถูกตัด */
.table-wrap.card { padding: 0; overflow-x: auto; overflow-y: hidden; margin-top: 18px; }
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .g2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .g3 { grid-template-columns: repeat(3, 1fr); }
                            .g4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }

.glass-dark {
  display: flex; gap: 16px; align-items: flex-start;
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border-color: rgba(217,184,119,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  padding: 22px;
}
.glass-dark h3 { color: var(--cream); font-size: 1.05rem; margin-bottom: .2em; }
.glass-dark p { margin: 0; color: var(--on-dark-soft); font-size: .95rem; }
.f-ic {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px;
  color: var(--ink); background: linear-gradient(160deg, var(--gold-hi), var(--gold));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.f-ic.light { color: var(--gold-deep); background: var(--cream-2); border: 1px solid var(--line); box-shadow: none; margin-bottom: 14px; }
.f-ic .ic { width: 22px; height: 22px; }

/* ── การ์ดแพ็กเกจ / ชุดไพ่ ─────────────────────────────────────────────── */
.pkg { display: flex; flex-direction: column; position: relative; padding: 0; overflow: hidden; }
.pkg::before {           /* ขอบแสงที่ตามเมาส์ แบบกระจก */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  opacity: 0; transition: opacity var(--slow) var(--ease);
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(217,184,119,.16), transparent 60%);
}
.pkg:hover::before { opacity: 1; }
.card.pkg:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(217,184,119,.7); }
.pkg-art { position: relative; aspect-ratio: 320/150; background: var(--ink); overflow: hidden; }
.art-svg { width: 100%; height: 100%; display: block; transition: transform .8s var(--ease); }
.pkg:hover .art-svg { transform: scale(1.06); }
.pkg-art .ribbon { position: absolute; top: 12px; right: 12px; }
.pkg-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.pkg h3 { margin: 0; }
.pkg-sub { margin: 0 0 8px; font-size: .8rem; letter-spacing: .06em; color: var(--gold-deep); }
.price { font-family: var(--serif); font-size: 2rem; color: var(--ink); line-height: 1.1; }
.price small { font-size: .92rem; font-family: var(--sans); color: var(--text-soft); font-weight: 300; }
.price.big { font-size: 2.3rem; }
.pkg .meta { display: flex; gap: 7px; flex-wrap: wrap; margin: 12px 0 12px; }
.pkg-blurb { color: var(--text-soft); font-size: .94rem; flex: 1; }
.pkg .btn { width: 100%; margin-top: 6px; }
.pkg.feature { border-color: var(--gold); box-shadow: var(--shadow-lg), 0 0 0 1px var(--gold); }

.tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; padding: 4px 11px;
  border-radius: 999px; background: var(--cream-2); color: var(--text-soft); border: 1px solid var(--line);
}
.tag .ic { width: 14px; height: 14px; color: var(--gold-deep); }
.tag-gold { background: rgba(217,184,119,.2); color: var(--gold-deep); border-color: rgba(217,184,119,.5); }
.ribbon {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(23,18,51,.55); color: var(--gold-hi); border: 1px solid rgba(217,184,119,.55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: .74rem; padding: 4px 12px; border-radius: 999px; font-weight: 400;
}
.ribbon .ic { width: 13px; height: 13px; }

/* ── รายการข้อเท็จจริงพร้อมไอคอน ───────────────────────────────────────── */
.facts { list-style: none; margin: 22px 0; padding: 0; display: grid; gap: 10px 22px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); font-size: .9rem; color: var(--text-soft); }
.facts.col { grid-template-columns: 1fr; margin: 0; }
.facts li { display: flex; gap: 10px; align-items: flex-start; }
.facts .ic { color: var(--gold-deep); margin-top: .25em; }

/* ── ขั้นตอน ───────────────────────────────────────────────────────────── */
.steps { counter-reset: s; display: grid; gap: 26px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { counter-increment: s; }
.step-ic {
  position: relative; display: grid; place-items: center; width: 52px; height: 52px;
  margin-bottom: 14px; border-radius: 17px; color: var(--gold);
  background: linear-gradient(160deg, var(--ink-3), var(--ink));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), var(--shadow);
}
.step-ic .ic { width: 24px; height: 24px; }
.step-ic::after {
  content: counter(s); position: absolute; top: -7px; right: -7px;
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold); color: var(--ink); font-family: var(--serif); font-size: .8rem;
  box-shadow: 0 0 0 3px var(--cream);
}
.step h3 { font-size: 1.05rem; margin-bottom: .3em; }
.step p { font-size: .93rem; color: var(--text-soft); margin: 0; }

/* ── ร้านไพ่ ───────────────────────────────────────────────────────────── */
.deck { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); }
.deck a {
  text-decoration: none; color: inherit; display: block;
  border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--line);
  transition: transform var(--slow) var(--ease), box-shadow var(--slow) var(--ease),
              border-color var(--slow) var(--ease);
}
.deck a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.deck a:active { transform: translateY(-1px) scale(.985); transition-duration: .08s; }
.deck img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--slow) var(--ease); }
.deck a:hover img { transform: scale(1.045); }
.deck .thumb {
  aspect-ratio: 1440/2146; overflow: hidden;
  background: var(--ink-2) linear-gradient(160deg, rgba(217,184,119,.14), transparent 60%);
}
.deck .cap { padding: 9px 11px 12px; }
.deck .cap b { display: block; font-weight: 400; font-size: .92rem; color: var(--ink); }
.deck .cap span { display: block; font-size: .74rem; color: var(--text-soft); }
.hero .deck a { border-color: rgba(217,184,119,.25); background: rgba(255,255,255,.96); }
.deck-group { margin-top: 40px; }
.deck-group h2 { margin-bottom: .15em; }
.deck-group p { margin-bottom: 22px; }
.shop-teaser { background: var(--cream-2); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.filters button {
  font-family: inherit; font-size: .88rem; padding: 8px 16px; min-height: 40px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text-soft);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform var(--fast) var(--ease), border-color var(--fast) var(--ease),
              color var(--fast) var(--ease), background var(--slow) var(--ease);
}
.filters button:hover { border-color: var(--gold); color: var(--ink); }
.filters button:active { transform: scale(.955); transition-duration: .07s; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--gold); border-color: var(--ink); }

.crumb a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.card-hero { display: grid; gap: 30px; margin-top: 18px; }
@media (min-width: 760px) { .card-hero { grid-template-columns: 300px 1fr; gap: 44px; } }
.card-hero .art {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  background: var(--ink-2); box-shadow: var(--shadow-lg); aspect-ratio: 1440/2146;
  max-width: 240px; margin-inline: auto; width: 100%;   /* มือถือ: ไม่ให้ภาพดันปุ่มซื้อตกจอ */
}
@media (min-width: 760px) { .card-hero .art { max-width: none; } }
.card-hero .art img { width: 100%; height: 100%; object-fit: cover; }
.card-hero h1 { margin-bottom: .1em; }
.gets { margin: 24px 0; padding: 22px; }
.gets h3 { font-size: 1.05rem; }
@media (max-width: 520px) {
  .deck .cap b { font-size: .84rem; }
  .deck .cap span { font-size: .68rem; }
}

/* ── กล่องข้อความ ───────────────────────────────────────────────────────── */
.note {
  display: block; margin-top: 30px;
  border: 1px solid rgba(217,184,119,.45); background: linear-gradient(160deg, #fbf6ea, var(--cream-2));
  padding: 16px 20px; border-radius: var(--r); font-size: .95rem;
}
.note:has(> .ic) { display: flex; gap: 14px; align-items: flex-start; }
.note > .ic { color: var(--gold-deep); width: 22px; height: 22px; margin-top: .15em; }
.note > div { flex: 1; min-width: 0; }
.note.care { border-color: rgba(140,47,57,.25); background: linear-gradient(160deg, #fdf5f4, #fbeeee); }
.note.care > .ic, .note.care strong { color: var(--danger); }
.note.info { margin: 0 0 28px; }
.note p:last-child { margin-bottom: 0; }
.doc .note, .prose .note { margin: 22px 0; }

.band { background: var(--ink); color: var(--on-dark); }
.band h2, .band h3 { color: var(--cream); }
.band p { color: var(--on-dark-soft); }

/* ── ตาราง ─────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 480px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 400; color: var(--ink); background: var(--cream-2); font-size: .85rem; }
td b { font-weight: 400; color: var(--ink); }
tbody tr:last-child td { border-bottom: none; }
.yes { color: var(--ok); font-weight: 400; }
.no { color: var(--danger); font-weight: 400; }

/* ── ฟอร์ม ─────────────────────────────────────────────────────────────── */
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .93rem; color: var(--ink); margin-bottom: 6px; }
.field .hint { font-size: .82rem; color: var(--text-soft); margin: 5px 0 0; }
input[type=text], input[type=email], select, textarea {
  width: 100%; padding: 13px 15px; font-family: inherit; font-size: 1rem; font-weight: 300;
  color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  min-height: 48px; transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
textarea { resize: vertical; line-height: 1.65; }
input:focus, select:focus, textarea:focus { border-color: var(--gold-deep); outline: none;
  box-shadow: 0 0 0 4px rgba(217,184,119,.22); }
.check { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 13px; font-size: .92rem; }
.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; accent-color: var(--gold-deep); }
.req { color: var(--danger); }
fieldset { border: none; margin: 0 0 22px; padding: 0; }
legend { display: flex; align-items: center; gap: 9px; font-family: var(--serif); font-size: 1.15rem;
  color: var(--ink); padding: 0; margin-bottom: 14px; }
legend .ic { color: var(--gold-deep); }
.form .facts { margin: 4px 0 20px; }
.expiry { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; }
.expiry .ic { color: var(--gold-deep); margin-top: .2em; }

/* ── FAQ ───────────────────────────────────────────────────────────────── */
details {
  border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  margin-bottom: 12px; overflow: hidden; transition: box-shadow var(--slow) var(--ease);
}
details[open] { box-shadow: var(--shadow); }
summary {
  cursor: pointer; padding: 15px 20px; font-size: 1rem; color: var(--ink);
  list-style: none; display: flex; gap: 14px; align-items: center; min-height: 58px;
  transition: background var(--fast) var(--ease);
}
summary::-webkit-details-marker { display: none; }
summary:hover { background: rgba(217,184,119,.07); }
summary .q { flex: 1; }
.q-ic { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 11px;
  color: var(--gold-deep); background: var(--cream-2); }
summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 3px;
  border-right: 1.6px solid var(--gold-deep); border-bottom: 1.6px solid var(--gold-deep);
  transform: rotate(45deg) translate(-2px,-2px); transition: transform var(--slow) var(--spring);
}
details[open] summary::after { transform: rotate(225deg) translate(-2px,-2px); }
details[open] summary { border-bottom: 1px solid var(--line); }
details .body { padding: 18px 22px 18px 68px; color: var(--text-soft); font-size: .95rem; }
@media (max-width: 520px) { details .body { padding-left: 22px; } }
details .body p:last-child { margin-bottom: 0; }

/* ── ติดต่อ ────────────────────────────────────────────────────────────── */
.channel { display: flex; gap: 16px; align-items: flex-start; text-decoration: none; color: inherit; padding: 22px; }
.channel .f-ic { margin-bottom: 0; }
.channel b { display: block; font-weight: 400; color: var(--ink); }
.channel .val { display: block; color: var(--gold-deep); word-break: break-all; }
.channel .muted { display: block; margin-top: 4px; }
.channel:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--gold); color: inherit; }

/* ── เรื่องเล่า ─────────────────────────────────────────────────────────── */
.prose h2 { display: flex; align-items: center; gap: 12px; margin-top: 48px; }
.prose h2 .ic { color: var(--gold-deep); }
.prose > h2:first-child { margin-top: 0; }
.moon-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; }
@media (min-width: 700px) { .moon-strip { grid-template-columns: repeat(6, 1fr); } }
.moon-strip figure { margin: 0; border-radius: 14px; overflow: hidden; background: var(--ink);
  border: 1px solid rgba(217,184,119,.25); }
.moon-strip .art-svg { aspect-ratio: 1; height: auto; }
.moon-strip figcaption { text-align: center; font-size: .78rem; color: var(--gold); padding: 6px 4px 8px; }

/* ── เอกสารกฎหมาย ─────────────────────────────────────────────────────── */
.doc-tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 5px; margin-bottom: 30px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.doc-tabs a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 12px; border-radius: 999px; text-decoration: none; color: var(--text-soft); font-size: .88rem;
  white-space: nowrap; transition: background var(--slow) var(--ease), color var(--slow) var(--ease); }
.doc-tabs a:hover { color: var(--ink); background: var(--cream-2); }
.doc-tabs a[aria-current="page"] { background: var(--ink); color: var(--gold); }
@media (max-width: 560px) { .doc-tabs { border-radius: var(--r); } .doc-tabs a { flex-basis: 100%; } }
.doc h2 { font-size: 1.35rem; margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line); }
.doc h3 { font-size: 1.08rem; margin-top: 24px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .updated { color: var(--text-soft); font-size: .88rem; }

/* ── ท้ายเว็บ ───────────────────────────────────────────────────────────── */
footer {
  background: var(--ink); color: var(--on-dark-soft); padding-block: 52px 32px; font-size: .9rem;
}
footer h4 { color: var(--gold); font-family: var(--sans); font-size: .75rem;
  letter-spacing: .16em; text-transform: uppercase; font-weight: 400; margin-bottom: 14px; }
footer a { color: var(--on-dark-soft); text-decoration: none; }
footer a:hover { color: var(--gold); text-decoration: underline; }
.foot-logo { width: 130px; height: auto; margin: -6px 0 12px -6px; opacity: .95; }
.dim { color: #7e7599; }
.foot-grid { display: grid; gap: 34px; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px;
  color: var(--gold); border: 1px solid rgba(217,184,119,.3); background: rgba(255,255,255,.04);
  transition: transform var(--slow) var(--spring), background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.social a:hover { transform: translateY(-3px); background: var(--gold); color: var(--ink); text-decoration: none; }
.social .ic { width: 20px; height: 20px; }
.legal {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: .82rem; color: #7e7599; display: flex; gap: 10px 16px; flex-wrap: wrap;
  justify-content: space-between;
}
.legal span { display: inline-flex; gap: 7px; align-items: center; }
.legal .ic { color: var(--gold); }

/* ── อื่น ๆ ─────────────────────────────────────────────────────────────── */
.stack > * + * { margin-top: 14px; }
.soon {
  display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; margin-top: 14px;
  color: var(--gold-deep); background: rgba(217,184,119,.14);
  border: 1px dashed rgba(168,133,63,.45); padding: 7px 14px; border-radius: 999px;
}
hr { border: none; border-top: 1px solid var(--line); margin: 34px 0; }

/* ── เปลี่ยนหน้าแบบ morph (Chrome/Edge 126+, Safari 18.2+ · เบราว์เซอร์อื่นเปลี่ยนหน้าปกติ) ── */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: .5s; animation-timing-function: cubic-bezier(.3, 1.1, .4, 1); }
::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .42s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: scale(.985); filter: blur(2px); } }
@keyframes vt-in  { from { opacity: 0; transform: scale(1.012); filter: blur(2px); } }
::view-transition-image-pair(*) { isolation: auto; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.pkg-sub:lang(th) { letter-spacing: 0; font-size: .86rem; }

/* ออเดอร์ล่าสุดที่จำไว้ในเครื่อง (หน้า /track) */
.recent { margin-top: 26px; }
.recent ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.recent li a { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.recent li a:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.recent .when { margin-left: auto; font-size: .82rem; color: var(--text-soft); }

/* เปลี่ยน tag เพื่อลำดับหัวข้อที่ถูกต้อง แต่ขนาดยังเท่าเดิม */
h2.h3 { font-size: clamp(1.12rem, 2.4vw, 1.35rem); }
h2.h4 { font-family: var(--sans); font-size: .75rem; letter-spacing: .16em;
  text-transform: uppercase; font-weight: 400; color: var(--gold); margin-bottom: 14px; }
.gets h2.h3 { font-size: 1.05rem; }
.channel h2.chan-t { margin: 0; font-family: var(--sans); font-size: 1rem; font-weight: 400;
  letter-spacing: normal; color: var(--ink); }

/* ═══════════════════════════════════════════════════════════════════════════
   รอบ 2 ต.ค. — Motion design · ปุ่ม LINE ลอย · รีวิว · โปรโมชั่น · พลิกไพ่ (แผน C)
   ทุกการเคลื่อนไหวหยุดเองเมื่อผู้ใช้ตั้งค่า "ลดการเคลื่อนไหว" (บล็อกท้ายไฟล์)
   =========================================================================== */

/* ── ดาวกระพริบรอบโลโก้ ─────────────────────────────────────────────────── */
.logo-glow, .brand .mark { position: relative; display: inline-block; }
.logo-glow { display: block; width: max-content; max-width: 100%; margin: 0 0 14px -8px; }
.logo-glow .hero-logo { margin: 0; animation: logo-breathe 7s ease-in-out infinite; }
.logo-glow::before {                       /* แสงทองหายใจเบา ๆ ด้านหลังโลโก้ */
  content: ""; position: absolute; inset: 8% 6%; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(243,220,160,.28), rgba(217,184,119,.08) 60%, transparent);
  filter: blur(6px); animation: halo 7s ease-in-out infinite;
}
.tw {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); pointer-events: none; opacity: .7;
  animation: twinkle 3.4s ease-in-out var(--d) infinite both;
}
.tw svg { width: 100%; height: 100%; fill: var(--gold-hi); filter: drop-shadow(0 0 4px rgba(243,220,160,.9)); display: block; }
.brand .mark .tw { opacity: 0; animation-duration: 5.5s; }
.brand:hover .mark .tw { animation-duration: 1.6s; }
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); }
  45%      { opacity: 1; transform: scale(1) rotate(45deg); }
  60%      { opacity: .85; transform: scale(.82) rotate(60deg); }
}
@keyframes halo { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes logo-breathe { 0%, 100% { filter: drop-shadow(0 6px 26px rgba(217,184,119,.18)); }
                          50%      { filter: drop-shadow(0 6px 38px rgba(243,220,160,.38)); } }

/* ── ท้องฟ้าดาวบน hero (CSS ล้วน 2 ชั้น กระพริบสลับกัน) ─────────────────── */
.hero::before, .hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-repeat: repeat;
}
.hero::before {
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, rgba(243,220,160,.9), transparent 60%),
    radial-gradient(1px 1px at 34% 72%, rgba(243,220,160,.7), transparent 60%),
    radial-gradient(1.4px 1.4px at 58% 26%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(1px 1px at 76% 64%, rgba(243,220,160,.8), transparent 60%),
    radial-gradient(1.1px 1.1px at 91% 12%, rgba(255,255,255,.7), transparent 60%);
  background-size: 340px 300px;
  animation: stars-a 6s ease-in-out infinite;
}
.hero::after {
  background-image:
    radial-gradient(1px 1px at 22% 44%, rgba(255,255,255,.75), transparent 60%),
    radial-gradient(1.3px 1.3px at 47% 8%, rgba(243,220,160,.85), transparent 60%),
    radial-gradient(1px 1px at 66% 88%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1.2px 1.2px at 84% 38%, rgba(243,220,160,.75), transparent 60%);
  background-size: 260px 230px;
  animation: stars-b 8s ease-in-out infinite, drift 90s linear infinite;
}
@keyframes stars-a { 0%, 100% { opacity: .35; } 50% { opacity: .9; } }
@keyframes stars-b { 0%, 100% { opacity: .85; } 50% { opacity: .25; } }
@keyframes drift { to { background-position: 260px -230px; } }
.hero > .wrap { position: relative; z-index: 1; }

/* ── เผยตัวเมื่อเลื่อนถึง ─────────────────────────────────────────────────── */
.rv { opacity: 0; }
.rv.rv-in { animation: rv-up .85s var(--ease) var(--rv-d, 0ms) both; }
@keyframes rv-up { from { opacity: 0; transform: translateY(22px) scale(.985); filter: blur(3px); }
                   to   { opacity: 1; transform: none; filter: none; } }

/* ── ปุ่ม "ทักแอดมิน" ลอยมุมขวาล่างทุกหน้า ──────────────────────────────── */
.fab-line {
  position: fixed; z-index: 60;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px 0 14px;
  border-radius: 999px; text-decoration: none; font-size: .95rem; font-weight: 400;
  color: #fff; background: linear-gradient(180deg, #19d066, #06b84e);
  box-shadow: 0 10px 28px rgba(6,140,60,.32), 0 2px 6px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.35);
  animation: fab-in .7s var(--spring) .8s both;
  transition: transform var(--fast) var(--ease), box-shadow var(--slow) var(--ease);
}
.fab-line .ic { width: 22px; height: 22px; }
.fab-line:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(6,140,60,.4), 0 2px 6px rgba(0,0,0,.12); }
.fab-line:active { transform: scale(.95); }
.fab-line::before {                         /* วงคลื่นเบา ๆ เรียกสายตาครั้งเดียวตอนโหลด */
  content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid rgba(25,208,102,.6);
  animation: fab-ping 1.8s var(--ease) 1.6s 2 both; pointer-events: none;
}
@keyframes fab-in { from { opacity: 0; transform: translateY(24px) scale(.9); } }
@keyframes fab-ping { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.35); } }
@media (max-width: 520px) {
  .fab-line { padding: 0 15px 0 12px; font-size: .88rem; min-height: 46px; }
  body > footer { padding-bottom: 96px; }   /* ไม่ให้ปุ่มลอยบังบรรทัดสุดท้ายของเว็บ */
}
@media print { .fab-line { display: none; } }

/* ── โครงเทาระหว่างโหลด (skeleton) ─────────────────────────────────────── */
.skel { border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); padding: 22px; display: grid; gap: 12px; }
.skel span { display: block; height: 14px; border-radius: 8px;
  background: linear-gradient(90deg, var(--cream-2) 0%, #f8f3ea 40%, var(--cream-2) 80%);
  background-size: 300% 100%; animation: shimmer 1.4s ease-in-out infinite; }
.skel span:first-child { height: 120px; border-radius: 14px; }
.skel span:last-child { width: 60%; }
.skel-promo span:first-child { height: 170px; }
.skel-order { border: 0; padding: 0; margin: 10px 0 6px; }
.skel-order span:first-child { height: 150px; }
.order-card:not(.is-loading) .skel-order { display: none; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ── รีวิว ──────────────────────────────────────────────────────────────── */
.band-soft { background: linear-gradient(180deg, var(--cream), var(--cream-2)); }
.review-grid { display: grid; gap: 20px; align-items: start;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.review-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow); display: block;
  transition: transform var(--slow) var(--ease), box-shadow var(--slow) var(--ease), border-color var(--slow) var(--ease);
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(217,184,119,.7); }
.rc-img { margin: 0; aspect-ratio: 4 / 5; background: var(--ink-2); overflow: hidden; }
.rc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.review-card:hover .rc-img img { transform: scale(1.04); }
.rc-body { padding: 20px 22px 18px; position: relative; }
.review-card:not(.has-img) .rc-body::before {     /* ไม่มีรูป: เครื่องหมายคำพูดใหญ่จาง ๆ */
  content: "\201C"; position: absolute; right: 16px; top: -6px; font-family: var(--serif);
  font-size: 5.5rem; line-height: 1; color: rgba(217,184,119,.28); pointer-events: none;
}
.stars { display: flex; gap: 2px; margin-bottom: 10px; }
.stars span { color: #e5dccb; display: inline-flex; }
.stars span.on { color: var(--gold); }
.stars .ic { width: 17px; height: 17px; fill: currentColor; stroke: none; }
.review-card blockquote { margin: 0; font-family: var(--serif); font-size: 1.02rem; line-height: 1.65; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.review-card.open blockquote { -webkit-line-clamp: unset; display: block; }
.review-card blockquote p { margin: 0; white-space: pre-line; }
.rc-more { margin-top: 6px; padding: 4px 0; background: none; border: 0; font: inherit; font-size: .85rem;
  color: var(--gold-deep); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.review-card footer { margin-top: 14px; padding: 12px 0 0; border-top: 1px dashed var(--line); background: none;
  display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: .86rem; color: var(--text-soft); }
.review-card footer .who { color: var(--ink); }
.review-card footer .what { margin-left: auto; font-size: .78rem; padding: 2px 10px; border-radius: 999px;
  background: rgba(217,184,119,.16); color: var(--gold-deep); }

/* ── โปรโมชั่น ──────────────────────────────────────────────────────────── */
.promo-list { display: grid; gap: 22px; }
@media (min-width: 820px) { .promo-list:not(.compact) { grid-template-columns: repeat(2, 1fr); } }
.promo-card {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-lg);
  min-height: 250px; display: flex; align-items: flex-end; color: var(--cream);
  background: radial-gradient(500px 240px at 85% 0%, rgba(217,184,119,.35), transparent 60%),
              linear-gradient(150deg, var(--ink-3), var(--ink));
  box-shadow: var(--shadow-lg); border: 1px solid rgba(217,184,119,.35);
  transition: transform var(--slow) var(--ease), box-shadow var(--slow) var(--ease);
}
.promo-card:hover { transform: translateY(-4px); box-shadow: 0 26px 60px rgba(23,18,51,.25); }
.pc-bg { position: absolute; inset: 0; z-index: -1; }
.pc-bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.promo-card:hover .pc-bg img { transform: scale(1.05); }
.promo-card.has-img .pc-bg::after {            /* ไล่เงาให้อ่านตัวหนังสือบนรูปได้ทุกรูป */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23,18,51,.05) 20%, rgba(23,18,51,.55) 55%, rgba(23,18,51,.92));
}
.promo-card:not(.has-img)::before {           /* ไม่มีรูป: ดาวจาง ๆ ให้ไม่โล่ง */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .7;
  background-image: radial-gradient(1.2px 1.2px at 20% 30%, var(--gold-hi), transparent 60%),
                    radial-gradient(1px 1px at 70% 20%, #fff, transparent 60%),
                    radial-gradient(1.3px 1.3px at 85% 60%, var(--gold-hi), transparent 60%);
  background-size: 180px 160px;
}
.pc-body { padding: 26px 26px 24px; width: 100%; }
.pc-body h2 { color: var(--cream); margin: 10px 0 6px; font-size: clamp(1.25rem, 3vw, 1.6rem); }
.pc-body p { color: #d8d0ec; margin: 0 0 16px; max-width: 52ch; }
.pc-chip { justify-self: start; width: max-content; max-width: 100%; display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; padding: 4px 12px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(243,220,160,.45); color: var(--gold-hi);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pc-chip.soon-end { background: rgba(217,184,119,.9); color: var(--ink); border-color: transparent; animation: chip-pulse 2.4s ease-in-out infinite; }
@keyframes chip-pulse { 50% { box-shadow: 0 0 0 6px rgba(217,184,119,.18); } }
.pc-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pc-code {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; cursor: pointer;
  font: inherit; color: var(--cream); background: rgba(255,255,255,.08);
  border: 1.5px dashed rgba(243,220,160,.7); border-radius: 14px;
  transition: background var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.pc-code .code { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .12em; font-size: 1.02rem; color: var(--gold-hi); }
.pc-code .lbl { font-size: .8rem; color: var(--on-dark-soft); }
.pc-code:hover { background: rgba(255,255,255,.16); }
.pc-code:active { transform: scale(.97); }
.pc-code.copied { border-style: solid; border-color: #19d066; }
.pc-code.copied .lbl { color: #7ee2a6; }
.promo-list.compact .promo-card { min-height: 0; }
.promo-list.compact .pc-body { display: grid; gap: 6px 22px; align-items: center; padding: 22px 24px; }
@media (min-width: 760px) {
  .promo-list.compact .pc-body { grid-template-columns: 1fr auto; }
  .promo-list.compact .pc-actions { grid-row: 1 / span 3; grid-column: 2; }
  .promo-list.compact .pc-body p { margin: 0; }
}
.promo-strip { background: var(--cream-2); }
.promo-strip + section { padding-top: clamp(40px, 5vw, 64px); }

/* หน้าว่าง (ยังไม่มีรีวิว/โปร) */
.empty { text-align: center; padding: 30px 10px 10px; }
.empty .sec-ic { margin-inline: auto; }

/* ── หน้าคำสั่งซื้อ: แตะพลิกไพ่ + ส่งต่อไป LINE ─────────────────────────── */
.order-card h1 { margin-bottom: .3em; }
.spread-wrap { margin: 22px 0 8px; }
.spread { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 12px;
  justify-content: center; perspective: 1200px; }
.tcard { display: grid; gap: 8px; justify-items: center; cursor: pointer; width: clamp(80px, 25vw, 132px); }
.spread[data-n="1"] .tcard { width: clamp(130px, 42vw, 170px); }
.spread[data-n="6"] .tcard, .spread[data-n="7"] .tcard, .spread[data-n="8"] .tcard, .spread[data-n="9"] .tcard,
.spread[data-n="10"] .tcard, .spread[data-n="11"] .tcard, .spread[data-n="12"] .tcard { width: clamp(64px, 20vw, 104px); }
.tcard.open, .spread.flipped .tcard { cursor: default; }
.tc-in { position: relative; width: 100%; aspect-ratio: 300 / 447; transform-style: preserve-3d;
  transition: transform .95s cubic-bezier(.3, 1.15, .4, 1); }
.tcard:not(.open) .tc-in { animation: idle 3.2s ease-in-out calc(var(--i) * -.4s) infinite; }
.tcard.open .tc-in { transform: rotateY(180deg); }
.tc-back, .tc-face { position: absolute; inset: 0; border-radius: 12px; overflow: hidden;
  -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: 0 8px 22px rgba(23,18,51,.22); }
.tc-back {
  background:
    url(/assets/logo-mark.webp) center / 46% no-repeat,
    radial-gradient(1px 1px at 20% 25%, var(--gold-hi), transparent 60%),
    radial-gradient(1px 1px at 75% 70%, var(--gold-hi), transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(217,184,119,.25), transparent 55%),
    linear-gradient(160deg, var(--ink-3), var(--ink));
  background-size: 46%, 60px 60px, 70px 70px, auto, auto;
  border: 1px solid rgba(217,184,119,.6); outline: 1px solid rgba(217,184,119,.35); outline-offset: -7px;
}
.tcard:not(.open):hover .tc-back { box-shadow: 0 0 0 2px var(--gold), 0 12px 30px rgba(217,184,119,.35); }
.tc-face { transform: rotateY(180deg); background: var(--ink-2); }
.tc-face img { width: 100%; height: 100%; object-fit: cover; }
.tcard.rev .tc-face img { transform: rotate(180deg); }
.tc-name { font-size: .82rem; text-align: center; color: var(--ink); opacity: 0; transform: translateY(6px);
  transition: opacity .55s var(--ease) .55s, transform .55s var(--ease) .55s; }
.tcard.open .tc-name { opacity: 1; transform: none; }
@keyframes idle { 0%, 100% { transform: translateY(0) rotate(-.6deg); } 50% { transform: translateY(-6px) rotate(.6deg); } }
.turn { text-align: center; margin-top: 18px; }
.turn .btn { animation: glow-pulse 2.6s ease-in-out infinite; }
@keyframes glow-pulse { 50% { box-shadow: 0 0 0 8px rgba(217,184,119,.18), var(--shadow); } }
.turn p { margin: 10px 0 0; }
.after { transition: opacity .6s var(--ease), transform .6s var(--ease); margin-top: 18px; }
.after.wait { opacity: 0; transform: translateY(10px); pointer-events: none; }
.teaser { font-family: var(--serif); font-size: 1.08rem; color: var(--ink); border-left: 3px solid var(--gold);
  padding: 4px 0 4px 16px; margin: 4px 0 18px; }
.pulse-text { animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; } }
.handoff { display: flex; gap: 14px; align-items: flex-start; margin-top: 22px; padding: 20px 20px 18px;
  border-radius: var(--r); border: 1px solid var(--line); background: var(--cream); }
.handoff > .ic { width: 26px; height: 26px; color: #06b84e; margin-top: .1em; }
.handoff h2 { margin: 0 0 6px; }
.handoff p { margin: 0 0 12px; }
.handoff.go { border-color: rgba(6,184,78,.45); background: linear-gradient(160deg, #f1fbf4, #fff); }
.handoff.done > .ic { color: var(--ok); }
.btn-line { background: linear-gradient(180deg, #19d066, #06b84e); color: #fff; box-shadow: 0 8px 22px rgba(6,140,60,.28); }
.btn-line:hover { color: #fff; }
.btn-line.big { width: 100%; max-width: 360px; font-size: 1.05rem; min-height: 54px; }
.dl-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; }
  .tw { opacity: .75; }
  .brand .mark .tw { opacity: 0; }
  .hero::after { opacity: .6; }
  .after.wait { opacity: 1; transform: none; pointer-events: auto; }
}
.btn-line.big { white-space: nowrap; }
@media (max-width: 520px) {
  .order-card { padding: 22px 18px; }
  .handoff { display: block; padding: 18px 16px 16px; }
  .handoff > .ic { display: block; margin-bottom: 8px; }
  .btn-line.big { max-width: none; }
}
/* มือถือ: รูปโปรเป็นแบนเนอร์ด้านบน ตัวหนังสืออยู่ใต้รูป อ่านออกทุกรูปไม่ว่าภาพจะสว่างแค่ไหน */
@media (max-width: 640px) {
  .promo-card.has-img { flex-direction: column; align-items: stretch; }
  .promo-card.has-img .pc-bg { position: relative; inset: auto; z-index: 0; aspect-ratio: 16 / 9; }
  .promo-card.has-img .pc-bg::after { background: linear-gradient(180deg, transparent 55%, rgba(23,18,51,.85)); }
  .promo-card.has-img .pc-body { padding-top: 16px; }
}
.pc-code .lbl { color: #cfc6e6; }
.hero.lost { min-height: 62vh; display: grid; align-items: center; }
.hero.lost .logo-glow { margin: 0 auto 10px; }
.hero.lost .hero-logo { width: clamp(150px, 30vw, 210px); }
.order-card h1 { font-size: clamp(1.45rem, 4vw, 2.05rem); }
.spread-wrap { margin-top: 14px; padding: 0; }   /* เป็น <section> — ล้าง padding กลางของ section ทิ้ง */
.recent { padding: 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   W2 · พิธีจั่วไพ่ — สับไพ่หลังกดส่งฟอร์ม → แจกไพ่ → แตะพลิกทีละใบ + ประกายทอง
   =========================================================================== */

/* ── ฟอร์ม: ข้อความผิดพลาด ─────────────────────────────────────────────── */
.form-msg { margin: 0 0 18px; padding: 12px 16px; border-radius: var(--r); font-size: .92rem;
  background: #fbeeee; border: 1px solid rgba(140,47,57,.3); color: var(--danger); }
.field.err input, .field.err textarea, .field.err select { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(140,47,57,.12); }
.err-msg { margin: 6px 0 0; font-size: .82rem; color: var(--danger); }
.check.err label { color: var(--danger); }

/* ── พิธีสับไพ่ (เต็มจอ) ───────────────────────────────────────────────── */
html.ritual-on, html.ritual-on body { overflow: hidden; }
.ritual {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; align-content: center; gap: 34px;
  padding: 24px; color: var(--cream); opacity: 0; transition: opacity .45s var(--ease);
  background:
    radial-gradient(1.2px 1.2px at 14% 22%, var(--gold-hi), transparent 60%),
    radial-gradient(1px 1px at 72% 18%, #fff, transparent 60%),
    radial-gradient(1.3px 1.3px at 86% 66%, var(--gold-hi), transparent 60%),
    radial-gradient(1px 1px at 30% 80%, #fff, transparent 60%),
    radial-gradient(900px 520px at 50% 45%, rgba(217,184,119,.16), transparent 62%),
    #0f0b24;
  background-size: 300px 260px, 260px 240px, 340px 300px, 280px 260px, auto, auto;
}
.ritual.in { opacity: 1; }
.r-glow { position: absolute; width: 340px; height: 340px; border-radius: 50%; left: 50%; top: 50%;
  margin: -210px 0 0 -170px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(243,220,160,.35), rgba(217,184,119,.08) 60%, transparent);
  animation: halo 2.4s ease-in-out infinite; }
.r-deck { position: relative; width: 120px; aspect-ratio: 300 / 447; }
.r-card { position: absolute; inset: 0; border-radius: 10px; overflow: hidden;
  background: linear-gradient(160deg, var(--ink-3), var(--ink)); border: 1px solid rgba(217,184,119,.65);
  box-shadow: 0 10px 26px rgba(0,0,0,.45);
  transform: translateY(calc(var(--k) * -1.5px)); }
.r-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* สับแบบ riffle: ครึ่งซ้าย/ขวาแยกออกแล้วสลับกลับเข้ากอง */
.ritual.in .r-card { animation: riffle 1.15s cubic-bezier(.45,.05,.25,1) calc(var(--k) * 55ms) infinite; }
.ritual.in .r-card:nth-child(even) { animation-name: riffle-r; }
@keyframes riffle {
  0%, 100% { transform: translateY(calc(var(--k) * -1.5px)); }
  35%      { transform: translate(-78%, -10px) rotate(-14deg); }
  60%      { transform: translate(-6%, calc(var(--k) * -1.5px)) rotate(-2deg); }
}
@keyframes riffle-r {
  0%, 100% { transform: translateY(calc(var(--k) * -1.5px)); }
  35%      { transform: translate(78%, -10px) rotate(14deg); }
  60%      { transform: translate(6%, calc(var(--k) * -1.5px)) rotate(2deg); }
}
/* ได้ไพ่แล้ว: กองรวบเข้ากลาง ใบบนสุดลอยขึ้นเรืองแสง */
.ritual.drawn .r-card { animation: none; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.ritual.drawn .r-card:last-child { transform: translateY(-26px) scale(1.08);
  box-shadow: 0 0 0 1px var(--gold-hi), 0 0 46px rgba(243,220,160,.55), 0 18px 40px rgba(0,0,0,.5); }
.r-line { margin: 0; font-family: var(--serif); font-size: 1.15rem; color: var(--gold-hi); text-align: center; min-height: 1.6em; }
.r-line.swap { animation: line-in .6s var(--ease) both; }
@keyframes line-in { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } }

/* ข้อความดูแลใจ (ไม่มีประกาย ไม่มีสับไพ่ — นิ่งและอบอุ่น) */
.ritual.care { background: #171233; }
.r-care { max-width: 460px; text-align: center; outline: none; animation: line-in .6s var(--ease) both; }
.r-care h2 { color: var(--cream); margin-bottom: .5em; }
.r-care p { color: #d8d0ec; line-height: 1.8; margin-bottom: 22px; }
.r-close { margin-top: 18px; background: none; border: 0; color: var(--on-dark-soft); font: inherit; font-size: .9rem;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 10px; }

/* ── หน้าคำสั่งซื้อ: กองไพ่ + แจกไพ่ ─────────────────────────────────── */
.deck-pile { position: relative; width: 64px; height: 95px; margin: 0 auto 22px;
  view-transition-name: deck;
  transition: opacity .6s var(--ease), transform .6s var(--ease), height .7s var(--ease) .35s, margin .7s var(--ease) .35s; }
.deck-pile span { position: absolute; inset: 0; border-radius: 7px; overflow: hidden;
  background: linear-gradient(160deg, var(--ink-3), var(--ink)); border: 1px solid rgba(217,184,119,.6);
  box-shadow: 0 6px 16px rgba(23,18,51,.25); transform: translate(calc(var(--k) * 2px), calc(var(--k) * -2px)); }
.deck-pile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.deck-pile.gone { opacity: 0; transform: scale(.8) translateY(-8px); pointer-events: none; height: 0; margin: 0 auto; }
.tc-back img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tc-back:has(img) { outline: none; }

/* ยกตัวก่อนพลิก เหมือนหยิบไพ่ขึ้นจากโต๊ะ */
.tcard { position: relative; }
.tcard:not(.open):hover .tc-in, .tcard:not(.open):focus-visible .tc-in { animation-play-state: paused; }
.tcard:not(.open):focus-visible { outline: none; }
.tcard:not(.open):focus-visible .tc-back { box-shadow: 0 0 0 3px var(--gold-deep), 0 12px 30px rgba(217,184,119,.35); }
.tcard.open .tc-in { animation: lift-flip .95s cubic-bezier(.3,1.15,.4,1) both; }
@keyframes lift-flip {
  0%   { transform: rotateY(0) translateY(0) scale(1); }
  35%  { transform: rotateY(90deg) translateY(-14px) scale(1.08); }
  100% { transform: rotateY(180deg) translateY(0) scale(1); }
}
.tcard.open .tc-face { box-shadow: 0 0 0 1px rgba(243,220,160,.8), 0 12px 32px rgba(217,184,119,.38); }
.spread.static .tcard .tc-in { animation: none; }        /* โหลดหน้าใหม่หลังเปิดครบ: แสดงหน้าไพ่นิ่ง ๆ ไม่เล่นซ้ำ */
.spread.static .tc-name { transition: none; }

/* ชื่อไพ่ + คำเกริ่นใต้ไพ่ */
.tc-name b { display: block; font-weight: 500; font-size: .86rem; color: var(--ink); }
.tc-name small { display: block; font-size: .72rem; color: var(--text-soft); margin-top: 1px; }
.tc-hook { display: block; font-family: var(--serif); font-style: italic; font-size: .78rem; color: var(--gold-deep);
  margin-top: 5px; line-height: 1.45; }

/* ประกายทอง: วงแสง + แฟลช + ละอองดาวพุ่งออก */
.burst { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 300 / 447; pointer-events: none; z-index: 3; }
.burst i { position: absolute; left: 50%; top: 50%; display: block; border-radius: 50%; }
.burst .ring { width: 40%; aspect-ratio: 1; margin: -20% 0 0 -20%; border: 2px solid var(--gold-hi);
  animation: ring .9s var(--ease) forwards; }
.burst .flash { width: 120%; aspect-ratio: 1; margin: -60% 0 0 -60%;
  background: radial-gradient(closest-side, rgba(255,246,214,.85), rgba(243,220,160,.25) 45%, transparent);
  animation: flash .7s var(--ease) forwards; }
.burst .p { width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  background: var(--gold-hi); box-shadow: 0 0 6px 1px rgba(243,220,160,.9);
  animation: spark 1.05s cubic-bezier(.15,.7,.3,1) var(--t) forwards; opacity: 0; }
@keyframes ring  { from { transform: scale(.4); opacity: .95; } to { transform: scale(2.6); opacity: 0; } }
@keyframes flash { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.1); opacity: 0; } }
@keyframes spark {
  0%   { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(1); }
  70%  { opacity: .9; }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--d) * -1)) scale(.3); }
}

.turn { transition: opacity .5s var(--ease), max-height .6s var(--ease); max-height: 200px; overflow: hidden; }
.turn.gone { opacity: 0; max-height: 0; margin: 0; pointer-events: none; }
.turn .btn { min-height: 44px; padding: 10px 22px; }

@media (prefers-reduced-motion: reduce) {
  .ritual { transition: none; }
  .tcard.open .tc-in { animation: none; transform: rotateY(180deg); }
  .tcard.open .tc-name { transition: none; }
}

/* ปุ่มคัดลอกเลขคำสั่งซื้อบนกล่องพื้นอ่อน */
.handoff .pc-code { color: var(--ink); background: #fff; border-color: rgba(168,133,63,.6); }
.handoff .pc-code .code { color: var(--gold-deep); }
.handoff .pc-code .lbl { color: var(--text-soft); }
.handoff .pc-code:hover { background: var(--cream-2); }
.handoff .btns { gap: 10px; }

/* ปุ่มผูกออเดอร์กับ LINE (LIFF Montra Link) */
.btn-line-link{
  display:block; width:100%; max-width:380px; margin:20px auto 0;
  padding:15px 20px; border-radius:12px; text-align:center;
  background:#06C755; color:#fff; font-weight:600; text-decoration:none;
}
.btn-line-link:hover{ color:#fff; }
.btn-line-hint{ text-align:center; margin:8px 0 20px; }

/* ═══ Perf patch 2026-10-06 — ลดการวาดซ้ำ ให้ลื่นบนมือถือ ═══ */

/* เมนู: glider ใช้เฉพาะตอน hover บนคอม · ไม่เด้งเกิน · เงาเบาลง */
.glider {
  transition: transform .32s cubic-bezier(.25,.8,.25,1), width .32s cubic-bezier(.25,.8,.25,1),
              height .2s ease, opacity .18s ease;
  box-shadow: 0 1px 0 rgba(255,255,255,.55) inset, 0 4px 12px rgba(217,184,119,.28);
  will-change: transform, width;
}
.menu a { transition: color .2s ease; -webkit-tap-highlight-color: transparent; }
.menu.js-glide .glider { opacity: 0; }
/* หน้าปัจจุบัน = พื้นทองของลิงก์เอง (ไม่กระโดดตอนฟอนต์โหลด/เปลี่ยนหน้า) */
.menu.js-glide:not(.gliding) a[aria-current="page"] {
  color: var(--ink); font-weight: 300;
  background:
    radial-gradient(120% 140% at 30% 0%, rgba(255,255,255,.55), transparent 55%),
    linear-gradient(180deg, var(--gold-hi), var(--gold));
  box-shadow: 0 1px 0 rgba(255,255,255,.55) inset, 0 4px 12px rgba(217,184,119,.28);
}
.menu a:active { background: rgba(217,184,119,.16); }

/* nav: blur เบาลงบนคอม · ปิด blur บนมือถือ */
.nav { -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); }
@media (max-width: 760px) {
  .nav { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(23,18,51,.97); }
}

/* หยุด animation ที่วาดใหม่ทุกเฟรม (ดาววิบวับด้วย opacity ยังอยู่) */
.logo-glow .hero-logo { animation: none; filter: drop-shadow(0 6px 30px rgba(217,184,119,.26)); }
html body .hero::after { animation: stars-b 8s ease-in-out infinite; }

/* scroll reveal: ไม่ blur */
@keyframes rv-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* เปลี่ยนหน้า: crossfade ล้วน สั้นลง ไม่ blur/scale */
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in  { from { opacity: 0; } }
::view-transition-old(root) { animation: vt-out .16s ease-out both; }
::view-transition-new(root) { animation: vt-in .26s ease-out both; }
::view-transition-group(*) { animation-duration: .3s; animation-timing-function: cubic-bezier(.25,.8,.25,1); }
