@font-face{font-family:'Maitree';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/Maitree-400-thai.woff2) format('woff2');unicode-range:U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;}
@font-face{font-family:'Maitree';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/Maitree-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Maitree';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/Maitree-600-thai.woff2) format('woff2');unicode-range:U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;}
@font-face{font-family:'Maitree';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/Maitree-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Maitree';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/Maitree-700-thai.woff2) format('woff2');unicode-range:U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;}
@font-face{font-family:'Maitree';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/Maitree-700-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Sarabun';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/Sarabun-400-thai.woff2) format('woff2');unicode-range:U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;}
@font-face{font-family:'Sarabun';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/Sarabun-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Sarabun';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/Sarabun-600-thai.woff2) format('woff2');unicode-range:U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;}
@font-face{font-family:'Sarabun';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/Sarabun-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* นกโหร — หน้า Story
   สีทั้งหมดเป็นตัวแปร ห้ามฮาร์ดโค้ด hex ใน rule ใดๆ ยกเว้นบล็อก :root นี้
   ชุด UI ตรงกับ content/brand.json + src/flex/brand.js · ชุดกลางคืนเพิ่มสำหรับหน้าเว็บโดยเฉพาะ
   ไม่มี #000 และ #FFF ที่ไหนเลย รวมถึงเงา (ใช้ night-deep แทนดำ) */
:root {
  /* ชุด UI — ตรงกับการ์ด LINE */
  --paper: #F4E8CD;
  --paper-alt: #EDDAB4;
  --line: #DFC188;
  --ochre: #D0A25B;
  --ink: #4B2B16;
  --ink-sub: #A07B52;
  --ink-faint: #A79A82;
  --state-warn: #9E4D2F;

  /* ชุดกลางคืน — ใช้เฉพาะหน้าเว็บ (design handoff รอบเว็บ) */
  --night-deep: #150B03;   /* ท้องฟ้าเข้มสุด · loader · เงา */
  --night: #1E1005;
  --night-mid: #2A1708;
  --night-soft: #3B2410;

  /* โทนเสริมที่ต้นแบบใช้แบบไม่มีชื่อ — ตั้งชื่อไว้ให้เรียกได้ */
  /* เนื้อความรองที่ยังต้องอ่านออก — วัดแล้วผ่าน 4.5 ทั้ง paper/paperAlt/card
     ห้ามใช้ --ink-sub กับข้อความที่มีความหมาย มันได้แค่ 3.17 บนพื้นกระดาษ */
  --ink-body: #765B3D;
  --card: #F1E2C0;         /* พื้นการ์ดจำลอง */

  --shadow-soft: 0 20px 50px rgba(21, 11, 3, .28);
  --shadow-lift: 0 12px 32px rgba(21, 11, 3, .40);

  --font-display: 'Maitree', Georgia, serif;
  --font-body: 'Sarabun', system-ui, sans-serif;

  /* ระยะบรรทัดไทย — ห้ามต่ำกว่า 1.45 ที่ไหนเลย สระบน/ล่างจะโดนตัด */
  --lh-head: 1.45;
  --lh-body: 1.75;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: var(--lh-body);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); line-height: var(--lh-head); margin: 0; font-weight: 600; }
p { margin: 0; }
/* ลิงก์บนพื้นสว่าง: ตัวอักษรเป็นหมึก ขีดเส้นใต้เป็น ochre
   เดิมตัวอักษรเป็น ochre ซึ่งได้คอนทราสต์ 1.9 และ hover เปลี่ยนเป็นสีกระดาษ = 1.00 มองไม่เห็นเลย
   ขีดเส้นใต้ ochre ยังรักษากติกา "เห็น ochre แล้วต้องกดได้" ไว้ครบ */
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ochre);
  text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink-body); text-decoration-thickness: 2px; }
.btn { text-decoration: none; }
.btn:hover { text-decoration: none; }
/* ลิงก์บนฉากกลางคืน ถ้ามีวันหลัง ต้องกลับด้าน · ยกเว้นปุ่ม ซึ่งมีสีพื้นของตัวเองอยู่แล้ว */
.solid-ink a:not(.btn), .solid-ink2 a:not(.btn), .closing a:not(.btn) { color: var(--paper); }
.solid-ink a:not(.btn):hover, .solid-ink2 a:not(.btn):hover, .closing a:not(.btn):hover { color: var(--paper-alt); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; border-radius: 4px; }

/* ── ฉากหลัง ───────────────────────────────────────────────── */
.sky {
  position: fixed; inset: 0; z-index: 0;
  background: linear-gradient(var(--night-deep), var(--night-mid) 60%, var(--night-soft));
}
#stars { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; }
#glow {
  position: fixed; top: 0; left: 0; z-index: 45;
  width: 560px; height: 560px; margin: -280px 0 0 -280px;
  border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(208, 162, 91, .13), transparent 62%);
  mix-blend-mode: screen;
}
main { position: relative; z-index: 1; }

/* ── loader ────────────────────────────────────────────────── */
#loader {
  position: fixed; inset: 0; z-index: 50;
  background: var(--night-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  transition: opacity .7s ease, visibility .7s;
}
#loader.is-gone { opacity: 0; visibility: hidden; }
.loader-bird { width: 88px; animation: float 2.4s ease-in-out infinite; }
.loader-line { font-family: var(--font-display); font-size: 18px; color: var(--paper-alt); }
.loader-dots { display: flex; gap: 7px; }
.loader-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--ochre); animation: blink 1.2s infinite; }
.loader-dots span:nth-child(2) { animation-delay: .2s; }
.loader-dots span:nth-child(3) { animation-delay: .4s; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(208, 162, 91, .45); }
  50% { box-shadow: 0 0 0 10px rgba(208, 162, 91, 0); }
}

/* ── ปุ่ม ──────────────────────────────────────────────────── */
.btn {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  border-radius: 6px; padding: 14px 30px; white-space: nowrap; line-height: 1.5;
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), background-color .2s;
}
.btn-gold { background: var(--ochre); color: var(--ink); }
.btn-gold:hover { background: var(--paper-alt); color: var(--ink); }
.btn-lg { font-size: 19px; padding: 16px 40px; }

/* ── nav + sticky CTA ──────────────────────────────────────── */
#topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 42;
  transform: translateY(-100%);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
  background: rgba(21, 11, 3, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(160, 123, 82, .35);
}
#topnav.is-on { transform: translateY(0); }
.nav-inner {
  display: flex; align-items: center; gap: 18px;
  padding: 10px 20px; max-width: 1200px; margin: 0 auto;
}
.nav-brand { display: flex; align-items: center; gap: 8px; flex: none; }
.nav-brand img { width: 26px; height: 26px; object-fit: contain; }
.nav-brand span { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--paper); }
.nav-links { display: flex; gap: 4px; flex: 1; justify-content: center; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-link {
  font-size: 14px; color: var(--paper-alt); padding: 8px 13px;
  border-radius: 100px; white-space: nowrap; flex: none; line-height: 1.5;
}
.nav-link:hover { background: rgba(208, 162, 91, .16); color: var(--paper); }
.nav-cta { font-size: 14px; padding: 8px 18px; border-radius: 100px; flex: none; }

#sticky {
  position: fixed; bottom: 20px; left: 50%; z-index: 40;
  transform: translate(-50%, 140px);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
  font-size: 16px; padding: 13px 28px; border-radius: 100px;
  box-shadow: var(--shadow-lift); animation: pulse 2.8s ease-in-out infinite;
}
#sticky.is-on { transform: translate(-50%, 0); }

/* ── โครงฉาก ───────────────────────────────────────────────── */
.scene { position: relative; height: calc(var(--vh) * 1vh); }
.pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.pin-center { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(24px, 4vh, 40px); padding: 0 24px; }
.solid-paper { background: var(--paper); color: var(--ink); }
.solid-paper-alt { background: var(--paper-alt); color: var(--ink); }
.solid-ink { background: var(--ink); }
.solid-ink2 { background: var(--night-soft); }
.flow { padding: 12vh 7vw; }

.eyebrow { font-size: 14px; letter-spacing: .18em; color: var(--ochre); line-height: 1.6; }
.solid-paper .eyebrow, .solid-paper-alt .eyebrow { color: var(--ink-body); }
.scene-head { display: flex; flex-direction: column; gap: 12px; text-align: center; }
.scene-head h2 { font-size: clamp(27px, 3.4vw, 46px); }
.sec-head { display: flex; flex-direction: column; gap: 10px; max-width: 640px; margin-bottom: 32px; }
.sec-head h2 { font-size: clamp(26px, 3vw, 40px); }
.lead { font-size: 17px; line-height: var(--lh-body); max-width: 540px; text-wrap: pretty; }
.solid-paper .lead, .solid-paper-alt .lead { color: var(--ink-body); }
.solid-ink .lead, .solid-ink2 .lead { color: var(--paper-alt); }
.lead-center { margin: 0 auto; text-align: center; }
.sub { font-size: 16px; color: var(--ink-faint); }

/* ── S1 hero ───────────────────────────────────────────────── */
#owl {
  position: absolute; top: 50%; left: 50%;
  width: min(36vh, 300px);
  margin: calc(min(36vh, 300px) / -2.6) 0 0 calc(min(36vh, 300px) / -2);
  will-change: transform;
  filter: drop-shadow(0 24px 48px rgba(21, 11, 3, .45));
}
.hero-text {
  position: absolute; left: 0; right: 0; top: 60%;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  text-align: center; padding: 0 24px;
}
#t1 { opacity: 0; font-size: clamp(32px, 5vw, 64px); font-weight: 700; letter-spacing: -.01em; will-change: transform, opacity; }
#t2 { opacity: 0; font-family: var(--font-display); font-size: clamp(21px, 3vw, 34px); font-weight: 600; color: var(--ochre); line-height: var(--lh-head); will-change: transform, opacity; }
#t3 { opacity: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; will-change: transform, opacity; }
.hero-body { font-size: 17px; color: var(--paper-alt); max-width: 480px; text-wrap: pretty; }
#hint { position: absolute; bottom: 24px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: opacity .4s; }
.hint-pill { border: 1px solid var(--ink-sub); color: var(--paper-alt); font-size: 14px; letter-spacing: .08em; padding: 9px 22px; border-radius: 100px; background: rgba(42, 23, 8, .5); }
.hint-arrow { font-size: 16px; color: var(--ochre); animation: float 1.6s ease-in-out infinite; }

/* ── S2 วงดวงชะตา ──────────────────────────────────────────── */
#w1 { opacity: 0; position: absolute; left: 0; right: 0; top: 9%; align-items: center; padding: 0 24px; will-change: transform, opacity; }
#wheelLabel { opacity: 0; position: absolute; left: 0; right: 0; top: 56%; text-align: center; font-family: var(--font-display); font-size: 17px; color: var(--ochre); will-change: opacity; }
#w2 { opacity: 0; position: absolute; left: 0; right: 0; bottom: 7%; display: flex; justify-content: center; padding: 0 24px; will-change: transform, opacity; }
#w2 p { font-size: 16px; line-height: var(--lh-body); color: var(--paper-alt); max-width: 560px; text-align: center; text-wrap: pretty; }

/* ── S3 เลื่อนแนวนอน + ผังเลข ──────────────────────────────── */
#track { display: flex; height: 100%; width: max-content; will-change: transform; }
.panel { width: 100vw; height: 100%; padding: 4vh 8vw; display: flex; flex-direction: column; justify-content: center; gap: clamp(10px, 2vh, 18px); }
.panel-intro h2 { font-size: clamp(28px, 4vw, 52px); max-width: 640px; }
.panel-grid, .panel-num { align-items: center; text-align: center; gap: clamp(16px, 2.4vh, 26px); }
.panel-grid h3 { font-size: clamp(20px, 2.2vw, 28px); }
.scroll-on { font-size: 15px; color: var(--ink-body); display: flex; align-items: center; gap: 8px; }
.scroll-on span { animation: float 1.6s ease-in-out infinite; display: inline-block; }

.nb { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.nb-row { display: flex; gap: clamp(5px, .9vw, 10px); }
.nb-cell {
  width: clamp(38px, 9vw, 70px); aspect-ratio: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 1px solid var(--line); background: var(--paper-alt); color: var(--ink);
  border-radius: 6px; font-variant-numeric: tabular-nums;
}
.nb-feed .nb-cell { aspect-ratio: 2.4; background: transparent; border-color: rgba(160, 123, 82, .28); color: var(--ink-body); font-size: 15px; }
.nb-plus { color: var(--ink-body); font-size: 15px; line-height: 1; margin: 2px 0; font-variant-numeric: tabular-nums; }
.nb-sum .nb-n { font-family: var(--font-display); font-size: clamp(17px, 2.2vw, 25px); font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
/* ชื่อฐานเป็นภาษาไทย ห้ามเล็กกว่านี้ ต้นแบบใช้ 8px ซึ่งอ่านไม่ออกบนมือถือ */
.nb-sum .nb-name { font-size: 13px; line-height: 1.45; color: var(--ink-body); }
.nb-cell.is-hot { background: var(--ochre); border-color: var(--ochre); color: var(--night-soft); }
.nb-cell.is-hot .nb-name { color: var(--night-soft); }
.nb-caption { font-size: 15px; color: var(--ink-body); max-width: 520px; line-height: var(--lh-body); text-wrap: pretty; }

.num-box { background: var(--ink); color: var(--paper); border-radius: 6px; padding: 22px 36px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow-soft); }
.num-label { font-size: 14px; color: var(--ochre); letter-spacing: .1em; }
.num-value { font-family: var(--font-display); font-size: 44px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
.num-note { font-size: 15px; color: var(--ink-body); }

/* ── S4 การ์ดสี ────────────────────────────────────────────── */
.swatches { display: flex; gap: clamp(12px, 2.4vw, 26px); flex-wrap: wrap; justify-content: center; }
.swatch {
  position: relative; width: clamp(130px, 17vw, 180px); min-height: 200px;
  border-radius: 6px; background: var(--night-soft); border: 1px solid var(--ink-sub);
  padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  clip-path: circle(0% at 50% 50%); will-change: clip-path;
}
.sw-chips { display: flex; gap: 6px; margin-bottom: 6px; }
.sw-chip { width: 30px; height: 30px; border-radius: 4px; border: 1px solid var(--ink-sub); }
.sw-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--paper); line-height: 1.5; }
.sw-aspect { font-size: 13px; line-height: 1.5; color: var(--ink-faint); text-wrap: pretty; }
.sw-badge { position: absolute; top: 12px; right: 12px; background: var(--state-warn); color: var(--paper); font-size: 13px; padding: 4px 10px; border-radius: 4px; line-height: 1.5; }

/* ── S5 ฤกษ์ ───────────────────────────────────────────────── */
.chips { display: flex; flex-direction: column; gap: 14px; width: 100%; overflow: hidden; }
.chip-row { display: flex; gap: 12px; justify-content: center; will-change: transform; }
.chip { border: 1px solid var(--ink-sub); color: var(--paper-alt); font-family: var(--font-display); font-size: 18px; padding: 11px 24px; border-radius: 100px; white-space: nowrap; flex: none; line-height: 1.5; }
#omen { opacity: 0; background: var(--night-mid); border: 1px solid var(--ink-sub); border-radius: 6px; padding: 24px 30px; display: flex; flex-direction: column; gap: 8px; max-width: 540px; text-align: center; will-change: transform, opacity; }
.omen-label { font-size: 13px; letter-spacing: .14em; color: var(--ochre); line-height: 1.6; }
.omen-date { font-family: var(--font-display); font-size: clamp(19px, 2.2vw, 24px); font-weight: 600; line-height: var(--lh-head); }
.omen-body { font-size: 16px; line-height: var(--lh-body); color: var(--paper-alt); text-wrap: pretty; }

/* ── S6 การ์ดเช้า ──────────────────────────────────────────── */
.pin-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; align-items: center; padding: 0 7vw; }
.s6-left { display: flex; flex-direction: column; gap: 14px; max-width: 440px; }
.s6-left h2 { font-size: clamp(25px, 3.2vw, 42px); }
.caps { position: relative; min-height: 170px; }
.cap { position: absolute; inset: 0; opacity: 0; display: flex; flex-direction: column; gap: 8px; transition: opacity .35s ease, transform .35s ease; transform: translateY(8px); will-change: opacity, transform; }
.cap.is-on { opacity: 1; transform: none; }
.cap-t { font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: var(--lh-head); }
.cap-b { font-size: 16px; line-height: var(--lh-body); color: var(--ink-body); text-wrap: pretty; }
.dots { display: flex; gap: 8px; }
.dot { width: 26px; height: 4px; border-radius: 2px; background: var(--line); transition: background-color .3s; }
.dot.is-on { background: var(--ink-sub); }
.s6-right { display: flex; justify-content: center; }

#mockcard {
  width: min(340px, 92%); background: var(--card); border: 1px solid var(--line);
  border-radius: 6px; padding: 20px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow-soft); color: var(--ink);
  clip-path: inset(0 0 100% 0); will-change: transform, clip-path;
}
.mc-head-row { display: flex; align-items: center; gap: 10px; }
.mc-avatar { width: 40px; height: 40px; border-radius: 6px; background: var(--paper); display: flex; align-items: center; justify-content: center; flex: none; }
.mc-avatar img { width: 30px; height: 30px; object-fit: contain; }
.mc-name { font-family: var(--font-display); font-size: 17px; font-weight: 600; line-height: 1.5; }
.mc-sub { font-size: 14px; color: var(--ink-body); line-height: 1.5; }
.mc-sep { height: 1px; background: var(--line); }
.mc-zone { display: flex; flex-direction: column; gap: 7px; opacity: .28; transition: opacity .35s ease; }
.mc-zone.is-on { opacity: 1; }
.mc-date { font-size: 14px; color: var(--ink-faint); line-height: 1.5; }
.mc-head { font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: var(--lh-head); }
.mc-advice, .mc-wear, .mc-num, .mc-card-state { font-size: 15px; line-height: 1.6; text-wrap: pretty; }
.mc-avoid { font-size: 14px; line-height: 1.6; color: var(--ink-faint); text-wrap: pretty; }
.mc-swatches { display: flex; align-items: center; gap: 6px; }
.mc-chip { width: 22px; height: 22px; border-radius: 4px; border: 1px solid var(--line); display: inline-block; }
.mc-gap { width: 10px; display: inline-block; }
.mc-btn { background: var(--ochre); color: var(--ink); border-radius: 6px; padding: 11px; text-align: center; font-family: var(--font-display); font-size: 15px; font-weight: 600; line-height: 1.5; }

/* ── S7a แพ็กเกจ ───────────────────────────────────────────── */
#pkg { display: flex; flex-direction: column; gap: 36px; }
.pkg-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.pkg-intro { display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.pkg-intro h2 { font-size: clamp(27px, 3.2vw, 42px); }
.pkg-toggle-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.pkg-toggle { display: flex; gap: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 100px; padding: 4px; }
.pkg-toggle button { font-family: var(--font-display); font-size: 15px; font-weight: 600; padding: 9px 22px; border-radius: 100px; color: var(--ink-body); line-height: 1.5; transition: background-color .2s, color .2s; }
.pkg-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.discount { font-size: 14px; color: var(--state-warn); line-height: 1.6; }

.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 20px; align-items: stretch; }
.pk {
  border: 1px solid var(--line); background: var(--paper); border-radius: 6px;
  padding: 26px 24px; display: flex; flex-direction: column; gap: 12px;
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.pk.is-in { opacity: 1; transform: none; }
.pk.is-ring { box-shadow: 0 0 0 2px var(--ink); }
.pk-tag { font-size: 13px; letter-spacing: .1em; color: var(--ink-body); line-height: 1.6; }
.pk-name { font-size: 23px; }
.pk-price { display: flex; align-items: baseline; gap: 6px; }
.pk-n { font-family: var(--font-display); font-size: 36px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
.pk-per { font-size: 14px; color: var(--ink-body); }
.pk-sub { font-size: 14px; color: var(--state-warn); min-height: 22px; line-height: 1.6; }
.pk-sep { height: 1px; background: var(--line); }
.pk-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.pk-feats li { font-size: 15px; line-height: 1.65; color: var(--ink); text-wrap: pretty; padding-left: 18px; position: relative; }
.pk-feats li::before { content: '✦'; position: absolute; left: 0; color: var(--line); }
.pkg-footers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pkg-footers li { font-size: 15px; color: var(--ink-body); line-height: 1.65; padding-left: 18px; position: relative; text-wrap: pretty; }
.pkg-footers li::before { content: '·'; position: absolute; left: 6px; }

/* ── S7b เริ่มยังไง ────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 20px; }
.step { display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--ochre); padding-top: 16px; }
.step-n { font-family: var(--font-display); font-size: 15px; color: var(--ink-body); font-weight: 600; line-height: 1.5; }
.step-t { font-size: 20px; }
.step-b { font-size: 15px; line-height: var(--lh-body); color: var(--ink-body); text-wrap: pretty; }

/* ── S7c ถามบ่อย ───────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; max-width: 820px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 18px 0; text-align: left; font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: var(--lh-head); }
.faq-sign { font-family: var(--font-display); font-size: 22px; color: var(--ink); flex: none; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > p { overflow: hidden; font-size: 16px; line-height: var(--lh-body); color: var(--ink-body); max-width: 680px; text-wrap: pretty; }
.faq-item.is-open .faq-a > p { padding-bottom: 18px; }

/* ── S7d ความเป็นส่วนตัว ───────────────────────────────────── */
.priv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.priv-card { display: flex; flex-direction: column; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 22px; }
.priv-card h3 { font-size: 19px; }
.priv-card p { font-size: 15px; line-height: var(--lh-body); color: var(--ink-body); text-wrap: pretty; }
.legal { font-size: 15px; color: var(--ink-body); margin-top: 32px; line-height: var(--lh-body); }

/* ── S8 ปิดท้าย ────────────────────────────────────────────── */
.closing {
  background: linear-gradient(rgba(30, 16, 5, .2), rgba(21, 11, 3, .55));
  display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center;
  padding: 18vh 24px;
}
.closing-bird { width: 150px; animation: float 6s ease-in-out infinite; }
.closing h2 { font-size: clamp(27px, 3.4vw, 44px); }
.closing-note { font-size: 15px; color: var(--ink-faint); }

/* ── มือถือ ────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .flow { padding: 10vh 6vw; }
  .nav-links { justify-content: flex-start; }
  .pkg-toggle-wrap { align-items: flex-start; width: 100%; }
  .caps { min-height: 200px; }
  #sticky { font-size: 15px; padding: 12px 22px; }

  /* ผังเลขเจ็ดช่องบนจอแคบ: ชื่อฐานยาวสุดคือ "มัชฌิมา" กว้าง ~41px ที่ 13px
     ช่องต้องกว้างพอให้มันอยู่ครบ ห้ามลดขนาดตัวอักษรลงไปแก้ (ภาษาไทยอ่านไม่ออก)
     จึงบีบ padding ของพาเนลกับช่องไฟแทน แล้วตรึงความกว้างช่องไว้ที่ 43px
     7×43 + 6×4 = 325px ยังพอดีจอ 360px ที่แคบที่สุดที่ยังเจอบ่อย
     เผื่อจอที่แคบกว่านั้นอีก ให้ผังเลื่อนเองได้แทนที่จะโดนตัด */
  .panel { padding: 4vh 4vw; }
  .nb { max-width: 100%; overflow-x: auto; }
  .nb-row { gap: 4px; flex: none; }
  .nb-cell { width: 43px; }
}

/* ── QR เพิ่มเพื่อน (ท้ายหน้า) ───────────────────────────────
   รูปเป็นของ LINE เอง จึงเป็นขาวดำล้วนตามต้นฉบับ ห้ามแต่งสีเพราะกล้องอาจสแกนไม่ติด
   วางบนแผ่นกระดาษเล็กๆ เพื่อไม่ให้ขอบขาวของ QR ชนฉากกลางคืนแบบดิบๆ */
.qr { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.qr-img { width: 140px; height: 140px; display: block; padding: 10px; border-radius: 10px; background: var(--paper); }
.qr-label { font-size: 15px; line-height: var(--lh-body); color: var(--paper-alt); }

/* ── หน้า legal ─────────────────────────────────────────────────
   เอกสารอ่านยาว จึงเป็นพื้นกระดาษล้วน ไม่มีฉากกลางคืนและไม่มีแอนิเมชันเลย */
.legal-body { background: var(--paper); color: var(--ink); }
.legal-top { border-bottom: 1px solid var(--line); background: var(--paper-alt); }
.legal-back { display: inline-flex; align-items: center; gap: 10px; padding: 14px 6vw; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.5; }
.legal-back:hover { color: var(--ink-body); }
.legal-back img { width: 26px; height: 26px; object-fit: contain; }

.legal { max-width: 720px; margin: 0 auto; padding: 8vh 6vw 12vh; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; }
.legal-lead { font-size: 17px; line-height: var(--lh-body); color: var(--ink-body); text-wrap: pretty; }
.legal-updated { font-size: 14px; color: var(--ink-body); margin-top: 12px; line-height: 1.6; }
.legal-sec { margin-top: 40px; }
.legal-sec h2 { font-size: clamp(20px, 2.4vw, 25px); margin-bottom: 12px; }
.legal-sec p { font-size: 16px; line-height: var(--lh-body); color: var(--ink-body); margin-bottom: 10px; text-wrap: pretty; }
.legal-sec p:last-child { margin-bottom: 0; }
.legal-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px; line-height: 1.7;
  background: var(--paper-alt); border: 1px solid var(--line); border-radius: 6px;
  padding: 16px 18px; margin: 14px 0; overflow-x: auto; white-space: pre-wrap; word-break: break-word;
}
.legal-contact { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 16px; line-height: var(--lh-body); color: var(--ink-body); }
.legal-nav { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; line-height: var(--lh-body); }

/* ── ปิดแอนิเมชันเมื่อผู้ใช้ขอ ─────────────────────────────────
   ต้นแบบยังไม่ได้ทำข้อนี้ (README ระบุว่าเป็นงาน dev)
   ทุกอย่างที่ scroll เป็นตัวขับต้องกลายเป็นสถานะสุดท้ายทันที ไม่ใช่ค้างอยู่ที่สถานะแรก */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  #stars, #glow { display: none; }
  .scene { height: auto !important; }
  .pin { position: static; height: auto; padding: 12vh 0; }
  .pin-center, .pin-split { padding: 12vh 7vw; }
  #owl { position: static; margin: 0 auto; transform: none !important; }
  .hero-text, #hint { position: static; }
  #hint { margin-top: 32px; }
  #t1, #t2, #t3, #w1, #w2, #wheelLabel, #omen { opacity: 1 !important; transform: none !important; }
  #w1, #w2, #wheelLabel { position: static; margin: 24px auto; }
  #track { flex-direction: column; width: 100%; transform: none !important; }
  .panel { width: 100%; height: auto; }
  .swatch { clip-path: none !important; }
  .chip-row { flex-wrap: wrap; transform: none !important; }
  #mockcard { clip-path: none !important; transform: none !important; }
  .cap { position: static; opacity: 1 !important; transform: none !important; margin-bottom: 20px; }
  .caps { min-height: 0; }
  .mc-zone { opacity: 1 !important; }
  .pk { opacity: 1 !important; transform: none !important; }
  #topnav { transform: translateY(0); }
}
