/* Gara Shop — หน้าร้าน
   UI ทั้งหมดเป็น CSS ค่าสี/ขนาดวัดจากแบบ Canva · ภาพวาดอย่างเดียวที่เป็นรูป
   กรอบทุกใบใช้แผ่นป้าย 9-slice จากชุด asset (btn-*.webp slice 58, มิ้นต์ 62)
   ย่อ border-width ต้องย่อ border-image-width ด้วยเสมอ ไม่งั้นมุมเบี้ยว */

:root{
  --panel-c:#e4ccb0;  --edge:#fffcf6;
  --on-a:#d1ecfd;     --on-ink:#2c6fa6;
  --mint-edge:#cfefe2;
  --ink:#3e2c1e;  --ink-2:#6b4a2f;  --ink-soft:#8a6b4f;  --gold:#a4702f;
}
*{box-sizing:border-box}
body{
  margin:0; min-height:100vh; overflow-x:hidden;
  font-family:'Mitr',system-ui,sans-serif; font-weight:400; color:var(--ink);
  background:#6d4a34;
}
.bg{position:fixed; inset:0; z-index:-2;
  background:url(../img/bg-hall-blur.webp) center/cover no-repeat #6d4a34}
.bg::after{content:''; position:absolute; inset:0;
  background:radial-gradient(78% 62% at 50% 34%, rgba(58,36,22,.18) 40%, rgba(58,36,22,.55) 100%)}
img{max-width:100%}
button{font-family:inherit; color:inherit}
h1,h2,h3,h4,p{margin:0}
.muted{color:var(--ink-soft)}
.center{text-align:center}

/* ═══════════════════ ชิ้นส่วนกลาง ═══════════════════ */
.panel{
  background:none; border:34px solid transparent;
  border-image:url(../img/btn-cream.webp) 58 fill / 34px stretch;
  padding:0 6px 8px; margin-bottom:18px;
  filter:drop-shadow(0 7px 0 rgba(90,62,42,.16)) drop-shadow(0 14px 20px rgba(56,36,22,.22));
}
/* ป้ายหัวเรื่อง กว้างตามข้อความ */
.chip{
  width:max-content; min-width:min(340px,100%); max-width:100%; min-height:95px; margin:0 auto 22px;
  background:none; border:26px solid transparent;
  border-image:url(../img/btn-cream.webp) 58 fill / 26px stretch;
  display:grid; place-items:center; padding:2px 8px;
  filter:drop-shadow(0 5px 0 rgba(90,62,42,.16));
}
.chip h2{font-size:30px; font-weight:600; color:var(--ink-2); line-height:1.25;
  text-decoration:underline; text-underline-offset:5px; text-decoration-thickness:3px}
.tile{background:none; border:28px solid transparent;
  border-image:url(../img/btn-cream.webp) 58 fill / 28px stretch;
  filter:drop-shadow(0 6px 0 rgba(90,62,42,.16))}
.whitecard{background:none; border:32px solid transparent;
  border-image:url(../img/btn-white.webp) 58 fill / 32px stretch; padding:2px 6px;
  filter:drop-shadow(0 6px 0 rgba(90,62,42,.16))}
.subpanel{background:none; border:26px solid transparent;
  border-image:url(../img/btn-cream.webp) 58 fill / 26px stretch; padding:0 4px 6px;
  filter:drop-shadow(0 6px 0 rgba(90,62,42,.16))}
.subpanel h4{text-align:center; font-size:24px; font-weight:500; color:#fffdf7; padding:12px 10px;
  text-shadow:0 2px 0 rgba(150,110,74,.8)}
.plain-title{text-align:center; font-size:30px; font-weight:500; color:#fffdf7;
  text-shadow:0 3px 0 rgba(146,106,70,.75), 0 6px 14px rgba(60,40,25,.3); margin-bottom:14px}
.note{margin-top:18px; text-align:center; font-size:19px; color:var(--ink-2)}
.note a{color:var(--on-ink)}
.note.testnote{background:#fff4d6; border:3px solid #f0d79a; border-radius:16px;
  padding:10px 16px; color:#8a6320; display:inline-block; margin:14px auto 0}
@media(max-width:620px){
  .panel,.whitecard{border-width:18px; border-image-width:18px}
  .chip,.namechip,.subpanel,.tile{border-width:16px; border-image-width:16px}
  .chip{width:100% !important}
}

/* ปุ่ม: มิ้นต์ = ปกติ · ชมพู = การกระทำหลัก · ขาว = รอง/ยกเลิก */
.mint{
  border:26px solid transparent;
  border-image:url(../img/btn-mint.webp) 62 fill / 26px stretch;
  background:none; color:#fff; font-family:'Mitr'; font-weight:500; font-size:26px; line-height:1.15;
  text-shadow:0 2px 3px rgba(38,92,76,.55);
  padding:2px 10px; min-height:74px; cursor:pointer; transition:transform .12s ease;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  filter:drop-shadow(0 5px 0 rgba(60,120,100,.28));
}
.mint:hover{transform:translateY(-2px)} .mint:active{transform:translateY(3px)}
.mint:disabled{opacity:.55; cursor:not-allowed; transform:none}
.mint.sm{font-size:19px; min-height:58px; border-width:20px; border-image-width:20px}
.mint.pink{border-image-source:url(../img/btn-pink.webp);
  text-shadow:0 2px 3px rgba(150,70,110,.5); filter:drop-shadow(0 5px 0 rgba(150,90,110,.28))}
.mint.plain{border-image-source:url(../img/btn-white.webp); color:var(--ink-2);
  text-shadow:none; filter:drop-shadow(0 5px 0 rgba(90,62,42,.2))}
a.mint,a.cancel{display:inline-flex; align-items:center; justify-content:center;
  text-align:center; text-decoration:none}
.linkbtn{background:none; border:0; padding:0; cursor:pointer; font-family:inherit;
  font-size:inherit; color:var(--on-ink); text-decoration:underline}
.modalrow{display:flex; gap:10px; justify-content:center; flex-wrap:wrap}
[role=button]:focus-visible,.slide:focus-visible{outline:4px solid #fff; outline-offset:3px; border-radius:6px}

/* ใบดวงแทนคำว่า "ดวง" ตรงที่เป็นตัวเลข — ขนาดผูกกับ font-size */
.lv{display:inline-flex; align-items:center; gap:.28em; white-space:nowrap}
.lv img{width:1.05em; height:1.05em; object-fit:contain; flex:none;
  filter:drop-shadow(0 1px 1px rgba(90,62,42,.25))}
.lv.big{font-weight:500; color:var(--gold)}
.lv.big img{width:1.25em; height:1.25em}

/* ═══════════════════ หน้าปก ═══════════════════ */
#splash{min-height:100svh; display:grid; place-items:center; padding:12px}
.hero{position:relative; width:100%; max-width:1440px; aspect-ratio:1440/900;
  background:url(../img/bg-hall.webp) center/cover no-repeat;
  border-radius:18px; overflow:hidden; box-shadow:0 18px 44px rgba(35,20,10,.45)}
.hero::before{content:''; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(72% 58% at 50% 42%, rgba(60,35,20,0) 40%, rgba(60,35,20,.34) 100%)}
.hero::after{content:''; position:absolute; inset:0; pointer-events:none; border-radius:inherit;
  background:linear-gradient(105deg, transparent 42%, rgba(255,255,255,.20) 50%, transparent 58%);
  background-size:260% 100%; animation:sweep 8s ease-in-out infinite}
.hero > *{position:relative; z-index:1}
.hero .brandlogo{position:absolute; left:50%; top:9%; width:53%; max-width:none;
  transform:translateX(-50%); pointer-events:none;
  filter:drop-shadow(0 6px 10px rgba(60,30,15,.5)); animation:logoFloat 6s ease-in-out infinite}
/* ตัวอักษร GO วาดอยู่ในภาพแล้ว */
.hero .go{position:absolute; left:50%; top:52%; width:25%; transform:translateX(-50%);
  border:0; padding:0; background:none; cursor:pointer; line-height:0;
  animation:goPulse 2.8s ease-in-out infinite}
.hero .go img{width:100%; display:block; filter:drop-shadow(0 6px 8px rgba(60,30,15,.4))}
.hero .go:hover{animation-play-state:paused; transform:translateX(-50%) translateY(-4px) scale(1.03)}
.hero .go:active{transform:translateX(-50%) translateY(3px)}
.hero .enter{position:absolute; left:50%; top:74%; width:min(25%,320px);
  transform:translateX(-50%); font-size:clamp(13px,1.7vw,27px); min-height:0;
  aspect-ratio:334/98; padding:0;
  border-width:clamp(9px,1.55vw,26px); border-image-width:clamp(9px,1.55vw,26px)}
.hero .enter:hover{transform:translateX(-50%) translateY(-3px)}
.hero .enter:active{transform:translateX(-50%) translateY(3px)}
.hero .go:focus-visible,.hero .enter:focus-visible{outline:3px solid #fff; outline-offset:4px}
@media(max-width:620px){
  #splash{padding:8px}
  .hero{max-width:none; aspect-ratio:auto; height:calc(100svh - 16px); border-radius:14px}
  .hero .brandlogo{top:14%; width:82%}
  .hero .go{top:46%; width:60%}
  .hero .enter{top:64%; width:min(58%,300px); border-width:14px; border-image-width:14px; font-size:19px}
}

/* ═══════════════════ โครงแอป ═══════════════════ */
#app{display:none; padding:12px 12px 50px}
#app.on{display:block; animation:fade .3s ease both}
.wrap{max-width:1300px; margin:0 auto}
main{max-width:1160px; margin:0 auto}

.logo{display:block; margin:0 auto 6px; border:0; padding:0; background:none; cursor:pointer;
  line-height:0; transition:transform .15s ease}
.logo img{height:74px; width:auto; display:block; filter:drop-shadow(0 4px 6px rgba(50,30,16,.45))}
.logo:hover{transform:translateY(-2px) scale(1.02)}

.head{position:relative; display:flex; justify-content:center; align-items:center;
  padding-right:92px; margin-bottom:10px}
.nav{display:flex; justify-content:center; align-items:center; gap:6px; flex-wrap:wrap}
.pill{
  width:200px; height:63px; flex:none;
  border:22px solid transparent;
  border-image:url(../img/btn-cream.webp) 58 fill / 22px stretch;
  background:none; font-size:20px; font-weight:500; color:var(--ink); cursor:pointer;
  display:grid; place-items:center; transition:transform .12s ease;
  filter:drop-shadow(0 4px 0 rgba(90,62,42,.18));
}
.pill:hover{transform:translateY(-3px)}
/* ป้ายฟ้าเป็นไฟล์แยก (CSS filter จะย้อมตัวหนังสือไปด้วย) */
.pill.on{color:var(--on-ink); border-image-source:url(../img/btn-blue.webp);
  filter:drop-shadow(0 4px 0 rgba(60,100,130,.2))}
.purse{width:auto; min-width:150px; padding:0 20px; font-weight:500; color:var(--ink-2)}
.purse b{font-weight:600; color:var(--gold)}
.ava{position:absolute; right:0; top:50%; transform:translateY(-50%);
  width:76px; height:76px; border:0; padding:0; background:none; cursor:pointer; line-height:0}
.ava img{width:100%; height:100%; display:block; transition:transform .12s ease}
.ava:hover img{transform:scale(1.07)}
.ava img.custom,.idrow img.custom,.avapick img.custom{
  border-radius:50%; object-fit:cover; background:#fff;
  border:3px solid var(--edge); box-shadow:0 3px 0 rgba(90,62,42,.2)}
@media(max-width:1420px){
  .head{padding-right:0; flex-wrap:wrap; gap:8px}
  .ava{position:static; transform:none; order:-1; width:60px; height:60px}
  .pill{width:170px; height:56px; font-size:18px}
  .purse{min-width:130px; padding:0 14px}
}
@media(max-width:620px){
  .logo img{height:52px}
  .pill{width:auto; min-width:0; flex:0 1 auto; padding:0 4px; height:46px; font-size:14px;
    border-width:13px; border-image-width:13px}
  .purse{padding:0 12px}
  #app{padding:8px 6px 40px}
}

.foot{text-align:center; margin-top:22px; color:#f4e6d4; font-size:14px; font-weight:300; opacity:.9}
.foot a,.foot button{color:#ffe6c6}
.foot button{background:none; border:0; text-decoration:underline; cursor:pointer; font-family:inherit; font-size:14px}
.foot .sep{opacity:.5; margin:0 5px}

/* ═══════════════════ หน้าหลัก ═══════════════════ */
.banner{position:relative; overflow:hidden; border-radius:26px}
.slides{display:flex; transition:transform .5s cubic-bezier(.5,.05,.2,1)}
.slide{min-width:100%; position:relative; aspect-ratio:1160/612; display:grid; place-items:center; cursor:pointer}
.scene{position:absolute; inset:0}
.scene img{position:absolute; height:auto}
.scene img.full{inset:0; width:100%; height:100%; object-fit:cover}
/* แบนเนอร์ตั้งต้น (ตอนหลังบ้านยังไม่ได้ตั้งเอง) — ขนมปังของร้านเรียงบนพื้นครีม */
.scene.welcome{background:radial-gradient(70% 70% at 50% 45%, #fbf1e2 0%, #ecd8bd 100%)}
.scene.welcome img{width:16%; animation:bob 4.6s ease-in-out infinite}
.scene.welcome img:nth-child(1){left:6%;  bottom:14%}
.scene.welcome img:nth-child(2){left:22%; bottom:34%; animation-delay:-1s}
.scene.welcome img:nth-child(3){left:40%; bottom:10%; animation-delay:-2s}
.scene.welcome img:nth-child(4){right:6%; bottom:16%; animation-delay:-3s}
.bubble{
  position:absolute; right:4%; top:8%; width:40%; aspect-ratio:450/300;
  background:#ffef4a; border:4px solid #e0463c; border-radius:50%/44%;
  transform:rotate(-7deg); display:grid; place-items:center; padding:6% 7%;
  box-shadow:0 10px 22px rgba(90,60,30,.28);
}
.bubble b{font-size:clamp(14px,2.3vw,32px); font-weight:500; color:#e0463c; text-align:center;
  line-height:1.25; text-shadow:0 2px 0 #fff8b0}
.bubble::after{content:''; position:absolute; left:22%; bottom:-13%; width:14%; aspect-ratio:56/44;
  background:#ffef4a; border:4px solid #e0463c; border-top:0; clip-path:polygon(0 0, 100% 0, 34% 100%)}
.cap-label{position:absolute; left:0; right:0; bottom:3%; text-align:center; pointer-events:none}
.cap-label b{display:inline-block; border:18px solid transparent;
  border-image:url(../img/btn-white.webp) 58 fill / 18px stretch;
  padding:0 8px; min-height:48px; font-size:20px; font-weight:500; color:var(--ink-2);
  filter:drop-shadow(0 4px 0 rgba(90,62,42,.18))}
.dots{display:flex; gap:11px; justify-content:center; margin:14px 0 18px}
.dots i{width:14px; height:14px; border-radius:50%; background:#fff; opacity:.75; cursor:pointer;
  box-shadow:0 1px 3px rgba(0,0,0,.45); transition:transform .15s ease}
.dots i.on{background:#a8896b; opacity:1; transform:scale(1.15)}

.news{display:grid; grid-template-columns:1fr 1.3fr; gap:26px; align-items:start}
.news h3{font-size:26px; font-weight:500; color:var(--ink-2)}
.news p.lead{font-size:19px; margin:4px 0 12px; color:var(--ink-2); white-space:pre-line; overflow-wrap:anywhere}
.news a{color:var(--on-ink); text-decoration:underline; text-underline-offset:3px}
/* สัดส่วนอยู่ที่ตัวรูป ไม่ใช่ที่กรอบ (ต้องตรงกับ NEWS_SHAPE ใน admin.js) */
.slot{width:100%; min-height:110px; background:none;
  border:22px solid transparent; border-image:url(../img/btn-white.webp) 58 fill / 22px stretch;
  display:grid; place-items:center; overflow:hidden; color:#c9bda9; font-size:15px;
  filter:drop-shadow(0 5px 0 rgba(90,62,42,.16))}
.slot img{display:block; width:100%; height:auto; aspect-ratio:292/220; object-fit:cover}
.slot.big img{aspect-ratio:425/324}
.slot.blank{aspect-ratio:292/220}
.slot.big.blank{aspect-ratio:425/324}
.slot .blankin{display:grid; justify-items:center; gap:8px; padding:14px}
.slot .blankin img{width:88px; height:88px; aspect-ratio:auto; object-fit:contain; opacity:.85;
  filter:drop-shadow(0 6px 8px rgba(90,60,35,.2)); animation:bob 4s ease-in-out infinite}
.news .ftr{grid-column:1/-1; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
  font-size:19px; color:var(--ink-2)}
.news .ftr a{color:inherit}
.news .ftr .r{font-size:23px; font-weight:500}
@media(max-width:820px){ .news{grid-template-columns:1fr} }

.morelink{display:flex; justify-content:center; margin-top:18px}

/* ═══════════════════ วิธีสั่งซื้อ ═══════════════════ */
.how{display:grid; grid-template-columns:repeat(3,1fr); gap:24px}
.how .tile{padding:20px 16px 24px; text-align:center; display:flex; flex-direction:column;
  align-items:center; justify-content:space-between; min-height:360px}
.how .pic{flex:1; display:grid; place-items:center; width:100%}
.how .pic img{max-height:170px; width:auto; animation:bob 5s ease-in-out infinite}
.how .tile:nth-child(2) .pic img{animation-delay:-1.6s; border-radius:14px}
.how .tile:nth-child(3) .pic img{animation-delay:-3.2s}
.how .step{font-size:15px; color:var(--ink-soft); margin-bottom:2px}
.how h3{font-size:24px; font-weight:500; color:var(--ink-2); margin-bottom:10px}
.how p{font-size:18px; line-height:1.7}
@media(max-width:820px){ .how{grid-template-columns:1fr} .how .tile{min-height:0} }

.faq{display:grid; gap:12px}
.faq details{background:none; border:22px solid transparent;
  border-image:url(../img/btn-white.webp) 58 fill / 22px stretch; padding:0 4px;
  filter:drop-shadow(0 4px 0 rgba(90,62,42,.14))}
.faq summary{cursor:pointer; font-size:19px; font-weight:500; color:var(--ink-2); list-style:none;
  display:flex; justify-content:space-between; gap:12px}
.faq summary::after{content:'+'; font-size:24px; line-height:1; color:var(--ink-soft)}
.faq details[open] summary::after{content:'–'}
.faq summary::-webkit-details-marker{display:none}
.faq p{margin-top:10px; font-size:16.5px; line-height:1.8; color:var(--ink-2)}
.faq a{color:var(--on-ink)}
@media(max-width:620px){ .faq details{border-width:16px; border-image-width:16px} .faq summary{font-size:17px} }

/* ═══════════════════ ร้านค้า ═══════════════════ */
.cattabs{display:flex; gap:8px; flex-wrap:wrap; justify-content:center; margin:0 0 14px}
.cattab{
  min-height:46px; padding:0 6px; cursor:pointer;
  border:15px solid transparent; border-image:url(../img/btn-cream.webp) 58 fill / 15px stretch;
  background:none; font-family:inherit; font-size:16px; color:var(--ink);
  display:grid; place-items:center; transition:transform .12s ease;
  filter:drop-shadow(0 3px 0 rgba(90,62,42,.18));
}
.cattab:hover{transform:translateY(-2px)}
.cattab.on{border-image-source:url(../img/btn-blue.webp); color:var(--on-ink); font-weight:500}
.catblurb{text-align:center; margin:-6px 0 14px; font-size:15px; color:var(--ink-soft)}
@media(max-width:620px){ .cattab{min-height:40px; font-size:14px; border-width:12px; border-image-width:12px} }

.searchrow{display:flex; justify-content:center; margin:0 0 12px}
.searchrow input{width:min(460px,100%); font:inherit; font-size:17px; color:var(--ink);
  padding:9px 16px; background:#fff; border:4px solid var(--edge); border-radius:16px; outline:none;
  box-shadow:0 4px 0 rgba(90,62,42,.12)}
.searchrow input:focus{border-color:#bcdcf3; box-shadow:0 0 0 3px rgba(60,140,200,.2)}

.filterbox{display:grid; gap:9px; margin:2px 0 10px}
.sortbox{display:flex; align-items:flex-start; gap:10px; flex-wrap:wrap; margin:0 0 14px}
.frow{display:flex; align-items:flex-start; gap:10px; flex-wrap:wrap}
.flabel{flex:none; min-width:74px; padding-top:6px; font-size:15px; color:var(--ink-soft)}
.fchips{display:flex; gap:7px; flex-wrap:wrap; flex:1}
.fchip{border:2px solid #d9c3a8; background:#f6ecdd; color:var(--ink-2);
  border-radius:99px; padding:5px 13px; font:inherit; font-size:15px; cursor:pointer;
  display:inline-flex; align-items:center; gap:6px; transition:.13s ease}
.fchip:hover{transform:translateY(-2px); border-color:#c2a887}
.fchip small{font-size:12px; opacity:.66}
.fchip.on{background:var(--on-a); border-color:#7fb6dd; color:var(--on-ink); font-weight:500}
.fclear{justify-self:start; border:none; background:none; padding:2px 0; cursor:pointer;
  font:inherit; font-size:14px; color:var(--ink-soft); text-decoration:underline}
.fclear:hover{color:var(--ink)}
@media(max-width:560px){ .flabel{min-width:0; width:100%; padding-top:0} }

/* การ์ดสินค้าและการ์ดแพ็คใช้โครงเดียวกัน */
.packs{display:grid; grid-template-columns:repeat(4,1fr); gap:24px}
.shopgrid{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}
@media(max-width:760px){ .packs{grid-template-columns:1fr 1fr; gap:14px} }
.card{background:none; border:28px solid transparent;
  border-image:url(../img/btn-white.webp) 58 fill / 28px stretch;
  padding:0 4px 8px; text-align:center; cursor:pointer; transition:transform .15s ease;
  display:flex; flex-direction:column; align-items:center; gap:4px; min-height:314px;
  filter:drop-shadow(0 6px 0 rgba(90,62,42,.16))}
.card:hover{transform:translateY(-6px)}
.card .pic{flex:1; display:grid; place-items:center; min-height:150px; overflow:hidden}
.card .pic img{max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain}
.card h3{font-size:22px; font-weight:500; color:#fffdf7;
  -webkit-text-stroke:3.5px #7a5c3c; paint-order:stroke fill; text-shadow:0 2px 0 rgba(90,62,42,.3)}
.card .price{font-family:'Fredoka',sans-serif; font-weight:700; font-size:30px; color:#5fa02e;
  -webkit-text-stroke:4px #fff; paint-order:stroke fill;
  display:flex; justify-content:center; align-items:center}
/* ใบดวงบนตัวเลขขอบขาว ต้องมีขอบขาวด้วย (drop-shadow สี่ทิศ) */
.card .price .lv img{width:1.35em; height:1.35em;
  filter:drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff)}
.card .price .ex{font:inherit; color:inherit; margin-left:-.02em}
@media(max-width:620px){ .card{border-width:18px; border-image-width:18px; min-height:0} .card h3{font-size:19px} }

.product{min-height:0; gap:6px; cursor:pointer}
.product.out{opacity:.6}
.product .blurb{font-size:15px; color:#7a6a58; line-height:1.5; margin:0 4px}
.product .mint{width:100%; margin-top:8px}
.tags{display:flex; gap:5px; flex-wrap:wrap; justify-content:center; margin:2px 0}
.tag{font-size:12.5px; padding:2px 9px; border-radius:99px; background:rgba(255,255,255,.7);
  color:#6b4a2f; border:2px solid rgba(122,90,60,.16)}
.tag.instant{background:#dff3e9; color:#1f5b48; border-color:#a9dcc7}
.tag.manual{background:#fdeedd; color:#8a5a20; border-color:#eccfa9}
.tag.shots{background:#e8e0f6; border-color:#c3b2e4; color:#5b4a86}
.tag.own{background:#d9ebbb; border-color:#a8c47c; color:#4a6b21}
.tag.new{background:#ffe1ea; border-color:#f3b4c6; color:#a3365a}
.morehint{display:block; margin-top:8px; font-size:13px; color:var(--ink-soft); opacity:.85}

/* แผ่นแจ้งเล็ก ๆ บนหัวหน้า (ยังไม่ล็อกอิน / ปิดเติม ฯลฯ) */
.guestnote{
  display:flex; align-items:center; justify-content:center; gap:14px; flex-wrap:wrap;
  background:none; border:20px solid transparent;
  border-image:url(../img/btn-white.webp) 58 fill / 20px stretch;
  margin:0 0 16px; padding:0 6px; min-height:64px;
  font-size:16px; color:var(--ink-2); text-align:center;
  filter:drop-shadow(0 4px 0 rgba(90,62,42,.14));
}
.guestnote span{max-width:min(560px,100%)}
@media(max-width:620px){ .guestnote{border-width:15px; border-image-width:15px; font-size:14px; min-height:56px} }

/* ═══════════════════ หน้าสินค้า ═══════════════════ */
.linkback{background:none; border:0; padding:4px 2px; margin:0 0 10px; cursor:pointer;
  font-family:inherit; font-size:16px; color:var(--ink-2); opacity:.85}
.linkback:hover{opacity:1; text-decoration:underline}
.pdetail{display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); gap:24px; align-items:start}
.pgal{min-width:0}
/* 4:3 คงที่ · contain ห้ามครอปตัวอย่าง */
.pstage{background:none; border:20px solid transparent;
  border-image:url(../img/btn-white.webp) 58 fill / 20px stretch;
  aspect-ratio:4/3; display:grid; place-items:center; overflow:hidden;
  filter:drop-shadow(0 6px 0 rgba(90,62,42,.16))}
.pstage img,.pstage video{max-width:100%; max-height:100%; width:auto; height:auto; display:block}
.pstage iframe{width:100%; height:100%; border:0; display:block}
.pcap{margin:8px 2px 0; font-size:15px; color:var(--ink-soft); text-align:center}
.pthumbs{display:flex; gap:8px; flex-wrap:wrap; margin-top:12px}
.pthumb{width:74px; height:74px; padding:0; cursor:pointer; overflow:hidden;
  background:#fff; border:3px solid transparent; border-radius:12px;
  display:grid; place-items:center; transition:transform .12s ease; box-shadow:0 3px 0 rgba(90,62,42,.18)}
.pthumb:hover{transform:translateY(-2px)}
.pthumb.on{border-color:#7fc4ec}
.pthumb img{width:100%; height:100%; object-fit:cover; display:block}
.pthumb .pv{font-size:24px; color:#6b4a2f}
.pthumb .pv.yt{color:#e0463c}
.pinfo{min-width:0; display:flex; flex-direction:column; gap:12px; align-items:flex-start}
.pinfo > button{align-self:stretch}
.pblurb{font-size:18px; line-height:1.7; color:var(--ink-2)}
.pprice{font-size:34px; font-weight:500; color:var(--ink-2)}
.pprice .lv img{width:1.15em; height:1.15em}
.psub{margin-top:8px; font-size:19px; font-weight:500; color:var(--ink-2)}
.pbody{font-size:16px; line-height:1.8; color:var(--ink-2); white-space:pre-line; overflow-wrap:anywhere}
.pbody a,.preq a{color:var(--on-ink)}
.preq{align-self:stretch; background:#fff6de; border:2px solid #e2c98a; border-radius:14px;
  padding:12px 15px; font-size:15.5px; line-height:1.8; color:#6b4a2f; white-space:pre-line; overflow-wrap:anywhere}
@media(max-width:820px){
  .pdetail{grid-template-columns:1fr; gap:18px}
  .pstage{border-width:15px; border-image-width:15px}
  .pprice{font-size:28px}
  .pthumb{width:62px; height:62px}
}

.buykv{display:grid; grid-template-columns:auto 1fr; gap:6px 16px; margin:14px 0 10px; font-size:17px; color:var(--ink-2)}
.buykv dt{color:var(--ink-soft)} .buykv dd{margin:0; font-weight:500; text-align:right}

/* ═══════════════════ เติมดวง ═══════════════════ */
.pack .baht{font-size:18px; color:#7a6a58}
.pack .baht s,.pack .wasline s{color:#9c8b76; text-decoration-thickness:2px; text-decoration-color:#b9a48c}
.pack .baht s{font-size:.78em; margin-right:.42em}
/* ดวงเดิมตอนมีโปร แยกบรรทัด และเว้นความสูงไว้ทุกใบ ราคาจะได้ตรงระดับกันทั้งแถว */
.pack .wasline{min-height:1.2em; line-height:1.2; font-size:15px; color:#9c8b76}
.pack.p3 .price{color:#3d8a3d}
.pack.p2{border-image-source:url(../img/btn-green.webp)}
.pack.p3{border-image-source:url(../img/btn-sky.webp)}
.pack.p4{border-image-source:url(../img/btn-amber.webp)}
.pack.closed{cursor:default; opacity:.72}
.pack.closed:hover{transform:none}
.pack.onpromo{position:relative}
.promotag{
  position:absolute; top:-10px; left:50%; transform:translateX(-50%) rotate(-3deg); z-index:2;
  white-space:nowrap; padding:0 4px; min-height:38px; display:grid; place-items:center;
  border:14px solid transparent; border-image:url(../img/btn-pink.webp) 58 fill / 14px stretch;
  font-size:15px; font-weight:500; color:#fff; text-shadow:0 2px 0 rgba(150,60,90,.55);
  filter:drop-shadow(0 3px 0 rgba(90,62,42,.2));
}
.promountil{font-size:13px; color:var(--ink-soft); margin-top:2px}
@media(max-width:620px){
  .pack .wasline{font-size:13px}
  .promotag{min-height:32px; font-size:13px; border-width:11px; border-image-width:11px}
}

.tsteps{list-style:none; counter-reset:ts; display:grid; gap:11px; margin:0 0 18px; padding:0}
.tsteps li{counter-increment:ts; display:grid; grid-template-columns:34px 1fr; gap:11px; align-items:start;
  font-size:16.5px; line-height:1.5; color:var(--ink-2)}
.tsteps li::before{content:counter(ts); width:34px; height:34px; border-radius:50%;
  display:grid; place-items:center; margin-top:-3px;
  background:linear-gradient(#8fdcc1,#5fb99a); color:#fff; font-weight:500; font-size:17px;
  text-shadow:0 1px 2px rgba(38,92,76,.5); box-shadow:0 3px 0 rgba(38,92,76,.28)}
.tsteps b{font-weight:500; color:var(--ink)}
.tmsg-head{display:flex; justify-content:space-between; align-items:baseline; gap:10px;
  font-size:14px; color:var(--ink-soft); margin:0 6px 2px}
.tmsg-head .linkbtn{font-size:15px}
.tmsg{background:none; border:18px solid transparent;
  border-image:url(../img/btn-white.webp) 58 fill / 18px stretch;
  padding:0 4px; font-size:15.5px; line-height:1.65; color:var(--ink); white-space:pre-line;
  overflow-wrap:anywhere; user-select:all; -webkit-user-select:all;
  filter:drop-shadow(0 3px 0 rgba(90,62,42,.12))}
@media(max-width:620px){
  .tsteps li{font-size:15px; grid-template-columns:30px 1fr; gap:9px}
  .tsteps li::before{width:30px; height:30px; font-size:15px}
  .tmsg{font-size:14.5px; border-width:14px; border-image-width:14px}
}

/* ═══════════════════ ตาราง / เลขหน้า / ช่องว่าง ═══════════════════ */
.table{background:none; border:26px solid transparent;
  border-image:url(../img/btn-cream.webp) 58 fill / 26px stretch; padding:0 2px 4px;
  filter:drop-shadow(0 6px 0 rgba(90,62,42,.16))}
/* เนื้อตารางเป็นแผ่นขาวใบเดียว ไม่ใช่แผ่นต่อแถว */
.tbody{background:none; border:22px solid transparent;
  border-image:url(../img/btn-white.webp) 58 fill / 22px stretch}
.trow{display:grid; grid-template-columns:1.1fr 1.6fr .8fr .8fr; align-items:center; gap:8px;
  min-height:70px; padding:10px 14px; font-size:18px; border-bottom:2px solid rgba(160,132,112,.5)}
.trow:nth-child(even){background:rgba(150,110,74,.055)}
.trow:last-child{border-bottom:0}
.trow>*{text-align:center}
.trow .when{text-align:left; font-weight:500}
.trow .what{text-align:left; overflow-wrap:anywhere}
.trow .what small{display:block; font-size:14px; color:var(--ink-soft)}
.trow .plus{color:#3d8a3d; font-weight:500}
.trow .minus{color:#b4531f; font-weight:500}
.thead{background:transparent; font-size:20px; font-weight:500; color:#fffdf7;
  text-shadow:0 2px 0 rgba(150,110,74,.9); min-height:64px; border-bottom:0}
@media(max-width:760px){
  .thead{display:none}
  .table{border-width:18px; border-image-width:18px}
  .tbody{border-width:15px; border-image-width:15px}
  .trow{grid-template-columns:1fr auto; row-gap:4px; font-size:15px; min-height:0; padding:10px 8px}
  .trow .when{grid-column:1/-1; color:var(--ink-soft); font-size:13px}
  .trow .bal{display:none}
}

.pagerow{margin-top:16px; display:flex; flex-direction:column; align-items:center; gap:10px}
.pagecount{font-size:16px; color:#f0dfc8; opacity:.92}
.panel .pagecount{color:var(--ink-soft)}
.pagenums{display:flex; align-items:center; gap:6px; flex-wrap:wrap; justify-content:center}
.pagenums .gap{color:#f0dfc8; opacity:.8; padding:0 2px}
.pagenums .pg{
  min-width:56px; height:52px; padding:0 4px; cursor:pointer;
  border:16px solid transparent; border-image:url(../img/btn-cream.webp) 58 fill / 16px stretch;
  background:none; font-family:inherit; font-size:18px; font-weight:500; color:var(--ink);
  display:grid; place-items:center; transition:transform .12s ease;
  filter:drop-shadow(0 3px 0 rgba(90,62,42,.18));
}
.pagenums .pg:hover:not(:disabled){transform:translateY(-2px)}
.pagenums .pg:disabled{opacity:.45; cursor:not-allowed}
.pagenums .pg.on{border-image-source:url(../img/btn-blue.webp); color:var(--on-ink)}
@media(max-width:620px){
  .pagenums .pg{min-width:46px; height:44px; font-size:15px; border-width:13px; border-image-width:13px}
}

.empty{background:none; border:24px solid transparent;
  border-image:url(../img/btn-white.webp) 58 fill / 24px stretch;
  text-align:center; padding:14px 8px 20px; font-size:19px; color:var(--ink-soft);
  display:grid; justify-items:center; gap:10px; grid-column:1/-1;
  filter:drop-shadow(0 5px 0 rgba(90,62,42,.14))}
.tbody .empty{border:0; border-image:none; padding:30px 16px 34px; filter:none}
.empty img{width:96px; height:96px; object-fit:contain; opacity:.9;
  filter:drop-shadow(0 6px 8px rgba(90,60,35,.22)); animation:bob 4s ease-in-out infinite}

/* ═══════════════════ บัญชี ═══════════════════ */
.walletbox{display:flex; align-items:center; gap:12px; flex-wrap:wrap; justify-content:center;
  margin-bottom:18px; padding:14px 20px; background:none;
  border:26px solid transparent; border-image:url(../img/btn-white.webp) 58 fill / 26px stretch;
  filter:drop-shadow(0 5px 0 rgba(90,62,42,.16))}
.walletbox .wl{font-size:18px; color:var(--ink-soft)}
.walletbox .wn{display:inline-flex; align-items:center; gap:8px; margin-right:6px;
  font-family:'Fredoka',sans-serif; font-weight:700; font-size:38px; color:var(--gold); line-height:1}
.walletbox .wn img{width:38px; height:38px; object-fit:contain; filter:drop-shadow(0 2px 2px rgba(90,62,42,.28))}
@media(max-width:620px){
  .walletbox{border-width:18px; border-image-width:18px}
  .walletbox .wn{font-size:32px} .walletbox .wn img{width:32px; height:32px}
}

.prof{display:grid; grid-template-columns:minmax(0,1.75fr) minmax(0,1fr); gap:20px; align-items:start}
@media(max-width:860px){ .prof{grid-template-columns:1fr} }
.idrow{display:flex; align-items:center; gap:16px; margin-bottom:16px}
.idrow img{width:78px; height:78px; flex:none}
.namechip{flex:1; min-height:80px; background:none; border:24px solid transparent;
  border-image:url(../img/btn-cream.webp) 58 fill / 24px stretch;
  display:grid; place-items:center; font-size:26px; font-weight:500; color:var(--ink-2);
  cursor:pointer; padding:2px 8px; filter:drop-shadow(0 5px 0 rgba(90,62,42,.16))}
.field{font-size:22px; font-weight:500; margin-bottom:10px}
.field span{font-weight:300; color:var(--ink-soft)}
.field.editable{cursor:pointer; border-radius:12px; padding:2px 8px; margin-left:-8px; transition:background .15s ease}
.field.editable:hover{background:rgba(255,255,255,.65)}
.recent{text-align:center; margin-top:22px}
.recent h4{font-size:24px; font-weight:500; color:var(--ink-2); margin-bottom:14px;
  text-decoration:underline; text-underline-offset:5px; text-decoration-thickness:3px}
.recent .row{display:flex; justify-content:space-around; gap:10px; flex-wrap:wrap}
.recent .it{width:118px; cursor:pointer; border:0; background:none; padding:0}
.recent .it img{width:84px; height:84px; object-fit:contain; border-radius:12px; background:#fff;
  box-shadow:0 3px 0 rgba(90,62,42,.16)}
.recent .it span{display:block; font-size:14px; color:var(--ink-2); margin-top:4px; overflow-wrap:anywhere}
.throw{display:grid; grid-template-columns:1.15fr 1fr .55fr; gap:6px; align-items:center;
  background:none; border:16px solid transparent;
  border-image:url(../img/btn-white.webp) 58 fill / 16px stretch;
  padding:0 4px; min-height:52px; font-size:14px; margin-bottom:6px}
.throw:last-child{margin-bottom:0}
.throw span:last-child{text-align:right; color:#7a5c3c}
.profbtns{display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin-top:20px}

.itemtabs{display:flex; gap:8px; justify-content:center; flex-wrap:wrap; margin-bottom:16px}
.itemtabs .pill{width:auto; min-width:0; padding:0 8px; height:46px; font-size:16px;
  border-width:14px; border-image-width:14px}
.itemlist{display:grid; gap:10px}
.itemcard{display:flex; align-items:center; gap:14px; background:none;
  border:22px solid transparent; border-image:url(../img/btn-white.webp) 58 fill / 22px stretch;
  padding:0 4px; min-height:96px; filter:drop-shadow(0 4px 0 rgba(90,62,42,.14))}
.itemcard.hasfile{border-image-source:url(../img/btn-cream.webp)}
.itemcard > img{width:64px; height:64px; object-fit:contain; flex:none; border-radius:10px}
.itemcard .mid{flex:1; min-width:0; display:grid; gap:2px}
.itemcard .mid b{font-size:19px; font-weight:500; color:var(--ink-2)}
.itemcard .meta{font-size:13.5px; color:var(--ink-soft); overflow-wrap:anywhere}
.itemcard .note2{color:#7a5a20}
.itemcard .right{display:grid; gap:4px; justify-items:end; text-align:right}
.itemcard .right .mint{min-height:46px; font-size:16px; border-width:16px; border-image-width:16px}
.statuschip{font-size:15px; font-weight:500; min-height:44px; padding:0 10px; white-space:nowrap;
  display:inline-grid; place-items:center; background:none;
  border:14px solid transparent; border-image:url(../img/btn-mint.webp) 62 fill / 14px stretch;
  color:#fff; text-shadow:0 1px 2px rgba(38,92,76,.5)}
.statuschip.pend{border-image-source:url(../img/btn-white.webp); color:#8a5a20; text-shadow:none}
@media(max-width:620px){
  .itemcard{flex-wrap:wrap}
  .itemcard .right{width:100%; justify-items:stretch; text-align:center}
}

.authpic{text-align:center; margin:-4px 0 14px}
.authpic img{width:112px; height:112px; object-fit:contain;
  filter:drop-shadow(0 8px 10px rgba(90,60,35,.26)); animation:bob 4.6s ease-in-out infinite}
.authform{max-width:430px; margin:0 auto; display:flex; flex-direction:column; gap:15px}
.authform label{display:flex; flex-direction:column; gap:6px; font-size:19px; color:var(--ink-2)}
.authform input{
  font-family:'Mitr',sans-serif; font-size:19px; color:var(--ink); padding:10px 16px;
  background:#fff; border:4px solid var(--edge); border-radius:16px; outline:none;
  box-shadow:0 4px 0 rgba(90,62,42,.12);
}
.authform input:focus{border-color:#bcdcf3; box-shadow:0 0 0 3px rgba(60,140,200,.2)}
.authform .hint{font-size:15px; color:var(--ink-soft); margin-top:-8px}

/* ═══════════════════ แผ่นป๊อปอัป ═══════════════════ */
.mask{position:fixed; inset:0; background:rgba(45,28,16,.62); backdrop-filter:blur(3px);
  display:none; place-items:center; z-index:50; padding:18px}
.mask.on{display:grid; animation:fade .2s ease both}
.sheet{
  width:min(540px,100%); max-height:88svh; overflow:auto; position:relative; padding:4px 10px 8px;
  background:none; border:32px solid transparent;
  border-image:url(../img/btn-cream.webp) 58 fill / 32px stretch;
  filter:drop-shadow(0 16px 34px rgba(20,10,5,.55));
  animation:sheetIn .22s cubic-bezier(.2,1.3,.4,1) both;
}
/* เว้นซ้ายขวาเท่ากันกันชนปุ่ม ✕ หัวข้อยังอยู่กลางพอดี */
.sheet h3{font-size:28px; font-weight:500; color:var(--ink-2); text-align:center; padding:0 34px}
.sheet .sub{text-align:center; color:var(--ink-soft); font-size:16px; margin:4px 0 20px}
.sheet .sub.small{font-size:13.5px; line-height:1.65; text-align:left; margin:10px 0 0}
.sheet .sub.small a{color:var(--on-ink)}
.sheet .warn{font-size:15px; color:#b4531f; text-align:center; margin-bottom:14px}
/* 9-slice ต้องมีเนื้อกลางเหลือ (46 - 15×2) และกากบาทวาดด้วย ::before ให้อยู่กลางเสมอ
   ยกขึ้น 2px เพราะเงาที่ขอบล่างของแผ่นทำให้กลางจริงดูต่ำ */
.sheet-x{
  position:absolute; right:12px; top:10px; width:46px; height:46px; padding:0;
  background:none; border:15px solid transparent;
  border-image:url(../img/btn-white.webp) 58 fill / 15px stretch;
  font-size:0; cursor:pointer; display:block;
  filter:drop-shadow(0 3px 0 rgba(90,62,42,.18)); transition:transform .12s ease;
}
.sheet-x::before{content:'✕'; position:absolute; inset:0; display:grid; place-items:center;
  font-size:18px; line-height:1; color:var(--ink-2); transform:translateY(-2px)}
.sheet-x:hover{transform:scale(1.08)}
.sheet-x:active{transform:scale(.96)}
.sheet .authform{max-width:none; gap:11px}
.sheet .authform label{font-size:17px; gap:4px}
.sheet .authform input{padding:8px 14px; font-size:18px}
.sheet .authform input:disabled{background:#efe6d8; color:var(--ink-soft); cursor:not-allowed}
.sheet .rowbtn{display:flex; gap:10px; justify-content:center; flex-wrap:wrap;
  position:sticky; bottom:-26px; z-index:2; padding:14px 0 8px; margin-bottom:-8px;
  background:linear-gradient(180deg, rgba(232,205,177,0) 0%, var(--panel-c) 42%)}
.sheet .err{margin-top:14px; text-align:center; color:#b6432f; font-size:16px; min-height:1.2em}
.cancel{
  border:20px solid transparent; border-image:url(../img/btn-white.webp) 58 fill / 20px stretch;
  background:none; cursor:pointer; min-height:58px;
  color:var(--ink-2); font-family:inherit; font-weight:500; font-size:20px; padding:2px 12px;
  filter:drop-shadow(0 4px 0 rgba(90,62,42,.18)); transition:transform .12s ease;
}
.cancel:hover{transform:translateY(-2px)} .cancel:active{transform:translateY(3px)}
@media(max-width:620px){
  .sheet{border-width:18px; border-image-width:18px}
  .sheet h3{font-size:24px; padding:0 40px}
  .sheet-x{right:8px; top:8px; width:40px; height:40px; border-width:13px; border-image-width:13px}
  .sheet-x::before{font-size:16px}
}

.avapick{display:flex; align-items:center; gap:16px; margin-bottom:18px}
.avapick img{width:86px; height:86px; flex:none}
.avapick .side{display:flex; flex-direction:column; gap:6px; align-items:flex-start}
.avapick .pickbtn{
  background:none; border:18px solid transparent;
  border-image:url(../img/btn-cream.webp) 58 fill / 18px stretch; cursor:pointer; min-height:50px;
  font-family:inherit; font-size:17px; color:var(--ink); padding:0 8px;
  filter:drop-shadow(0 4px 0 rgba(90,62,42,.18)); transition:transform .12s ease}
.avapick .pickbtn:hover{transform:translateY(-2px)}
.avapick small{color:var(--ink-soft); font-size:14px; line-height:1.4}
.avapick input[type=file]{display:none}

/* ป๊อปอัปประกาศ */
.annsheet{max-width:520px; text-align:center}
.annsheet .sheet-x{right:16px; top:14px}
.annsheet.noimg{padding-top:68px}
.annpic{margin:0 0 12px; border-radius:14px; overflow:hidden; aspect-ratio:16/9; background:#f3e7d4}
.annpic img{width:100%; height:100%; object-fit:cover; display:block}
.anntitle{font-size:24px; font-weight:500; color:var(--ink-2); margin:0 0 8px; line-height:1.35}
.anntext{font-size:16px; line-height:1.75; color:var(--ink-2); margin:0 0 6px;
  white-space:pre-line; overflow-wrap:anywhere; text-align:left}
.anntext a{color:var(--on-ink)}
.annrow{display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:18px}
@media(max-width:620px){ .annsheet.noimg{padding-top:60px} .anntitle{font-size:20px} .anntext{font-size:15px} }

.toast{position:fixed; left:50%; bottom:24px; transform:translate(-50%,20px);
  background:none; border:20px solid transparent;
  border-image:url(../img/btn-cream.webp) 58 fill / 20px stretch; padding:0 10px; min-height:56px;
  display:grid; place-items:center; font-size:18px; color:var(--ink-2);
  filter:drop-shadow(0 8px 16px rgba(40,25,12,.4));
  opacity:0; pointer-events:none; transition:.25s ease; z-index:80; max-width:92vw; text-align:center}
.toast.on{opacity:1; transform:translate(-50%,0)}

/* ═══════════════════ ปิดร้าน / ระงับบัญชี ═══════════════════ */
.maintmask{position:fixed; inset:0; z-index:90; display:none; place-items:center; overflow:auto;
  padding:20px; background:rgba(42,26,14,.55); backdrop-filter:blur(3px)}
.maintmask.on{display:grid}
.maintcard{width:min(560px,100%); text-align:center; position:relative; padding:6px 10px 14px;
  background:none; border:32px solid transparent;
  border-image:url(../img/btn-cream.webp) 58 fill / 32px stretch;
  filter:drop-shadow(0 18px 40px rgba(20,10,5,.55))}
.maintcard .pic{width:118px; height:118px; object-fit:contain; margin:0 auto 6px; display:block;
  filter:drop-shadow(0 8px 10px rgba(90,60,35,.3)); animation:bob 4.4s ease-in-out infinite}
.maintcard h1{font-size:clamp(24px,4.4vw,32px); font-weight:500; color:var(--ink-2); line-height:1.35}
.maintcard .why{margin:10px auto 0; max-width:44ch; font-size:18px; line-height:1.75}
.maintcard .kv{display:grid; grid-template-columns:auto 1fr; gap:6px 14px; margin:18px auto 4px;
  max-width:400px; text-align:left; font-size:16px}
.maintcard .kv dt{color:var(--ink-soft)}
.maintcard .kv dd{margin:0; color:var(--ink-2); font-weight:500}
.maintcard .acts{display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-top:20px}
.maintcard .foot2{margin-top:16px; font-size:14px; line-height:1.9; color:var(--ink-soft)}
.maintcard .foot2 a{color:var(--on-ink)}
.maintcard .previewtag{margin:0 0 8px; background:#fff3cf; border:2px dashed #d8a441;
  border-radius:10px; padding:6px 10px; font-size:14px; color:#8a6320}
@media(max-width:620px){ .maintcard{border-width:20px; border-image-width:20px} }
.banmask{z-index:120; background:rgba(60,20,20,.72)}
.bancard h1{color:#a33b3b}
.bancard .why{white-space:pre-wrap; word-break:break-word}
.bancard .reasonbox{margin:14px auto 0; max-width:44ch; text-align:left;
  background:#fff2f2; border:2px solid #e3b7b7; border-radius:12px; padding:12px 14px;
  font-size:17px; line-height:1.7; color:#6b3030; white-space:pre-wrap; word-break:break-word}
.bancard .reasonbox b{display:block; font-size:14px; color:#a05555; margin-bottom:4px}
.maintbar{position:sticky; top:0; z-index:40; display:none; text-align:center;
  background:linear-gradient(180deg,#ffd88a,#f7c463); color:#6b4410;
  border-bottom:3px solid #d8a441; padding:9px 14px; font-size:15px; line-height:1.5}
.maintbar.on{display:block}
.maintbar a{color:#7a3d06}

/* ═══════════════════ ความเคลื่อนไหว (ประดับล้วน ปิดได้ทั้งชุด) ═══════════════════ */
.floaters{position:fixed; inset:0; z-index:-1; overflow:hidden; pointer-events:none}
.floaters img{position:absolute; bottom:-110px; width:52px; opacity:.2; --tilt:0deg;
  filter:drop-shadow(0 4px 6px rgba(60,35,18,.25)); will-change:transform; animation:drift linear infinite}
#view > *{animation:riseIn .42s cubic-bezier(.2,.9,.3,1) both}
#view > *:nth-child(2){animation-delay:.06s}
#view > *:nth-child(3){animation-delay:.12s}

@keyframes fade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes riseIn{from{opacity:0; transform:translateY(16px)} to{opacity:1; transform:none}}
@keyframes sheetIn{from{transform:translateY(14px) scale(.97); opacity:0}to{transform:none; opacity:1}}
@keyframes bob{0%,100%{transform:translateY(0)} 50%{transform:translateY(-9px)}}
@keyframes drift{
  from{transform:translate3d(0,0,0) rotate(var(--tilt))}
  50% {transform:translate3d(26px,-60vh,0) rotate(calc(var(--tilt) + 18deg))}
  to  {transform:translate3d(0,-125vh,0) rotate(calc(var(--tilt) - 12deg))}
}
@keyframes sweep{0%,55%{background-position:190% 0} 100%{background-position:-90% 0}}
/* ปุ่มจัดกึ่งกลางด้วย transform ทุกเฟรมจึงต้องมี translateX(-50%) */
@keyframes goPulse{
  0%,100%{transform:translateX(-50%) translateY(0) scale(1)}
  50%    {transform:translateX(-50%) translateY(-4px) scale(1.02)}
}
@keyframes logoFloat{
  0%,100%{transform:translateX(-50%) translateY(0)}
  50%    {transform:translateX(-50%) translateY(-8px)}
}
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important; animation-iteration-count:1 !important;
    transition-duration:.001ms !important; scroll-behavior:auto !important;
  }
  .floaters{display:none}
}
