:root {
  --ink: #2b1f16;
  --brown: #3d2b1d;
  --deep: #1f1610;
  --muted: #6f604f;
  --gold: #b8923f;
  --gold-2: #d6b36a;
  --gold-soft: #f3e8cf;
  --paper: #fbf8f1;
  --line: #e7dcc6;
  --white: #ffffff;
  --radius: 14px;
  --font: "IBM Plex Sans Thai", "Noto Sans Thai", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.35; margin: 0; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.icon { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ส่วนหัว */
.topbar { background: var(--deep); border-bottom: 1px solid rgba(214,179,106,.25); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.topbar img { height: 44px; width: auto; }
.topbar .hours { color: var(--gold-2); font-size: 14px; display: flex; gap: 8px; align-items: center; }
.topbar .hours .icon { width: 18px; height: 18px; }

/* หน้าแรก */
.hero {
  background: radial-gradient(120% 90% at 80% 0%, #3a2a1d 0%, var(--deep) 60%);
  color: var(--gold-soft);
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero .wrap { display: grid; gap: 36px; align-items: center; }
.hero-poster { margin: 0; width: min(460px, 100%); justify-self: center; }
.hero-poster img { width: 100%; height: auto; }
.hero-poster figcaption { font-size: 14px; color: rgba(243,232,207,.7); margin-top: 10px; text-align: center; line-height: 1.5; }
/* รูปแนวนอน: แบนเนอร์เต็มความกว้างจอ ชนขอบ ไม่ครอป ข้อความอยู่ใต้รูป */
.hero[data-layout="banner"] { padding-top: 0; }
.hero[data-layout="banner"] .wrap { grid-template-columns: 1fr !important; }
.hero[data-layout="banner"] .hero-poster { order: -1 !important; width: 100vw; max-width: none; margin-left: calc(50% - 50vw); justify-self: stretch; }
.hero[data-layout="banner"] .hero-poster figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.eyebrow { color: var(--gold-2); font-size: 15px; letter-spacing: .04em; margin: 0 0 12px; }
.hero h1 { font-size: clamp(30px, 6vw, 56px); color: #f7ecd2; font-weight: 700; }
.hero p.lead { font-size: 18px; color: rgba(243,232,207,.82); margin: 18px 0 0; max-width: 40ch; }

.section { padding: 72px 0; }
.section h2 { font-size: clamp(26px, 4vw, 38px); color: var(--ink); }
.section .sub { color: var(--muted); margin: 10px 0 0; max-width: 60ch; }
.rule { width: 64px; height: 3px; background: var(--gold); margin: 0 0 18px; border: 0; }

.grid-4 { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-top: 36px; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; transition: transform .2s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: 0 10px 24px -14px rgba(61,43,29,.35); }
.feature .icon { width: 30px; height: 30px; color: var(--gold); margin-bottom: 12px; }
.feature h3 { font-size: 18px; font-weight: 600; }
.feature p { margin: 6px 0 0; font-size: 15px; color: var(--muted); line-height: 1.6; }

.services { background: var(--white); border-block: 1px solid var(--line); }
.svc-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.svc-list li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.svc-list li:last-child { border-bottom: 0; }
.svc-list .num { font-weight: 700; color: var(--gold); font-size: 22px; min-width: 38px; }
.svc-list h3 { font-size: 19px; font-weight: 600; }
.svc-list p { margin: 4px 0 0; color: var(--muted); }

.steps { counter-reset: s; display: grid; gap: 14px; margin-top: 32px; }
.step { display: flex; gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step .icon { width: 30px; height: 30px; color: var(--gold); }
.step h3 { font-size: 18px; font-weight: 600; }
.step p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

.footer { background: var(--deep); color: rgba(243,232,207,.75); padding: 40px 0 48px; font-size: 15px; }
.footer .wrap { display: grid; gap: 18px; }
.footer img { height: 56px; width: auto; }
.footer .small { font-size: 14px; color: rgba(243,232,207,.55); }

/* หน้าตรวจสอบ */
.verify-head { background: var(--deep); color: var(--gold-soft); padding: 28px 0 32px; }
.status {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(214,179,106,.14); border: 1px solid rgba(214,179,106,.5);
  color: #f3e1b0; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 16px;
}
.status .icon { width: 22px; height: 22px; color: var(--gold-2); }
.verify-head h1 { font-size: clamp(26px, 6vw, 40px); color: #f7ecd2; margin-top: 14px; }
.verify-head .no { color: var(--gold-2); font-size: 18px; margin-top: 6px; }

.card-img { width: 100%; height: auto; aspect-ratio: 2067 / 1323; border-radius: 12px; box-shadow: 0 18px 40px -22px rgba(0,0,0,.55); background: #efe6d3; }

.gallery { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-top: 14px; -webkit-overflow-scrolling: touch; }
.gallery figure { margin: 0; flex: 0 0 82%; scroll-snap-align: center; background: var(--white); border-radius: 12px; }
.gallery img { width: 100%; height: auto; border-radius: 12px; }
.gallery figcaption { font-size: 14px; color: var(--muted); padding: 6px 4px 0; }
.gallery-hint { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.gallery-hint .icon { width: 18px; height: 18px; }

.detail { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 20px; margin: 0; }
.detail div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.detail div:last-child { border-bottom: 0; }
.detail dt { color: var(--muted); font-size: 15px; }
.detail dd { margin: 0; font-weight: 600; word-break: break-word; }

.v-grid { display: grid; gap: 28px; padding: 28px 0 56px; }
.v-grid h2 { font-size: 22px; margin-bottom: 12px; }
.notice { font-size: 14px; color: var(--muted); margin-top: 14px; }

.empty { text-align: center; padding: 80px 0; }
.empty .icon { width: 48px; height: 48px; color: var(--gold); margin: 0 auto 16px; }
.empty h1 { font-size: 28px; }
.empty p { color: var(--muted); }

.skeleton { background: linear-gradient(90deg, #efe6d3, #f7f0e1, #efe6d3); background-size: 200% 100%; animation: sk 1.4s infinite linear; border-radius: 12px; }
@keyframes sk { to { background-position: -200% 0; } }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (min-width: 480px) {
  .gallery figure { flex-basis: 60%; }
}
@media (min-width: 768px) {
  .hero { padding: 96px 0 104px; }
  .hero .wrap { grid-template-columns: 1.1fr .9fr; }
  .hero-poster { order: 2; justify-self: end; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { flex-direction: column; }
  .footer .wrap { grid-template-columns: 1fr auto; align-items: end; }
  .v-grid { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .gallery figure { flex-basis: 48%; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .feature, .skeleton { transition: none; animation: none; }
}

/* แถบบัตรที่ออกแล้ว เลื่อนเอง ตรงกลางเต็มใบ ข้างๆ เห็นครึ่งใบแบบจาง */
.cards-run { background: var(--deep); color: var(--gold-soft); overflow: hidden; }
.cards-run h2 { color: #f7ecd2; }
.cards-run .sub { color: rgba(243,232,207,.7); }
.run { position: relative; margin-top: 32px; outline: none; touch-action: pan-y; user-select: none; }
.run-track { position: relative; width: min(720px, 80vw); margin: 0 auto; aspect-ratio: 2067 / 1323; }
.run-slide {
  position: absolute; inset: 0; border: 0; padding: 0; background: #2a1f17; border-radius: 12px; overflow: hidden; cursor: pointer;
  transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .6s ease, filter .6s ease;
  box-shadow: 0 24px 50px -24px rgba(0,0,0,.8);
}
.run-slide img { width: 100%; height: 100%; display: block; }
.run-slide[data-pos="0"] { transform: none; opacity: 1; z-index: 3; }
.run-slide[data-pos="-1"] { transform: translateX(-66%) scale(.8); opacity: .5; filter: brightness(.55) blur(1px); z-index: 2; }
.run-slide[data-pos="1"] { transform: translateX(66%) scale(.8); opacity: .5; filter: brightness(.55) blur(1px); z-index: 2; }
.run-slide[data-pos="-2"] { transform: translateX(-110%) scale(.65); opacity: 0; z-index: 1; pointer-events: none; }
.run-slide[data-pos="2"], .run-slide[data-pos="far"] { transform: translateX(110%) scale(.65); opacity: 0; z-index: 1; pointer-events: none; }
.run-ctrl { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 22px; }
.run-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(214,179,106,.5); background: transparent; color: var(--gold-2); display: grid; place-items: center; cursor: pointer; }
.run-btn:hover { background: rgba(214,179,106,.12); }
.run-cap { margin: 0; text-align: center; min-width: 0; flex: 1; max-width: 520px; line-height: 1.5; }
.run-cap strong { display: block; color: #f7ecd2; font-size: 20px; letter-spacing: .02em; }
.run-cap span { display: block; font-size: 15px; color: rgba(243,232,207,.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.run-cap small { display: block; font-size: 13px; color: rgba(243,232,207,.55); }
@media (prefers-reduced-motion: reduce) {
  .run-slide { transition: none; }
}
.run-track.blank-center .run-slide[data-pos="0"] { cursor: default; }

/* โหมดโชว์ตัวอย่างใบเดียว: ไม่มีปุ่มเลื่อน */
.cards-run[data-mode="one"] .run-btn { visibility: hidden; }
