/* อนันต์จะปั่นชาเย็น — สไตล์กลาง
   ค่าสีและฟอนต์ทุกตัวมาจาก brand/tokens.json ซึ่งถอดมาจาก Brand Playbook ข้อ 2.4 และ 2.6
   ห้ามใส่สีนอกระบบ · ห้ามใช้ขาวเป็นธีมหลัก (playbook ข้อ 2.4) */

:root {
  /* ระบบสีของแบรนด์ — มีสี่สีนี้เท่านั้น */
  --ดำหมึก:      #141312;
  --เหลืองยันต์:  #FFF200;
  --แดงชาด:      #ED1C24;
  --ทองมงคล:     #C9A227;

  /* เฉดที่ได้จากสี่สีข้างบน ใช้สำหรับพื้นผิวและตัวหนังสือ ไม่ใช่สีใหม่ */
  --พื้น:         #141312;
  --พื้นยก:       #1e1c1a;
  --พื้นยก2:      #272421;
  --เส้น:         #3a3632;
  --ตัวอักษร:     #f0ece4;
  --ตัวอักษรรอง:  #a9a29a;

  --ฟอนต์หัว:     'Kanit', system-ui, sans-serif;   /* อาฆาตเป็นอาร์ตเวิร์ก ไม่ใช่เว็บฟอนต์ */
  --ฟอนต์เนื้อ:    'Kanit', system-ui, sans-serif;
  --ฟอนต์สโลแกน:  'Mali', cursive;                   /* ใช้กับสโลแกนเท่านั้น playbook ข้อ 2.6 */

  --กว้างสุด: 1080px;
  --ขอบข้าง: 20px;
}

* { box-sizing: border-box; }
/* คลาสที่ตั้ง display เองจะทับ attribute hidden · บังคับให้ hidden ซ่อนจริงเสมอ */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--พื้น);
  color: var(--ตัวอักษร);
  font-family: var(--ฟอนต์เนื้อ);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ลายยันต์จาง ๆ เป็นพื้นหลัง ไม่ใช่เหลืองเต็มพื้น ตามข้อห้ามใน playbook
   --แสงวัน คือแสงบาง ๆ ตามสีประจำวัน app.js ตั้งให้ (เจ้าของตัดสิน 24 ก.ย. 2569)
   เป็นแค่ประกายจากขอบบนบนพื้นดำ ห้ามเพิ่มความเข้มจนกลายเป็นพื้นสี · ค่าตั้งต้นคือเหลืองยันต์แบบเดิม */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, var(--แสงวัน, rgba(255,242,0,.07)), transparent 70%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(237,28,36,.06), transparent 70%);
}

.ห่อ { position: relative; z-index: 1; }

.ใน {
  width: 100%;
  max-width: var(--กว้างสุด);
  margin: 0 auto;
  padding: 0 var(--ขอบข้าง);
}

h1, h2, h3 { font-family: var(--ฟอนต์หัว); font-weight: 600; line-height: 1.25; margin: 0 0 .6em; }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); }
h3 { font-size: 1.1rem; }
p  { margin: 0 0 1em; }
a  { color: var(--เหลืองยันต์); }

/* ── แถบบน ─────────────────────────────────────────────────── */
.แถบบน {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20,19,18,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--เส้น);
}
.แถบบน .ใน { display: flex; align-items: center; gap: 14px; height: 62px; }
.แถบบน img { height: 40px; width: auto; }
.แถบบน .ชื่อ { font-family: var(--ฟอนต์หัว); font-weight: 600; font-size: .95rem; letter-spacing: .01em; }
.แถบบน nav { margin-left: auto; display: flex; gap: 22px; font-size: .88rem; }
.แถบบน nav a { color: var(--ตัวอักษรรอง); text-decoration: none; }
.แถบบน nav a:hover { color: var(--เหลืองยันต์); }
/* มือถือ: เมนูพับเก็บ มีปุ่ม ☰ ที่ app.js ใส่ให้ทุกหน้า (เดิมซ่อนเมนูไปเลยโดยไม่มีปุ่ม เจ้าของเจอ 25 ก.ย. 2569)
   ไฟล์นี้เปลี่ยนเนื้อครั้งที่ 2 วันเดียวกัน เพื่อให้เลขรุ่นใหม่ หนีไฟล์เก่าที่ CDN ส่งให้เบราว์เซอร์ไปแล้ว */
.ปุ่มเมนู { display: none; }
@media (max-width: 720px) {
  .ปุ่มเมนู {
    display: inline-flex; align-items: center; justify-content: center; margin-left: auto;
    width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--เส้น);
    background: transparent; color: var(--ตัวอักษร); font-size: 1.35rem; cursor: pointer;
  }
  .แถบบน nav {
    display: none; position: absolute; top: 62px; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: rgba(20,19,18,.97); border-bottom: 1px solid var(--เส้น);
  }
  .แถบบน.เปิดเมนู nav { display: flex; }
  .แถบบน nav a { padding: 15px 20px; font-size: 1rem; border-top: 1px solid var(--เส้น); }
}

/* ── ฮีโร่ ─────────────────────────────────────────────────── */
.ฮีโร่ { padding: 54px 0 64px; text-align: center; }
/* ตราหลักมีตราชื่ออักษรแดงอยู่ด้านล่าง วางบนพื้นดำเฉย ๆ ตัวหนังสือจะจมและสั่นตา
   playbook ข้อ 2.4 บังคับว่าอักษรแดงบนพื้นดำต้องมีเส้นขอบขาวหรือขอบทอง จึงตัดขอบด้วยทองมงคล */
.ฮีโร่ .ตรา {
  width: min(230px, 56vw); height: auto; margin-bottom: 20px;
  filter:
    drop-shadow( 1.5px 0 0 var(--ทองมงคล)) drop-shadow(-1.5px 0 0 var(--ทองมงคล))
    drop-shadow(0  1.5px 0 var(--ทองมงคล)) drop-shadow(0 -1.5px 0 var(--ทองมงคล));
}
.ฮีโร่ .สโลแกน {
  font-family: var(--ฟอนต์สโลแกน);
  font-size: clamp(2.1rem, 8vw, 3.6rem);
  font-weight: 700;
  color: var(--เหลืองยันต์);
  line-height: 1.15;
  margin: 0 0 14px;
  text-shadow: 0 2px 0 rgba(0,0,0,.5);
}
/* ต้องระบุ p · ปุ่ม "ปุ่ม รอง" ก็มีคลาส รอง ถ้าไม่ระบุ ปุ่ม LINE ในฮีโร่จะได้ margin auto ไปด้วยแล้วเรียงเพี้ยน (เจอ 25 ก.ย. 2569) */
.ฮีโร่ p.รอง { color: var(--ตัวอักษรรอง); max-width: 46ch; margin: 0 auto 26px; }

/* หน้าแรกแบบปก playbook · แถบแดงชาดบน แถบแดงไล่ทองล่าง ตราหลักเต็มตา
   ขนาดสัดส่วนตามปก: ตรากว้างราว 61% ของหน้า (128 จาก 210 มม.) · สโลแกนบรรทัดเดียว */
.ฮีโร่.ปก {
  position: relative;
  min-height: calc(100svh - 62px);
  display: flex; align-items: center;
  padding: 48px 0 56px;
}
.ฮีโร่.ปก::before, .ฮีโร่.ปก::after { content: ''; position: absolute; left: 0; right: 0; height: 6px; }
.ฮีโร่.ปก::before { top: 0; background: var(--แดงชาด); }
.ฮีโร่.ปก::after  { bottom: 0; background: linear-gradient(90deg, var(--แดงชาด), var(--ทองมงคล)); }
.ฮีโร่.ปก .ประกาย { position: relative; display: inline-block; margin-bottom: 26px; line-height: 0; }
.ฮีโร่.ปก h1.ประกาย { margin-top: 0; font-size: inherit; }   /* h1 ครอบตราหน้าแรก (SEO 2 ต.ค. 2569) ไม่ให้ระยะเปลี่ยน */
.ฮีโร่.ปก .ตรา {
  width: var(--กว้างตรา); height: auto; margin: 0; display: block;
  /* เส้นขอบทองรอบชื่อร้าน · เจ้าของขอให้บางลงสองครั้ง 25 ก.ย. 2569 (1.5 → 0.75 → 0.375px)
     ยังต้องมีตาม playbook 2.4 อักษรแดงบนพื้นดำต้องมีขอบ ห้ามเอาออก */
  filter:
    drop-shadow( .375px 0 0 var(--ทองมงคล)) drop-shadow(-.375px 0 0 var(--ทองมงคล))
    drop-shadow(0  .375px 0 var(--ทองมงคล)) drop-shadow(0 -.375px 0 var(--ทองมงคล));
}
.ฮีโร่.ปก .สโลแกน { line-height: 1.1; margin: 0 0 28px; text-shadow: none; }
/* ขนาดสโลแกนผูกกับความกว้างตรา ตามสัดส่วนปก playbook
   ตรา 128 มม. · "ร้านเอาฮา" 28pt (9.9 มม. = 7.7%) · "ชาเอาจริง" 31pt (10.9 มม. = 8.5%)
   ชื่อร้านในตราจึงเด่นกว่าสโลแกนเสมอ (เจ้าของถาม 25 ก.ย. 2569) */
.ฮีโร่.ปก { --กว้างตรา: min(560px, 82vw); }
.ฮีโร่.ปก .สโลแกน .ฮา {
  font-family: var(--ฟอนต์สโลแกน); font-weight: 700; color: var(--เหลืองยันต์);
  font-size: calc(var(--กว้างตรา) * .077);
}
.ฮีโร่.ปก .สโลแกน .จริง {
  font-family: 'Trirong', serif; font-weight: 600; color: #fff; letter-spacing: .01em;
  font-size: calc(var(--กว้างตรา) * .085);
}
.ฮีโร่.ปก .สโลแกน .เว้น { display: inline-block; width: .45em; }
/* จอแคบมาก ให้ขึ้นสองบรรทัดแทนการย่อจนอ่านยาก */

/* จอเตี้ยให้ปุ่ม "รับวอลเปเปอร์วันนี้" อยู่ในจอแรก (เจ้าของอนุมัติ 26 ก.ย. 2569)
   ย่อตราเฉพาะเมื่อพื้นที่ที่มองเห็นจริงไม่พอ จอสูงได้ขนาดเดิม 82vw ไม่เปลี่ยน
   100svh คือความสูงตอนแถบเบราว์เซอร์กางเต็ม หักแถบให้แล้ว ห้ามหักแถบเบราว์เซอร์ซ้ำอีก
   ของใต้ตรา: ช่องว่าง 4 ช่อง · สโลแกนสูงราว .134 เท่าของตรา (บวกกับตัวตราเป็น 1.134)
   203px = บรรทัดใต้ตรา 8 + สโลแกนเผื่อ 2 + ป้ายสถานะ 39 + ข้อความรอง 3 บรรทัด 84 + ปุ่ม 58 + เว้นท้าย 12 (วัดที่ 375 × 667)
   จำกัดแค่จอกว้างไม่เกิน 600px (มือถือ) จอคอมเตี้ยอย่าง 1280 × 720 ตราจะหดจาก 560 เหลือราว 310 ซึ่งเจ้าของยังไม่ได้ดู
   ห่อใน @supports เพราะถ้าเบราว์เซอร์ไม่รู้จัก svh ตัวแปรจะพังทั้งก้อนแล้วตรากลับเป็น 900px เต็ม */
.ฮีโร่.ปก { --ช่อง: 26px; --บนปก: 48px; padding-top: var(--บนปก); }
.ฮีโร่.ปก .ประกาย, .ฮีโร่.ปก .ป้ายสถานะ { margin-bottom: var(--ช่อง); }
.ฮีโร่.ปก .สโลแกน { margin-bottom: calc(var(--ช่อง) + 2px); }
.ฮีโร่.ปก p.รอง { margin-bottom: var(--ช่อง); }
@media (max-height: 760px) and (max-width: 600px) { .ฮีโร่.ปก { --ช่อง: 18px; --บนปก: 28px; } }
@supports (height: 100svh) { @media (max-width: 600px) {
  .ฮีโร่.ปก { --กว้างตรา: min(560px, 82vw, max(190px, calc((100svh - 62px - var(--บนปก) - 4 * var(--ช่อง) - 203px) / 1.134))); }
} }

.ป้ายสถานะ {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--แดงชาด);
  color: var(--ตัวอักษร);
  background: rgba(237,28,36,.1);
  border-radius: 999px;
  padding: 7px 17px;
  font-size: .82rem;
  margin-bottom: 26px;
}
.ป้ายสถานะ .จุด {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--แดงชาด);
  animation: เต้น 2s ease-in-out infinite;
}
@keyframes เต้น { 0%,100% { opacity:1 } 50% { opacity:.25 } }
@media (prefers-reduced-motion: reduce) { .ป้ายสถานะ .จุด { animation: none } }

/* ── ปุ่ม ──────────────────────────────────────────────────── */
.ปุ่มแถว { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ปุ่ม {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--ฟอนต์หัว); font-weight: 600; font-size: 1rem;
  padding: 13px 26px; border-radius: 10px;
  text-decoration: none; border: 2px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease;
}
.ปุ่ม:active { transform: translateY(1px); }
.ปุ่ม.หลัก { background: var(--เหลืองยันต์); color: var(--ดำหมึก); }
.ปุ่ม.หลัก:hover { box-shadow: 0 0 0 4px rgba(255,242,0,.2); }
.ปุ่ม.รอง { border-color: var(--เส้น); color: var(--ตัวอักษร); }
.ปุ่ม.รอง:hover { border-color: var(--เหลืองยันต์); color: var(--เหลืองยันต์); }

/* ── บล็อกเนื้อหา ──────────────────────────────────────────── */
.ตอน { padding: 60px 0; border-top: 1px solid var(--เส้น); }
.ตอน > .ใน > h2 { text-align: center; }
.ตอน .นำ { text-align: center; color: var(--ตัวอักษรรอง); max-width: 52ch; margin: 0 auto 36px; }

.คู่ { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 800px) { .คู่ { grid-template-columns: 1fr; gap: 26px; } }
.คู่ img { width: 100%; height: auto; border-radius: 12px; display: block; }

.การ์ดแถว { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.การ์ด {
  background: var(--พื้นยก);
  border: 1px solid var(--เส้น);
  border-radius: 12px;
  padding: 22px;
}
.การ์ด .เลข {
  font-family: var(--ฟอนต์หัว); font-weight: 700; font-size: 1.6rem;
  color: var(--ทองมงคล); line-height: 1; margin-bottom: 10px;
}
.การ์ด p { color: var(--ตัวอักษรรอง); font-size: .92rem; margin: 0; }

/* ── ตราประทับศาลเจ้า ──────────────────────────────────────── */
.ตราศาล { display: flex; gap: 14px; justify-content: center; margin: 26px 0 0; }
.ตราศาล img { width: 62px; height: 62px; opacity: .9; }
.ตราศาล img:nth-child(2) { transform: rotate(-4deg); }
.ตราศาล img:nth-child(3) { transform: rotate(3deg); }

/* ── เครดิต ────────────────────────────────────────────────── */
.เครดิตแถว { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.เครดิต {
  border: 1px solid var(--ทองมงคล);
  color: var(--ทองมงคล);
  border-radius: 8px; padding: 10px 16px;
  font-size: .85rem; text-align: center;
}

/* ── ท้ายหน้า ──────────────────────────────────────────────── */
.ท้าย { border-top: 1px solid var(--เส้น); padding: 34px 0 44px; color: var(--ตัวอักษรรอง); font-size: .82rem; }
.ท้าย .ใน { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.ท้าย a { color: var(--ตัวอักษรรอง); }

.ท้าย .สีวัน { margin-top: 4px; }
.ท้าย .สีวัน:empty { display: none; }

/* ── ฟอร์มลงชื่อรอ (shop.html) ────────────────────────────── */
.ฟอร์ม {
  max-width: 480px; margin: 0 auto;
  display: grid; gap: 18px;
  background: var(--พื้นยก); border: 1px solid var(--เส้น); border-radius: 12px;
  padding: 24px;
}
.ฟอร์ม label { display: grid; gap: 6px; font-size: .92rem; }
.ฟอร์ม fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.ฟอร์ม legend { font-size: .92rem; margin-bottom: 6px; padding: 0; }
.ฟอร์ม input:not([type]), .ฟอร์ม select {
  font: inherit; font-weight: 400; color: var(--ตัวอักษร);
  background: var(--พื้น); border: 1px solid var(--เส้น); border-radius: 8px;
  padding: 11px 13px; width: 100%;
}
.ฟอร์ม input:focus-visible, .ฟอร์ม select:focus-visible { outline: 2px solid var(--ทองมงคล); outline-offset: 1px; }
.ฟอร์ม .ตัวเลือก { display: flex; gap: 10px; align-items: flex-start; color: var(--ตัวอักษรรอง); }
.ฟอร์ม .ตัวเลือก input { accent-color: var(--ทองมงคล); margin-top: .45em; flex: none; }
.ฟอร์ม .ยินยอม { font-size: .85rem; }
.ฟอร์ม button { justify-content: center; border: 0; cursor: pointer; }
.ฟอร์ม button:disabled { opacity: .6; cursor: wait; }
.ผลฟอร์ม { margin: 0; font-size: .9rem; min-height: 1.5em; text-align: center; }
.ผลฟอร์ม.สำเร็จ { color: var(--ทองมงคล); }
.ผลฟอร์ม.ผิด { color: var(--ตัวอักษร); }
.ผลฟอร์ม.ผิด::before { content: '— '; color: var(--แดงชาด); }

/* ── วอลเปเปอร์ประจำวัน (wallpaper.html) ───────────────────── */
.ภาพวัน {
  display: block; margin: 0 auto 18px;
  width: auto; max-width: min(360px, 78vw); max-height: 72vh;
  border-radius: 22px; border: 1px solid var(--เส้น);
  box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 0 6px rgba(201,162,39,.08);
}
/* หน้าจอล็อกจำลองซ้อนบนภาพ · ขนาดตัวอักษรตามความกว้างภาพ (--ก ตั้งจาก wallpaper.js) · แตะทะลุไปที่ภาพ กดค้างบันทึกได้ */
.จอภาพ { position: relative; width: fit-content; margin: 0 auto 10px; }
.จอภาพ .ภาพวัน { margin: 0; }
.หน้าล็อก { position: absolute; inset: 0; pointer-events: none; color: rgba(255,255,255,.94); text-shadow: 0 1px 6px rgba(0,0,0,.35); font-family: -apple-system, 'SF Pro Display', system-ui, sans-serif; }
.ล็อก-วัน, .ล็อก-เวลา { position: absolute; left: 0; right: 0; text-align: center; line-height: 1; }
.ล็อก-วัน { top: 6.2%; font-size: calc(var(--ก, 3.6px) * 4.2); font-weight: 500; }
.ล็อก-เวลา { top: 8.4%; font-size: calc(var(--ก, 3.6px) * 20); font-weight: 600; letter-spacing: -.02em; }
.ล็อก-ปุ่ม { position: absolute; bottom: 5.8%; width: calc(var(--ก, 3.6px) * 10.6); aspect-ratio: 1; border-radius: 50%; background: rgba(30,30,30,.42); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(6px); }
.ล็อก-ปุ่ม.ซ้าย { left: 8.7%; } .ล็อก-ปุ่ม.ขวา { right: 8.7%; }
.ล็อก-แถบ { position: absolute; bottom: 1.2%; left: 33%; right: 33%; height: calc(var(--ก, 3.6px) * 1.1); border-radius: 99px; background: rgba(255,255,255,.85); }
.สลับหน้าล็อก { margin: 0 0 14px; font-size: .8rem; }
/* ภาพของวันนี้บนหน้าแรก กรอบมุมโค้งแบบจอมือถือ */
.ภาพวันหน้าแรก { margin: 8px auto 26px; text-align: center; }
.ภาพวันหน้าแรก img { display: block; margin: 0 auto 10px; width: min(250px, 62vw); height: auto; border-radius: 22px;
  border: 1px solid var(--เส้น); box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 0 6px rgba(201,162,39,.08); }
.ภาพวันหน้าแรก figcaption { font-size: .85rem; color: var(--ตัวอักษรรอง); }
.ภาพวันหน้าแรก figcaption a { color: var(--ทองมงคล); }
.สถานะแต้ม { margin: 12px auto 0; max-width: 34ch; font-size: .88rem; color: var(--ตัวอักษรรอง); line-height: 1.55; }
.สถานะแต้ม a { color: var(--ทองมงคล); }
.สถานะแต้ม.สำเร็จ { color: var(--ทองมงคล); }
.สถานะแต้ม.เตือน { color: var(--ตัวอักษร); }
.สถานะแต้ม.เตือน::before { content: '— '; color: var(--แดงชาด); }
.สลับหน้าล็อก a { color: var(--ตัวอักษรรอง); }
.คำอวยพร { font-size: 1.08rem; color: var(--ตัวอักษร); max-width: 34ch; margin: 0 auto 20px; font-weight: 400; }
.ใบพิเศษ { max-width: 560px; margin: 28px auto 0; text-align: center; }
.ใบพิเศษ > p { color: var(--ตัวอักษรรอง); font-size: .88rem; margin: 0 auto 14px; }
/* แถวเลื่อนข้าง เห็นใบที่สามโผล่ครึ่งใบ บอกว่าเลื่อนได้ · ช่องโชว์ใบพิเศษที่วาดจริงย่อเล็ก (26 ก.ย. 2569) */
.ตารางท่า { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; -webkit-overflow-scrolling: touch; text-align: center; }
.ตารางท่า .ช่องท่า { flex: 0 0 136px; scroll-snap-align: start; }
.ช่องท่า {
  font: inherit; color: var(--ตัวอักษร); cursor: pointer;
  background: var(--พื้นยก); border: 1px solid var(--เส้น); border-radius: 12px;
  padding: 8px 6px 10px; display: grid; gap: 2px; justify-items: center;
}
/* ท่าที่ยังล็อกยังเห็นสีจริง (เจ้าของบอก 25 ก.ย. 2569 ว่าภาพเทาดูไม่น่าแลก) · ท่าที่เป็นของคุณแล้วมีแสงทอง */
.ช่องท่า img { width: 100%; height: auto; aspect-ratio: 9 / 20; object-fit: contain; border-radius: 8px; background: #0e0d0b; margin-bottom: 4px; }
.ช่องท่า.วาดแล้ว img { object-fit: cover; box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.ช่องท่า.มีแล้ว { box-shadow: 0 0 18px rgba(201,162,39,.25); }
.ช่องท่า span { font-size: .78rem; line-height: 1.3; }
.ช่องท่า small { font-size: .7rem; color: var(--ทองมงคล); }
.ช่องท่า.มีแล้ว { border-color: var(--ทองมงคล); }
.ช่องท่า.มีแล้ว img { outline: 2px solid var(--ทองมงคล); }
.ยอดแต้ม { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.ยอดแต้ม div { background: var(--พื้น); border: 1px solid var(--เส้น); border-radius: 10px; padding: 10px 6px; }
.ยอดแต้ม b { display: block; font-family: var(--ฟอนต์หัว); font-size: 1.5rem; color: var(--ตัวอักษร); line-height: 1.2; }
.ยอดแต้ม span { font-size: .75rem; color: var(--ตัวอักษรรอง); }
.ยอดแต้ม .เหลือ { border-color: var(--ทองมงคล); }
.ยอดแต้ม .เหลือ b { color: var(--ทองมงคล); }
.หลอดแต้ม { height: 8px; border-radius: 99px; background: var(--พื้น); border: 1px solid var(--เส้น); overflow: hidden; margin-top: 12px; }
.หลอดแต้ม span { display: block; height: 100%; background: linear-gradient(90deg, var(--ทองมงคล), var(--เหลืองยันต์)); }

/* สมุดวันสำคัญ · ตราจริงหนึ่งดวงต่อวันจีนสำคัญที่แวะมา */
.สมุด, .ทำเนียบ { max-width: 560px; margin: 28px auto 0; text-align: center; }
.สมุด > p, .ทำเนียบ > p { color: var(--ตัวอักษรรอง); font-size: .88rem; margin: 0 auto 14px; }
.ช่องสมุด {
  list-style: none; margin: 0; padding: 14px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px;
  background: var(--พื้นยก); border: 1px solid var(--เส้น); border-radius: 14px;
}
.ตราสมุด {
  display: grid; justify-items: center; align-content: start; gap: 2px;
  padding: 10px 4px 8px; border: 1px solid var(--เส้น); border-radius: 10px; background: var(--พื้น);
}
.ตราสมุด img { width: 58px; height: 58px; margin-bottom: 4px; }
.ตราสมุด b { font-weight: 400; font-size: .76rem; line-height: 1.3; }
.ตราสมุด span { font-size: .7rem; color: var(--ตัวอักษรรอง); }
.ตราสมุด.เจ้าแม่ { border-color: var(--ทองมงคล); box-shadow: inset 0 0 0 2px rgba(201,162,39,.25); }
.ตราสมุด.เจ้าแม่ b { color: var(--ทองมงคล); }
/* ตราครบ 7 วัน: ตราเดิมย้อมเป็นหมึกทอง */
.ตราสมุด.ครบเจ็ด { border-color: var(--ทองมงคล); background: radial-gradient(circle at 50% 35%, rgba(201,162,39,.16), transparent 70%), var(--พื้น); }
.ตราสมุด.ครบเจ็ด img { filter: sepia(1) saturate(2.6) hue-rotate(-12deg) brightness(1.15); }
.ตราสมุด.ครบเจ็ด b { color: var(--ทองมงคล); }
.สมุด .คืบเจ็ด { color: var(--ทองมงคล); margin-top: -6px; }
.ตราสมุด.ว่าง { border-style: dashed; background: none; }
.ตราสมุด.ว่าง i {
  width: 58px; height: 58px; margin-bottom: 4px; border: 1px dashed var(--เส้น); border-radius: 6px;
  display: grid; place-items: center; font-style: normal; font-size: .7rem; color: var(--ตัวอักษรรอง);
}
.ตราสมุด.ว่าง.วันนี้, .ตราสมุด.ว่าง.วันนี้ i { border-color: var(--ทองมงคล); }
.ตราสมุด.ว่าง.วันนี้ i { color: var(--ทองมงคล); }

/* ทำเนียบศิษย์ขยัน · ขึ้นเฉพาะเมื่อเจ้าของเปิด (BOARD_PUBLIC ใน api/_shop.php) */
.อันดับ { list-style: none; margin: 0 auto; padding: 0; max-width: 420px; display: grid; gap: 6px; }
.อันดับ li {
  display: grid; grid-template-columns: 2.2em 1fr auto; align-items: center; gap: 10px; text-align: left;
  background: var(--พื้นยก); border: 1px solid var(--เส้น); border-radius: 10px; padding: 8px 12px;
}
.อันดับ li span { font-family: var(--ฟอนต์หัว); color: var(--ตัวอักษรรอง); text-align: center; }
.อันดับ li:nth-child(-n+3) span { color: var(--ทองมงคล); }
.อันดับ li b { font-weight: 400; overflow-wrap: anywhere; }
.อันดับ li em { font-style: normal; font-size: .85rem; color: var(--ทองมงคล); white-space: nowrap; }
.ทำเนียบ .ว่าง, .ทำเนียบ .ของฉัน { color: var(--ตัวอักษรรอง); font-size: .88rem; margin: 12px auto 0; }
.ฟอร์มทำเนียบ { margin-top: 14px; text-align: left; }

/* ── พิพิธภัณฑ์ 3D (museum.html) ─────────────────────────────── */
.เวที {
  position: relative; width: 100%; height: min(78svh, 760px); min-height: 420px;
  background: radial-gradient(ellipse 60% 55% at 50% 45%, var(--แสงวัน, rgba(255,242,0,.07)), transparent 70%), var(--ดำหมึก);
  border-top: 1px solid var(--เส้น); border-bottom: 1px solid var(--เส้น);
  overflow: hidden;
}
.เวที canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.เวที canvas:active { cursor: grabbing; }
/* เข้าห้องแล้วเต็มจอ หน้าเว็บเลื่อนขึ้นลงไม่ได้จนกว่าจะกดออกจากห้อง (เจ้าของขอ 27 ก.ย. 2569) · museum.js ใส่ .เปิด กับ html.ในห้อง
   ปุ่มกับจอยเว้นขอบจอ iPhone (รอยบาก แถบล่าง) */
html.ในห้อง, html.ในห้อง body { overflow: hidden; overscroll-behavior: none; }
.เวที.เปิด { position: fixed; inset: 0; width: 100%; height: 100vh; height: 100dvh; min-height: 0; z-index: 1000; border: 0; }
.เวที.เปิด .ปุ่มห้อง { top: calc(12px + env(safe-area-inset-top, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); }
.เวที.เปิด .จอย { bottom: calc(18px + env(safe-area-inset-bottom, 0px)); right: calc(18px + env(safe-area-inset-right, 0px)); }
/* หน้าประตู: ภาพจริงจากในห้องเป็นฉากหลังขยับช้า ๆ ให้เห็นก่อนกดว่าข้างในมีอะไร (เจ้าของขอ 27 ก.ย. 2569 ไม่ให้คนเลื่อนผ่าน) */
.ประตู { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; text-align: center; overflow: hidden; }
.ประตู .ภาพในห้อง { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transform-origin: 50% 40%; animation: ในห้องค่อยเข้า 26s ease-in-out infinite alternate; }
.ประตู::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 75% 50% at 50% 52%, rgba(20,19,18,.55), rgba(20,19,18,.2) 60%, rgba(20,19,18,.85)),
              linear-gradient(180deg, rgba(20,19,18,.75), rgba(20,19,18,0) 28%, rgba(20,19,18,0) 70%, rgba(20,19,18,.9)); }
.ประตู > :not(.ภาพในห้อง) { position: relative; z-index: 1; }
@keyframes ในห้องค่อยเข้า { from { transform: scale(1); } to { transform: scale(1.12) translateY(-2%); } }
@media (prefers-reduced-motion: reduce) { .ประตู .ภาพในห้อง { animation: none; } }
.ประตู .ประกาย { position: relative; display: inline-block; line-height: 0; }
.ประตู .ประกาย img { width: min(104px, 26vw); height: auto; }   /* ตรา A พื้นโปร่งใส (logo-a-gold-clear.png) กลืนกับฉากหลัง ไม่มีกรอบสี่เหลี่ยม */
.ประตู .ชวน { margin: 0; font-family: var(--ฟอนต์หัว); font-weight: 600; font-size: 1.45rem; line-height: 1.25; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.8); }
.ประตู .ชวน span { display: block; font-weight: 400; font-size: .92rem; color: var(--ทองมงคล); }
.ประตู .มีอะไร { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 36ch; }
.ประตู .มีอะไร li { font-size: .8rem; padding: 6px 12px; border-radius: 999px; background: rgba(20,19,18,.72); border: 1px solid rgba(201,162,39,.55); }
.ประตู .ปุ่ม { border: 0; cursor: pointer; font-size: 1.1rem; padding: 15px 34px; }
.ประตู .ปุ่ม:disabled { opacity: .7; cursor: wait; }
.ประตู .บอก { color: var(--ตัวอักษรรอง); font-size: .78rem; margin: 0; max-width: 40ch; text-shadow: 0 1px 6px rgba(0,0,0,.9); }
.ปุ่มห้อง { position: absolute; top: 12px; right: 12px; display: flex; gap: 8px; }
.ปุ่มห้อง .ปุ่ม { padding: 8px 14px; font-size: .85rem; background: rgba(20,19,18,.7); cursor: pointer; }
.การ์ดของ {
  position: absolute; left: 50%; top: 64px; transform: translateX(-50%);   /* อยู่บน ไม่ทับจอยมุมขวาล่าง */
  width: min(360px, calc(100% - 32px));
  background: rgba(20,19,18,.9); border: 1px solid var(--ทองมงคล); border-radius: 14px;
  padding: 16px 44px 16px 18px; display: grid; gap: 4px; text-align: left;
}
.การ์ดของ strong { font-family: var(--ฟอนต์หัว); font-size: 1.1rem; }
.การ์ดของ span { color: var(--ทองมงคล); font-size: .88rem; }
.การ์ดของ .ปุ่ม { justify-self: start; margin-top: 8px; padding: 8px 18px; font-size: .9rem; }
.การ์ดของ button { position: absolute; top: 6px; right: 8px; background: none; border: 0; color: var(--ตัวอักษรรอง); font-size: 1.5rem; cursor: pointer; }
.จอย {
  position: absolute; right: 18px; bottom: 18px; width: 128px; height: 128px; border-radius: 50%;
  background: radial-gradient(circle, rgba(20,19,18,.35) 0 55%, rgba(20,19,18,.75) 70%);
  border: 1px solid rgba(201,162,39,.7); box-shadow: 0 0 0 6px rgba(201,162,39,.08), inset 0 0 24px rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center; cursor: grab;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
/* ขีดบอกทิศบนล่าง */
.จอย::before, .จอย::after { content: ''; position: absolute; left: 50%; border: 6px solid transparent; transform: translateX(-50%); opacity: .7; }
.จอย::before { top: 8px; border-bottom-color: var(--ทองมงคล); }
.จอย::after { bottom: 8px; border-top-color: var(--ทองมงคล); }
.จอย-ปุ่ม {
  width: 54px; height: 54px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 30%, #f4dc86, var(--ทองมงคล) 55%, #7d6310);
  box-shadow: 0 6px 16px rgba(0,0,0,.55); transition: transform .18s cubic-bezier(.3, 1.6, .5, 1);
}
.จอย.กด { cursor: grabbing; }
.จอย.กด .จอย-ปุ่ม { transition: none; }
.บอกเดิน {
  position: absolute; left: 50%; top: 64px; transform: translateX(-50%); margin: 0;
  padding: 8px 14px; border-radius: 999px; background: rgba(20,19,18,.8); border: 1px solid var(--เส้น);
  font-size: .8rem; color: var(--ตัวอักษร); pointer-events: none;
  width: max-content; max-width: calc(100% - 24px); text-align: center; line-height: 1.5;
}
.แจ้งห้อง { border-color: var(--ทองมงคล); color: var(--ทองมงคล); font-size: .9rem; }
.ความลื่น { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 6px; background: rgba(0,0,0,.7); color: #9fe870; font: 600 .78rem/1.4 ui-monospace, monospace; }
.แกลเลอรี { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.ชิ้น { margin: 0; background: var(--พื้นยก); border: 1px solid var(--เส้น); border-radius: 12px; padding: 12px; text-decoration: none; color: inherit; text-align: center; }
.ชิ้น img { width: 100%; height: 170px; object-fit: contain; display: block; }
.ชิ้น figcaption { margin-top: 8px; display: grid; gap: 2px; }
.ชิ้น figcaption span { font-size: .78rem; color: var(--ตัวอักษรรอง); }
.ชิ้น.รอ { border-style: dashed; border-color: var(--ทองมงคล); }
.แท่นว่าง { height: 170px; display: flex; align-items: center; justify-content: center; color: var(--ทองมงคล); font-family: var(--ฟอนต์หัว); letter-spacing: .1em;
  background: radial-gradient(circle at 50% 60%, rgba(201,162,39,.16), transparent 60%); }

/* ── ลูกเล่นเบา ๆ (25 ก.ย. 2569) ─────────────────────────────
   CSS ล้วน ไม่มีไลบรารี · ทำงานเฉพาะเครื่องที่ไม่ได้ตั้ง "ลดการเคลื่อนไหว"
   1 ประกายทองวิ่งผ่านตราหน้าแรก  2 เนื้อหาค่อย ๆ ขึ้นตอนเลื่อน (app.js ใส่คลาส)
   3 แสงประจำวันหายใจช้า ๆ          4 เปลี่ยนหน้าแบบเลือนต่อกัน */
@media (prefers-reduced-motion: no-preference) {
  /* 1 · mask ใช้รูปตราเดียวกับ <img> ให้ประกายอยู่แค่บนตัวตรา
     รูปนี้ไม่ผ่าน stamp-assets (มันอ่านแค่ html) ถ้าเปลี่ยน logo-main.png ต้องแก้ ?v= ตรงนี้เอง */
  .ฮีโร่.ปก .ประกาย::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(112deg, transparent 42%, rgba(255, 238, 180, .6) 50%, transparent 58%) no-repeat;
    background-size: 300% 100%; background-position: 130% 0;
    -webkit-mask: url(../images/logo-main.png?v=aad51f3e) center / contain no-repeat;
            mask: url(../images/logo-main.png?v=aad51f3e) center / contain no-repeat;
    mix-blend-mode: screen;
    animation: ประกายทอง var(--รอบ) ease-in-out var(--เริ่ม) infinite;
  }
  /* จังหวะรอบละ 8 วินาที (เจ้าของขอ 25 ก.ย. 2569) · สามอย่างใช้ความยาวและเวลาเริ่มเดียวกัน จึงไม่เหลื่อมกัน
     0–2 วิ ประกายทองวิ่งผ่านตรา · 2.2–4 วิ "ร้านเอาฮา" โยก · 4.4–5.4 วิ "ชาเอาจริง" ตอก · ที่เหลือพัก */
  .ฮีโร่.ปก { --รอบ: 8s; --เริ่ม: .8s; }
  @keyframes ประกายทอง { 0% { background-position: 130% 0 } 25%, 100% { background-position: -30% 0 } }

  /* 2 · ซ่อนเฉพาะเมื่อ app.js พร้อมแล้ว (คลาส js-เคลื่อน) ถ้าสคริปต์ไม่ทำงาน เนื้อหาต้องเห็นตามปกติ */
  .js-เคลื่อน .ตอน > .ใน { transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
  .js-เคลื่อน .ตอน:not(.เห็น) > .ใน { opacity: 0; transform: translateY(22px); }

  /* สโลแกน (เจ้าของขอ 25 ก.ย. 2569) · ขยับทั้งคำ ไม่แยกตัวอักษร สระวรรณยุกต์ไทยจะหลุด
     "ร้านเอาฮา" โยกเด้งแบบขี้เล่นแล้วพัก · "ชาเอาจริง" ตอกลงครั้งเดียวแล้วนิ่ง ความนิ่งคือความจริงจัง
     ไม่เปลี่ยนถ้อยคำ ฟอนต์ หรือสี ตาม playbook 1.4 และ 2.6 */
  .ฮีโร่.ปก .สโลแกน .ฮา, .ฮีโร่.ปก .สโลแกน .จริง { display: inline-block; }
  .ฮีโร่.ปก .สโลแกน .ฮา { transform-origin: 50% 85%; animation: ฮาดุ๊กดิ๊ก var(--รอบ) ease-in-out var(--เริ่ม) infinite; }
  .ฮีโร่.ปก .สโลแกน .จริง { transform-origin: 50% 100%; animation: ตอกจริง var(--รอบ) linear var(--เริ่ม) infinite; }
  @keyframes ฮาดุ๊กดิ๊ก {
    0%, 27.5%, 50%, 100% { transform: none; }
    31% { transform: translateY(-8%) rotate(-5deg); }
    36% { transform: translateY(0) rotate(4deg); }
    41% { transform: translateY(-5%) rotate(-3deg); }
    45.5% { transform: rotate(1.5deg); }
  }
  /* ยกขึ้นช้า ๆ แล้วตอกลงเร็ว เด้งนิดเดียวแล้วนิ่ง · ไม่จางหาย คำต้องอ่านได้ตลอด */
  @keyframes ตอกจริง {
    0%, 55% { transform: none; animation-timing-function: ease-out; }
    61% { transform: translateY(-16%) scale(1.07); animation-timing-function: cubic-bezier(.7, 0, 1, .6); }
    63.5% { transform: translateY(2%) scale(.97, 1.02); animation-timing-function: ease-out; }
    67.5%, 100% { transform: none; }
  }

  /* 3 */
  body::before { animation: หายใจ 12s ease-in-out infinite; }
  @keyframes หายใจ { 0%, 100% { opacity: .75 } 50% { opacity: 1 } }

  /* 4 · เบราว์เซอร์ที่ยังไม่รองรับจะเปลี่ยนหน้าแบบปกติ ไม่เสียอะไร */
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
}

/* ── ตัวช่วย ───────────────────────────────────────────────── */
.ซ่อนสายตา {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ── หัวหน้าเพจใน (menu / story / branches) ──────────────────── */
.หัวเพจ { padding: 48px 0 34px; text-align: center; }
.หัวเพจ .กำกับ {
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ทองมงคล); margin: 0 0 10px;
}
.หัวเพจ h1 { font-size: clamp(1.9rem, 6vw, 2.9rem); margin: 0 0 12px; }
.หัวเพจ p { color: var(--ตัวอักษรรอง); max-width: 52ch; margin: 0 auto; }

/* ── เมนูบอร์ด ───────────────────────────────────────────────
   ไม่มีรูปสินค้าโดยตั้งใจ playbook ข้อ 7.4 บังคับว่าภาพเมนูต้องมาจากคลังภาพของบริษัทเท่านั้น
   ห้ามภาพ stock ห้ามภาพที่ถ่ายเอง ตราบใดที่ยังไม่มีไฟล์จากบริษัท หน้านี้เป็นตัวอักษรล้วน */
.บอร์ด { border-top: 1px solid var(--เส้น); }
.รายการ {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 22px;
  align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--เส้น);
}
.รายการ .ชื่อเมนู {
  grid-column: 1; font-family: var(--ฟอนต์หัว); font-weight: 600;
  font-size: clamp(1.15rem, 3.4vw, 1.45rem); color: var(--ตัวอักษร);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.รายการ .ราคา {
  grid-column: 2; grid-row: 1;
  font-family: var(--ฟอนต์หัว); font-weight: 700;
  font-size: clamp(1.1rem, 3.2vw, 1.4rem);
  color: var(--เหลืองยันต์); white-space: nowrap;
}
.รายการ .ชื่อรอง { grid-column: 1 / -1; color: var(--ทองมงคล); font-size: .9rem; margin-top: -2px; }
.รายการ .คำอธิบาย { grid-column: 1 / -1; color: var(--ตัวอักษรรอง); font-size: .92rem; margin: 6px 0 0; max-width: 62ch; }
.รายการ.รอสูตร .ราคา { color: var(--ตัวอักษรรอง); }
.รายการ.รอสูตร .ชื่อเมนู { color: var(--ตัวอักษรรอง); }

.ตรา-ป้าย {
  font-size: .68rem; font-weight: 600; letter-spacing: .1em;
  padding: 3px 9px; border-radius: 4px;
  background: var(--แดงชาด); color: #fff;
}
.ตรา-ป้าย.รอ { background: transparent; border: 1px solid var(--เส้น); color: var(--ตัวอักษรรอง); }

.กล่องกฎ {
  border: 1px dashed var(--ทองมงคล); border-radius: 12px;
  padding: 20px 22px; margin: 34px 0 0;
}
.กล่องกฎ h3 { color: var(--ทองมงคล); margin-bottom: 8px; }
.กล่องกฎ p { color: var(--ตัวอักษรรอง); font-size: .92rem; margin: 0; }

/* ── เรื่องราว ───────────────────────────────────────────────── */
.บท { max-width: 64ch; margin: 0 auto; padding: 34px 0; border-bottom: 1px solid var(--เส้น); }
.บท:last-child { border-bottom: 0; }
.บท h2 { text-align: left; font-size: clamp(1.3rem, 4vw, 1.75rem); }
.คำพูด {
  font-family: var(--ฟอนต์สโลแกน);
  font-size: clamp(1.3rem, 4.5vw, 1.9rem);
  color: var(--เหลืองยันต์);
  line-height: 1.45; text-align: center;
  margin: 26px 0; padding: 0 10px;
}
.บท .เน้น { color: var(--ตัวอักษร); font-weight: 400; }

/* ── เดลิเวอรี ───────────────────────────────────────────────── */
.แอปแถว { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 18px; }
.แอป {
  border: 1px solid var(--เส้น); border-radius: 10px;
  padding: 16px; text-align: center; text-decoration: none;
  color: var(--ตัวอักษร); font-weight: 600; font-family: var(--ฟอนต์หัว);
}
.แอป:hover { border-color: var(--เหลืองยันต์); color: var(--เหลืองยันต์); }
.แอป.ยังไม่มีลิงก์ { color: var(--ตัวอักษรรอง); border-style: dashed; cursor: default; }
.แอป.ยังไม่มีลิงก์:hover { border-color: var(--เส้น); color: var(--ตัวอักษรรอง); }
.แอป small { display: block; font-weight: 300; font-size: .74rem; margin-top: 3px; color: var(--ตัวอักษรรอง); }

/* ── แถวโซเชียล ──────────────────────────────────────────────── */
.โซเชียลแถว { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.โซเชียลแถว a { color: var(--ตัวอักษรรอง); text-decoration: none; font-size: .9rem; }
.โซเชียลแถว a:hover { color: var(--เหลืองยันต์); }

/* ── หน้าปัจจุบันในเมนูนำทาง ─────────────────────────────────── */
.แถบบน nav a[aria-current="page"] { color: var(--เหลืองยันต์); }

/* จอแคบ: ราคาหลายไซซ์อย่าง "S 68 · M 78 · L 98" เบียดกับชื่อเมนูที่ขึ้นสองบรรทัด
   ย้ายราคาลงมาอยู่บรรทัดของตัวเองแทน */
@media (max-width: 560px) {
  .รายการ { grid-template-columns: 1fr; }
  .รายการ .ราคา { grid-column: 1; grid-row: auto; order: 3; margin-top: 4px; }
  .รายการ .ชื่อรอง { order: 2; }
  .รายการ .คำอธิบาย { order: 4; }
  .รายการ .ชื่อเมนู { order: 1; }
}

/* ══ ชุดหรู (25 ก.ย. 2569 เจ้าของขอให้ทั้งเว็บสวยขึ้น) ══════════════════════
   ใช้แค่ดำ เหลือง แดง ทอง ของแบรนด์ (playbook 2.4) · ทับกฎข้างบน ไม่แก้ HTML
   แนวคิด: พื้นดำมีเนื้อกระดาษจาง ๆ · เส้นแบ่งเป็นทองจางหาย · หัวข้อมีลายทองนำหน้า
   การ์ดเหมือนแผ่นป้ายไม้ดำขอบทอง ลอยขึ้นเมื่อแตะ · รูปมีกรอบทองเว้นระยะแบบแขวนผนังพิพิธภัณฑ์ */

:root {
  --ทองจาง: rgba(201,162,39,.28);
  --ทองเรือง: rgba(201,162,39,.55);
  --เส้นทอง: linear-gradient(90deg, transparent, rgba(201,162,39,.45), transparent);
}

/* เนื้อกระดาษ/ผ้าไหมจาง ๆ ทั้งหน้า ทำให้พื้นดำไม่แบน · SVG noise เล็ก ไม่มีไฟล์เพิ่ม */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .6 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* แถบบน: เส้นล่างเป็นทองจางหาย */
.แถบบน { border-bottom: 0; box-shadow: 0 1px 0 rgba(201,162,39,.22), 0 10px 30px rgba(0,0,0,.35); }
.แถบบน .ชื่อ { letter-spacing: .02em; }
.แถบบน nav a { position: relative; padding: 4px 0; transition: color .2s; }
@media (min-width: 721px) {
  .แถบบน nav a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
    background: var(--ทองมงคล); transform: scaleX(0); transition: transform .25s ease;
  }
  .แถบบน nav a:hover::after, .แถบบน nav a[aria-current="page"]::after { transform: scaleX(1); }
}

/* ตอน: เส้นแบ่งทองจางหาย แทนเส้นเทาเต็มความกว้าง */
.ตอน { border-top: 0; position: relative; padding: 76px 0; }
.ตอน::before {
  content: ''; position: absolute; top: 0; left: 8%; right: 8%; height: 1px; background: var(--เส้นทอง);
}

/* หัวข้อ: ลายทอง เส้น–ข้าวหลามตัด–เส้น นำหน้า */
.ตอน > .ใน > h2, .หัวเพจ h1 { letter-spacing: .01em; }
.ตอน > .ใน > h2 { font-size: clamp(1.6rem, 4.6vw, 2.35rem); }
.ตอน > .ใน > h2::before, .หัวเพจ h1::before {
  content: ''; display: block; width: 120px; height: 14px; margin: 0 auto 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='14' viewBox='0 0 120 14'%3E%3Cg fill='none' stroke='%23C9A227' stroke-width='1'%3E%3Cpath d='M0 7h46M74 7h46'/%3E%3Cpath d='M60 1l6 6-6 6-6-6z' fill='%23C9A227' fill-opacity='.35'/%3E%3Ccircle cx='50' cy='7' r='1.5' fill='%23C9A227'/%3E%3Ccircle cx='70' cy='7' r='1.5' fill='%23C9A227'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
/* หัวข้อที่จัดชิดซ้ายในคอลัมน์คู่ ลายนำหน้าก็ชิดซ้ายตาม */
.คู่ h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
.คู่ h2::before {
  content: ''; display: block; width: 64px; height: 2px; margin: 0 0 16px;
  background: linear-gradient(90deg, var(--ทองมงคล), transparent);
}

/* หัวเพจของหน้าใน */
.หัวเพจ { padding: 64px 0 40px; background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(201,162,39,.08), transparent 70%); }
.หัวเพจ .กำกับ { letter-spacing: .32em; font-size: .74rem; }

/* การ์ด: แผ่นป้ายดำ ขอบทองจาง มีแสงทองขอบบน ลอยขึ้นเมื่อชี้ */
.การ์ด {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #211f1b, #161412);
  border: 1px solid var(--ทองจาง); border-radius: 14px; padding: 26px 24px;
  box-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 12px 28px rgba(0,0,0,.35);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.การ์ด::before {
  content: ''; position: absolute; top: 0; left: 14%; right: 14%; height: 1px; background: var(--เส้นทอง);
}
a.การ์ด:hover, .การ์ดแถว .การ์ด:hover {
  transform: translateY(-4px); border-color: var(--ทองเรือง);
  box-shadow: 0 18px 40px rgba(0,0,0,.45), 0 0 0 1px rgba(201,162,39,.12), 0 0 36px rgba(201,162,39,.08);
}
.การ์ด .เลข { font-size: 1.75rem; letter-spacing: .01em; text-shadow: 0 0 18px rgba(201,162,39,.25); }
.การ์ด h3 { font-size: 1.12rem; margin-bottom: 8px; }
.การ์ด p { line-height: 1.7; }

/* รูปในคอลัมน์คู่: กรอบทองเว้นระยะ เหมือนแขวนในพิพิธภัณฑ์ */
.คู่ img {
  border-radius: 14px;
  outline: 1px solid var(--ทองจาง); outline-offset: 8px;
  box-shadow: 0 24px 50px rgba(0,0,0,.5);
}

/* ปุ่ม */
.ปุ่ม { border-radius: 12px; letter-spacing: .01em; }
.ปุ่ม.หลัก { box-shadow: 0 10px 26px rgba(255,242,0,.14), inset 0 -2px 0 rgba(0,0,0,.12); }
.ปุ่ม.หลัก:hover { box-shadow: 0 0 0 4px rgba(255,242,0,.18), 0 14px 30px rgba(255,242,0,.18); transform: translateY(-1px); }
.ปุ่ม.รอง { border-color: var(--ทองจาง); background: rgba(201,162,39,.04); }
.ปุ่ม.รอง:hover { border-color: var(--ทองมงคล); color: var(--ทองมงคล); }

/* เครดิต: ป้ายรางวัลขอบทองคู่ */
.เครดิต {
  padding: 16px 22px; border-radius: 12px; line-height: 1.55;
  background: linear-gradient(180deg, rgba(201,162,39,.08), rgba(201,162,39,.02));
  border: 1px solid var(--ทองเรือง);
  box-shadow: inset 0 0 0 3px #141312, inset 0 0 0 4px rgba(201,162,39,.25);
}
.เครดิต strong { display: block; font-family: var(--ฟอนต์หัว); font-size: 1.05rem; color: var(--ตัวอักษร); margin-bottom: 2px; }

/* กล่องกฎ */
.กล่องกฎ { border-style: solid; border-color: var(--ทองจาง); background: linear-gradient(180deg, rgba(201,162,39,.06), transparent); }

/* เมนูบอร์ด: แถวมีแสงเมื่อชี้ เส้นคั่นจางหาย */
.บอร์ด { border-top: 0; }
.รายการ { border-bottom: 0; position: relative; padding: 26px 12px; border-radius: 10px; transition: background .2s; }
.รายการ::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--เส้นทอง); }
.รายการ:hover { background: rgba(201,162,39,.04); }

/* เรื่องราว: เครื่องหมายคำพูดทองตัวใหญ่ */
.คำพูด { position: relative; padding: 18px 10px 0; }
.คำพูด::before {
  content: '“'; display: block; font-family: Georgia, serif; font-size: 4.2rem; line-height: .5;
  color: var(--ทองมงคล); opacity: .55; margin-bottom: 8px;
}
.บท { border-bottom: 0; position: relative; }
.บท::after { content: ''; position: absolute; left: 20%; right: 20%; bottom: 0; height: 1px; background: var(--เส้นทอง); }
.บท:last-child::after { display: none; }

/* ท้ายหน้า */
.ท้าย { border-top: 0; position: relative; background: linear-gradient(180deg, transparent, rgba(0,0,0,.35)); }
.ท้าย::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--เส้นทอง); }

/* ฟอร์ม · แกลเลอรี · ใบพิเศษ ให้เข้าชุดเดียวกับการ์ด */
.ฟอร์ม, .ชิ้น, .ช่องท่า { border-color: var(--ทองจาง); background: linear-gradient(180deg, #211f1b, #161412); }
.ชิ้น { transition: transform .25s ease, border-color .25s ease; }
.ชิ้น:hover { transform: translateY(-3px); border-color: var(--ทองเรือง); }
.ภาพวัน { outline: 1px solid var(--ทองจาง); outline-offset: 8px; }

/* หน้าวอลเปเปอร์: ฉากวันนี้ · ที่มาของตรา · รายการลายจากศาล (25 ก.ย. 2569) */
.ฉากวันนี้ { color: var(--ทองมงคล); font-size: .92rem; margin: 18px auto 0; letter-spacing: .01em; }
.ที่มาตรา { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-top: 24px; }
.ที่มาตรา figure { margin: 0; text-align: center; }
.ที่มาตรา img, .ตราดิจิทัล { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 10px;
  outline: 1px solid var(--ทองจาง); outline-offset: 6px; }
.ตราดิจิทัล { background: #ECE6DA; padding: 9%; box-sizing: border-box; }   /* สีกระดาษ ให้เทียบกับรอยประทับจริงได้ตรง ๆ */
.ตราดิจิทัล img { outline: 0; border-radius: 0; aspect-ratio: auto; }
.ที่มาตรา figcaption { margin-top: 16px; display: grid; gap: 4px; }
.ที่มาตรา figcaption strong { font-family: var(--ฟอนต์หัว); color: var(--ทองมงคล); }
.ที่มาตรา figcaption span { font-size: .86rem; color: var(--ตัวอักษรรอง); }
.ข้อเท็จจริง ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; color: var(--ตัวอักษรรอง); font-size: .92rem; }
.ข้อเท็จจริง strong { color: var(--ทองมงคล); font-weight: 600; margin-right: 4px; }
/* คลังภาพวันสำคัญ (day.php · 2 ต.ค. 2569) */
.คลังวัน { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.คลังวัน a { display: grid; gap: 4px; text-decoration: none; color: inherit; }
.คลังวัน img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; border: 1px solid var(--ทองจาง); }
.คลังวัน strong { font-family: var(--ฟอนต์หัว); color: var(--ทองมงคล); font-weight: 600; margin-top: 6px; }
.คลังวัน span { font-size: .82rem; color: var(--ตัวอักษรรอง); }
.วันสำคัญ { max-width: 640px; }
.ภาพวันสำคัญ { margin: 0 auto 22px; max-width: 320px; }
.ภาพวันสำคัญ img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--ทองจาง); }
.ถัดไปก่อนหน้า { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; font-size: .88rem; }
.ถัดไปก่อนหน้า a { color: var(--ทองมงคล); }
/* ภาพเทียบตราจริงกับดิจิทัล 4 ช่อง (2 ต.ค. 2569) · พื้นภาพขาว จึงมีกรอบมนให้ไม่ชนพื้นดำ */
.เทียบตรา { margin: 16px 0; }
.เทียบตรา img { display: block; width: 100%; height: auto; border-radius: 10px; background: #fff; }
.เทียบตรา figcaption { margin-top: 10px; font-size: .84rem; color: var(--ตัวอักษรรอง); line-height: 1.6; }
.ลายศาล { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.ลายศาล li { border: 1px solid var(--ทองจาง); border-radius: 12px; padding: 14px 16px; display: grid; gap: 4px;
  background: linear-gradient(180deg, #211f1b, #161412); }
.ลายศาล li strong { font-family: var(--ฟอนต์หัว); font-size: 1rem; }
.ลายศาล li span { font-size: .84rem; color: var(--ตัวอักษรรอง); }
.ลายศาล li.วันนี้ { border-color: var(--ทองมงคล); box-shadow: 0 0 0 1px rgba(201,162,39,.25), 0 0 22px rgba(201,162,39,.12); }
.ลายศาล li.วันนี้ strong::after { content: ' · วันนี้'; color: var(--ทองมงคล); font-size: .8rem; font-family: var(--ฟอนต์เนื้อ); font-weight: 400; }
/* ของลับ: ออกเฉพาะวันสำคัญ · การ์ดที่ยังไม่ออกบอกแค่จำนวนกับใบ้ ไม่บอกชื่อ */
.ลายศาล li.ลับ { border-style: dashed; border-color: var(--ทองมงคล); background: radial-gradient(circle at 20% 0%, rgba(201,162,39,.14), transparent 60%), linear-gradient(180deg, #211f1b, #161412); }
.ลายศาล li.ลับ strong, .ลายศาล li.ของลับ strong, .ฉากวันนี้ .ของลับ { color: var(--ทองมงคล); }
.ลายศาล li.ของลับ { box-shadow: 0 0 0 1px rgba(201,162,39,.4), 0 0 28px rgba(201,162,39,.22); }
.ฉากวันนี้ .ของลับ { display: inline-block; margin-top: 6px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .การ์ด, .ชิ้น, .ปุ่ม, .รายการ { transition: none; }
  a.การ์ด:hover, .การ์ดแถว .การ์ด:hover, .ชิ้น:hover, .ปุ่ม.หลัก:hover { transform: none; }
}

/* ── ศาลจำลอง ต้นแบบ (shrine.html · 2 ต.ค. 2569) ─────────────────────
   ใช้เวทีเต็มจอแบบห้องพิพิธภัณฑ์ (.เวที .เปิด html.ในห้อง .ประตู .ปุ่มห้อง) · ส่วนที่นี่เป็นของศาลอย่างเดียว */
.หัวเพจ p.เครดิตศาล { color: var(--ทองมงคล); margin: -4px auto 12px; }
.หัวเพจ p.ต้นแบบ { margin-top: 14px; font-size: .82rem; line-height: 1.7; border: 1px dashed var(--ทองมงคล); border-radius: 10px; padding: 10px 14px; }
.เวที.ศาล > canvas { position: absolute; inset: 0; touch-action: none; }
.เวที.ศาล .ปุ่มห้อง { z-index: 4; }
.เวที.ศาล .ปุ่มห้อง .ปุ่ม:disabled { opacity: .5; }
.ประตู .ธูป { color: var(--ตัวอักษร); font-size: .8rem; line-height: 1.65; margin-top: -4px; }
.ประตู .ทางเลือก { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 0; }
.ประตู .ทางเลือก button { background: rgba(20,19,18,.72); color: var(--ตัวอักษร); border: 1px solid rgba(201,162,39,.55); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .85rem; cursor: pointer; }
.ประตู .ทางเลือก button:disabled { opacity: .5; cursor: wait; }
/* แผงพิธีชิดล่าง ฉากยังเห็นเต็ม · น้องอนันต์อยู่ในแผงเป็นผู้นำทาง ไม่อยู่ในฉาก */
.แผงพิธี { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: grid; gap: 8px;
  padding: 26px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(20,19,18,0), rgba(20,19,18,.86) 26%, rgba(20,19,18,.94)); }
.เส้นทาง { list-style: none; margin: 0; padding: 0; display: flex; gap: 7px; justify-content: center; }
.เส้นทาง li { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--ทองมงคล); }
.เส้นทาง li.ผ่าน { background: var(--ทองมงคล); }
.เส้นทาง li.นี่ { background: var(--เหลืองยันต์); border-color: var(--เหลืองยันต์); box-shadow: 0 0 0 3px rgba(255,242,0,.22); }
.ผู้นำ { display: flex; gap: 10px; align-items: flex-end; width: 100%; max-width: 520px; margin: 0 auto; }
.ผู้นำ img { width: 54px; height: auto; flex: none; }
.ผู้นำ strong { display: block; font-family: var(--ฟอนต์หัว); font-size: 1.05rem; }
.คำนำ { margin: 2px 0 0; font-size: .86rem; line-height: 1.45; color: var(--ตัวอักษรรอง); min-height: 2.9em; }
.ปุ่มพิธี { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.ปุ่มพิธี .ปุ่ม { justify-content: center; border: 0; cursor: pointer; padding: 13px 26px; font-size: 1.05rem; min-width: min(62%, 320px); }
.ปุ่มพิธี .ปุ่ม.รอง { min-width: 0; border: 1px solid var(--เส้น); background: rgba(20,19,18,.7); font-size: .9rem; }
.ปุ่มพิธี .ปุ่ม:disabled { opacity: .6; }
/* จอยเดินเอง (3 ต.ค. 2569) ลอยเหนือแผงพิธีมุมขวา · shrine.js วัดความสูงแผงจริงใส่ --สูงแผง · อยู่ใต้หน้าจบพิธีกับเซียมซี (z 5) */
.เวที.ศาล .จอย, .เวที.ศาล.เปิด .จอย { z-index: 4; width: 116px; height: 116px;
  bottom: calc(var(--สูงแผง, 220px) + 8px); right: calc(14px + env(safe-area-inset-right, 0px)); }
.เวที.ศาล .จอย-ปุ่ม { width: 48px; height: 48px; }
.แจ้งศาล { position: absolute; left: 50%; top: calc(62px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); z-index: 7;
  width: min(420px, calc(100% - 32px)); margin: 0; padding: 10px 14px; border-radius: 12px; text-align: center; font-size: .9rem;
  background: rgba(20,19,18,.94); border: 1px solid var(--ทองมงคล); }
/* จบพิธีกับเซียมซีทับทั้งเวที */
.พิธีจบ, .เซียมซี { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px)); text-align: center; overflow-y: auto;
  background: radial-gradient(ellipse 70% 45% at 50% 40%, rgba(201,162,39,.1), transparent 70%), rgba(14,13,12,.96); }
.หัวจบ { margin: 0; font-family: var(--ฟอนต์หัว); font-size: .95rem; color: var(--ทองมงคล); }
.คำจบ { margin: 0; max-width: 36ch; }
.ภาพจบ { position: relative; line-height: 0; flex: none; }
.เวที .ภาพจบ canvas { display: block; width: auto; height: min(60vh, 60dvh, 720px); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.6); cursor: default; }
/* ตราประทับมองจากด้านบน เป็นแท่งทองเหลืองเก่า ไม่วาดมือหรือคน (เจ้าของ 30 ก.ย. 2569) · ชาดในตลับ */
.ตราลอย { position: absolute; left: 0; top: 0; z-index: 2; opacity: 0; pointer-events: none; border-radius: 9%;
  background: linear-gradient(140deg, #a8955a, #6a6440 30%, #3b4230 65%, #262a1f);
  box-shadow: inset 0 0 0 2px rgba(222,196,120,.55), inset 0 -5px 9px rgba(0,0,0,.5), 0 2px 3px rgba(0,0,0,.55); transition: opacity .2s; }
.ตราลอย.ยก { box-shadow: inset 0 0 0 2px rgba(222,196,120,.55), inset 0 -5px 9px rgba(0,0,0,.5), 0 18px 24px rgba(0,0,0,.55); }
.ชาด { position: absolute; left: 0; top: 0; z-index: 1; opacity: 0; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #e5513f, #b01d1f 55%, #6e1012 80%); border: 4px solid #7a6a3a; box-shadow: 0 4px 10px rgba(0,0,0,.5); transition: opacity .3s; }
.ปุ่มจบ { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ปุ่มจบ .ปุ่ม { border: 0; cursor: pointer; padding: 13px 34px; font-size: 1.05rem; }
.ปุ่มจบ .ปุ่ม.รอง { border: 1px solid var(--เส้น); background: transparent; }
.ลิงก์เล็ก { background: none; border: 0; padding: 4px; font: inherit; font-size: .85rem; color: var(--ตัวอักษรรอง); text-decoration: underline; cursor: pointer; }
/* เซียมซี */
.เซียมซี .ปิด { position: absolute; top: calc(8px + env(safe-area-inset-top, 0px)); right: 12px; background: none; border: 0; color: var(--ตัวอักษรรอง); font-size: 1.9rem; line-height: 1; cursor: pointer; }
.เซียมซี .หมายเหตุ { margin: 0; font-size: .78rem; color: var(--ตัวอักษรรอง); }
.เซียมซี > .ปุ่ม { border: 0; cursor: pointer; padding: 13px 34px; font-size: 1.05rem; }
.เซียมซี > .ปุ่ม:disabled { opacity: .6; }
.กระบอก { position: relative; flex: none; width: 92px; height: 150px; margin-top: 64px; border-radius: 10px 10px 16px 16px; transform-origin: 50% 100%;
  background: linear-gradient(90deg, #6e1012, #c0262a 40%, #8e1517); box-shadow: inset 0 0 0 3px rgba(201,162,39,.7); }
.กระบอก i { position: absolute; bottom: 72%; width: 6px; height: 74px; border-radius: 3px; background: linear-gradient(#ecd79b, #b8975a); transform-origin: 50% 100%; }
.กระบอก i:nth-child(1) { left: 12px; transform: rotate(-13deg); }
.กระบอก i:nth-child(2) { left: 22px; height: 82px; transform: rotate(-7deg); }
.กระบอก i:nth-child(3) { left: 33px; height: 70px; transform: rotate(-3deg); }
.กระบอก i:nth-child(4) { left: 43px; height: 86px; }
.กระบอก i:nth-child(5) { left: 53px; height: 72px; transform: rotate(4deg); }
.กระบอก i:nth-child(6) { left: 63px; height: 80px; transform: rotate(8deg); }
.กระบอก i:nth-child(7) { left: 73px; transform: rotate(13deg); }
.กระบอก.เขย่า { animation: เขย่ากระบอก .17s linear infinite; }
@keyframes เขย่ากระบอก { 0%, 100% { transform: rotate(-10deg) translateY(0); } 50% { transform: rotate(10deg) translateY(-5px); } }
.ไม้ใบ { display: flex; align-items: center; justify-content: center; width: 170px; height: 28px; border-radius: 4px; transform: rotate(-6deg);
  background: linear-gradient(#ecd79b, #bf9e5e); color: #6e1012; font-family: var(--ฟอนต์หัว); font-weight: 700; font-size: 1.1rem; animation: ไม้ตก .4s ease-out; }
@keyframes ไม้ตก { from { transform: translateY(-60px) rotate(-30deg); opacity: 0; } to { transform: rotate(-6deg); opacity: 1; } }
.ปวย { display: flex; gap: 22px; align-items: center; height: 44px; }
/* มองด้านข้าง: คว่ำ = ด้านโค้งอยู่บน หงาย = ด้านเรียบอยู่บน */
.ปวย i { display: block; width: 58px; height: 30px; background: radial-gradient(circle at 40% 30%, #e0473d, #a31a1c 70%); box-shadow: 0 4px 6px rgba(0,0,0,.45); }
.ปวย i.คว่ำ { border-radius: 58px 58px 6px 6px; }
.ปวย i.หงาย { border-radius: 6px 6px 58px 58px; box-shadow: inset 0 3px 0 rgba(255,220,180,.35), 0 4px 6px rgba(0,0,0,.45); }
.ปวย.โยน i { animation: โยนปวย .65s cubic-bezier(.3,.6,.4,1); }
.ปวย.โยน i + i { animation-duration: .6s; }
@keyframes โยนปวย { 0% { transform: translateY(-110px) rotate(0deg); } 70% { transform: translateY(0) rotate(620deg); } 85% { transform: translateY(-10px) rotate(700deg); } 100% { transform: translateY(0) rotate(720deg); } }
.ใบเซียมซี { width: min(100%, 380px); padding: 14px 16px; border: 1px solid var(--ทองมงคล); border-radius: 12px; background: var(--พื้นยก); text-align: left; }
.ใบเซียมซี strong { font-family: var(--ฟอนต์หัว); color: var(--ทองมงคล); }
.ใบเซียมซี p { margin: 8px 0 0; font-size: .9rem; line-height: 1.6; }
.ใบเซียมซี img { display: block; width: 100%; height: auto; margin-top: 10px; border-radius: 8px; }
.ใบเซียมซี small { display: block; margin-top: 8px; color: var(--ตัวอักษรรอง); font-size: .76rem; }
/* โหมดประหยัด: ภาพนิ่งทีละจุด */
.ฉากประหยัด { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: calc(66px + env(safe-area-inset-top, 0px)) 16px 0;
  background: radial-gradient(ellipse 70% 50% at 50% 30%, rgba(201,162,39,.12), transparent 70%), var(--ดำหมึก); }
.ภาพจุด { width: min(100%, 420px); aspect-ratio: 4 / 3; flex: none; display: flex; align-items: center; justify-content: center; overflow: hidden;
  border-radius: 14px; border: 1px solid rgba(201,162,39,.4); background: #2a1512; }
.ภาพจุด img { width: 100%; height: 100%; object-fit: cover; }
.ภาพจุด.แผงทอง { background: radial-gradient(circle at 50% 45%, rgba(255,200,120,.32), transparent 62%), linear-gradient(#5a1210, #2a0807); }
.ภาพจุด.แผงทอง img { height: 90%; object-fit: contain; }
.ภาพจุด .รอสแกน { padding: 18px; text-align: center; display: grid; gap: 8px; }
.ภาพจุด .รอสแกน strong { font-family: var(--ฟอนต์หัว); color: var(--ทองมงคล); font-size: 1.15rem; }
.ภาพจุด .รอสแกน p { margin: 0; font-size: .9rem; line-height: 1.7; }
.ภาพจุด .รอสแกน small { color: var(--ตัวอักษรรอง); }
.ภาพจุด.ก้ม { animation: ก้มไหว้ 1.15s ease-in-out; }
@keyframes ก้มไหว้ { 0%, 100% { transform: none; } 45% { transform: translateY(16px) scale(.95); } }
.เครื่องตี { display: block; }
.กลองใหญ่ { width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, #e2cfa2 0 58%, #9a1b16 59% 72%, #c9a227 73% 76%, #6e1012 77%); box-shadow: 0 10px 24px rgba(0,0,0,.5); }
.ระฆังใหญ่ { width: 116px; height: 136px; border-radius: 50% 50% 14% 14% / 62% 62% 14% 14%; background: linear-gradient(90deg, #5c4520, #c09a48 40%, #6e5426); box-shadow: 0 10px 24px rgba(0,0,0,.5); }
.เครื่องตี.สั่น { animation: สั่นตี .42s ease-out; }
@keyframes สั่นตี { 0% { transform: scale(.94); } 30% { transform: rotate(-4deg); } 60% { transform: rotate(3deg); } 100% { transform: none; } }
.ของจุด { display: flex; gap: 22px; align-items: flex-end; justify-content: center; min-height: 110px; padding-top: 30px; }
.เทียน { position: relative; width: 14px; height: 56px; border-radius: 3px; background: linear-gradient(90deg, #8e1517, #d33a2f, #8e1517); }
.เทียน::before { content: ''; position: absolute; left: 50%; bottom: 100%; width: 12px; height: 22px; margin-left: -6px; border-radius: 50% 50% 45% 45%;
  background: radial-gradient(circle at 50% 70%, #fff6c0, #ffb13b 55%, rgba(255,120,30,0) 72%); opacity: 0; transition: opacity .3s; }
.เทียน.ติด::before { opacity: 1; animation: ไหวเปลว 1.1s ease-in-out infinite alternate; }
@keyframes ไหวเปลว { from { transform: scaleY(1); } to { transform: scaleY(1.12) translateX(1px); } }
.มัด { position: relative; width: 78px; height: 7px; border-radius: 3px; background: linear-gradient(90deg, #b3201a 0 22%, transparent 22%), repeating-linear-gradient(180deg, #ece5d6 0 2px, #cfc6b4 2px 3px); }
.มัด.ติด::after { content: ''; position: absolute; right: -5px; top: -4px; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(#ffd27a, #ff6a1a 55%, transparent 70%); }
.เตา { position: relative; width: 86px; height: 44px; border-radius: 6px 6px 30px 30px; background: linear-gradient(90deg, #5c4520, #a7843d 45%, #5c4520); }
/* ธูปดอกใหญ่แบบสมัยอากง (เจ้าของเลือก 2 ต.ค. 2569) ตัวธูปหนา ปลายเรืองใหญ่ ก้านแดงโผล่ล่าง */
.เตา i { position: absolute; left: calc(50% - 2.5px + var(--i) * 10px); bottom: 85%; width: 5px; height: 72px; border-radius: 2px;
  background: linear-gradient(#e9e2d3 0 80%, #b3201a 80%); transform: rotate(calc(var(--i) * 5deg)); transform-origin: 50% 100%; }   /* ตัวธูปขาว ก้านแดง (เจ้าของ 2 ต.ค. 2569) */
.เตา i::after { content: ''; position: absolute; top: -6px; left: -4px; width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(#ffd27a, #ff6a1a 55%, transparent 70%); }
.เตา.มีควัน::before { content: ''; position: absolute; left: 50%; bottom: 210%; width: 34px; height: 80px; margin-left: -17px; filter: blur(7px);
  background: radial-gradient(ellipse at 50% 80%, rgba(220,214,204,.38), transparent 70%); animation: ควันลอย 3.4s ease-in-out infinite; }
@keyframes ควันลอย { 0% { transform: translateY(10px) scaleX(.8); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-30px) translateX(8px) scaleX(1.3); opacity: 0; } }
/* กระถางละองค์ (ธูป 12 ดอก กระถางละดอก · เจ้าของ 2 ต.ค. 2569) โหมดประหยัดเรียงกระถางเล็กหลายใบ */
.ของจุด.หลายเตา { gap: 12px; flex-wrap: wrap; }
.ของจุด.หลายเตา .เตา { width: 58px; height: 32px; }
.ของจุด.หลายเตา .เตา i { height: 56px; }
/* แท่นบูชา 11 องค์: กระถางเล็กเรียงทั้งแถวซ้ายไปขวา ใบของจุดนี้มีกรอบเหลือง */
.ของจุด.แถวแท่น { gap: 5px; flex-wrap: nowrap; }
.ของจุด.แถวแท่น .เตา { width: 25px; height: 16px; border-radius: 3px 3px 12px 12px; }
.ของจุด.แถวแท่น .เตา.นี่ { box-shadow: 0 0 0 2px var(--เหลืองยันต์); }
.ของจุด.แถวแท่น .เตา i { width: 4px; height: 46px; left: calc(50% - 2px); }
.ของจุด.แถวแท่น .เตา i::after { width: 10px; height: 10px; left: -3px; top: -5px; }
.ของจุด.แถวแท่น .เตา.มีควัน::before { width: 18px; margin-left: -9px; height: 50px; bottom: 300%; }
/* แสงตอนปักธูป แบบ 2 ที่เจ้าของเลือก (2 ต.ค. 2569) · รูปองค์ลอยมาจาก ภาพลอย ใน shrine.json เท่านั้น */
.ภาพจุด { position: relative; }
.ภาพจุด.เรือง { animation: แผงเรือง 2.2s ease-out; }
@keyframes แผงเรือง { 0%, 100% { filter: none; box-shadow: none; } 30% { filter: brightness(1.3); box-shadow: inset 0 0 40px rgba(255,205,110,.55), 0 0 26px rgba(255,205,110,.45); } }
/* รูปองค์โผล่จากล่างตัวเล็ก ลอยขึ้น โยก หายใจ แล้วลอยสูงสลายเป็นแสง · สีจริงของภาพ มีแสงทองรอบตัว */
.ภาพจุด img.องค์ลอย { position: absolute; inset: 0; margin: auto; width: 100%; height: 86%; object-fit: contain; pointer-events: none;
  opacity: 0; animation: องค์ลอยขึ้น 3.6s ease-out forwards; }
@keyframes องค์ลอยขึ้น {
  0% { opacity: 0; transform: translateY(35%) scale(.55); filter: brightness(2) drop-shadow(0 0 14px rgba(255,214,140,.9)); }
  22% { opacity: 1; transform: translateY(0) scale(1); filter: brightness(1.05) drop-shadow(0 0 12px rgba(255,214,140,.8)); }
  38% { transform: translateY(-3%) rotate(-2.5deg) scale(1.02); }
  56% { transform: translateY(1%) rotate(2deg) scale(.99); }
  74% { opacity: 1; transform: translateY(-2%) rotate(-1deg) scale(1.01); filter: brightness(1.05) drop-shadow(0 0 12px rgba(255,214,140,.8)); }
  100% { opacity: 0; transform: translateY(-28%) scale(1.08); filter: brightness(1.8) drop-shadow(0 0 20px rgba(255,214,140,1)); }
}
.เตา.เรือง { animation: เตาเรือง 2s ease-out; }
@keyframes เตาเรือง { 0%, 100% { box-shadow: 0 0 0 rgba(255,205,110,0); } 30% { box-shadow: 0 -6px 22px 6px rgba(255,205,110,.65); } }
@media (prefers-reduced-motion: reduce) {
  .กระบอก.เขย่า, .ไม้ใบ, .ปวย.โยน i, .ภาพจุด.ก้ม, .เครื่องตี.สั่น, .เทียน.ติด::before, .เตา.มีควัน::before, .ภาพจุด.เรือง, .เตา.เรือง { animation: none; }
  .ภาพจุด img.องค์ลอย { display: none; }
}
