@font-face { font-family: Kanit; src: url(/fonts/Kanit-Bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: Taviraj; src: url(/fonts/Taviraj-SemiBold.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Poppins; src: url(/fonts/Poppins-Bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: Prompt; src: url(/fonts/Prompt-Light.woff2) format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: Prompt; src: url(/fonts/Prompt-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Prompt; src: url(/fonts/Prompt-Medium.woff2) format('woff2'); font-weight: 500; font-display: swap; }

:root {
  /* สีจากคู่มือแบรนด์ FTN */
  --violet: #3F2D63;
  --violet-2: #33244F;
  --night: #241A38;
  --mauve: #B4709A;
  --mauve-text: #96507F;
  --lavender: #EEE6F3;
  --lilac: #DCCCF0;
  --paper: #F8F3F8;
  --pastel: #F5C6DC;
  --butter: #F6E7A6;
  --soft: #5E4E7C;
  --line: rgba(63, 45, 99, .18);
  --line-light: rgba(248, 243, 248, .22);
  --danger: #B3342F;
  --head: Kanit, 'Noto Sans Thai', system-ui, sans-serif;
  --sans: Prompt, 'Noto Sans Thai', system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--violet); font: 300 17px/1.7 var(--sans); overflow-x: clip; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.32; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--mauve); outline-offset: 3px; }
h1:focus { outline: none; }

/* ปุ่ม */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 28px; border: 1px solid var(--violet); border-radius: 999px; background: var(--violet); color: var(--paper); font: 400 16px/1.4 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, opacity .2s; }
.btn:hover { background: var(--violet-2); }
.btn:disabled { opacity: .42; cursor: not-allowed; }
.btn-gold { background: var(--butter); border-color: var(--butter); color: var(--violet); font-weight: 500; }
.btn-gold:hover { background: #FBF1C4; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(127, 110, 160, .14); }
.btn-small { min-height: 44px; padding: 6px 18px; font-size: 14px; }
.btn-wide { width: 100%; }

/* แถบบน */
.topbar { position: fixed; z-index: 30; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gutter); color: var(--paper); pointer-events: none; }
.topbar > * { pointer-events: auto; }
.topbar .btn { background: rgba(36, 26, 56, .52); border-color: rgba(248, 243, 248, .5); color: var(--paper); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.topbar-solid { position: sticky; top: 0; min-height: 56px; padding-block: 8px; background: var(--violet); }
.topbar.is-solid { background: var(--violet); }
.topbar.is-solid .btn { background: transparent; }
.wordmark { font: 700 20px/1 Poppins, var(--sans); letter-spacing: -.02em; text-decoration: none; }
.topbar-actions { display: flex; flex: none; align-items: center; gap: 8px; }
.topbar-long { display: none; }
@media (min-width: 560px) { .topbar-long { display: inline; } }
@media (max-width: 400px) {
  .topbar { gap: 8px; }
  .topbar-actions { gap: 6px; }
  .topbar-actions .btn { padding-inline: 11px; }
}
@media (max-width: 350px) { .topbar .wordmark { font-size: 16px; } }

/* HERO: ฉากตรึงระหว่างเลื่อน ภาพค่อย ๆ ประกอบขึ้นบนมือถือ */
.hero { height: 460svh; background: var(--night); }
.hero-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; color: var(--paper); isolation: isolate; }
.hero-sky { position: absolute; inset: 0; z-index: -2; background: var(--night); }
.sky { position: absolute; inset: 0; opacity: 0; will-change: opacity; }
.sky-1 { background: radial-gradient(82% 52% at 50% 62%, rgba(207, 195, 214, .5) 0%, rgba(207, 195, 214, 0) 72%); }
.sky-2 { background: radial-gradient(72% 52% at 50% 46%, rgba(180, 154, 147, .52) 0%, rgba(180, 154, 147, 0) 74%); }
.sky-3 { background: radial-gradient(62% 48% at 50% 40%, rgba(246, 231, 166, .34) 0%, rgba(246, 231, 166, 0) 74%); }
.star { position: absolute; z-index: -1; width: var(--s, 22px); aspect-ratio: 1; background: url(/img/star.svg) center / contain no-repeat; animation: twinkle 3.6s ease-in-out infinite; }
.star-1 { left: 7%; top: 30%; --s: 26px; }
.star-2 { right: 8%; top: 34%; --s: 18px; animation-delay: -1.1s; }
.star-3 { left: 11%; top: 68%; --s: 16px; animation-delay: -2.2s; }
.star-4 { right: 10%; top: 62%; --s: 28px; animation-delay: -3s; }
@keyframes twinkle { 0%, 100% { opacity: .95; transform: scale(1); } 50% { opacity: .45; transform: scale(.82); } }
.hero-sky::after { content: ''; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(180deg, rgba(20, 12, 38, 0), rgba(20, 12, 38, .78)); }
.hero-arch { position: absolute; z-index: -1; left: 50%; bottom: 0; width: min(94vw, 62svh, 640px); height: 86svh; margin-left: calc(min(94vw, 62svh, 640px) / -2); will-change: transform, opacity; transform-origin: 50% 100%; }
.hero-arch i { position: absolute; inset: 0; border: 1px solid rgba(245, 198, 220, .7); border-bottom: 0; border-radius: 999px 999px 0 0; }
.hero-arch i + i { inset: 16px 16px 0; border-color: rgba(245, 198, 220, .34); }
.hero-title { position: absolute; z-index: -1; top: clamp(76px, 12svh, 128px); left: 0; right: 0; text-align: center; font-size: min(12.4vw, 16svh); font-weight: 700; line-height: 1.26; color: var(--pastel); will-change: transform, opacity; text-shadow: 0 2px 40px rgba(36, 26, 56, .35); }
.hero-title span { display: block; white-space: nowrap; }
.hero-phone { width: min(62vw, 28.5svh, 330px); margin-bottom: 10svh; will-change: transform; transform-origin: 50% 100%; }
.hero-caps { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(18px, 4svh, 44px); margin: 0; padding: 0; list-style: none; text-align: center; min-height: 92px; }
.hero-caps li { position: absolute; inset: auto 0 0; opacity: 0; transform: translateY(10px); transition: opacity .32s, transform .32s; pointer-events: none; }
.hero-caps li.is-on { opacity: 1; transform: none; }
.hero-caps b { display: block; font: 700 clamp(22px, 5.6vw, 34px)/1.35 var(--head); }
.hero-caps span { display: block; font-size: 15px; line-height: 1.55; color: rgba(248, 243, 248, .9); max-width: 34em; margin: 2px auto 0; text-wrap: balance; }
.hero-cta { position: absolute; left: 0; right: 0; bottom: clamp(104px, 15svh, 150px); text-align: center; opacity: 0; transform: translateY(14px); transition: opacity .32s, transform .32s; pointer-events: none; }
.hero-cta.is-on { opacity: 1; transform: none; pointer-events: auto; }
.hero-cue { position: absolute; left: 50%; bottom: clamp(16px, 3svh, 30px); transform: translateX(-50%); width: max-content; max-width: 92vw; padding: 5px 16px; border-radius: 99px; background: rgba(36, 26, 56, .62); text-align: center; font-size: 14px; line-height: 1.5; color: var(--paper); }
.hero-rail { position: absolute; top: 50%; right: clamp(10px, 2vw, 28px); width: 1px; height: 26svh; transform: translateY(-50%); background: rgba(248, 243, 248, .25); }
.hero-rail i { display: block; height: 100%; background: var(--butter); transform: scaleY(0); transform-origin: top; }
.hero.is-static { height: auto; }
.hero.is-static .hero-stage { position: relative; height: auto; min-height: 100svh; padding: 96px 0 56px; gap: 24px; }
.hero.is-static .hero-title { position: static; opacity: 1 !important; transform: none !important; }
.hero.is-static .hero-caps, .hero.is-static .hero-cue, .hero.is-static .hero-rail, .hero.is-static .hero-arch { display: none; }
.hero.is-static .hero-phone { margin-bottom: 0; }
.hero.is-static .hero-cta { position: static; opacity: 1; transform: none; pointer-events: auto; }

@media (min-width: 900px) {
  .hero-phone { width: min(24vw, 39svh, 360px); margin-bottom: 0; }
  .hero-arch { width: min(62vw, 76svh, 760px); height: 92svh; margin-left: calc(min(62vw, 76svh, 760px) / -2); }
  .hero-caps { left: var(--gutter); right: auto; bottom: auto; top: 50%; width: min(29vw, 420px); text-align: left; transform: translateY(-50%); min-height: 200px; }
  .hero-caps li { inset: 50% 0 auto; transform: translateY(calc(-50% + 12px)); }
  .hero-caps li.is-on { transform: translateY(-50%); }
  .hero-caps b { font-size: clamp(30px, 3vw, 44px); }
  .hero-caps span { font-size: 17px; margin-top: 8px; }
  .hero-cta { left: auto; right: calc(var(--gutter) + 40px); bottom: auto; top: 50%; width: auto; transform: translateY(-50%); }
  .hero-cta.is-on { transform: translateY(-50%); }
}

/* มือถือจำลอง */
.phone { position: relative; width: 100%; padding: 2.6%; border-radius: 12.5% / 5.8%; background: #120B20; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 30px 70px -18px rgba(12, 6, 24, .75); }
.phone-screen { position: relative; aspect-ratio: 1290 / 2796; overflow: hidden; border-radius: 10.6% / 4.9%; background: var(--violet-2); container-type: inline-size; }
.phone-screen > img { width: 100%; height: 100%; object-fit: cover; }
.phone-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.phone-bg.is-on { opacity: 1; }
.hero .phone-bg { transition: none; }
.phone-island { position: absolute; top: 3.2%; left: 50%; width: 29%; height: 2.7%; background: #05030B; border-radius: 99px; transform: translateX(-50%); }
.phone-clock { position: absolute; top: 9%; left: 0; right: 0; text-align: center; color: #fff; text-shadow: 0 1px 3px rgba(36, 26, 56, .5), 0 1px 18px rgba(36, 26, 56, .6); }
.phone-date { display: block; font-size: 4.8cqw; font-weight: 400; line-height: 1.6; }
.phone-time { display: block; font: 300 22cqw/1.08 var(--sans); }
.phone-inner { position: relative; }
.phone-over { position: absolute; inset: 0; container-type: inline-size; pointer-events: none; }
.phone-card { position: absolute; aspect-ratio: 195 / 326; border-radius: 6% / 3.6%; }
.phone-card:not(.is-empty) { filter: drop-shadow(0 .5cqw .8cqw rgba(91, 63, 140, .3)); }
.phone-card img { width: 100%; height: 100%; border-radius: inherit; }
.phone-card.is-empty { border: 1px dashed rgba(63, 45, 99, .6); background: rgba(255, 255, 255, .45); }
.phone-card.is-empty::after { content: '?'; position: absolute; inset: 0; display: grid; place-items: center; font: 700 6cqw/1 var(--head); color: var(--violet); }
.phone-numbers, .phone-name { position: absolute; left: 0; right: 0; text-align: center; white-space: nowrap; font-family: Taviraj, var(--head); font-weight: 600; line-height: 1.3; }
.phone-numbers { transform: translateY(-50%); }
.phone-numbers span { display: inline-block; padding: .22em .85em; border: .12em solid #F2C24B; border-radius: 99px; background: linear-gradient(#7A5DB5, #4F3580); color: #FFD83A; }
.phone-name { transform: translateY(-78%); text-shadow: 0 0 1cqw #fff, 0 0 1cqw #fff; }
.phone-photo .phone-screen { background: var(--lavender); }
.phone-wait { position: absolute; inset: 0; display: none; place-items: center; margin: 0; padding: 12%; text-align: center; font-size: 15px; line-height: 1.5; color: var(--violet); }
.is-loading > .phone-wait, .is-failed > .phone-wait { display: grid; }
.phone-screen.is-loading { animation: wait-pulse 1.4s ease-in-out infinite; }
.phone-screen.is-loading > img, .phone-screen.is-failed > img { opacity: 0; }
.phone-screen.is-failed { cursor: pointer; animation: none; }
@keyframes wait-pulse { 50% { background: var(--lilac); } }

/* ส่วนเนื้อหา */
.band { padding: clamp(68px, 11vw, 150px) 0; }
.band-dark { background: var(--violet); color: var(--paper); }
.band-cream { background: var(--paper); }
.band-sand { background: var(--lavender); }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 820px; }
.sec-head { margin-bottom: clamp(32px, 5vw, 68px); }
.sec-head h2 { font-size: clamp(34px, 6.2vw, 80px); line-height: 1.26; }
.kicker { display: inline-block; margin-bottom: 14px; padding: 3px 12px; background: var(--pastel); color: var(--violet); font: 700 14px/1.5 var(--head); transform: rotate(-1.5deg); }

/* สามโลก */
.worlds { display: grid; grid-auto-flow: column; grid-auto-columns: min(72vw, 400px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scrollbar-width: none; }
.worlds::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .worlds { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; gap: 22px; overflow: visible; margin: 0; padding: 0; } }
.world { position: relative; display: block; aspect-ratio: 1290 / 2500; overflow: hidden; border-radius: 8px; text-decoration: none; scroll-snap-align: center; background: var(--violet-2); }
.world img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.world:hover img, .world:focus-visible img { transform: scale(1.04); }
.world-text { position: absolute; inset: auto 0 0; padding: 72px 18px 22px; background: linear-gradient(180deg, transparent, rgba(16, 9, 30, .72) 42%, rgba(16, 9, 30, .88)); display: grid; gap: 2px; }
.world-text small { font-size: 13px; color: var(--butter); }
.world-text strong { font: 700 clamp(24px, 2.2vw, 30px)/1.3 var(--head); }
.nb { display: inline-block; font-style: normal; }
.world-text span { font-size: 15px; line-height: 1.5; color: rgba(248, 243, 248, .88); }

/* ขั้นตอน */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 0; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; column-gap: 8px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); grid-row: span 2; font: 700 34px/1.2 var(--head); color: var(--mauve); }
.steps b { font: 700 clamp(21px, 2.3vw, 28px)/1.4 var(--head); }
.steps span { color: var(--soft); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
  .steps li { display: block; padding: 28px 28px 36px 0; border-bottom: 0; border-right: 1px solid var(--line); padding-left: 24px; }
  .steps li:first-child { padding-left: 0; }
  .steps li:last-child { border-right: 0; }
  .steps li::before { display: block; font-size: 44px; margin-bottom: 18px; }
  .steps span { display: block; margin-top: 8px; font-size: 16px; }
}

/* ราคา */
.prices { display: grid; gap: 16px; }
@media (min-width: 760px) { .prices { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
.price { padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line-light); display: grid; gap: 14px; align-content: start; }
.price.is-main { background: var(--paper); color: var(--violet); border-color: var(--paper); }
.price h3 { font-size: clamp(26px, 3vw, 38px); }
.price-num { font: 700 clamp(44px, 6vw, 76px)/1.2 var(--head); }
.price-blurb { min-height: 3.4em; opacity: .86; }
.price .btn { justify-self: start; }
.band-dark .price:not(.is-main) .btn { background: transparent; border-color: var(--paper); color: var(--paper); }
.band-dark .price:not(.is-main) .btn:hover { background: rgba(248, 243, 248, .12); }

/* คำถาม */
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 18px; cursor: pointer; list-style: none; font: 700 19px/1.45 var(--head); padding: 8px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 300 26px/1 var(--sans); color: var(--mauve); flex: none; }
.faq details[open] summary::after { content: '−'; }
.faq p { padding: 0 0 20px; color: var(--soft); max-width: 40em; }
.faq-cta { margin-top: 36px; text-align: center; }

.foot { background: var(--violet); color: rgba(248, 243, 248, .78); padding: 38px 0; font-size: 14px; }
.foot-in { display: grid; gap: 12px; }
.foot .wordmark { color: var(--paper); }
.foot a { color: var(--butter); }
.foot-tag { text-align: center; color: var(--paper); margin-top: 8px; }

/* หน้าสั่งทำ */
.progress { position: sticky; top: 56px; z-index: 20; height: 3px; background: var(--lavender); }
.progress i { display: block; height: 100%; background: var(--mauve); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.progress-text { font-size: 14px; color: rgba(248, 243, 248, .86); }
.page-order, .page-result { background: var(--paper); }
.studio { display: grid; grid-template-columns: 1fr; max-width: 1180px; margin: 0 auto; padding: 18px var(--gutter) 56px; gap: 20px; }
.studio-preview { display: flex; justify-content: center; }
.studio-preview .phone { width: min(34vw, 24svh, 200px); }
.page-result .studio-preview .phone { width: min(70vw, 56svh, 340px); }
body[data-step='wishes'] .studio-preview { display: none; }
.studio-form h1 { font-size: clamp(30px, 5vw, 50px); margin-bottom: 10px; }
.step-note { color: var(--soft); margin-bottom: 18px; font-size: 16px; line-height: 1.65; }
.studio-nav { display: flex; gap: 10px; margin-top: 26px; }
@media (max-width: 899px) {
  .page-order .studio { padding-bottom: 0; }
  .studio-nav { position: sticky; bottom: 0; z-index: 5; margin: 18px calc(var(--gutter) * -1) 0; padding: 18px var(--gutter) calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(248, 243, 248, 0), var(--paper) 26%); }
  /* ขั้นนี้มีช่องให้ติ๊กอยู่ท้ายฟอร์ม ปุ่มลอยจะบังได้ */
  body[data-step='review'] .studio-nav, body[data-step='info'] .studio-nav { position: static; background: none; }
  body[data-step='info'] .studio-preview { display: none; }
}
.studio-nav .btn-gold { flex: 1; background: var(--violet); border-color: var(--violet); color: var(--paper); }
.studio-nav .btn-gold:hover { background: var(--violet-2); }
.page-result .btn-gold { background: var(--violet); border-color: var(--violet); color: var(--paper); }
.loading { padding: 80px 0; text-align: center; color: var(--soft); }
@media (min-width: 900px) {
  .studio { grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); gap: clamp(40px, 7vw, 100px); padding-top: 40px; align-items: start; }
  .studio-preview { position: sticky; top: 96px; }
  .studio-preview .phone, .page-result .studio-preview .phone { width: min(100%, 70svh * .47, 340px); }
  body[data-step='wishes'] .studio-preview { display: flex; }
}

.choices { border: 0; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice-body { display: block; border: 1px solid var(--line); padding: 16px 18px; background: #FFFFFF; transition: border-color .15s, box-shadow .15s; }
.choice:hover .choice-body { border-color: var(--mauve); }
.choice input:checked + .choice-body { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet); }
.choice input:focus-visible + .choice-body { outline: 2px solid var(--mauve); outline-offset: 2px; }
.choices-stack .choice-body { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; }
.choices-stack strong { font: 700 23px/1.4 var(--head); }
.choice-price { font: 700 21px/1.5 var(--head); }
.choices-stack small { grid-column: 1 / -1; font-size: 15px; line-height: 1.55; color: var(--soft); }
.choices-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.choice-photo { height: 100%; padding: 5px 5px 8px; text-align: center; }
.choice-photo img { width: 100%; aspect-ratio: 1290 / 2200; object-fit: cover; }
.choice-photo strong { display: block; margin-top: 7px; font: 400 14px/1.4 var(--sans); }
.choices-days { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choice-day { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 14px; }
.choice-day i { flex: none; width: 15px; height: 15px; border-radius: 50%; }
.choice-day strong { font-weight: 400; font-size: 16px; }
@media (min-width: 620px) { .choices-days { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.field { display: block; margin-bottom: 14px; }
.field-label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 400; font-size: 15px; margin-bottom: 5px; }
.field input, .field select { width: 100%; border: 1px solid var(--line); border-radius: 0; background: #FFFFFF; color: var(--violet); padding: 12px 14px; font: 300 17px/1.6 var(--sans); }
.field input, .field select { min-height: 52px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet); }
.pick-count { position: sticky; top: 59px; z-index: 4; margin: 0 calc(var(--gutter) * -1) 6px; padding: 8px var(--gutter); background: var(--paper); font: 700 15px/1.5 var(--head); color: var(--mauve-text); }
@media (min-width: 900px) { .pick-count { margin-inline: 0; padding-inline: 0; } }
.wish-group { border: 0; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.wish-group legend { padding: 0; margin-bottom: 8px; font: 700 17px/1.5 var(--head); color: var(--violet); }
.wish-chip { position: relative; display: inline-flex; cursor: pointer; }
.wish-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.wish-chip span { display: flex; align-items: center; min-height: 46px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #FFFFFF; font-size: 15px; font-weight: 400; line-height: 1.4; transition: background .15s, color .15s, border-color .15s, opacity .15s; }
.wish-chip:hover span { border-color: var(--mauve); }
.wish-chip input:checked + span { background: var(--violet); border-color: var(--violet); color: var(--paper); }
.wish-chip input:focus-visible + span { outline: 2px solid var(--mauve); outline-offset: 2px; }
.wish-chip input:disabled { cursor: not-allowed; }
.wish-chip input:disabled + span { opacity: .4; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.date-group { border: 0; margin: 0 0 6px; padding: 0; min-width: 0; }
.date-group legend, .name-choices legend { padding: 0; margin-bottom: 8px; font: 700 17px/1.5 var(--head); color: var(--violet); }
.date-row { display: grid; grid-template-columns: 1fr 1.7fr 1.5fr; gap: 8px; }
.date-row .field { margin-bottom: 8px; }
.date-row .field select { padding-inline: 8px 2px; }
.day-result { margin-bottom: 18px; }
.day-line { display: flex; align-items: baseline; gap: 8px; padding: 10px 14px; background: var(--lavender); font-size: 16px; }
.day-line b { font: 700 19px/1.4 var(--head); color: var(--violet); }
.day-fix { display: grid; gap: 6px; margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--soft); }
.day-fix select { min-height: 44px; border: 1px solid var(--line); background: #FFFFFF; color: var(--violet); font: 300 16px/1.5 var(--sans); padding: 6px 10px; }
.name-choices { margin-top: 8px; }
.name-choices .choice-body { display: block; padding: 12px 16px; }
.name-choices strong { font: 400 16px/1.5 var(--sans); }
.custom-name { margin-top: 12px; }
.addon { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 18px 0 4px; padding: 14px 16px; border: 1px solid var(--mauve); background: #FFFFFF; cursor: pointer; }
.addon input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--violet); }
.addon-text { display: grid; }
.addon-text strong { font: 700 17px/1.45 var(--head); }
.addon-text small { font-size: 14px; color: var(--soft); }
.addon-thumbs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.addon-thumbs figure { margin: 0; }
.addon-thumbs img { width: 100%; aspect-ratio: 1290 / 2796; object-fit: cover; }
.addon-thumbs figcaption { text-align: center; font-size: 13px; color: var(--soft); margin-top: 3px; }
.addon-note { margin-top: 18px; text-align: center; font-size: 16px; color: var(--butter); }
.bank-box { margin: 16px 0; padding: 20px 16px; background: var(--lavender); }
.bank-box h2 { font-size: 24px; margin-bottom: 14px; }
.bank-layout { display: grid; gap: 18px; }
.bank-card { display: grid; justify-items: center; gap: 12px; }
.bank-qr { display: block; width: min(100%, 340px); height: auto; border-radius: 20px; background: var(--paper); box-shadow: 0 16px 36px rgba(36, 26, 56, .24); }
.bank-save { width: min(100%, 340px); }
.pay-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: pay-step; font-size: 15px; line-height: 1.55; }
.pay-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; counter-increment: pay-step; }
.pay-steps li::before { content: counter(pay-step); width: 28px; height: 28px; border-radius: 50%; background: var(--violet); color: var(--paper); font: 700 14px/28px var(--head); text-align: center; }
.bank-account { margin-top: 16px; padding: 14px; background: #FFFFFF; }
.bank-account h3 { margin: 0 0 6px; font: 700 16px/1.5 var(--head); color: var(--violet); }
.bank-account .summary { margin: 0 0 12px; border-top: 0; font-size: 14px; }
.bank-account .summary div { gap: 10px; padding: 8px 0; }
.bank-number { font: 700 18px/1.4 var(--head); letter-spacing: .02em; }
@media (min-width: 900px) { .bank-layout { grid-template-columns: 250px minmax(0, 1fr); align-items: start; } .bank-account .summary div { flex-wrap: wrap; gap: 0 10px; } .bank-account .summary dd { text-align: left; } }
.slip-form { margin-top: 8px; }
.slip-form input[type=file] { padding: 12px; }
.slip-thumb { max-height: 240px; width: auto; margin: 0 0 12px; border: 1px solid var(--line); }
.bg-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.admin { max-width: 960px; margin: 0 auto; padding: 24px var(--gutter) 64px; }
.admin h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.admin-login { max-width: 380px; margin: 8vh auto; }
.admin-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
@media (min-width: 720px) { .admin-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.admin-stats div { padding: 14px; background: var(--lavender); }
.admin-stats strong { display: block; font: 700 26px/1.3 var(--head); color: var(--violet); }
.admin-stats span { font-size: 14px; color: var(--soft); }
.admin-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.admin > input[type=search] { width: 100%; min-height: 46px; margin-bottom: 14px; padding: 8px 12px; border: 1px solid var(--line); background: #FFFFFF; font: 300 16px/1.5 var(--sans); color: var(--violet); }
.admin-order { border: 1px solid var(--line); background: #FFFFFF; margin-bottom: 8px; }
.admin-order summary { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; min-height: 54px; padding: 8px 14px; cursor: pointer; list-style: none; font-size: 15px; }
.admin-order summary::-webkit-details-marker { display: none; }
.admin-badge { padding: 2px 10px; border-radius: 99px; background: var(--lavender); font-size: 13px; white-space: nowrap; }
.is-slip_submitted .admin-badge { background: var(--butter); }
.is-paid .admin-badge { background: #CFEBD6; }
.is-rejected .admin-badge { background: #F6D2D0; }
.admin-detail { padding: 0 14px 16px; }
.admin-picks { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 14px; }
.admin-picks th, .admin-picks td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-media { display: grid; gap: 12px; margin: 12px 0; }
@media (min-width: 620px) { .admin-media { grid-template-columns: 240px 1fr; } }
.admin-slip { display: grid; gap: 4px; font-size: 14px; }
.admin-slip img { width: 100%; max-height: 360px; object-fit: contain; background: var(--lavender); }
.admin-links { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; }
.slip-checks { margin: 12px 0; padding: 12px 14px; background: var(--lavender); }
.slip-checks h3 { font-size: 17px; margin-bottom: 6px; }
.slip-checks ul { margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.6; }
.slip-checks .is-ok { color: #1F6B3A; }
.slip-checks .is-bad { color: var(--danger); font-weight: 400; }
.slip-checks .is-unknown { color: var(--soft); }
.admin-badge.is-warn { background: #F6D2D0; }
.admin-actions { display: grid; gap: 10px; margin-top: 12px; }
.admin-reject { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.admin-reject input { min-height: 52px; padding: 8px 12px; border: 1px solid var(--line); font: 300 16px/1.5 var(--sans); color: var(--violet); }
.page-admin { background: var(--paper); }
.page-admin .topbar .btn { background: transparent; border-color: var(--paper); color: var(--paper); }
.field-error, .form-error { color: var(--danger); font-size: 15px; font-weight: 400; line-height: 1.5; margin-top: 6px; }

.summary { margin: 8px 0 12px; border-top: 1px solid var(--line); }
.summary div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary dt { color: var(--soft); flex: none; }
.summary dd { margin: 0; text-align: right; font-weight: 400; overflow-wrap: anywhere; }
.summary-wishes { margin: 0 0 14px; padding-left: 22px; color: var(--soft); font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.summary-wishes li { margin-bottom: 6px; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0; }
.summary-total strong { font: 700 34px/1.3 var(--head); }
.agree { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.6; cursor: pointer; }
.agree input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--violet); }

.fine { font-size: 13px; line-height: 1.55; color: var(--soft); margin-top: 10px; }
.page-result .studio-form > .btn-ghost { margin-bottom: 8px; }

/* กันลิงก์ออเดอร์หาย */
.keep-link { margin: 16px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; }
.keep-link h2 { margin-bottom: 10px; font-size: 18px; }
.keep-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.studio-single { grid-template-columns: minmax(0, 560px); justify-content: center; }
.find-device { margin-bottom: 26px; display: grid; gap: 8px; }
.find-device h2, .find-form h2 { font-size: 20px; margin-bottom: 8px; }
.find-form .btn-wide { margin-top: 14px; }
.find-order { justify-content: center; }
.find-sent { padding: 14px 16px; background: var(--lavender); line-height: 1.6; }
.find-help { margin-top: 22px; }
.keep-mail { margin-bottom: 10px; font-size: 15px; line-height: 1.55; }
.email-field { margin-top: 18px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
  .star { animation: none; }
}
