/* ============================================================
   AI4BA × Pattaya 2569 — light editorial
   ============================================================ */
@font-face { font-family: "Plex Thai"; font-weight: 400; font-display: swap; src: url(../assets/fonts/plex-thai-400.woff2) format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Plex Thai"; font-weight: 500; font-display: swap; src: url(../assets/fonts/plex-thai-500.woff2) format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Plex Thai"; font-weight: 600; font-display: swap; src: url(../assets/fonts/plex-thai-600.woff2) format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Plex Thai"; font-weight: 700; font-display: swap; src: url(../assets/fonts/plex-thai-700.woff2) format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Plex Thai"; font-weight: 400; font-display: swap; src: url(../assets/fonts/plex-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Thai"; font-weight: 500; font-display: swap; src: url(../assets/fonts/plex-latin-500.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Thai"; font-weight: 600; font-display: swap; src: url(../assets/fonts/plex-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Thai"; font-weight: 700; font-display: swap; src: url(../assets/fonts/plex-latin-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #F7F6F2;
  --surface: #FFFFFF;
  --ink: #0F0F0E;
  --ink-2: #3A3934;
  --muted: #6B6A63;
  --line: #E4E1D8;
  --line-2: #CFCBBF;
  --accent: #E8590C;
  --accent-ink: #B54708;
  --accent-soft: #FDF0E6;
  --ok: #1D7A4B; --ok-soft: #E6F3EC;
  --warn: #8A5A00; --warn-soft: #FBF1D9;
  --bad: #B42318; --bad-soft: #FCEBEA;
  --r: 8px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --pad: 24px;
  --max: 1200px;
  --top: 64px;
  color-scheme: light;
}
@media (max-width: 640px) { :root { --pad: 16px; --top: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 "Plex Thai", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
.tnum { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; height: var(--top); z-index: 50;
  background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .2s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.brand-mark { width: 28px; height: 28px; border-radius: 6px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.brand small { font-weight: 400; color: var(--muted); font-size: 14px; }
.nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 6px; font-size: 15px; color: var(--ink-2); transition: background .15s, color .15s; }
.nav a:hover { background: #ECEAE3; color: var(--ink); }
@media (max-width: 640px) { .nav a.hide-sm, .brand small { display: none; } }

.demo-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: #fff; font-size: 13px; padding: 8px 12px 8px 14px; border-radius: 8px; display: flex; gap: 12px; align-items: center; max-width: calc(100% - 32px); }
@media (max-width: 640px) { .demo-bar .long { display: none; } .demo-bar { bottom: 10px; } }
.demo-bar button { background: transparent; border: 1px solid #ffffff40; color: #fff; border-radius: 6px; padding: 2px 8px; cursor: pointer; font-size: 12px; }

main { padding-top: var(--top); min-height: 100vh; }

/* ---------- buttons & fields ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 20px; border-radius: var(--r); border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg); font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, opacity .2s; white-space: nowrap; position: relative; overflow: hidden;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn:active { opacity: .85; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; }
.btn.accent { background: var(--accent); border-color: var(--accent); }
.btn.accent:hover { background: var(--ink); border-color: var(--ink); }
.btn.ok { background: var(--ok); border-color: var(--ok); }
.btn.bad { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn.bad:hover { background: var(--bad); color: #fff; }
.btn.sm { --h: 36px; padding: 0 12px; font-size: 14px; }
.btn.block { width: 100%; }
.btn.loading { color: transparent !important; pointer-events: none; }
.btn.loading::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid currentColor; border-color: var(--bg) var(--bg) transparent transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.ghost.loading::after { border-color: var(--ink) var(--ink) transparent transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

.field { display: grid; gap: 6px; }
.field > label, .label { font-weight: 600; font-size: 15px; }
.field .hint { font-size: 14px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--surface); transition: border-color .15s, box-shadow .15s; font-size: 16px;
}
.textarea { height: auto; min-height: 88px; padding: 12px 14px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px #E8590C33; }
.input[readonly] { background: #F1EFE9; color: var(--ink-2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.input:focus-visible { outline: none; }
.field.err .input, .field.err .select { border-color: var(--bad); }
.field .msg { font-size: 14px; color: var(--bad); min-height: 0; }

.choice { display: grid; gap: 8px; }
.choice label {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s;
}
.choice label:hover { border-color: var(--muted); }
.choice input { margin: 4px 0 0; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.choice label:has(input:checked) { border-color: var(--ink); background: #FFFDFB; box-shadow: inset 0 0 0 1px var(--ink); }
.choice small { display: block; color: var(--muted); font-size: 14px; }

.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; background: #EEECE5; color: var(--ink-2); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.accent { background: var(--accent-soft); color: var(--accent-ink); }
.badge svg { width: 14px; height: 14px; }

.notice { border: 1px solid var(--line-2); border-left: 3px solid var(--accent); background: var(--surface); padding: 14px 16px; border-radius: var(--r); font-size: 15px; }
.notice.bad { border-left-color: var(--bad); }
.notice.ok { border-left-color: var(--ok); }

.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; }
.dot.s { background: var(--accent); }
.dot.j { background: var(--ink); }

/* ---------- view transitions ---------- */
#view { transition: opacity .28s var(--ease-io), transform .5s var(--ease); }
#view.out { opacity: 0; transform: translateY(10px); transition-duration: .18s; }

/* ---------- motion primitives ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }
.lines .ln { display: block; overflow: hidden; padding: .06em 0 .1em; margin: -.06em 0 -.1em; }
.lines .ln > span { display: inline-block; transform: translateY(115%); transition: transform 1.15s var(--ease); transition-delay: var(--d, 0ms); }
.lines.in .ln > span { transform: none; }
.words .w, .closing .w { white-space: nowrap; }
.words .w { display: inline-block; opacity: .12; transition: opacity .5s var(--ease); }
.words .w.on { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  html { scroll-behavior: auto; }
  [data-reveal], .lines .ln > span { opacity: 1; transform: none; }
  .words .w { opacity: 1; }
}

/* ============================================================
   HUB
   ============================================================ */
.hero { position: relative; min-height: calc(100vh - var(--top)); min-height: calc(100svh - var(--top)); display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: center; padding-top: 40px; padding-bottom: 48px; }
.display { font-size: clamp(52px, 8.4vw, 132px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; margin: 0; }
.display .acc { color: var(--accent); }
.hero-h { font-size: clamp(46px, 7.1vw, 112px); }
.hero-h .ln { white-space: nowrap; }
.hero-sub { margin: 28px 0 0; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 34em; }
.facts { margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; border-top: 1px solid var(--line); }
.facts div { padding: 14px 28px 0 0; margin-right: 28px; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; margin-right: 0; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; font-size: 16px; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } .facts div:nth-child(2) { border-right: 0; margin-right: 0; } .facts div:last-child { grid-column: 1 / -1; } }

.lookup { margin-top: 36px; max-width: 560px; }
.lookup .row { display: flex; gap: 8px; }
.lookup .row .input { height: 56px; font-size: 18px; padding-left: 16px; }
.lookup .row .btn { --h: 56px; padding: 0 22px; }
.lookup .hint { margin-top: 8px; font-size: 14px; color: var(--muted); }
.combo { position: relative; flex: 1; min-width: 0; }
.listbox {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: 0 8px 24px rgba(0,0,0,.08);
  max-height: 320px; overflow: auto;
}
.listbox li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 6px; cursor: pointer; }
.listbox li[aria-selected="true"], .listbox li:hover { background: #F2F0EA; }
.listbox li mark { background: none; color: var(--accent-ink); font-weight: 600; }
.listbox li small { color: var(--muted); font-size: 13px; white-space: nowrap; }
.listbox .empty { color: var(--muted); cursor: default; }
@media (max-width: 520px) { .lookup .row { flex-direction: column; } .lookup .row .btn { width: 100%; } }

.net { position: relative; aspect-ratio: 1; width: 100%; max-width: 620px; justify-self: end; }
.net canvas { width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.net canvas.dragging { cursor: grabbing; }
.net-legend { position: absolute; left: 0; right: 0; bottom: -4px; text-align: center; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); justify-content: center; }
.net-legend span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 24px; }
  .net { order: -1; max-width: 300px; margin: 0 auto 28px; justify-self: center; width: 78%; }
  .net-legend { bottom: -22px; font-size: 12px; gap: 4px 12px; }
  .net-legend span:last-child { display: none; }
  .hero { min-height: 0; }
}

/* countdown */
.count { display: flex; align-items: flex-end; gap: 0; margin-top: 8px; }
.count div { padding-right: 20px; margin-right: 20px; border-right: 1px solid var(--line); }
.count div:last-child { border: 0; margin: 0; padding: 0; }
.count b { display: block; font-size: clamp(36px, 5vw, 64px); line-height: 1; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.count span { font-size: 13px; color: var(--muted); }

.band { border-bottom: 1px solid var(--line); }
.band .wrap { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; padding-top: 40px; padding-bottom: 40px; }
.progress-list { display: grid; gap: 14px; min-width: min(420px, 100%); }
.progress-list .lbl { display: flex; justify-content: space-between; font-size: 14px; gap: 16px; }
.progress-list .lbl b { font-weight: 600; font-variant-numeric: tabular-nums; }
.bar { height: 6px; background: #E9E6DD; border-radius: 3px; overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 3px; transition: width 1.6s var(--ease); }
.bar.acc i { background: var(--accent); }
@media (max-width: 760px) { .band .wrap { grid-template-columns: 1fr; } }

.live { display: grid; gap: 4px; }
.live .now { font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; letter-spacing: -.01em; }
.live .pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; animation: blink 1.6s var(--ease-io) infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* marquee */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); padding: 18px 0; white-space: nowrap; user-select: none; }
.marquee .track { display: inline-flex; gap: 48px; animation: marq 38s linear infinite; padding-left: 48px; }
.marquee span { font-size: clamp(22px, 3vw, 36px); font-weight: 600; letter-spacing: -.02em; }
.marquee span.o { color: var(--accent); }
@keyframes marq { to { transform: translateX(-50%); } }

/* sections */
.sec { padding: clamp(64px, 10vw, 128px) 0; border-bottom: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: end; margin-bottom: 48px; }
.h2 { font-size: clamp(40px, 6vw, 84px); line-height: 1.05; letter-spacing: -.03em; margin: 0; font-weight: 700; }
.h2 .n { color: var(--muted); font-weight: 500; font-size: .42em; vertical-align: top; margin-right: .4em; letter-spacing: 0; }
.lead { font-size: 18px; color: var(--ink-2); margin: 0; max-width: 36em; }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; } }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 8px; position: relative; overflow-x: auto; scrollbar-width: none; }
.tabs button { background: none; border: 0; padding: 14px 16px; cursor: pointer; font-size: 17px; font-weight: 600; color: var(--muted); transition: color .2s; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button:hover { color: var(--ink); }
.tabs .ink { position: absolute; bottom: -1px; height: 2px; background: var(--accent); transition: left .45s var(--ease), width .45s var(--ease); }
.tabs button small { font-weight: 400; font-size: 14px; margin-left: 6px; }

/* timeline */
.tl { position: relative; list-style: none; margin: 0; padding: 0 0 0 28px; }
.tl::before { content: ""; position: absolute; left: 5px; top: 22px; bottom: 22px; width: 1px; background: var(--line-2); }
.tl .fill { position: absolute; left: 5px; top: 22px; width: 1px; height: 0; background: var(--accent); }
.tl li { position: relative; display: grid; grid-template-columns: 168px minmax(0, 1fr) auto; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.tl li .pin { position: absolute; left: -28px; top: 26px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); transition: background .3s, border-color .3s; }
.tl li.seen .pin { border-color: var(--accent); }
.tl li .t { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.tl li .a { font-size: 18px; }
.tl li .a small { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
.tl li .a ul { margin: 6px 0 0; padding-left: 18px; }
.tl li .tag { align-self: center; }
.tl li.past { color: var(--muted); }
.tl li.now .pin { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px #E8590C26; }
.tl li.now .t { color: var(--accent-ink); }
.tl li .chips { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .tl li { grid-template-columns: 1fr; gap: 2px; padding: 14px 0; }
  .tl li .pin { top: 20px; }
  .tl li .t { font-size: 15px; }
  .tl li .a { font-size: 17px; }
  .tl li .tag { justify-self: start; margin-top: 6px; }
}

/* info grid */
.info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.info > div { padding: 28px 28px 8px 0; border-right: 1px solid var(--line); margin-right: 28px; }
.info > div:last-child { border-right: 0; margin-right: 0; }
.info h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.01em; }
.info p { margin: 0 0 12px; color: var(--ink-2); }
.info .link { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }
.info .link:hover { color: var(--accent-ink); }
@media (max-width: 860px) { .info { grid-template-columns: 1fr; } .info > div { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); padding: 24px 0; } .info > div:last-child { border-bottom: 0; } }

.poster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.poster figure { margin: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.poster figure img { width: 100%; height: auto; transition: transform 1.4s var(--ease); }
.poster figure:hover img { transform: scale(1.02); }
@media (max-width: 760px) { .poster { grid-template-columns: 1fr; gap: 28px; } }

.closing { padding: clamp(96px, 14vw, 180px) 0; text-align: left; }
.closing p { font-size: clamp(34px, 5.4vw, 76px); line-height: 1.18; letter-spacing: -.03em; font-weight: 600; margin: 0; max-width: 15em; }
.closing p .acc { color: var(--accent); }
.qr-panel .notice { width: 100%; text-align: left; }

.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer .eq { font-weight: 600; color: var(--ink); letter-spacing: .04em; font-size: 13px; }
.footer a { color: var(--muted); }

/* ============================================================
   FLOW (check / register / pay / done)
   ============================================================ */
.flow { padding-top: 40px; padding-bottom: 96px; }
.steps { display: flex; gap: 0; list-style: none; padding: 0; margin: 0 0 40px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.steps li { display: flex; align-items: center; gap: 10px; padding: 0 20px 14px 0; margin-right: 20px; color: var(--muted); font-size: 15px; white-space: nowrap; position: relative; }
.steps li b { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.steps li.done b { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.steps li.cur { color: var(--ink); font-weight: 600; }
.steps li.cur b { border-color: var(--accent); color: var(--accent-ink); }
.steps li.cur::after { content: ""; position: absolute; left: 0; right: 20px; bottom: -1px; height: 2px; background: var(--accent); transform-origin: left; animation: grow .7s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }

.who { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; margin-bottom: 40px; }
.who h1 { font-size: clamp(40px, 6.4vw, 88px); line-height: 1.05; letter-spacing: -.035em; margin: 0; font-weight: 700; }
.who .role { margin-top: 12px; color: var(--ink-2); font-size: 17px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
@media (max-width: 640px) { .who { grid-template-columns: 1fr; } }

.status-list { border-top: 1px solid var(--ink); }
.status-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: center; }
.status-row .ix { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 15px; }
.status-row h3 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
.status-row p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 640px) { .status-row { grid-template-columns: 1fr auto; } .status-row .ix { display: none; } }
.actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; align-items: center; }

.cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
.cols.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 860px) { .cols, .cols.even { grid-template-columns: 1fr; gap: 32px; } }
.form { display: grid; gap: 22px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .form .two { grid-template-columns: 1fr; } }
.aside h2 { font-size: 32px; letter-spacing: -.02em; margin: 0 0 12px; line-height: 1.15; }
.aside p { color: var(--ink-2); margin: 0 0 16px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 0; font-size: 15px; border-top: 1px solid var(--line); padding-top: 16px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }

/* pay */
.qr-panel { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); padding: 28px; display: grid; gap: 20px; justify-items: center; text-align: center; position: relative; }
.qr-box { position: relative; width: 248px; height: 248px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.qr-box canvas, .qr-box img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.qr-box img { image-rendering: auto; }
.qr-box .scan { position: absolute; left: 0; right: 0; height: 2px; background: var(--accent); opacity: .85; top: 0; animation: scan 2.8s var(--ease-io) infinite; }
@keyframes scan { 0% { top: 6%; } 50% { top: 94%; } 100% { top: 6%; } }
.qr-head { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.qr-head .pp { font-size: 12px; font-weight: 700; color: #fff; background: #0E3D6E; padding: 3px 8px; border-radius: 4px; letter-spacing: .03em; }
.amount { font-size: 48px; font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.amount small { font-size: 18px; font-weight: 500; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.acct { width: 100%; border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 10px; text-align: left; font-size: 15px; }
.acct .r { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.acct .r span { color: var(--muted); }
.acct .r b { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.copy { background: none; border: 1px solid var(--line-2); border-radius: 6px; height: 28px; padding: 0 8px; font-size: 13px; cursor: pointer; margin-left: 8px; }
.copy:hover { border-color: var(--ink); }

.drop {
  display: grid; place-items: center; gap: 8px; text-align: center; padding: 36px 20px; border: 1px dashed var(--line-2); border-radius: var(--r);
  background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; min-height: 220px;
}
.drop:hover, .drop.over { border-color: var(--accent); background: #FFFCF9; }
.drop svg { width: 28px; height: 28px; color: var(--muted); }
.drop b { font-size: 17px; }
.drop span { color: var(--muted); font-size: 14px; }
.slip-prev { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; padding: 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); }
.slip-prev img { width: 96px; height: 128px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.slip-prev .nm { font-weight: 600; word-break: break-all; }
.slip-prev .sz { color: var(--muted); font-size: 14px; }

/* done */
.done-hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.done-canvas { width: 100%; aspect-ratio: 1; max-width: 440px; justify-self: center; }
@media (max-width: 860px) { .done-hero { grid-template-columns: 1fr; gap: 8px; } .done-canvas { order: -1; max-width: 280px; } }
.pass { border: 1px solid var(--ink); border-radius: var(--r); background: var(--surface); margin-top: 32px; overflow: hidden; }
.pass .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px dashed var(--line-2); font-size: 14px; }
.pass .top b { letter-spacing: .04em; font-size: 13px; }
.pass .body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pass .body div { padding: 16px 20px; border-right: 1px solid var(--line); }
.pass .body div:last-child { border-right: 0; }
.pass dt { font-size: 13px; color: var(--muted); }
.pass dd { margin: 4px 0 0; font-weight: 600; }
@media (max-width: 520px) { .pass .body { grid-template-columns: 1fr; } .pass .body div { border-right: 0; border-bottom: 1px solid var(--line); } }
.letter { margin-top: 40px; font-size: clamp(19px, 2vw, 23px); line-height: 1.75; color: var(--ink-2); max-width: 32em; }
.letter p { margin: 0 0 16px; }
.letter .sign { color: var(--ink); font-weight: 600; }

.center-msg { max-width: 640px; padding: 64px 0; }
.center-msg h1 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 16px; }
.center-msg p { font-size: 18px; color: var(--ink-2); }

/* ============================================================
   ADMIN
   ============================================================ */
.admin { padding-top: 32px; padding-bottom: 96px; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.admin-head h1 { margin: 0; font-size: 32px; letter-spacing: -.02em; }
.admin-head .tools { display: flex; gap: 8px; flex-wrap: wrap; }
.summary { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); margin-bottom: 8px; font-size: 15px; }
.summary b { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; margin-right: 6px; }
.summary .money { margin-left: auto; }
@media (max-width: 760px) { .summary .money { margin-left: 0; width: 100%; } }
.filters { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 16px 0; }
.filters .input { height: 40px; max-width: 280px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: none; padding: 0 14px; height: 38px; cursor: pointer; font-size: 14px; border-right: 1px solid var(--line); color: var(--ink-2); }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 760px; }
th { text-align: left; font-weight: 600; font-size: 13px; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); background: #FBFAF7; position: sticky; top: 0; }
td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #FBFAF7; }
td .sub { display: block; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
td.act { text-align: right; white-space: nowrap; }
.empty-row td { text-align: center; color: var(--muted); padding: 40px; }

.settings { display: grid; gap: 40px; max-width: 760px; }
.settings section { display: grid; gap: 18px; padding-top: 20px; border-top: 1px solid var(--line); }
.settings h2 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
.settings h2 + p { margin: -10px 0 0; color: var(--muted); font-size: 15px; }
.qr-admin { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: start; }
.qr-admin .qr-thumb { width: 180px; height: 180px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; display: grid; place-items: center; padding: 10px; color: var(--muted); font-size: 13px; text-align: center; }
.qr-admin .qr-thumb img, .qr-admin .qr-thumb canvas { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 520px) { .qr-admin { grid-template-columns: 1fr; } }
.switch { display: inline-flex; gap: 10px; align-items: center; cursor: pointer; font-weight: 500; }
.switch input { width: 18px; height: 18px; accent-color: var(--accent); }

.login { max-width: 400px; margin: 8vh auto 0; display: grid; gap: 20px; }
.login h1 { margin: 0; font-size: 32px; letter-spacing: -.02em; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(15, 15, 14, .45); animation: fade .2s ease both; }
.modal .box { background: var(--surface); border-radius: var(--r); width: min(880px, 100%); max-height: calc(100vh - 32px); overflow: auto; display: grid; grid-template-columns: minmax(0, 1fr) 320px; box-shadow: 0 8px 24px rgba(0,0,0,.12); animation: rise .35s var(--ease) both; }
.modal .slip { background: #F1EFE9; display: grid; place-items: center; min-height: 360px; padding: 16px; }
.modal .slip img { max-height: 70vh; width: auto; border-radius: 4px; }
.modal .side { padding: 24px; display: grid; gap: 16px; align-content: start; }
.modal .side h3 { margin: 0; font-size: 22px; }
@media (max-width: 760px) { .modal .box { grid-template-columns: 1fr; } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

.toast { position: fixed; left: 50%; top: calc(var(--top) + 12px); transform: translateX(-50%); z-index: 90; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r); font-size: 15px; animation: rise .3s var(--ease) both; max-width: calc(100% - 32px); }
.toast.bad { background: var(--bad); }

.skeleton { display: grid; place-items: center; min-height: 60vh; color: var(--muted); }
.loader { width: 40px; height: 40px; position: relative; }
.loader i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: orbit 1.2s var(--ease-io) infinite; }
.loader i:nth-child(2) { background: var(--accent); animation-delay: -.4s; }
.loader i:nth-child(3) { animation-delay: -.8s; opacity: .4; }
@keyframes orbit { 0% { transform: translate(0, 0); } 25% { transform: translate(32px, 0); } 50% { transform: translate(32px, 32px); } 75% { transform: translate(0, 32px); } 100% { transform: translate(0, 0); } }
/* safe-area gutters (iPhone landscape) */
.wrap { padding-left: max(var(--pad), env(safe-area-inset-left, 0px)); padding-right: max(var(--pad), env(safe-area-inset-right, 0px)); }

/* ============================================================
   NEURAL WORLD + DECK (5 บทเต็มจอ)
   ============================================================ */
.world { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; z-index: 0; display: block; opacity: 1; transition: opacity 1s var(--ease-io); touch-action: none; }
.world.dragging { cursor: grabbing; }
body:not(.deck-mode):not(.page-mode) .world { opacity: 0; }
body.page-mode .world { opacity: .22; pointer-events: none; }
body.no-webgl .world { display: none; }
main { position: relative; z-index: 1; }
body.deck-mode { overflow: hidden; overscroll-behavior: none; }
body.deck-mode main { padding-top: 0; min-height: 0; }
body.deck-mode #view, body.deck-mode #view.out { transform: none !important; opacity: 1 !important; transition: none !important; }
body.deck-mode .topbar { background: transparent; border-bottom-color: transparent; }
body.page-mode .n-labels { display: none; }

.n-labels { position: fixed; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.n-label { position: absolute; left: 0; top: 0; margin: -13px 0 0 14px; pointer-events: auto; cursor: pointer; font: 500 12px/1 "Plex Thai", system-ui, sans-serif; padding: 6px 8px; border-radius: 6px; background: var(--bg); color: var(--ink-2); border: 1px solid var(--line-2); white-space: nowrap; font-variant-numeric: tabular-nums; transition: background .2s, color .2s, border-color .2s; }
.n-label:hover { border-color: var(--ink); color: var(--ink); }
.n-label.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.n-label.fac { font-size: 13px; }
.n-tip { position: absolute; left: 0; top: 0; margin: -36px 0 0 10px; background: var(--ink); color: #fff; font-size: 13px; padding: 5px 9px; border-radius: 6px; white-space: nowrap; pointer-events: none; }
.n-tip.me { background: var(--accent); font-weight: 600; }

.deck { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.ch { position: absolute; inset: var(--top) 0 0 0; display: flex; visibility: hidden; pointer-events: none; }
.ch.on { visibility: visible; }
.ch-in { position: relative; height: 100%; display: flex; align-items: center; gap: 56px; pointer-events: none; }
.ch.on .ch-col, .ch.on .net-legend, .ch.on .poster-fig, .ch.on .end-foot, .ch.on .net2d { pointer-events: auto; }
.ch-col { max-width: 560px; min-width: 0; }
.ch-home .ch-col { max-width: 660px; }
.wd { display: inline-block; }
.hero-h { font-size: clamp(42px, 5.7vw, 94px); letter-spacing: -.04em; line-height: 1.02; }
.hero-h .wd { white-space: nowrap; }
.ch-home .lookup { margin-top: 28px; }
.ch-home .facts { margin-top: 24px; }
.stats { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.stats b { color: var(--ink); font-weight: 600; }
.ch-home .net-legend { position: absolute; right: var(--pad); bottom: 28px; left: auto; justify-content: flex-end; }
.cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.cue i { display: block; width: 1px; height: 36px; background: var(--line-2); position: relative; overflow: hidden; }
.cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--accent); animation: cue 1.8s var(--ease-io) infinite; }
@keyframes cue { to { top: 100%; } }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: middle; animation: blink 1.6s var(--ease-io) infinite; }

.ch-kicker { font-size: clamp(40px, 5.2vw, 76px); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; margin: 0 0 22px; }
.ag-day { font-size: 15px; color: var(--muted); margin-bottom: 4px; }
.ag-time { font-size: clamp(30px, 3.4vw, 46px); font-weight: 600; letter-spacing: -.02em; color: var(--accent-ink); line-height: 1.15; }
.ag-title { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.3; margin: 8px 0 0; font-weight: 600; letter-spacing: -.01em; min-height: 2.6em; }
.ag-sub { color: var(--ink-2); margin: 4px 0 0; font-size: 17px; }
.ag-meta { display: flex; gap: 6px; margin: 14px 0 0; flex-wrap: wrap; min-height: 26px; }
.scrub { display: flex; align-items: center; gap: 3px; margin: 30px 0 0; max-width: 520px; }
.scrub button { flex: 1; height: 28px; background: none; border: 0; padding: 0; cursor: pointer; display: flex; align-items: center; }
.scrub button i { display: block; width: 100%; height: 4px; background: #E1DDD2; border-radius: 2px; transition: background .3s, height .35s var(--ease); }
.scrub button.past i { background: #F0B48E; }
.scrub button.on i { background: var(--accent); height: 12px; }
.scrub button:hover i { background: var(--ink-2); }
.scrub-gap { width: 14px; flex: none; }
.ag-ctrl { display: flex; gap: 8px; align-items: center; margin-top: 16px; }
.ag-ctrl .tnum { min-width: 64px; text-align: center; font-size: 14px; }
.ag-sheet { position: fixed; z-index: 6; right: max(var(--pad), 88px); top: calc(var(--top) + 16px); bottom: 16px; width: min(460px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: 0 8px 24px rgba(0,0,0,.08); overflow: auto; padding: 0 20px 20px; }
.ag-sheet-head { position: sticky; top: 0; background: var(--surface); display: flex; justify-content: space-between; align-items: center; padding: 16px 0 12px; border-bottom: 1px solid var(--line); }
.ag-sheet h4 { margin: 18px 0 6px; font-size: 14px; color: var(--muted); font-weight: 600; }
.ag-sheet ol { list-style: none; margin: 0; padding: 0; }
.ag-sheet li button { width: 100%; display: grid; grid-template-columns: 128px 1fr; gap: 12px; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 10px 4px; cursor: pointer; font-size: 15px; }
.ag-sheet li button:hover { background: #F6F4EE; }
.ag-sheet li .tnum { color: var(--muted); font-size: 14px; }

.rs-name { font-size: 22px; font-weight: 600; margin: 0; letter-spacing: -.01em; }
.rs-addr { color: var(--muted); font-size: 15px; margin: 6px 0 0; }
.fac-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.fac-tabs button { height: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); cursor: pointer; font-size: 14px; transition: background .2s, color .2s, border-color .2s; }
.fac-tabs button:hover { border-color: var(--ink); }
.fac-tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.fac-card { margin-top: 12px; display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: var(--r); background: var(--surface); min-height: 78px; font-size: 15px; }
.fac-card span { color: var(--ink-2); }
.rs-kv { margin-top: 18px; font-size: 14px; }

.ch-poster .ch-in { justify-content: flex-start; }
.poster-fig { margin: 0; height: min(72vh, 780px); aspect-ratio: 528 / 746; max-width: 46vw; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); flex: none; }
.poster-fig img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.poster-fig:hover img { transform: scale(1.03); }

.closing-t { font-size: clamp(38px, 5.6vw, 86px); line-height: 1.16; letter-spacing: -.03em; font-weight: 600; margin: 0 0 32px; max-width: 13em; }
.closing-t .acc { color: var(--accent); }
.nb { white-space: nowrap; }
.ch-end .ch-col { max-width: 1000px; }
.end-foot { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.end-foot .eq { font-weight: 600; color: var(--ink); letter-spacing: .04em; font-size: 12px; }
.end-foot a { color: var(--muted); }

/* rail */
.rail { position: fixed; z-index: 5; right: 20px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.rail-i { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 7px 0; cursor: pointer; color: var(--muted); font-size: 13px; }
.rail-i .t { opacity: 0; transform: translateX(8px); transition: opacity .3s var(--ease), transform .45s var(--ease); white-space: nowrap; }
.rail-i .n { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 12px; position: relative; padding-right: 26px; }
.rail-i .n::after { content: ""; position: absolute; right: 0; top: 50%; width: 14px; height: 1px; background: var(--line-2); transition: width .45s var(--ease), background .3s; }
.rail-i.on { color: var(--ink); }
.rail-i.on .n::after { width: 22px; height: 2px; margin-top: -1px; background: var(--accent); }
.rail-i.on .t, .rail:hover .rail-i .t, .rail-i:focus-visible .t { opacity: 1; transform: none; }
.rail-arrow { background: none; border: 1px solid var(--line-2); border-radius: 6px; width: 30px; height: 30px; cursor: pointer; color: var(--ink-2); margin: 6px 0; }
.rail-arrow:hover { border-color: var(--ink); color: var(--ink); }

.iris { position: fixed; inset: 0; z-index: 70; background: var(--accent); pointer-events: none; }
.net2d { position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%); width: min(40vw, 540px); aspect-ratio: 1; }
.net2d canvas { width: 100%; height: 100%; }

@media (max-width: 900px) {
  .rail { right: 0; left: 0; top: auto; bottom: 0; transform: none; flex-direction: row; align-items: center; justify-content: space-between; gap: 0; height: 60px; padding: 0 max(12px, env(safe-area-inset-left, 0px)) env(safe-area-inset-bottom, 0px); background: var(--bg); border-top: 1px solid var(--line); }
  .rail-i { padding: 0 6px; height: 100%; }
  .rail-i .n { padding: 0; }
  .rail-i .n::after { left: 50%; right: auto; top: auto; bottom: -8px; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; }
  .rail-i.on .n::after { width: 18px; height: 3px; border-radius: 2px; margin: 0; }
  .rail-i .t { display: none; }
  .rail-i.on .t { display: inline; font-weight: 600; color: var(--ink); }
  .rail-arrow { margin: 0; width: 38px; height: 38px; }
  .ch { inset: var(--top) 0 60px 0; }
  .ch-in { align-items: flex-end; padding-bottom: 18px; }
  .ch-col { max-height: 100%; overflow: auto; }
  .ch-home .net-legend { display: none; }
  .cue { display: none; }
  .ag-sheet { right: 16px; left: 16px; width: auto; bottom: 72px; }
  .ch-poster .ch-in { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 18px; }
  .poster-fig { height: 46vh; max-width: 80vw; }
  .end-foot { position: static; margin-top: 8px; }
  .ch-end .ch-in { flex-direction: column; align-items: flex-start; justify-content: flex-end; }
  .net2d { display: none; }
  
  .ch-kicker { margin-bottom: 14px; }
  .ag-title { min-height: 0; }
  .scrub { margin-top: 20px; }
}
@media (max-width: 900px) and (max-height: 700px) { .hero-h { font-size: 40px; } .ch-home .hero-sub { display: none; } }

/* agenda: day switch, card stack, dial, ticker */
.ag { max-width: 640px; }
.ag-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.ag-head .ch-kicker { margin: 0; }
.daysw { position: relative; display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); padding: 3px; }
.daysw button { position: relative; z-index: 1; border: 0; background: none; height: 34px; padding: 0 12px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--muted); border-radius: 6px; transition: color .3s; white-space: nowrap; }
.daysw button small { font-weight: 400; margin-left: 4px; }
.daysw button[aria-selected="true"] { color: var(--bg); }
.daysw .ink { position: absolute; top: 3px; bottom: 3px; left: 3px; border-radius: 6px; background: var(--ink); transition: left .5s var(--ease), width .5s var(--ease); }
.ag-body { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 24px; align-items: center; }
.stack { position: relative; height: 252px; }
.card { position: absolute; inset: 0 0 auto 0; height: 220px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; transform-origin: 50% 100%; box-shadow: 0 2px 8px rgba(0,0,0,.05); user-select: none; touch-action: pan-y; overflow: hidden; }
.card.front { cursor: grab; border-color: var(--ink); box-shadow: 0 10px 28px rgba(15,15,14,.10); }
.card.grab { cursor: grabbing; }
.card:not(.front) .c-sub, .card:not(.front) .c-meta { opacity: 0; }
.c-top { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.c-when { font-variant-numeric: tabular-nums; }
.c-when.live { color: var(--accent-ink); font-weight: 600; }
.c-time { font-size: 38px; font-weight: 600; letter-spacing: -.02em; color: var(--accent-ink); line-height: 1.1; display: flex; align-items: baseline; margin-top: 4px; }
.card:not(.front) .c-time:empty::after { content: ""; }
.dg { display: inline-block; height: 1.1em; overflow: hidden; line-height: 1.1; vertical-align: bottom; }
.dg .strip { display: flex; flex-direction: column; }
.dg .strip span { height: 1.1em; }
.ch-c { display: inline-block; }
.c-title { margin: 2px 0 0; font-size: 21px; line-height: 1.32; font-weight: 600; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c-sub { margin: 0; color: var(--ink-2); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.c-idx { position: absolute; right: 18px; bottom: 14px; font-size: 13px; color: var(--muted); }
.card:not(.front) .c-idx { opacity: 0; }
.dial { width: 190px; height: 190px; overflow: visible; }
.dial .track { fill: none; stroke: #E6E2D8; stroke-width: 10; }
.dial .tick { stroke: var(--line-2); stroke-width: 1; }
.dial .tl { font: 500 10px "Plex Thai", system-ui, sans-serif; fill: var(--muted); text-anchor: middle; dominant-baseline: middle; }
.dial .seg { fill: none; stroke: #9C978C; stroke-width: 10; cursor: pointer; transition: stroke .3s, stroke-width .35s var(--ease); }
.dial .seg.meal { stroke: #F3B993; }
.dial .seg:hover { stroke: var(--ink-2); }
.dial .seg.on { stroke: var(--accent); stroke-width: 16; }
.dial .hand { stroke: var(--ink); stroke-width: 1.5; }
.dial .hand-dot { fill: var(--ink); }
.dial .hub { fill: var(--ink); }
.dial .dial-day { font: 600 13px "Plex Thai", system-ui, sans-serif; fill: var(--ink); text-anchor: middle; }
.ag .scrub { margin-top: 14px; max-width: none; }
.ag-hint { font-size: 13px; margin-left: 6px; }
@media (max-width: 900px) {
  .ag-body { grid-template-columns: 1fr; }
  .dial { display: none; }
  .stack { height: 214px; }
  .card { height: 184px; padding: 14px 16px; }
  .c-time { font-size: 30px; }
  .c-title { font-size: 18px; }
  .ag-head { margin-bottom: 14px; }
}

/* audit fixes */
.demo-chip { display: inline-flex; align-items: center; gap: 8px; margin-left: 12px; font-size: 12px; font-weight: 600; color: var(--warn); background: var(--warn-soft); border-radius: 6px; padding: 0 4px 0 10px; height: 28px; white-space: nowrap; }
.demo-chip button { border: 0; background: rgba(0,0,0,.06); color: var(--warn); border-radius: 4px; height: 22px; padding: 0 8px; font-size: 12px; cursor: pointer; }
.demo-chip button:hover { background: rgba(0,0,0,.12); }
@media (max-width: 640px) { .demo-chip button { display: none; } .demo-chip { padding-right: 10px; margin-left: 8px; } }
/* scrim ให้ตัวหนังสืออ่านง่ายเหนือเครือข่าย */
.deck::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(247,246,242,.94) 0%, rgba(247,246,242,.82) 34%, rgba(247,246,242,0) 58%); pointer-events: none; }
.scroll-active { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent); padding-bottom: 28px; }
@media (max-height: 860px) { .cue { display: none; } }
@media (max-width: 900px) {
  .deck::before { background: linear-gradient(0deg, rgba(247,246,242,.97) 0%, rgba(247,246,242,.9) 52%, rgba(247,246,242,0) 74%); }
  .closing-t { font-size: clamp(30px, 8.4vw, 56px); margin-bottom: 20px; }
}
@media (max-height: 700px) {
  .ch-home .stats, .ch-home .facts div:nth-child(3) { display: none; }
  .ch-home .facts { grid-template-columns: 1fr 1fr; }
  .ch-home .facts div:nth-child(2) { border-right: 0; margin-right: 0; }
  .ch-home .lookup { margin-top: 18px; }
  .ch-kicker { font-size: 34px; }
}

/* audit round 2 */
.wd { white-space: nowrap; }
.closing-t { font-size: clamp(34px, 4.2vw, 66px); max-width: 12.5em; }
@media (max-width: 600px) {
  .ch-home .hero-sub, .ch-home .lookup .hint { display: none; }
  .ch-home .facts { grid-template-columns: 1fr 1fr; margin-top: 16px; }
  .ch-home .facts div:nth-child(2) { border-right: 0; margin-right: 0; }
  .ch-home .facts div:nth-child(3) { display: none; }
  .ch-home .lookup { margin-top: 18px; }
  .ch-home .stats { margin-top: 10px; }
  .end-foot .eq { display: none; }
  .end-foot { font-size: 12px; }
  .closing-t { font-size: clamp(28px, 7.6vw, 40px); }
  .ch-end .ch-in { padding-bottom: 8px; }
}
@media (max-width: 900px) {
  body.deck-mode[data-ch="resort"] .world, body.deck-mode[data-ch="poster"] .world { opacity: .28; }
  .end-foot { display: none; }
}

/* agenda v3: full-day list + tour */
.ch-col.ag { max-width: 600px; width: 100%; display: flex; flex-direction: column; max-height: calc(100% - 48px); }
.ag-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 0; flex-wrap: nowrap; }
.ag-head .ch-kicker { margin: 0 0 14px; }
.ag-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ag-head .dial { width: 150px; height: 150px; flex: none; margin-top: -4px; }
.ag-list { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--ink); flex: 1 1 auto; min-height: 0; overflow: auto; }
.ag-row { position: relative; border-bottom: 1px solid var(--line); }
.ag-row::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: var(--accent); transform: scaleY(0); transition: transform .45s var(--ease); }
.ag-row.on::before { transform: scaleY(1); }
.ag-hit { width: 100%; display: grid; grid-template-columns: 52px minmax(0, 1fr) 10px; gap: 12px; align-items: center; background: none; border: 0; padding: 9px 6px 9px 14px; text-align: left; cursor: pointer; font-size: 15.5px; color: var(--ink-2); transition: color .2s, background .2s; }
.ag-hit .l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-hit .t { font-weight: 600; color: var(--muted); font-size: 14px; }
.ag-hit:hover { background: rgba(15, 15, 14, .035); }
.ag-row.past .ag-hit { color: var(--muted); }
.ag-row.on .ag-hit { color: var(--ink); font-weight: 600; }
.ag-row.on .ag-hit .l { white-space: normal; }
.ag-row.on .ag-hit .t { color: var(--accent-ink); }
.tagdot { width: 8px; height: 8px; border-radius: 50%; background: #CFCABF; }
.tagdot.accent { background: var(--accent); } .tagdot.ok { background: var(--ok); } .tagdot.warn { background: #C9A227; }
.more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.ag-row.on .more { grid-template-rows: 1fr; }
.more-in { overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 0 6px 0 78px; }
.ag-row.on .more-in { padding-bottom: 12px; }
.more .range { font-size: 22px; font-weight: 600; color: var(--accent-ink); letter-spacing: -.01em; }
.more .sub { color: var(--ink-2); font-size: 14.5px; }
.more .meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.more .when { font-size: 13px; color: var(--muted); margin-left: 4px; font-variant-numeric: tabular-nums; }
.more .when.live { color: var(--accent-ink); font-weight: 600; }
.ag-play .pi { font-size: 10px; }
.ag-play.playing { border-color: var(--accent); color: var(--accent-ink); }
@media (max-width: 900px) {
  .ag-head .dial { display: none; }
  .ch-col.ag { max-height: 100%; }
  .ag-list { margin-top: 12px; }
  .ag-hit { font-size: 15px; padding: 8px 4px 8px 12px; grid-template-columns: 46px minmax(0, 1fr) 10px; }
  .more-in { padding-left: 62px; }
}
@media (max-height: 760px) { .ag-head .dial { width: 120px; height: 120px; } }
/* check page: ชื่อ-นามสกุลบรรทัดเดียว */
.who h1.one { font-size: clamp(32px, 4.6vw, 64px); }

.who-pays { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.who-pays span { display: inline-flex; gap: 6px; align-items: baseline; }
.who-pays b { font-weight: 600; color: var(--ink); }
.who-pays span:first-child b { color: var(--ok); }
.pin-form { display: grid; gap: 10px; margin-top: 28px; max-width: 460px; }
.pin-who { margin: 0; font-size: 17px; color: var(--ink-2); }
.pin-who b { color: var(--ink); }
.pin-boxes { display: flex; gap: 10px; }
.pin-box { width: 58px; height: 64px; text-align: center; font: 600 28px/1 "Plex Thai", system-ui, sans-serif; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); font-variant-numeric: tabular-nums; transition: border-color .15s, box-shadow .15s; }
.pin-box:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px #E8590C33; }
.pin-box.ok { border-color: var(--ok); }
.pin-msg { margin: 0; min-height: 1.4em; color: var(--bad); font-size: 14px; }
.pin-form .hint { font-size: 13px; color: var(--muted); margin: 0; }
.pin-gate .pin-form { margin-top: 8px; }
.n-label.fac.big { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.map-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 95; }
.btn.done-btn svg { width: 18px; height: 18px; }
.btn.done-btn:disabled { opacity: 1; }
.slip-prev.uploaded { border-color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok); transition: border-color .3s, box-shadow .3s; }

/* agenda v4: detail panel + compact list */
.ag-now { margin-top: 18px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line-2); border-left: 3px solid var(--accent); border-radius: var(--r); min-height: 104px; display: grid; gap: 4px; align-content: start; }
.now-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ag-now .range { font-size: 24px; font-weight: 600; color: var(--accent-ink); letter-spacing: -.01em; }
.ag-now .when { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ag-now .when.live { color: var(--accent-ink); font-weight: 600; }
.now-title { font-size: 18px; font-weight: 600; line-height: 1.35; }
.now-meta { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: 14px; color: var(--ink-2); }
.ag-list-wrap { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; margin-top: 12px; }
.ag-list-wrap .ag-list { margin-top: 0; }
.ag-hit { padding: 6px 6px 6px 14px; font-size: 15px; }
.ag-row.on .ag-hit { background: rgba(232, 89, 12, .06); }
.ag-row.on .ag-hit .l { white-space: nowrap; }
.ag-row::before { top: 6px; bottom: 6px; }
.edge-hint { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 12.5px; padding: 6px 12px; border-radius: 6px; white-space: nowrap; pointer-events: none; opacity: 0; z-index: 2; }
.edge-hint.top { bottom: auto; top: 8px; }
@media (max-width: 900px) {
  .ag-now { min-height: 0; padding: 10px 12px; margin-top: 12px; }
  .ag-now .range { font-size: 20px; }
  .now-title { font-size: 16px; }
  .ag-hit { padding: 7px 4px 7px 12px; }
}

/* icons */
.ico { width: 18px; height: 18px; flex: none; display: block; }
.ag-hit { grid-template-columns: 48px 22px minmax(0, 1fr); }
.ag-hit .ri { color: var(--muted); display: grid; place-items: center; }
.ag-hit .ri .ico { width: 19px; height: 19px; }
.ag-row.on .ri { color: var(--accent-ink); }
.ag-row .ri.accent { color: var(--accent); }
.ag-row .ri.ok { color: var(--ok); }
.ag-now { grid-template-columns: 56px minmax(0, 1fr); column-gap: 14px; }
.ag-now > :not(.now-ico) { grid-column: 2; }
.now-ico { grid-row: 1 / span 3; width: 56px; height: 56px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; }
.now-ico.ok { background: var(--ok-soft); color: var(--ok); }
.now-ico .ico { width: 30px; height: 30px; stroke-width: 1.5; }
.dial-ico { color: var(--ink); }
.n-label.gm { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.92); border-color: #DADCE0; color: #3C4043; box-shadow: 0 1px 2px rgba(60,64,67,.25); }
.n-label.gm .ico { width: 14px; height: 14px; color: #5F6368; }
.n-label.gm.big { background: #fff; color: #C5221F; border-color: #F1B9B5; font-weight: 600; }
.n-label.gm.big .ico { color: #EA4335; }
.n-label.gm.sea { background: transparent; border-color: transparent; box-shadow: none; color: #1967D2; font-style: italic; }
.n-label.gm.sea .ico { color: #4A8FE7; }
.n-label.gm.hill { color: #3C6E2F; }
.n-label.gm.hill .ico { color: #5C8F4A; }
@media (max-width: 900px) { .ag-hit { grid-template-columns: 44px 20px minmax(0, 1fr); } .ag-now { grid-template-columns: 44px minmax(0, 1fr); } .now-ico { width: 44px; height: 44px; } .now-ico .ico { width: 24px; height: 24px; } }

/* v5 — ให้รายการทั้งวันพอดีจอทั่วไป (≤ 960px สูง) ไม่ต้องเลื่อนในกล่อง */
@media (min-width: 901px) and (max-height: 1000px) {
  .ag-hit { padding-top: 4px; padding-bottom: 4px; font-size: 14.5px; }
  .ag-row::before { top: 4px; bottom: 4px; }
  .ag-now { margin-top: 12px; padding: 10px 14px; min-height: 0; }
  .ag-now .range { font-size: 21px; }
  .ag-list-wrap { margin-top: 8px; }
  .ag-head .dial { width: 128px; height: 128px; }
}
/* กันเส้นทาง 3D ทะลุหลังรายการ */
.ag-list { background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
/* หน้าแผนที่: scrim เข้มขึ้นช่วงคอลัมน์ข้อความ ให้แผนที่ละลายเข้าใต้ตัวหนังสือแทนการทับ */
@media (min-width: 901px) {
  body[data-ch="resort"] .deck::before { background: linear-gradient(90deg, rgba(247,246,242,.97) 0%, rgba(247,246,242,.93) 42%, rgba(247,246,242,.55) 52%, rgba(247,246,242,0) 64%); transition: background .6s; }
}

/* ===== v6 แผนที่ minimal ในโทนเว็บ ===== */
.n-label.gm { background: none; border: 0; box-shadow: none; padding: 2px 4px; gap: 4px; font-size: 12px; font-weight: 500; color: var(--ink-2); letter-spacing: .01em;
  text-shadow: 0 0 2px var(--bg), 0 0 4px var(--bg), 0 0 8px var(--bg); }
.n-label.gm .ico { width: 13px; height: 13px; color: var(--muted); filter: drop-shadow(0 0 2px var(--bg)); }
.n-label.gm::before { content: ""; position: absolute; left: -15px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--ink-2); box-shadow: 0 0 0 2px var(--bg); }
.n-label.gm:hover { color: var(--ink); }
.n-label.gm.minor { color: var(--muted); font-size: 11.5px; font-weight: 400; }
.n-label.gm.minor::before { background: var(--line-2); }
.n-label.gm.hill { color: var(--muted); }
.n-label.gm.hill .ico { color: var(--muted); }
.n-label.gm.sea { color: #7E9097; font-style: italic; font-weight: 400; letter-spacing: .08em; }
.n-label.gm.sea::before, .n-label.gm.big::before { display: none; }
.n-label.gm.sea .ico { color: #95A6AC; }
.n-label.gm.big { padding: 6px 10px; border-radius: 999px; font-weight: 600; text-shadow: none; box-shadow: 0 2px 10px rgba(15,15,14,.12); }
.n-label.gm.big .ico { filter: none; }
.n-label.gm.start { background: var(--ink); color: var(--bg); }
.n-label.gm.start .ico { color: var(--bg); }
.n-label.gm.dest { background: var(--accent); color: #fff; }
.n-label.gm.dest .ico { color: #fff; }
.n-label.gm.on:not(.big) { background: none; color: var(--accent-ink); }

.map-hud { display: none; }
@media (min-width: 901px) {
  .map-hud { display: flex; align-items: center; gap: 18px; position: absolute; left: 54%; bottom: 30px; width: min(420px, 30vw); padding: 12px 16px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 12px; }
  body.no-webgl .map-hud { display: none; }
}
.compass { position: relative; width: 40px; height: 40px; flex: none; }
.compass svg { width: 40px; height: 40px; }
.compass circle { fill: var(--surface); stroke: var(--line-2); }
.compass .needle { transform-origin: 20px 20px; transform: rotate(var(--map-yaw, 0rad)); }
.compass .n { fill: var(--accent); } .compass .s { fill: var(--line-2); }
.compass b { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); font-size: 10px; color: var(--muted); font-weight: 600; }
.trip { flex: 1; min-width: 0; }
.trip-ends { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.trip-ends b { color: var(--ink); font-weight: 600; }
.trip-ends .mid { font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.trip-ends .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin: 0 5px; vertical-align: 1px; }
.trip-ends .dot.ink { background: var(--ink); margin-left: 0; } .trip-ends .dot.acc { background: var(--accent); margin-right: 0; }
.trip-bar { position: relative; height: 3px; margin-top: 9px; border-radius: 2px; background: var(--line); }
.trip-bar .fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--bus-u, 0) * 100%); border-radius: 2px; background: linear-gradient(90deg, var(--ink), var(--accent)); }
.trip-bar .bus { position: absolute; top: 50%; left: calc(var(--bus-u, 0) * 100%); width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--ink); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2); }
.n-label.gm { text-shadow: 0 0 3px var(--bg), 0 0 3px var(--bg), 0 0 6px var(--bg); }
.n-label.gm.minor { color: var(--ink-2); opacity: .78; }
.n-label.gm.sea { color: #58707A; }

/* บทรีสอร์ท: แท็บ การเดินทาง / ในรีสอร์ท */
.rs-seg { position: relative; display: inline-flex; margin-top: 18px; padding: 3px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); }
.rs-seg button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border: 0; background: none; border-radius: 7px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; transition: color .3s; }
.rs-seg button .ico { width: 16px; height: 16px; }
.rs-seg button[aria-selected="true"] { color: var(--bg); }
.rs-seg .ink { position: absolute; top: 3px; bottom: 3px; left: 3px; border-radius: 7px; background: var(--ink); transition: left .5s var(--ease), width .5s var(--ease); }
.rs-pane { margin-top: 16px; }
.rs-pane .rs-kv { margin-top: 0; }
.rs-pane .rs-kv b { font-weight: 600; }
.fac-list { list-style: none; margin: 0 0 16px; padding: 0; border-top: 1px solid var(--line); }
.fac-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.fac-list .ico { width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.fac-list b { display: block; font-size: 14.5px; font-weight: 600; }
.fac-list span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
@media (max-height: 940px) and (min-width: 901px) { .fac-list li { padding: 6px 2px; } .fac-list span { font-size: 13px; } }
.map-hud { transition: opacity .4s, transform .4s var(--ease); }
body.rs-resort .map-hud { opacity: 0; transform: translateY(8px); pointer-events: none; }
body.rs-resort .map-hud { opacity: 0 !important; }
@media (min-width: 901px) {
  .fac-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .fac-list li { padding: 8px 2px; }
  .fac-list span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; }
}

/* ศิษย์เก่า */
.dot.a { background: var(--surface); box-shadow: inset 0 0 0 2px var(--accent-ink); }
.who-pays a { color: var(--accent-ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }
.who-pays a:hover { color: var(--accent); }
.gift { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gift button { height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); font-size: 15px; font-variant-numeric: tabular-nums; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.gift button:hover { border-color: var(--ink); }
.gift button[aria-checked="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.gift-other { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.gift-other .input { width: 130px; height: 40px; }
.al-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r); background: var(--surface); }
.al-total span { color: var(--muted); font-size: 14px; }
.al-total b { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.summary.alumni-sum { margin-top: -8px; border-top: 0; padding-top: 0; }
.summary .lbl { align-self: center; font-size: 13px; font-weight: 600; color: var(--accent-ink); letter-spacing: .02em; }
td .sub { display: block; }
.listbox li.to-alumni { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); color: var(--ink); cursor: pointer; background: var(--accent-soft); }
.listbox li.to-alumni b { color: var(--accent-ink); font-weight: 600; }
.listbox li.to-alumni small { color: var(--accent-ink); white-space: nowrap; }
.listbox li.to-alumni:hover { background: #FBE3D2; }
.al-miss { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; margin: 0 0 28px; padding: 14px 18px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r); background: var(--surface); }
.al-miss b { display: block; font-weight: 600; }
.al-miss span { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.sm-badge { font-size: 11px; padding: 1px 6px; vertical-align: 1px; }
.join-who { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 0 0 8px; }
.join-who .lbl { align-self: center; font-weight: 600; margin-right: 4px; }
.join-who button { display: grid; gap: 2px; text-align: left; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.join-who button b { font-size: 15px; font-weight: 600; }
.join-who button small { font-size: 12.5px; color: var(--muted); }
.join-who button:hover { border-color: var(--ink); }
.join-who button[aria-checked="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); box-shadow: 0 4px 14px rgba(15,15,14,.15); }
.join-who button[aria-checked="true"] small { color: rgba(247,246,242,.7); }
.join-hint { margin: 14px 0 0; font-size: 14px; }
.join-pane { margin-top: 28px; }
@media (max-width: 640px) { .join-who button { flex: 1 1 100%; } .join-who .lbl { flex-basis: 100%; } }
