:root {
  --bg: #111008;
  --bg-2: #1c1a12;
  --card: #23201a;
  --accent: #E57908;
  --accent-dark: #C96802;
  --text: #FFF7EC;
  --muted: #B8AE9E;
  --line: rgba(255, 247, 236, 0.12);
  --radius: 28px;
  --gutter: 48px;
  --font: 'IBM Plex Sans Thai', 'Noto Sans Thai', system-ui, sans-serif;
  --fs-body: 32px;
  --fs-h2: 56px;
  --fs-h1: 72px;
  --fs-num: 80px;
  --slide-ms: 8000ms;
  --fade-ms: 800ms;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width: 100%; height: 100%; overflow: hidden; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.35;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  touch-action: none; overscroll-behavior: none; cursor: none;
}
img { display: block; max-width: 100%; pointer-events: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: none; }

#stage {
  position: absolute; left: 0; top: 0; width: 1080px; height: 1920px;
  transform-origin: 0 0; background: var(--bg); overflow: hidden;
}

.screen {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 250ms ease, visibility 0s linear 250ms;
}
.screen.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }

/* nav buttons (detail) */
.detail-nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: space-between; padding: 28px var(--gutter);
  pointer-events: none;
}
.nav-btn {
  pointer-events: auto; min-width: 200px; min-height: 84px; padding: 0 36px;
  border-radius: 999px; background: rgba(17, 16, 8, 0.82); backdrop-filter: blur(12px);
  border: 2px solid var(--line); font-size: 34px; font-weight: 600;
}
.nav-btn:active { background: var(--accent); color: #111; }

/* CTA bar — shared footer on home/detail */
.cta-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; height: 220px;
  display: flex; align-items: center; gap: 36px; padding: 0 var(--gutter);
  background: linear-gradient(180deg, rgba(17,16,8,0) 0%, var(--bg) 22%);
}
.cta-bar[hidden] { display: none; }
.cta-qr { width: 164px; height: 164px; border-radius: 20px; background: #fff; padding: 8px; }
.cta-lead { font-size: 38px; font-weight: 600; }
.cta-phone { font-size: 34px; color: var(--accent); font-weight: 600; margin-top: 6px; }

/* image fallback */
.img-fallback { background: linear-gradient(135deg, var(--card), var(--bg-2)); }

/* ---------- attract ---------- */
.attract-slides { position: absolute; inset: 0; }
.attract-slide { position: absolute; inset: 0; opacity: 0; transition: opacity var(--fade-ms) ease; }
.attract-slide.is-active { opacity: 1; }
.attract-slide img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1); transition: transform 9s linear;
}
.attract-slide.is-active img { transform: scale(1.08); }
.attract-slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: transparent; }
.attract-slide video.is-failed { display: none; }
.attract-slide.is-pan img { right: auto; width: auto; max-width: none; transform: translateX(0); transition: transform var(--pan-ms, 9s) linear; }
.attract-slide.is-pan.is-active img { transform: translateX(var(--pan-x, 0px)); }
/* pan: 'rtl' starts on the right edge and travels back to the left */
.attract-slide.is-pan.pan-rtl img { transform: translateX(var(--pan-x, 0px)); }
.attract-slide.is-pan.pan-rtl.is-active img { transform: translateX(0); }
.attract-slide.has-video img { transform: none; transition: none; } /* the clip moves on its own; no Ken Burns under it */
.attract-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17,16,8,0.15) 0%, rgba(17,16,8,0) 35%, rgba(17,16,8,0.35) 60%, rgba(17,16,8,0.92) 100%);
}
.attract-caption { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 380px; z-index: 2; }
.attract-kicker { display: inline-block; font-size: 30px; font-weight: 600; color: #111; background: var(--accent); padding: 6px 22px; border-radius: 999px; margin-bottom: 22px; }
.attract-title { font-size: 92px; font-weight: 700; line-height: 1.12; text-wrap: balance; }
.attract-sub { font-size: 42px; color: var(--text); opacity: 0.92; margin-top: 18px; }

/* ---------- home ---------- */
#screen-home { display: flex; flex-direction: column; padding: 56px var(--gutter) 240px; gap: 32px; }
.home-header { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.home-logo { width: 420px; }
.home-title { font-size: 40px; font-weight: 600; color: var(--muted); text-align: center; }
.home-grid { flex: 1; display: grid; grid-template-rows: repeat(4, 1fr); gap: 28px; min-height: 0; }
.home-card {
  position: relative; display: block; width: 100%; text-align: left; border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 2px solid var(--line);
}
.home-card:active { border-color: var(--accent); transform: scale(0.99); }
.home-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,16,8,0.92) 0%, rgba(17,16,8,0.7) 55%, rgba(17,16,8,0.15) 100%); }
.home-card-body { position: absolute; left: 44px; right: 44px; top: 50%; transform: translateY(-50%); z-index: 1; }
.home-card-title { font-size: var(--fs-h2); font-weight: 700; line-height: 1.15; }
.home-card-hook { font-size: 34px; color: var(--accent); font-weight: 600; margin-top: 10px; }
.home-card-arrow { position: absolute; right: 40px; top: 50%; transform: translateY(-50%); z-index: 1; width: 84px; height: 84px; border-radius: 50%; background: var(--accent); color: #111; font-size: 48px; font-weight: 700; display: grid; place-items: center; }

/* ---------- detail ---------- */
.detail-scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; touch-action: pan-y; overscroll-behavior: contain; padding-bottom: 260px; scrollbar-width: none; }
.detail-scroll::-webkit-scrollbar { display: none; }
/* when the stage is rotated, a physical vertical swipe is a horizontal pan in screen space — allow both */
.is-sideways .detail-scroll { touch-action: none; } /* app.js drags it: native panning fails on a rotated stage */
.block { padding: 0 var(--gutter); margin-top: 44px; }
.block h2 { font-size: var(--fs-h2); font-weight: 700; margin-bottom: 22px; line-height: 1.15; }

.block-hero { padding: 0; margin-top: 0; position: relative; height: 760px; }
.block-hero img { width: 100%; height: 100%; object-fit: cover; }
.block-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,16,8,0.55) 0%, rgba(17,16,8,0) 30%, rgba(17,16,8,0.2) 60%, var(--bg) 100%); }
.detail-hero-text { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 36px; z-index: 1; }
.detail-hero-title { font-size: var(--fs-h1); font-weight: 700; line-height: 1.1; }
.detail-hero-tagline { font-size: 34px; color: var(--muted); margin-top: 12px; }

.block-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.stat { background: var(--card); border-radius: 24px; padding: 26px 20px; text-align: center; }
.stat-value { font-size: 64px; font-weight: 700; color: var(--accent); line-height: 1; }
.stat-label { font-size: 26px; color: var(--muted); margin-top: 10px; }

.block-promo .promo { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #111; border-radius: var(--radius); padding: 34px 40px; }
.promo-head { font-size: 48px; font-weight: 700; line-height: 1.15; }
.promo-cond { font-size: 28px; margin-top: 10px; opacity: 0.85; }

.block-options .option { background: var(--card); border-radius: var(--radius); padding: 32px 36px; margin-top: 20px; border: 2px solid var(--line); }
.option-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.option-name { font-size: 42px; font-weight: 700; }
.option-price { font-size: 42px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.option-cap { font-size: 30px; color: var(--muted); margin-top: 4px; }
.option ul, .block-list ul, .package ul { list-style: none; margin-top: 16px; }
.option li, .block-list li, .package li { position: relative; padding-left: 44px; font-size: 32px; line-height: 1.4; margin-top: 10px; }
.option li::before, .block-list li::before, .package li::before { content: ''; position: absolute; left: 6px; top: 16px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); }
.option-note { font-size: 27px; color: var(--muted); margin-top: 14px; }

.block-packages .package { background: var(--card); border-radius: var(--radius); padding: 34px 36px; margin-top: 22px; border: 2px solid var(--line); position: relative; }
.package.is-recommended { border-color: var(--accent); background: linear-gradient(180deg, #2c2416, var(--card)); }
.package-badge { position: absolute; top: -18px; right: 36px; background: var(--accent); color: #111; font-size: 26px; font-weight: 700; padding: 6px 22px; border-radius: 999px; }
.package-name { font-size: 48px; font-weight: 700; }
.package-en { font-size: 28px; color: var(--muted); margin-left: 14px; font-weight: 400; }
.package-price { font-size: 64px; font-weight: 700; color: var(--accent); margin-top: 6px; line-height: 1.05; }
.package-tagline { font-size: 30px; color: var(--muted); margin-top: 8px; }
.package-inherits { font-size: 30px; font-weight: 600; margin-top: 18px; padding: 12px 20px; background: rgba(229,121,8,0.14); border-radius: 16px; display: inline-block; }

.block-chips .chips { display: flex; flex-wrap: wrap; gap: 16px; }
.chip { font-size: 30px; font-weight: 600; padding: 14px 30px; border-radius: 999px; border: 2px solid var(--accent); color: var(--text); }

.block-gallery .gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 18px; background: var(--card); }

.block-cta .cta-big { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; background: var(--card); border-radius: var(--radius); padding: 44px 36px; margin-top: 10px; }
.cta-big img { width: 420px; height: 420px; background: #fff; border-radius: 28px; padding: 16px; }
.cta-big-text { font-size: 40px; font-weight: 700; }
.cta-big-phone { font-size: 44px; font-weight: 700; color: var(--accent); }
.cta-big-staff { font-size: 30px; color: var(--muted); }

/* ---------- diagnostics (?diag=1) ---------- */
.diag {
  position: absolute; top: 24px; left: 24px; right: 24px; z-index: 50; pointer-events: none;
  margin: 0; padding: 20px 24px; border-radius: 16px; background: rgba(0,0,0,0.82); color: #9f9;
  font: 24px/1.4 ui-monospace, monospace; white-space: pre-wrap; word-break: break-all;
}

/* ---------- shop 3D (spec 2026-10-13-come-kiosk-3d-shop-design.md) ---------- */
.shop-3d { position: absolute; inset: 0; z-index: 0; background: var(--bg); }
.shop-3d[hidden] { display: none; }
.shop-3d canvas { width: 100%; height: 100%; display: block; }
.screen { z-index: 1; } /* ทุกหน้าอยู่เหนือ canvas · attract/shop โปร่งให้เห็น 3D */
#screen-attract.is-3d .attract-slides { display: none; }
.tour-caption { position: absolute; left: var(--gutter); right: var(--gutter); top: 72px; z-index: 2; opacity: 0; transition: opacity 400ms ease; pointer-events: none; }
.tour-caption[hidden] { display: none; }
.tour-head { font-size: 84px; font-weight: 700; line-height: 1.12; text-shadow: 0 4px 24px rgba(0,0,0,0.7); }
.tour-sub { font-size: 44px; margin-top: 14px; color: var(--text); opacity: 0.95; text-shadow: 0 2px 16px rgba(0,0,0,0.7); }

/* โหมดอัดวิดีโอทีวี (?record=1) */
#record { position: fixed; left: 0; top: 0; overflow: hidden; background: var(--bg); }
#record .shop-3d { position: absolute; inset: 0; }
#record .record-cap { top: 48px; left: 64px; right: 64px; transition: none; }
#record .tour-head { font-size: 64px; } #record .tour-sub { font-size: 34px; }
.record-brand { position: absolute; left: 64px; bottom: 48px; font-size: 36px; font-weight: 600; text-shadow: 0 2px 16px rgba(0,0,0,0.7); }
.record-qr { will-change: transform; position: absolute; right: 64px; bottom: 48px; width: 200px; height: 200px; border-radius: 20px; background: #fff; padding: 10px; }

/* ---------- ตัวละครหน้าเวที (spec 2026-10-14 §2 §5) — HTML ทับ canvas · ตำแหน่งตั้งจาก kiosk-cast.js ทุกเฟรม */
.cast-layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.cast-hit { position: absolute; pointer-events: none; background: transparent; } /* กรอบแตะหมอลำ: kiosk-shop ตัดสินแตะ/ลากที่ #shop-3d (แตะไม่ขยับ = เล่นฉาก · ลาก = เลื่อนกล้อง · การ์ด wb-20261017-ve93) */
/* 3D ขึ้น: นิ้วผ่านหน้ารอลงไปถึง canvas (ลากหมุน · 2 นิ้วเลื่อน/ซูม แบบ iPad) · แถบบน/ล่าง + ปุ่มกลับมุมเดิมยังรับแตะ */
#screen-attract.is-3d { pointer-events: none; }
#screen-attract.is-3d .band, #screen-attract.is-3d .cam-home { pointer-events: auto; }
.cam-home { position: absolute; right: var(--gutter); bottom: 296px; z-index: 4; font-size: 36px; font-weight: 700; color: var(--text); background: rgba(17,16,8,0.82); border: 3px solid var(--accent); border-radius: 999px; padding: 18px 34px; box-shadow: 0 8px 30px rgba(0,0,0,0.4); }
.cam-home[hidden] { display: none; }
.cam-home:active { background: var(--accent); color: #111; }
.cast-hit[hidden], .cast-hint[hidden], .cast-bubble[hidden], .cast-notes[hidden] { display: none; }
.cast-hint, .cast-bubble, .cast-notes { position: absolute; left: 0; top: 0; pointer-events: none; white-space: nowrap; }
.cast-hint { font-size: 30px; font-weight: 700; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,0.9), 0 0 2px #000, 0 0 12px rgba(0,0,0,0.5); animation: cast-bob 1.4s ease-in-out infinite; } /* ตัวหนังสือเล็กไม่มีกรอบ (เจ้าของ 25 ต.ค. "กรอบใหญ่ไป บังคน ใส่เป็นข้อความก็พอ") · เงาเข้มให้อ่านออกบนพื้นสว่าง · แตะที่ตัวหมอลำ (กรอบแตะ #cast-hit) */
.party-tag { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: auto; padding: 18px 22px; margin: 0; border: 0; background: transparent; font: inherit; font-size: 30px; font-weight: 700; color: #fff; white-space: nowrap; text-shadow: 0 2px 6px rgba(0,0,0,0.9), 0 0 2px #000, 0 0 12px rgba(0,0,0,0.5); -webkit-tap-highlight-color: transparent; } /* ป้ายเหนือหัวคน (🥂 ชนแก้ว · 🎂 HBD): ตัวหนังสือเล็กแบบเดียวกับ .cast-hint · padding = พื้นที่แตะ (≥ 64 px) ไม่มีกรอบให้เห็น */
.party-tag[hidden] { display: none; }
.photo-flash { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: #fff; opacity: 0; } /* 📸 แชะ! = จอขาววาบ (kiosk-shop ตั้ง opacity ทุกเฟรม · จาง 0.35 วิ) */
.photo-flash[hidden] { display: none; }
.party-gift { display: flex; flex-direction: column; align-items: center; line-height: 1.15; } /* 🎁 แลกของขวัญ (เจ้าของ 28 ต.ค.): ปุ่ม + บรรทัดคิวต่อไป (ตัวเล็กกว่า สีทอง) */
.party-gift[hidden] { display: none; }
.party-gift .party-next { font-size: 24px; font-weight: 600; color: #ffe08a; }
.gift-next { position: absolute; left: 50%; bottom: 300px; transform: translateX(-50%); z-index: 3; pointer-events: none; padding: 14px 30px; border-radius: 32px; background: rgba(0,0,0,0.5); color: #ffe08a; font-size: 34px; font-weight: 700; white-space: pre-line; text-align: center; line-height: 1.35; width: max-content; max-width: 92%; text-shadow: 0 2px 6px rgba(0,0,0,0.8); } /* 🎁 สรุปรอบตอนเดินกลับ สองบรรทัด (เจ้าของ 29 ต.ค.): ใครได้ของใคร / ตาใครจับต่อ (เหนือแถบ LINE ล่าง 260 px) */
.gift-next[hidden] { display: none; }
.gift-vip { position: absolute; left: 50%; top: 210px; transform: translateX(-50%); z-index: 3; pointer-events: none; padding: 16px 44px; border-radius: 18px; background: linear-gradient(180deg, #ffe082 0%, #f4c430 45%, #c9971c 100%); color: #5a3a00; font-size: 48px; font-weight: 800; width: max-content; max-width: 92%; text-align: center; line-height: 1.25; border: 3px solid #fff3c4; box-shadow: 0 6px 24px rgba(0,0,0,0.45), 0 0 34px rgba(255,214,90,0.75); animation: gift-vip-pop 0.5s cubic-bezier(.2,1.6,.4,1) both, gift-vip-glow 1.2s ease-in-out 0.5s infinite alternate; } /* 🎁 ได้รางวัลใหญ่จาก <ชื่อแขก VIP>! (เจ้าของ 29 ต.ค. · ชื่อยาวขึ้นบรรทัดใหม่) */
.gift-vip[hidden] { display: none; }
@keyframes gift-vip-pop { from { transform: translateX(-50%) scale(0.3); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }
@keyframes gift-vip-glow { from { box-shadow: 0 6px 24px rgba(0,0,0,0.45), 0 0 18px rgba(255,214,90,0.5); } to { box-shadow: 0 6px 24px rgba(0,0,0,0.45), 0 0 46px rgba(255,230,120,0.95); } }
/* 📱 พ่อถ่ายรูปแม่กับลูก (ครอบครัวริมบ่อ · เจ้าของ 28 ต.ค.): ภาพ 3D = สิ่งที่มือถือพ่อเห็น · กรอบอยู่ระหว่างแถบบน 200 px กับแถบ LINE ล่าง 260 px (ช่วงเดียวกับป้ายเหนือหัว) · กรอบหน้าจอมือถือ (ขอบดำมน + แถบบน/ล่าง + เส้นตาราง 3×3 + ปุ่มชัตเตอร์) · แชะ = ปุ่มยุบ */
.phone-frame { position: absolute; inset: 200px 0 260px 0; z-index: 3; pointer-events: none; border: 26px solid #0d0e10; border-radius: 64px; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.18); }
.phone-frame[hidden] { display: none; }
.phone-top, .phone-bottom { position: absolute; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 48px; color: #fff; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
.phone-top { top: 0; height: 90px; background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0)); font-size: 30px; border-radius: 38px 38px 0 0; }
.phone-bottom { bottom: 0; height: 200px; background: rgba(0,0,0,0.45); border-radius: 0 0 38px 38px; }
.phone-mode { font-size: 26px; letter-spacing: 0.12em; color: #ffd54f; width: 110px; }
.phone-shutter { width: 112px; height: 112px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 9px rgba(0,0,0,0.45), 0 0 0 16px #fff; transition: transform 0.12s; }
.phone-frame.is-snap .phone-shutter { transform: scale(0.82); background: #e0e0e0; }
.phone-thumb { width: 96px; height: 96px; border-radius: 16px; border: 3px solid #fff; background: rgba(255,255,255,0.12); }
.phone-frame.has-shot .phone-thumb { background: linear-gradient(160deg, #6fa86b 0%, #2f5d3a 55%, #23404f 100%); } /* ได้รูปแล้ว = มีภาพย่อมุมขวา (สีสวน-น้ำ) */
.phone-grid { position: absolute; left: 0; right: 0; top: 90px; bottom: 200px; background: linear-gradient(90deg, transparent calc(33.3% - 1px), rgba(255,255,255,0.28) 33.3%, transparent calc(33.3% + 1px), transparent calc(66.6% - 1px), rgba(255,255,255,0.28) 66.6%, transparent calc(66.6% + 1px)), linear-gradient(transparent calc(33.3% - 1px), rgba(255,255,255,0.28) 33.3%, transparent calc(33.3% + 1px), transparent calc(66.6% - 1px), rgba(255,255,255,0.28) 66.6%, transparent calc(66.6% + 1px)); }
.party-tag:active { color: var(--accent); }
.tip-chips { position: absolute; left: 0; top: 0; z-index: 4; display: flex; gap: 14px; padding: 10px; border-radius: 22px; background: rgba(0,0,0,0.45); pointer-events: auto; } /* 💵 ปุ่มเลือกเงินทิป ใต้ป้าย (สีแบงก์จริง · kiosk-tip.js NOTES) */
.tip-chips[hidden] { display: none; }
.tip-chip { min-width: 128px; padding: 16px 18px; border: 3px solid rgba(255,255,255,0.75); border-radius: 14px; font: inherit; font-size: 30px; font-weight: 800; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.7); box-shadow: 0 4px 12px rgba(0,0,0,0.45); -webkit-tap-highlight-color: transparent; }
.tip-chip:active { transform: scale(0.95); }
.tip-20 { background: #3C8D4E; } .tip-100 { background: #C7343B; } .tip-500 { background: #7A4A9E; } .tip-1000 { background: #9C8B76; }
.cast-bubble { font-size: 32px; font-weight: 800; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,0.9), 0 0 2px #000, 0 0 12px rgba(0,0,0,0.5); } /* ฟองโชว์ทุกอัน (หมอลำ · ชนแก้ว! · เพลงวันเกิด) = ตัวหนังสือเล็กมีเงาแบบป้ายเหนือหัว ไม่มีกล่องขาว (เจ้าของ 25 ต.ค. "ข้อความ 'เสื้อดำ เด้าหน่อย' มันบังคน") */
.cast-notes { font-size: 36px; color: var(--accent); text-shadow: 0 4px 14px rgba(0,0,0,0.5); animation: cast-float 1.8s ease-in-out infinite; }
@keyframes cast-bob { 0%, 100% { margin-top: 0; } 50% { margin-top: -18px; } }
@keyframes cast-float { 0% { opacity: 0; margin-top: 10px; } 30% { opacity: 1; } 100% { opacity: 0; margin-top: -60px; } }

/* ---------- แถบบน (โฆษณา) + แถบล่าง (QR · โทร · ปุ่มบริการ) บนหน้ารอ — ทั้งโหมด 3D และสไลด์สำรอง (spec 2026-10-14 §2) */
.band { position: absolute; left: 0; right: 0; z-index: 4; display: flex; align-items: center; background: rgba(17,16,8,0.92); backdrop-filter: blur(10px); }
.band-top { top: 0; height: 200px; padding: 0 var(--gutter); overflow: hidden; border-bottom: 3px solid var(--accent); }
.ad-line { font-size: 56px; font-weight: 700; color: var(--text); white-space: nowrap; }
.ad-line.is-in { animation: ad-in 400ms ease both; }
.ad-line.is-two { display: flex; flex-direction: column; gap: 6px; white-space: normal; line-height: 1.2; } /* ป้าย 2 บรรทัด (เจ้าของ 24 ต.ค. แบบ ก) */
.ad-line .ad-main { font-size: 56px; font-weight: 700; }
.ad-line .ad-sub { font-size: 40px; font-weight: 600; color: var(--accent); }
.ad-line.is-long { animation: ad-in 400ms ease both, ad-scroll var(--ad-scroll-ms, 5000ms) linear 1000ms both; }
@keyframes ad-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ad-scroll { from { transform: translateX(0); } to { transform: translateX(var(--ad-shift, 0px)); } }
.band-bottom { bottom: 0; height: 260px; gap: 28px; padding: 0 var(--gutter); border-top: 3px solid var(--accent); }
.band-qr { width: 200px; height: 200px; border-radius: 16px; background: #fff; padding: 8px; }
.band-text { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.band-lead { font-size: 32px; color: var(--muted, #bbb); }
.band-phone { font-size: 46px; font-weight: 700; color: var(--text); }
.band-btn { font-size: 40px; font-weight: 700; color: #111; background: var(--accent); border: 0; border-radius: 999px; padding: 26px 40px; white-space: nowrap; }

/* ---------- หน้าปรับท่าจอร้าน /?tune=1 (kiosk-tune.js · การ์ด wb-20261015-dobe) — แผงอยู่นอก #stage (ขนาด px จริง ไม่ถูกย่อ) */
html.is-tune, html.is-tune body { background: #0b0a06; cursor: auto; }
.tune-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: 400px; z-index: 50; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 16px 18px 0; box-sizing: border-box; background: var(--bg-2); border-left: 2px solid var(--accent);
  font-size: 15px; line-height: 1.35; color: var(--text); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: auto;
}
html.is-tune-portrait .tune-panel { left: 0; width: auto; top: auto; height: 42%; border-left: 0; border-top: 2px solid var(--accent); }
.tune-title { margin: 0 0 8px; font-size: 20px; color: var(--accent); }
.tune-cams { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.tune-cam { min-height: 38px; padding: 0 12px; border-radius: 19px; border: 2px solid var(--line); font-size: 14px; cursor: pointer; }
.tune-cam.is-on { background: var(--accent); border-color: var(--accent); color: #111; font-weight: 600; }
.tune-group { margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--card); }
.tune-group h2 { margin: 0 0 6px; font-size: 16px; }
.tune-group h2 small { font-weight: 400; color: var(--muted); font-size: 13px; }
.tune-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 8px; padding: 4px 0; cursor: auto; }
.tune-name { color: var(--muted); }
.tune-val { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 4.5em; text-align: right; }
.tune-row input[type=range] { grid-column: 1 / -1; width: 100%; height: 32px; margin: 0; accent-color: var(--accent); touch-action: pan-y; cursor: pointer; }
.tune-pair { padding: 4px 0 6px; border-top: 1px solid var(--line); }
.tune-pair:first-of-type { border-top: 0; }
.tune-who { font-weight: 600; margin-top: 4px; }
.tune-actions { display: flex; gap: 10px; align-items: center; margin: 10px 0 0; }
.tune-btn { flex: 1; min-height: 46px; padding: 0 12px; border-radius: 12px; border: 2px solid var(--line); font-size: 16px; font-weight: 600; cursor: pointer; }
.tune-btn.is-play { background: var(--accent); color: #111; border-color: var(--accent); }
.tune-btn.is-save { background: #2f7d3a; border-color: #2f7d3a; }
.tune-btn:active { filter: brightness(1.2); }
.tune-loop { display: flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer; }
.tune-loop input { width: 22px; height: 22px; accent-color: var(--accent); }
.tune-pin { display: flex; gap: 8px; margin-top: 10px; }
.tune-pin[hidden] { display: none; }
.tune-pin input { flex: 1.4; min-width: 0; min-height: 46px; padding: 0 12px; border-radius: 12px; border: 2px solid var(--accent); background: #000; color: var(--text); font: inherit; font-size: 18px; user-select: text; -webkit-user-select: text; }
.tune-foot { position: sticky; bottom: 0; margin: 0 -18px; padding: 4px 18px 14px; background: var(--bg-2); border-top: 1px solid var(--line); box-shadow: 0 -10px 18px rgba(0,0,0,0.35); }
.tune-status { min-height: 1.4em; margin-top: 10px; color: var(--muted); }
.tune-status[data-kind="ok"] { color: #7fd88a; }
.tune-status[data-kind="error"] { color: #ff8a7a; }
.tune-status[data-kind="dirty"] { color: var(--accent); }
/* คนดูหน้าเวที: กรอบลากวางบนฉาก (kiosk-tune.js · เจ้าของ 16 ต.ค.) — อยู่ใน #stage เหนือหน้ารอ ใต้แถบบน/ล่าง */
.tune-fans { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.tune-fan { position: absolute; pointer-events: auto; touch-action: none; cursor: grab; border: 3px dashed rgba(255,255,255,0.55); border-radius: 14px; }
.tune-fan[hidden] { display: none; }
.tune-fan[data-status="saved"] { border-color: #7fd88a; border-style: solid; }
.tune-fan[data-status="parked"], .tune-fan[data-status="lost"] { border-color: #ff8a7a; }
.tune-fan[data-status="drag"] { border-color: var(--accent); border-style: solid; cursor: grabbing; }
.tune-fan[data-status="bad"] { border-color: #ff3b2f; border-style: solid; background: rgba(255,59,47,0.18); cursor: grabbing; }
.tune-fan-tag { position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, -6px); white-space: nowrap; padding: 2px 10px; border-radius: 10px; background: rgba(0,0,0,0.7); color: #fff; font-size: 22px; }
.tune-fan-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.tune-fan-row:first-child { border-top: 0; }
.tune-fan-row .tune-name { grid-column: 1; font-size: 14px; }
.tune-fan-row[data-status="parked"] .tune-name, .tune-fan-row[data-status="lost"] .tune-name { color: #ff8a7a; }
.tune-fan-row[data-status="saved"] .tune-name { color: #7fd88a; }
.tune-fan-auto { grid-column: 2; grid-row: 1 / span 2; flex: none; min-height: 38px; font-size: 14px; }
/* หน้าปรับท่าโหมดผังโชว์ (spec 2026-10-16 §6): เลือกผัง + โหลดผังใหม่ · คนในผังคนละแถว เลือกบท */
.tune-layout { display: flex; gap: 8px; margin: 0 0 12px; }
.tune-layout select { flex: 1; min-height: 40px; font: inherit; }
.tune-person { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; }
.tune-person select { min-height: 36px; font: inherit; }
