:root {
  --bg: #0a0a0a;
  --fg: #e8e8e8;
  --muted: #8a8a8a;
  --surface: #141414;
  --border: #2a2a2a;
  --cyan: #4dd9d9;
  --orange: #e8723a;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "IBM Plex Sans Thai", "Sukhumvit Set", "Thonburi", "Noto Sans Thai", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a { color: inherit; }

.hero, .filter, .grid, .closing, footer {
  width: min(100% - 32px, 1120px);
  margin-inline: auto;
}

.hero { padding: 40px 0 24px; }

.brand {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--cyan);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .04em;
  text-decoration: none;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 8vw, 56px);
  line-height: 1.25;
  font-weight: 700;
}

h1 em { font-style: normal; color: var(--orange); }

.hero p, .closing p {
  max-width: 40em;
  margin: 0 0 8px;
  color: #c9c9c9;
  font-size: clamp(16px, 4.2vw, 18px);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 600;
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}

.btn:hover { border-color: var(--cyan); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--orange); border-color: var(--orange); color: #111; }
.btn.primary:hover { filter: brightness(1.08); }
button.btn { justify-content: center; color: var(--fg); font: inherit; font-weight: 600; cursor: pointer; }
button.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; }

.filter {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 8px;
  padding: 12px 0;
  background: linear-gradient(var(--bg) 70%, transparent);
}

.filter button {
  min-height: 40px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.filter button[aria-pressed="true"] { border-color: var(--cyan); color: var(--cyan); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 28px 20px;
  padding: 8px 0 48px;
}

.card { display: flex; flex-direction: column; min-width: 0; scroll-margin-top: 68px; }
.card[hidden] { display: none; }

.player {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.player img, .player video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(10, 10, 10, .62);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .85);
  transition: transform .15s, background .15s;
}

.play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  translate: -50% -50%;
  border-style: solid;
  border-width: 13px 0 13px 21px;
  border-color: transparent transparent transparent #fff;
}

.player:hover .play, .player:focus-visible .play { transform: scale(1.08); background: var(--orange); }
.player:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.soon {
  display: grid;
  place-items: center;
  cursor: default;
  color: var(--muted);
  background: repeating-linear-gradient(135deg, #121212 0 14px, #171717 14px 28px);
}

.meta { padding: 14px 2px 0; }

.row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.num { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }

.tag {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid currentColor;
}

.tag-th { color: var(--orange); }
.tag-en { color: var(--cyan); }

.card h2 { margin: 6px 0 0; font-size: 20px; line-height: 1.35; }

.en { margin: 2px 0 8px; color: var(--muted); font-size: 13px; }

.desc { margin: 0 0 10px; font-size: 15px; color: #cfcfcf; }

.demo { margin: 0; font-size: 14px; color: var(--muted); }
.demo span { display: block; font-size: 12px; }
.demo q { color: var(--fg); quotes: none; }

.closing {
  padding: 32px 0 40px;
  border-top: 1px solid var(--border);
}

.closing h2 { margin: 0 0 12px; font-size: clamp(22px, 6vw, 32px); }

footer {
  padding: 24px 0 calc(32px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 14px;
}

@media (min-width: 720px) {
  .hero { padding-top: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

video.player { object-fit: contain; background: #000; cursor: auto; }
iframe.player { height: auto; background: #000; cursor: auto; }

/* Phones: compact side-by-side cards so all 20 styles scan quickly; a playing card goes full width. */
@media (max-width: 599px) {
  .grid { gap: 22px; }
  .card { display: grid; grid-template-columns: 40% 1fr; gap: 14px; align-items: start; }
  .card .meta { padding-top: 0; }
  .card h2 { font-size: 17px; }
  .desc { font-size: 14px; line-height: 1.55; }
  .play { width: 52px; height: 52px; }
  .play::after { border-width: 10px 0 10px 16px; }
  .card.playing { grid-template-columns: 1fr; }
}

/* ---------- Shared widths for the added sections ---------- */
.igf, .longform, .styles-head {
  width: min(100% - 32px, 1120px);
  margin-inline: auto;
}

.fine { color: var(--muted); font-size: 13px; line-height: 1.6; }
.form-err { min-height: 1em; margin: 6px 0 0; color: #ff9b7a; font-size: 14px; }

/* ---------- Long-form 16:9 ---------- */
.player.wide { aspect-ratio: 16 / 9; }

.dur {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 1px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .72);
  color: #fff;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.longform { padding: 40px 0 8px; border-top: 1px solid var(--border); }
.longform h2, .styles-head h2 { margin: 0 0 10px; font-size: clamp(24px, 6.4vw, 36px); line-height: 1.3; }
.longform > p, .styles-head p { max-width: 40em; margin: 0 0 8px; color: #c9c9c9; }

.lf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 28px 24px;
  margin-top: 22px;
}

.lf-card { min-width: 0; scroll-margin-top: 16px; }
.lf-card .meta { padding-top: 12px; }
.lf-card h3 { margin: 8px 0 6px; font-size: 21px; line-height: 1.4; }
.lf-card .tag { display: inline-block; }

/* Dub switch on a long-form card: same picture, another soundtrack. */
.dub { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; scroll-margin-top: 16px; }
.dub button {
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.dub button[aria-pressed="true"] { border-color: var(--orange); background: #2a160c; color: var(--fg); }
.dub button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.dub-note { margin: 0 0 10px; color: var(--muted); font-size: 14px; line-height: 1.6; }

.chan {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.chan-name { color: var(--muted); font-size: 14px; }
.chan-name b { color: var(--fg); font-weight: 600; }
.chan-links { display: flex; flex-wrap: wrap; gap: 8px; }
.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .15s;
}
.social:hover, .social:focus-visible { border-color: var(--cyan); }
.social svg { flex: none; }

/* ---------- Sales hero: offer, price, seats and both pay buttons above the fold ---------- */
.hero.sell { padding: 28px 0 32px; }
.sell h1 { font-size: clamp(28px, 7.6vw, 52px); margin-bottom: 12px; }
.sell-copy { display: grid; gap: 12px; max-width: 46em; }
.sell-copy > p { margin: 0; }
.sell .offer-kicker { margin: 0; color: var(--cyan); }
.sell-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.sell-price b { color: var(--fg); font-size: clamp(44px, 12vw, 64px); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sell-price span { color: #c9c9c9; font-size: 16px; }
.sell-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.sell-cta .pay-btn { width: auto; min-height: 56px; padding: 10px 26px; font-size: 17px; font-weight: 700; }
.sell .form-err:empty { display: none; }
.sell .fine a { color: var(--cyan); font-weight: 600; }
@media (max-width: 599px) {
  .sell-cta .pay-btn { width: 100%; }
}

/* Checkout card: dark, title, big price, check-list, one big button. */
.offer-card {
  display: grid;
  gap: 14px;
  align-self: start;
  padding: 26px 22px 20px;
  border: 1px solid #333;
  border-radius: 22px;
  background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.offer-kicker { margin: 0 0 -6px; color: var(--cyan); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.offer-title { margin: 0; font-size: clamp(21px, 5.4vw, 26px); line-height: 1.4; }
.offer-price { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 0; }
.offer-price b { color: var(--fg); font-size: clamp(46px, 13vw, 64px); font-weight: 700; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.offer-price span { color: #c9c9c9; font-size: 20px; font-weight: 600; }
.checks { display: grid; gap: 12px; margin: 6px 0 4px; padding: 16px 0 0; border-top: 1px solid #2a2a2a; list-style: none; }
.checks li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.5; }
.checks svg { flex: none; margin-top: 1px; color: var(--orange); }
.offer-card .pay-btn { width: 100%; min-height: 58px; font-size: 18px !important; font-weight: 700 !important; }
.offer-card .form-err { margin: -6px 0 0; min-height: 0; }
.offer-card .form-err:empty { display: none; }
.offer-card .fine { margin: 0; }
.styles-head { padding: 44px 0 0; border-top: 1px solid var(--border); margin-top: 40px; }

/* ---------- Niche chat ---------- */
.igf {
  display: grid;
  gap: 20px 40px;
  padding: 28px 0 44px;
  scroll-margin-top: 8px;
}

.igf h2 { margin: 0 0 10px; font-size: clamp(24px, 6.4vw, 38px); line-height: 1.3; }
.igf-copy > p { margin: 0 0 10px; color: #c9c9c9; }

.steps { margin: 14px 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 40px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange);
  color: #111;
  font-weight: 700;
  font-size: 14px;
}

.chatbox {
  display: flex;
  flex-direction: column;
  height: min(660px, calc(100svh - 32px));
  min-height: 460px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.avatar {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffb27f, var(--orange) 55%, #9b3d14);
  box-shadow: 0 0 0 2px #1f1f1f, 0 0 0 3px var(--cyan);
}
.who { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.who small { color: var(--cyan); font-size: 12px; }
.chat-reset {
  margin-left: auto;
  min-height: 34px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.chat-reset:hover { color: var(--fg); border-color: var(--cyan); }

.chat-log {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  animation: pop .22s ease-out;
}
.msg.bot { align-self: flex-start; background: #1d1d1d; border: 1px solid #2c2c2c; border-bottom-left-radius: 5px; }
.msg.me { align-self: flex-end; background: #3a2216; border: 1px solid #5a3420; border-bottom-right-radius: 5px; }
.msg.note { border-color: #5a3420; color: #ffcfb5; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.typing { display: flex; gap: 5px; padding: 14px 16px; }
.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: bounce 1.2s infinite;
}
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-5px); } }

.chat-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); }
.chat-input[hidden] { display: none; }
.chat-input input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 16px;
}
.chat-input input:focus { outline: none; border-color: var(--cyan); }
.chat-input button {
  min-width: 64px;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: #111;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.chat-input button:disabled, .chat-input input:disabled { opacity: .5; cursor: progress; }

.assess {
  padding: 16px;
  border: 1px solid #23413f;
  border-radius: 14px;
  background: #0f1a19;
  animation: pop .22s ease-out;
}
.assess-k { margin: 0 0 4px; color: var(--cyan); font-size: 12px; letter-spacing: .02em; }
.assess h3 { margin: 0 0 10px; font-size: 18px; line-height: 1.45; }
.assess h4 { display: flex; align-items: center; gap: 8px; margin: 14px 0 4px; font-size: 15px; }
.assess p { margin: 0; color: #d4d4d4; font-size: 14px; line-height: 1.65; }
.assess-row { margin-top: 2px; }
.level { padding: 1px 10px; border: 1px solid currentColor; border-radius: 999px; font-size: 12px; font-weight: 600; }
.level[data-tone="good"] { color: var(--cyan); }
.level[data-tone="mid"] { color: #d9c27a; }
.level[data-tone="warn"] { color: #ff9b7a; }
.eps { display: grid; gap: 8px; margin: 0 0 4px; padding-left: 20px; font-size: 14px; }
.eps b { display: block; color: var(--fg); line-height: 1.45; }
.eps span { color: #c4c4c4; line-height: 1.55; }
.assess .picks { margin-top: 4px; }
.assess .caution { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: #13110b; color: #e3d6ae; }
.assess .caution b { color: #f0dc9a; }
.assess > .fine { margin-top: 10px; color: var(--muted); font-size: 12px; }

.picks { display: grid; gap: 10px; }
.pick {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: start;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #181818;
  color: var(--fg);
  text-decoration: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s;
  animation: pop .22s ease-out;
}
.pick:hover, .pick:focus-visible { border-color: var(--cyan); outline: none; }
.thumb {
  display: block;
  width: 76px;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}
.thumb.wide { aspect-ratio: 16 / 9; margin-top: 6px; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pick-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pick-text b { font-size: 15px; line-height: 1.4; }
.pick-why { color: #c4c4c4; font-size: 13px; line-height: 1.55; }
.pick-cta { margin-top: 4px; color: var(--orange); font-size: 13px; font-weight: 600; }

/* Code-drawn swatches for styles that have no public poster. */
.swatch-lf-doodle {
  background:
    radial-gradient(circle at 50% 38%, transparent 13px, #1b1b1b 14px 16px, transparent 17px),
    linear-gradient(160deg, transparent 58%, #b3321f 58% 61%, transparent 61%),
    repeating-linear-gradient(0deg, transparent 0 9px, rgba(0, 0, 0, .05) 9px 10px),
    #efe6d2;
}
.swatch-lf-medieval {
  background:
    conic-gradient(from 45deg at 50% 50%, #1d4fa3 0 25%, #a3122a 0 50%, #0f7a5c 0 75%, #d8a21c 0),
    #0b1640;
  background-size: 24px 24px, auto;
  box-shadow: inset 0 0 0 3px #111;
}
.swatch-missing { background: repeating-linear-gradient(135deg, #121212 0 10px, #1b1b1b 10px 20px); }

.email-form {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #5a3420;
  border-radius: 14px;
  background: #1c130e;
  animation: pop .22s ease-out;
}
.email-form p { margin: 0; }
.email-form input {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 16px;
}
.email-form input:focus { outline: none; border-color: var(--cyan); }
.email-form .btn { justify-content: center; font: inherit; font-weight: 700; cursor: pointer; }
.email-form .btn:disabled { opacity: .6; cursor: progress; }
.email-form .fine { margin: 0; }

.choice { display: flex; flex-wrap: wrap; gap: 8px; animation: pop .22s ease-out; }
.choice .btn { min-height: 44px; }
.msg a { color: var(--cyan); font-weight: 600; }
.offer-card.in-chat { flex: none; padding: 20px 16px 16px; animation: pop .22s ease-out; }
.offer-card.in-chat .offer-price b { font-size: 46px; }

/* Style references attached under the chat log. */
.refs { display: grid; gap: 8px; padding: 8px 10px 0; border-top: 1px solid var(--border); }
.refs[hidden] { display: none; }
.refs-toggle {
  justify-self: start;
  padding: 4px 2px;
  border: 0;
  background: none;
  color: var(--cyan);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.refs-panel { display: grid; gap: 8px; padding-bottom: 4px; }
.refs-panel[hidden] { display: none; }
.refs-panel .fine { margin: 0; font-size: 12px; }
.refs-file { position: relative; justify-self: start; min-height: 40px; padding: 6px 16px; font-size: 14px; cursor: pointer; }
.refs-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.refs-link { display: flex; gap: 8px; }
.refs-link input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 16px;
}
.refs-link input:focus { outline: none; border-color: var(--cyan); }
.refs-link .btn { min-height: 40px; padding: 6px 16px; }
.refs .form-err { margin: 0; font-size: 13px; }
.refs .form-err:empty { display: none; }
.refs-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.refs-list:empty { display: none; }
.ref-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 3px 4px 3px 4px;
  border: 1px solid #2c4442;
  border-radius: 999px;
  background: #0f1a19;
  font-size: 13px;
}
.ref-chip img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.ref-chip span { overflow: hidden; padding-left: 6px; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.ref-chip img + span { padding-left: 0; }
.ref-x { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #1d2b2a; color: var(--fg); font-size: 16px; line-height: 1; cursor: pointer; }

@media (min-width: 900px) {
  .igf { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
  .igf-copy { position: sticky; top: 24px; padding-top: 8px; }
}

/* ---------- Payment success page ---------- */
.paid-hero { padding-bottom: 0; }
.paidpage { display: grid; gap: 14px; width: min(100% - 32px, 720px); margin: 0 auto; padding: 8px 0 40px; }
.paidpage section { display: grid; gap: 14px; justify-items: start; }
.paidpage:not([data-state="paid"]) .state-paid,
.paidpage:not([data-state="pending"]) .state-pending,
.paidpage:not([data-state="unknown"]) .state-unknown { display: none; }
.paidpage h1 { margin: 0; font-size: clamp(28px, 7.4vw, 42px); }
.paidpage h2 { margin: 8px 0 0; font-size: 20px; }
.paidpage p { margin: 0; color: #cfcfcf; }
.test-note { display: none; padding: 8px 14px; border: 1px dashed #d9c27a; border-radius: 10px; color: #d9c27a !important; font-size: 14px; }
.paidpage[data-test] .test-note { display: block; }
.status-pill {
  padding: 6px 16px;
  border: 1px solid var(--cyan);
  border-radius: 999px;
  color: var(--cyan) !important;
  font-weight: 700;
}
.state-pending .status-pill { border-color: #d9c27a; color: #d9c27a !important; }
.order-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid #333;
  border-radius: 16px;
  background: var(--surface);
}
.order-box span { flex-basis: 100%; color: var(--muted); font-size: 14px; }
.order-box b { font-size: clamp(26px, 7vw, 34px); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.order-box .btn { min-height: 40px; padding: 6px 16px; }
.btn.big { min-height: 58px; padding: 12px 28px; font-size: 18px; font-weight: 700; }
/* Paid page: per-kind thanks and next steps (bundle covers bundle and bundle_upgrade), then the download buttons the
   worker fills in, and the bundle upgrade box (data-upgrade: offer | done | owned | none). */
.paidpage:not([data-kind="package"]) .only-package,
.paidpage:not([data-kind="ebook"]) .only-ebook,
.paidpage:not([data-kind="mapbook"]) .only-mapbook,
.paidpage:not([data-kind="multibook"]) .only-multibook,
.paidpage:not([data-kind="doodlebook"]) .only-doodlebook,
.paidpage:not([data-kind="povbook"]) .only-povbook,
.paidpage:not([data-kind="book3d"]) .only-book3d,
.paidpage:not([data-kind="duobook"]) .only-duobook,
.paidpage:not([data-kind="real3d"]) .only-real3d,
.paidpage:not([data-kind="bundle"]):not([data-kind="bundle_upgrade"]) .only-bundle { display: none; }
.paidpage div.only-package, .paidpage div.only-ebook, .paidpage div.only-mapbook, .paidpage div.only-multibook, .paidpage div.only-doodlebook, .paidpage div.only-povbook, .paidpage div.only-book3d, .paidpage div.only-duobook, .paidpage div.only-real3d, .paidpage div.only-bundle { display: grid; gap: 14px; justify-items: start; }
.upgrade { width: 100%; }
.upgrade[data-upgrade="none"],
.upgrade:not([data-upgrade="offer"]) .up-offer,
.upgrade:not([data-upgrade="done"]) .up-done,
.upgrade:not([data-upgrade="owned"]) .up-owned { display: none; }
.up-offer { display: grid; gap: 12px; margin-top: 8px; padding: 20px 18px; border: 2px solid var(--orange); border-radius: var(--radius); background: #160f0b; }
.up-offer > * { margin: 0; }
.up-offer .offer-kicker { color: var(--cyan); font-size: 14px; }
.up-math { color: var(--cyan); font-weight: 600; }
.up-offer .up-btn { width: 100%; justify-content: center; text-align: center; white-space: normal; }
.up-offer .form-err:empty { display: none; }
.up-done, .up-owned { display: grid; gap: 8px; justify-items: start; margin-top: 8px; padding: 14px 16px; border: 1px solid #24403f; border-radius: var(--radius); background: #10201f; }
.up-done > *, .up-owned > * { margin: 0; }
.downloads { display: grid; gap: 10px; width: 100%; }

/* ---------- /paid starter kit (src/kit.ts): numbered steps, cover thumbnails, one card per e-book ---------- */
.kit { display: grid; gap: 26px; width: 100%; }
.kit-step { display: grid; gap: 12px; }
.kit-h { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 20px; line-height: 1.35; }
.kit-n { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--orange); color: #111; font-weight: 800; font-size: 19px; box-shadow: 0 0 0 4px rgba(232, 114, 58, 0.18); }
.kit-sub { margin: -4px 0 2px 50px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.kit-start, .kit-book, .kit-extra { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; }
.kit-start { grid-template-columns: 132px 1fr; background: linear-gradient(135deg, #1d1410, #141414 60%); border: 2px solid var(--orange); }
.kit-cover { width: 100%; aspect-ratio: 210 / 297; object-fit: cover; border-radius: 10px; border: 2px solid #222; background: #1c1c1c; transform: rotate(-2.5deg); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45); transition: transform 0.2s ease; }
.kit-book:hover .kit-cover, .kit-start:hover .kit-cover, .kit-extra:hover .kit-cover { transform: rotate(0deg) scale(1.03); }
.kit-body { display: grid; gap: 8px; min-width: 0; }
.kit-body b { font-size: 17px; line-height: 1.4; }
.kit-body p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.kit-books { display: grid; gap: 14px; }
.kit-extras { display: grid; gap: 12px; }
.kit-extra { grid-template-columns: 76px 1fr; padding: 12px 14px; }
.kit-extra .kit-cover { transform: rotate(-1.5deg); }
.kit-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.kit-btn { min-height: 44px; padding: 10px 18px; border-radius: 999px; justify-content: center; text-align: center; white-space: normal; font-size: 15px; }
.kit-wait { color: var(--muted); font-size: 14px; }
.kit-wait a { color: var(--cyan); font-weight: 600; }
.kit-start.kit-all { grid-template-columns: 1fr; }
.kit-how { display: grid; gap: 8px; margin: 0; padding-left: 22px; color: var(--fg); font-size: 15px; line-height: 1.6; }
.kit-ask { display: block; margin-top: 6px; padding: 10px 12px; background: #0d0d0d; border: 1px solid var(--border); border-radius: 10px; color: var(--cyan); font-size: 14px; line-height: 1.55; white-space: normal; user-select: all; }
.kit-body p.kit-warn { color: #ffb08a; font-weight: 600; }
@media (min-width: 760px) {
  .kit-book { grid-template-columns: 124px 1fr; padding: 18px 20px; }
  .kit-extras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .kit-sub { margin-left: 0; }
  .kit-start, .kit-book { grid-template-columns: 88px 1fr; gap: 12px; padding: 14px; }
  .kit-actions .kit-btn { width: 100%; }
}

/* ---------- Featured long-form cards: trend (red "trending now" badge + ring) and wide; both full width on desktop ---------- */
.trend {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 8px 8px 0;
  padding: 3px 12px 3px 10px;
  border-radius: 999px;
  background: #e0262b;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  vertical-align: middle;
}
.trend::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: trend-pulse 1.6s ease-in-out infinite;
}
@keyframes trend-pulse { 50% { opacity: .3; } }
.lf-feature .player { box-shadow: 0 0 0 2px #e0262b; }
@media (min-width: 860px) {
  .lf-wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
  }
  .lf-wide .meta { padding-top: 0; }
  .lf-wide h3 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .trend::before { animation: none; }
}

/* ---------- Long-form sales sections ---------- */
.block { width: min(100% - 32px, 1120px); margin: 40px auto 0; padding: 40px 0 8px; border-top: 1px solid var(--border); scroll-margin-top: 8px; }
.block h2 { margin: 0 0 12px; font-size: clamp(24px, 6.4vw, 38px); line-height: 1.3; }
.block > p { max-width: 40em; margin: 0 0 10px; color: #c9c9c9; }
.block a { color: var(--cyan); font-weight: 600; }
.pains { display: grid; gap: 12px; margin: 16px 0; }
.pains article, .fit-grid > div { padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.pains h3 { margin: 0 0 4px; color: var(--orange); font-size: 18px; }
.pains p { margin: 0; color: #cfcfcf; }
.how .steps { max-width: 40em; }
.how h3 { margin: 18px 0 4px; font-size: 18px; }
.how .fine { max-width: 40em; margin: 0 0 8px; }
.fit-grid { display: grid; gap: 14px; margin-top: 12px; }
.fit-grid h3 { margin: 0 0 8px; font-size: 18px; }
.fit-grid ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.fit-grid li { position: relative; padding-left: 26px; color: #d4d4d4; }
.fit-yes li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan); font-weight: 700; }
.fit-no li::before { content: "✕"; position: absolute; left: 0; color: #ff9b7a; font-weight: 700; }
@media (min-width: 760px) {
  .pains { grid-template-columns: repeat(3, 1fr); }
  .fit-grid { grid-template-columns: 1fr 1fr; }
}
.faq-list { display: grid; gap: 8px; max-width: 46em; }
.faq details { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.faq summary { padding: 14px 44px 14px 16px; position: relative; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 12px; color: var(--orange); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "×"; }
.faq details p { margin: 0; padding: 0 16px 14px; color: #cfcfcf; }
.final { display: grid; gap: 24px 48px; padding-bottom: 32px; }
.final-copy p { margin: 0 0 8px; color: #c9c9c9; }
@media (min-width: 880px) { .final { grid-template-columns: 1.1fr minmax(360px, 1fr); align-items: start; } }
/* E-book section at the end of the home page (the bundle box with the 20-styles e-book as the second choice). */
.ebook { margin-top: 8px; border-top: 1px solid var(--border); padding-top: 40px; }

/* Compact pay strip between sections. */
.cta-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; width: min(100% - 32px, 1120px); margin: 32px auto 0; padding: 16px 18px; border: 1px solid #5a3420; border-radius: 16px; background: #160f0b; }
.cta-strip p { display: grid; gap: 4px; margin: 0; }
.cta-strip p > span { color: #c9c9c9; font-size: 14px; }
.strip-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.strip-btns .pay-btn { min-height: 48px; padding: 8px 20px; }
.cta-strip .form-err, .sticky-pay .form-err { flex-basis: 100%; margin: 0; }
.cta-strip .form-err:empty, .sticky-pay .form-err:empty { display: none; }
@media (max-width: 599px) { .strip-btns, .strip-btns .pay-btn { width: 100%; } }

/* Sticky pay bar on phones; igf.js hides it while an offer box, strip, the hero buttons or the chat is on screen. */
.sticky-pay { display: none; }
@media (max-width: 899px) {
  .sticky-pay:not([hidden]) { position: fixed; inset: auto 0 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid #333; background: rgba(10, 10, 10, .96); }
  .sticky-pay .pay-btn { min-height: 48px; padding: 8px 18px; font-weight: 700; }
  footer { padding-bottom: 96px; }
}
.sticky-text { color: #c9c9c9; font-size: 13px; line-height: 1.35; }

/* ---------- E-book launch price (home e-book box and /ebook) ---------- */
.offer-price .was, .sell-price .was { color: var(--muted); font-size: 26px; font-weight: 600; text-decoration-thickness: 2px; }
.launch-note { margin: 0; color: var(--cyan); font-size: 15px; line-height: 1.5; }
.launch-note b { color: var(--fg); }

/* ---------- Ad landing page (/ebook) ---------- */
.lp-hero .lp-hero-clip { max-width: 640px; }
.lp-hero .lp-hero-clip .fine { margin: 6px 0 0; }
.lp-clips { width: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; padding: 12px 0 0; }
.lp-clips .card.lp-clip { display: flex; flex-direction: column; gap: 0; }
.lp-clip p { margin: 8px 0 0; color: #d4d4d4; font-size: 15px; line-height: 1.4; }
@media (min-width: 720px) { .lp-clips { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; } }
.lp-inside .checks { border-top: 0; padding-top: 4px; }
.lp-inside .checks li { font-size: 15px; }
.lp-sub { margin: 24px 0 8px; font-size: 20px; }
.lp-cmds { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.lp-cmds code { display: inline-block; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--fg); font-family: inherit; font-size: 15px; }

/* ---------- Bundle box (every sales page; Faizal 11 Oct 2026: the bundle is the primary, highlighted choice) ---------- */
.btn.outline { background: transparent; border-color: #5a5a5a; color: var(--fg); }
.btn.outline:hover { border-color: var(--cyan); }
.bundle-card { position: relative; margin-top: 14px; border: 2px solid var(--orange); background: linear-gradient(180deg, #24160e 0%, #0f0f0f 70%); box-shadow: 0 0 0 4px rgba(232, 114, 58, .14), 0 24px 60px rgba(0, 0, 0, .55); }
.bundle-tag { position: absolute; top: -14px; left: 20px; margin: 0; padding: 3px 12px; border-radius: 999px; background: var(--orange); color: #111; font-size: 13px; font-weight: 700; line-height: 1.5; }
.bundle-lead { margin: -4px 0 0; color: #c9c9c9; font-size: 15px; line-height: 1.55; }
.stack { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid #3a2416; }
.stack li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid #2a2a2a; font-size: 15px; line-height: 1.45; }
.stack li b { flex: none; color: var(--fg); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stack li.stack-soon span { color: #bdbdbd; }
.stack li.stack-soon b { flex: 0 1 44%; color: var(--cyan); font-size: 13px; font-weight: 600; text-align: right; white-space: normal; }
.stack-total { display: flex; justify-content: space-between; gap: 12px; margin: 0; color: #c9c9c9; font-size: 16px; }
.stack-total b { color: var(--fg); font-variant-numeric: tabular-nums; }
.bundle-price { margin: 0; }
.bundle-price b { color: var(--orange); }
.bundle-compare { margin: -6px 0 0; color: var(--cyan); font-size: 15px; font-weight: 600; }
.offer-card .pay-btn.outline { min-height: 50px; font-size: 16px !important; font-weight: 600 !important; }
.bundle-card .launch-note { margin-top: -8px; color: var(--muted); font-size: 13px; }
.bundle-hint { margin: 2px 0 0; color: #c9c9c9; font-size: 15px; }
.bundle-hint a { color: var(--cyan); font-weight: 600; }
.sticky-btns { display: flex; gap: 8px; }
.sticky-pay .sticky-btns .pay-btn { padding: 8px 14px; white-space: nowrap; }
@media (max-width: 440px) {
  .sticky-text { display: none; }
  .sticky-btns { flex: 1; }
  .sticky-btns .bundle-btn { flex: 1.5; }
  .sticky-btns .outline { flex: 1; }
}
/* /bundle: the stack box next to the hero copy on wide screens; one card per book. */
@media (min-width: 880px) {
  .bundle-hero { display: grid; grid-template-columns: 1.1fr minmax(360px, 1fr); gap: 24px 48px; align-items: start; }
  .bundle-hero .brand { grid-column: 1 / -1; margin-bottom: 0; }
}
.bundle-books { display: grid; gap: 14px; margin: 16px 0; }
@media (min-width: 760px) { .bundle-books { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bundle-book { display: grid; gap: 8px; align-content: start; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.bundle-book > * { margin: 0; }
.bundle-book h3 { font-size: 18px; line-height: 1.4; }
.bundle-book .checks { border-top: 0; padding-top: 0; }
.bundle-book .checks li { font-size: 15px; }
.bundle-book p { color: #cfcfcf; }
.bb-value { color: var(--orange) !important; font-size: 14px; font-weight: 700; }
.bundle-book.soon { border-style: dashed; }
.bundle-book.soon .bb-value { color: var(--cyan) !important; }
/* /multilang: sources under the facts, proof facts, the inside list. */
.ml-src { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.ml-src a { color: var(--cyan); font-weight: 600; }
.pains article .ml-src { margin-top: 8px; }
.ml-facts { display: grid; gap: 6px; max-width: 46em; margin: 16px 0 12px; padding: 0 0 0 20px; color: #d4d4d4; }
.ml-inside { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ml-inside li { padding-left: 14px; border-left: 3px solid var(--cyan); color: #d4d4d4; font-size: 15px; line-height: 1.5; }
.ml-inside b { color: var(--fg); }
/* /doodle: character sheets and thumbnail test from the kit (public/doodle/). */
.dd-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; max-width: 1040px; margin: 16px 0; }
.dd-figs figure { margin: 0; }
.dd-figs img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.dd-figs figcaption { margin: 6px 0 0; }

/* Footer privacy/terms links, the Builder With AI Publisher home section and the /privacy + /terms pages. */
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; }
.legal-links a { color: var(--muted); }
.publisher .steps { max-width: 40em; }
.publisher-yt { display: flex; gap: 10px; align-items: flex-start; max-width: 40em; margin: 0 0 10px; color: #c9c9c9; }
.publisher-yt svg { flex: none; margin-top: 3px; }
.legal { width: min(100% - 32px, 760px); margin-inline: auto; padding: 40px 0 24px; }
.legal-lang { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.legal-lang a, .legal a { color: var(--cyan); }
.legal article { padding: 24px 0 8px; border-top: 1px solid var(--border); }
.legal h1 { margin: 0 0 4px; font-size: clamp(28px, 7vw, 40px); }
.legal h2 { margin: 28px 0 8px; font-size: 19px; line-height: 1.4; }
.legal p, .legal li { color: #cfcfcf; overflow-wrap: anywhere; }
.legal ul { margin: 0 0 10px; padding-left: 1.25em; }
.legal li { margin-bottom: 6px; }
.legal code { font-size: 13px; color: var(--fg); }

/* ---------- Map storytelling landing page (/map); map.js plays the gallery clips muted on tap ---------- */
.map-hero-clip { max-width: 760px; margin: 0; }
.map-hero-clip .fine { margin: 6px 0 0; }
/* 16:9 and 9:16 side by side at the same height: column widths in the ratio (16/9) : (9/16) = 3.16 : 1. */
.map-hero-pair { display: grid; grid-template-columns: 3.16fr 1fr; gap: 8px; align-items: start; }
.map-hero-pair > div { min-width: 0; }
.map-hero-pair .v .play { width: 40px; height: 40px; }
.map-hero-pair .v .play::after { border-width: 8px 0 8px 12px; }
.map-fmt { display: block; margin-top: 4px; color: var(--cyan); font-size: 12px; font-weight: 600; line-height: 1.3; }
.map-points { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.map-points li { padding-left: 14px; border-left: 3px solid var(--cyan); color: #d4d4d4; font-size: 15px; line-height: 1.5; }
.map-points b { color: var(--fg); }
.map-play { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.map-play img { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.map-video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--border); border-radius: var(--radius); background: #000; cursor: pointer; }
.map-play.v, .map-video.v { aspect-ratio: 9 / 16; }
.map-play:hover .play, .map-play:focus-visible .play { transform: scale(1.08); background: var(--orange); }
.map-play:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
/* Voiced clips (sales video, m29 hero cut): a clear "แตะเพื่อฟังเสียง" pill on the poster; map.js plays them with
   sound and native controls. The sales video shows its 9:16 cut on phones and its 16:9 cut from 720px. */
.tap-sound { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 7px; border-radius: 999px; background: rgba(0, 0, 0, 0.78); border: 1px solid rgba(255, 255, 255, 0.35); color: #fff; font-size: 14px; font-weight: 700; line-height: 1.2; pointer-events: none; }
.tap-sound svg { flex: none; }
.map-hero-pair .v .tap-sound { left: 50%; bottom: 6px; padding: 5px; transform: translateX(-50%); }
.map-hero-pair .v .tap-sound span { display: none; }
.map-hero-pair > div.playing { grid-column: 1 / -1; }
.map-hero-pair > div.playing .map-video.v { max-width: 320px; margin-inline: auto; }
.map-video[controls] { cursor: auto; }
.map-sales { max-width: 760px; margin: 0; }
.map-sales .fine { margin: 6px 0 0; }
.map-sales .only-narrow .map-play, .map-sales .only-narrow .map-video { max-width: 320px; margin-inline: auto; }
.map-sales .only-wide { display: none; }
@media (min-width: 720px) {
  .map-sales .only-narrow { display: none; }
  .map-sales .only-wide { display: block; }
}
.block > p.map-honest { padding: 10px 14px; border-left: 3px solid var(--cyan); border-radius: 0 10px 10px 0; background: #10201f; color: #bfe9e6; font-size: 15px; }
.map-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; gap: 18px 12px; margin-top: 16px; }
.map-card { min-width: 0; scroll-margin-top: 16px; }
.map-card .play { width: 48px; height: 48px; }
.map-card .play::after { border-width: 9px 0 9px 14px; }
.map-card.playing { grid-column: 1 / -1; }
.map-meta h3 { margin: 8px 0 0; font-size: 16px; line-height: 1.4; }
.map-meta .num { margin-right: 2px; font-size: 13px; }
.map-meta .en { margin: 0 0 4px; font-size: 12px; }
.map-meta .desc, .map-niche { display: none; }
.map-card.playing .desc, .map-card.playing .map-niche { display: block; }
.map-niche { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.map-niche b { color: var(--cyan); font-weight: 600; }
.map-badge { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: #10201f; border: 1px solid var(--cyan); color: var(--cyan); font-size: 11px; font-weight: 600; vertical-align: 2px; white-space: nowrap; }
.map-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.map-filter button { min-height: 44px; padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--fg); font: inherit; font-size: 15px; cursor: pointer; }
.map-filter button[aria-pressed="true"] { border-color: var(--cyan); background: #10201f; color: var(--cyan); }
.map-filter b { margin-left: 4px; }
.map-card[hidden] { display: none; }
@media (min-width: 720px) {
  .map-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
  .map-card.playing { grid-column: auto; }
  .map-meta .desc, .map-niche { display: block; }
  .map-meta h3 { font-size: 18px; }
  .map-grid.v-mode { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .map-card .play { width: 64px; height: 64px; }
  .map-card .play::after { border-width: 12px 0 12px 19px; }
}
.block > p.map-credit { margin-top: 16px; color: var(--muted); font-size: 13px; }
.looks-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.look-tile { margin: 0; }
.look-tile img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border: 1px solid var(--border); border-radius: 10px; background: #000; }
.look-tile figcaption { margin-top: 4px; font-size: 13px; line-height: 1.35; color: var(--muted); }
.looks-heroes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.look-hero p { margin: 6px 0 0; font-size: 14px; line-height: 1.4; }
.look-hero p span { color: var(--muted); font-size: 12px; }
@media (min-width: 720px) {
  .looks-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
  .looks-heroes { max-width: 760px; gap: 20px; }
}
.map-lp #proof .lf-grid { max-width: 1040px; }
.map-tag { display: inline-block; margin: 8px 0 0; padding: 2px 10px; border-radius: 6px; border: 1px solid #8b5cf6; background: #1d1636; color: #d6c8ff; font-size: 12px; font-weight: 700; line-height: 1.5; }

/* ---------- The ladder (Faizal 24 Oct 2026): the ladder section on the sales pages, the Advanced (/warroom), video course
   and consult pages, and their /paid parts. Hidden products' elements are removed by the worker (data-wr-gate,
   data-vc-gate). /warroom buy box: data-wr-mode full | up | expired | owned. ---------- */
.ladder-list { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.ladder-row { display: grid; gap: 10px; align-items: center; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.ladder-row p { margin: 0; color: #c9c9c9; font-size: 15px; line-height: 1.55; }
.ladder-row .ladder-name { color: var(--fg); font-size: 17px; }
.ladder-row .ladder-name span { margin-left: 6px; color: var(--cyan); font-weight: 600; white-space: nowrap; }
.ladder-row .btn { justify-self: start; min-height: 44px; }
@media (min-width: 760px) { .ladder-row { grid-template-columns: 1fr auto; } .ladder-row .btn { justify-self: end; } }
.wr-card, .vc-card, .cs-card { border: 2px solid var(--cyan); }
.cs-card .btn, .vc-card .btn { width: 100%; justify-content: center; }
.cs-plus { margin: 0; color: var(--cyan); font-weight: 600; }
.wr-card .wr-full, .wr-card .wr-up { display: grid; gap: 12px; }
.wr-card .wr-full > *, .wr-card .wr-up > * { margin: 0; }
.wr-card .wr-up, .wr-card .wr-note { display: none; }
.wr-card[data-wr-mode="up"] .wr-up { display: grid; }
.wr-card[data-wr-mode="up"] .wr-full, .wr-card[data-wr-mode="owned"] .wr-full { display: none; }
.wr-card[data-wr-mode="expired"] .wr-expired, .wr-card[data-wr-mode="owned"] .wr-owned { display: block; }
.wr-up-tag { color: var(--cyan); font-size: 14px; font-weight: 600; }
.wr-note { margin: 0; padding: 10px 14px; border-left: 3px solid var(--cyan); border-radius: 0 10px 10px 0; background: #10201f; color: #bfe9e6; font-size: 15px; }
.wr-note a { color: var(--cyan); font-weight: 600; }
.paidpage:not([data-kind="warroom"]) .only-warroom,
.paidpage:not([data-kind="videocourse"]) .only-videocourse,
.paidpage:not([data-kind="consult"]) .only-consult { display: none; }
.paidpage div.only-advanced, .paidpage div.only-videocourse, .paidpage div.only-consult, .install-videos { display: grid; gap: 14px; justify-items: start; width: 100%; }
.paidpage[data-kind="warroom"] .files-only, .paidpage[data-kind="videocourse"] .files-only, .paidpage[data-kind="consult"] .files-only { display: none; }
.wr-join .steps, .only-consult .steps { margin: 0; }
.wr-join[data-group="on"] .wr-nogroup { display: none; }
.wr-lessons a { color: var(--cyan); font-weight: 600; }
.warroom-up, .vc-up { width: 100%; }
.warroom-up[data-warroom="none"],
.warroom-up:not([data-warroom="offer"]) .wr-offer,
.warroom-up:not([data-warroom="done"]) .wr-done,
.warroom-up:not([data-warroom="owned"]) .wr-owned,
.vc-up:not([data-vc="offer"]) { display: none; }
.up-offer .wr-btn { width: 100%; justify-content: center; text-align: center; white-space: normal; }
.up-offer .fine a, .up-done a { color: var(--cyan); font-weight: 600; }
.notice-page { padding-top: 48px; }

/* Home gallery: the first cards show, the rest open with "ดูทั้งหมด" (app.js). */
.grid.collapsed .card.more { display: none; }
.grid-more { display: flex; justify-content: center; margin: 4px 0 0; }
.grid-more[hidden] { display: none; }
.grid-more .btn { min-height: 48px; padding: 8px 24px; }

/* Bundle owners' Facebook group: one line under each Bundle offer, and the join box on a Bundle owner's /paid page. */
.bundle-perk { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: #d4d4d4; font-size: 15px; line-height: 1.5; }
.bundle-perk svg { flex: none; margin-top: 1px; color: var(--orange); }
.paidpage .bundle-group { display: grid; gap: 12px; justify-items: start; width: 100%; padding: 16px 18px; border: 1px solid #24403f; border-radius: var(--radius); background: #10201f; }
.bundle-group .steps { margin: 0; }

/* ---------- Big video layout (LAYOUT-VIDEO.md; /pov, /3d, /real3d): two-column hero with the clip on the right, and
   a gallery of one big clip per card with a pill toggle (map.js swaps the cut). ---------- */
.vhero-grid { display: grid; gap: 14px; }
.vhero-intro { display: grid; gap: 12px; }
.vhero-intro > p, .vhero-intro h1 { margin: 0; }
.vhero .sell-copy { max-width: 46em; }
.vhero-clip { display: grid; gap: 10px; width: 100%; max-width: 460px; margin: 4px 0 0; }
.vhero-clip .fine { margin: 0; }
@media (max-width: 999px) { .vhero .sell-copy > .map-points { order: 1; } }
@media (min-width: 1000px) {
  .vhero-grid { grid-template-columns: minmax(0, 1fr) 440px; grid-template-rows: auto 1fr; grid-template-areas: "intro clip" "sell clip"; column-gap: 56px; row-gap: 14px; align-items: start; }
  .vhero-intro { grid-area: intro; }
  .vhero .sell-copy { grid-area: sell; }
  .vhero-clip { grid-area: clip; position: sticky; top: 16px; max-width: none; margin: 0; }
  .vhero.wide .vhero-grid { grid-template-columns: minmax(0, 1fr) 600px; }
}
@media (min-width: 1200px) { .vhero-grid { grid-template-columns: minmax(0, 1fr) 460px; } }
.vgrid { display: grid; gap: 28px; margin-top: 18px; }
@media (min-width: 900px) { .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; align-items: start; } }
.vcard { min-width: 0; scroll-margin-top: 16px; }
.vclip { display: grid; gap: 10px; justify-items: center; margin: 0; }
.vclip > * { width: 100%; min-width: 0; }
/* A 9:16 cut fills the card but stays within one screen height (never under 380 px wide when the card allows it). */
.vclip.is-v > * { width: min(100%, max(380px, calc((100vh - 150px) * 9 / 16))); width: min(100%, max(380px, calc((100svh - 150px) * 9 / 16))); }
.vclip [data-pane][hidden] { display: none; }
.vclip-toggle { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.vclip-toggle button { min-height: 44px; padding: 8px 18px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--fg); font: inherit; font-size: 15px; font-weight: 600; line-height: 1.3; cursor: pointer; }
.vclip-toggle button[aria-pressed="true"] { border-color: var(--cyan); background: #10201f; color: var(--cyan); }
.vclip-toggle button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.map-play:not(.sound) .tap-sound { display: none; }
