/* หรอยสาด 2027 — เว็บทางการ (แบบ A) · สีและฟอนต์ตามชุด ODYSSEY ในเอกสารหุ้นส่วน */
:root {
  --abyss: #040B1D;
  --deep: #08183A;
  --panel: #0C1A38;
  --line: rgba(140, 190, 255, 0.18);
  --foam: #F2F6FF;
  --mist: #B4C2E0;
  --dim: #8090B4;
  --tide: #7FE3FF;
  --coral: #F4A6E6;
  --line-green: #06C755;
  --head: "Chakra Petch", "IBM Plex Sans Thai", sans-serif;
  --num: "Barlow Condensed", "Chakra Petch", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { background: var(--abyss); -webkit-text-size-adjust: 100%; }
body { color: var(--foam); font: 400 16px/1.6 "IBM Plex Sans Thai", sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--tide); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; z-index: 30; left: -999px; top: 8px; padding: 8px 14px; border-radius: 999px; background: var(--foam); color: var(--abyss); }
.skip:focus { left: 8px; }

/* ปุ่มสลับภาษา */
.lang {
  position: fixed; z-index: 20; top: max(12px, env(safe-area-inset-top)); right: 12px; display: flex;
  border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
  background: rgba(4, 11, 29, 0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 600 13px/1 var(--head);
}
.lang a { padding: 10px 13px; color: var(--mist); text-decoration: none; }
.lang a[aria-current] { background: var(--foam); color: var(--abyss); }

/* ส่วนเปิดเว็บ: ไม่มี JS หรือตั้งลดการเคลื่อนไหว = ภาพนิ่ง 1 จอ · class scrub (ใส่โดย site.js) = เลื่อนแล้วภาพขยับ */
.fly { position: relative; height: 100vh; height: 100svh; }
.scrub .fly { height: 300vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--abyss); }
.scrub .stage { height: 100vh; height: 100lvh; }
.backdrop, .poster, .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.backdrop { display: none; }
.poster { object-fit: cover; }
/* เงาบน (ช่วยให้อ่านโลโก้/วันที่ตอนเปิด แล้วจางไปพร้อม .intro) · เงาล่างสั้นๆ ไว้ต่อกับส่วนถัดไป ไม่ทับวันที่ในฉากจบ */
.veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(4, 11, 29, 0.6) 0%, rgba(4, 11, 29, 0) 36%); }
.stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 11, 29, 0) 84%, var(--abyss) 100%);
}
@media (min-aspect-ratio: 1/1) {
  /* จอแนวนอน: คลิปแนวตั้งวางกลาง พื้นหลังเบลอ ไม่ยืดภาพ */
  .backdrop { display: block; inset: -6%; width: 112%; height: 112%; object-fit: cover; filter: blur(30px) brightness(0.45); }
  .poster { object-fit: contain; }
}
.intro { position: absolute; z-index: 2; top: 10vh; top: 10svh; left: 16px; right: 16px; text-align: center; }
.intro h1 img { width: min(76vw, 400px); height: auto; margin: 0 auto; transform: rotate(-4deg); filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.65)); }
.intro h1 span {
  display: inline-block; margin-top: 14px; padding: 8px 10px 8px 16px; border-radius: 999px;
  background: rgba(4, 11, 29, 0.62); font: 600 14px/1 var(--head); letter-spacing: 0.38em;
}
.what { margin-top: 12px; font-size: 15px; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9); }
.when { display: flex; justify-content: center; gap: 24px; margin-top: 18px; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9); }
.when span { font: 600 15px/1.25 var(--head); }
.when b { display: block; font: 800 34px/1 var(--num); color: var(--tide); }
.hint { display: none; }
.scrub .hint { display: block; position: absolute; z-index: 2; left: 0; right: 0; top: calc(100vh - 88px); top: calc(100svh - 88px); text-align: center; font: 600 13px/1.3 var(--head); color: var(--mist); }
.hint::after { content: ""; display: block; width: 2px; height: 30px; margin: 8px auto 0; background: linear-gradient(var(--tide), transparent); }

/* เนื้อหา */
main { position: relative; z-index: 3; }
main > section, footer { max-width: 36rem; margin: 0 auto; padding: 0 20px; }
main > section + section { margin-top: 56px; }
main > .voyage { margin-top: -72px; }
h2 { margin-bottom: 14px; font: 700 24px/1.25 var(--head); }
.voyage h2 { font-size: 27px; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8); }

/* บัตรขึ้นเรือ — ลูกเล่นหลักของหน้า */
.pass {
  position: relative; display: grid; grid-template-columns: 104px 1fr; min-height: 96px; margin-bottom: 24px;
  border: 1px solid rgba(127, 227, 255, 0.35); border-radius: 14px;
  background: linear-gradient(100deg, rgba(127, 227, 255, 0.14), rgba(244, 166, 230, 0.1)), rgba(4, 11, 29, 0.72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.pass::before, .pass::after {
  content: ""; position: absolute; left: 95px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--abyss); border: 1px solid rgba(127, 227, 255, 0.35);
}
.pass::before { top: -10px; }
.pass::after { bottom: -10px; }
.stub { display: flex; flex-direction: column; justify-content: center; align-items: center; border-right: 2px dashed rgba(127, 227, 255, 0.35); }
.stub b { font: 800 40px/0.9 var(--num); color: var(--tide); }
.stub span { margin-top: 6px; font: 800 13px/1 var(--num); letter-spacing: 0.08em; color: var(--mist); }
.port { display: flex; flex-direction: column; justify-content: center; padding: 14px 16px; }
.port b { font: 700 21px/1.15 var(--head); }
.port i { font: 600 12px/1.4 var(--head); font-style: normal; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mist); }
.port i:lang(th) { font-size: 13px; letter-spacing: 0; }
.nw { white-space: nowrap; }
.port small { margin-top: 2px; font-size: 14px; color: var(--mist); }

.btn {
  display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 12px 18px; border-radius: 14px;
  background: var(--line-green); color: #fff; font: 700 16px/1.25 var(--head); text-align: center; text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }
.note { margin-top: 10px; font-size: 14px; color: var(--mist); text-align: center; }

.drone video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; background: var(--panel); }
.cap { margin-top: 8px; font-size: 13px; color: var(--dim); }

.city { margin-bottom: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(12, 26, 56, 0.7); }
.city h3 { display: flex; justify-content: space-between; align-items: baseline; font: 700 19px/1.2 var(--head); }
.city h3 b { font: 800 24px/1 var(--num); color: var(--tide); }
.city dl { display: grid; grid-template-columns: 6.5em 1fr; gap: 4px 10px; margin-top: 10px; font-size: 15px; }
.city dt { color: var(--dim); }
.wait { color: var(--coral); }

.soon { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px dashed rgba(127, 227, 255, 0.4); border-radius: 14px; }
.soon > b { font: 800 46px/0.9 var(--num); color: var(--coral); }
.soon p { font-size: 15px; color: var(--mist); }
.soon strong { display: block; font: 700 17px/1.3 var(--head); color: var(--foam); }

.steps { list-style: none; margin: 4px 0 14px 8px; border-left: 2px solid var(--line); }
.steps li { position: relative; padding: 0 0 16px 22px; }
.steps li::before {
  content: ""; position: absolute; left: -8px; top: 5px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--abyss); border: 2px solid var(--tide);
}
.steps b { display: block; font: 800 26px/1 var(--num); color: var(--tide); }
.tickets-how { color: var(--mist); font-size: 15px; }
.tickets-how strong { color: var(--foam); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 12px; padding: 14px 2px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--tide); font: 600 20px/1.2 var(--head); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 2px 14px; font-size: 15px; color: var(--mist); }

.gallery { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 120px; grid-auto-flow: dense; gap: 6px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; background: var(--panel); }
.gallery .w { grid-column: span 2; grid-row: span 2; }
@media (min-width: 720px) {
  main > #gallery { max-width: 64rem; }
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; }
  .gallery .w:last-child { grid-column: 1 / -1; object-position: 50% 78%; }
}

.official { list-style: none; border: 1px solid var(--line); border-radius: 14px; padding: 2px 16px; }
.official li { border-bottom: 1px solid var(--line); }
.official li:last-child { border-bottom: 0; }
.official a, .official li > span { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; text-decoration: none; }
.official em { font-style: normal; color: var(--mist); text-align: right; }
.warn {
  margin-top: 12px; padding: 12px 14px; border-radius: 12px; font-size: 14px;
  background: rgba(244, 166, 230, 0.12); border: 1px solid rgba(244, 166, 230, 0.4);
}

footer { margin-top: 56px; padding-bottom: 40px; text-align: center; font-size: 13px; color: var(--dim); }
footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; }
footer a, footer button { background: none; border: 0; color: var(--mist); font: inherit; text-decoration: underline; cursor: pointer; }

/* ปุ่มลอยล่างจอ (โผล่หลังเลื่อนเลยปุ่มหลัก) */
.dock {
  position: fixed; z-index: 15; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(4, 11, 29, 0.92); border-top: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.dock .btn { max-width: 34rem; min-height: 48px; margin: 0 auto; }
.dock-on { padding-bottom: 84px; }
.consent:not([hidden]) ~ .dock { display: none; }

/* แบนเนอร์คุกกี้ (PDPA): ปุ่มยอมรับ/ไม่ยอมรับหน้าตาเท่ากัน */
.consent {
  position: fixed; z-index: 25; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  max-width: 34rem; margin: 0 auto; padding: 16px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--panel); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); font-size: 14px;
}
.consent div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.consent button {
  min-height: 46px; border: 1px solid var(--mist); border-radius: 12px; background: transparent;
  color: var(--foam); font: 700 15px/1 var(--head); cursor: pointer;
}

/* หน้านโยบายความเป็นส่วนตัว */
.doc { max-width: 40rem; margin: 0 auto; padding: 72px 20px 48px; }
.doc h1 { margin-bottom: 6px; font: 700 28px/1.25 var(--head); }
.doc h2 { margin: 28px 0 8px; font-size: 19px; }
.doc p, .doc li { color: var(--mist); }
.doc ul { padding-left: 1.2em; }
.doc .back { display: inline-block; margin-bottom: 24px; color: var(--tide); }
.todo { color: var(--coral); }
