/* ===== หน้าแรก — เว็บเต็มจอ (มือถือ + คอม) ===== */
:root {
  --s: .82;               /* สเกลโทรศัพท์ (JS คำนวณให้พอดีจอ) */
  --phone-w: 418px;
  --phone-h: 872px;
  --pink: #ff7ad9;
  --lilac: #e3b3ff;
}
body.home { overflow: hidden; background: radial-gradient(ellipse at 50% 30%, #2a1060 0%, #0b0620 70%); }

/* ============ ฉากเวที ============ */
.stage { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }

.valance {
  position: absolute; top: 0; left: 0; right: 0; height: 96px; z-index: 3;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .35) 0 6px, transparent 6px 22px),
    linear-gradient(180deg, #5b1f8c, #3a0f5e 70%, #24073d);
  -webkit-mask: radial-gradient(64px 92px at 50% 0, #000 98%, transparent 100%) 0 0 / 128px 96px repeat-x;
  mask: radial-gradient(64px 92px at 50% 0, #000 98%, transparent 100%) 0 0 / 128px 96px repeat-x;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6));
}
.curtain {
  position: absolute; top: 0; bottom: 0; width: 13vw; min-width: 120px; z-index: 2;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .55), transparent 40%, rgba(0, 0, 0, .25)),
    repeating-linear-gradient(90deg, #22063b 0, #6d2aa3 1.4vw, #45136e 2.6vw, #1c0532 3.6vw);
  clip-path: polygon(0 0, 100% 0, 92% 40%, 38% 60%, 70% 100%, 0 100%);
  box-shadow: inset -20px 0 60px rgba(0, 0, 0, .6);
}
.curtain.left { left: 0; }
.curtain.right { right: 0; transform: scaleX(-1); }
.curtain .tie {
  position: absolute; top: 58%; left: 18%; width: 34%; height: 16px; border-radius: 8px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold) 50%, var(--gold-3));
  box-shadow: 0 4px 10px rgba(0, 0, 0, .6); transform: rotate(-14deg);
}

.floor-glow {
  position: absolute; left: 50%; bottom: -18vh; width: 90vw; height: 46vh; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 30%, rgba(209, 77, 255, .45), rgba(123, 77, 255, .18) 45%, transparent 70%);
  filter: blur(10px);
}

/* เทียน */
.candle { position: absolute; bottom: 7vh; width: 30px; height: 150px; }
.candle.c1 { left: 17vw; }
.candle.c2 { right: calc(4vw + 190px); transform: scale(.85); transform-origin: bottom; }
.candle .wax {
  position: absolute; bottom: 14px; left: 0; width: 30px; height: 96px; border-radius: 6px 6px 3px 3px;
  background: linear-gradient(90deg, #d8b98e, #fff1d6 40%, #e9cfa6 70%, #b8946a);
  box-shadow: inset 0 10px 14px rgba(255, 210, 140, .6);
}
.candle .wax::before { content: ""; position: absolute; top: -2px; left: 4px; width: 8px; height: 26px; border-radius: 0 0 6px 6px; background: #fff1d6; }
.candle .holder { position: absolute; bottom: 0; left: -14px; width: 58px; height: 16px; border-radius: 50%; background: linear-gradient(180deg, var(--gold-2), var(--gold-3)); box-shadow: 0 6px 14px rgba(0, 0, 0, .6); }
.candle .flame {
  position: absolute; bottom: 108px; left: 7px; width: 16px; height: 34px;
  border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%;
  background: radial-gradient(ellipse at 50% 75%, #fff 0 20%, #ffe08a 40%, #ff9a3c 70%, transparent 72%);
  animation: flicker .18s ease-in-out infinite alternate; transform-origin: 50% 100%;
}
.candle .halo { position: absolute; bottom: 60px; left: -85px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 190, 90, .45), rgba(255, 140, 60, .12) 40%, transparent 70%); animation: halo 2.4s ease-in-out infinite; }
@keyframes flicker { from { transform: scale(1, 1) rotate(-2deg); } to { transform: scale(.92, 1.08) rotate(2deg); } }
@keyframes halo { 50% { opacity: .7; transform: scale(.94); } }

/* ลูกแก้วบนแท่นดาว */
.stage-orb { position: absolute; right: 4vw; bottom: 3vh; width: 160px; }
.orb-glass {
  position: relative; width: 140px; height: 140px; margin: 0 auto -18px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 35% 30%, #fff8 0, #c9a0ff66 18%, #5a1fa8cc 55%, #12052fee 80%);
  box-shadow: 0 0 50px rgba(176, 102, 255, .8), 0 0 110px rgba(209, 77, 255, .35);
}
.orb-swirl { position: absolute; inset: -30%; background: conic-gradient(from 0deg, transparent, #ff7ad988, transparent 40%, #7ad8ff88, transparent 75%); filter: blur(12px); mix-blend-mode: screen; animation: spin 9s linear infinite; }
.orb-shine { position: absolute; top: 12%; left: 20%; width: 30%; height: 18%; border-radius: 50%; background: radial-gradient(ellipse, #fffd, transparent 70%); transform: rotate(-30deg); }
.orb-stand { width: 150px; display: block; margin: 0 auto; filter: drop-shadow(0 0 10px rgba(233, 211, 255, .35)); }

/* ลูกเต๋า */
.die {
  position: absolute; width: 58px; height: 64px; display: grid; place-items: center;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: conic-gradient(from 30deg at 50% 50%, #c9b8ff, #6a4fc9, #e7dcff, #4b2f9e, #b39bff, #6a4fc9, #c9b8ff);
  box-shadow: 0 0 30px rgba(201, 184, 255, .6);
  animation: floaty 6s ease-in-out infinite;
}
.die span { font-family: "Cinzel Decorative", serif; font-size: .9rem; color: #1a0b3a; text-shadow: 0 0 4px #fff; }
.die.d1 { left: 21vw; top: 30vh; }
.die.d2 { right: 21vw; top: 24vh; width: 44px; height: 48px; animation-delay: -3s; background: conic-gradient(from 30deg, #ffb36b, #8a3b0f, #ffd8a8, #5a2208, #ff9a3c, #8a3b0f, #ffb36b); box-shadow: 0 0 30px rgba(255, 154, 60, .55); }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-22px) rotate(20deg); } }
.crystal-shard { position: absolute; left: 25vw; bottom: 9vh; width: 22px; height: 38px; clip-path: polygon(50% 0, 100% 40%, 50% 100%, 0 40%); background: linear-gradient(160deg, #fff, #c7b2ff 50%, #7a5cd6); filter: drop-shadow(0 0 12px #c7b2ff); animation: floaty 5s ease-in-out infinite -1s; }

/* ============ เลย์เอาต์ ============ */
.device-wrap {
  position: relative; z-index: 5; height: 100vh; height: 100dvh;
  display: flex; align-items: center; justify-content: center; gap: clamp(40px, 6vw, 110px);
  padding: 20px;
}
.app-title span {
  font-family: "Charm", serif;
  background: linear-gradient(180deg, #fff 0%, #f1d4ff 35%, #c77dff 70%, #8a3fd1 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 6px rgba(227, 179, 255, .9)) drop-shadow(0 0 22px rgba(177, 76, 255, .8));
  animation: storm 5s linear infinite;
}
@keyframes storm {
  0%, 92%, 100% { filter: drop-shadow(0 0 6px rgba(227, 179, 255, .9)) drop-shadow(0 0 22px rgba(177, 76, 255, .8)); }
  93%, 96% { filter: drop-shadow(0 0 10px #fff) drop-shadow(0 0 40px #e3b3ff) brightness(1.4); }
}
/* ============ โทรศัพท์ ============ */
.phone-slot { position: relative; flex: none; width: calc(var(--phone-w) * var(--s)); height: calc(var(--phone-h) * var(--s));
  opacity: 0; transform: translateY(40px) scale(.96); transition: opacity 1s ease .2s, transform 1.2s cubic-bezier(.2, .9, .2, 1.05) .2s; }
body.ready .phone-slot { opacity: 1; transform: none; }
.phone {
  position: absolute; top: 0; left: 0; width: var(--phone-w); height: var(--phone-h);
  transform: scale(var(--s)); transform-origin: top left;
  border-radius: 64px; padding: 14px;
  background: linear-gradient(145deg, #3d2f55, #15101f 40%, #2a2138 70%, #0c0912);
  box-shadow:
    0 0 0 2px #5a4a73, 0 0 0 4px #120d1a,
    0 40px 100px rgba(0, 0, 0, .75), 0 0 120px rgba(177, 76, 255, .35);
}
.btn-side { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #2a2138, #5a4a73); }
.btn-side.power { right: -5px; top: 210px; height: 96px; }
.btn-side.vol1 { left: -5px; top: 180px; height: 64px; }
.btn-side.vol2 { left: -5px; top: 260px; height: 64px; }

.screen {
  position: relative; width: 100%; height: 100%; border-radius: 50px; overflow: hidden;
  background:
    radial-gradient(120% 60% at 50% 0%, #3a1670 0%, transparent 60%),
    radial-gradient(90% 50% at 50% 100%, #4a0f5e 0%, transparent 70%),
    #0d0724;
  isolation: isolate;
}
.statusbar {
  position: absolute; top: 0; left: 0; right: 0; height: 52px; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; padding: 0 30px 0 36px;
  font-weight: 600; font-size: 15px; color: #fff;
  background: linear-gradient(180deg, rgba(13, 7, 36, .9), transparent);
}
.island { position: absolute; left: 50%; top: 11px; width: 120px; height: 34px; margin-left: -60px; border-radius: 20px; background: #000; }

.app {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden;
  padding: 54px 18px 110px; scrollbar-width: none; overscroll-behavior: contain;
  -webkit-mask: linear-gradient(180deg, transparent 0, #000 52px); mask: linear-gradient(180deg, transparent 0, #000 52px);
}
.app::-webkit-scrollbar { display: none; }
.app-bar { display: flex; justify-content: space-between; align-items: center; padding: 4px 2px 0; }
.app-logo { font-family: "Charm", serif; font-size: 1.5rem; color: var(--gold-2); text-decoration: none; }
.app-logo span:last-child { font-family: "Cinzel Decorative", serif; font-size: .8rem; color: var(--gold); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(227, 179, 255, .35); font-size: 1.05rem; }

/* ฉากหมอดู (องค์ประกอบตาม reference) */
.seer-scene { position: relative; text-align: center; margin: 0 -18px; padding: 0 18px; isolation: isolate; }
.hall { position: absolute; left: 0; top: -6px; width: 100%; height: 340px; z-index: -1; opacity: .9;
  -webkit-mask: linear-gradient(180deg, #000 60%, transparent); mask: linear-gradient(180deg, #000 60%, transparent); }

.app-title { position: relative; z-index: 4; line-height: 1.2; margin-top: 2px; }
.app-title span { font-size: 4.3rem; display: inline-block; padding: 0 .1em .2em; }
.app-title small { display: block; font-family: "Cinzel Decorative", serif; font-size: .8rem; letter-spacing: .45em; color: #ffc4ef; text-shadow: 0 0 10px var(--pink); margin-top: -6px; }
.bolts { position: absolute; top: -4px; left: 8%; width: 84%; height: 104px; z-index: 5; pointer-events: none; }
.bolts path { fill: none; stroke: #f6e2ff; stroke-width: 1.8; stroke-linejoin: round; filter: drop-shadow(0 0 3px #d79bff) drop-shadow(0 0 9px #b14cff); opacity: 0; animation: bolt 3.6s steps(1) infinite; }
.bolts path:nth-child(2) { animation-delay: .9s; }
.bolts path:nth-child(3) { animation-delay: 1.8s; }
.bolts path:nth-child(4) { animation-delay: 2.4s; }
.bolts path:nth-child(5) { animation-delay: 3s; }
@keyframes bolt { 0% { opacity: 1; } 4% { opacity: .2; } 8% { opacity: 1; } 12%, 100% { opacity: 0; } }

/* ลูกเต๋าลอยข้างฮู้ด */
.sdie { position: absolute; z-index: 3; display: grid; place-items: center; animation: floaty 5s ease-in-out infinite; }
.sdie.d20 { left: 10px; top: 250px; width: 40px; height: 44px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: conic-gradient(from 30deg, #efe6ff, #8f78d9, #fbf7ff, #6b55b8, #d9ccff, #8f78d9, #efe6ff);
  filter: drop-shadow(0 0 10px #c9b8ff); }
.sdie.d20 b { font-family: "Cinzel Decorative", serif; font-size: .62rem; color: #2a1660; }
.sdie.d6 { right: 12px; top: 232px; width: 30px; height: 30px; border-radius: 7px; transform: rotate(18deg);
  background: linear-gradient(135deg, #3a2a20, #120a06); border: 1.5px solid #ff9a3c; box-shadow: 0 0 16px rgba(255, 154, 60, .7); animation-delay: -2.5s;
  grid-template-columns: repeat(3, 1fr); padding: 5px; }
.sdie.d6 i { width: 5px; height: 5px; border-radius: 50%; background: #ffb36b; box-shadow: 0 0 4px #ffb36b; }
.sdie.d6 i:nth-child(1) { grid-column: 1; grid-row: 1; }
.sdie.d6 i:nth-child(2) { grid-column: 2; grid-row: 2; }
.sdie.d6 i:nth-child(3) { grid-column: 3; grid-row: 3; }

/* หมอดู + วงไพ่ */
.seer { position: relative; z-index: 2; width: 312px; height: 340px; margin: -10px auto 0; perspective: 1000px; transform-style: preserve-3d; }
.seer-svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: translateZ(0); filter: drop-shadow(0 0 22px rgba(177, 76, 255, .5)); }
.gem-glow { animation: pulse 2.4s ease-in-out infinite; transform-origin: 150px 276px; }
.halo-ring { position: absolute; left: 50%; top: 92px; width: 0; height: 0; transform-style: preserve-3d; animation: ringSway 9s ease-in-out infinite; }
@keyframes ringSway { 0%, 100% { transform: rotateX(-12deg) rotateY(-9deg); } 50% { transform: rotateX(-12deg) rotateY(9deg); } }
.rcard {
  position: absolute; width: 44px; height: 66px; left: -22px; top: -33px;
  transform: rotateY(var(--a)) translateZ(150px);
  transform-style: preserve-3d;
}
.rcard::before {
  content: ""; position: absolute; inset: 0; border-radius: 5px;
  background: linear-gradient(170deg, #f1e6ff, #c4a8f0 55%, #9a7ad8);
  border: 2px solid #f5c96b; box-shadow: 0 0 16px rgba(227, 179, 255, .8), inset 0 0 0 2px rgba(255, 255, 255, .5);
  animation: rbob 3.4s ease-in-out infinite; animation-delay: var(--d);
}
.rcard i {
  position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px; border-radius: 50%;
  display: grid; place-items: center; font-style: normal; font-size: .85rem; color: #ffe7a8;
  background: radial-gradient(circle, #4a2486, #22114a); border: 1px solid #f5c96b;
  animation: rbob 3.4s ease-in-out infinite; animation-delay: var(--d);
}
@keyframes rbob { 50% { transform: translateY(-6px); } }

/* โต๊ะกลม */
.table { position: relative; z-index: 5; height: 214px; margin: -96px -18px 0; }
.table-svg { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 -8px 30px rgba(209, 77, 255, .45)); }
.cloth-sigil { filter: drop-shadow(0 0 4px #ff9ae4); }
.table-cards { position: absolute; left: 0; right: 0; top: 24px; display: flex; justify-content: center; gap: 10px; z-index: 2; }
.tcard3 { position: relative; width: 92px; text-decoration: none; perspective: 420px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.card-face {
  position: relative; display: grid; place-items: center; width: 84px; height: 110px;
  border-radius: 8px; border: 2px solid var(--gold);
  background: radial-gradient(circle at 50% 50%, #3a1c78, #120632 70%);
  box-shadow: 0 0 0 3px rgba(20, 8, 50, .9) inset, 0 0 0 4px var(--gold-3) inset, 0 14px 20px rgba(0, 0, 0, .55), 0 0 22px rgba(143, 216, 255, .45);
  transform: rotateX(50deg); transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), box-shadow .35s;
}
.tcard3.mid .card-face { transform: rotateX(50deg) translateY(-4px); }
.tcard3:hover .card-face, .tcard3:focus-visible .card-face { transform: rotateX(16deg) translateY(-14px); box-shadow: 0 0 0 3px rgba(20, 8, 50, .9) inset, 0 0 0 4px var(--gold-3) inset, 0 18px 30px rgba(0, 0, 0, .5), 0 0 36px rgba(143, 216, 255, .9); }
.tcard3:focus-visible { outline: none; }
.mc { width: 72px; height: 72px; }
.mc svg { width: 100%; height: 100%; animation: spin 14s linear infinite; filter: drop-shadow(0 0 5px #bff0ff) drop-shadow(0 0 12px #8fd8ff); }
.tcard3:nth-child(2) .mc svg { animation-direction: reverse; }
.beam {
  position: absolute; left: 50%; bottom: 62px; width: 66px; height: 80px; margin-left: -33px; pointer-events: none;
  background: radial-gradient(50% 100% at 50% 100%, rgba(207, 245, 255, .55), rgba(143, 216, 255, .15) 60%, transparent 75%);
  filter: blur(3px); animation: beam 2.8s ease-in-out infinite;
}
.tcard3:nth-child(2) .beam { animation-delay: -1s; }
.tcard3:nth-child(3) .beam { animation-delay: -2s; }
@keyframes beam { 50% { opacity: .45; transform: scaleY(.85); } }
.card-cap { font-size: .76rem; color: #f3dcff; line-height: 1.3; text-align: center; text-shadow: 0 1px 4px #000; }
.card-cap b { display: block; font-family: "Cinzel Decorative", serif; font-size: .72rem; color: #ffd0f0; text-shadow: 0 0 8px var(--pink); }

/* ของประกอบบนโต๊ะ */
.tprop { position: absolute; z-index: 1; pointer-events: none; }
.candle { width: 16px; height: 70px; }
.candle.l { left: 22px; top: -34px; }
.candle.r { right: 74px; top: -44px; transform: scale(.85); transform-origin: bottom; }
.candle .wx { position: absolute; bottom: 8px; left: 0; width: 16px; height: 44px; border-radius: 4px 4px 2px 2px; background: linear-gradient(90deg, #d8b98e, #fff1d6 40%, #e9cfa6 70%, #b8946a); }
.candle .hd { position: absolute; bottom: 0; left: -8px; width: 32px; height: 10px; border-radius: 50%; background: linear-gradient(180deg, var(--gold-2), var(--gold-3)); }
.candle .fl { position: absolute; bottom: 52px; left: 3px; width: 10px; height: 20px; border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%;
  background: radial-gradient(ellipse at 50% 75%, #fff 0 20%, #ffe08a 40%, #ff9a3c 70%, transparent 72%);
  box-shadow: 0 0 20px 8px rgba(255, 180, 90, .35); animation: flicker .18s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.gems { left: 46px; top: 18px; width: 40px; height: 22px; }
.gems i { position: absolute; bottom: 0; width: 12px; height: 18px; clip-path: polygon(50% 0, 100% 40%, 50% 100%, 0 40%); background: linear-gradient(160deg, #fff, #d7c4ff 50%, #8a6ce0); filter: drop-shadow(0 0 4px #d7c4ff); }
.gems i:nth-child(1) { left: 0; }
.gems i:nth-child(2) { left: 11px; height: 22px; background: linear-gradient(160deg, #fff, #ffc9ec 50%, #e06cc0); }
.gems i:nth-child(3) { left: 24px; height: 14px; }
.torb { right: 6px; top: -70px; width: 60px; }
.torb .glass { display: block; width: 54px; height: 54px; margin: 0 auto -10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff9 0, #d6b8ff88 16%, #6a2bc0dd 55%, #1a0640 82%);
  box-shadow: 0 0 22px rgba(176, 102, 255, .9); position: relative; z-index: 1; }
.tstand { display: block; width: 60px; }

/* CTA + sections */
.app-cta { display: grid; gap: 10px; margin: 20px 0 6px; }
.btn-ghost.full { width: 100%; padding: 13px; justify-content: center; }
.app-section { margin-top: 22px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.sec-head h3 { font-size: 1.05rem; font-weight: 500; color: var(--gold-2); }
.sec-head a { font-size: .85rem; color: var(--lilac); text-decoration: none; }
.hscroll { display: flex; gap: 10px; overflow-x: auto; margin: 0 -18px; padding: 2px 18px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.pop {
  flex: none; width: 140px; scroll-snap-align: start; padding: 14px 12px; border-radius: 18px; text-decoration: none;
  background: linear-gradient(170deg, rgba(70, 30, 130, .75), rgba(20, 8, 50, .85)); border: 1px solid rgba(227, 179, 255, .25);
  display: flex; flex-direction: column; gap: 6px; color: var(--text);
}
.pop .pi { font-size: 1.7rem; }
.pop .pn { font-size: .95rem; line-height: 1.3; color: var(--gold-2); }
.pop .pp { margin-top: auto; font-size: .82rem; color: var(--muted); }
.pop .pp b { color: var(--gold); font-size: 1rem; }
.pop .pp b.free { color: #8ff0b5; }
.sci-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sci {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(227, 179, 255, .15);
  text-decoration: none; color: var(--text); font-size: .72rem; line-height: 1.25; text-align: center;
  transition: background .2s, border-color .2s;
}
.sci:hover { background: rgba(227, 179, 255, .12); border-color: var(--lilac); }
.sci span { font-size: 1.4rem; }
.app-foot { margin-top: 26px; text-align: center; font-size: .72rem; color: var(--muted); opacity: .7; }

/* แถบเมนูล่าง */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 25; height: 88px; padding: 8px 10px 26px;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  background: rgba(16, 8, 40, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(227, 179, 255, .18);
}
.tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem; color: var(--muted); text-decoration: none; }
.tabbar span { font-size: 1.25rem; filter: grayscale(.5); }
.tabbar [aria-current="page"] { color: var(--gold-2); }
.tabbar [aria-current="page"] span { filter: none; }
.tab-center span {
  width: 54px; height: 54px; margin-top: -26px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; filter: none;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 50%, var(--gold-3));
  box-shadow: 0 0 0 4px #160a36, 0 0 24px rgba(245, 201, 107, .6);
}
.home-indicator { position: absolute; left: 50%; bottom: 8px; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: rgba(255, 255, 255, .85); z-index: 26; }

/* Bottom sheet */
.sheet-backdrop { position: absolute; inset: 0; z-index: 40; background: rgba(5, 2, 20, .6); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .35s; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 90%;
  overflow-y: auto; scrollbar-width: none;
  padding: 14px 22px 34px; border-radius: 28px 28px 0 0;
  background: linear-gradient(170deg, rgba(48, 22, 105, .98), rgba(14, 6, 38, .99));
  border-top: 1px solid var(--line); box-shadow: 0 -20px 60px rgba(0, 0, 0, .6);
  transform: translateY(105%); transition: transform .45s cubic-bezier(.2, .9, .3, 1);
}
.sheet::-webkit-scrollbar { display: none; }
.screen.sheet-open .sheet { transform: none; }
.screen.sheet-open .sheet-backdrop { opacity: 1; pointer-events: auto; }
.grabber { display: block; width: 40px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .3); margin: 0 auto 6px; }
.sheet .close { top: 12px; right: 14px; }
.sheet .auth-head { margin-bottom: 12px; }
.sheet .auth-head h2 { font-size: 1.8rem; }
.sheet .two { grid-template-columns: 1fr 1fr; }

@media (max-width: 1000px) { .candle.c2, .crystal-shard { display: none; } }

/* ============ จอกว้าง: โชว์ข้อความด้านข้าง ============ */

/* ============ เต็มจอ ไม่มีกรอบโทรศัพท์ ============ */
@media all {
  body.home { overflow: hidden; }
  .stage .curtain, .stage .valance, .stage .candle, .stage .stage-orb, .stage .die, .stage .crystal-shard { display: none; }
  .device-wrap { padding: 0; display: block; }
  .phone-slot { width: 100%; height: 100dvh; transform: none; }
  body.ready .phone-slot { transform: none; }
  .phone { position: relative; width: 100%; height: 100%; transform: none; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .btn-side, .statusbar, .home-indicator { display: none; }
  .screen { border-radius: 0; }
  .app { padding: calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 100px); -webkit-mask: none; mask: none; }
  .hscroll { margin: 0 -16px; padding-inline: 16px; }
  .tabbar { height: auto; padding-bottom: calc(env(safe-area-inset-bottom) + 10px); }
  .sheet { padding-bottom: calc(env(safe-area-inset-bottom) + 24px); }
}
@media (max-width: 360px) {
  .app-title span { font-size: 3.4rem; }
  .card-face { width: 76px; height: 100px; }
  .tcard3 { width: 82px; }
  .table-cards { gap: 8px; }
}

/* ============ ก่อน/หลังเข้าสู่ระบบ ============ */
body:not(.app-ui) .member-only { display: none !important; }
body.app-ui .guest-only { display: none !important; }
body:not(.app-ui) .app { padding-bottom: 30px; display: flex; flex-direction: column; }
body:not(.app-ui) .app-cta { margin-top: auto; padding-top: 16px; }
.hello { margin: 18px 2px 0; font-size: 1.05rem; color: var(--gold-2); }
.hello small { display: block; font-size: .85rem; color: var(--muted); font-weight: 300; }

.app-bar { position: relative; }
/* ปุ่มเลือกภาษา TH · EN · 中 */
.lang-switch { position: absolute; right: max(12px, var(--gut, 12px)); top: calc(env(safe-area-inset-top, 0px) + 12px); z-index: 6; }
.lang-cur { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 10px; border-radius: 999px; cursor: pointer;
  background: rgba(13, 7, 36, .55); border: 1px solid rgba(227, 179, 255, .28); color: var(--gold-2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color .2s; }
.lang-cur:hover, .lang-switch.open .lang-cur { border-color: var(--gold); }
.lang-cur b { font-size: .8rem; font-weight: 600; letter-spacing: .04em; }
.lf { font-size: 1.1rem; line-height: 1; }
.lang-caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.lang-switch.open .lang-caret { transform: translateY(2px) rotate(-135deg); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 168px; margin: 0; padding: 6px; list-style: none; border-radius: 16px;
  background: rgba(22, 11, 52, .96); border: 1px solid rgba(227, 179, 255, .25); box-shadow: 0 14px 34px rgba(0, 0, 0, .5);
  animation: langDrop .18s ease-out; }
.lang-menu[hidden] { display: none; }
@keyframes langDrop { from { opacity: 0; transform: translateY(-6px); } }
.lang-menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; border: 0;
  background: transparent; color: var(--text); font: inherit; font-size: .9rem; text-align: left; cursor: pointer; }
.lang-menu button:hover { background: rgba(227, 179, 255, .1); }
.lang-menu button[aria-selected="true"] { color: var(--gold-2); background: rgba(240, 200, 120, .1); }
.lang-menu em { margin-left: auto; font-style: normal; color: var(--gold); }
.account-pop {
  position: absolute; right: 0; top: 48px; z-index: 25; min-width: 180px; padding: 12px;
  border-radius: 16px; background: rgba(30, 14, 70, .96); border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5); animation: rise .25s ease both;
}
.account-pop[hidden] { display: none; }
.ap-name { font-size: .9rem; color: var(--gold-2); padding: 2px 6px 8px; border-bottom: 1px solid rgba(227, 179, 255, .2); margin-bottom: 6px; }
.ap-item { width: 100%; text-align: left; padding: 8px 6px; border-radius: 10px; color: var(--text); font-size: .92rem; }
.ap-item:hover { background: rgba(255, 255, 255, .08); }
body.app-ui .avatar { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #2a1503; font-weight: 600; border-color: transparent; }
@media all {
  body:not(.app-ui) .app { padding-bottom: calc(env(safe-area-inset-bottom) + 24px); }
}

/* ============ หลังเข้าสู่ระบบ: แม่หมอครึ่งบน บริการครึ่งล่าง ============ */
body.app-ui .seer-scene {
  zoom: .5;                        /* ย่อฉากแม่หมอให้เหลือราวหนึ่งในสามของจอ */
  margin: 0 calc(-18px / .5); padding: 0 calc(18px / .5);
}
body.app-ui .app-title, body.app-ui .bolts { display: none; }
body.app-ui .seer { margin-top: 24px; }
body.app-ui .hello { margin-top: 10px; }
body.app-ui .app-section { margin-top: 16px; }
@media all {
  body.app-ui .seer-scene { margin: 0 calc(-16px / .5); padding: 0 calc(16px / .5); }
}

/* ============ หมวดหมู่ (6 หมวด) ============ */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cat {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  padding: 14px 12px 12px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(165deg, rgba(80, 36, 150, .75), rgba(22, 9, 52, .9));
  border: 1px solid rgba(227, 179, 255, .25); transition: transform .2s, border-color .2s, box-shadow .2s;
}
.cat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 122, 217, .25), transparent 70%); }
.cat:hover { transform: translateY(-3px); border-color: var(--lilac); box-shadow: 0 10px 30px rgba(177, 76, 255, .35); }
.cat-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.35rem;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .25), rgba(123, 77, 255, .4)); border: 1px solid rgba(245, 201, 107, .4); }
.cat-ico.big { width: 56px; height: 56px; font-size: 1.8rem; flex: none; border-radius: 16px; }
.cat b { font-size: .98rem; font-weight: 500; color: var(--gold-2); margin-top: 4px; }
.cat small { font-size: .74rem; line-height: 1.45; color: var(--muted); font-weight: 300;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat em { font-style: normal; font-size: .72rem; color: var(--lilac); margin-top: 4px; }

/* ============ แผงเลื่อนเข้า (หมวดหมู่ย่อย / รายชื่อหมอดู) ============ */
.panel {
  position: absolute; top: 0; left: 0; right: 0; bottom: 88px; z-index: 18;
  overflow-y: auto; scrollbar-width: none; padding: 50px 18px 24px;
  background:
    radial-gradient(120% 50% at 50% 0%, #3a1670 0%, transparent 60%), #0d0724;
  transform: translateX(105%); transition: transform .4s cubic-bezier(.2, .9, .3, 1);
  box-shadow: -20px 0 40px rgba(0, 0, 0, .4);
}
.panel::-webkit-scrollbar { display: none; }
.panel.open { transform: none; }
#typePanel { z-index: 19; }
.panel-bar { position: sticky; top: -50px; z-index: 2; display: grid; grid-template-columns: 70px 1fr 70px; align-items: center;
  margin: -50px -18px 12px; padding: 54px 12px 10px; background: linear-gradient(180deg, #1c0c44 70%, rgba(28, 12, 68, 0)); }
.panel-bar h2 { text-align: center; font-size: 1rem; font-weight: 500; color: var(--gold-2); }
.back { justify-self: start; padding: 6px 10px; border-radius: 999px; color: var(--lilac); font-size: .9rem; }
.back:hover { background: rgba(255, 255, 255, .08); }

.cat-hero { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; margin-bottom: 14px;
  background: linear-gradient(120deg, rgba(245, 201, 107, .12), rgba(177, 76, 255, .15)); border: 1px solid var(--line); }
.cat-hero h3 { font-size: 1.15rem; font-weight: 500; color: var(--gold-2); line-height: 1.3; }
.cat-hero p { font-size: .82rem; color: var(--muted); line-height: 1.5; font-weight: 300; }
.cat-hero .crumb { color: var(--lilac); font-size: .75rem; }

.type-list { list-style: none; display: grid; gap: 8px; }
.type-row { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px; border-radius: 16px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(227, 179, 255, .15); transition: background .2s, border-color .2s; }
.type-row:hover { background: rgba(227, 179, 255, .1); border-color: var(--lilac); }
.type-ico { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 1.25rem;
  background: radial-gradient(circle at 35% 30%, #fff3, #4a2486); border: 1px solid rgba(245, 201, 107, .4); }
.type-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.type-txt b { font-size: .95rem; font-weight: 500; color: var(--text); }
.type-txt small { font-size: .76rem; color: var(--muted); line-height: 1.45; font-weight: 300; }
.chev { color: var(--lilac); font-size: 1.4rem; }

#typeBody > .btn-gold.full { display: flex; margin-bottom: 18px; text-decoration: none; }
.filters { display: flex; gap: 6px; }
.filters span { font-size: .75rem; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(227, 179, 255, .25); color: var(--muted); }
.empty-seers { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 26px 18px 20px; border-radius: 18px;
  border: 1px dashed rgba(227, 179, 255, .3); background: rgba(255, 255, 255, .03); }
.es-ico { font-size: 2.4rem; filter: drop-shadow(0 0 12px #b14cff); }
.empty-seers b { color: var(--gold-2); font-weight: 500; }
.empty-seers p { font-size: .82rem; color: var(--muted); line-height: 1.6; font-weight: 300; margin-bottom: 8px; }

@media all {
  .panel { bottom: calc(env(safe-area-inset-bottom) + 66px); padding-top: calc(env(safe-area-inset-top) + 10px); }
  .panel-bar { top: calc(-10px - env(safe-area-inset-top)); margin-top: calc(-10px - env(safe-area-inset-top)); padding-top: calc(env(safe-area-inset-top) + 12px); }
}

/* ============ หน้าบริการในโทรศัพท์ (iframe) ============ */
.frame-panel { z-index: 21; padding: 0; display: flex; flex-direction: column; overflow: hidden; background: #0d0724; }
.frame-panel .panel-bar { position: relative; top: 0; margin: 0; padding: 50px 12px 8px; flex: none; }
.frame-panel iframe { flex: 1; width: 100%; border: 0; display: block; background: #0d0724; }
body:not(.app-ui) .panel { bottom: 0; }
@media all {
  .frame-panel .panel-bar { padding-top: calc(env(safe-area-inset-top) + 10px); margin: 0; top: 0; }
  body:not(.app-ui) .panel { bottom: 0; }
}
/* หลังเข้าสู่ระบบ: ตัดชายผ้าปูโต๊ะให้สั้นลง เหลือแค่ไพ่กับชื่อใต้ไพ่ */
body.app-ui .table { height: 168px; overflow: hidden; }
body.app-ui .table-svg { height: 214px; bottom: auto; }

/* ============ วงล้อของขวัญต้อนรับ ============ */
.gift {
  position: absolute; inset: 0; z-index: 45; display: flex; align-items: center; justify-content: center;
  padding: 50px 18px 30px; overflow-y: auto; scrollbar-width: none;
  background: radial-gradient(80% 60% at 50% 45%, rgba(90, 35, 160, .97), rgba(10, 4, 30, .98));
  opacity: 0; pointer-events: none; transform: scale(1.04); transition: opacity .4s, transform .4s;
}
.gift.open { opacity: 1; pointer-events: auto; transform: none; }
.gift-inner { width: 100%; text-align: center; }
.gift-eyebrow { color: #ffc4ef; font-size: .78rem; letter-spacing: .2em; text-shadow: 0 0 10px var(--pink); }
.gift h2 { font-family: "Charm", serif; font-size: 2rem; line-height: 1.3; color: var(--gold-2); text-shadow: 0 0 16px rgba(245, 201, 107, .6); }
.gift-sub { color: var(--muted); font-size: .85rem; margin-bottom: 14px; }
.wheel-wrap { position: relative; width: 300px; max-width: 100%; aspect-ratio: 1; margin: 0 auto; }
.wheel { width: 100%; height: 100%; filter: drop-shadow(0 0 24px rgba(177, 76, 255, .7)); }
.wheel svg { width: 100%; height: 100%; display: block; }
.w-ico { font-size: 22px; }
.w-txt { font-size: 12.5px; fill: #fff3c9; font-family: "Kanit", sans-serif; font-weight: 500; }
.bulb { fill: #fff3c9; animation: bulb .8s steps(1) infinite; }
@keyframes bulb { 50% { fill: #f5c96b; opacity: .4; } }
.wheel-pointer {
  position: absolute; left: 50%; top: -6px; z-index: 2; width: 28px; height: 36px; margin-left: -14px;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  background: linear-gradient(180deg, var(--gold-2), var(--gold-3)); filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .5));
}
.wheel-hub {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px; border-radius: 50%; z-index: 2;
  font-weight: 600; font-size: 1.05rem; color: #2a1503;
  background: radial-gradient(circle at 35% 30%, #fff6d8, var(--gold) 55%, var(--gold-3));
  box-shadow: 0 0 0 5px #1a0b3d, 0 0 0 7px var(--gold), 0 0 30px rgba(245, 201, 107, .8);
  animation: hubPulse 1.6s ease-in-out infinite;
}
.wheel-hub:disabled { animation: none; opacity: .9; cursor: default; }
@keyframes hubPulse { 50% { transform: scale(1.06); } }
.gift-later { margin-top: 14px; color: var(--muted); font-size: .85rem; text-decoration: underline; }
.gift-later[hidden] { display: none; }
.gift-result { margin-top: 16px; animation: rise .5s ease both; }
.gift-result[hidden] { display: none; }
.win-card { display: flex; gap: 12px; align-items: center; text-align: left; padding: 14px; border-radius: 18px;
  background: linear-gradient(120deg, rgba(245, 201, 107, .18), rgba(255, 122, 217, .12)); border: 1px solid var(--gold); }
.win-ico { flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.8rem;
  background: radial-gradient(circle at 35% 30%, #fff3, #4a2486); border: 1px solid var(--gold); }
.win-label { font-size: .75rem; color: #ffc4ef; }
.win-card h3, .reading-head h3 { font-size: 1.15rem; font-weight: 500; color: var(--gold-2); line-height: 1.3; }
.win-card p:not(.win-label) { font-size: .8rem; color: var(--muted); line-height: 1.5; }
.win-actions { display: grid; gap: 8px; margin-top: 12px; }

/* ============ คูปองของฉัน ============ */
.spin-cta { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; padding: 12px 14px; border-radius: 16px; margin-bottom: 4px;
  background: linear-gradient(110deg, rgba(245, 201, 107, .25), rgba(255, 122, 217, .18)); border: 1px solid var(--gold);
  animation: ctaGlow 2.4s ease-in-out infinite; }
.spin-cta span { font-size: 1.5rem; }
.spin-cta b { flex: 1; font-size: .85rem; font-weight: 500; color: var(--gold-2); line-height: 1.4; }
.spin-cta em { font-style: normal; font-size: .8rem; color: #fff; white-space: nowrap; }
@keyframes ctaGlow { 50% { box-shadow: 0 0 22px rgba(245, 201, 107, .5); } }
.sec-note { font-size: .78rem; color: var(--muted); }
.coupons { display: grid; gap: 8px; }
.coupon { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 14px;
  background: linear-gradient(110deg, #3a1a74, #22104a); border: 1px dashed var(--gold); }
.coupon::before, .coupon::after { content: ""; position: absolute; right: 64px; width: 14px; height: 14px; border-radius: 50%; background: #0d0724; }
.coupon::before { top: -8px; } .coupon::after { bottom: -8px; }
.cp-ico { font-size: 1.6rem; }
.cp-txt { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.cp-txt small { font-size: .68rem; color: #ffc4ef; }
.cp-txt b { font-size: .95rem; font-weight: 500; color: var(--gold-2); }
.cp-txt em { font-style: normal; font-size: .7rem; color: var(--muted); }
.cp-use { flex: none; width: 50px; padding: 8px 0; border-radius: 999px; font-weight: 600; font-size: .85rem; color: #2a1503;
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); }

/* ============ หน้าผลคำทำนายส่วนตัว ============ */
#readingPanel { z-index: 20; }
.reading-head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.reading-lead { font-size: 1rem; color: var(--text); margin: 14px 0 6px; line-height: 1.6; }
.reading-lead b { color: var(--gold-2); font-weight: 500; margin: 0 4px; }
.reading-tip { font-size: .86rem; color: var(--muted); line-height: 1.75; font-weight: 300; }
.reading-tip b { color: var(--gold-2); font-weight: 500; }
.reading-note { margin-top: 22px; font-size: .72rem; color: var(--muted); opacity: .7; text-align: center; }
.swatches { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.swatches li { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(227, 179, 255, .15); }
.sw { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff6; box-shadow: 0 0 12px rgba(255, 255, 255, .2); }
.swatches small { display: block; font-size: .7rem; color: var(--muted); }
.swatches b { font-size: .95rem; font-weight: 500; color: var(--text); }
.num-row { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 8px 0; }
.num-box { flex: 1; min-width: 0; text-align: center; padding: 10px 4px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(227, 179, 255, .2); }
.num-box small { display: block; font-size: .68rem; color: var(--muted); }
.num-box b { display: block; font-size: 1.5rem; color: var(--text); }
.num-box span { display: block; font-size: .68rem; color: var(--lilac); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.num-box.gold { border-color: var(--gold); background: rgba(245, 201, 107, .12); }
.num-box.gold b { color: var(--gold-2); }
.num-plus { color: var(--muted); }
.big-num { font-size: 1.8rem; }
.lucky-nums { margin: 14px 0; padding: 14px; border-radius: 16px; text-align: center; background: rgba(245, 201, 107, .1); border: 1px solid var(--line); }
.lucky-nums small { color: var(--muted); font-size: .78rem; }
.lucky-nums div { display: flex; justify-content: center; gap: 12px; margin-top: 8px; }
.lucky-nums span { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; font-weight: 600; color: #2a1503;
  background: radial-gradient(circle at 35% 30%, #fff6d8, var(--gold) 60%, var(--gold-3)); box-shadow: 0 0 16px rgba(245, 201, 107, .6); }
.zodiac-badge { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(227, 179, 255, .2); }
.zodiac-badge > span { font-size: 2.6rem; color: var(--gold); text-shadow: 0 0 14px var(--gold); width: 60px; text-align: center; }
.zodiac-badge small { display: block; font-size: .72rem; color: var(--muted); }
.zodiac-badge b { display: block; font-size: 1.3rem; font-weight: 500; color: var(--gold-2); }
.zodiac-badge em { font-style: normal; font-size: .8rem; color: var(--lilac); }

/* ============ อ่านง่าย: กันตัวอักษรไทยซ้อนกัน ============ */
.gift { background: radial-gradient(80% 60% at 50% 45%, #4a1d86, #0b0420 80%); } /* ทึบ ไม่ให้ข้อความหน้าแรกทะลุ */
.gift-eyebrow { letter-spacing: .06em; margin-bottom: 6px; }
.gift h2 { font-size: 1.75rem; line-height: 1.6; padding-top: .15em; margin-bottom: 4px; }
.gift-sub { line-height: 1.6; margin-bottom: 18px; }
.w-txt { font-size: 12px; letter-spacing: 0; }
.coupon .cp-txt b, .win-card h3, .reading-head h3 { line-height: 1.45; }

/* ============ เมนูล่าง 5 ช่อง + ปุ่มเซียมซีกลาง ============ */
.tabbar { grid-template-columns: repeat(5, 1fr); }
.tab-center span { background: radial-gradient(circle at 35% 30%, #fff6d8, var(--gold) 55%, var(--gold-3)); }
.siamsi-ico { width: 34px; height: 34px; display: block; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }

/* ============ หน้าโปรไฟล์ ============ */
#profilePanel, #seersPanel { z-index: 17; }
.pf-hero { text-align: center; padding: 6px 0 14px; }
.pf-avatar { position: relative; width: 84px; height: 84px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center;
  font-size: 2.2rem; font-weight: 600; color: #2a1503;
  background: radial-gradient(circle at 35% 30%, #fff6d8, var(--gold) 55%, var(--gold-3));
  box-shadow: 0 0 0 4px #1a0b3d, 0 0 0 6px rgba(245, 201, 107, .6), 0 0 30px rgba(245, 201, 107, .45); }
.pf-sign { position: absolute; right: -4px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: .95rem; color: var(--gold-2); background: #2a1260; border: 2px solid var(--gold); }
.pf-hero h3 { font-size: 1.25rem; font-weight: 500; color: var(--gold-2); line-height: 1.45; }
.pf-hero p { font-size: .82rem; color: var(--muted); }
.pf-since { font-size: .75rem !important; opacity: .8; }
.pf-edit { margin-top: 10px; padding: 7px 16px; font-size: .85rem; }
.pf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.pf-stats div { text-align: center; padding: 10px 4px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(227, 179, 255, .18); }
.pf-stats b { display: block; font-size: 1.35rem; color: var(--gold-2); }
.pf-stats small { font-size: .72rem; color: var(--muted); }
.pf-card { padding: 14px; margin-bottom: 12px; border-radius: 18px; background: linear-gradient(170deg, rgba(60, 26, 120, .55), rgba(16, 7, 40, .7)); border: 1px solid rgba(227, 179, 255, .18); }
.pf-card .sec-head { margin-bottom: 10px; }
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pf-cell { position: relative; padding: 9px 10px; border-radius: 12px; background: rgba(0, 0, 0, .25); }
.pf-cell small { display: block; font-size: .7rem; color: var(--muted); }
.pf-cell b { display: block; font-size: .86rem; font-weight: 500; color: var(--text); line-height: 1.45; }
.pf-cell b.muted { color: rgba(179, 166, 217, .55); font-weight: 300; }
.pf-dot { position: absolute; right: 10px; top: 10px; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #fff8; }
.pf-interest { margin-top: 10px; }
.pf-interest small { font-size: .72rem; color: var(--muted); }
.pf-interest div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pf-interest span { padding: 3px 12px; border-radius: 999px; font-size: .78rem; color: var(--gold-2); border: 1px solid var(--line); background: rgba(245, 201, 107, .08); }
.pf-interest em { font-style: normal; font-size: .8rem; color: rgba(179, 166, 217, .6); }
.pf-missing { width: 100%; text-align: left; margin-bottom: 10px; padding: 10px 12px; border-radius: 12px; font-size: .8rem; color: var(--gold-2); background: rgba(245, 201, 107, .1); border: 1px dashed var(--gold); }
.pf-empty { font-size: .82rem; color: var(--muted); line-height: 1.6; padding: 4px 2px; }
.coupon.spent { opacity: .5; border-style: solid; border-color: rgba(227, 179, 255, .25); }
.cp-done { width: 50px; text-align: center; color: var(--muted); }
.hist { list-style: none; display: grid; gap: 8px; }
.hist-row { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px; border-radius: 14px; background: rgba(0, 0, 0, .25); border: 1px solid transparent; transition: border-color .2s; }
.hist-row:hover { border-color: var(--lilac); }
.hist-ico { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 1.15rem; background: radial-gradient(circle at 35% 30%, #fff3, #4a2486); }
.hist-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hist-txt b { font-size: .88rem; font-weight: 500; color: var(--text); }
.hist-txt small { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-date { flex: none; font-size: .68rem; color: var(--lilac); }
.pf-logout { margin-top: 6px; padding: 12px; }
.pf-note { text-align: center; font-size: .7rem; color: var(--muted); opacity: .7; margin-top: 10px; }
.hist-q { font-style: italic; color: var(--gold-2); margin-bottom: 10px; }
.hist-card { display: flex; gap: 12px; padding: 12px; margin-bottom: 8px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(227, 179, 255, .18); }
.hc-sym { flex: none; width: 44px; height: 64px; border-radius: 6px; display: grid; place-items: center; font-size: 1.3rem; color: var(--gold-2);
  background: linear-gradient(160deg, #2c1670, #12063a); border: 1.5px solid var(--gold); }
.hist-card small { font-size: .7rem; color: var(--lilac); }
.hist-card b { display: block; font-size: .95rem; font-weight: 500; color: var(--gold-2); }
.hist-card b em { font-style: normal; font-size: .72rem; color: var(--muted); font-weight: 300; }
.hist-card .badge { display: inline-block; margin: 4px 0; font-size: .68rem; padding: 1px 8px; }
.hist-card p { font-size: .8rem; color: var(--text); line-height: 1.6; font-weight: 300; }
.hist-verse { font-family: "Charm", serif; font-size: 1.4rem; line-height: 1.6; color: var(--gold-2); text-align: center; margin: 6px 0; }
.hist-areas { grid-template-columns: 1fr; }
.hist-areas li { align-items: flex-start; font-size: .82rem; line-height: 1.55; }
.pf-chips { border: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pf-chips legend { font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.pf-chips label { cursor: pointer; }
.pf-chips input { position: absolute; opacity: 0; pointer-events: none; }
.pf-chips span { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: .85rem; color: var(--muted); border: 1px solid rgba(227, 179, 255, .25); }
.pf-chips input:checked + span { color: #2a1503; font-weight: 600; background: linear-gradient(135deg, var(--gold-2), var(--gold)); border-color: transparent; }
.pf-chips input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
#editForm select { font: inherit; color: var(--text); padding: 11px 12px; border-radius: 12px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(245, 201, 107, .2); color-scheme: dark; }

/* ============ บริการแนะนำ: การ์ดกะทัดรัด ============ */
#popular { gap: 8px; padding-bottom: 6px; }
.pop {
  width: 104px; padding: 10px 10px 9px; gap: 5px; border-radius: 16px; align-items: flex-start;
  background: linear-gradient(160deg, rgba(92, 40, 168, .7), rgba(24, 10, 56, .9));
  border: 1px solid rgba(227, 179, 255, .22); transition: transform .2s, border-color .2s, box-shadow .2s;
}
.pop:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 8px 22px rgba(177, 76, 255, .35); }
.pop .pi { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .28), rgba(123, 77, 255, .45));
  border: 1px solid rgba(245, 201, 107, .45); box-shadow: 0 0 12px rgba(177, 76, 255, .45); }
.pop .pn { font-size: .8rem; line-height: 1.35; min-height: 2.7em; color: var(--gold-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pop .pp { margin-top: 0; font-size: .68rem; padding: 1px 8px; border-radius: 999px; background: rgba(245, 201, 107, .12); border: 1px solid rgba(245, 201, 107, .3); }
.pop .pp b { font-size: .74rem; }

/* ============ ชำระเงิน (ทุกบริการ) ============ */
.pay-panel { z-index: 23; }
.pay-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: -4px 0 14px; counter-reset: s; }
.pay-steps li { counter-increment: s; position: relative; text-align: center; font-size: .72rem; color: var(--muted); padding-top: 26px; }
.pay-steps li::before { content: counter(s); position: absolute; left: 50%; top: 0; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%;
  display: grid; place-items: center; font-size: .72rem; border: 1px solid rgba(227, 179, 255, .35); background: #160a36; }
.pay-steps li.on { color: var(--gold-2); }
.pay-steps li.on::before { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #2a1503; border-color: transparent; font-weight: 600; }
.pay-tiers { margin: 12px 0; }
.pay-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 4px; margin-bottom: 12px; border-top: 1px dashed var(--line); }
.pay-total span { color: var(--muted); }
.pay-total b { font-size: 1.6rem; color: var(--gold-2); }
.pay-note { text-align: center; font-size: .75rem; color: var(--muted); margin-top: 10px; line-height: 1.6; }
.qr-card { position: relative; text-align: center; padding: 22px 18px 16px; border-radius: 22px; background: #fff; color: #1a0b3d; margin-bottom: 14px; box-shadow: 0 0 30px rgba(245, 201, 107, .35); }
.demo-tag { position: absolute; left: 50%; top: -11px; transform: translateX(-50%); white-space: nowrap; padding: 3px 12px; border-radius: 999px; font-size: .68rem; font-weight: 600; color: #fff; background: #c0392b; }
.qr-head { font-weight: 600; font-size: .95rem; }
.qr-box { width: 190px; height: 190px; margin: 10px auto 6px; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.qr-fallback { width: 100%; height: 100%; display: grid; place-items: center; border: 2px dashed #999; border-radius: 12px; font-weight: 700; color: #999; }
.qr-amount { font-size: 1.8rem; font-weight: 700; color: #4b1f8f; }
.qr-meta { font-size: .75rem; color: #555; line-height: 1.6; }
.qr-timer { margin-top: 6px; font-size: .78rem; color: #777; }
.qr-timer b { color: #c0392b; }
.qr-how { margin: 0 0 14px 18px; font-size: .8rem; color: var(--muted); line-height: 1.8; }
#payBody .btn-gold.full, #payBody .btn-ghost.full { margin-bottom: 8px; }
.pay-wait, .pay-ok { text-align: center; padding: 40px 10px 24px; }
.pay-wait p { margin-top: 16px; color: var(--muted); }
.spinner { display: inline-block; width: 44px; height: 44px; border-radius: 50%; border: 4px solid rgba(245, 201, 107, .2); border-top-color: var(--gold); animation: spin .8s linear infinite; }
.spinner.small { width: 22px; height: 22px; border-width: 3px; flex: none; }
.ok-ring { display: inline-grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; font-size: 2.2rem; color: #2a1503; margin-bottom: 12px;
  background: radial-gradient(circle at 35% 30%, #fff6d8, var(--gold) 55%, var(--gold-3)); box-shadow: 0 0 30px rgba(245, 201, 107, .7); animation: popIn .5s cubic-bezier(.2, .9, .3, 1.4); }
.pay-ok h3 { font-size: 1.2rem; font-weight: 500; color: var(--gold-2); }
.pay-ok p { color: var(--muted); font-size: .85rem; line-height: 1.7; margin-top: 4px; }
.intake-me { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 12px; margin-bottom: 14px; border-radius: 16px; background: rgba(245, 201, 107, .08); border: 1px solid var(--line); }
.intake-me small { display: block; font-size: .68rem; color: var(--muted); }
.intake-me b { font-size: .82rem; font-weight: 500; color: var(--text); }
.intake-me p { grid-column: 1 / -1; font-size: .7rem; color: var(--lilac); }
#intakeForm textarea, #intakeForm select { font: inherit; color: var(--text); padding: 11px 12px; border-radius: 12px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(245, 201, 107, .2); color-scheme: dark; resize: vertical; }
#intakeForm input[type="file"] { font-size: .8rem; color: var(--muted); }
.buy-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; margin-bottom: 16px; border-radius: 16px; background: rgba(245, 201, 107, .1); border: 1px solid var(--gold); }
.buy-row small { display: block; font-size: .7rem; color: var(--muted); }
.buy-row b { font-size: 1.25rem; color: var(--gold-2); }
.buy-row .btn-gold { padding: 10px 18px; font-size: .9rem; }
.order-status { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; margin-bottom: 12px; background: rgba(245, 201, 107, .1); border: 1px solid var(--line); }
.order-status b { display: block; color: var(--gold-2); font-weight: 500; }
.order-status small { font-size: .75rem; color: var(--muted); }
.order-info { list-style: none; display: grid; gap: 6px; }
.order-info li { padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.order-info small { display: block; font-size: .7rem; color: var(--muted); }
.order-info b { font-size: .86rem; font-weight: 400; color: var(--text); white-space: pre-line; }

/* ============ แท็บหมอดู ============ */
.demo-strip { margin: -4px 0 12px; padding: 6px 12px; border-radius: 10px; font-size: .72rem; color: #ffcf8a; background: rgba(255, 207, 138, .08); border: 1px dashed rgba(255, 207, 138, .4); text-align: center; }
.seer-search { display: flex; align-items: center; gap: 8px; padding: 10px 14px; margin-bottom: 16px; border-radius: 999px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(227, 179, 255, .25); }
.seer-search input { flex: 1; min-width: 0; font: inherit; font-size: .88rem; color: var(--text); background: none; border: 0; outline: none; }
.seer-av { --h: 280; position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, hsl(var(--h) 90% 85%), hsl(var(--h) 60% 45%) 55%, hsl(var(--h) 55% 22%));
  box-shadow: 0 0 0 2px rgba(245, 201, 107, .6), 0 0 14px hsla(var(--h), 80%, 60%, .5); }
.seer-av i { font-style: normal; font-size: 1.35rem; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4)); }
.seer-av.big { width: 64px; height: 64px; } .seer-av.big i { font-size: 1.9rem; }
.seer-av.xl { width: 96px; height: 96px; } .seer-av.xl i { font-size: 2.8rem; }
.dot-on { position: absolute; right: 1px; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: #3ee07a; border: 2px solid #12072d; }
.seer-feat { gap: 10px; margin-bottom: 4px; }
.feat-card { --h: 280; flex: none; width: 128px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px 12px; border-radius: 18px; text-align: center;
  background: linear-gradient(170deg, hsla(var(--h), 60%, 40%, .55), rgba(16, 7, 40, .9)); border: 1px solid rgba(245, 201, 107, .35); }
.feat-card b { font-size: .86rem; font-weight: 500; color: var(--gold-2); line-height: 1.35; margin-top: 4px; }
.feat-card small { font-size: .72rem; color: #ffd0f0; }
.feat-meta { font-size: .66rem; color: var(--muted); }
.strong-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chip-s { padding: 5px 12px; border-radius: 999px; font-size: .78rem; color: var(--muted); border: 1px solid rgba(227, 179, 255, .25); }
.chip-s.on { color: #2a1503; font-weight: 600; background: linear-gradient(135deg, var(--gold-2), var(--gold)); border-color: transparent; }
.seer-list { display: grid; gap: 8px; margin-bottom: 18px; }
.seer-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 16px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(227, 179, 255, .15); transition: border-color .2s, background .2s; }
.seer-row:hover { border-color: var(--lilac); background: rgba(227, 179, 255, .08); }
.seer-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.seer-txt b { font-size: .9rem; font-weight: 500; color: var(--text); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.seer-txt small { font-size: .72rem; color: #ffd0f0; line-height: 1.4; }
.seer-txt .seer-sci { color: var(--muted); }
.seer-tag { font-style: normal; font-size: .62rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; color: #2a1503; background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.seer-tag.big { display: inline-block; font-size: .72rem; margin-top: 6px; }
.seer-price { flex: none; text-align: right; font-size: .9rem; font-weight: 600; color: var(--gold-2); line-height: 1.2; }
.seer-price small { display: block; font-size: .62rem; font-weight: 400; color: var(--muted); }
.seer-hero { --h: 280; text-align: center; padding: 18px 10px 16px; margin-bottom: 12px; border-radius: 22px;
  background: radial-gradient(90% 80% at 50% 0%, hsla(var(--h), 70%, 50%, .35), transparent 70%); }
.seer-hero .seer-av { margin: 0 auto 10px; }
.seer-hero h3 { font-size: 1.3rem; font-weight: 500; color: var(--gold-2); line-height: 1.4; }
.seer-hero p { font-size: .78rem; color: var(--muted); }
.on-txt { color: #3ee07a; }
.seer-bio { margin-top: 10px; font-size: .85rem; line-height: 1.7; color: var(--text); font-weight: 300; }
.sci-chip { color: var(--lilac) !important; border-color: rgba(227, 179, 255, .3) !important; background: rgba(227, 179, 255, .08) !important; }
#seerPanel .btn-gold.full { margin-top: 4px; }
.seer-av.photo { overflow: hidden; background: #2a1260; }
.seer-av.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.seer-av.photo i { font-style: normal; font-size: 1.2rem; color: var(--gold-2); }
.feat-card { background: linear-gradient(170deg, rgba(110, 50, 190, .55), rgba(16, 7, 40, .9)); }
.seer-hero { background: radial-gradient(90% 80% at 50% 0%, rgba(177, 76, 255, .35), transparent 70%); }
.seer-cat { margin-bottom: 10px; }
.seer-cat small { display: block; font-size: .78rem; color: var(--gold-2); margin-bottom: 4px; }
.seer-cat > div { display: flex; flex-wrap: wrap; gap: 6px; }
.seer-cat span { padding: 3px 12px; border-radius: 999px; font-size: .78rem; border: 1px solid; }

/* ============ OTP ============ */
.otp-note { font-size: .76rem; color: var(--muted); text-align: center; }
.otp-sent { font-size: .85rem; color: var(--muted); text-align: center; }
.otp-sent b { color: var(--gold-2); }
.otp-sent .link, .otp-resend { background: none; border: 0; color: var(--gold); font-size: .82rem; text-decoration: underline; cursor: pointer; }
.otp-resend { display: block; margin: 0 auto; }
.otp-resend:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.otp-input { text-align: center; font-size: 1.6rem !important; letter-spacing: .5em; padding-left: .5em !important; }
.otp-error { font-size: .8rem; color: #ff8a9a; text-align: center; }
.sheet .two > label, #editForm .two > label { min-width: 0; }
.sheet .form input:not([type="checkbox"]), .sheet .form select, #editForm input:not([type="checkbox"]), #editForm select { width: 100%; min-width: 0; }

/* ============ ฟอนต์ Charm: เว้นบรรทัดให้สระบนไม่ชน ============ */
.app-title { line-height: 1.5; }
.app-title span { padding-top: .18em; }
.gift h2 { line-height: 1.7; padding-top: .2em; }
.hist-verse { line-height: 1.8; }
.app-title small { margin-top: .9em; }   /* สระ ู ของ “หมอดู” ห้อยลงยาว ต้องเว้นที่ให้ */
.app-title span { padding: .5em .3em .25em; margin-top: -.3em; }
.app-title span { margin-top: 0; }

/* ============ หมอดู AI ============ */
.ai-ico { width: 36px; height: 36px; display: block; }
.ai-hero { text-align: center; padding: 8px 6px 14px; }
.ai-orb { position: relative; display: inline-grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; margin-bottom: 10px;
  background: radial-gradient(circle at 35% 30%, #fff, #d9b8ff 35%, #7a2fd0 75%, #3b1470);
  box-shadow: 0 0 30px rgba(177, 76, 255, .8), 0 0 70px rgba(255, 122, 217, .35); animation: glow 3s ease-in-out infinite; }
.ai-orb i { font-style: normal; font-weight: 800; font-size: 1.7rem; color: #2a0b55; }
.ai-hero h3 { font-size: 1.2rem; font-weight: 500; color: var(--gold-2); line-height: 1.5; }
.ai-hero p { font-size: .84rem; color: var(--muted); line-height: 1.65; }
.ai-perks { list-style: none; display: grid; gap: 8px; margin-bottom: 14px; }
.ai-perks li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(227, 179, 255, .15); }
.ai-perks span { font-size: 1.3rem; }
.ai-perks b { display: block; font-size: .9rem; font-weight: 500; color: var(--text); }
.ai-perks small { font-size: .74rem; color: var(--muted); line-height: 1.5; }
.buy-row b em { font-style: normal; font-size: .8rem; font-weight: 400; color: var(--muted); }

.ai-panel { display: flex; flex-direction: column; }
.ai-panel .panel-body { display: flex; flex-direction: column; min-height: 100%; }
.ai-member { text-align: center; font-size: .72rem; color: var(--lilac); margin: -4px 0 10px; }
.ai-log { flex: 1; display: flex; flex-direction: column; gap: 8px; padding-bottom: 10px; }
.bubble { max-width: 86%; padding: 10px 13px; border-radius: 18px; font-size: .88rem; line-height: 1.65; word-wrap: break-word; }
.bubble.ai { align-self: flex-start; color: var(--text); background: linear-gradient(160deg, rgba(92, 40, 168, .75), rgba(36, 14, 80, .9)); border: 1px solid rgba(227, 179, 255, .2); border-bottom-left-radius: 6px; }
.bubble.ai b { color: var(--gold-2); font-weight: 500; }
.bubble.ai small { color: var(--muted); }
.bubble.me { align-self: flex-end; color: #2a1503; background: linear-gradient(135deg, var(--gold-2), var(--gold)); border-bottom-right-radius: 6px; }
.bubble.typing { display: flex; gap: 4px; padding: 14px; }
.bubble.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--lilac); animation: dot 1s ease-in-out infinite; }
.bubble.typing i:nth-child(2) { animation-delay: .15s; } .bubble.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { transform: translateY(-5px); opacity: .5; } }
.ai-chips { flex-shrink: 0; display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; margin: 0 -18px 8px; padding: 2px 18px; scrollbar-width: none; }
.ai-chips::-webkit-scrollbar { display: none; }
.ai-chips button { flex: none; padding: 6px 12px; border-radius: 999px; font-size: .76rem; color: var(--gold-2); border: 1px solid var(--line); background: rgba(245, 201, 107, .08); white-space: nowrap; }
.ai-input { position: sticky; bottom: -24px; display: flex; gap: 8px; align-items: flex-end; margin: 0 -18px -24px; padding: 10px 14px 14px;
  background: linear-gradient(180deg, rgba(13, 7, 36, 0), #0d0724 30%); }
.ai-input textarea { flex: 1; min-width: 0; resize: none; font: inherit; font-size: .9rem; color: var(--text); padding: 10px 14px; border-radius: 20px;
  background: rgba(0, 0, 0, .45); border: 1px solid rgba(245, 201, 107, .3); outline: none; max-height: 110px; color-scheme: dark; }
.ai-input textarea:focus { border-color: var(--gold); }
.ai-input .btn-gold { flex: none; width: 42px; height: 42px; padding: 0; border-radius: 50%; font-size: 1rem; }

/* ============ โหมดทดลอง ============ */
.test-mode { margin: -6px 0 14px; padding: 8px 12px; border-radius: 12px; font-size: .76rem; line-height: 1.55; text-align: center;
  color: #bff3d2; background: rgba(62, 224, 122, .1); border: 1px dashed rgba(62, 224, 122, .45); }
#paidBtn small { font-size: .75em; font-weight: 400; opacity: .8; }

/* รหัสทดลองใช้ AI */
.ai-code { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; margin-bottom: 4px; border-radius: 999px;
  background: rgba(0, 0, 0, .35); border: 1px solid rgba(245, 201, 107, .3); }
.ai-code input { flex: 1; min-width: 0; font: inherit; font-size: .82rem; color: var(--text); background: none; border: 0; outline: none; }
.ai-code .btn-gold { flex: none; padding: 6px 14px; font-size: .78rem; }
.ai-code.set b { flex: 1; font-size: .8rem; font-weight: 500; color: #bff3d2; }
.ai-code .link { background: none; border: 0; color: var(--gold); font-size: .76rem; text-decoration: underline; padding-right: 8px; }
.ai-code-note { text-align: center; font-size: .7rem; color: var(--muted); margin-bottom: 8px; min-height: 0; }
.ai-code-note:empty { display: none; }

/* ============ หมอดู AI: พูดถาม + ฟังเสียงอ่าน ============ */
.ai-mic { flex: none; width: 42px; height: 42px; border-radius: 50%; font-size: 1.15rem; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(245, 201, 107, .4); transition: background .2s; }
.ai-mic.on { background: #c0392b; border-color: #ff8a7a; animation: micPulse 1.1s ease-in-out infinite; }
@keyframes micPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 90, 90, .6); } 50% { box-shadow: 0 0 0 10px rgba(255, 90, 90, 0); } }
.bubble.ai .speak { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; padding: 3px 12px; border-radius: 999px;
  font-size: .74rem; color: var(--gold-2); background: rgba(245, 201, 107, .12); border: 1px solid rgba(245, 201, 107, .35); }
.bubble.ai .speak.on { color: #2a1503; background: linear-gradient(135deg, var(--gold-2), var(--gold)); }

/* ทางเข้าศาสตร์ดูดวงทั่วโลก */
.world-entry { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 18px; text-decoration: none;
  background: linear-gradient(115deg, rgba(94, 231, 255, .14), rgba(123, 77, 255, .35) 55%, rgba(245, 201, 107, .18));
  border: 1px solid rgba(245, 201, 107, .45); box-shadow: 0 8px 26px rgba(123, 77, 255, .25); transition: transform .2s; }
.world-entry:hover { transform: translateY(-2px); }
.we-globe { font-size: 2rem; animation: spin 24s linear infinite; }
.we-txt { flex: 1; display: flex; flex-direction: column; }
.we-txt b { font-size: .98rem; font-weight: 500; color: var(--gold-2); }
.we-txt small { font-size: .72rem; color: var(--muted); line-height: 1.45; }
.we-go { font-size: 1.5rem; color: var(--gold); }

/* =====================================================================
   เว็บเต็มจอ: แท็บเล็ต / คอมพิวเตอร์ (ไม่มีกรอบโทรศัพท์แล้ว)
   ===================================================================== */
.stage, .btn-side, .statusbar, .home-indicator { display: none !important; }
@media (min-width: 700px) {
  :root { --gut: max(28px, calc((100vw - 1120px) / 2)); --pgut: max(28px, calc((100vw - 820px) / 2)); }
  .app { padding: 0 var(--gut) 120px; }
  body:not(.app-ui) .app { padding-bottom: 40px; }
  .app-bar { position: sticky; top: 0; z-index: 16; height: 68px; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut);
    background: rgba(13, 7, 36, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(227, 179, 255, .14); }
  .app-logo { font-size: 1.7rem; }
  .account-pop { top: 60px; }

  /* ฉากหมอดูอยู่กลางจอ */
  .seer-scene { max-width: 480px; margin: 12px auto 0; }
  body.app-ui .seer-scene { zoom: .6; max-width: 800px; margin: 0 auto; padding: 0; }
  .app-cta { width: min(420px, 100%); margin-inline: auto; }
  .hello { text-align: center; font-size: 1.2rem; }

  .hscroll { margin: 0 calc(-1 * var(--gut)); padding-inline: var(--gut); }
  .pop { width: 170px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .cat { padding: 18px 16px 16px; }
  .world-entry { max-width: none; }
  .app-section { margin-top: 28px; }
  .sec-head h3 { font-size: 1.2rem; }

  /* แผงต่าง ๆ: คอลัมน์อ่านง่ายกลางจอ */
  .panel { padding-inline: var(--pgut); }
  .panel-bar { margin-inline: calc(-1 * var(--pgut)); padding-inline: var(--pgut); }
  .frame-panel { padding: 0; }
  .frame-panel .panel-bar { margin: 0; padding-inline: var(--pgut); }
  .ai-chips { margin-inline: calc(-1 * var(--pgut)); padding-inline: var(--pgut); }
  .ai-input { margin-inline: calc(-1 * var(--pgut)); padding-inline: var(--pgut); }
  .gift-inner { max-width: 440px; margin: 0 auto; }

  /* เข้าสู่ระบบ / สมัคร: กล่องกลางจอแทน bottom sheet */
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: min(460px, 92vw); max-height: 90vh; border-radius: 26px; border: 1px solid var(--line);
    padding-bottom: 28px; transform: translate(-50%, -46%) scale(.97); opacity: 0; pointer-events: none;
    transition: transform .35s cubic-bezier(.2, .9, .3, 1), opacity .25s; }
  .screen.sheet-open .sheet { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
  .grabber { display: none; }
}

/* คอมพิวเตอร์: เมนูหลักอยู่แถบล่างเหมือนมือถือ แต่จัดปุ่มไว้กลางจอ */
@media (min-width: 960px) {
  .tabbar { padding-inline: max(28px, calc((100vw - 760px) / 2)); }
  .tabbar a, .tabbar button { font-size: .8rem; transition: color .2s; }
  .tabbar a:hover, .tabbar button:hover { color: var(--text); }
  .tabbar span { font-size: 1.4rem; }
}

/* ============ เลือกดูดวง: ตามประเภท / ตามประเทศ ============ */
.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.pick { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 14px; border-radius: 20px; text-decoration: none; color: var(--text);
  background: linear-gradient(150deg, rgba(245, 201, 107, .16), rgba(70, 30, 130, .8) 55%, rgba(20, 8, 50, .9)); border: 1px solid rgba(245, 201, 107, .45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: transform .2s, box-shadow .2s, border-color .2s; }
.pick:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 14px 34px rgba(177, 76, 255, .4); }
.pick-ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .25), rgba(123, 77, 255, .45)); border: 1px solid rgba(245, 201, 107, .5); }
.pick-ico.spin { animation: spin 24s linear infinite; }
.pick-txt { display: flex; flex-direction: column; gap: 3px; }
.pick-txt b { font-size: 1.02rem; font-weight: 500; color: var(--gold-2); }
.pick-txt small { font-size: .72rem; line-height: 1.5; color: var(--muted); font-weight: 300; }
.pick-go { display: none; }
@media (min-width: 700px) {
  .pick-grid { gap: 16px; margin-top: 26px; }
  .pick { flex-direction: row; align-items: center; gap: 16px; padding: 22px 22px; }
  .pick-ico { width: 60px; height: 60px; font-size: 2.1rem; flex: none; }
  .pick-txt { flex: 1; }
  .pick-txt b { font-size: 1.2rem; }
  .pick-txt small { font-size: .82rem; }
  .pick-go { display: block; font-size: 1.6rem; color: var(--gold); }
}

/* ============ รายงานดวงประจำวัน ============ */
.daily { padding: 16px; margin-bottom: 14px; border-radius: 22px; border: 1px solid rgba(245, 201, 107, .45);
  background: radial-gradient(120% 70% at 50% 0%, rgba(245, 201, 107, .18), transparent 60%), linear-gradient(170deg, rgba(70, 30, 130, .8), rgba(16, 7, 40, .9));
  box-shadow: 0 12px 34px rgba(0, 0, 0, .35); }
.daily-head { text-align: center; margin-bottom: 10px; }
.daily-date { font-size: .74rem; color: var(--lilac); }
.daily-head h3 { font-size: 1.25rem; font-weight: 500; color: var(--gold-2); line-height: 1.5; }
.daily-stars { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 12px; }
.daily-stars li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border-radius: 12px; background: rgba(0, 0, 0, .25); }
.daily-stars span { font-size: .7rem; color: var(--muted); }
.daily-stars b { font-size: .66rem; color: var(--gold); letter-spacing: -.05em; white-space: nowrap; }
.daily-stars i { font-style: normal; color: rgba(255, 255, 255, .18); }
.daily-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dg { padding: 10px 11px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(227, 179, 255, .16); min-width: 0; }
.dg small { display: block; font-size: .66rem; color: var(--lilac); line-height: 1.5; }
.dg > b { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .95rem; font-weight: 500; color: var(--gold-2); margin: 2px 0 3px; line-height: 1.5; }
.dg p { font-size: .72rem; line-height: 1.55; color: var(--muted); font-weight: 300; }
.dg p b { color: var(--text); font-weight: 500; }
.dg .sw { width: 20px; height: 20px; }
.dg-nums span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: .85rem; color: #2a1503;
  background: radial-gradient(circle at 35% 30%, #fff6d8, var(--gold) 60%, var(--gold-3)); }
.daily-note { margin-top: 10px; text-align: center; font-size: .66rem; color: var(--muted); opacity: .8; }
.ai-sub { font-size: .82rem; color: var(--gold-2); margin: 4px 2px 8px; }
.ai-quota { font-size: .78rem; color: var(--muted, #b8a9d6); text-align: right; margin: 6px 4px 4px; }
.ai-quota.low { color: var(--gold-2); font-weight: 600; }
@media (min-width: 700px) {
  .daily { padding: 22px; }
  .daily-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .daily-stars b { font-size: .8rem; }
  .dg p { font-size: .78rem; }
}

/* ============ หลังเข้าสู่ระบบ: ฉากแม่หมอใหญ่ขึ้น (hero) ============ */
body.app-ui .seer-scene { zoom: .66; margin: 0 calc(-16px / .66); padding: 0 calc(16px / .66); }
body.app-ui .hello { font-size: 1.15rem; text-align: center; }
body.app-ui .hello small { font-size: .85rem; }
@media (min-width: 700px) {
  /* แถบเรืองแสงเต็มความกว้างจอด้านหลังฉาก */
  body.app-ui .seer-scene { zoom: 1; max-width: 560px; margin: 0 auto; padding: 6px 18px 0; }
  body.app-ui .seer-scene::before { content: ""; position: absolute; z-index: -2; top: -68px; bottom: -40px; left: calc(50% - 50vw); right: calc(50% - 50vw);
    background:
      radial-gradient(40% 55% at 50% 45%, rgba(177, 76, 255, .45), transparent 70%),
      radial-gradient(25% 35% at 20% 80%, rgba(255, 122, 217, .18), transparent 70%),
      radial-gradient(25% 35% at 80% 80%, rgba(122, 216, 255, .16), transparent 70%);
    pointer-events: none; }
  body.app-ui .app-title, body.app-ui .bolts { display: block; }
  body.app-ui .seer { margin-top: -10px; }
  body.app-ui .table { height: 186px; }
  body.app-ui .hello { margin-top: 14px; font-size: 1.5rem; }
  body.app-ui .hello small { font-size: .95rem; margin-top: 2px; }
}

/* แถบบน: แสดงเฉพาะโลโก้ (บัญชีอยู่ที่เมนูล่าง) */
.app-bar { justify-content: center; }
.app-bar .avatar, .account-pop { display: none !important; }
/* แถบโลโก้เลื่อนหายไปพร้อมเนื้อหา (ไม่ติดค้างด้านบน) */
.app-bar { position: relative; }

/* ============ จอใหญ่: ฉากเต็มความกว้าง ============ */
.hall-wide { display: none; }
@media (min-width: 700px) {
  .hall-wide { display: block; position: absolute; z-index: -2; top: 0; bottom: 0; left: calc(50% - 50vw); width: 100vw; height: 100%; pointer-events: none;
    -webkit-mask: linear-gradient(180deg, transparent 0, #000 12%, #000 100%); mask: linear-gradient(180deg, transparent 0, #000 12%, #000 100%); }
  .hw-stars circle { animation: twinkle 3s ease-in-out infinite; }
  .hw-stars circle:nth-child(3n) { animation-delay: -1s; } .hw-stars circle:nth-child(3n+1) { animation-delay: -2s; }
  .hw-lamps circle:nth-child(even) { animation: lampGlow 2.6s ease-in-out infinite; }
  /* ขอบซ้าย/ขวาของโถงกลางและโต๊ะ ค่อย ๆ จางลงกลืนกับฉากกว้าง */
  .seer-scene .hall, .seer-scene .table-svg {
    -webkit-mask: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%); mask: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%); }
  .seer-scene .hall { -webkit-mask: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%), linear-gradient(180deg, #000 60%, transparent);
    -webkit-mask-composite: source-in; mask: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%), linear-gradient(180deg, #000 60%, transparent);
    mask-composite: intersect; }
}
@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes lampGlow { 0%, 100% { opacity: .12; } 50% { opacity: .3; } }

/* ============ หมอดูประจำตัว: สรุปรวม / ย้อนหลัง / รูปร่างกาย ============ */
.daily-sum { padding: 12px 14px; margin-bottom: 12px; border-radius: 16px; background: rgba(245, 201, 107, .1); border: 1px solid rgba(245, 201, 107, .35); }
.daily-sum b { display: block; font-size: .86rem; font-weight: 500; color: var(--gold-2); margin-bottom: 4px; }
.daily-sum p { font-size: .82rem; line-height: 1.75; color: var(--text); font-weight: 300; }
.daily-past { margin: -4px 0 14px; }
.daily-past small { display: block; font-size: .74rem; color: var(--lilac); margin-bottom: 6px; }
.daily-past > div { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.daily-past button { flex: none; display: flex; flex-direction: column; align-items: center; padding: 6px 12px; border-radius: 12px; font-size: .78rem; color: var(--text);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(227, 179, 255, .2); }
.daily-past button em { font-style: normal; font-size: .64rem; color: var(--muted); }
.daily-past button:hover { border-color: var(--gold); }

.pf-meter { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pf-meter div { flex: 1; height: 8px; border-radius: 999px; background: rgba(0, 0, 0, .35); overflow: hidden; }
.pf-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold-3), var(--gold), var(--gold-2)); }
.pf-meter b { font-size: .9rem; color: var(--gold-2); font-weight: 600; }
.pf-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 12px; border-radius: 14px; font-size: .8rem; line-height: 1.6; color: var(--text);
  background: rgba(245, 201, 107, .08); border: 1px dashed var(--gold); cursor: pointer; }
.pf-consent input { margin-top: 4px; accent-color: var(--gold); }
.form label.pf-consent { flex-direction: row; color: var(--text); background: rgba(245, 201, 107, .08); border: 1px solid rgba(245, 201, 107, .25); }
.pf-consent a { color: var(--gold-2); }
.pf-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.pf-ph { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; min-width: 0; }
.ph-box { width: 100%; aspect-ratio: 3 / 4; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; overflow: hidden;
  background: rgba(0, 0, 0, .3); border: 1.5px dashed rgba(227, 179, 255, .35); transition: border-color .2s; }
.ph-box:hover { border-color: var(--gold); }
.ph-box span { font-size: 1.8rem; }
.ph-box em { font-style: normal; font-size: .7rem; color: var(--lilac); }
.pf-ph.has .ph-box { border-style: solid; border-color: var(--gold); }
.ph-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-ph b { font-size: .8rem; font-weight: 500; color: var(--gold-2); margin-top: 4px; }
.pf-ph small { font-size: .64rem; color: var(--muted); line-height: 1.4; }
.ph-del { position: absolute; top: 6px; right: 6px; padding: 2px 8px; border-radius: 999px; font-size: .66rem; color: #fff; background: rgba(0, 0, 0, .6); }
.pf-body .pf-note { text-align: left; margin-top: 8px; }
@media (min-width: 700px) { .pf-photos { grid-template-columns: repeat(6, 1fr); } }

/* ============ หน้าแรกพอดี 1 หน้าจอ: ขนาดฉากคำนวณจาก JS (--sz) ============ */
.app.fit { overflow: hidden; }
.app-foot { display: none; }
.seer-scene, body.app-ui .seer-scene { zoom: var(--sz, 1); margin-inline: calc(-16px / var(--sz, 1)); padding-inline: calc(16px / var(--sz, 1)); }
@media (min-width: 700px) {
  .seer-scene, body.app-ui .seer-scene { margin-inline: auto; padding-inline: 18px; }
}
body.app-ui .hello { margin-top: 8px; }
body.app-ui .pick-grid { margin-top: 12px; }
@media (max-width: 699px) {
  /* มือถือ: ปุ่มเลือกดูดวงแบบกะทัดรัด ให้ฉากได้พื้นที่มากขึ้น */
  .pick { flex-direction: row; align-items: center; gap: 10px; padding: 12px; }
  .pick-ico { width: 40px; height: 40px; font-size: 1.4rem; flex: none; }
  .pick-txt b { font-size: .92rem; }
  .pick-txt small { font-size: .66rem; }
}
@media (min-width: 700px) {
  body.app-ui .pick { padding: 12px 20px; }
  body.app-ui .pick-ico { width: 48px; height: 48px; font-size: 1.7rem; }
  body.app-ui .hello { margin-top: 4px; font-size: 1.3rem; }
  body.app-ui .hello small { font-size: .88rem; }
  body.app-ui .pick-grid { margin-top: 10px; }
  .app-bar { height: 56px; }
}
@media (max-width: 699px) {
  .pick-grid { grid-template-columns: 1fr; gap: 8px; }
  .pick { padding: 10px 14px; }
  .pick-txt b { font-size: .98rem; }
  .pick-txt small { font-size: .7rem; }
  .pick-go { display: block; font-size: 1.4rem; color: var(--gold); margin-left: auto; }
  .pick-txt { flex: 1; }
}

/* ฉากถูกย่อด้วย zoom (--sz) → ขยายโถงกว้างและแสงพื้นหลังกลับให้เต็มความกว้างจอจริง */
@media (min-width: 700px) {
  .hall-wide { width: calc(100vw / var(--sz, 1)); left: calc(50% - 50vw / var(--sz, 1)); }
  body.app-ui .seer-scene::before { left: calc(50% - 50vw / var(--sz, 1)); right: calc(50% - 50vw / var(--sz, 1)); }
}
@media (min-width: 700px) {
  .hw-flame:not([opacity]) { animation: lampGlow2 2.4s ease-in-out infinite; }   /* เปลวเทียนกะพริบ (ไม่แตะแสงเรืองที่ตั้ง opacity ไว้) */
  .hw-cards { animation: hwCards 6s ease-in-out infinite; }                         /* ไพ่ลอยขึ้นลงทั้งชุด */
}
@keyframes lampGlow2 { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
@keyframes hwCards { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }


/* ไพ่วงแหวนรอบแม่หมอ: หน้าไพ่ลายทาโรต์ (SVG) แทนการ์ดสีเรียบ */
.rcard::before, .rcard i { display: none; }
.rface { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  filter: drop-shadow(0 0 6px rgba(245, 201, 107, .55)) drop-shadow(0 0 14px rgba(177, 76, 255, .6));
  animation: rbob 3.4s ease-in-out infinite; animation-delay: var(--d); }

/* ============ โลโก้หลัก “หมอดู” (แทนแถบโลโก้ด้านบน) ============ */
.app-bar { display: none !important; }
.app-title, body.app-ui .app-title { display: block; position: relative; z-index: 4; margin: 6px 0 0; line-height: 1.5; }
body.app-ui .bolts { display: block; }
/* วงเวทหมุนช้า ๆ และแสงเรืองด้านหลังโลโก้ */
.app-title::before { content: ""; position: absolute; left: 50%; top: 46%; width: 250px; height: 250px; margin: -125px; z-index: -1; border-radius: 50%;
  border: 1.5px dashed rgba(245, 201, 107, .45); box-shadow: inset 0 0 0 10px rgba(245, 201, 107, .05), 0 0 0 14px rgba(227, 179, 255, .06);
  background: repeating-conic-gradient(from 0deg, rgba(245, 201, 107, .16) 0 2deg, transparent 2deg 15deg);
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%, #000 70%, transparent 72%); mask: radial-gradient(circle, transparent 58%, #000 60%, #000 70%, transparent 72%);
  animation: spin 40s linear infinite; }
.app-title::after { content: ""; position: absolute; left: 50%; top: 48%; width: 300px; height: 190px; margin: -95px -150px; z-index: -2; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(177, 76, 255, .55), rgba(245, 201, 107, .12) 60%, transparent); filter: blur(6px); animation: pulse 4s ease-in-out infinite; }
.logo-crown { display: block; width: 92px; height: 42px; margin: 0 auto -18px; filter: drop-shadow(0 0 8px rgba(245, 201, 107, .8)); }
.app-title span {
  font-size: 4.6rem;
  background: linear-gradient(180deg, #fffaf0 0%, #ffe7a8 30%, #f5c96b 52%, #e3b3ff 78%, #b47cff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(90, 40, 0, .55)) drop-shadow(0 0 10px rgba(245, 201, 107, .65)) drop-shadow(0 0 28px rgba(177, 76, 255, .85));
  animation: logoGlow 5s ease-in-out infinite;
}
@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 2px 0 rgba(90, 40, 0, .55)) drop-shadow(0 0 10px rgba(245, 201, 107, .65)) drop-shadow(0 0 28px rgba(177, 76, 255, .85)); }
  50% { filter: drop-shadow(0 2px 0 rgba(90, 40, 0, .55)) drop-shadow(0 0 16px rgba(255, 231, 168, .95)) drop-shadow(0 0 44px rgba(199, 125, 255, 1)); }
}
.app-title small { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: .6em;
  font-family: "Cinzel Decorative", serif; font-size: .85rem; letter-spacing: .4em; color: #ffe7a8; text-shadow: 0 0 10px rgba(245, 201, 107, .9), 0 0 22px rgba(177, 76, 255, .8); }
.app-title .fl { position: relative; width: 46px; height: 1.5px; background: linear-gradient(90deg, transparent, #f5c96b); }
.app-title .fl.r { transform: scaleX(-1); }
.app-title .fl::after { content: ""; position: absolute; right: -4px; top: -3.5px; width: 8px; height: 8px; transform: rotate(45deg); background: #ffe7a8; box-shadow: 0 0 8px #f5c96b; }
.app-title, body.app-ui .app-title { margin-top: 30px; }
.app-title span { font-size: 5.2rem; }
.logo-crown { width: 104px; height: 48px; margin-bottom: -22px; }
.bolts { top: 20px; }
.bolts path:nth-child(3), .bolts path:nth-child(4), .bolts path:nth-child(5) { display: none; } /* สายฟ้ากลางบังมงกุฎโลโก้ */
.bolts { display: none !important; } /* โลโก้หลักเด่นพอแล้ว ไม่ให้สายฟ้าตัดผ่านตัวอักษร */

/* ============ ฉากแม่หมอโทนมืดขลัง: ฮู้ดผ้าจีบ มือโอบลูกแก้วเรืองแสง ============ */
.seer-svg { filter: drop-shadow(0 0 26px rgba(120, 60, 220, .45)); }
.orb-energy { transform-box: view-box; transform-origin: 150px 214px; animation: spin 7s linear infinite; }
.orb-halo { animation: orbPulse 3s ease-in-out infinite; transform-box: view-box; transform-origin: 150px 214px; }
@keyframes orbPulse { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
.orb-spark { animation: twinkle 1.8s ease-in-out infinite; }
.chain circle { filter: drop-shadow(0 0 1.5px #ffe7a8); }
/* ไม่ใช้ของประกอบชุดเดิม */
.tprop.candle, .tprop.gems, .tprop.torb, .sdie { display: none !important; }
.table-svg { filter: drop-shadow(0 -6px 26px rgba(160, 40, 110, .35)); }
.cloth-sigil { opacity: .5; filter: drop-shadow(0 0 3px #ff7ab0); }
/* กระถางกำยาน ผลึกอเมทิสต์ หินรูน */
.incense { left: 26px; top: -62px; width: 36px; height: 82px; }
.incense svg, .amethyst svg { width: 100%; height: 100%; overflow: visible; }
.smoke path { animation: smoke 4s ease-in-out infinite; }
.smoke path + path { animation-delay: -2s; }
@keyframes smoke { 0% { opacity: 0; transform: translateY(6px); } 40% { opacity: .4; } 100% { opacity: 0; transform: translateY(-10px); } }
.amethyst { right: 18px; top: -26px; width: 74px; height: 52px; filter: drop-shadow(0 0 10px rgba(180, 140, 255, .9)) drop-shadow(0 0 22px rgba(120, 60, 255, .6)); animation: amGlow 3s ease-in-out infinite; }
@keyframes amGlow { 50% { filter: drop-shadow(0 0 16px rgba(200, 160, 255, 1)) drop-shadow(0 0 32px rgba(120, 60, 255, .8)); } }
.runes { right: 96px; top: 2px; display: flex; gap: 3px; }
.runes i { display: grid; place-items: center; width: 14px; height: 12px; border-radius: 4px; font-style: normal; font-size: .55rem; color: #cfc6dd;
  background: linear-gradient(160deg, #5a5368, #2a2433); box-shadow: 0 2px 3px rgba(0, 0, 0, .5); }
.runes i:nth-child(2) { transform: translateY(4px) rotate(-12deg); } .runes i:nth-child(3) { transform: translateY(-2px) rotate(8deg); }
/* ตัดเฉพาะชายผ้าด้านล่าง ไม่ตัดของที่วางบนโต๊ะ */
body.app-ui .table { overflow: visible; clip-path: inset(-140px -60px 0 -60px); }
.orb-set { filter: drop-shadow(0 0 10px rgba(167, 123, 255, .8)); }
.orb-halo { opacity: .95; }
/* แม่หมอการ์ตูน: กะพริบตา */
.seer-svg .eyes { transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
/* แม่หมอเงา: เหรียญแกว่งเบา ๆ ดาวบนผ้าคลุมกะพริบ แสงลูกแก้วสะท้อนหน้า */
.seer-svg .coins { transform-box: view-box; transform-origin: 150px 80px; animation: coinSway 4s ease-in-out infinite; }
@keyframes coinSway { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg); } }
.cloak-stars path { animation: twinkle 2.6s ease-in-out infinite; }
.cloak-stars path:nth-child(even) { animation-delay: -1.3s; }
.face-glow { animation: orbPulse 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.hood-star { filter: drop-shadow(0 0 4px #ffe7a8); }

/* ============ แม่หมอ: ภาพที่ผู้ใช้ออกแบบเอง (assets/seer.webp พื้นหลังโปร่งใส) ============ */
.seer-img { position: absolute; left: 50%; top: -58px; width: 350px; height: auto; max-width: none; transform: translateX(-50%); z-index: 1;
  filter: drop-shadow(0 0 24px rgba(160, 90, 255, .55)); animation: seerFloat 6s ease-in-out infinite; pointer-events: none; }
@keyframes seerFloat { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-4px); } }
.halo-ring { top: 70px; z-index: 2; }
.seer-img { top: -44px; width: 335px; }

/* ============ รอยต่อฉาก ↔ คำทักทาย: ค่อย ๆ จาง ไม่ตัดเป็นขอบแข็ง ============ */
/* ชายผ้าปูโต๊ะจางลงด้านล่าง (แทนการตัดตรง) */
body.app-ui .table, .table { -webkit-mask: none; mask: none; }
.table .table-svg { -webkit-mask: linear-gradient(180deg, #000 0, #000 55%, transparent 92%); mask: linear-gradient(180deg, #000 0, #000 55%, transparent 92%); }
body.app-ui .table .table-svg { height: 200px; }
body.app-ui .table { clip-path: none; height: 200px; }
/* โถง ประตูโค้ง และเสา จางทั้งด้านบนและด้านล่าง */
@media (min-width: 700px) {
  .hall-wide { -webkit-mask: linear-gradient(180deg, transparent 0, #000 12%, #000 68%, transparent 100%); mask: linear-gradient(180deg, transparent 0, #000 12%, #000 68%, transparent 100%); }
}
.seer-scene .hall { -webkit-mask: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%), linear-gradient(180deg, #000 40%, transparent 85%);
  -webkit-mask-composite: source-in; mask: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%), linear-gradient(180deg, #000 40%, transparent 85%); mask-composite: intersect; }
/* ชื่อใต้ไพ่ยังคมชัด: ยกไว้เหนือส่วนที่จาง */
.card-cap { position: relative; z-index: 3; }
/* ของประกอบวางบนผิวโต๊ะ (ไม่ลอยนอกโต๊ะ) */
.incense { left: 12%; top: -14px; width: 32px; height: 74px; }
.amethyst { right: 11%; top: 10px; width: 64px; height: 46px; }
.runes { right: 26%; top: 34px; }
.runes { right: 24%; top: 4px; }

/* ============ คำทักทาย: เด่นขึ้น ============ */
body.app-ui .hello { text-align: center; margin-top: 6px; line-height: 1.5; }
.hello-line { display: inline-flex; align-items: center; gap: .35em; font-size: 1.45rem; }
.hello-hi { color: #f3dcff; font-weight: 300; }
.hello-name { font-weight: 600; font-size: 1.12em; padding: .1em .05em;
  background: linear-gradient(180deg, #fffaf0 0%, #ffe7a8 35%, #f5c96b 65%, #d9a24a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 8px rgba(245, 201, 107, .55)) drop-shadow(0 0 22px rgba(177, 76, 255, .55)); }
.hello-spark { font-style: normal; color: #ffe7a8; text-shadow: 0 0 10px #f5c96b, 0 0 20px #b14cff; animation: twinkle 2.4s ease-in-out infinite; }
body.app-ui .hello small { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 2px; font-size: .9rem; color: #d9c4ff; font-weight: 300; }
.hello small .fl { flex: none; position: relative; width: 34px; height: 1.5px; background: linear-gradient(90deg, transparent, #f5c96b); }
.hello small .fl.r { transform: scaleX(-1); }
.hello small .fl::after { content: ""; position: absolute; right: -3px; top: -2.5px; width: 6px; height: 6px; transform: rotate(45deg); background: #ffe7a8; box-shadow: 0 0 6px #f5c96b; }
@media (min-width: 700px) {
  .hello-line { font-size: 1.85rem; }
  body.app-ui .hello small { font-size: 1rem; }
  .hello small .fl { width: 60px; }
}
@media (max-width: 380px) { .hello small .fl { display: none; } .hello-line { font-size: 1.3rem; } }

/* ============ แท็บมงคล: ทำบุญ · แก้ดวง · ร้านเครื่องราง ============ */
.mk-hero { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; margin-bottom: 14px;
  background: linear-gradient(120deg, rgba(245, 201, 107, .14), rgba(177, 76, 255, .18)); border: 1px solid var(--line); }
.mk-ico { flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.8rem;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .25), rgba(123, 77, 255, .45)); border: 1px solid rgba(245, 201, 107, .5); }
.mk-hero h3 { font-size: 1.12rem; font-weight: 500; color: var(--gold-2); line-height: 1.4; }
.mk-hero p { font-size: .8rem; color: var(--muted); line-height: 1.55; font-weight: 300; }
.mk-sec { margin-bottom: 18px; }
.mk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mk-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 12px; border-radius: 18px;
  background: linear-gradient(165deg, rgba(80, 36, 150, .75), rgba(22, 9, 52, .9)); border: 1px solid rgba(245, 201, 107, .3); }
.mk-ci { font-size: 1.7rem; }
.mk-card b { color: var(--gold-2); font-weight: 500; }
.mk-card p { flex: 1; font-size: .72rem; line-height: 1.5; color: var(--muted); font-weight: 300; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mk-card .btn-gold { padding: 8px 10px; font-size: .82rem; }
.mk-proof { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.mk-proof li { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 10px 6px; border-radius: 14px;
  font-size: .7rem; line-height: 1.4; color: var(--text); background: rgba(0, 0, 0, .25); border: 1px dashed rgba(245, 201, 107, .35); }
.mk-proof span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 600; color: #2a1503;
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.mk-tip { font-size: .8rem; color: var(--muted); margin: -2px 0 10px; }
.mk-tip b { color: var(--gold-2); font-weight: 500; }
.mk-shop { display: grid; gap: 8px; }
.mk-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(227, 179, 255, .18); }
.mk-pi { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: radial-gradient(circle at 35% 30%, #fff3, #4a2486); }
.mk-it { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mk-it b { font-size: .9rem; font-weight: 500; color: var(--text); }
.mk-it small { font-size: .72rem; color: var(--muted); line-height: 1.45; }
.mk-buy { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.mk-buy b { color: var(--gold); font-size: .9rem; }
.mk-buy .btn-ghost { padding: 5px 12px; font-size: .78rem; }
.mk-all { margin: 4px 0 8px; }
@media (min-width: 700px) { .mk-grid { grid-template-columns: repeat(4, 1fr); } .mk-shop { grid-template-columns: 1fr 1fr; } }

/* ขั้นตอนติดตามงาน (ทำบุญ / สินค้า) */
.track { list-style: none; display: grid; gap: 0; margin: 4px 0 14px; padding-left: 4px; }
.track li { position: relative; padding: 6px 0 10px 26px; font-size: .84rem; color: var(--muted); }
.track li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(227, 179, 255, .4); background: #160a36; }
.track li:not(:last-child)::after { content: ""; position: absolute; left: 7px; top: 23px; bottom: -6px; width: 2px; background: rgba(227, 179, 255, .25); }
.track li.done { color: var(--text); } .track li.done::before { background: var(--gold); border-color: var(--gold); }
.track li.now { color: var(--gold-2); } .track li.now::before { border-color: var(--gold); box-shadow: 0 0 10px var(--gold); }

/* ============ ดวงคนใกล้ตัว ============ */
.cc-list { display: grid; gap: 10px; margin-bottom: 14px; }
.cc-card { padding: 12px; border-radius: 18px; background: linear-gradient(165deg, rgba(70, 30, 130, .7), rgba(20, 8, 50, .85)); border: 1px solid rgba(227, 179, 255, .22); }
.cc-top { display: flex; align-items: center; gap: 12px; }
.cc-av { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; background: radial-gradient(circle at 35% 30%, #fff3, #4a2486); border: 1px solid rgba(245, 201, 107, .45); }
.cc-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cc-tx b { color: var(--gold-2); font-weight: 500; }
.cc-tx small { font-size: .72rem; color: var(--muted); }
.cc-ring { --p: 70; flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--gold) calc(var(--p) * 1%), rgba(255, 255, 255, .1) 0); }
.cc-ring b { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; color: var(--gold-2); background: #1a0b3e; }
.cc-act { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.cc-act .btn-gold, .cc-act .btn-ghost { padding: 7px 14px; font-size: .8rem; }
.cc-del { margin-left: auto; font-size: .76rem; color: var(--muted); }
.cc-family { padding: 14px; border-radius: 18px; margin-bottom: 14px; background: rgba(245, 201, 107, .07); border: 1px solid var(--line); }
.cc-family .sec-head { align-items: center; }
.cc-els { display: grid; gap: 6px; margin-bottom: 10px; }
.cc-els div { display: grid; grid-template-columns: 52px 1fr 18px; align-items: center; gap: 8px; font-size: .76rem; color: var(--muted); }
.cc-els span { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--gold) var(--n), rgba(255, 255, 255, .1) var(--n)); }
.cc-els b { color: var(--gold-2); text-align: right; }
.cc-today { list-style: none; display: grid; gap: 6px; margin-top: 10px; }
.cc-today li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(0, 0, 0, .25); font-size: .82rem; }
.cc-today li span { flex: 1; }
.cc-today li b { color: var(--gold); font-size: .72rem; letter-spacing: -.05em; }
.cc-today li b i { font-style: normal; color: rgba(255, 255, 255, .18); }
.cc-today li small { width: 64px; text-align: right; color: var(--muted); font-size: .7rem; }
.cc-add { margin-bottom: 10px; border-radius: 16px; border: 1px solid var(--line); padding: 4px 12px 12px; background: rgba(0, 0, 0, .2); }
.cc-add summary { cursor: pointer; padding: 10px 0; color: var(--gold-2); font-weight: 500; }
.cc-add .two > label { min-width: 0; } .cc-add input, .cc-add select { width: 100%; min-width: 0; }
.cc-add select { font: inherit; color: var(--text); padding: 11px 12px; border-radius: 12px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(245, 201, 107, .2); color-scheme: dark; }
.cc-pair { display: flex; align-items: center; justify-content: space-around; margin: 6px 0 14px; }
.cc-pair > div { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--gold-2); }
.cc-pair .cc-ring { width: 84px; height: 84px; } .cc-pair .cc-ring b { width: 68px; height: 68px; font-size: 1.15rem; }
.cc-lines { list-style: none; display: grid; gap: 8px; margin: 10px 0; }
.cc-lines li { padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(227, 179, 255, .18); }
.cc-lines small { display: block; font-size: .7rem; color: var(--lilac); }
.cc-lines b { font-size: .9rem; font-weight: 500; color: var(--gold-2); }
.cc-lines p { font-size: .8rem; color: var(--muted); line-height: 1.6; }
.cc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.cc-chips span { padding: 4px 10px; border-radius: 999px; font-size: .78rem; background: rgba(0, 0, 0, .3); border: 1px solid rgba(227, 179, 255, .25); }
.cc-link { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; margin: -4px 0 14px; padding: 12px 14px; border-radius: 16px;
  background: linear-gradient(120deg, rgba(245, 201, 107, .12), rgba(177, 76, 255, .2)); border: 1px solid var(--line); color: var(--text); }
.cc-link span { font-size: 1.4rem; } .cc-link b { font-weight: 500; color: var(--gold-2); } .cc-link small { flex: 1; font-size: .74rem; color: var(--muted); } .cc-link em { font-style: normal; color: var(--gold); font-size: 1.3rem; }
/* มงคล: สลับ บริการมงคล / วัตถุมงคล */
.mk-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 999px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); }
.mk-switch button { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 8px; border-radius: 999px; font-size: .92rem; color: var(--muted); transition: background .25s, color .25s; }
.mk-switch button[aria-selected="true"] { color: #2a1503; font-weight: 600; background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.mk-sec[hidden] { display: none; }

/* ============ มือถือจริง: เต็มจอเสมอ (แก้ช่องว่างใต้เนื้อหาบน iPhone Safari) ============ */
.device-wrap { position: fixed; inset: 0; height: auto; }
.phone-slot, body.ready .phone-slot { width: 100%; height: 100%; }
.screen { height: 100%; }
.app { -webkit-overflow-scrolling: touch; }
.panel { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
/* แผ่นสมัคร/เข้าสู่ระบบบนมือถือ: ไม่ล้นจอ เลื่อนได้ลื่น */
@media (max-width: 699px) {
  .sheet { max-height: calc(100% - env(safe-area-inset-top) - 16px); overscroll-behavior: contain; }
  .sheet .two { gap: 10px; }
}
/* ภาพแม่หมอไม่ทับ “MOHDOO · TALE” */
.app-title { margin-bottom: 14px; }
.seer-img { top: -26px; }
@media (max-width: 520px) { .hello small .fl { display: none; } body.app-ui .hello small { font-size: .82rem; } }

/* ===== แฟ้มดวง (fortune-file.js) ===== */
.ff-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.ff-row { display: flex; gap: 10px; padding: 10px; border-radius: 14px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(227, 179, 255, .14); }
.ff-ico { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 1.05rem; background: radial-gradient(circle at 35% 30%, #fff3, #4a2486); }
.ff-txt { flex: 1; min-width: 0; }
.ff-txt b { display: block; font-size: .86rem; font-weight: 500; color: var(--gold-2); }
.ff-txt p { margin: 2px 0 0; font-size: .78rem; color: var(--text); line-height: 1.5; overflow-wrap: anywhere; }
.ff-txt small { display: block; margin-top: 4px; font-size: .68rem; color: var(--lilac); }
.ff-photos { display: flex; gap: 6px; margin-top: 6px; overflow-x: auto; }
.ff-photos figure { margin: 0; flex: none; width: 64px; }
.ff-photos img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(227, 179, 255, .3); display: block; }
.ff-photos figure:first-child img { border-color: var(--gold); }
.ff-photos figcaption { font-size: .58rem; color: var(--muted); text-align: center; margin-top: 2px; }
.daily-file { margin-top: 12px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(227, 179, 255, .18); }
.daily-file > b { font-size: .82rem; color: var(--gold-2); font-weight: 500; }
.daily-file ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.daily-file li { display: flex; gap: 8px; align-items: flex-start; }
.daily-file li > span { flex: none; font-size: 1rem; }
.daily-file small { font-size: .68rem; color: var(--lilac); }
.daily-file p { margin: 1px 0 0; font-size: .76rem; line-height: 1.5; color: var(--text); }
.daily-used { margin-top: 8px; font-size: .66rem; color: var(--muted); text-align: center; }
.in-old { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.in-old img { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; border: 1px solid var(--gold); }
.in-old em { font-style: normal; font-size: .72rem; color: var(--lilac); }

/* ===== แม่หมอ AI อ่านรูป ===== */
.ai-reading-wait { text-align: center; padding: 30px 10px; display: grid; justify-items: center; gap: 10px; }
.ai-reading-wait .ai-orb { animation: pulse 1.6s ease-in-out infinite; }
.ai-reading-wait small { color: var(--muted); font-size: .74rem; }
.ai-reading { padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(240, 200, 120, .3); margin-bottom: 12px; }
.ai-reading header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ai-reading header .ok-ring { flex: none; width: 40px; height: 40px; font-size: 1rem; }
.ai-reading header small { color: var(--lilac); font-size: .72rem; }
.ai-reading header h3 { margin: 0; color: var(--gold-2); font-size: 1.05rem; }
.ai-reading-body { font-size: .86rem; line-height: 1.75; color: var(--text); }
.ai-reading-sum { margin: 12px 0 4px; padding: 10px 12px; border-radius: 12px; background: rgba(240, 200, 120, .1); font-size: .82rem; line-height: 1.6; }
.ai-reading-sum b { display: block; color: var(--gold-2); font-weight: 500; margin-bottom: 2px; }
/* สมัครด้วยเบอร์ที่มีบัญชีแล้ว → แจ้งให้เข้าสู่ระบบ */
.phone-notice { margin: 0; padding: 10px 12px; border-radius: 12px; font-size: .8rem; line-height: 1.55; text-align: center;
  color: var(--gold-2); background: rgba(240, 200, 120, .1); border: 1px solid rgba(240, 200, 120, .35); }
.phone-notice[hidden] { display: none; }
/* เบอร์โทร: เลือกประเทศ + เบอร์ */
#phoneForm > label[for="phoneInput"] { font-size: .9rem; color: var(--muted); margin-bottom: -6px; }
.phone-row { display: flex; gap: 8px; }
.phone-row input { flex: 1; min-width: 0; letter-spacing: .04em; }
.cc-select { flex: none; width: 104px; padding: 11px 26px 11px 12px; border-radius: 12px; font: inherit; font-size: .95rem; color: var(--text);
  background: rgba(0, 0, 0, .35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23f5c96b' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid rgba(245, 201, 107, .2); appearance: none; -webkit-appearance: none; cursor: pointer; }
.cc-select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 201, 107, .18); }
.cc-select option { background: #1d0f42; color: #f1eaff; }
.phone-hint { margin: -6px 0 0; font-size: .72rem; color: var(--muted); }
@media (max-width: 699px) { .cc-select { font-size: 16px; } }
.phone-row .cc-select { flex: 0 0 104px; width: 104px; max-width: 104px; }
.phone-row input:not([type="checkbox"]) { flex: 1 1 auto; width: auto; min-width: 0; }

/* ===== แถบหัวทุกหน้า (‹ กลับ + ชื่อหน้า): เด่นชัดขึ้น ===== */
.panel-bar { grid-template-columns: 104px 1fr 104px; background: linear-gradient(180deg, #1a0b40 78%, rgba(26, 11, 64, 0));
  border-bottom: 1px solid rgba(240, 200, 120, .14); }
.panel-bar h2 { font-size: 1.3rem; font-weight: 600; letter-spacing: .02em; color: var(--gold-2);
  text-shadow: 0 0 14px rgba(245, 201, 107, .35); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-bar .back { display: inline-flex; align-items: center; gap: 4px; padding: 8px 16px 8px 12px; font-size: 1rem; font-weight: 500;
  color: var(--gold-2); background: rgba(240, 200, 120, .1); border: 1px solid rgba(240, 200, 120, .4); border-radius: 999px;
  transition: background .2s, border-color .2s, transform .15s; }
.panel-bar .back:hover { background: rgba(240, 200, 120, .2); border-color: var(--gold); }
.panel-bar .back:active { transform: scale(.96); }
@media (max-width: 699px) {
  .panel-bar { grid-template-columns: 92px 1fr 92px; }
  .panel-bar h2 { font-size: 1.15rem; }
  .panel-bar .back { padding: 7px 14px 7px 10px; font-size: .95rem; }
}
/* สวิตช์ บริการมงคล / วัตถุมงคล: ปุ่มที่ไม่ได้เลือกก็อ่านชัด */
.mk-switch { padding: 5px; border-color: rgba(240, 200, 120, .3); }
.mk-switch button { padding: 12px 10px; font-size: 1.02rem; font-weight: 500; color: var(--text); }
.mk-switch button span { font-size: 1.15rem; }
.mk-switch button:not([aria-selected="true"]):hover { background: rgba(240, 200, 120, .1); color: var(--gold-2); }
.mk-switch button[aria-selected="true"] { box-shadow: 0 4px 16px rgba(240, 200, 120, .3); }
/* แถบหัวเลื่อนผ่านไปพร้อมเนื้อหา (ไม่ค้างด้านบน) */
.panel-bar, body.app-ui .panel-bar { position: relative; top: auto; }
.frame-panel .panel-bar { will-change: margin-top; }

/* ===== ขั้นตอนการทำพิธี (หน้ามงคล) ===== */
.mk-steps { margin-top: 16px; padding: 18px 16px 16px; border-radius: 20px;
  background: linear-gradient(160deg, rgba(240, 200, 120, .09), rgba(255, 255, 255, .03)); border: 1px solid rgba(240, 200, 120, .25); }
.mk-steps h4 { margin: 0 0 14px; text-align: center; font-size: 1rem; font-weight: 600; color: var(--gold-2); letter-spacing: .02em; }
.mk-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; position: relative; }
/* เส้นทองเชื่อมระหว่างขั้น */
.mk-steps ol::before { content: ""; position: absolute; top: 27px; left: 16.6%; right: 16.6%; height: 2px;
  background: linear-gradient(90deg, rgba(240, 200, 120, .15), var(--gold), rgba(240, 200, 120, .15)); }
.mk-steps li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.ms-ico { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem;
  background: radial-gradient(circle at 35% 30%, #3b1f78, #1a0b40); border: 2px solid var(--gold); box-shadow: 0 0 18px rgba(245, 201, 107, .3); }
.mk-steps em { position: absolute; top: -4px; left: calc(50% + 16px); z-index: 2; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-style: normal; font-size: .72rem; font-weight: 700; color: #2a1503; background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.mk-steps b { margin-top: 6px; font-size: .92rem; font-weight: 600; color: var(--text); }
.mk-steps small { font-size: .76rem; line-height: 1.5; color: var(--muted); max-width: 220px; }
/* มือถือ: เรียงแนวตั้ง เส้นทองด้านซ้าย */
@media (max-width: 599px) {
  .mk-steps ol { grid-template-columns: 1fr; gap: 14px; }
  .mk-steps ol::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto;
    background: linear-gradient(180deg, rgba(240, 200, 120, .15), var(--gold), rgba(240, 200, 120, .15)); }
  .mk-steps li { display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; text-align: left; align-items: center; }
  .ms-ico { grid-row: span 2; }
  .mk-steps em { left: 38px; }
  .mk-steps b { margin-top: 0; align-self: end; }
  .mk-steps small { align-self: start; max-width: none; }
}

/* ===== สถานที่ทำพิธี (หน้ามงคล) ===== */
.pl { margin-top: 20px; }
.pl-lead { margin: -4px 0 10px; font-size: .8rem; color: var(--muted); }
.pl-regions, .pl-wishes { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.pl-regions::-webkit-scrollbar, .pl-wishes::-webkit-scrollbar { display: none; }
.pl-wishes { margin-bottom: 10px; }
.pl-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: .84rem; white-space: nowrap;
  color: var(--text); background: rgba(255, 255, 255, .05); border: 1px solid rgba(227, 179, 255, .2); cursor: pointer; transition: background .2s, border-color .2s; }
.pl-chip em { font-style: normal; font-size: .7rem; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: var(--lilac); }
.pl-chip:hover { border-color: rgba(240, 200, 120, .5); }
.pl-chip.on { color: #2a1503; font-weight: 600; background: linear-gradient(135deg, var(--gold-2), var(--gold)); border-color: transparent; }
.pl-chip.on em { background: rgba(42, 21, 3, .15); color: #2a1503; }
.pl-wishes .pl-chip { padding: 6px 12px; font-size: .78rem; }
.pl-wishes .pl-chip.on { background: rgba(240, 200, 120, .18); color: var(--gold-2); border-color: var(--gold); }
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.pl-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(76, 38, 150, .35), rgba(20, 10, 50, .6)); border: 1px solid rgba(227, 179, 255, .18); }
.pl-card.open { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 201, 107, .15); }
.pl-top { display: flex; align-items: flex-start; gap: 10px; }
.pl-ico { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 1.25rem;
  background: radial-gradient(circle at 35% 30%, #4a2a8a, #1a0b40); border: 1px solid rgba(240, 200, 120, .45); }
.pl-name { flex: 1; min-width: 0; }
.pl-name b { display: block; font-size: .92rem; font-weight: 600; color: var(--gold-2); line-height: 1.35; }
.pl-name small { display: block; margin-top: 2px; font-size: .72rem; color: var(--lilac); }
.pl-feat { flex: none; font-size: .64rem; padding: 3px 8px; border-radius: 999px; color: #2a1503; background: linear-gradient(135deg, var(--gold-2), var(--gold)); font-weight: 600; }
.pl-deity { margin: 0; font-size: .78rem; color: var(--text); }
.pl-deity span { margin-right: 6px; font-size: .68rem; padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, .08); color: var(--lilac); }
.pl-good { flex: 1; margin: 0; font-size: .76rem; line-height: 1.55; color: var(--muted); }
.pl-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.pl-tags span { font-size: .66rem; padding: 2px 8px; border-radius: 999px; background: rgba(240, 200, 120, .1); color: var(--gold-2); }
.pl-book { width: 100%; }
.pl-pick { display: grid; gap: 6px; padding-top: 4px; }
.pl-pick small { font-size: .72rem; color: var(--lilac); text-align: center; }
.pl-pick > div { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pl-pick .btn-gold { padding: 9px 6px; font-size: .8rem; }
.pl-pick .link { justify-self: center; font-size: .74rem; color: var(--muted); }
.pl-more { margin-top: 10px; }
.pl .pf-note { margin-top: 10px; }
/* ขั้นตอนอยู่บนสุดของบริการมงคล */
.mk-sec > .mk-steps { margin: 0 0 18px; }

/* ===== หน้าชำระเงิน: ตัวเลือกแพ็กเกจ (เดิมอยู่ใน services.css ซึ่งหน้าแรกไม่ได้โหลด) ===== */
.pay-tiers { border: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pay-tiers legend { padding: 0; margin-bottom: 8px; color: var(--muted); font-size: .85rem; }
.pay-tiers .tier { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(245, 201, 107, .25); background: rgba(0, 0, 0, .3); transition: border-color .25s, background .25s; }
.pay-tiers .tier:has(input:checked) { border-color: var(--gold); background: rgba(245, 201, 107, .1); }
.pay-tiers .tier input { accent-color: var(--gold); }
.pay-tiers .tl { flex: 1; }
.pay-tiers .tp { color: var(--gold); font-weight: 600; }
.pay-tiers .tier small { color: #ffcf8a; margin-left: 6px; font-size: .75rem; }

/* ===== หน้าชำระเงิน: เลือกสถานที่ทำพิธี ===== */
.pay-place { border: 1px solid rgba(240, 200, 120, .3); border-radius: 16px; padding: 12px 14px 14px; margin: 0 0 12px; background: rgba(240, 200, 120, .05); }
.pay-place legend { padding: 0 6px; color: var(--gold-2); font-size: .88rem; font-weight: 500; }
.pp-row { display: grid; grid-template-columns: minmax(130px, 1fr) 2fr; gap: 8px; }
.pp-row select { min-width: 0; width: 100%; padding: 11px 30px 11px 12px; border-radius: 12px; font: inherit; font-size: .9rem; color: var(--text);
  background: rgba(0, 0, 0, .35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23f5c96b' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid rgba(245, 201, 107, .25); appearance: none; -webkit-appearance: none; cursor: pointer; }
.pp-row select:disabled { opacity: .55; cursor: default; }
.pp-row select option { background: #1d0f42; color: #f1eaff; }
.pp-hint { margin: 8px 0 0; font-size: .74rem; color: var(--muted); }
.pp-info { display: flex; gap: 10px; margin-top: 10px; padding: 10px; border-radius: 12px; background: rgba(0, 0, 0, .25); }
.pp-info > span { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #4a2a8a, #1a0b40); border: 1px solid rgba(240, 200, 120, .45); }
.pp-info b { display: block; font-size: .86rem; color: var(--gold-2); font-weight: 600; }
.pp-info small { display: block; font-size: .7rem; color: var(--lilac); margin-top: 2px; }
.pp-info p { margin: 4px 0 0; font-size: .74rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 599px) { .pp-row { grid-template-columns: 1fr; } .pp-row select { font-size: 16px; } }

/* ===== เงินทำบุญ + สรุปยอด ===== */
.pay-donate { border: 1px solid rgba(240, 200, 120, .3); border-radius: 16px; padding: 12px 14px 14px; margin: 0 0 12px; background: rgba(240, 200, 120, .05); }
.pay-donate legend { padding: 0 6px; color: var(--gold-2); font-size: .88rem; font-weight: 500; }
.dn-row { grid-template-columns: 1fr 1fr; }
.dn-row input { min-width: 0; width: 100%; padding: 11px 12px; border-radius: 12px; font: inherit; font-size: .95rem; color: var(--text);
  background: rgba(0, 0, 0, .35); border: 1px solid rgba(245, 201, 107, .25); outline: none; color-scheme: dark; }
.dn-row input:focus { border-color: var(--gold); }
.dn-row input[hidden] { display: none; }
.dn-row:has(input[hidden]) { grid-template-columns: 1fr; }
.pay-sum { list-style: none; margin: 0 0 4px; padding: 0 4px; display: grid; gap: 6px; }
.pay-sum li { display: flex; justify-content: space-between; font-size: .88rem; color: var(--muted); }
.pay-sum b { color: var(--text); font-weight: 500; }
#toQR:disabled { opacity: .55; cursor: not-allowed; filter: grayscale(.3); }
@media (max-width: 599px) { .dn-row input { font-size: 16px; } }

/* ===== คุยสดกับหมอดู → ใช้บนแอป ===== */
.app-card { margin-top: 14px; background: linear-gradient(150deg, rgba(240, 200, 120, .12), rgba(76, 38, 150, .25)); border-color: rgba(240, 200, 120, .35); }
.app-card-head { display: flex; gap: 12px; align-items: flex-start; }
.app-ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem;
  background: radial-gradient(circle at 35% 30%, #4a2a8a, #1a0b40); border: 1px solid rgba(240, 200, 120, .5); }
.app-card h3 { margin: 0; font-size: 1rem; color: var(--gold-2); }
.app-card p { margin: 3px 0 0; font-size: .8rem; color: var(--text); line-height: 1.5; }
.app-dls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.app-dl { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 10px; border-radius: 12px; font: inherit; font-size: .88rem; font-weight: 500;
  color: #fff; background: #0b0618; border: 1px solid rgba(255, 255, 255, .25); text-decoration: none; cursor: pointer; }
.app-dl:hover { border-color: var(--gold); }
.app-dl span { font-size: 1.05rem; }

/* ===================== ใบผลดวง (Fortune Receipt) ===================== */
.slip-overlay { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 14px 12px;
  background: rgba(6, 2, 18, .8); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.slip-overlay.open { opacity: 1; }
.slip-overlay[hidden] { display: none; }
.slip-stage { position: relative; width: min(392px, 100%); max-height: 100%; display: flex; flex-direction: column; }
.slip-x { position: absolute; top: -4px; right: -4px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; color: var(--gold-2);
  background: rgba(20, 10, 48, .9); border: 1px solid rgba(240, 200, 120, .45); cursor: pointer; }
/* ช่องเครื่องพิมพ์ใบเสร็จ */
.slip-printer { position: relative; z-index: 2; height: 26px; margin: 0 -10px; border-radius: 14px;
  background: linear-gradient(180deg, #3a2470, #1a0d3d); border: 1px solid rgba(240, 200, 120, .4); box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }
.slip-printer span { position: absolute; left: 14px; right: 14px; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: #07030f; box-shadow: 0 1px 0 rgba(240, 200, 120, .35); }
.slip-scroll { position: relative; z-index: 1; flex: 1; min-height: 0; overflow-y: auto; margin-top: -13px; padding: 0 0 6px; scrollbar-width: none; }
.slip-scroll::-webkit-scrollbar { display: none; }
.slip-feed { padding-top: 8px; animation: slipPrint 1.8s cubic-bezier(.25, .8, .3, 1) both; }
@keyframes slipPrint { from { transform: translateY(-100%); } }
@media (prefers-reduced-motion: reduce) { .slip-feed { animation: none; } }
.slip-actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; padding-top: 12px; }
.slip-actions .btn-gold, .slip-actions .btn-ghost { padding: 13px 10px; }

/* กระดาษใบผลดวง */
.slip { --ink: #2c1748; --gold-ink: #a8741c; --paper: #fbf4e3; --muted-ink: #6d5a86;
  position: relative; margin: 0 auto 12px; padding: 26px 22px 30px; color: var(--ink); font-family: "Kanit", sans-serif; font-weight: 400;
  background: var(--paper) linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(240, 225, 190, .35)); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
/* ขอบฟันเลื่อยบน-ล่างแบบใบเสร็จ */
.slip::before, .slip::after { content: ""; position: absolute; left: 0; right: 0; height: 10px; background-repeat: repeat-x; background-size: 14px 10px; }
.slip::before { top: -9px; background-image: linear-gradient(45deg, var(--paper) 50%, transparent 50%), linear-gradient(-45deg, var(--paper) 50%, transparent 50%); background-position: 0 100%, 7px 100%; }
.slip::after { bottom: -9px; background-image: linear-gradient(135deg, var(--paper) 50%, transparent 50%), linear-gradient(-135deg, var(--paper) 50%, transparent 50%); background-position: 0 0, 7px 0; }

.sl-head { text-align: center; }
.sl-logo { font-family: "Charm", serif; font-size: 2.1rem; line-height: 1.1; color: var(--gold-ink); }
.sl-logo span:last-child { font-family: "Cinzel Decorative", serif; font-size: .95rem; margin-left: 2px; }
.sl-moon { margin-right: 6px; font-size: 1.5rem; }
.sl-type { margin: 4px 0 0; font-size: .7rem; letter-spacing: .32em; color: var(--muted-ink); }
.sl-orn { margin: 8px 0 12px; font-size: .78rem; letter-spacing: .3em; color: var(--gold-ink); }
.sl-meta { margin: 0 0 12px; padding: 10px 0; border-top: 1.5px solid var(--ink); border-bottom: 1px dashed rgba(44, 23, 72, .45); display: grid; gap: 4px; }
.sl-meta div { display: flex; align-items: baseline; gap: 6px; font-size: .78rem; }
.sl-meta dt { color: var(--muted-ink); flex: none; }
.sl-meta div::after { content: ""; order: 1; flex: 1; border-bottom: 1px dotted rgba(44, 23, 72, .35); transform: translateY(-3px); }
.sl-meta dd { order: 2; margin: 0; font-weight: 500; text-align: right; }
.sl-item { display: flex; align-items: center; gap: 10px; padding: 4px 0 2px; }
.sl-ico { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; background: #efe3c6; border: 1.5px solid var(--gold-ink); }
.sl-item > div { flex: 1; min-width: 0; }
.sl-item small { display: block; font-size: .66rem; letter-spacing: .08em; color: var(--muted-ink); }
.sl-item b { display: block; font-size: .95rem; font-weight: 600; line-height: 1.35; }
.sl-item p { margin: 2px 0 0; font-size: .74rem; color: var(--muted-ink); font-style: italic; }
.sl-item em { flex: none; align-self: flex-start; font-style: normal; font-size: .7rem; padding: 2px 8px; border: 1px solid var(--ink); border-radius: 999px; }
.sl-cut { position: relative; margin: 14px -22px 6px; border-top: 1.5px dashed rgba(44, 23, 72, .5); }
.sl-cut span { position: absolute; left: 10px; top: -11px; font-size: .9rem; background: var(--paper); padding: 0 4px; color: var(--muted-ink); }

.sl-blocks { list-style: none; margin: 0; padding: 0; }
.sl-blocks li { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px dotted rgba(44, 23, 72, .35); }
.sl-no { flex: none; width: 34px; font-family: "Cinzel Decorative", serif; font-size: 1.35rem; font-weight: 700; line-height: 1; color: var(--gold-ink); }
.sl-bt { flex: 1; min-width: 0; }
.sl-bt small { display: block; font-size: .66rem; letter-spacing: .1em; color: var(--muted-ink); }
.sl-bt b { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 1px; font-size: .95rem; font-weight: 600; }
.sl-bt b > span:first-child { font-size: 1.05rem; }
.sl-bt em { display: block; font-style: normal; font-size: .7rem; color: var(--gold-ink); letter-spacing: .04em; }
.sl-bt p { margin: 4px 0 0; font-size: .8rem; line-height: 1.6; color: #3d2a5a; }
.sl-stars { font-size: .8rem; letter-spacing: 1px; color: #c99a2e; }
.sl-stars i { font-style: normal; color: #ddd0b4; }

.sl-total { position: relative; margin: 16px 0 12px; padding: 14px 14px 18px; border: 3px double var(--ink); border-radius: 4px; background: rgba(239, 227, 198, .45); }
.sl-total-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .95rem; font-weight: 700; letter-spacing: .02em; }
.sl-total-head .sl-stars { font-size: 1rem; }
.sl-total p { margin: 8px 0 0; padding-right: 74px; font-size: .82rem; line-height: 1.65; }
.sl-stamp { position: absolute; right: 8px; bottom: 8px; width: 82px; height: 82px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #b3302d; border: 3px double #b3302d; transform: rotate(-14deg); opacity: .88; text-align: center; background: rgba(251, 244, 227, .6); }
.sl-stamp span { font-size: .86rem; font-weight: 700; line-height: 1.15; padding: 0 6px; }
.sl-stamp small { margin-top: 2px; font-size: .5rem; letter-spacing: .1em; border-top: 1px solid #b3302d; padding-top: 2px; }

.sl-lucky { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.sl-lucky div { padding: 8px 10px; border: 1px solid rgba(44, 23, 72, .25); border-radius: 6px; text-align: center; }
.sl-lucky small { display: block; font-size: .66rem; color: var(--muted-ink); letter-spacing: .06em; }
.sl-lucky b { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; }
.sl-lucky i { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(44, 23, 72, .35); }

.sl-foot { text-align: center; padding-top: 10px; border-top: 1.5px dashed rgba(44, 23, 72, .5); }
.sl-bar { display: flex; justify-content: center; align-items: stretch; gap: 2px; height: 46px; margin: 4px auto 4px; }
.sl-bar i { display: block; background: var(--ink); }
.sl-code { margin: 0; font-size: .7rem; letter-spacing: .3em; color: var(--muted-ink); }
.sl-thanks { margin: 10px 0 2px; font-family: "Charm", serif; font-size: 1.25rem; color: var(--gold-ink); }
.sl-foot small { font-size: .62rem; color: var(--muted-ink); }

/* ปุ่มเปิดใบผลดวงในหน้าต่าง ๆ */
.slip-open { margin-top: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; line-height: 1.3; }
.ai-panel .panel-body > :not(.ai-log) { flex-shrink: 0; } /* เนื้อหาในหน้าดูดวงประจำวันไม่ถูกบีบ · ให้ห้องแชทยืดหดแทน */
.ai-panel .slip-open + .cc-link { margin-top: 12px; }
.sl-total { min-height: 116px; }
.sl-total-head { justify-content: flex-start; flex-wrap: wrap; padding-right: 80px; }
.sl-total p { padding-right: 90px; }

/* ===== ใบผลดวง v2: จัดกลาง ไม่มีเลขลำดับ ===== */
.slip .sl-orn { margin-bottom: 4px; }
.slip .sl-item { flex-direction: column; text-align: center; gap: 2px; padding: 16px 0 4px; margin-top: 10px; border-top: 1.5px solid var(--ink); }
.slip .sl-item .sl-ico { width: 54px; height: 54px; font-size: 1.6rem; margin-bottom: 6px; box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px rgba(168, 116, 28, .45); }
.slip .sl-item small { font-size: .7rem; letter-spacing: .2em; }
.slip .sl-item b { font-size: 1.12rem; }
.slip .sl-item p { margin-top: 4px; font-size: .8rem; }
.slip .sl-item em { align-self: center; margin-top: 8px; border: 0; padding: 0; font-size: .74rem; color: var(--gold-ink); letter-spacing: .04em; }
.slip .sl-cut { margin-top: 16px; }
.slip .sl-blocks li { flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 18px 8px 16px; border: 0; }
.sl-bi { width: 46px; height: 46px; margin-bottom: 6px; border-radius: 50%; display: grid; place-items: center; font-size: 1.35rem;
  background: radial-gradient(circle at 35% 30%, #fffaf0, #efe2c3); border: 1.5px solid var(--gold-ink); box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px rgba(168, 116, 28, .35); }
.slip .sl-blocks small { font-size: .66rem; letter-spacing: .22em; color: var(--gold-ink); font-weight: 500; }
.slip .sl-blocks b { font-size: 1.02rem; font-weight: 700; line-height: 1.35; }
.slip .sl-blocks em { font-style: italic; font-size: .74rem; color: var(--muted-ink); }
.slip .sl-blocks .sl-stars { margin-top: 2px; font-size: .9rem; }
.slip .sl-blocks p { margin: 6px 0 0; max-width: 290px; font-size: .82rem; line-height: 1.7; color: #3d2a5a; }
.slip .sl-blocks .sl-div { padding: 0; display: flex; align-items: center; gap: 10px; color: var(--gold-ink); font-size: .7rem; }
.slip .sl-blocks .sl-div::before, .slip .sl-blocks .sl-div::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(168, 116, 28, .55), transparent); }
.slip .sl-total { margin-top: 18px; text-align: center; padding: 16px 14px 20px; }
.slip .sl-total-head { justify-content: center; padding-right: 0; flex-direction: column; gap: 2px; }
.slip .sl-total p { padding-right: 0; margin-bottom: 70px; }
.slip .sl-stamp { left: 50%; right: auto; bottom: 10px; width: 76px; height: 76px; margin-left: -38px; }
.slip .sl-blocks .sl-div { flex-direction: row; width: 70%; margin: 0 auto; }
.slip .sl-stamp small { font-size: .5rem; letter-spacing: .12em; }
/* ไม่มีส่วนท้าย (บาร์โค้ด) แล้ว → ช่องสีเสริมดวง/เลขนำโชคเป็นส่วนสุดท้าย */
.slip .sl-lucky { margin-bottom: 4px; }

/* ===== ใบผลดวง: โทนม่วง (กระดาษม่วงเข้ม ตัวอักษรครีม ทองเป็นจุดเด่น) ===== */
.slip { --paper: #2a1360; --ink: #f7efff; --gold-ink: #f2c96b; --muted-ink: #cbb8f0;
  background: var(--paper) radial-gradient(120% 60% at 50% 0%, rgba(155, 89, 208, .35), transparent 70%),
    radial-gradient(120% 50% at 50% 100%, rgba(120, 60, 190, .3), transparent 70%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(242, 201, 107, .25); }
.slip .sl-head { position: relative; }
.slip .sl-logo { color: var(--gold-ink); text-shadow: 0 0 18px rgba(242, 201, 107, .35); }
.slip .sl-type { color: var(--muted-ink); }
.slip .sl-item { border-top-color: rgba(242, 201, 107, .55); }
.slip .sl-item .sl-ico, .slip .sl-bi { background: radial-gradient(circle at 35% 30%, #5a2fa0, #1e0b48); border-color: var(--gold-ink);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px rgba(242, 201, 107, .45), 0 0 18px rgba(242, 201, 107, .25); }
.slip .sl-item small, .slip .sl-item p { color: var(--muted-ink); }
.slip .sl-cut { border-top-color: rgba(203, 184, 240, .45); }
.slip .sl-cut span { color: var(--muted-ink); background: var(--paper); }
.slip .sl-blocks p { color: #e6dcfa; }
.slip .sl-blocks em { color: var(--muted-ink); }
.slip .sl-blocks .sl-div::before, .slip .sl-blocks .sl-div::after { background: linear-gradient(90deg, transparent, rgba(242, 201, 107, .6), transparent); }
.slip .sl-stars { color: #f2c96b; }
.slip .sl-stars i { color: rgba(203, 184, 240, .3); }
.slip .sl-total { border: 1.5px solid rgba(242, 201, 107, .65); border-radius: 14px; background: rgba(12, 4, 32, .35);
  box-shadow: inset 0 0 0 4px rgba(42, 19, 96, 1), inset 0 0 0 5px rgba(242, 201, 107, .3); }
.slip .sl-total-head { color: var(--gold-ink); }
.slip .sl-stamp { color: var(--gold-ink); border-color: var(--gold-ink); background: rgba(42, 19, 96, .85); box-shadow: 0 0 16px rgba(242, 201, 107, .25); opacity: .95; }
.slip .sl-stamp small { border-top-color: var(--gold-ink); }
.slip .sl-lucky div { border-color: rgba(242, 201, 107, .35); background: rgba(12, 4, 32, .3); border-radius: 12px; }
.slip .sl-lucky i { border-color: rgba(255, 255, 255, .5); }
.slip { --paper: #3b1c7c;
  background: var(--paper) radial-gradient(130% 55% at 50% 0%, rgba(196, 150, 255, .38), transparent 72%),
    radial-gradient(130% 45% at 50% 100%, rgba(160, 100, 235, .32), transparent 72%);
  box-shadow: 0 0 0 1px rgba(242, 201, 107, .35), 0 20px 50px rgba(0, 0, 0, .6), 0 0 60px rgba(155, 89, 208, .35); }
.slip .sl-item .sl-ico, .slip .sl-bi { background: radial-gradient(circle at 35% 30%, #7a48c8, #2a1060); }
.slip .sl-total { background: rgba(20, 6, 50, .35); box-shadow: inset 0 0 0 4px #3b1c7c, inset 0 0 0 5px rgba(242, 201, 107, .3); }
.slip .sl-stamp { background: rgba(59, 28, 124, .9); }
.slip .sl-cut span { background: transparent; }
.slip-overlay { background: rgba(4, 1, 12, .86); }
.slip { background: radial-gradient(130% 55% at 50% 0%, rgba(196, 150, 255, .38), transparent 72%),
    radial-gradient(130% 45% at 50% 100%, rgba(160, 100, 235, .32), transparent 72%), var(--paper); }
.slip { background: radial-gradient(130% 55% at 50% 0%, rgba(196, 150, 255, .38), transparent 72%),
    radial-gradient(120% 40% at 50% 78%, rgba(160, 100, 235, .28), transparent 70%), var(--paper); }
.slip .sl-total { box-shadow: none; border: 3px double rgba(242, 201, 107, .7); }

/* ===== ใบผลดวง v3: ภาพลายเส้นวาดมือ + คำทำนายแบบบรรยาย ===== */
.slip { padding-bottom: 0; overflow: visible; }
.slip .sl-head { position: relative; z-index: 1; }
.sl-art { display: block; height: auto; }
.sl-art-ball { width: 132px; margin: 8px auto 2px; }
.slip .sl-item { border-top: 0; margin-top: 0; padding-top: 2px; position: relative; z-index: 1; }
.slip .sl-item small { color: var(--gold-ink); }
.sl-story { position: relative; z-index: 1; margin-top: 16px; }
.sl-story p { margin: 0 0 14px; text-indent: 1.6em; font-size: .86rem; line-height: 1.95; color: #ebe2fb; }
.sl-story p b { color: var(--gold-ink); font-weight: 600; }
.sl-story p i { font-style: normal; color: var(--muted-ink); }
.sl-story p .sl-stars { font-size: .78rem; }
.sl-art-cards { width: 206px; margin: 6px auto 0; }
.slip .sl-total { min-height: 0; margin: 6px 0 16px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; text-align: center; }
.sl-overall { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 1.12rem; font-weight: 700; color: var(--gold-ink); letter-spacing: .04em; }
.sl-overall::before, .sl-overall::after { content: ""; flex: 1; border-top: 2px dotted rgba(242, 201, 107, .65); }
.sl-overall-stars { margin-top: 4px; font-size: 1.05rem; }
.slip .sl-total p { margin: 10px 0 0; padding: 0; font-size: .9rem; line-height: 1.95; color: #f7efff; }
.slip .sl-stamp { position: relative; left: auto; right: auto; bottom: auto; margin: 14px auto 0; }
.sl-spark { position: absolute; z-index: 0; height: auto; opacity: .9; }
.sl-spark.sp1 { width: 20px; top: 118px; left: 18px; }
.sl-spark.sp2 { width: 15px; top: 34%; right: 12px; }
.sl-spark.sp3 { width: 12px; top: 55%; left: 10px; }
.sl-spark.sp4 { width: 22px; top: 74%; right: 16px; }
.sl-art-clouds { width: calc(100% + 44px); height: 48px; margin: 12px -22px 0; }
.sl-art-clouds { margin-bottom: 10px; }
/* ไม่มีภาพไพ่คั่นแล้ว → เว้นระยะก่อน “ดวงโดยรวม” */
.slip .sl-total { margin-top: 18px; }
/* ประกายดาวอยู่เฉพาะที่ว่าง: ข้างลูกแก้ว และข้างตราประทับ (ไม่ทับข้อความ) */
.sl-spark.sp1 { top: 112px; left: 52px; right: auto; bottom: auto; width: 20px; }
.sl-spark.sp2 { top: 150px; right: 50px; left: auto; bottom: auto; width: 15px; }
.sl-spark.sp3 { top: auto; bottom: 168px; left: 70px; right: auto; width: 14px; }
.sl-spark.sp4 { top: auto; bottom: 196px; right: 62px; left: auto; width: 22px; }
/* คำทำนายเต็มบรรทัด: จัดชิดสองข้าง ไม่ย่อหน้า ระยะห่างย่อหน้าน้อยลง */
.sl-story p { text-indent: 0; text-align: justify; text-justify: inter-character; margin-bottom: 10px; line-height: 1.85; }
.slip .sl-total p { text-align: justify; text-justify: inter-character; text-align-last: center; }
/* คำทำนายจัดกึ่งกลางทั้งหมด (เลิกจัดชิดสองข้าง ซึ่งทำให้บางบรรทัดล้นขอบ) */
.sl-story p, .slip .sl-total p { text-align: center; text-justify: auto; text-align-last: center; overflow-wrap: anywhere; }
.sl-story p b { display: block; margin-bottom: 2px; }
.sl-story p { margin-bottom: 16px; }
.slip .sl-total { margin-bottom: 18px; }

/* ===== ใบผลดวงแบบใบเซียมซี: กลอน 4 วรรค + คำทำนาย 4 เรื่อง ===== */
.sl-cards { position: relative; z-index: 1; margin: 10px 0 0; text-align: center; font-size: .78rem; color: var(--muted-ink); letter-spacing: .02em; }
.sl-verse { position: relative; z-index: 1; margin: 16px 6px 6px; padding: 14px 6px; text-align: center;
  border-top: 2px dotted rgba(242, 201, 107, .55); border-bottom: 2px dotted rgba(242, 201, 107, .55); }
.sl-verse p { margin: 0; font-family: "Charm", serif; font-size: 1.32rem; line-height: 1.75; color: #fff3d6; text-shadow: 0 0 12px rgba(242, 201, 107, .25); }
.slip-wait { margin: 40px 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--gold-2); font-size: .95rem; }
.slip-writing { padding-bottom: 20px; }
.sl-verse p { line-height: 1.95; }
/* บรรทัดสมดุล: ไม่เหลือคำสั้น ๆ ค้างบรรทัดสุดท้าย และไม่ล้นขอบ */
.sl-story p, .slip .sl-total p { text-wrap: balance; overflow-wrap: break-word; max-width: 100%; }
.sl-story p { line-height: 1.9; }

/* ===== รูปไพ่ในใบผลดวง ===== */
.sl-card { --cw: 76px; position: relative; display: inline-block; width: var(--cw); height: calc(var(--cw) * 1.62); border-radius: 9px; padding: 3px;
  background: linear-gradient(160deg, #f6d98a, #c99a3c); box-shadow: 0 8px 20px rgba(0, 0, 0, .4), 0 0 16px rgba(242, 201, 107, .35); }
.sl-card-in { position: absolute; inset: 3px; border-radius: 7px; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 7px 4px 8px; background: linear-gradient(160deg, #2c1670, #12063a 60%, #3a1060); border: 1px solid rgba(242, 201, 107, .55); overflow: hidden; }
.sl-card.rev .sl-card-in { transform: rotate(180deg); }
.sl-card-orn { font-style: normal; font-size: calc(var(--cw) * .13); color: var(--gold-ink, #f2c96b); line-height: 1; }
.sl-card-sym { font-size: calc(var(--cw) * .44); line-height: 1; filter: drop-shadow(0 0 6px rgba(242, 201, 107, .6)); }
.sl-card-en { font-family: "Cinzel Decorative", serif; font-size: calc(var(--cw) * .085); letter-spacing: .03em; color: #f6dc9a; text-align: center; line-height: 1.15; }
.sl-cardrow { position: relative; z-index: 1; display: flex; justify-content: center; gap: 14px; margin: 14px 0 4px; }
.sl-cardrow figure { margin: 0; width: 92px; display: flex; flex-direction: column; align-items: center; }
.sl-cardrow figure .sl-card { transform: rotate(var(--r, 0deg)); }
.sl-cardrow.n1 figure { width: 120px; }
.sl-cardrow.n1 .sl-card { --cw: 96px; }
.sl-cardrow figcaption { margin-top: 10px; text-align: center; line-height: 1.3; }
.sl-cardrow figcaption small { display: block; font-size: .64rem; color: var(--muted-ink, #cbb8f0); }
.sl-cardrow figcaption b { display: block; font-size: .8rem; color: var(--gold-ink, #f2c96b); font-weight: 600; }
.sl-cardrow figcaption em { display: inline-block; margin-top: 2px; font-style: normal; font-size: .6rem; padding: 1px 6px; border-radius: 999px; border: 1px solid rgba(242, 201, 107, .5); color: #f6dc9a; }
.sl-cardrow { margin-bottom: 18px; }

/* ===== หน้าไพ่ทาโรต์แบบวาดใหม่ ===== */
.sl-card { --cw: 82px; padding: 0; border-radius: 9px; background: none; box-shadow: 0 10px 22px rgba(0, 0, 0, .45), 0 0 18px rgba(242, 201, 107, .3); }
.sl-card-in { inset: 0; padding: 0; border: 0; border-radius: 9px; background: none; display: block; }
.sl-card-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.sl-card-top { position: absolute; left: 0; right: 0; top: 7%; text-align: center; font-family: "Cinzel Decorative", serif; font-weight: 700;
  font-size: calc(var(--cw) * .13); letter-spacing: .06em; color: #f6dc9a; line-height: 1; }
.sl-card-en { position: absolute; left: 14%; right: 14%; top: 79.2%; height: 9.8%; display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: "Cinzel Decorative", serif; font-weight: 700; font-size: calc(var(--cw) * .066); letter-spacing: .02em; line-height: 1; color: #2a1260; }
.sl-card-orn, .sl-card-sym { display: none; }
.sl-cardrow.n1 .sl-card { --cw: 104px; }
.sl-card-en { left: 16%; right: 16%; }
.sl-card-en.long { font-size: calc(var(--cw) * .05); letter-spacing: 0; }
.sl-card { --cw: 94px; }
.sl-cardrow { gap: 10px; }
.sl-cardrow figure { width: 104px; }
.sl-cardrow.n1 .sl-card { --cw: 120px; }
.sl-cardrow.n1 figure { width: 140px; }

/* ===== ระบบหลังบ้าน: แจ้งเตือน · ติดตามงาน · รูปยืนยัน ===== */
.tabbar span[data-badge]:not([data-badge=""]) { position: relative; }
.tabbar span[data-badge]:not([data-badge=""])::after {
  content: attr(data-badge); position: absolute; top: -4px; right: -10px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 99px; background: #ff4f7b; color: #fff; font: 600 .62rem/17px "Kanit", sans-serif; text-align: center; filter: none;
}
.srv-notes .sec-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.srv-notes .btn-ghost.sm { padding: 4px 10px; font-size: .74rem; width: auto; }
.note-list { list-style: none; display: grid; gap: 8px; margin-top: 8px; }
.note-list li { display: grid; gap: 1px; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(227, 179, 255, .14); font-size: .82rem; }
.note-list li[data-note-order] { cursor: pointer; }
.note-list li.new { border-color: rgba(245, 201, 107, .55); background: rgba(245, 201, 107, .08); }
.note-list li b { font-weight: 500; color: var(--gold-2); }
.note-list li span { color: var(--text); }
.note-list li small { color: var(--muted); font-size: .7rem; }
.order-track-no { margin: 10px 0 0; padding: 9px 12px; border-radius: 12px; background: rgba(94, 231, 255, .08); border: 1px solid rgba(94, 231, 255, .3); font-size: .85rem; }
.proof-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 12px; }
.proof-media img, .proof-media video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 1px solid rgba(245, 201, 107, .35); display: block; background: #000; }
.ok-mini { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #4fd69c; color: #062b1c; font-weight: 600; flex: none; }
.pp-tag { background: rgba(94, 231, 255, .15) !important; color: #bff4ff !important; }
.qr-box img { width: 100%; height: auto; display: block; border-radius: 8px; background: #fff; }

/* ===== หมอดู: กล่องคำถามบนหน้าเว็บ ===== */
.seer-card { border-color: rgba(245, 201, 107, .5); background: linear-gradient(135deg, rgba(123, 77, 255, .22), rgba(245, 201, 107, .08)); }
.seer-card-in { display: flex; align-items: center; gap: 12px; }
.seer-card-in > div { flex: 1; display: grid; }
.seer-card-in small { color: var(--muted); font-size: .78rem; }
.seer-card-in .btn-gold { width: auto; padding: 8px 14px; font-size: .8rem; white-space: nowrap; }
.seer-ico { font-size: 1.7rem; }
.seer-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.seer-tabs button { flex: 1; padding: 8px 10px; border-radius: 99px; border: 1px solid rgba(227, 179, 255, .25); font-size: .82rem; color: var(--muted); }
.seer-tabs button.on { background: linear-gradient(135deg, var(--violet), var(--magenta)); color: #fff; border-color: transparent; }
.seer-tabs .seer-refresh { flex: 0 0 38px; padding: 0; }
.seer-list { list-style: none; display: grid; gap: 10px; margin-bottom: 12px; }
.seer-list li { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(227, 179, 255, .16); cursor: pointer; }
.seer-list li:hover { border-color: rgba(245, 201, 107, .5); }
.seer-list li > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.seer-list b { font-weight: 500; font-size: .9rem; }
.seer-list p { font-size: .8rem; color: var(--text); opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seer-list small { font-size: .7rem; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.sj-ico { font-size: 1.4rem; }
.sj-go { color: var(--muted); font-size: 1.2rem; }
.sj-tag { font-style: normal; padding: 0 8px; border-radius: 99px; border: 1px solid rgba(94, 231, 255, .5); color: #bff4ff; }
.sj-tag.gold { border-color: rgba(245, 201, 107, .6); color: var(--gold-2); }
.seer-empty { text-align: center; padding: 30px 0; }
.seer-back { width: auto; margin-bottom: 10px; padding: 5px 12px; font-size: .78rem; }
.seer-form textarea { min-height: 220px; line-height: 1.7; }
.seer-form label small { color: var(--muted); font-weight: 400; }

/* แถบเตือนหมอดูบนหน้าแรก: มีคำถามรอตอบ */
.seer-alert {
  display: flex; align-items: center; gap: 10px; width: calc(100% - 24px); margin: 6px 12px 10px; padding: 12px 14px; text-align: left;
  border-radius: 16px; border: 1.5px solid var(--gold); color: var(--text);
  background: linear-gradient(120deg, rgba(245, 201, 107, .28), rgba(123, 77, 255, .35));
  box-shadow: 0 0 0 0 rgba(245, 201, 107, .55); animation: seerPulse 1.8s ease-out infinite; position: relative; z-index: 2;
}
.seer-alert[hidden] { display: none; }
.seer-alert .sa-ico { font-size: 1.6rem; animation: seerBell 2.4s ease-in-out infinite; }
.seer-alert .sa-txt { flex: 1; display: grid; gap: 1px; min-width: 0; }
.seer-alert b { font-weight: 600; font-size: .95rem; color: var(--gold-2); }
.seer-alert small { font-size: .72rem; color: var(--text); opacity: .85; }
.seer-alert .sa-go { background: var(--gold); color: #2a1503; font-weight: 600; font-size: .78rem; padding: 6px 12px; border-radius: 99px; white-space: nowrap; }
.seer-alert.urgent { border-color: #ff5d84; background: linear-gradient(120deg, rgba(255, 93, 132, .35), rgba(123, 77, 255, .3)); animation-name: seerPulseRed; }
.seer-alert.urgent b { color: #ffd1dc; }
@keyframes seerPulse { 0% { box-shadow: 0 0 0 0 rgba(245, 201, 107, .55); } 70% { box-shadow: 0 0 0 12px rgba(245, 201, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 201, 107, 0); } }
@keyframes seerPulseRed { 0% { box-shadow: 0 0 0 0 rgba(255, 93, 132, .6); } 70% { box-shadow: 0 0 0 12px rgba(255, 93, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 93, 132, 0); } }
@keyframes seerBell { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-14deg); } 90% { transform: rotate(12deg); } 95% { transform: rotate(-6deg); } }
.seer-card.has-jobs { animation: seerPulse 1.8s ease-out infinite; border-color: var(--gold); }
.seer-card.has-jobs small { color: var(--gold-2); font-weight: 500; }
.seer-notify { margin-top: 10px; font-size: .78rem; }
@media (prefers-reduced-motion: reduce) { .seer-alert, .seer-alert .sa-ico, .seer-card.has-jobs { animation: none; } }

/* ใบผลดวงแบบถามคำถาม: กล่องคำตอบของแม่หมอ */
.sl-answer { position: relative; z-index: 1; margin: 14px 0 6px; padding: 14px 14px 12px; text-align: center;
  border: 1.5px solid rgba(242, 201, 107, .55); border-radius: 14px; background: rgba(242, 201, 107, .08); }
.sl-answer p { margin: 8px 0 0; font-size: .95rem; line-height: 1.9; color: #fff6e0; text-wrap: balance; overflow-wrap: break-word; }

/* ใบผลดวง: ทางเสริมดวง */
.sl-advice { position: relative; z-index: 1; margin: 4px 0 16px; }
.sl-season small { display: block; margin-top: 6px; text-align: center; font-size: .66rem; opacity: .7; }
.sl-advice ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.sl-advice li { position: relative; padding: 9px 12px 9px 34px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(242, 201, 107, .3);
  font-size: .86rem; line-height: 1.75; color: #f3ecff; text-align: left; }
.sl-advice li::before { content: "✦"; position: absolute; left: 12px; top: 9px; color: var(--gold-ink); }
.seer-guide { margin: 4px 0 12px; padding: 10px 14px; border-radius: 14px; background: rgba(245, 201, 107, .07); border: 1px solid rgba(245, 201, 107, .3); font-size: .8rem; }
.seer-guide summary { cursor: pointer; color: var(--gold-2); font-weight: 500; }
.seer-guide ol { margin: 8px 0 6px 18px; display: grid; gap: 4px; line-height: 1.6; }
.seer-guide b { color: var(--gold-2); font-weight: 500; }
.seer-guide small { color: var(--muted); font-size: .72rem; }

/* วัตถุมงคล: เลือกจำนวน + สต๊อก */
.pay-qty { display: flex; align-items: center; gap: 12px; margin: 4px 0 12px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); }
.qty-lbl { display: grid; gap: 1px; }
.qty-lbl span { color: var(--muted); font-size: .88rem; }
.qty-step { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.qty-step button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-2); font-size: 1.2rem; line-height: 1; }
.qty-step button:disabled { opacity: .35; }
.qty-step b { min-width: 34px; text-align: center; font-size: 1.1rem; font-weight: 600; }
.qty-lbl small { color: var(--gold-2); font-size: .74rem; }
.qty-lbl small:empty { display: none; }
.mk-stock { display: block; font-style: normal; font-size: .68rem; color: var(--gold-2); }
.mk-stock.out { color: #ff8aa6; }
.mk-buy button:disabled { opacity: .5; }

/* สินค้า: จ่ายแล้วกรอกที่อยู่จัดส่ง */
.ship-ok { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(79, 214, 156, .1); border: 1px solid rgba(79, 214, 156, .45); }
.ship-ok .ok-ring { width: 38px; height: 38px; font-size: 1.1rem; flex: none; margin: 0; }
.ship-ok div { display: grid; gap: 2px; }
.ship-ok b { font-weight: 600; color: #b9f5d8; }
.ship-ok small { color: var(--muted); font-size: .76rem; }
.ship-note { margin: 12px 2px 14px; font-size: .84rem; color: var(--text); line-height: 1.6; }
.ship-save { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); }
.ship-save input { width: auto !important; }
.hist-more { margin-top: 10px; padding: 9px; font-size: .82rem; }

/* ===== รูปโปรไฟล์: อวตาร / รูปจากเครื่อง ===== */
button.pf-avatar { border: 0; cursor: pointer; padding: 0; font-family: inherit; }
.pf-avatar img, .pf-avatar svg { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.pf-avatar.has-art { background: #1a0b3d; }
.pf-cam { position: absolute; right: -4px; bottom: -2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: .8rem; background: #2a1260; border: 2px solid var(--gold); }
.pf-avatar:hover .pf-cam { transform: scale(1.1); }
.av-now { text-align: center; padding: 6px 0 14px; }
.av-now .pf-avatar { width: 104px; height: 104px; }
.av-now p { margin-top: 6px; font-size: .82rem; color: var(--muted); }
.av-src { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.av-pick { display: flex; align-items: center; justify-content: center; padding: 12px 10px; font-size: .88rem; cursor: pointer; text-align: center; }
.av-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.av-group { margin: 4px 0 8px; font-size: .78rem; color: var(--gold-2); }
.av-grid + .av-group { margin-top: 14px; }
.av-opt { display: grid; justify-items: center; align-content: start; gap: 3px; padding: 6px 2px; border-radius: 14px; border: 1px solid transparent; background: rgba(255, 255, 255, .03); }
.av-opt svg { width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(245, 201, 107, .35); }
.av-opt small { font-size: .6rem; color: var(--muted); line-height: 1.3; text-align: center; }
.av-opt.on { border-color: var(--gold); background: rgba(245, 201, 107, .1); }
.av-opt.on svg { box-shadow: 0 0 0 3px var(--gold), 0 0 16px rgba(245, 201, 107, .5); }
.av-opt.on small { color: var(--gold-2); }
.avatar img, .avatar svg { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
@media (max-width: 420px) { .av-grid { gap: 4px; } .av-opt svg { width: 42px; height: 42px; } .av-opt small { font-size: .56rem; } } /* แถวละ 5 ทุกจอ → เต็มแถวเสมอ */

/* กล้องถ่ายรูปโปรไฟล์ */
.cam-sheet { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(5, 2, 18, .88); backdrop-filter: blur(6px); }
.cam-sheet[hidden] { display: none; }
.cam-box { width: min(420px, 100%); text-align: center; }
.cam-title { font-size: 1.05rem; color: var(--gold-2); font-weight: 600; margin-bottom: 12px; }
.cam-view { position: relative; width: min(300px, 78vw); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; overflow: hidden; background: #000;
  box-shadow: 0 0 0 4px #1a0b3d, 0 0 0 6px var(--gold), 0 0 40px rgba(245, 201, 107, .4); }
.cam-view video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam-view video.mirror { transform: scaleX(-1); }
.cam-ring { position: absolute; inset: 12%; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .35); pointer-events: none; }
.cam-msg { position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; font-size: .85rem; color: var(--text); }
.cam-msg:empty { display: none; }
.cam-tip { margin: 14px 0 16px; font-size: .82rem; color: var(--muted); }
.cam-actions { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.cam-actions .btn-ghost { padding: 10px; font-size: .82rem; }
.cam-shot { width: 68px; height: 68px; border-radius: 50%; background: radial-gradient(circle, #fff 55%, transparent 57%), var(--gold); border: 4px solid var(--gold); box-shadow: 0 0 20px rgba(245, 201, 107, .55); }
.cam-shot:disabled { opacity: .4; }
.cam-denied { background: #160b38; border: 1px solid rgba(245, 201, 107, .4); border-radius: 20px; padding: 22px 18px; display: grid; gap: 10px; }
.cam-denied[hidden], .cam-live[hidden] { display: none; }
.cam-big { font-size: 2.4rem; }
.cam-denied .cam-tip { margin: 0; }
.cam-steps { text-align: left; margin: 4px 0 8px; padding: 12px 14px 12px 34px; border-radius: 14px; background: rgba(255, 255, 255, .05); display: grid; gap: 6px; font-size: .86rem; line-height: 1.6; }
.cam-steps b { color: var(--gold-2); font-weight: 500; }

/* ===== กระดิ่งแจ้งเตือนมุมขวาบน (ข้างปุ่มภาษา) ===== */
.top-actions { position: absolute; right: max(12px, var(--gut, 12px)); top: calc(env(safe-area-inset-top, 0px) + 12px); z-index: 6; display: flex; align-items: center; gap: 8px; }
.top-actions .lang-switch { position: relative; right: auto; top: auto; }
.note-bell { position: relative; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(13, 7, 36, .55); border: 1px solid rgba(227, 179, 255, .28); color: var(--gold-2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color .2s; }
.note-bell[hidden] { display: none; }
.note-bell:hover { border-color: var(--gold); }
.note-bell svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.note-bell b { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #ff4f7b; color: #fff;
  font: 600 .64rem/18px "Kanit", sans-serif; text-align: center; box-shadow: 0 0 0 2px #0d0724; }
.note-bell b:empty { display: none; }
.note-bell.has-new svg { animation: seerBell 2.4s ease-in-out infinite; transform-origin: 50% 10%; }
.note-push { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; margin-bottom: 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(227, 179, 255, .16); }
.note-push span { display: grid; font-size: .88rem; }
.note-push small { color: var(--muted); font-size: .72rem; }
.note-push .btn-ghost.sm { width: auto; padding: 6px 16px; font-size: .8rem; }
.note-empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.note-empty span { font-size: 2.4rem; opacity: .6; }
.note-empty p { margin-top: 8px; color: var(--text); }
.note-empty small { font-size: .78rem; }
#notesPanel .note-list { margin-top: 0; }

/* สมาชิกรายเดือน: วันหมดอายุ */
.pay-expire { display: flex; align-items: center; gap: 12px; margin: 4px 0 12px; padding: 12px 14px; border-radius: 14px; background: rgba(245, 201, 107, .08); border: 1px solid rgba(245, 201, 107, .4); }
.pay-expire > span { font-size: 1.5rem; }
.pay-expire div { display: grid; gap: 1px; }
.pay-expire small { color: var(--muted); font-size: .74rem; }
.pay-expire b { color: var(--gold-2); font-size: 1rem; font-weight: 600; }
.pay-expire em { font-style: normal; color: var(--muted); font-size: .74rem; }
.pay-ok-exp { margin-top: 6px; font-size: .9rem; color: var(--text); }
.pay-ok-exp b { color: var(--gold-2); }

/* สิ่งที่ควรเลี่ยง: สีแดงชัดเจน */
.avoid-tag { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 12px 4px 6px; border-radius: 99px;
  background: rgba(239, 68, 68, .14); border: 1px solid rgba(248, 113, 113, .6); color: #fecaca; font-size: .8rem; line-height: 1.4; }
.avoid-tag b { color: #ff6b6b; font-weight: 600; }
.sw-no { position: relative; width: 18px; height: 18px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1.5px #ff6b6b; overflow: hidden; }
.sw-no::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2.5px; background: #ff3b3b; transform: translateX(-50%) rotate(45deg); }
p.avoid-tag { display: flex; width: fit-content; margin: 8px auto 0; }
.warn { color: #ff7a7a; font-weight: 500; }

/* สีที่ควรเลี่ยง: ตัวอักษรแดงไม่มีกรอบ + จุดสีขีดฆ่ามุมขวาบนของกรอบ */
.daily-grid .dg { position: relative; }
.daily-grid .dg p.avoid-txt { margin-top: 4px; color: #ff6b6b; font-size: .86rem; font-weight: 500; }
.daily-grid .dg p.avoid-txt b { color: #ff6b6b; font-weight: 700; margin-left: 2px; }
.avoid-corner { position: absolute; top: 10px; right: 12px; display: grid; justify-items: end; gap: 4px; text-align: right; }
.daily-grid .dg .avoid-corner small { color: #ff7a7a; }

/* แม่หมอกำลังคิด / กำลังพิมพ์ */
.bubble.typing { flex-direction: column; align-items: flex-start; gap: 6px; }
.bubble.typing .t-dots { display: flex; gap: 4px; }
.bubble.typing .t-step { font-size: .76rem; color: var(--lilac, #c9b4f2); animation: tStep .4s ease; }
@keyframes tStep { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.type-line { animation: typeIn .45s ease both; }
@keyframes typeIn { from { opacity: 0; filter: blur(2px); } to { opacity: 1; filter: none; } }
.bubble.writing .b-text::after { content: "▍"; color: var(--gold-2); animation: dot 1s steps(2) infinite; margin-left: 2px; }
.avoid-corner .dg-colors { display: flex; justify-content: flex-end; }
.avoid-corner .sw { display: block; width: 20px; height: 20px; min-width: 20px; }

/* ใบผลดวงประจำวัน: สีเสริมดวง 3 สี + สีที่ควรเลี่ยง */
.sl-lucky .sl-colors { grid-column: 1 / -1; }
.sl-colors b { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 12px; font-size: .84rem; }
.sl-colors span { display: inline-flex; align-items: center; gap: 5px; }
.sl-lucky .sl-avoid { border-color: rgba(255, 107, 107, .55); }
.sl-lucky .sl-avoid small, .sl-lucky .sl-avoid b { color: #ff8a8a; }

/* แถวเลื่อนแนวนอน: ปุ่มลูกศร */
.hs-wrap { position: relative; }
.hs-btn { position: absolute; top: 50%; transform: translateY(-60%); z-index: 3; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.5rem; line-height: 1; color: #2a1503; cursor: pointer;
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: 0 4px 16px rgba(0, 0, 0, .45), 0 0 0 2px rgba(13, 7, 36, .6); }
.hs-btn[hidden] { display: none; }
.hs-btn.prev { left: -6px; }
.hs-btn.next { right: -6px; }
.hs-btn:hover { transform: translateY(-60%) scale(1.08); }
.hscroll.dragging { cursor: grabbing; scroll-snap-type: none; }
.hscroll.dragging * { pointer-events: none; }
@media (hover: none) { .hs-btn { width: 32px; height: 32px; font-size: 1.25rem; } }

/* รายชื่อหมอดู: ศาสตร์ทั้งหมดเป็นป้ายเล็ก (ไม่ตัดด้วย …) */
.seer-txt .seer-sci { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.seer-sci i { font-style: normal; font-size: .66rem; line-height: 1.5; padding: 0 8px; border-radius: 99px; color: var(--muted); background: rgba(255, 255, 255, .06); border: 1px solid rgba(227, 179, 255, .18); }
.seer-price small { white-space: nowrap; }
.seer-price-box { margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(245, 201, 107, .3); display: grid; gap: 6px; }
.seer-price-box label { font-size: .84rem; color: var(--gold-2); }
.seer-price-box label small { color: var(--muted); font-size: .7rem; }
.spb-row { display: flex; align-items: center; gap: 8px; }
.spb-row input { width: 120px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(13, 7, 36, .6); color: var(--text); font: inherit; }
.spb-row span { color: var(--muted); font-size: .84rem; }
.spb-row .btn-gold { margin-left: auto; padding: 9px 16px; font-size: .82rem; }
.spb-note { color: var(--muted); font-size: .7rem; }

/* ปุ่มลูกศรแบบลูกแก้ววิเศษ: ลูกแก้วม่วงใส + วงแหวนทองหมุน + ประกายดาว */
.hs-btn { width: 42px; height: 42px; color: var(--gold-2); font-size: 0; overflow: visible;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .55), rgba(190, 150, 255, .35) 22%, rgba(76, 29, 149, .92) 58%, #1a0b3d 100%);
  border: 1px solid rgba(245, 201, 107, .75);
  box-shadow: 0 0 14px rgba(177, 140, 255, .7), 0 0 28px rgba(245, 201, 107, .25), inset 0 -6px 12px rgba(10, 4, 30, .6), inset 0 2px 6px rgba(255, 255, 255, .25);
  transition: transform .25s, box-shadow .25s; }
.hs-btn::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 15%, rgba(245, 201, 107, .9) 22%, transparent 32% 65%, rgba(209, 77, 255, .8) 72%, transparent 82%);
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 64%, #000 72%, transparent 74%);
  mask: radial-gradient(circle, transparent 62%, #000 64%, #000 72%, transparent 74%);
  animation: hsSpin 4.5s linear infinite; }
.hs-btn svg { position: relative; width: 20px; height: 20px; fill: none; stroke: var(--gold-2); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(245, 201, 107, .9)); }
.hs-spark { position: absolute; top: 2px; right: 4px; width: 8px; height: 8px; opacity: 0; pointer-events: none;
  background: radial-gradient(circle, #fff 0 30%, transparent 32%), conic-gradient(from 45deg, transparent 0 10%, #fff3c4 12% 13%, transparent 15% 35%, #fff3c4 37% 38%, transparent 40% 60%, #fff3c4 62% 63%, transparent 65% 85%, #fff3c4 87% 88%, transparent 90%);
  transition: opacity .2s; }
.hs-btn:hover { transform: translateY(-60%) scale(1.1); box-shadow: 0 0 20px rgba(209, 77, 255, .85), 0 0 40px rgba(245, 201, 107, .45), inset 0 -6px 12px rgba(10, 4, 30, .6), inset 0 2px 6px rgba(255, 255, 255, .3); }
.hs-btn:hover .hs-spark { opacity: 1; animation: hsTwinkle .9s ease-in-out infinite; }
.hs-btn:active { transform: translateY(-60%) scale(.94); }
@keyframes hsSpin { to { transform: rotate(360deg); } }
@keyframes hsTwinkle { 0%, 100% { transform: scale(.6) rotate(0); opacity: .6; } 50% { transform: scale(1.2) rotate(45deg); opacity: 1; } }
@media (hover: none) { .hs-btn { width: 36px; height: 36px; } .hs-btn svg { width: 17px; height: 17px; } }
@media (prefers-reduced-motion: reduce) { .hs-btn::before, .hs-btn:hover .hs-spark { animation: none; } }

/* การ์ดหมอดูแนะนำ: ชื่อ 2 บรรทัด · เด่นเรื่อง 2 บรรทัด · จำนวนศาสตร์ชิดขอบล่าง → ทุกใบเรียงแนวเดียวกัน */
.feat-card b { min-height: calc(2 * 1.35em); display: flex; align-items: center; justify-content: center;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.feat-card small { min-height: calc(2 * 1.45em); line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.feat-card .feat-meta { margin-top: auto; padding-top: 4px; }
.seer-feat { align-items: stretch; }

/* หน้าหมอดู: เว้นระยะก่อนหัวข้อ “เลือกตามเรื่องที่อยากรู้” และชิปมีไอคอน */
#seersPanel .cat-grid { margin-bottom: 26px; }
#seersPanel .strong-chips { margin-bottom: 22px; }
.chip-s span { margin-right: 4px; }
.skill-head { margin: -8px 0 8px; font-size: .8rem; color: var(--gold-2); }
.skill-head small { color: var(--muted); font-size: .7rem; margin-left: 4px; }
.skill-chips .chip-s em { font-style: normal; font-size: .64rem; margin-left: 5px; padding: 0 6px; border-radius: 99px; background: rgba(255, 255, 255, .1); color: var(--muted); }
.skill-chips .chip-s.on em { background: rgba(42, 21, 3, .15); color: #2a1503; }
.skill-chips .chip-s.more { border-style: dashed; color: var(--gold-2); }

/* ไอคอนแท็บ “ดูดวง”: วงล้อจักรราศี (แทนรูปบ้าน) */
.tabbar .tab-wheel { width: 1.6rem; height: 1.6rem; display: grid; place-items: center; filter: none; }
.tab-wheel svg { width: 100%; height: 100%; fill: none; stroke: #b3a6d9; stroke-width: 1.4; stroke-linecap: round; transition: stroke .2s; }
.tab-wheel .tw-ring2 { stroke-dasharray: 2 2.2; opacity: .8; }
.tab-wheel .tw-star { fill: #b3a6d9; stroke: none; }
.tabbar [aria-current="page"] .tab-wheel svg { stroke: var(--gold); filter: drop-shadow(0 0 4px rgba(245, 201, 107, .6)); }
.tabbar [aria-current="page"] .tab-wheel .tw-star { fill: var(--gold-2); }
.tabbar [aria-current="page"] .tab-wheel .tw-spokes { animation: twSpin 18s linear infinite; transform-origin: 16px 16px; }
@keyframes twSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tabbar .tab-wheel .tw-spokes { animation: none; } }

/* ไอคอนแท็บ “หมอดู”: แม่หมอคลุมผ้ากับลูกแก้ว (แทน 🔮) */
.tabbar .tab-seer { width: 1.6rem; height: 1.6rem; display: grid; place-items: center; filter: none; }
.tab-seer svg { width: 100%; height: 100%; fill: none; stroke: #b3a6d9; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.tab-seer .ts-face { fill: rgba(179, 166, 217, .15); }
.tab-seer .ts-ball { fill: rgba(179, 166, 217, .25); }
.tab-seer .ts-star { fill: #b3a6d9; stroke: none; }
.tabbar [aria-current="page"] .tab-seer svg { stroke: var(--gold); filter: drop-shadow(0 0 4px rgba(245, 201, 107, .6)); }
.tabbar [aria-current="page"] .tab-seer .ts-ball { fill: rgba(177, 140, 255, .55); stroke: var(--gold-2); animation: tsGlow 2.4s ease-in-out infinite; }
.tabbar [aria-current="page"] .tab-seer .ts-star { fill: var(--gold-2); }
@keyframes tsGlow { 50% { fill: rgba(209, 77, 255, .75); } }
@media (prefers-reduced-motion: reduce) { .tabbar .tab-seer .ts-ball { animation: none; } }

/* ค้นหาหมอดู: ศาสตร์ที่ตรงกับคำค้นเน้นสีทอง */
.seer-sci i.hit { color: #2a1503; background: linear-gradient(135deg, var(--gold-2), var(--gold)); border-color: transparent; font-weight: 600; }
.seer-noresult { text-align: center; padding: 30px 10px; display: grid; gap: 8px; justify-items: center; }
.seer-noresult p { color: var(--text); }
.seer-noresult small { color: var(--muted); font-size: .78rem; }
.seer-noresult .btn-ghost { width: auto; padding: 8px 18px; margin-top: 6px; }
.pf-en-name { margin: 2px auto 4px; padding: 3px 12px; border-radius: 99px; font-size: .74rem; color: var(--gold-2); border: 1px dashed rgba(245, 201, 107, .5); background: transparent; cursor: pointer; }

/* ===== ปุ่ม “?” มุมซ้ายบน → หน้าเกี่ยวกับเรา / คำถามที่พบบ่อย (เห็นทั้งผู้เยี่ยมชมและสมาชิก) ===== */
.help-btn { position: absolute; left: max(12px, var(--gut, 12px)); top: calc(env(safe-area-inset-top, 0px) + 12px); z-index: 6;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(13, 7, 36, .55); border: 1px solid rgba(227, 179, 255, .28); color: var(--gold-2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color .2s; }
.help-btn:hover, .help-btn:focus-visible { border-color: var(--gold); }
.help-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ปุ่มออกจากระบบและลบข้อมูลในเครื่องนี้ (เครื่องสาธารณะ) */
.pf-wipe-note { text-align: center; margin-top: 6px; }
.pf-wipe { background: none; border: 0; padding: 4px 2px; font: inherit; color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pf-wipe:hover, .pf-wipe:focus-visible { color: var(--gold); }
.pf-wipe-note small { color: var(--muted); font-size: .72rem; }

/* รูปสินค้าที่ผู้ดูแลอัปโหลด (แทนไอคอนอีโมจิ) */
.mk-pi img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.mk-pi:has(img) { background: #1b0e3d; overflow: hidden; }

/* โค้ดส่วนลดในขั้นสรุปรายการ */
.pay-coupon { margin: 4px 0 8px; }
.pay-coupon .link-btn { background: none; border: 0; padding: 6px 2px; font: inherit; font-size: .86rem; color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.coupon-box { display: flex; gap: 8px; margin: 6px 0 2px; }
.coupon-box input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .06em; }
.coupon-box .btn-ghost { flex: none; padding: 0 16px; }
.coupon-on { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(79, 214, 156, .1); border: 1px solid rgba(79, 214, 156, .35); font-size: .86rem; }
.coupon-msg { margin: 4px 2px 0; font-size: .78rem; color: var(--muted); min-height: 1.2em; }
.coupon-msg.bad { color: #ff8fa6; }
.qr-disc { font-size: .72rem; color: #1b7a4f; margin: -2px 0 6px; }

/* สินค้า: หน้ารายละเอียด · รูปหลายรูป · ตัวเลือก */
.mk-more { display: block; color: var(--gold); opacity: .8; }
.mk-detail { display: grid; gap: 10px; padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(227, 179, 255, .18); }
.mk-back { justify-self: start; }
.mk-gal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 14px; background: #1b0e3d; scrollbar-width: none; }
.mk-gal img { flex: none; width: 100%; aspect-ratio: 1; object-fit: cover; scroll-snap-align: center; }
.mk-thumbs { display: flex; gap: 6px; overflow-x: auto; }
.mk-thumbs button { flex: none; padding: 0; border: 1px solid rgba(227, 179, 255, .3); border-radius: 10px; overflow: hidden; background: none; cursor: pointer; }
.mk-thumbs img { display: block; width: 44px; height: 44px; object-fit: cover; }
.mk-noimg { display: grid; place-items: center; font-size: 4rem; aspect-ratio: 2; border-radius: 14px; background: radial-gradient(circle at 35% 30%, #fff3, #4a2486); }
.mk-opt { border: 0; padding: 0; margin: 0; }
.mk-opt legend { font-size: .82rem; opacity: .85; margin-bottom: 6px; }
.mk-opt > div { display: flex; flex-wrap: wrap; gap: 6px; }
.mk-chip { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(227, 179, 255, .35); background: rgba(255, 255, 255, .06); color: inherit; font: inherit; font-size: .85rem; cursor: pointer; }
.mk-chip.on { background: var(--gold); color: #2a1450; border-color: var(--gold); font-weight: 600; }
.mk-chip:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.mk-price { display: flex; align-items: center; gap: 10px; margin: 0; }
.mk-price b { color: var(--gold); font-size: 1.15rem; }
.mk-sel { margin: 0; font-size: .82rem; opacity: .8; }

/* วันเกิด พ.ศ. (เลือก วัน · เดือน · ปี) */
.bd { display: grid; grid-template-columns: .8fr 1.5fr 1.1fr; gap: 6px; }
.bd select { min-width: 0; width: 100%; }
.bd select { font: inherit; font-size: .9rem; color: var(--text); padding: 11px 8px; border-radius: 12px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(245, 201, 107, .2); color-scheme: dark; }
.bd select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 201, 107, .18); }
.bd select option { background: #1d0f42; color: #f1eaff; }
@media (max-width: 699px) { .bd select { font-size: 16px; } }

/* รูปที่ลูกค้าส่งในหน้าคำสั่งซื้อ */
.order-photos { margin-top: 12px; }
.order-photos > small { display: block; color: var(--muted); margin-bottom: 6px; }
.order-photos figure { margin: 0; display: grid; gap: 4px; }
.order-photos figcaption { font-size: .75rem; text-align: center; color: var(--muted); }

.trk-actions { display: block; margin-top: 6px; font-size: .82rem; }
.trk-actions .link, .trk-actions a { color: var(--gold-2, #f0c878); }

/* ===== ปุ่มสลับโหมดมืด/สว่าง (theme.js) ===== */
.theme-btn { position: relative; width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(13, 7, 36, .55); border: 1px solid rgba(227, 179, 255, .28); color: var(--gold-2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color .2s, background .2s; }
.theme-btn:hover { border-color: var(--gold); }
.theme-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.theme-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .ic-sun { display: none; }
html[data-theme="light"] .theme-btn .ic-sun { display: grid; }
html[data-theme="light"] .theme-btn .ic-moon { display: none; }
html:not([data-theme="light"]) .theme-btn .ic-moon { display: grid; }
/* ยังไม่ถูกย้ายเข้าแถบมุมขวาบน (ช่วงโหลด) → วางข้างปุ่มภาษาไว้ก่อน */
#app > .theme-btn { position: absolute; z-index: 6; top: calc(env(safe-area-inset-top, 0px) + 12px); right: calc(max(12px, var(--gut, 12px)) + 88px); }


/* ===== หน้าตั้งค่า (settings.js) ===== */
.pf-gear { justify-self: end; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--gold-2);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(227, 179, 255, .22); transition: background .2s, border-color .2s, transform .35s; }
.pf-gear:hover { border-color: var(--gold); }
.pf-gear:active { transform: rotate(60deg); }
.pf-gear:focus-visible, .st-row:focus-visible, .st-link:focus-visible, .st-switch:focus-visible, .st-seg button:focus-visible, .st-logout:focus-visible, .st-wipe:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pf-gear svg, .st-ico svg, .st-chev svg, .st-logout svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.st-body { display: grid; gap: 18px; align-content: start; }
.st-group h3 { margin: 0 0 8px 6px; font-size: .82rem; font-weight: 500; color: var(--muted); }
.st-card { border-radius: 20px; overflow: hidden; background: linear-gradient(170deg, rgba(60, 26, 120, .5), rgba(16, 7, 40, .7)); border: 1px solid rgba(227, 179, 255, .18); }
.st-row, .st-account { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 12px 16px; text-align: left; color: var(--text); text-decoration: none; }
.st-row + .st-row, .st-row + .st-account, .st-account + .st-row { border-top: 1px solid rgba(227, 179, 255, .12); }
button.st-row, a.st-row { cursor: pointer; transition: background .15s; }
button.st-row:hover, a.st-row:hover { background: rgba(255, 255, 255, .05); }
.st-ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--gold-2); background: rgba(245, 201, 107, .1); border: 1px solid rgba(245, 201, 107, .22); }
.st-tx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.st-tx b { font-size: .98rem; font-weight: 500; line-height: 1.35; }
.st-tx small { font-size: .78rem; line-height: 1.45; color: var(--muted); }
.st-chev { flex: none; color: var(--muted); display: grid; }
.st-chev svg { width: 18px; height: 18px; }
.st-state { flex: none; font-size: .8rem; color: var(--muted); }
.st-account { gap: 14px; }
.st-avatar { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; overflow: hidden; font-weight: 600; color: #2a1503; background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.st-avatar img, .st-avatar svg { width: 100%; height: 100%; object-fit: cover; }
.st-link { flex: none; padding: 6px 4px; font-size: .88rem; font-weight: 500; color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.st-seg { flex: none; display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(227, 179, 255, .16); }
.st-seg button { min-width: 48px; padding: 6px 12px; border-radius: 999px; font-size: .84rem; color: var(--muted); transition: background .2s, color .2s; }
.st-seg button.on { color: #2a1503; font-weight: 600; background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.st-switch { flex: none; position: relative; width: 50px; height: 30px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(227, 179, 255, .25); transition: background .2s; }
.st-switch i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); transition: transform .2s; }
.st-switch[aria-checked="true"] { background: #3f9b83; border-color: transparent; }
.st-switch[aria-checked="true"] i { transform: translateX(20px); }
.st-switch:disabled { opacity: .6; }
.st-row.danger .st-ico { color: #ff8fa6; background: rgba(255, 79, 123, .12); border-color: rgba(255, 79, 123, .3); }
.st-row.danger .st-tx b { color: #ff8fa6; }
.st-logout { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; border-radius: 18px; font-size: 1rem; font-weight: 500; color: #ffb3c2;
  background: rgba(255, 79, 123, .1); border: 1px solid rgba(255, 79, 123, .35); transition: background .2s; }
.st-logout:hover { background: rgba(255, 79, 123, .18); }
.st-foot { text-align: center; font-size: .78rem; color: var(--muted); line-height: 1.7; }
.st-foot small { font-size: .72rem; }
.st-wipe { padding: 4px 2px; color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; font-size: .8rem; }
@media (prefers-reduced-motion: reduce) { .pf-gear, .st-switch, .st-switch i, .st-seg button { transition: none; } }
#policyDialog.readonly #policyAgree { display: none; }
#policyDialog.readonly footer [data-policy-close] { flex: 1; }
.pf-note a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 2px; }
.pf-note a:hover, .pf-note a:focus-visible { color: var(--gold); }

/* ใบผลดวง: ภาพไพ่จริงจากสำรับที่ลูกค้าเลือก */
.sl-card.sl-photo { height: calc(var(--cw) * var(--ratio, 1.5)); background: #1e0b4c; overflow: hidden; }
.sl-card.sl-photo .sl-card-in { overflow: hidden; border-radius: 9px; }
.sl-card.sl-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ===== ใบผลดวงไพ่ทาโรต์: โทนสีตามสำรับที่ลูกค้าเลือก + ตกแต่งด้วยภาพไพ่ที่เปิดได้ ===== */
/* ภาพไพ่จาง ๆ เป็นพื้นหลัง (อยู่ใต้ข้อความ) และแถบไพ่ท้ายใบ */
.slip.has-deco > *:not(.sl-deco) { position: relative; z-index: 1; }
.sl-deco { position: absolute !important; inset: 0; z-index: 0 !important; overflow: hidden; pointer-events: none; }
.sl-deco img { position: absolute; width: 150px; height: auto; border-radius: 12px; opacity: var(--deco-op, .13); }
.sl-deco .d0 { left: -46px; top: 36%; transform: rotate(-14deg); }
.sl-deco .d1 { right: -50px; top: 58%; transform: rotate(12deg); }
.sl-deco .d2 { left: -38px; top: 80%; transform: rotate(8deg); }
.sl-strip { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 6px 0 0; padding: 16px 0 22px; border-top: 2px dotted var(--line, rgba(242, 201, 107, .55)); }
.sl-strip span { width: 46px; border-radius: 6px; overflow: hidden; box-shadow: 0 4px 10px rgba(0, 0, 0, .25); }
.sl-strip span.rev img { transform: rotate(180deg); }
.sl-strip img { display: block; width: 100%; height: auto; }
.sl-strip i { font-style: normal; color: var(--gold-ink); font-size: .8rem; }

/* โทนสีต่อสำรับ (อเมทิสต์ = ม่วงทองแบบเดิม ไม่ต้องตั้งค่า) */
.slip[data-deck="classic"] { --paper: #f3e7c9; --glow-a: rgba(255, 255, 255, .65); --glow-b: rgba(31, 58, 107, .12); --ink: #1f2a44; --gold-ink: #8a6a1f;
  --muted-ink: #6b6250; --body: #3a3528; --verse: #1f3a6b; --line: rgba(138, 106, 31, .5); --soft: rgba(31, 58, 107, .06); --deco-op: .16; }
.slip[data-deck="picnic"] { --paper: #efe7fa; --glow-a: rgba(249, 231, 176, .6); --glow-b: rgba(156, 134, 196, .3); --ink: #3d2f5c; --gold-ink: #a8741c;
  --muted-ink: #7a6a98; --body: #45386a; --verse: #5b3f9c; --line: rgba(156, 134, 196, .65); --soft: rgba(156, 134, 196, .12); --deco-op: .18; }
.slip[data-deck="doodles"] { --paper: #fffbea; --glow-a: rgba(255, 216, 77, .5); --glow-b: rgba(255, 241, 168, .7); --ink: #2e2a26; --gold-ink: #c97c00;
  --muted-ink: #6e665c; --body: #3b3631; --verse: #2e2a26; --line: rgba(46, 42, 38, .45); --soft: rgba(255, 216, 77, .18); --deco-op: .2; }
.slip[data-deck="whiskers"] { --paper: #2d3550; --glow-a: rgba(243, 213, 138, .2); --glow-b: rgba(120, 140, 200, .25); --ink: #f3ead6; --gold-ink: #f3d58a;
  --muted-ink: #b9b3c9; --body: #e6e0f0; --verse: #fff3d6; --line: rgba(243, 213, 138, .45); --soft: rgba(255, 255, 255, .06); --deco-op: .14; }
.slip[data-deck="love"] { --paper: #fff2f6; --glow-a: rgba(255, 179, 199, .6); --glow-b: rgba(143, 211, 255, .3); --ink: #4a2238; --gold-ink: #d6406f;
  --muted-ink: #a26b85; --body: #5a3348; --verse: #d6406f; --line: rgba(244, 166, 192, .85); --soft: rgba(255, 179, 199, .18); --deco-op: .2; }

.slip[data-deck]:not([data-deck="amethyst"]) {
  background: radial-gradient(130% 55% at 50% 0%, var(--glow-a), transparent 72%), radial-gradient(120% 40% at 50% 78%, var(--glow-b), transparent 70%), var(--paper);
  box-shadow: 0 0 0 1px var(--line), 0 20px 50px rgba(0, 0, 0, .5); color: var(--ink); }
.slip[data-deck="doodles"] { box-shadow: 0 0 0 2px #2e2a26, 0 20px 50px rgba(0, 0, 0, .5); }
.slip[data-deck]:not([data-deck="amethyst"]) .sl-logo { color: var(--gold-ink); text-shadow: none; }
.slip[data-deck]:not([data-deck="amethyst"]) .sl-type,
.slip[data-deck]:not([data-deck="amethyst"]) .sl-cards,
.slip[data-deck]:not([data-deck="amethyst"]) .sl-item p,
.slip[data-deck]:not([data-deck="amethyst"]) .sl-item em,
.slip[data-deck]:not([data-deck="amethyst"]) .sl-cardrow figcaption small,
.slip[data-deck]:not([data-deck="amethyst"]) .sl-story p i { color: var(--muted-ink); }
.slip[data-deck]:not([data-deck="amethyst"]) .sl-item small,
.slip[data-deck]:not([data-deck="amethyst"]) .sl-overall,
.slip[data-deck]:not([data-deck="amethyst"]) .sl-story p b,
.slip[data-deck]:not([data-deck="amethyst"]) .sl-cardrow figcaption b { color: var(--gold-ink); }
.slip[data-deck]:not([data-deck="amethyst"]) .sl-item b { color: var(--ink); }
.slip[data-deck]:not([data-deck="amethyst"]) .sl-cardrow figcaption em { color: var(--gold-ink); border-color: var(--line); }
.slip[data-deck]:not([data-deck="amethyst"]) .sl-verse { border-color: var(--line); }
.slip[data-deck]:not([data-deck="amethyst"]) .sl-verse p { color: var(--verse); text-shadow: none; }
.slip[data-deck]:not([data-deck="amethyst"]) .sl-story p,
.slip[data-deck]:not([data-deck="amethyst"]) .sl-total p,
.slip[data-deck]:not([data-deck="amethyst"]) .sl-answer p,
.slip[data-deck]:not([data-deck="amethyst"]) .sl-blocks p,
.slip[data-deck]:not([data-deck="amethyst"]) .sl-advice li,
.slip[data-deck]:not([data-deck="amethyst"]) .sl-lucky b { color: var(--body); }
.slip[data-deck]:not([data-deck="amethyst"]) .sl-overall::before,
.slip[data-deck]:not([data-deck="amethyst"]) .sl-overall::after { border-top-color: var(--line); }
.slip[data-deck]:not([data-deck="amethyst"]) .sl-stars { color: var(--gold-ink); }
.slip[data-deck]:not([data-deck="amethyst"]) .sl-stars i { color: var(--line); }
.slip[data-deck]:not([data-deck="amethyst"]) .sl-advice li,
.slip[data-deck]:not([data-deck="amethyst"]) .sl-lucky div,
.slip[data-deck]:not([data-deck="amethyst"]) .sl-answer { background: var(--soft); border-color: var(--line); }
.slip[data-deck]:not([data-deck="amethyst"]) .sl-lucky small { color: var(--muted-ink); }
.slip[data-deck]:not([data-deck="amethyst"]) .sl-stamp { background: var(--paper); color: var(--gold-ink); border-color: var(--gold-ink); box-shadow: none; }
.slip[data-deck]:not([data-deck="amethyst"]) .sl-spark path { fill: var(--gold-ink); stroke: none; }
.slip[data-deck]:not([data-deck="amethyst"]) .sl-card { box-shadow: 0 8px 18px rgba(0, 0, 0, .22); }
.slip[data-deck]:not([data-deck="amethyst"]) .sl-card.sl-photo { background: var(--paper); }
