:root {
  --guide-bg: #07080c;
  --guide-surface: #12141c;
  --guide-panel: rgba(255, 255, 255, 0.06);
  --guide-ink: #ebeef6;
  --guide-muted: #9aa7b9;
  --guide-line: rgba(148, 176, 255, 0.12);
  --guide-accent: #ff4466;
  --guide-accent-2: #5bc0ff;
  --guide-deep: #b8324a;
  --guide-gold: #f0c14d;
  --guide-shadow: 0 24px 56px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.content {
  background:
    radial-gradient(ellipse 80% 55% at 12% -10%, rgba(91, 192, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 92% 0%, rgba(255, 68, 102, 0.11), transparent 50%),
    radial-gradient(ellipse 120% 80% at 50% 120%, rgba(240, 193, 77, 0.06), transparent 45%),
    linear-gradient(180deg, #05060a 0%, #0e1018 40%, #08090e 100%);
}

.guide-page {
  max-width: 1180px;
  margin: 24px auto 40px;
  padding: 0 18px 24px;
  color: var(--guide-ink);
  font-family: 'Bai Jamjuree', sans-serif;
  text-align: left;
}

.guide-hero {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  background:
    radial-gradient(ellipse 120% 80% at 100% -20%, rgba(91, 192, 255, 0.12), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(255, 68, 102, 0.08), transparent 40%),
    linear-gradient(155deg, #13151f 0%, #0f1118 50%, #0c0e14 100%);
  box-shadow: var(--guide-shadow);
}

.guide-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(91, 192, 255, 0.12);
  color: var(--guide-accent-2);
  border: 1px solid rgba(91, 192, 255, 0.22);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guide-title {
  margin: 0;
  max-width: 12ch;
  font-family: 'Chakra Petch', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
}

.guide-copy {
  max-width: 62ch;
  margin: 16px 0 0;
  color: var(--guide-muted);
  font-size: 1.03rem;
  line-height: 1.72;
}

.guide-card {
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #161822 0%, #101219 100%);
  box-shadow: var(--guide-shadow);
}

.guide-card.mode-insider {
  border-color: rgba(255, 68, 102, 0.35);
  background:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(255, 68, 102, 0.12), transparent 55%),
    linear-gradient(180deg, #1a1518 0%, #121016 55%, #0e0d10 100%);
}

.guide-card.mode-werewolf {
  border-color: rgba(91, 192, 255, 0.32);
  background:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(91, 192, 255, 0.11), transparent 55%),
    linear-gradient(180deg, #141820 0%, #0f131a 55%, #0c0f14 100%);
}

.guide-card.mode-blackmarket {
  border-color: rgba(240, 193, 77, 0.32);
  background:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(240, 193, 77, 0.1), transparent 55%),
    linear-gradient(180deg, #181612 0%, #121110 55%, #0e0d0b 100%);
}

.guide-card.mode-coup {
  border-color: rgba(196, 141, 255, 0.35);
  background:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(168, 85, 247, 0.12), transparent 55%),
    linear-gradient(180deg, #18141f 0%, #121018 55%, #0e0c12 100%);
}

.guide-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.guide-card.mode-insider .guide-mode-badge {
  background: rgba(255, 68, 102, 0.14);
  color: #ff8a9d;
  border: 1px solid rgba(255, 68, 102, 0.35);
}

.guide-card.mode-werewolf .guide-mode-badge {
  background: rgba(91, 192, 255, 0.12);
  color: #8fd4ff;
  border: 1px solid rgba(91, 192, 255, 0.35);
}

.guide-card.mode-blackmarket .guide-mode-badge {
  background: rgba(240, 193, 77, 0.12);
  color: #efd07a;
  border: 1px solid rgba(240, 193, 77, 0.32);
}

.guide-card.mode-coup .guide-mode-badge {
  background: rgba(196, 141, 255, 0.14);
  color: #d4b3ff;
  border: 1px solid rgba(196, 141, 255, 0.35);
}

.guide-card.mode-avalon {
  border-color: rgba(110, 163, 245, 0.35);
  background:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(59, 110, 200, 0.16), transparent 55%),
    linear-gradient(180deg, #121826 0%, #0f141f 55%, #0b0f18 100%);
}
.guide-card.mode-avalon .guide-mode-badge {
  background: rgba(110, 163, 245, 0.14);
  color: #a9c8ff;
  border: 1px solid rgba(110, 163, 245, 0.35);
}

.guide-credit { margin: 10px 0 0; font-size: 0.74rem; color: #8f9bb3; }
.guide-credit a { color: #c9b27a; }

.guide-card.mode-undercover {
  border-color: rgba(245, 200, 107, 0.34);
  background: linear-gradient(180deg, #1a2332 0%, #141b27 60%, #10151e 100%);
}

.guide-card.mode-undercover .guide-mode-badge {
  background: rgba(245, 200, 107, 0.14);
  color: #fde68a;
  border: 1px solid rgba(245, 200, 107, 0.38);
}

.guide-card.mode-liar {
  border-color: rgba(248, 113, 113, 0.35);
  background:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(220, 38, 38, 0.14), transparent 55%),
    linear-gradient(180deg, #1c1212 0%, #141010 55%, #0e0c0c 100%);
}

.guide-card.mode-liar .guide-mode-badge {
  background: rgba(220, 38, 38, 0.18);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.4);
}

.guide-card.mode-poker {
  border-color: rgba(74, 222, 128, 0.32);
  background:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(22, 101, 52, 0.18), transparent 55%),
    linear-gradient(180deg, #101814 0%, #0e1410 55%, #0c100e 100%);
}

.guide-card.mode-poker .guide-mode-badge {
  background: rgba(22, 101, 52, 0.2);
  color: #bbf7d0;
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.guide-card.mode-poker4 {
  border-color: rgba(248, 113, 113, 0.32);
  background:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(153, 27, 27, 0.2), transparent 55%),
    linear-gradient(180deg, #181010 0%, #14100e 55%, #100c0c 100%);
}

.guide-card.mode-poker4 .guide-mode-badge {
  background: rgba(153, 27, 27, 0.22);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.4);
}

.guide-card.mode-pokdeng {
  border-color: rgba(245, 200, 107, 0.3);
  background:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(179, 38, 46, 0.22), transparent 55%),
    linear-gradient(180deg, #1a0f10 0%, #150d0e 55%, #110b0c 100%);
}

.guide-card.mode-pokdeng .guide-mode-badge {
  background: rgba(179, 38, 46, 0.25);
  color: #fde68a;
  border: 1px solid rgba(245, 200, 107, 0.4);
}

.guide-card.mode-drawguess {
  border-color: rgba(125, 211, 252, 0.3);
  background:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(56, 189, 248, 0.2), transparent 55%),
    linear-gradient(180deg, #111c2a 0%, #0f1824 55%, #0c141e 100%);
}

.guide-card.mode-drawguess .guide-mode-badge {
  background: rgba(56, 189, 248, 0.2);
  color: #bae6fd;
  border: 1px solid rgba(125, 211, 252, 0.4);
}

.guide-card.mode-codenames {
  border-color: rgba(245, 200, 107, 0.3);
  background:
    radial-gradient(ellipse 80% 70% at 0% -20%, rgba(229, 72, 77, 0.16), transparent 60%),
    radial-gradient(ellipse 80% 70% at 100% -20%, rgba(59, 130, 246, 0.18), transparent 60%),
    linear-gradient(180deg, #1a2332 0%, #141b27 60%, #10151e 100%);
}

.guide-card.mode-codenames .guide-mode-badge {
  background: rgba(245, 200, 107, 0.14);
  color: #fde68a;
  border: 1px solid rgba(245, 200, 107, 0.38);
}

.guide-card.mode-wavelength {
  border-color: rgba(94, 234, 212, 0.28);
  background:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(20, 184, 166, 0.2), transparent 55%),
    linear-gradient(180deg, #0f1b2b 0%, #0d1726 55%, #0b1320 100%);
}

.guide-card.mode-wavelength .guide-mode-badge {
  background: rgba(20, 184, 166, 0.2);
  color: #99f6e4;
  border: 1px solid rgba(94, 234, 212, 0.4);
}

.guide-card.mode-colorcards {
  border-color: rgba(96, 165, 250, 0.32);
  background:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(37, 99, 235, 0.22), transparent 55%),
    linear-gradient(180deg, #1a2332 0%, #151c2a 55%, #111722 100%);
}

.guide-card.mode-colorcards .guide-mode-badge {
  background: rgba(37, 99, 235, 0.22);
  color: #f5c86b;
  border: 1px solid rgba(96, 165, 250, 0.45);
}

.guide-card.mode-setthi {
  border-color: rgba(245, 200, 107, 0.36);
  background:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(245, 200, 107, 0.18), transparent 55%),
    linear-gradient(180deg, #1a2332 0%, #151c2a 55%, #111722 100%);
}
.guide-card.mode-setthi .guide-mode-badge {
  background: rgba(245, 200, 107, 0.16);
  color: #f5c86b;
  border: 1px solid rgba(245, 200, 107, 0.45);
}

.ww-howto-credit {
  margin: 10px 0 0;
  color: #8b97ab;
  font-size: 0.74rem;
}

.ww-howto-credit a { color: #a5b4fc; }

/* ===== สอน Coup แบบเห็นภาพ =====
   กติกาแบบลิสต์อ่านแล้วยังเล่นไม่เป็น เพราะของยากคือ "ลำดับตอบโต้"
   ส่วนนี้เลยเป็นลำดับขั้น + ตัวอย่างเล่นจริง แทนการเพิ่มบูลเล็ต */

.guide-sub {
  margin: 26px 0 12px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.06rem;
  font-weight: 700;
  color: #d4b3ff;
}

.guide-steps {
  display: grid;
  gap: 10px;
  counter-reset: coupstep;
}

.guide-step {
  position: relative;
  padding: 12px 14px 12px 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(196, 141, 255, 0.18);
  line-height: 1.6;
}

.guide-step::before {
  counter-increment: coupstep;
  content: counter(coupstep);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.4);
  border: 1px solid rgba(196, 141, 255, 0.45);
  color: #e9ddff;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.guide-step strong { color: var(--guide-ink); }
.guide-step .guide-step-note { color: var(--guide-muted); font-size: 0.92em; }

/* ท้า กับ ขวาง สับสนกันบ่อยที่สุด วางคู่กันให้เทียบเห็นๆ */
.guide-versus {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.guide-versus-side {
  padding: 14px;
  border-radius: 14px;
  line-height: 1.6;
}

.guide-versus-side h4 {
  margin: 0 0 8px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1rem;
}

.guide-versus-side p { margin: 0 0 6px; font-size: 0.94rem; }
.guide-versus-side p:last-child { margin-bottom: 0; }

.guide-versus-side.is-challenge {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
}
.guide-versus-side.is-challenge h4 { color: #ffa8b4; }

.guide-versus-side.is-block {
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(196, 141, 255, 0.3);
}
.guide-versus-side.is-block h4 { color: #d4b3ff; }

/* ตัวอย่างเล่นจริง — ทำหน้าตาเหมือนบันทึกเกมในกระดาน */
.guide-replay {
  padding: 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(196, 141, 255, 0.2);
  margin-bottom: 12px;
}

.guide-replay-title {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  color: #d4b3ff;
  margin-bottom: 10px;
}

.guide-replay-line {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
  padding: 7px 0;
  line-height: 1.58;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.guide-replay-line:first-of-type { border-top: 0; }
.guide-replay-line .guide-replay-ico { font-size: 1.05em; text-align: center; }
.guide-replay-line b { color: var(--guide-ink); }

.guide-replay-out {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(110, 231, 183, 0.3);
  color: #b8f5da;
  font-weight: 600;
  line-height: 1.55;
}
.guide-replay-out.is-bad {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(248, 113, 113, 0.3);
  color: #ffc7ce;
}

.guide-tips { display: grid; gap: 8px; }
.guide-tip {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(245, 200, 107, 0.09);
  border: 1px solid rgba(245, 200, 107, 0.26);
  color: #f0e2c4;
  line-height: 1.6;
}
.guide-tip strong { color: #f5c86b; }

@media (max-width: 560px) {
  .guide-versus { grid-template-columns: 1fr; }
  .guide-step { padding-left: 42px; }
}

.guide-card h2,
.guide-card h3 {
  margin: 0;
  font-family: 'Chakra Petch', sans-serif;
  color: var(--guide-ink);
  letter-spacing: -0.02em;
}

.guide-card p {
  color: var(--guide-muted);
  line-height: 1.72;
  font-weight: 500;
}

.guide-faq {
  display: grid;
  gap: 12px;
}

.guide-faq-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--guide-muted);
}

.guide-faq-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--guide-ink);
}

@media (max-width: 640px) {
  .guide-page {
    padding: 0 12px 20px;
  }

  .guide-hero,
  .guide-card {
    padding: 18px;
    border-radius: 24px;
  }

  .guide-title {
    max-width: none;
    font-size: 2.4rem;
  }
}

/* ---------- สารบัญ + แถบกระโดดไปเกม ---------- */
:root { --guide-jump-h: 64px; }

/* style.css ตั้ง scroll-behavior: smooth ไว้ทั้งเว็บ — คนที่ปิด motion ให้กระโดดทันที */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
}

.guide-jump-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(148, 176, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--guide-ink);
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.guide-jump-chip:hover,
.guide-jump-chip:focus-visible {
  color: #fff;
  text-decoration: none;
  background: rgba(91, 192, 255, 0.14);
  border-color: rgba(91, 192, 255, 0.45);
}

.guide-jump-chip:focus-visible {
  outline: 2px solid var(--guide-accent-2);
  outline-offset: 2px;
}

.guide-jump-chip .guide-jump-ico {
  font-size: 1.05em;
}

.guide-jump-chip.is-active {
  color: #07080c;
  background: var(--guide-accent-2);
  border-color: var(--guide-accent-2);
}

/* ---------- ส่วนที่พับได้ (รายละเอียดเสริม) ---------- */
.guide-fold {
  margin-top: 26px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}

.guide-fold > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 16px;
  cursor: pointer;
  list-style: none;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--guide-ink);
  border-radius: 18px;
}

.guide-fold > summary::-webkit-details-marker { display: none; }

.guide-fold > summary::after {
  content: '+';
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--guide-muted);
  font-size: 1.1rem;
  line-height: 1;
}

.guide-fold[open] > summary::after { content: '−'; }

.guide-fold > summary:focus-visible {
  outline: 2px solid var(--guide-accent-2);
  outline-offset: 2px;
}

.guide-fold-hint {
  display: block;
  margin-top: 2px;
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--guide-muted);
}

.guide-fold-body {
  padding: 2px 14px 14px;
}

.guide-fold-body > .guide-replay:first-child { margin-top: 0; }

.guide-faq-item.guide-fold {
  margin-top: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
}

.guide-faq-item.guide-fold > summary {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.guide-faq-item .guide-fold-body {
  padding: 0 18px 16px;
  line-height: 1.65;
}

@media (prefers-reduced-motion: reduce) {
  .guide-jump-chip { transition: none; }
}

/* =====================================================================
   เลย์เอาต์ใหม่: แถบสลับเกม (sticky) + อ่านทีละเกมในคอลัมน์กว้างเดียว
   ข้อความกว้างไม่เกิน ~70ch ส่วนแกลเลอรีการ์ดกว้างได้ถึง 1100px
   ===================================================================== */
.guide-page {
  --hp-prose: min(70ch, 720px);
  --hp-wide: 1100px;
  max-width: calc(var(--hp-wide) + 32px);
  margin: 12px auto 40px;
  padding: 0 16px 24px;
}

.guide-title {
  max-width: none;
  margin-top: 14px;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.05;
}

/* ---------- แถบสลับเกม ---------- */
.hp-switch {
  position: sticky;
  top: 0;
  z-index: 50;
  margin: 0 -16px 16px;
  padding: 8px 16px;
  padding-top: max(8px, env(safe-area-inset-top, 0px));
  background: rgba(9, 10, 16, 0.92);
  border-bottom: 1px solid var(--guide-line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.hp-switch-scroll {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent 100%);
}

.hp-switch-scroll::-webkit-scrollbar { display: none; }
.hp-switch .guide-jump-chip { padding: 0 13px; font-size: 0.9rem; }

/* จอกว้าง: ชิปตัดบรรทัดได้ เห็นครบทุกเกมโดยไม่ต้องเลื่อนข้าง */
@media (min-width: 1024px) {
  .hp-switch-scroll {
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hp-switch .guide-jump-chip { min-height: 38px; }
}

/* ---------- หน้ารวม: การ์ดเลือกเกม ---------- */
.guide-hero { padding: clamp(20px, 3vw, 34px); }

.hp-picker { margin-top: 18px; }

.guide-hero .hp-picker-label {
  margin: 22px 0 10px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--guide-gold);
}

.hp-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hp-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  min-height: 64px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 176, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--guide-ink);
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.hp-tile:hover,
.hp-tile:focus-visible {
  color: #fff;
  text-decoration: none;
  background: rgba(91, 192, 255, 0.1);
  border-color: rgba(91, 192, 255, 0.45);
}

.hp-tile-ico { flex: 0 0 auto; font-size: 1.7rem; line-height: 1; }
.hp-tile-copy { display: grid; gap: 1px; min-width: 0; }
.hp-tile-copy b { font-size: 1.02rem; }
.hp-tile-copy small { color: var(--guide-muted); font-size: 0.85rem; line-height: 1.35; }
.hp-tile-copy em { color: #8fd4ff; font-size: 0.78rem; font-style: normal; }

/* ---------- หนึ่งเกม = หนึ่งคอลัมน์อ่าน ---------- */
.hp-game {
  display: grid;
  grid-template-columns:
    [full-start] minmax(0, 1fr)
    [prose-start] minmax(0, var(--hp-prose))
    [prose-end] minmax(0, 1fr) [full-end];
  margin-top: 18px;
  padding: clamp(18px, 3.2vw, 40px) clamp(16px, 3.2vw, 40px);
  scroll-margin-top: 72px;
}

.hp-game > * { grid-column: prose; min-width: 0; }

.hp-game > .hp-wide,
.hp-game > .hp-pager { grid-column: full; }

.guide-page .hp-game h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.2; margin: 10px 0 0; }
.hp-game > p { font-size: 1.04rem; margin: 12px 0 0; }

.hp-game-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
}

.hp-game-top .guide-mode-badge { margin: 0; }

.hp-more {
  color: #8fd4ff;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.hp-more:hover { color: #fff; }

.hp-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.hp-facts li {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #c8d2e3;
  font-size: 0.84rem;
  font-weight: 600;
}

/* หัวข้อย่อยในเกม */
.guide-page .hp-game h3,
.guide-page .hp-game .guide-sub { margin: 30px 0 10px; font-size: 1.2rem; }

/* ขั้นตอนแบบมีเลข */
.hp-steps {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: hp-step;
}

.hp-steps > li {
  position: relative;
  padding: 10px 14px 10px 48px;
  border-radius: 14px;
  background: var(--guide-panel);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #c8d2e3;
  line-height: 1.6;
  counter-increment: hp-step;
}

.hp-steps > li::before {
  content: counter(hp-step);
  position: absolute;
  left: 12px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(240, 193, 77, 0.16);
  color: var(--guide-gold);
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
}

.hp-steps > li strong { color: #f3f6fc; }

/* บูลเล็ตสั้นแบบมีไอคอน */
.hp-points {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.hp-points > li {
  display: grid;
  grid-template-columns: 1.6em minmax(0, 1fr);
  gap: 8px;
  color: #c8d2e3;
  line-height: 1.6;
}

.hp-points > li > i { font-style: normal; text-align: center; }
.hp-points strong { color: #f3f6fc; }

/* ก่อนหน้า / ทุกเกม / ถัดไป */
.hp-pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: stretch;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hp-pager a {
  display: grid;
  align-content: center;
  gap: 2px;
  min-height: 52px;
  padding: 8px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--guide-ink);
  font-weight: 600;
  text-decoration: none;
}

.hp-pager a:hover { border-color: rgba(91, 192, 255, 0.45); color: #fff; }
.hp-pager small { color: var(--guide-muted); font-size: 0.78rem; font-weight: 500; }
.hp-pager-next { text-align: right; }
.hp-pager-all { place-items: center; color: var(--guide-gold) !important; }

@media (max-width: 520px) {
  .hp-pager { grid-template-columns: 1fr 1fr; }
  .hp-pager-all { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- แกลเลอรีการ์ด: แตะเพื่อดูภาพใหญ่ ---------- */
.hp-cards {
  --hp-card-max: 190px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 16px 0 4px;
}

.hp-cards.is-small { --hp-card-max: 150px; }
.hp-cards.is-large { --hp-card-max: 260px; }
.hp-cards > .hp-card { flex: 0 1 var(--hp-card-max); }

/* มือถือ: แถวละ 2 ใบเสมอ ให้ตัวหนังสือในคำอธิบายไม่บีบ */
@media (max-width: 560px) {
  .hp-cards > .hp-card { flex-basis: calc(50% - 7px); }
}

.hp-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: zoom-in;
  text-align: left;
  min-width: 0;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.hp-card:hover { border-color: rgba(255, 255, 255, 0.22); }
.hp-card:focus-visible { outline: 2px solid var(--guide-accent-2); outline-offset: 2px; }

.hp-card-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: var(--hp-art, 5 / 7);
  border-radius: 10px;
  overflow: hidden;
  background: #0d1018;
}

.hp-card-art > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-card-art.is-contain > img { object-fit: contain; }

.hp-card figcaption { display: grid; gap: 3px; }
.hp-card figcaption b { color: #f3f6fc; font-size: 0.98rem; line-height: 1.3; }
.hp-card .hp-does { color: #c8d2e3; font-size: 0.86rem; line-height: 1.45; }
.hp-card .hp-when { color: var(--guide-muted); font-size: 0.8rem; line-height: 1.4; }
.hp-card .hp-when::before { content: '💡 '; }
.hp-card .hp-tag {
  justify-self: start;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: #c8d2e3;
}

.hp-group-label {
  margin: 22px 0 0;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.hp-zoom {
  width: min(92vw, 460px);
  max-height: 92vh;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: #11131b;
  color: var(--guide-ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

.hp-zoom::backdrop { background: rgba(3, 4, 8, 0.78); }
.hp-zoom-box { position: relative; padding: 16px; overflow: auto; max-height: 92vh; font-family: 'Bai Jamjuree', sans-serif; }

.hp-zoom-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

.hp-zoom-art > .hp-card-art { width: min(100%, 360px); margin: 0 auto; border-radius: 14px; }
.hp-zoom-cap figcaption { display: grid; gap: 6px; margin-top: 14px; }
.hp-zoom-cap b { font-size: 1.2rem; color: #fff; }
.hp-zoom-cap .hp-does { color: #d6deea; font-size: 1rem; line-height: 1.55; }
.hp-zoom-cap .hp-when { color: var(--guide-muted); font-size: 0.92rem; line-height: 1.5; }
.hp-zoom-cap .hp-when::before { content: '💡 '; }
.hp-zoom-cap .hp-tag { justify-self: start; padding: 1px 8px; border-radius: 999px; font-size: 0.78rem; background: rgba(255,255,255,0.08); }

/* ---------- เริ่มวงแรก + คำถามบ่อย ---------- */
.hp-faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 18px;
  margin-top: 18px;
  scroll-margin-top: 72px;
}

.hp-faq-col {
  padding: clamp(18px, 3vw, 28px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #161822 0%, #101219 100%);
  scroll-margin-top: 72px;
}

.hp-faq-col h2 { margin: 0 0 12px; font-family: 'Chakra Petch', sans-serif; font-size: 1.3rem; }

/* ---------- โหมดอ่านทีละเกม (มี JS) ---------- */
.hp-tabs .hp-game[hidden] { display: none; }
.hp-tabs.has-game .hp-home { display: none; }

@media (max-width: 640px) {
  .guide-page { padding: 0 12px 20px; }
  .hp-switch { margin: 0 -12px 12px; padding-left: 12px; padding-right: 12px; }
  .hp-game { padding: 18px 14px; border-radius: 22px; }
}

/* ตารางสั้น ๆ (เช่น จำนวนคนต่อภารกิจ) */
.hp-table-wrap { max-width: 100%; overflow-x: auto; }
.hp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  color: #c8d2e3;
}
.hp-table th,
.hp-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  white-space: nowrap;
}
.hp-table th { color: var(--guide-muted); font-size: 0.82rem; font-weight: 600; }
.hp-table td:first-child { color: #f3f6fc; font-weight: 700; }
.hp-note { margin: 6px 0 0; color: var(--guide-muted); font-size: 0.84rem; }
.hp-game > p.guide-credit,
.hp-game > p.ww-howto-credit { font-size: 0.78rem; margin-top: 10px; color: #8f9bb3; }
.hp-game > p.hp-group-label { font-size: 1rem; margin-top: 22px; }

/* Werewolf: ภาพตัวละครการ์ตูนบนพื้นวงกลม แยกสีตามฝ่าย */
.ww-cards .hp-card-art { background: radial-gradient(circle at 50% 45%, #24345a, #0b1020 72%); }
.ww-cards .hp-card.team-werewolf .hp-card-art { box-shadow: inset 0 0 0 2px rgba(239, 68, 68, 0.5); }
.ww-cards .hp-card.team-village .hp-card-art { box-shadow: inset 0 0 0 2px rgba(250, 204, 21, 0.28); }
.ww-cards .hp-card.team-solo .hp-card-art { box-shadow: inset 0 0 0 2px rgba(168, 85, 247, 0.55); }
.hp-points > li, .hp-steps > li { font-size: 1rem; }

/* Spyfall: การ์ดบทบนรูปสถานที่ แบบบนกระดาน */
.sf-card > img { filter: brightness(0.62); }
.sf-card-copy {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: 2px;
  padding: 14px 12px 12px;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(4, 12, 14, 0.88) 45%);
}
.sf-card-copy small { color: #99f6e4; font-size: 0.72rem; font-weight: 600; }
.sf-card-copy b { color: #fff; font-size: 1.15rem; line-height: 1.2; }
.sf-card-copy em { color: #fbbf24; font-style: normal; font-weight: 700; font-size: 0.95rem; }
.sf-card.is-spy .sf-card-copy { background: linear-gradient(180deg, transparent, rgba(30, 6, 8, 0.9) 45%); }
.sf-card.is-spy .sf-card-copy small { color: #fecaca; }
.hp-zoom-art .sf-card-copy b { font-size: 1.6rem; }

/* mobile.css บังคับ .content h2 เป็น 16–18px ด้วย !important ทั้งเว็บ — หน้านี้ต้องการหัวข้อตามขนาดของมันเอง */
.guide-page .hp-game h2 { font-size: clamp(1.45rem, 2.6vw, 2rem) !important; margin: 10px 0 0 !important; }
.guide-page .hp-faq-col h2 { font-size: 1.3rem !important; margin: 0 0 12px !important; }
.guide-page .guide-hero .hp-picker-label { font-size: 0.9rem !important; margin: 22px 0 10px !important; }

/* ไพ่โกหก: ไพ่ SVG ทั้งใบ + ปืนแบบเดียวกับบนกระดาน (liarBoard.ejs gunMeter) */
.lr-art { background: transparent; }
.lr-guns { display: grid; gap: 8px; margin: 12px 0 0; }
.lr-gun-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  padding: 10px 14px;
  border-radius: 14px;
  background: oklch(0.24 0.03 150 / 0.55);
  border: 1px solid oklch(0.85 0.05 85 / 0.18);
}
.lr-gun-row small { color: var(--guide-muted); font-size: 0.86rem; }
.lr-gun { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; line-height: 1.1; font-size: 1.15rem; font-weight: 700; }
.lr-gun-pips { display: inline-flex; gap: 4px; }
.lr-gun-pip { width: 13px; height: 13px; border-radius: 50%; border: 2px solid oklch(0.85 0.05 85 / 0.75); }
.lr-gun-pip.is-used { background: oklch(0.4 0.02 150); border-color: oklch(0.4 0.02 150); }
.lr-gun-odds { color: oklch(0.8 0.03 140); font-size: 0.95rem; }
.lr-gun-odds.is-hot { color: oklch(0.7 0.18 25); }

/* มือไพ่ตัวอย่าง (ไพ่ 5 ใบ / สี่ใบเก / ป๊อกเด้ง) วางซ้อนบนพื้นสักหลาด */
.hp-card-art.hp-hand {
  aspect-ratio: auto;
  min-height: 0;
  padding: 14px 10px 14px 22px;
  background: radial-gradient(ellipse at 50% 30%, #1d6b45, #0d3a26 75%);
  box-shadow: inset 0 0 0 1px rgba(245, 200, 107, 0.22);
}
.hp-card-art.hp-hand > img {
  width: 36%;
  max-width: 78px;
  height: auto;
  margin-left: -12px;
  border-radius: 6px;
  object-fit: contain;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}
.hp-zoom-art > .hp-card-art.hp-hand { padding: 26px 18px 26px 40px; }
.hp-zoom-art > .hp-card-art.hp-hand > img { max-width: 120px; margin-left: -18px; }

/* สายลับคำใบ้: การ์ดคำแบบบนกระดาน (codenamesBoard.ejs .cn-card) */
.cn-art { border-radius: 9px; }
.cn-art.is-front {
  background: linear-gradient(180deg, oklch(0.95 0.025 85), oklch(0.9 0.035 82));
  color: oklch(0.24 0.04 255);
  box-shadow: inset 0 0 0 1px oklch(0.6 0.08 80 / 0.55);
}
.cn-art.key-red { background: linear-gradient(180deg, oklch(0.56 0.18 27), oklch(0.5 0.17 27)); color: oklch(0.98 0.01 27); }
.cn-art.key-assassin { background: linear-gradient(180deg, oklch(0.27 0.015 260), oklch(0.2 0.012 260)); color: oklch(0.8 0.14 25); box-shadow: inset 0 0 0 2px oklch(0.62 0.2 25); }
.cn-art-front { font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 1.4rem; }
.hp-zoom-art .cn-art-front { font-size: 2.4rem; }
.cn-art-mark { position: absolute; top: 6px; right: 8px; font-size: 0.9rem; }
.cn-art.c-red { background: oklch(0.5 0.17 27); }
.cn-art.c-blue { background: oklch(0.48 0.14 258); }
.cn-art.c-neutral { background: oklch(0.83 0.05 80); }
.cn-art.c-assassin { background: oklch(0.2 0.012 260); }
.cn-art > img { object-position: center 32%; }
.cn-art-word {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3px 6px 4px;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  color: #fff;
  background: oklch(0.12 0.02 255 / 0.72);
}
.cn-art.c-neutral .cn-art-word { background: oklch(0.3 0.04 70 / 0.75); }

/* ไพ่ทิ้งสี: หน้าไพ่วาดด้วย CSS แบบเดียวกับ colorcardsBoard.ejs (ขยายด้วย --fs) */
.ccx {
  --cc-navy: oklch(0.255 0.032 258);
  --cc-gold: oklch(0.86 0.12 85);
  --cc-r: oklch(0.62 0.21 27);
  --cc-y: oklch(0.85 0.16 90);
  --cc-g: oklch(0.64 0.17 150);
  --cc-b: oklch(0.6 0.17 255);
  --cc-display: 'Chakra Petch', 'Bai Jamjuree', sans-serif;
  --fs: 1.9;
  background: transparent;
  overflow: visible;
}
.hp-zoom-art .ccx { --fs: 3.4; width: min(100%, 280px) !important; }
.ccx .cc-card { --fill: var(--cc-gold); --ink: #fff; position: relative; display: block; width: 100%; height: 100%; border-radius: 11%/8%; color: var(--ink); text-align: center; }
.ccx .cc-face {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden;
  background-color: var(--fill);
  background-image:
    repeating-linear-gradient(135deg, oklch(1 0 0 / 0.08) 0 5px, transparent 5px 13px),
    linear-gradient(180deg, oklch(1 0 0 / 0.16), oklch(0 0 0 / 0.12));
  box-shadow: inset 0 0 0 1.5px oklch(1 0 0 / 0.32), inset 0 0 0 4px oklch(0 0 0 / 0.1), 0 3px 8px oklch(0 0 0 / 0.38);
}
.ccx .cc-c-r { --fill: var(--cc-r); }
.ccx .cc-c-y { --fill: var(--cc-y); --ink: oklch(0.24 0.04 258); }
.ccx .cc-c-g { --fill: var(--cc-g); }
.ccx .cc-c-b { --fill: var(--cc-b); }
.ccx .cc-c-w { --fill: var(--cc-navy); }
.ccx .cc-c-w .cc-face {
  background-image:
    radial-gradient(circle at 50% 50%, oklch(0.86 0.12 85 / 0.16), transparent 62%),
    repeating-linear-gradient(45deg, oklch(0.86 0.12 85 / 0.07) 0 2px, transparent 2px 9px);
  box-shadow: inset 0 0 0 1.5px oklch(0.86 0.12 85 / 0.6), inset 0 0 0 4px oklch(0 0 0 / 0.2), 0 3px 8px oklch(0 0 0 / 0.4);
}
.ccx .cc-idx { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 1px; font-family: var(--cc-display); font-weight: 700; line-height: 1; font-size: calc(0.78rem * var(--fs) * 0.6); }
.ccx .cc-idx.tl { left: 8%; top: 6%; }
.ccx .cc-idx.br { right: 8%; bottom: 6%; transform: rotate(180deg); }
.ccx .cc-idx svg { width: calc(8px * var(--fs) * 0.6); height: calc(8px * var(--fs) * 0.6); fill: currentColor; opacity: 0.85; }
.ccx .cc-idx .cc-mini-glyph { width: calc(12px * var(--fs) * 0.6); height: calc(12px * var(--fs) * 0.6); }
.ccx .cc-glyph { position: absolute; inset: 0; display: grid; place-items: center; }
.ccx .cc-big { font-family: var(--cc-display); font-weight: 700; font-size: calc(2.1rem * var(--fs)); line-height: 1; text-shadow: 0 2px 0 oklch(0 0 0 / 0.18); }
.ccx .cc-big.is-69 { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 3px; }
.ccx .cc-glyph svg { width: calc(34px * var(--fs)); height: calc(34px * var(--fs)); }
.ccx .cc-glyph .cc-plus { font-family: var(--cc-display); font-weight: 700; font-size: calc(1.75rem * var(--fs)); line-height: 1; }
.ccx .cc-wild-stack { display: grid; place-items: center; gap: 2px; }
.ccx .cc-wild-stack svg { width: calc(26px * var(--fs)); height: calc(26px * var(--fs)); }
.ccx .cc-c-w .cc-plus { color: var(--cc-gold); }
@media (max-width: 560px) { .ccx { --fs: 1.7; } }

/* เศรษฐี: ช่องเมือง การ์ดโอกาส ลูกเต๋า (ย่อจาก setthi.css ที่ผูกกับ html.st-active) */
.st-tile-art { border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); }
.st-tile-art > img { filter: saturate(1.05) brightness(0.8); }
.st-tile-band { position: absolute; left: 0; right: 0; top: 0; height: 18%; background: var(--band); }
.st-tile-name, .st-tile-price {
  position: absolute; left: 0; right: 0; text-align: center; font-family: 'Chakra Petch', sans-serif; font-weight: 700;
  color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.st-tile-name { bottom: 24%; font-size: 1.1rem; }
.st-tile-price { bottom: 8%; font-size: 0.85rem; color: #fde68a; }
.hp-zoom-art .st-tile-name { font-size: 2rem; }
.hp-zoom-art .st-tile-price { font-size: 1.3rem; }
.st-land-art { background: radial-gradient(circle at 50% 40%, #2a3550, #121826 75%); }
.st-land-art > img { padding: 8%; }
.st-lm-stars { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,0.6); color: #fde68a; font-weight: 700; font-size: 0.85rem; }

.st-chance {
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  padding: 8px;
  background: oklch(0.95 0.025 85);
  color: oklch(0.29 0.045 258);
  border: 3px solid oklch(0.74 0.13 75);
  border-radius: 14px;
  text-align: center;
}
.st-chance-kicker { align-self: stretch; border-radius: 8px; padding: 3px; background: oklch(0.74 0.13 75); color: #fff8e6; font-family: 'Chakra Petch', sans-serif; font-weight: 700; letter-spacing: 0.12em; font-size: 0.72rem; }
.st-chance-art { width: 52%; aspect-ratio: 1; margin-top: 6%; }
.st-chance-art svg { width: 100%; height: 100%; }
.st-chance-title { font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 0.92rem; line-height: 1.15; margin-top: auto; padding-bottom: 6%; }
.st-chance.is-attack { border-color: oklch(0.6 0.19 27); }
.st-chance.is-attack .st-chance-kicker { background: oklch(0.6 0.19 27); }
.st-chance.is-bad { border-color: oklch(0.45 0.03 258); }
.st-chance.is-bad .st-chance-kicker { background: oklch(0.45 0.03 258); }
.st-chance.is-keep { border-color: oklch(0.6 0.13 160); }
.st-chance.is-keep .st-chance-kicker { background: oklch(0.6 0.13 160); }
.hp-zoom-art .st-chance-title { font-size: 1.6rem; }
.hp-zoom-art .st-chance-kicker { font-size: 1rem; }

.st-dice-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.st-dice-row .hp-points { flex: 1 1 280px; margin: 0; }
.st-dice2 { display: inline-flex; gap: 12px; }
.st-die2 {
  display: grid;
  grid-template: repeat(3, 1fr) / repeat(3, 1fr);
  width: 56px;
  height: 56px;
  padding: 8px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 25%, #fffdf6, #f1e8d4 70%, #e3d6b8);
  box-shadow: inset 0 0 0 1px oklch(0.6 0.05 75 / 0.6), 0 6px 14px rgba(0, 0, 0, 0.4);
  transform: rotate(-6deg);
}
.st-die2 + .st-die2 { transform: rotate(8deg); }
.st-die2 i { width: 64%; height: 64%; border-radius: 50%; background: oklch(0.29 0.045 258); place-self: center; }
.st-die2.is-one i { background: oklch(0.6 0.19 27); width: 80%; height: 80%; }
.st-skills td:nth-child(2) { white-space: normal; min-width: 180px; }
.hp-game > p.hp-note { font-size: 0.86rem; margin-top: 8px; color: var(--guide-muted); }

/* คลื่นความคิด: หน้าปัด SVG + การ์ดคำตรงข้ามแบบบนกระดาน */
.wl-art { background: radial-gradient(ellipse at 50% 100%, #16263b, #0b1320 75%); padding: 6% 4% 0; align-items: flex-end; }
.wl-art .wl-dial-svg { width: 100%; height: auto; display: block; }
.wl-spec-stack { display: grid; gap: 10px; width: 100%; align-self: center; padding-bottom: 6%; }
.wl-spec { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; }
.wl-spec-l, .wl-spec-r { padding: 6px 10px; border-radius: 12px; font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 0.95rem; }
.wl-spec-l { background: oklch(0.85 0.12 182 / 0.14); color: #5eead4; border: 1px solid oklch(0.85 0.12 182 / 0.35); }
.wl-spec-r { background: oklch(0.75 0.15 32 / 0.14); color: oklch(0.85 0.1 40); border: 1px solid oklch(0.75 0.15 32 / 0.4); text-align: right; }
.wl-spec-a { color: #94a3b8; }
.hp-zoom-art .wl-spec-l, .hp-zoom-art .wl-spec-r { font-size: 1.3rem; }
.hp-zoom-art > .wl-art { width: 100%; }

/* วาดแล้วทาย: กระดาษวาด + ปุ่มเลือกคำ + แชท (ย่อจาก drawguessBoard.ejs) */
.dg-art { background: oklch(0.17 0.03 255); padding: 8px; }
.dg-art.is-paper { background: #fffdf6; box-shadow: 0 0 0 1px oklch(0.48 0.04 255 / 0.5); }
.dg-doodle { width: 82%; height: 82%; }
.dg-hint { position: absolute; left: 8px; top: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(15, 26, 43, 0.85); color: #fde68a; font-family: 'Chakra Petch', sans-serif; font-weight: 700; letter-spacing: 0.12em; font-size: 0.85rem; }
.dg-hint small { letter-spacing: 0; color: #cbd5e1; font-weight: 500; font-size: 0.7rem; }
.dg-palette { position: absolute; right: 6px; bottom: 6px; display: flex; gap: 3px; }
.dg-palette i { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,0.25); }
.dg-pick { display: grid; gap: 8px; width: 100%; text-align: center; }
.dg-pick-kicker { margin: 0; font-family: 'Chakra Petch', sans-serif; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; color: oklch(0.85 0.12 85); }
.dg-choices2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.dg-choice2 {
  display: grid; gap: 1px; justify-items: center; align-content: center; min-height: 64px; padding: 6px 4px; border-radius: 12px;
  border: 2px solid color-mix(in oklch, oklch(0.85 0.12 85) 55%, transparent);
  background: oklch(0.22 0.035 255); color: oklch(0.96 0.01 90);
}
.dg-choice2 b { font-family: 'Chakra Petch', sans-serif; font-size: 0.98rem; line-height: 1.15; overflow-wrap: anywhere; }
.dg-choice2 small { font-size: 0.66rem; color: oklch(0.78 0.12 225); font-weight: 600; }
.dg-choice2 em { font-style: normal; padding: 0 6px; border-radius: 999px; font-size: 0.64rem; font-weight: 700; background: oklch(0.14 0.026 255); }
.dg-choice2 .lv-1 { color: oklch(0.8 0.15 155); }
.dg-choice2 .lv-2 { color: oklch(0.78 0.12 225); }
.dg-choice2 .lv-3 { color: oklch(0.68 0.19 28); }
.dg-chat { display: grid; gap: 6px; width: 100%; align-self: end; }
.dg-msg { justify-self: start; padding: 4px 10px; border-radius: 12px; background: oklch(0.27 0.04 255); color: #e2e8f0; font-size: 0.85rem; }
.dg-msg b { color: oklch(0.78 0.12 225); margin-right: 4px; }
.dg-msg.is-close { background: oklch(0.35 0.08 70 / 0.6); color: oklch(0.88 0.12 80); }
.dg-msg.is-close small { color: #cbd5e1; }
.dg-msg.is-ok { background: oklch(0.4 0.1 155 / 0.45); color: oklch(0.9 0.12 155); }
.hp-zoom-art > .dg-art { width: 100%; }
.hp-zoom-art .dg-choice2 b { font-size: 1.3rem; }
.hp-zoom-art .dg-msg { font-size: 1.05rem; }
/* style.css ตั้ง .content ul li ใหญ่กว่าตัวหนังสือหน้านี้ */
.guide-page .hp-points > li,
.guide-page .hp-steps > li { font-size: 1rem; line-height: 1.6; }
.guide-page .hp-picker-grid > li,
.guide-page .hp-switch-scroll > li,
.guide-page .hp-facts > li { line-height: normal; }
.guide-page .hp-facts > li { font-size: 0.84rem; }
/* mobile.css (≤768px) บังคับ .content ul li เป็น 14px/20px ด้วย !important — ภาษาไทยอ่านยาก */
.guide-page .hp-points > li { font-size: 1rem !important; line-height: 1.6 !important; }
.guide-page .hp-facts > li { font-size: 0.84rem !important; line-height: 1.4 !important; }
.guide-page .hp-picker-grid > li,
.guide-page .hp-switch-scroll > li { font-size: 1rem !important; line-height: normal !important; }

/* Insider: กล่องบทกับคำลับแบบบนกระดาน (style.css .role / #word) */
.ins-art { aspect-ratio: auto; min-height: 180px; flex-direction: column; justify-content: center; gap: 8px; padding: 12px; background: #15181c; text-align: center; color: #fff; }
.ins-role, .ins-word { width: 100%; padding: 8px 10px; border-radius: 10px; background: #23272b; font-size: 0.85rem; }
.ins-role strong { display: block; font-size: 1.25rem; }
.ins-word strong { display: block; font-size: 1.4rem; color: #fde68a; }
.ins-word small { display: block; margin-top: 4px; color: #9aa6c0; font-size: 0.72rem; line-height: 1.35; }
.hp-zoom-art .ins-role, .hp-zoom-art .ins-word { font-size: 1.05rem; }
.hp-zoom-art .ins-role strong { font-size: 1.7rem; }
.hp-zoom-art .ins-word strong { font-size: 2rem; }
.hp-zoom-art > .ins-art { width: 100%; }

/* คำใครไม่เหมือน: การ์ดคำบน card-front.svg แบบเดียวกับกระดาน */
.uc-art { background: transparent; }
.uc-word-copy { position: absolute; left: 12%; right: 12%; top: 30%; bottom: 30%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #2a2116; }
.uc-word-copy small { font-family: 'Chakra Petch', sans-serif; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; color: #8a6d3b; }
.uc-word-copy b { font-family: 'Chakra Petch', sans-serif; font-size: 1.6rem; line-height: 1.1; }
.uc-wordcard.is-mrwhite .uc-word-copy b { font-size: 1.2rem; color: #6b7280; }
.hp-zoom-art .uc-word-copy b { font-size: 2.8rem; }
.hp-zoom-art .uc-word-copy small { font-size: 1rem; }

/* เล่นคนเดียว */
.guide-card.mode-solo { border-color: rgba(129, 140, 248, 0.32); }
.solo-game { scroll-margin-top: 80px; }
.solo-game .guide-sub { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.solo-game .guide-sub .hp-more { font-family: 'Bai Jamjuree', sans-serif; font-size: 0.9rem; }
.hp-game > .solo-game { display: grid; grid-template-columns: inherit; grid-column: full; }
.wd-art { background: oklch(0.2 0.03 262); }
.wd-board2 { display: grid; gap: 6px; }
.wd-row2 { display: grid; grid-template-columns: repeat(4, 44px); gap: 6px; }
.wd-tile2 { display: grid; place-items: center; height: 44px; border-radius: 10px; font-family: 'Bai Jamjuree', sans-serif; font-weight: 600; font-size: 1.25rem; line-height: 1.5; }
.wd-tile2[data-state="correct"] { background: oklch(0.67 0.13 158); color: oklch(0.99 0.01 158); }
.wd-tile2[data-state="present"] { background: oklch(0.84 0.13 84); color: oklch(0.24 0.04 262); }
.wd-tile2[data-state="absent"] { background: oklch(0.34 0.02 262); color: oklch(0.8 0.02 262); }
.hp-zoom-art .wd-row2 { grid-template-columns: repeat(4, 64px); }
.hp-zoom-art .wd-tile2 { height: 64px; font-size: 1.8rem; }
.hp-zoom-art > .wd-art { width: 100%; }
.mm-art { background: #1b2233; padding: 8%; }
.mm-art > img { border-radius: 10px; }
.hp-game > .solo-game > * { grid-column: prose; min-width: 0; }
.hp-game > .solo-game > .hp-wide { grid-column: full; }
.hp-game p a, .hp-game li a, .hp-faq a { color: #8fd4ff; text-decoration: underline; text-underline-offset: 2px; }
.guide-card.mode-solo .guide-mode-badge { background: rgba(129, 140, 248, 0.14); color: #c7d2fe; border: 1px solid rgba(129, 140, 248, 0.38); }
@media (min-width: 1024px) {
  .hp-switch-scroll { gap: 5px; }
  .hp-switch .guide-jump-chip { padding: 0 10px; font-size: 0.86rem; gap: 5px; }
}

/* แถบสลับเกมต้อง sticky ได้: body กับ .container-fluid ตั้ง overflow-x: hidden ทั้งเว็บ
   ซึ่งทำให้กลายเป็นกล่องเลื่อน (overflow-y: auto) ที่ไม่ได้เลื่อนจริง → sticky ไม่ติด
   clip ตัดขอบเหมือนเดิมแต่ไม่สร้างกล่องเลื่อน (เบราว์เซอร์เก่าที่ไม่รู้จัก clip ก็แค่แถบไม่ติดบน) */
body.content,
body.content .container-fluid {
  overflow-x: hidden;
  overflow-x: clip;
  overflow-y: visible;
}

/* สลาฟ: ตัวอย่างใช้ภาพไพ่ชุดเดียวกับเกมอื่น ลำดับอ่านได้แม้จอแคบ */
.guide-card.mode-slave { border-color: rgba(226, 190, 111, 0.32); }
.guide-card.mode-slave .guide-mode-badge { background: rgba(226, 190, 111, 0.12); color: #f5d990; border-color: rgba(226, 190, 111, 0.32); }
.hp-slave-order { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; padding: 0; list-style: none; }
.hp-slave-order li { display: grid; place-items: center; min-width: 30px; min-height: 38px; padding: 4px 7px; border: 1px solid rgba(245, 217, 144, 0.3); border-radius: 5px; background: #f8efd9; color: #173c30; font-size: 1.05rem; font-weight: 700; }
.hp-slave-sets .hp-hand { min-height: 130px; }
.hp-slave-sets .hp-hand > img { width: 30%; }
