/* pixel.css (18 พ.ย. 2026) — ตัวละครลูกค้า · หน้าแต่งตัวละคร · รีวิวร้าน
   กติกาภาพพิกเซล: ขยายด้วย image-rendering:pixelated เท่านั้น (ไม่เบลอ) · ภาพนิ่ง ไม่มีแอนิเมชัน · ปุ่มแตะ ≥ 44px · โฟกัสเห็นชัด */
.pxav{image-rendering:pixelated;image-rendering:crisp-edges;display:block;flex:none;-webkit-user-select:none;user-select:none}
/* เจ้าของ 18 พ.ย.: รูปโปรไฟล์ = ครึ่งตัวบน (หัว+ไหล่) ขยาย 4 เท่า บนพื้นม่วงอ่อนของร้าน */
.sp-av.sp-av-px{background:#EDE3F7;box-shadow:inset 0 0 0 2px rgba(255,255,255,.75);overflow:hidden;align-items:flex-start;justify-content:center;padding:0}
.sp-av.sp-av-px .pxav{width:64px;height:96px;max-width:none;margin-top:-10px}
.sp-hero.has-px{flex-wrap:wrap}
.sp-avbtn{flex:none;display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border-radius:999px;background:#fff;color:#5B3477;font:700 14px Sarabun,sans-serif;text-decoration:none;box-shadow:0 1px 2px rgba(42,34,51,.15)}
.sp-avbtn:focus-visible,.ave button:focus-visible,.rv button:focus-visible,.rv-form button:focus-visible,.rv a:focus-visible,#aveCv:focus-visible,.rv-list:focus-visible,.rv-lbx:focus-visible{outline:3px solid #6E3F8E;outline-offset:2px}
.sp-hero.has-px .sp-tx{flex:1 1 calc(100% - 70px)}
.sp-hero.has-px .sp-avbtn{margin:-4px 0 0 66px}
@media (min-width:600px){.sp-hero.has-px .sp-tx{flex:1 1 0%}.sp-hero.has-px .sp-avbtn{margin:0}}

/* ── หน้าแต่งตัวละคร ── */
.ave{display:block}
.ave-lead{margin:0 0 10px;font-size:14.5px;line-height:1.6;color:#4A4458}
.ave-sec{font:700 15px Sarabun,sans-serif;color:#553877;margin:18px 0 8px}
.ave-bases{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ave-base{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 8px 10px;border:2px solid #E3D7F3;border-radius:16px;background:#fff;font:600 14px Sarabun,sans-serif;color:#4A4458;cursor:pointer;min-height:44px}
.ave-base.on{border-color:#6E3F8E;background:#F6F0FB;color:#3F2460}
.ave-base.on span::before{content:"✓ ";font-weight:800}
.ave-views{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.ave-view{display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 2px 6px;border:2px solid #E3D7F3;border-radius:12px;background:#fff;font:600 13px Sarabun,sans-serif;color:#4A4458;cursor:pointer;min-height:44px}
.ave-view.on{border-color:#6E3F8E;background:#6E3F8E;color:#fff}
.ave-vimg{display:flex;align-items:flex-end;justify-content:center;width:40px;height:50px;border-radius:8px;background:#FBF7F4}
.ave-now{margin:10px 0 6px;font-size:14.5px;color:#4A4458}.ave-now b{color:#3F2460}.ave-now span{color:#7A7090;font-size:13px}
.ave-stage{display:flex;justify-content:center;padding:2px;border-radius:14px;background:#fff;box-shadow:0 1px 3px rgba(80,50,120,.08)}
#aveCv{display:block;touch-action:none;cursor:crosshair;border-radius:6px;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.ave-tools{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin-top:10px}
.ave-gap{display:none}
.ave-tool{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-width:0;min-height:48px;padding:4px 2px;border:2px solid #E3D7F3;border-radius:12px;background:#fff;font:600 12px Sarabun,sans-serif;color:#4A4458;cursor:pointer}
.ave-tool svg{width:20px;height:20px}
.ave-tool.on{border-color:#6E3F8E;background:#F0E6F8;color:#3F2460;box-shadow:inset 0 -3px 0 #6E3F8E}
.ave-tool:disabled{opacity:.4;cursor:default}
.ave-pal{display:grid;grid-template-columns:repeat(8,1fr);gap:6px;margin-top:10px}
@media (min-width:600px){.ave-pal{grid-template-columns:repeat(12,minmax(0,44px))}}
.ave-sw{position:relative;aspect-ratio:1;min-height:36px;border-radius:9px;border:2px solid rgba(42,34,51,.18);background:var(--c);cursor:pointer;padding:0}
.ave-sw.on{border-color:#2A2233;box-shadow:0 0 0 2px #fff,0 0 0 4px #6E3F8E}
.ave-sw.on::after{content:"";position:absolute;inset:0;margin:auto;width:9px;height:9px;border-radius:50%;background:#fff;box-shadow:0 0 0 2px #2A2233}
.ave-link{display:flex;gap:10px;align-items:flex-start;margin-top:14px;padding:12px;border-radius:14px;background:#fff;box-shadow:0 1px 3px rgba(80,50,120,.08);cursor:pointer}
.ave-link input{width:22px;height:22px;flex:none;margin:1px 0 0;accent-color:#6E3F8E}
.ave-link b{display:block;font-size:14.5px;color:#3F2460}.ave-link small{display:block;font-size:13px;color:#625A6E;line-height:1.5}
.ave-prev{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:flex-end;padding:12px;border-radius:14px;background:#fff;box-shadow:0 1px 3px rgba(80,50,120,.08)}
.ave-pv,.ave-acct{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:12px;color:#625A6E}
.ave-acct{padding:8px 10px;border-radius:14px;background:#6E3F8E;color:#fff}
.ave-acct .sp-av{width:52px;height:52px;border-radius:50%;display:flex}
.ave-msg{min-height:22px;margin:12px 0 4px;font-size:14px;color:#553877;font-weight:600}.ave-msg.err{color:#B3261E}
.ave-acts{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ave-acts .sp-btn{margin:0;width:100%}
.ave-acts [data-avesave]{grid-column:1 / -1;order:-1}

/* ── รีวิวร้าน (หน้า About) ── */
.rv{margin:18px 0 6px}
.rv-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px;margin-bottom:8px}
.rv-h{margin:0;font:700 18px Mitr,Sarabun,sans-serif;color:#3F2460}
.rv-sum{display:flex;align-items:center;gap:6px;font-size:14px;color:#4A4458}.rv-sum b{font-size:16px;color:#2A2233}
.rv-write{margin:0 0 8px}
.page.spg a.sp-btn:not(.ghost),.page.spg a.sp-btn:not(.ghost):visited{color:#fff}   /* ปุ่มที่เป็นลิงก์: ตัวอักษรขาวบนพื้นม่วงเหมือนปุ่มทั่วไป (เดิมรับสีตัวหนังสือของหน้า) */
.page.spg a.sp-avbtn,.page.spg a.sp-avbtn:visited{color:#5B3477;text-decoration:none}
.rv-how{margin:0 0 10px;font-size:13.5px;color:#4A4458}
.rv-how summary{cursor:pointer;min-height:32px;display:flex;align-items:center;color:#5B3477;font-weight:600}
.rv-how p{margin:4px 0 0;line-height:1.65}
.rv-list{max-height:min(70vh,640px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:2px 2px 4px;border-radius:14px}
.rv-card{background:#fff;border-radius:16px;padding:14px;box-shadow:0 1px 3px rgba(80,50,120,.08);margin:0 0 10px;min-width:0}
.rv-card.mine{box-shadow:0 0 0 2px #C9A9E0,0 1px 3px rgba(80,50,120,.08)}
.rv-who{display:flex;gap:10px;align-items:center;min-width:0}
.rv-av{flex:none;width:52px;height:52px;border-radius:50%;background:#EDE3F7;display:flex;align-items:flex-start;justify-content:center;overflow:hidden}
.rv-av .pxav{width:64px;height:96px;max-width:none;margin-top:-10px}
.rv-meta{min-width:0;flex:1}
.rv-name{font-weight:700;font-size:15px;color:#2A2233;overflow-wrap:anywhere;word-break:break-word;line-height:1.35}
.rv-ver{display:inline-flex;align-items:center;gap:3px;vertical-align:1px;padding:1px 8px 1px 6px;border-radius:999px;background:#E3F3E7;color:#1E6B3A;font:700 12px Sarabun,sans-serif;white-space:nowrap}
.rv-ver svg{width:13px;height:13px}
.rv-line{display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px;margin-top:2px;font-size:13px;color:#625A6E}
.rv-st{display:inline-flex;gap:2px;vertical-align:-4px}.rv-st i{display:inline-flex}.rv-st svg{width:22px;height:20px}
.rv-st .sb,.rv-star .sb{fill:#F3ECF8}.rv-st .so,.rv-star .so{fill:#D4C2E6}.rv-st .se,.rv-st .sc,.rv-star .se,.rv-star .sc{display:none}
.rv-st i.on .sb,.rv-star.on .sb{fill:#F6C343}.rv-st i.on .so,.rv-star.on .so{fill:#D99A12}
.rv-st i.on .se,.rv-star.on .se{display:inline;fill:#2A2233}.rv-st i.on .sc,.rv-star.on .sc{display:inline;fill:#F2A1B0}
.rv-word{font-weight:600;color:#4A4458}
.rv-text{margin:10px 0 0;font-size:15px;line-height:1.65;color:#2A2233;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}
.rv-phs{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.rv-ph{width:84px;height:84px;padding:0;border:0;border-radius:12px;overflow:hidden;background:#EDE6F2;cursor:zoom-in;flex:none}
.rv-ph img{width:100%;height:100%;object-fit:cover}
.rv-state{text-align:center;color:#4A4458;line-height:1.6}
.rv-card.sk{display:grid;gap:8px}.rv-card.sk span{display:block;height:12px;border-radius:6px;background:#EFE8F5}.rv-card.sk span:first-child{width:45%;height:16px}.rv-card.sk span:last-child{width:70%}
.rv-lb{position:fixed;inset:0;z-index:9500;background:rgba(20,14,28,.92);display:flex;align-items:center;justify-content:center;padding:max(16px,env(safe-area-inset-top)) 12px max(16px,env(safe-area-inset-bottom))}
.rv-lb img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:8px}
.rv-lbx{position:absolute;top:max(10px,env(safe-area-inset-top));right:10px;width:48px;height:48px;border-radius:50%;border:0;background:#fff;color:#2A2233;font:400 30px/1 Sarabun,sans-serif;cursor:pointer}

/* ── หน้าเขียนรีวิว ── */
.rv-form{display:block}
.rv-f{border:0;padding:0;margin:16px 0 0;min-width:0}
.rv-f legend{padding:0;font-size:14px;font-weight:700;color:#553877;margin-bottom:6px}
.rv-pick{display:flex;gap:4px}
.rv-star{width:52px;height:52px;padding:6px;border:0;border-radius:12px;background:transparent;cursor:pointer}
.rv-star svg{width:100%;height:100%}
.rv-star:hover .sb{fill:#FBE9B0}
.rv-starword{min-height:22px;margin-top:2px;font-size:14.5px;font-weight:600;color:#3F2460}
.rv-ta{min-height:130px;resize:vertical;line-height:1.6}
.rv-cnt{text-align:right;font-size:12.5px;color:#7A7090;margin-top:2px}
.rv-avs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.rv-avb{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 4px 8px;border:2px solid #E3D7F3;border-radius:14px;background:#fff;font:600 13px Sarabun,sans-serif;color:#4A4458;cursor:pointer;min-width:0}
.rv-avb.on{border-color:#6E3F8E;background:#F6F0FB;color:#3F2460}.rv-avb.on span::before{content:"✓ ";font-weight:800}
.rv-rule{font-size:13px;line-height:1.6;color:#625A6E}
.rv-warn{margin:8px 0;padding:10px 12px;border-radius:12px;background:#FFF4DC;border:1.5px solid #EBCB7A;color:#5A4300;font-size:14px;line-height:1.6}
.rv-up{display:flex;flex-wrap:wrap;gap:8px}
.rv-tile{position:relative;width:104px;border-radius:12px;background:#fff;box-shadow:0 1px 3px rgba(80,50,120,.12);overflow:hidden}
.rv-tile>img{width:104px;height:104px;object-fit:cover;background:#EDE6F2}
.rv-tile.up>img{opacity:.5}
.rv-tst{position:absolute;left:0;right:0;top:40px;text-align:center;font:700 12.5px Sarabun,sans-serif;color:#2A2233;background:rgba(255,255,255,.88);padding:3px 2px}.rv-tst.err{color:#B3261E;top:26px}
.rv-tb{display:flex}.rv-tb button{flex:1;min-height:44px;border:0;border-top:1px solid #EFE8F5;background:#fff;font:600 13px Sarabun,sans-serif;color:#5B3477;cursor:pointer}
.rv-tb button+button{border-left:1px solid #EFE8F5;color:#B3261E}.rv-tb button:disabled{opacity:.4}
.rv-add{width:104px;min-height:148px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:2px dashed #C9B8DA;border-radius:12px;background:#FDFBFF;color:#5B3477;font:600 14px Sarabun,sans-serif;cursor:pointer}
.rv-add svg{width:28px;height:28px}.rv-add small{font-weight:400;color:#7A7090}
.rv-consent{display:flex;gap:10px;align-items:flex-start;margin-top:10px;padding:12px;border-radius:12px;background:#fff;border:2px solid #C9A9E0;cursor:pointer;font-size:14.5px;line-height:1.55;color:#2A2233}
.rv-consent input{width:24px;height:24px;flex:none;margin:0;accent-color:#6E3F8E}
.rv-err{min-height:20px;margin:12px 0 4px;color:#B3261E;font-weight:600;font-size:14.5px}.rv-err:empty{min-height:0;margin:8px 0 0}
.rv-acts{display:flex;gap:8px}.rv-acts .sp-btn{margin:0;flex:1}
.rv-pvh{font:700 15px Sarabun,sans-serif;color:#553877;margin:0 0 8px}
.rv-done .rv-ok{width:56px;height:56px;border-radius:50%;background:#E3F3E7;color:#1E6B3A;display:flex;align-items:center;justify-content:center;margin:0 auto 8px}.rv-done .rv-ok svg{width:30px;height:30px}
@media (prefers-reduced-motion:reduce){.ave *,.rv *,.rv-form *{transition:none!important;animation:none!important}}
