/* ════════════════════════════════════════════════════════════════════
   Capmon Master MMO — เว็บ official (7 ต.ค. 2026)
   CI ตาม design.md: Clean Light + Gradient Accent · การ์ดมุมโค้ง + เงา (ไม่มีเส้นขอบ) · ฟอนต์ Prompt 400/600 · ไอคอน Uicons · ห้าม Emoji
   ช่องไฟ: 4 · 8 · 12 · 16 · 20 · 24 · 32 (+ 48 · 64 · 96 ระหว่างหัวข้อใหญ่ของหน้าเว็บ)
   ════════════════════════════════════════════════════════════════════ */
@font-face { font-family:'Prompt'; font-weight:400; font-display:swap; src:url(../fonts/prompt-400-thai.woff2) format('woff2'); unicode-range:U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family:'Prompt'; font-weight:600; font-display:swap; src:url(../fonts/prompt-600-thai.woff2) format('woff2'); unicode-range:U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family:'Prompt'; font-weight:400; font-display:swap; src:url(../fonts/prompt-400-latin.woff2) format('woff2'); unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family:'Prompt'; font-weight:600; font-display:swap; src:url(../fonts/prompt-600-latin.woff2) format('woff2'); unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --primary: linear-gradient(135deg, #4A90E2 0%, #55D364 100%);
  --blue: #4A90E2; --green: #55D364;
  --ink: #1f2a37; --sub: #5a6672; --mute: #98a2b0; --line: #eef1f5;
  --bg: #f6f8fb; --card: #ffffff; --soft: #f4f6f9;
  --sh-1: 0 2px 8px rgba(31,42,55,0.06);
  --sh-2: 0 8px 24px rgba(31,42,55,0.08);
  --sh-3: 0 16px 40px rgba(31,42,55,0.12);
  --r-s: 12px; --r-m: 16px; --r-l: 24px;
  --wrap: 1120px; --gut: 20px; --nav-h: 64px;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; scroll-padding-top:calc(var(--nav-h) + 16px); }
body { margin:0; font-family:Prompt, system-ui, -apple-system, sans-serif; font-weight:400; color:var(--ink); background:var(--bg); line-height:1.6; overflow-x:hidden; word-break:keep-all; overflow-wrap:break-word; }   /* ตัดบรรทัดไทยเฉพาะที่ช่องว่าง (ไม่ตัดกลางคำ เช่น กิ|ลด์) — แนวเดียวกับในเกม */
/* ★ NP 7 ต.ค.: กันทั้งหน้าปัดซ้ายขวาได้บนมือถือ — clip ทั้ง html+body = ตัดของล้นโดยไม่สร้างกล่องเลื่อนใหม่ (การเลื่อนยังเป็นของหน้าต่าง · แถบเมนูขาวตอนเลื่อนยังทำงาน)
   🔴 ห้ามใช้ hidden กับ html+body พร้อมกัน = การเลื่อนย้ายไปอยู่ใน body (scrollY ค้าง 0) · เบราว์เซอร์เก่าที่ไม่รู้จัก clip ใช้ hidden ที่ body ตามเดิม */
@supports (overflow:clip) { html, body { overflow-x:clip; } }
img { max-width:100%; display:block; }
a { color:inherit; text-decoration:none; }
h1, h2, h3, h4 { margin:0; font-weight:600; line-height:1.3; }
p, li, td, th, dd, .faq .a { word-break:normal; }   /* ★ NP 7 ต.ค.: ข้อความยาว (ย่อหน้า/รายการ/ตาราง/คำตอบ) ตัดคำไทยตามพจนานุกรม — เดิมห้ามตัดยกช่วง ⇒ ล้นจอหรือถูกหั่นกลางคำ (เจอ "สมาชิ|กกิลด์" ในตารางนโยบาย) */
p { word-break:normal; overflow-wrap:anywhere; }   /* NP 7 ต.ค. (มือถือ): ย่อหน้าตัดคำไทยตามพจนานุกรมของเบราว์เซอร์ (ตัดตรงรอยต่อคำ ไม่ล้นจอ) — คำที่เบราว์เซอร์ไม่รู้จัก (แคปม่อน/กิลด์ ฯลฯ) CM.th ล็อกไว้ใน .nw · anywhere = ทางสุดท้ายถ้ายังยาวเกินบรรทัด */
p { margin:0; }
.fi { line-height:1; display:inline-flex; align-items:center; justify-content:center; }
.wrap { width:100%; max-width:var(--wrap); margin:0 auto; padding:0 var(--gut); }
.nw { white-space:nowrap; }   /* คำที่ Chrome ตัดกลางคำ (ไม่อยู่ในพจนานุกรมไทย เช่น กิลด์ แคปม่อน) — CM.th ครอบให้อัตโนมัติ */
.grad-text { background:var(--primary); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; } }

/* ── ปุ่ม ── */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; height:48px; padding:0 24px; border:none; border-radius:999px; font:600 15px Prompt, system-ui, sans-serif; cursor:pointer; white-space:nowrap; transition:transform .15s ease, box-shadow .2s ease; }
.btn .fi { font-size:15px; }
.btn:active { transform:scale(.97); }
.btn-primary { background:var(--primary); color:#fff; box-shadow:0 8px 20px rgba(74,144,226,0.30); }
.btn-primary:hover { box-shadow:0 10px 26px rgba(74,144,226,0.40); }
.btn-ghost { background:#fff; color:var(--ink); box-shadow:var(--sh-2); }
.btn-ghost .fi { background:var(--primary); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.btn-sm { height:38px; padding:0 18px; font-size:13px; }

/* ── แถบเมนูบน ── */
.nav { position:fixed; top:0; left:0; right:0; z-index:50; height:calc(var(--nav-h) + env(safe-area-inset-top)); padding-top:env(safe-area-inset-top); transition:background .25s ease, box-shadow .25s ease; }
.nav.solid { background:rgba(255,255,255,0.88); -webkit-backdrop-filter:saturate(1.6) blur(14px); backdrop-filter:saturate(1.6) blur(14px); box-shadow:0 1px 0 rgba(31,42,55,0.06); }
.nav-in { height:var(--nav-h); display:flex; align-items:center; gap:24px; }
.brand { display:flex; align-items:center; gap:10px; flex-shrink:0; }
.brand img { width:36px; height:36px; border-radius:10px; box-shadow:var(--sh-1); }
.brand b { font-weight:600; font-size:16px; letter-spacing:.2px; }
.nav-links { display:flex; gap:4px; margin-left:auto; }
.nav-links a { height:38px; padding:0 14px; border-radius:999px; display:flex; align-items:center; font-size:14px; color:var(--sub); transition:background .15s, color .15s; }
.nav-links a:hover { background:rgba(74,144,226,0.08); color:var(--ink); }
/* ปุ่มเปิด/ปิดเพลง (NP 7 ต.ค.): วงบาง ๆ เส้น 1px โปร่ง · ไอคอนกลางเป๊ะ (flex เต็มปุ่ม) */
.nav-snd { flex-shrink:0; width:34px; height:34px; padding:0; border:1px solid rgba(31,42,55,0.16); border-radius:50%; background:transparent; color:var(--sub); cursor:pointer; transition:background .15s, opacity .15s; }
.nav-snd .fi { display:flex; width:100%; height:100%; align-items:center; justify-content:center; font-size:14px; line-height:1; }
.nav-snd:hover { background:rgba(31,42,55,0.05); }
.nav-snd.off { opacity:.55; }
.nav.over:not(.solid) .nav-snd { border-color:rgba(255,255,255,0.38); color:#fff; }
.nav.over:not(.solid) .nav-snd:hover { background:rgba(255,255,255,0.12); }
.nav-burger { display:none; width:40px; height:40px; border:none; border-radius:50%; background:#fff; box-shadow:var(--sh-1); cursor:pointer; margin-left:auto; }
.nav-burger .fi { font-size:16px; color:var(--ink); }
@media (max-width: 900px) { .nav-links, .nav .btn { display:none; } .nav-burger { display:flex; align-items:center; justify-content:center; } .nav-snd { margin-left:auto; } .nav-snd + .btn + .nav-burger { margin-left:-12px; } }
/* ★ NP 7 ต.ค.: หน้าแรก (data-over) — แถบยังใส = เมนูขาว + เงาจางให้อ่านออกบนภาพ · เลื่อนจนแถบขาว (.solid) = กลับสีเดิม · โลโก้ซ้ายคงสีเข้ม (ฝั่งซ้ายภาพไล่ขาว) */
.nav.over:not(.solid) .nav-links a { color:#fff; text-shadow:0 1px 8px rgba(10,30,20,0.45); }
.nav.over:not(.solid) .nav-links a:hover { background:rgba(255,255,255,0.16); color:#fff; }
.nav.over:not(.solid) .brand b { color:#fff; }   /* ภาพปกกลางคืน = ฝั่งซ้ายมืด ⇒ ชื่อเกมขาวด้วย */
.nav.over:not(.solid) .nav-burger { background:rgba(255,255,255,0.14); box-shadow:none; }
.nav.over:not(.solid) .nav-burger .fi { color:#fff; }

/* ── เมนูมือถือ = bottom sheet (มาตรฐาน design.md 7.2) ── */
.sheet { position:fixed; inset:0; z-index:80; pointer-events:none; }
.sheet-bg { position:absolute; inset:0; background:rgba(10,20,15,0.42); opacity:0; transition:opacity .25s; }
.sheet-panel { position:absolute; left:0; right:0; bottom:0; background:#fff; border-radius:24px 24px 0 0; padding:8px 20px calc(24px + env(safe-area-inset-bottom)); transform:translateY(100%); transition:transform .3s cubic-bezier(.34,.8,.3,1); box-shadow:0 -8px 30px rgba(0,0,0,0.18); }
.sheet.show { pointer-events:auto; }
.sheet.show .sheet-bg { opacity:1; }
.sheet.show .sheet-panel { transform:translateY(0); }
.sheet-handle { width:40px; height:4px; border-radius:2px; background:#dfe4ec; margin:6px auto 16px; }
.sheet-links a { display:flex; align-items:center; gap:12px; height:52px; padding:0 12px; border-radius:var(--r-s); font-size:15px; }
.sheet-links a:active { background:var(--soft); }
.sheet-links .fi { width:32px; height:32px; border-radius:10px; background:var(--soft); font-size:14px; }
.sheet-links .fi::before { background:var(--primary); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.sheet .btn { width:100%; margin-top:12px; }

/* ── ตัวละครขยับ: แถบ 16 เฟรม (ทำจาก sheet ในเกม) · ขนาด --s · ความเร็ว --d ── */
.spr { --s:120px; --d:1.3s; width:var(--s); height:var(--s); flex-shrink:0; background-repeat:no-repeat; background-size:calc(var(--s) * 16) var(--s); background-position:0 0; animation:spr var(--d) steps(16) infinite; }
.spr.flip { transform:scaleX(-1); }
.spr.paused { animation-play-state:paused; }
@keyframes spr { to { background-position:calc(var(--s) * -16) 0; } }

/* ── ภาพเปิดตัว ── */
.hero { position:relative; min-height:min(760px, 100svh); display:flex; align-items:center; overflow:hidden; padding:calc(var(--nav-h) + 48px) 0 140px; }
/* ★ NP 7 ต.ค. รอบ 2 (แบบ ก): ภาพปกกลางคืนแมพ 1 + อากาศบริสุทธิ์ (หิ่งห้อย) ⇒ เงามืดกรมท่าฝั่งซ้าย + ตัวหนังสือขาว */
.hero-bg { position:absolute; inset:0; background:#1a2440 center/cover no-repeat; transform:scale(1.04); }
.hero-bg::after { content:''; position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(13,20,42,0.90) 0%, rgba(13,20,42,0.72) 34%, rgba(13,20,42,0.18) 62%, rgba(13,20,42,0) 80%),
             linear-gradient(180deg, rgba(13,20,42,0.35) 0%, rgba(13,20,42,0) 22%),
             linear-gradient(180deg, rgba(246,248,251,0) 84%, var(--bg) 100%); }
.hero h1 > span:first-child { color:#fff; }
.hero .store { box-shadow:0 0 0 1px rgba(255,255,255,0.26), 0 6px 16px rgba(0,0,0,0.30); }
.hero-in { position:relative; z-index:2; }
.ff-layer { position:absolute; inset:0; width:100%; height:100%; z-index:1; pointer-events:none; }   /* หิ่งห้อยวาดสด (home.js heroFireflies) — อยู่เหนือภาพปก ใต้ข้อความ/คู่ตัวละคร */
.hero-tag { display:inline-flex; align-items:center; gap:8px; height:32px; padding:0 14px; border-radius:999px; background:#fff; box-shadow:var(--sh-1); font-size:13px; font-weight:600; color:var(--sub); }
.hero-tag i { width:8px; height:8px; border-radius:50%; background:var(--green); box-shadow:0 0 0 4px rgba(85,211,100,0.18); }
.hero h1 { margin-top:20px; font-size:clamp(38px, 6.4vw, 68px); line-height:1.08; letter-spacing:-.5px; }
.hero h1 span { display:block; }
/* ★ NP 22 ต.ค.: โลโก้เกม (สี) แทนหัวเรื่องตัวอักษร — ชื่อเกมอยู่ใน alt ของรูป (Google/โปรแกรมอ่านจอยังอ่านเป็นหัวเรื่องหลัก) · เงาจางให้ลอยจากภาพปกโทนเข้ม */
.hero h1.hero-logo { line-height:0; }
.hero-logo img { display:block; width:clamp(260px, 32vw, 420px); height:auto; filter:drop-shadow(0 6px 18px rgba(0,0,0,0.35)); }
.hero .lead { margin-top:20px; max-width:480px; font-size:clamp(15px, 1.6vw, 18px); color:rgba(255,255,255,0.84); line-height:1.75; }
.hero-cta { margin-top:32px; display:flex; flex-wrap:wrap; gap:12px; }
.stores { margin-top:24px; display:flex; flex-wrap:wrap; gap:8px; }
/* ★ NP 7 ต.ค.: ปุ่มร้านแอปแบบพร้อมดาวน์โหลด (ดำ ตัวขาว แบบปุ่มร้านค้าจริง) — ยังไม่เปิด = กดแล้วขึ้นป๊อปอัป "เร็ว ๆ นี้" (CM.SOON) */
.store { display:inline-flex; align-items:center; gap:10px; height:52px; padding:0 18px 0 14px; border-radius:12px; background:#111418; box-shadow:0 6px 16px rgba(17,20,24,0.22); color:#fff; transition:transform .15s ease, box-shadow .2s ease; }
.store:hover { box-shadow:0 8px 22px rgba(17,20,24,0.32); }
.store:active { transform:scale(.97); }
.store .fi { font-size:24px; color:#fff; }
.store .gp-ic { width:24px; height:24px; flex-shrink:0; }
.store small { display:block; font-size:10.5px; color:rgba(255,255,255,0.78); line-height:1.15; }
.store b { display:block; font-weight:600; font-size:17px; color:#fff; line-height:1.15; letter-spacing:.2px; }

/* ── ป๊อปอัปกลางจอ (เร็ว ๆ นี้) — จังหวะ design.md: ไอคอน → หัวข้อ →14→ คำอธิบาย →20→ ปุ่ม · ปุ่มปิดเทา #5a6672 ── */
.pop { position:fixed; inset:0; z-index:90; display:flex; align-items:center; justify-content:center; padding:20px; pointer-events:none; }
.pop-bg { position:absolute; inset:0; background:rgba(10,20,15,0.42); opacity:0; transition:opacity .2s; }
.pop-card { position:relative; width:100%; max-width:360px; background:#fff; border-radius:var(--r-l); box-shadow:var(--sh-3); padding:32px 24px 24px; text-align:center; transform:translateY(12px) scale(.97); opacity:0; transition:transform .22s ease, opacity .2s; }
.pop.show { pointer-events:auto; }
.pop.show .pop-bg { opacity:1; }
.pop.show .pop-card { transform:none; opacity:1; }
.pop-x { position:absolute; top:12px; right:12px; width:32px; height:32px; border:none; border-radius:50%; background:#eef1f5; cursor:pointer; display:flex; align-items:center; justify-content:center; padding:0; }
.pop-x .fi { width:100%; height:100%; font-size:14px; color:#5a6672; }
.pop-ic { width:60px; height:60px; margin:0 auto; border-radius:50%; background:var(--primary); display:flex; align-items:center; justify-content:center; box-shadow:0 10px 22px rgba(74,144,226,0.32); }
.pop-ic .fi { font-size:24px; color:#fff; }
.pop-card h3 { margin-top:16px; font-size:20px; }
.pop-card p { margin-top:14px; font-size:14px; color:var(--sub); line-height:1.75; }
.pop-card .btn { margin-top:20px; width:100%; }
/* ฉากตัวละครเดินด้านล่างภาพเปิดตัว */
.parade { position:absolute; left:0; right:0; bottom:28px; height:150px; z-index:1; pointer-events:none; }
.walker { position:absolute; bottom:0; left:0; display:flex; align-items:flex-end; will-change:transform; animation:walkX var(--t, 26s) linear infinite; animation-delay:var(--delay, 0s); }
.walker .spr { filter:drop-shadow(0 6px 6px rgba(31,42,55,0.18)); }
@keyframes walkX { from { transform:translateX(-160px); } to { transform:translateX(calc(100vw + 40px)); } }
.walker.back { animation-name:walkBack; }
@keyframes walkBack { from { transform:translateX(calc(100vw + 40px)); } to { transform:translateX(-160px); } }
.idler { position:absolute; bottom:0; }
/* ★ NP 7 ต.ค.: คู่ยืนชิดขวาของกรอบเนื้อหา — กรอบ 2 ตัวขนาดเท่ากันตามเกม · รอบ 4: ขบวนเดินแบบ 24 คู่ (home.js duoParade) ขยับด้วย transform/opacity
   หันซ้ายทั้งคู่ (ภาพต้นฉบับหันขวา) · แคปม่อนเลื่อนลงตาม bottomMargin ของชนิดนั้น (--mo: 150/512 → 24.6% ให้เท้าเสมอตัวละคร · ตัวบิน = 0 ลอยอยู่)
   รอบ 4: ใหญ่ขึ้น 330→370 / 210→236 · แคปม่อนชิดเข้ามาซ้อนหลังตัวละคร (ดึงเข้า 52% · ตัวละครอยู่ชั้นบน) */
.duo-wrap { position:relative; height:100%; }
.duo-stage { position:absolute; inset:0; }
.duo { position:absolute; right:var(--gut); bottom:0; display:flex; align-items:flex-end; will-change:transform; }
.duo .spr, .duo-pm { --s:370px; } .duo .spr { filter:drop-shadow(0 10px 10px rgba(31,42,55,0.22)); }
.duo-pm { position:relative; z-index:0; display:block; margin-right:calc(var(--s, 370px) * -0.52); transform-origin:50% 100%; }
.duo-pm.fly { animation:monBob 1.7s ease-in-out infinite; }   /* ตัวบิน: ลอยขึ้นลง 6.2% ของตัว (MON_FLOAT_BOB ในเกม) · ไม่เด้ง */
@keyframes monBob { 0%, 100% { transform:translateY(0); } 50% { transform:translateY(calc(var(--s, 370px) * -0.062)); } }
.duo-mon { display:block; transform:translateY(var(--mo, 24.6%)) scaleX(-1); }
.duo-cls { position:relative; z-index:1; transform:scaleX(-1); }
.duo-stage.paused .spr, .duo-stage.paused .duo-pm { animation-play-state:paused; }
@media (max-width: 900px) { .duo .spr, .duo-pm { --s:236px; } }
.idler .spr { filter:drop-shadow(0 6px 6px rgba(31,42,55,0.18)); }
@media (max-width: 900px) {
  .hero { min-height:auto; padding-bottom:262px; align-items:flex-start; }   /* คู่ตัวละคร 236px + ระยะหายใจจากปุ่มร้านแอป */
  .hero-bg::after { background:linear-gradient(180deg, rgba(13,20,42,0.90) 0%, rgba(13,20,42,0.78) 48%, rgba(13,20,42,0.10) 72%, rgba(13,20,42,0) 88%, var(--bg) 100%); }
  .parade { height:120px; bottom:12px; }
}

/* ★ NP 8 ต.ค.: มือถือ — ย่อหัวเรื่อง/ปุ่มในภาพเปิดตัว ให้ตัวละคร+แคปม่อนขึ้นมาอยู่เหนือแถบเบราว์เซอร์ด้านล่าง
   วัดที่จอ 390×700 (iPhone + แถบ Safari): เดิมตัวละครจบที่ 811 (ล้นจอ ~110) · ประหยัด: ระยะบน −28 · ป้าย/หัวเรื่อง/คำโปรย ~−40 · ปุ่ม 2 อันเรียงแถวเดียว ~−80 · ปุ่มร้านแอป −18 */
@media (max-width: 600px) {
  .hero { padding-top:calc(var(--nav-h) + 20px); }
  .hero-tag { height:28px; padding:0 12px; font-size:12px; }
  .hero h1 { margin-top:14px; font-size:34px; }
  .hero-logo img { width:190px; }   /* สูง ~112 (เดิมหัวเรื่อง 2 บรรทัด ~74) — คุมไม่ให้ตัวละครหลุดจอ (เกณฑ์ 8 ต.ค.) */
  .hero .lead { margin-top:12px; font-size:14px; line-height:1.65; }
  .hero-cta { margin-top:18px; gap:8px; }
  .hero-cta .btn { height:44px; padding:0 18px; font-size:14px; gap:7px; }
  .hero-cta .btn .fi { font-size:14px; }
  .stores { margin-top:10px; }
  .hero .store { height:46px; padding:0 14px 0 12px; gap:8px; }
  .hero .store b { font-size:15px; }
  .hero .store small { font-size:9.5px; }
  .hero .store .fi { font-size:21px; } .hero .store .gp-ic { width:21px; height:21px; }
}
/* ★ NP 8 ต.ค. รอบ 2 "เผื่อแถบ URL ทับด้วย": ภาพเปิดตัวมือถือสูง = จอที่เหลือตอนแถบเบราว์เซอร์กางเต็ม (100svh — Safari/Chrome คิดแถบ URL บน+ล่างให้เอง)
   ตัวละครชิดขอบล่างของพื้นที่นั้นเสมอ · ขนาดตามความสูงจอ: เหลือที่ใต้ปุ่มร้านแอป (~400) เท่าไรใช้เท่านั้น 170-236 (ส่วนบนของกรอบตัวละครว่าง ~25% ซ้อนใต้ปุ่มได้)
   เบราว์เซอร์เก่าที่ไม่รู้จัก svh (iOS < 15.4) = ใช้ vh แทน */
@media (max-width: 600px) {
  .hero { height:100vh; min-height:560px; padding-bottom:0; }
  .duo .spr, .duo-pm { --s:clamp(170px, calc(100vh - 400px), 236px); }
}
@supports (height: 100svh) {   /* ตัวแปร --s เขียนซ้ำไม่ถอยกลับเหมือนช่องปกติ ⇒ แยกเป็นชุดสำหรับเบราว์เซอร์ที่รู้จัก svh */
  @media (max-width: 600px) {
    .hero { height:100svh; }
    .duo .spr, .duo-pm { --s:clamp(170px, calc(100svh - 400px), 236px); }
  }
}
/* ── หัวข้อ ── */
.section { padding:96px 0; position:relative; }
.section.tight { padding:64px 0; }
.eyebrow { display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:600; color:var(--blue); letter-spacing:.4px; text-transform:uppercase; }
.eyebrow .fi { width:28px; height:28px; border-radius:9px; background:var(--primary); color:#fff; font-size:13px; }
.h2 { margin-top:12px; font-size:clamp(28px, 3.6vw, 40px); }
/* ★ NP 7 ต.ค.: แคปซูลเด้งหน้าหัวข้อ "โลกของเกม" — ตัวเดียวกับหน้าโหลดเกม (prototype .login-logo .cap-anim + capBounce/capShadow) สูงเท่าหัวข้อ 2 บรรทัด
   หน่วย em ของขนาดหัวข้อ ⇒ หัวข้อ 2 บรรทัด = 2 × 1.3 = 2.6em · ตัวแคปซูลในภาพกินช่วง y 7-57 จาก 64 (50/64) ⇒ ภาพสูง 2.6 × 64/50 = 3.328em · โคนแคปซูล (y 57) วางตรงเส้นล่างหัวข้อ
   ใส่แอนิเมชันที่ตัวห่อ (span) ไม่ใช่ <svg> — บน svg เบราว์เซอร์ยกไปการ์ดจอไม่ได้ (บทเรียนในเกม 22 ส.ค.) */
.cap-head { display:flex; align-items:flex-end; gap:14px; margin-top:.85em; font-size:clamp(28px, 3.6vw, 40px); }   /* เว้นบน .85em > ระยะเด้งสูงสุด (20% ของภาพ 3.328em ≈ .67em) ⇒ ตอนลอยไม่ชนป้าย "โลกของเกม" */
.cap-head .h2 { margin-top:0; font-size:1em; }
.cap-bob { position:relative; flex-shrink:0; width:1.05em; height:2.6em; }
.cap-bob .cap-anim { position:absolute; left:50%; bottom:-0.364em; width:3.328em; height:3.328em; margin-left:-1.664em; transform-origin:50% 89%; will-change:transform; animation:capBounce 1.15s infinite; }
.cap-bob svg { display:block; width:100%; height:100%; }
.cap-bob::after { content:''; position:absolute; left:50%; bottom:-0.12em; width:0.92em; height:0.19em; border-radius:50%; background:rgba(31,42,55,0.22); filter:blur(2px); will-change:transform, opacity; animation:capShadow 1.15s infinite; }
@keyframes capBounce {
  0%   { transform:translateY(-20%) scale(1,1); animation-timing-function:cubic-bezier(.45,0,1,1); }
  45%  { transform:translateY(0) scale(1,1); animation-timing-function:linear; }
  52%  { transform:translateY(0) scale(1.18,.8); animation-timing-function:linear; }
  59%  { transform:translateY(0) scale(1,1); animation-timing-function:cubic-bezier(0,0,.55,1); }
  100% { transform:translateY(-20%) scale(1,1); }
}
@keyframes capShadow {
  0%   { transform:translateX(-50%) scale(.5); opacity:.3; animation-timing-function:cubic-bezier(.45,0,1,1); }
  45%, 59% { transform:translateX(-50%) scale(1); opacity:.65; animation-timing-function:cubic-bezier(0,0,.55,1); }
  100% { transform:translateX(-50%) scale(.5); opacity:.3; }
}
@media (prefers-reduced-motion: reduce) { .cap-bob .cap-anim, .cap-bob::after { animation:none; } }
.sec-lead { margin-top:14px; max-width:620px; color:var(--sub); font-size:16px; line-height:1.75; }
.sec-head { margin-bottom:40px; }
.sec-head.center { text-align:center; display:flex; flex-direction:column; align-items:center; }
@media (max-width: 700px) { .section { padding:64px 0; } .sec-head { margin-bottom:28px; } }

/* ── การ์ดทั่วไป ── */
.card { background:var(--card); border-radius:var(--r-l); box-shadow:var(--sh-2); }

/* ── โลกของเกม ── */
/* ★ NP 7 ต.ค.: สองฝั่งสูงเท่ากัน — กรอบภาพยืดเต็มความสูงฝั่งข้อความ (เดิมภาพ 16:10 เตี้ยกว่าข้อความมาก) */
.world { display:grid; grid-template-columns:1fr 1.1fr; gap:48px; align-items:stretch; }
.eras { margin-top:28px; display:grid; gap:12px; }
.era { display:flex; gap:16px; padding:16px 20px; background:#fff; border-radius:var(--r-m); box-shadow:var(--sh-1); }
.era-n { width:40px; height:40px; flex-shrink:0; border-radius:12px; background:var(--soft); display:flex; align-items:center; justify-content:center; font-weight:600; font-size:15px; }
.era-n span { background:var(--primary); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.era b { display:block; font-weight:600; font-size:15px; }
.era p { margin-top:4px; font-size:13.5px; color:var(--sub); line-height:1.7; }
.shot { position:relative; border-radius:var(--r-l); overflow:hidden; box-shadow:var(--sh-3); aspect-ratio:16/10; background:#e8eef3 center/cover no-repeat; }
.shot-chip { position:absolute; left:16px; bottom:16px; display:inline-flex; align-items:center; gap:8px; height:34px; padding:0 14px; border-radius:999px; background:rgba(255,255,255,0.92); box-shadow:var(--sh-1); font-size:12.5px; font-weight:600; }
.shot-chip .fi { font-size:12px; color:var(--blue); }
.shot .spr { position:absolute; filter:drop-shadow(0 6px 8px rgba(31,42,55,0.25)); }
/* สไลด์ 18 แมพ (ถ่ายจากเกมจริง ขยับ 5 วิ) · เปลี่ยนภาพ = จางเป็นขาวแล้วค่อยเผยภาพใหม่ */
.world .shot { aspect-ratio:auto; min-height:460px; }
.ws-img { position:absolute; inset:0; background:#e8eef3 center/cover no-repeat; }
.ws-flash { position:absolute; inset:0; background:#fff; opacity:0; transition:opacity .45s ease; pointer-events:none; }
.ws-flash.on { opacity:1; }
.ws-count { position:absolute; right:16px; top:16px; height:28px; padding:0 10px; border-radius:999px; background:rgba(255,255,255,0.92); box-shadow:var(--sh-1); display:flex; align-items:center; font-size:12px; font-weight:600; color:var(--sub); font-variant-numeric:tabular-nums; }
@media (max-width: 900px) { .world { grid-template-columns:minmax(0, 1fr); gap:32px; } .world .shot { align-self:start; width:100%; aspect-ratio:auto; height:0; min-height:0; padding-top:100%; } }
/* ★ NP 8 ต.ค. "มือถือรูปแมพไม่ขึ้น": เดิมใช้ aspect-ratio 1/1 + คอลัมน์ยืดสูง (align-items:stretch) ⇒ Safari iPhone ให้กล่องสูง 0 · iOS ≤14 ไม่รู้จัก aspect-ratio เลย
   ⇒ ใช้ท่าเก่าที่ทุกเบราว์เซอร์รู้จัก: สูง 0 + padding-top 100% (เท่าความกว้าง) = จัตุรัสแน่นอน · ลูกทุกชิ้นวางแบบ absolute อยู่แล้ว ไม่กระทบ */

/* ── อาชีพ ── */
/* ★ NP 7 ต.ค.: อาชีพ = การ์ดแนวตั้ง 1 ใบ/อาชีพ (เรียงตาม CS_ORDER ในเกม) แบบหน้าเลือกอาชีพ: ตัวละคร → ไอคอน+ชื่อ → ชื่ออังกฤษ → กล่องสกิลติดตัว
   สูง 420 = เท่ากรอบเดิม · ไหลด้วย transform (ลื่นระดับเศษพิกเซล · การ์ดจอทำ) · ขอบซ้ายขวาจางด้วย mask */
.cls-car { position:relative; margin-top:24px; }
.cls-vp { overflow:hidden; padding:10px 14px 24px; margin:-10px -14px -24px; touch-action:pan-y; cursor:grab; }   /* เผื่อขอบ 14 ให้เงาการ์ดไม่โดนตัด (< ช่องว่าง 16 ⇒ ใบข้างนอกกรอบไม่โผล่) */
.cls-vp.drag { cursor:grabbing; }
.cls-track { display:flex; gap:16px; will-change:transform; }
.cc { flex:0 0 var(--cw, 272px); width:var(--cw, 272px); min-width:0; height:420px; box-sizing:border-box; padding:16px 16px 18px; background:#fff; border-radius:var(--r-l); box-shadow:var(--sh-2); display:flex; flex-direction:column; align-items:center; text-align:center; user-select:none; -webkit-user-select:none; }
/* ★ NP 8 ต.ค. "เงาโดนตัดขอบล่าง": Safari ตัดเงา (drop-shadow) ของตัวที่ขยับภาพด้วยแถบเฟรม ไว้แค่ขอบกล่องตัวเอง — เท้าชิดขอบล่างกรอบ = เงาใต้เท้าขาดเป็นเส้นตรง
   ⇒ ย้ายเงาไปที่กล่องรอบตัว (.cc-art) + เผื่อที่ใต้เท้า 12px ให้เงาอยู่ในกล่องทั้งก้อน · ตำแหน่งตัวละคร/ข้อความเท่าเดิมเป๊ะ (สูง +18 · ดึงคืน −18) */
.cc-art { width:100%; height:186px; padding-bottom:12px; margin-bottom:-18px; flex-shrink:0; display:flex; align-items:flex-end; justify-content:center; }   /* NP 7 ต.ค.: ไม่มีพื้นหลังหลังตัวละคร */
.cc-art .gsh { --s:164px; }
/* ★ NP 8 ต.ค. (ทาง ข · เงายังโดนตัดเป็นขอบตรงแม้ย้ายกล่องแล้ว): เลิกใช้ drop-shadow กับตัวละคร → เงาวงรีนุ่มที่พื้นใต้เท้า แบบในเกม
   วงรีเป็นกล่องธรรมดา = ไม่มีเบราว์เซอร์ไหนตัด + เบากว่า (drop-shadow ต้องคิดใหม่ทุกเฟรมที่ภาพขยับ)
   .gsh = กล่องห่อ sprite 1 ตัว · ขนาดตั้งที่ .gsh (--s) แล้ว sprite รับต่อ · --gb = ระยะเท้าจากขอบล่างของภาพ (สัดส่วนของ --s · อาชีพยืนที่ ~0.04) */
.gsh { position:relative; display:inline-flex; flex-shrink:0; }
.gsh > .spr { --s:inherit; position:relative; }
.gsh::before { content:''; position:absolute; left:50%; width:calc(var(--s) * 0.5); height:calc(var(--s) * 0.1); margin-left:calc(var(--s) * -0.25); bottom:calc(var(--s) * (var(--gb, 0.035) - 0.05)); border-radius:50%; background:radial-gradient(closest-side, rgba(31,42,55,0.28), rgba(31,42,55,0)); pointer-events:none; }
.gsh.fly::before { opacity:.55; }   /* ตัวบิน: เงาจางกว่า (ลอยห่างพื้น) */
.cc-name { margin-top:14px; display:inline-flex; align-items:center; gap:8px; }
.cc-name .fi { width:30px; height:30px; border-radius:10px; background:var(--primary); color:#fff; font-size:13px; flex-shrink:0; }
.cc-name b { font-weight:600; font-size:19px; line-height:1.2; }
.cc-en { margin-top:2px; font-size:12px; color:var(--mute); letter-spacing:.3px; }
.cc-sec { margin-top:8px; height:24px; padding:0 10px; border-radius:999px; background:#2b2140; color:#e8dcff; font-size:11.5px; font-weight:600; display:inline-flex; align-items:center; gap:5px; }
.cc-sec .fi { font-size:10px; }
.cc-pas { margin-top:14px; width:100%; flex:1; min-height:0; box-sizing:border-box; padding:0 4px; overflow:hidden; }   /* NP 7 ต.ค.: ไม่มีกรอบเทา — ข้อความวางบนการ์ดตรง ๆ */
.cc-lbl { font-size:11px; font-weight:700; color:#3aa856; display:flex; align-items:center; justify-content:center; gap:5px; margin-bottom:6px; }
.cc-lbl .fi { font-size:11px; }
.cc-pas p { margin:0; font-size:13px; line-height:1.6; color:var(--sub); }
/* ปุ่ม < > วงกลมเล็กซ้ายขวา (สีไอคอนเทาเดียวกับปุ่มลูกศรหน้าเลือกอาชีพในเกม) */
.car-btn { position:absolute; top:50%; z-index:2; width:38px; height:38px; margin-top:-19px; border:none; border-radius:50%; background:#fff; box-shadow:var(--sh-2); cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .15s; }
.car-btn:active { transform:scale(.92); }
.car-btn .fi { font-size:15px; line-height:1; color:#5a6672; }
.car-btn.prev { left:-6px; }
.car-btn.next { right:-6px; }
/* ป้ายลำดับใต้การ์ด = สเปคเดียวกับ .cs-pg หน้าเลือกอาชีพในเกม ("1 / 18") */
.car-pg { display:flex; justify-content:center; margin-top:20px; }
.pg-pill { display:inline-flex; align-items:center; gap:4px; font:700 12px/1 Prompt, system-ui, sans-serif; color:#7b8794; background:#eef1f5; border-radius:999px; padding:6px 14px; font-variant-numeric:tabular-nums; }
.pg-pill b { font-weight:800; color:#3aa856; font-size:13px; }
@media (max-width: 900px) { .car-btn.prev { left:-4px; } .car-btn.next { right:-4px; } }

/* ── แคปม่อน ── */
.chips { display:flex; flex-wrap:wrap; gap:8px; }
/* ★ NP 7 ต.ค. (มือถือเนี้ยบ): แถบปุ่มยาว (ประเภทแคปม่อน 19 · ชื่อระบบ 19) = แถวเดียวปัดซ้ายขวาเฉพาะแถบ (ตัวหน้าไม่ขยับ) · ชิดขอบจอให้รู้ว่ายังมีต่อ */
@media (max-width: 760px) {
  .chips, .sys-tabs { flex-wrap:nowrap; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:none; -webkit-overflow-scrolling:touch;
    margin-left:calc(-1 * var(--gut)); margin-right:calc(-1 * var(--gut)); padding:4px var(--gut) 10px; scroll-padding:0 var(--gut); }
  .chips::-webkit-scrollbar, .sys-tabs::-webkit-scrollbar { display:none; }
  .chips > *, .sys-tab { flex-shrink:0; }
}
.chip { display:inline-flex; align-items:center; gap:6px; height:36px; padding:0 14px; border:none; border-radius:999px; background:#fff; box-shadow:var(--sh-1); font:600 13px Prompt, system-ui, sans-serif; color:var(--sub); cursor:pointer; transition:transform .15s; }
.chip .fi { font-size:13px; }
.chip:hover { transform:translateY(-1px); }
.chip.on { color:#fff; box-shadow:var(--sh-2); }
.mon-grid { margin-top:28px; display:grid; grid-template-columns:repeat(6, 1fr); gap:16px; }
@media (max-width: 1100px) { .mon-grid { grid-template-columns:repeat(3, 1fr); } }   /* ★ NP 8 ต.ค.: แท็บเล็ต 4 → 3 คอลัมน์ ⇒ 18 ตัวเต็มแถวพอดี (3x6) */
@media (max-width: 760px) { .mon-grid { grid-template-columns:repeat(3, 1fr); } }
.mon { background:#fff; border-radius:var(--r-l); box-shadow:var(--sh-2); padding:16px 16px 18px; display:flex; flex-direction:column; align-items:center; cursor:pointer; transition:transform .2s, box-shadow .2s; }
.mon:hover { transform:translateY(-3px); box-shadow:var(--sh-3); }
.mon-pad { width:100%; aspect-ratio:1/1; border-radius:var(--r-m); display:flex; align-items:center; justify-content:center; }
.mon { min-width:0; }
.mon-pad { overflow:hidden; }
.mon-pad .spr { --s:150px; margin:-6px; }
@media (max-width: 1100px) { .mon-pad .spr { --s:168px; } }
.mon b { margin-top:12px; font-weight:600; font-size:15px; }
.mon-el { margin-top:6px; display:flex; gap:6px; flex-wrap:wrap; justify-content:center; }
.el-pill { display:inline-flex; align-items:center; gap:4px; height:24px; padding:0 10px; border-radius:999px; font-size:11.5px; font-weight:600; color:#fff; }
.el-pill .fi { font-size:10.5px; }
@media (max-width: 520px) { .mon-grid { grid-template-columns:repeat(2, 1fr); gap:12px; } .mon-pad .spr { --s:132px; } .mon { padding:12px 12px 14px; } }

/* ── ระบบเกม ── */
/* ★ NP 7 ต.ค.: แนะนำระบบเกม — กรอบมือถือขอบจอโค้ง เส้นบางเรียบแต่เห็นชัด ครอบภาพหน้าจอจริง (349×756) · ข้อมูลระบบอยู่ขวา */
.sys { display:grid; grid-template-columns:auto 1fr; gap:56px; align-items:center; }
.sys-phone { width:300px; padding:9px; box-sizing:border-box; border-radius:46px; background:#fff; border:1.5px solid #d3dae2; box-shadow:0 24px 48px rgba(31,42,55,0.16), 0 4px 10px rgba(31,42,55,0.06); position:relative; }
.sys-phone::before { content:''; position:absolute; top:3px; left:50%; width:44px; height:3px; margin-left:-22px; border-radius:3px; background:#c9d1da; }   /* ช่องลำโพงบนขอบ (ไม่ทับจอเกม) */
.sys-screen { position:relative; aspect-ratio:349/756; border-radius:37px; overflow:hidden; background:#e9eef3; box-shadow:inset 0 0 0 1px rgba(31,42,55,0.10); }
.sys-screen, .sys-txt { -webkit-touch-callout:none; -webkit-user-select:none; user-select:none; }   /* กดค้างเพื่อหยุดอ่าน (NP 8 ต.ค.) — ไม่ให้เด้งเมนูบันทึกรูป/เลือกข้อความ */
.sys-screen img { -webkit-user-drag:none; position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transform:translateX(100%); transition:transform .55s cubic-bezier(.4, 0, .2, 1); will-change:transform; }   /* สไลด์ด้วย transform (การ์ดจอทำ) */
.sys-txt.fade { animation:sysIn .5s ease both; }
@keyframes sysIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce) { .sys-screen img { transition:none; } .sys-txt.fade { animation:none; } }
.sys-ic { width:52px; height:52px; border-radius:16px; background:var(--primary); display:flex; align-items:center; justify-content:center; box-shadow:0 8px 18px rgba(74,144,226,0.28); }
.sys-ic .fi { font-size:22px; color:#fff; line-height:1; }
.sys-t { margin-top:18px; font-size:clamp(24px, 2.6vw, 30px); }
.sys-d { margin-top:12px; min-height:calc(1.85em * 4); font-size:15.5px; line-height:1.85; color:var(--sub); }   /* NP 7 ต.ค.: ยืดเต็มถึงขอบกรอบเนื้อหา · จอง 4 บรรทัด (วัดจริงยาวสุด 4 ที่จอ 920-1440) = สลับระบบแล้วปุ่มไม่กระโดด */
.sys-nav { margin-top:20px; display:flex; align-items:center; gap:12px; }
.sys-nav .car-btn { position:static; margin:0; }
.sys-tabs { margin-top:20px; display:flex; flex-wrap:wrap; gap:8px; max-width:560px; }
.sys-tab { height:32px; padding:0 12px; border:none; border-radius:999px; background:#fff; box-shadow:var(--sh-1); font:600 12px Prompt, system-ui, sans-serif; color:var(--sub); cursor:pointer; display:inline-flex; align-items:center; gap:6px; transition:background .15s, color .15s; }
.sys-tab .fi { font-size:11px; line-height:1; color:var(--blue); }
.sys-tab.on { background:var(--primary); color:#fff; }
.sys-tab.on .fi { color:#fff; }
@media (max-width: 900px) {
  .sys { grid-template-columns:1fr; gap:28px; justify-items:center; }
  .sys-phone { width:250px; border-radius:40px; }
  .sys-screen { border-radius:32px; }
  .sys-info { width:100%; }
  .sys-d { min-height:calc(1.85em * 6); }
}

/* ── แถบ Closed Beta ── */
.beta { position:relative; overflow:hidden; border-radius:28px; background:var(--primary); color:#fff; padding:48px; display:grid; grid-template-columns:1.3fr 1fr; gap:24px; align-items:center; box-shadow:0 18px 44px rgba(74,144,226,0.30); }
.beta::before { content:''; position:absolute; width:420px; height:420px; right:-120px; top:-160px; border-radius:50%; background:rgba(255,255,255,0.12); }
.beta::after { content:''; position:absolute; width:260px; height:260px; right:120px; bottom:-170px; border-radius:50%; background:rgba(255,255,255,0.10); }
.beta > * { position:relative; z-index:1; min-width:0; }
.beta .eyebrow { color:rgba(255,255,255,0.92); }
.beta .eyebrow .fi { background:rgba(255,255,255,0.22); }
.beta h2 { margin-top:12px; font-size:clamp(26px, 3.2vw, 36px); }
.beta p { margin-top:12px; color:rgba(255,255,255,0.92); font-size:15px; line-height:1.75; max-width:520px; }
.beta .btn { margin-top:24px; background:#fff; color:var(--ink); box-shadow:0 8px 20px rgba(20,40,60,0.18); }
.beta .btn .fi { color:var(--blue); }
.beta-art { display:flex; justify-content:center; align-items:flex-end; gap:0; min-height:180px; }
.beta-art .gsh { --s:200px; }
.beta-art .gsh + .gsh { margin-left:-56px; }
@media (max-width: 860px) { .beta { grid-template-columns:minmax(0, 1fr); padding:32px 24px; } .beta-art { min-height:140px; } .beta-art .gsh { --s:140px; } .beta-art .gsh + .gsh { margin-left:-40px; } }
/* จอแคบ: ตัวละคร 3 ตัวกว้างกว่าการ์ด = ดันคอลัมน์ให้กว้างเกิน ข้อความล้นขอบขวา ⇒ ย่อตัวละคร */
@media (max-width: 420px) { .beta-art { min-height:110px; } .beta-art .gsh { --s:112px; } .beta-art .gsh[style*="--s"] { --s:120px !important; } .beta-art .gsh + .gsh { margin-left:-30px; } }   /* แคปม่อนตัวกลางตั้งขนาดไว้ในสคริปต์ (160) ⇒ จอเล็กต้องบังคับย่อ ไม่งั้น 3 ตัวกว้างเกินการ์ด (NP 7 ต.ค.) */

/* ── ข่าว ── */
.news-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; }
.news { background:#fff; border-radius:var(--r-l); box-shadow:var(--sh-2); overflow:hidden; display:flex; flex-direction:column; transition:transform .2s, box-shadow .2s; }
.news:hover { transform:translateY(-3px); box-shadow:var(--sh-3); }
.news-img { aspect-ratio:16/9; background:#e9f0f5 center/cover no-repeat; }
.news-tx { padding:18px 20px 20px; display:flex; flex-direction:column; flex:1; }
.news-meta { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--mute); }
.news-cat { height:24px; padding:0 10px; border-radius:999px; background:rgba(74,144,226,0.10); color:var(--blue); font-weight:600; display:inline-flex; align-items:center; }
.news-tx b { margin-top:10px; font-weight:600; font-size:16px; line-height:1.45; }
.news-tx p { margin-top:8px; font-size:13.5px; color:var(--sub); line-height:1.7; }
.news-more { margin-top:auto; padding-top:16px; display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:600; color:var(--blue); }
@media (max-width: 900px) { .news-grid { grid-template-columns:1fr; } }

/* ── แถบชวนเล่นปิดท้าย ── */
.final { position:relative; overflow:hidden; border-radius:28px; min-height:360px; background:#dce9f0 center/cover no-repeat; display:flex; align-items:center; justify-content:center; text-align:center; box-shadow:var(--sh-3); }
.final::before { content:''; position:absolute; inset:0; background:radial-gradient(ellipse at center, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.75) 38%, rgba(255,255,255,0.12) 80%); }
.final-in { position:relative; z-index:1; padding:48px 24px; display:flex; flex-direction:column; align-items:center; }
.final h2 { font-size:clamp(26px, 3.4vw, 38px); }
.final p { margin-top:12px; color:var(--sub); font-size:15px; }
.final .btn { margin-top:24px; }
.final-crew { position:absolute; left:0; right:0; bottom:-6px; display:flex; justify-content:space-between; padding:0 4%; pointer-events:none; }
.final-crew > div { display:flex; align-items:flex-end; }
.final-crew .spr { --s:132px; filter:drop-shadow(0 8px 10px rgba(31,42,55,0.25)); }
.final-crew .spr + .spr { margin-left:-34px; }
@media (max-width: 700px) { .final { min-height:420px; align-items:flex-start; } .final-crew .spr { --s:96px; } .final-crew .spr + .spr { margin-left:-26px; } }

/* ── ท้ายเว็บ ── */
.foot { margin-top:32px; background:#fff; padding:48px 0 calc(32px + env(safe-area-inset-bottom)); box-shadow:0 -1px 0 rgba(31,42,55,0.05); }
.foot-in { display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:32px; }
.foot p.desc { margin-top:12px; font-size:13px; color:var(--sub); line-height:1.75; max-width:300px; }
.foot h4 { font-size:13px; color:var(--mute); font-weight:600; letter-spacing:.4px; }
.foot ul { list-style:none; margin:12px 0 0; padding:0; display:grid; gap:8px; }
.foot ul a { font-size:14px; color:var(--sub); }
.foot ul a:hover { color:var(--ink); }
.social { margin-top:16px; display:flex; gap:8px; }
.social a { width:38px; height:38px; border-radius:50%; background:var(--soft); display:flex; align-items:center; justify-content:center; color:var(--mute); }
.social a .fi { font-size:15px; }
.social a.soon { opacity:.55; pointer-events:none; }
.foot-bot { margin-top:32px; padding-top:20px; border-top:1px solid var(--line); display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; font-size:12px; color:var(--mute); }
@media (max-width: 900px) { .foot-in { grid-template-columns:1fr 1fr; } .foot-in > div:first-child { grid-column:1 / -1; } }
@media (max-width: 520px) { .foot-in { grid-template-columns:1fr; gap:24px; } .foot ul a { white-space:nowrap; } }   /* NP 7 ต.ค. (มือถือ): 2 คอลัมน์บีบจนลิงก์แตก 3 บรรทัด ⇒ เรียงทีละหมวด */

/* ── ค่อย ๆ โผล่ตอนเลื่อนถึง ── */
.reveal { opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in { opacity:1; transform:none; }

/* ════ หน้าย่อย (7 ต.ค.) — หัวหน้าภาพปก · ฟอร์ม · คำถามที่พบบ่อย · เนื้อหากฎหมาย ════ */
.phero { position:relative; overflow:hidden; padding:calc(var(--nav-h) + 56px) 0 56px; }
.phero-bg { position:absolute; inset:0; background:#dfeee4 center/cover no-repeat; }
.phero-bg::after { content:''; position:absolute; inset:0; background:linear-gradient(90deg, rgba(246,248,251,0.97) 0%, rgba(246,248,251,0.88) 45%, rgba(246,248,251,0.45) 75%, rgba(246,248,251,0.2) 100%), linear-gradient(180deg, rgba(246,248,251,0) 55%, var(--bg) 100%); }
.phero .wrap { position:relative; z-index:1; }
.crumb { display:flex; align-items:center; gap:6px; font-size:13px; color:var(--mute); }
.crumb a:hover { color:var(--ink); }
.crumb .fi { font-size:10px; }
.phero h1 { margin-top:16px; font-size:clamp(30px, 4.6vw, 48px); line-height:1.15; }
.phero .lead { margin-top:14px; max-width:560px; color:var(--sub); font-size:16px; line-height:1.75; }
@media (max-width: 900px) { .phero { padding:calc(var(--nav-h) + 32px) 0 40px; } .phero-bg::after { background:linear-gradient(180deg, rgba(246,248,251,0.95) 0%, rgba(246,248,251,0.9) 60%, var(--bg) 100%); } }

/* ── Closed Beta: ขั้นตอน + ฟอร์ม ── */
.bt-grid { display:grid; grid-template-columns:minmax(0, 1.1fr) minmax(0, 0.9fr); gap:40px; align-items:start; }
.bt-steps { display:grid; gap:12px; }
.bt-step { display:flex; gap:16px; padding:18px 20px; background:#fff; border-radius:var(--r-m); box-shadow:var(--sh-1); }
.bt-step .n { width:40px; height:40px; flex-shrink:0; border-radius:12px; background:var(--primary); color:#fff; font-weight:600; font-size:16px; display:flex; align-items:center; justify-content:center; }
.bt-step b { display:block; font-weight:600; font-size:15px; line-height:1.4; }
.bt-step p { margin-top:4px; font-size:13.5px; color:var(--sub); line-height:1.7; }
.bt-notes { margin-top:24px; display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.bt-note { display:flex; gap:12px; align-items:flex-start; padding:16px; border-radius:var(--r-m); background:var(--soft); font-size:13.5px; color:var(--sub); line-height:1.65; }
.bt-note .fi { width:32px; height:32px; flex-shrink:0; border-radius:10px; background:#fff; box-shadow:var(--sh-1); font-size:14px; color:var(--blue); }
.bt-note b { color:var(--ink); font-weight:600; }
.bt-form { position:sticky; top:calc(var(--nav-h) + 56px); padding:28px; }   /* +40 = หมวกที่ล้นขอบบนไม่มุดใต้แถบเมนูตอนเลื่อน */
/* ★ NP 7 ต.ค.: ไทม์ทราเวลเลอร์ตัวเดียวกลางการ์ด ล้นขอบบนขึ้นไป ~36px — กรอบ 180 (ตัวเริ่มที่ 25% ของกรอบ = 45px ว่างด้านบน)
   ⇒ ดึงขึ้น 28 (ระยะในการ์ด) + 36 (ล้นขอบ) + 45 (ที่ว่างในกรอบ) = 109 */
.bt-crew { display:flex; justify-content:center; align-items:flex-end; height:198px; padding-bottom:18px; margin:-109px 0 -14px; pointer-events:none; }   /* เงาย้ายมากล่องนี้ + เผื่อใต้เท้า 18 (เหตุผลเดียวกับการ์ดอาชีพ) · ระยะถึงหัวข้อเท่าเดิม */
.bt-crew .gsh { --s:180px; --gb:0.015; }   /* ไทม์ทราเวลเลอร์เท้าชิดขอบล่างภาพ (0.99) */
.bt-form h2 { font-size:22px; text-align:center; }
.bt-form .sub { margin-top:8px; text-align:center; font-size:13.5px; color:var(--sub); line-height:1.7; }
.fld { margin-top:20px; }
.fld label { display:block; font-size:13px; font-weight:600; color:var(--sub); }
.fld input[type=email] { margin-top:8px; width:100%; height:52px; padding:0 16px; border:1.5px solid var(--line); border-radius:var(--r-s); background:var(--soft); font:400 16px Prompt, system-ui, sans-serif; color:var(--ink); outline:none; transition:border-color .15s, background .15s; }
.fld input[type=email]:focus { border-color:var(--blue); background:#fff; }
.fld.bad input[type=email] { border-color:#e05555; }
/* ★ NP 7 ต.ค.: ช่องเหตุผล — สเปคเดียวกับช่อง Gmail (สูง 52 · ขอบ 1.5 · พื้น soft · โฟกัสขอบฟ้า) */
.fld textarea { margin-top:8px; width:100%; box-sizing:border-box; padding:14px 16px; border:1.5px solid var(--line); border-radius:var(--r-s); background:var(--soft); font:400 16px/1.6 Prompt, system-ui, sans-serif; color:var(--ink); outline:none; transition:border-color .15s, background .15s; }
.fld textarea { min-height:96px; resize:vertical; }
.fld textarea:focus { border-color:var(--blue); background:#fff; }
.fld.bad textarea { border-color:#e05555; }
.fld-sub { font-weight:400; color:var(--mute); margin-left:4px; }
/* ระบบที่สนใจ: ปุ่มติ๊กเลือกได้หลายข้อ (checkbox ซ่อน + ป้ายทรงแคปซูล) · เลือกแล้ว = พื้นไล่สี primary */
.pick { margin-top:10px; display:flex; flex-wrap:wrap; gap:8px; }
.pk { position:relative; cursor:pointer; }
.pk input { position:absolute; opacity:0; width:1px; height:1px; }
.pk span { height:34px; padding:0 12px; border-radius:999px; background:var(--soft); border:1.5px solid var(--line); display:inline-flex; align-items:center; gap:6px; font-size:12.5px; font-weight:600; color:var(--sub); transition:background .15s, color .15s, border-color .15s; white-space:nowrap; }
.pk span .fi { font-size:11px; line-height:1; color:var(--blue); }
.pk input:checked + span { background:var(--primary); border-color:transparent; color:#fff; }
.pk input:checked + span .fi { color:#fff; }
.pk input:focus-visible + span { box-shadow:0 0 0 3px rgba(74,144,226,0.35); }
.fld.bad .pk span { border-color:#f2b8b8; }
.fld-hint { margin-top:6px; text-align:right; font-size:12px; color:var(--mute); font-variant-numeric:tabular-nums; }
.hp { position:absolute !important; left:-9999px !important; width:1px; height:1px; opacity:0; }   /* ช่องดักบอท — คนมองไม่เห็น */
.chk { margin-top:16px; display:flex; gap:12px; align-items:flex-start; cursor:pointer; font-size:13.5px; color:var(--sub); line-height:1.65; }
.chk input { position:absolute; opacity:0; pointer-events:none; }
.chk .box { width:22px; height:22px; flex-shrink:0; margin-top:1px; border-radius:7px; border:1.5px solid #cfd6df; background:#fff; display:flex; align-items:center; justify-content:center; transition:background .15s, border-color .15s; }
.chk .box .fi { font-size:12px; color:#fff; opacity:0; }
.chk input:checked + .box { background:var(--primary); border-color:transparent; }
.chk input:checked + .box .fi { opacity:1; }
.chk input:focus-visible + .box { box-shadow:0 0 0 3px rgba(74,144,226,0.3); }
.chk a { color:var(--blue); font-weight:600; }
.bt-form .btn { margin-top:20px; width:100%; }
.bt-form .btn[disabled] { opacity:.6; pointer-events:none; }
.f-msg { margin-top:12px; min-height:20px; font-size:13px; text-align:center; color:#e05555; line-height:1.5; }
.bt-done { display:none; text-align:center; }
.bt-form.done form, .bt-form.done .bt-head { display:none; }
.bt-form.done .bt-done { display:block; }
.bt-done .ok { width:64px; height:64px; margin:8px auto 0; border-radius:50%; background:var(--primary); color:#fff; display:flex; align-items:center; justify-content:center; box-shadow:0 10px 24px rgba(74,144,226,0.35); }
.bt-done .ok .fi { font-size:26px; }
.bt-done h2 { margin-top:16px; }
.bt-done .mail { margin-top:12px; display:inline-block; padding:6px 14px; border-radius:999px; background:var(--soft); font-weight:600; font-size:14px; word-break:break-all; }
@media (max-width: 900px) { .bt-grid { grid-template-columns:minmax(0, 1fr); gap:32px; } .bt-form { position:static; order:-1; padding:24px 20px; margin-top:36px; } .bt-crew { margin-top:-105px; } .bt-notes { grid-template-columns:1fr; } }

/* ── คำถามที่พบบ่อย ── */
.faq { display:grid; gap:10px; }
.faq details { background:#fff; border-radius:var(--r-m); box-shadow:var(--sh-1); }
.faq summary { list-style:none; cursor:pointer; display:flex; align-items:center; gap:12px; padding:18px 20px; font-weight:600; font-size:15px; line-height:1.5; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary .fi { margin-left:auto; flex-shrink:0; width:28px; height:28px; border-radius:50%; background:var(--soft); font-size:12px; color:var(--sub); transition:transform .2s; }
.faq details[open] summary .fi { transform:rotate(180deg); }
.faq .a { padding:0 20px 18px; font-size:14px; color:var(--sub); line-height:1.8; }
.faq .a a { color:var(--blue); font-weight:600; }

/* ── หน้ากฎหมาย (นโยบายความเป็นส่วนตัว · ข้อตกลง) — 2 ภาษา สลับด้วยปุ่ม ── */
.lang-sw { margin-top:20px; display:inline-flex; gap:4px; padding:4px; border-radius:999px; background:#fff; box-shadow:var(--sh-1); }
.lang-sw button { height:34px; padding:0 16px; border:none; border-radius:999px; background:none; font:600 13px Prompt, system-ui, sans-serif; color:var(--sub); cursor:pointer; }
.lang-sw button.on { background:var(--primary); color:#fff; }
.legal { max-width:860px; margin:0 auto; padding:40px 48px; }
.legal [data-lang] { display:none; }
.legal [data-lang].on { display:block; }
.legal .upd { font-size:13px; color:var(--mute); }
.legal h2 { margin-top:36px; font-size:19px; display:flex; align-items:center; gap:10px; }
.legal h2 .n { width:30px; height:30px; flex-shrink:0; border-radius:10px; background:var(--primary); color:#fff; font-size:13px; display:inline-flex; align-items:center; justify-content:center; }
.legal p, .legal li { font-size:14.5px; color:var(--sub); line-height:1.85; }
.legal p { margin-top:12px; }
.legal ul { margin:12px 0 0; padding-left:22px; display:grid; gap:6px; }
.legal b { color:var(--ink); font-weight:600; }
.legal a { color:var(--blue); font-weight:600; }
.legal .tbl { margin-top:14px; border-radius:var(--r-m); overflow:hidden; box-shadow:0 0 0 1px var(--line); }
.legal table { width:100%; border-collapse:collapse; font-size:13.5px; }
.legal th, .legal td { padding:12px 14px; text-align:left; vertical-align:top; line-height:1.7; color:var(--sub); border-top:1px solid var(--line); }
.legal th { background:var(--soft); color:var(--ink); font-weight:600; border-top:none; }
.legal td:first-child { color:var(--ink); font-weight:600; width:30%; }
.legal .box { margin-top:16px; padding:16px 18px; border-radius:var(--r-m); background:var(--soft); }
@media (max-width: 700px) {
  .legal { padding:24px 20px; }
  .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display:block; width:auto; }
  .legal thead { display:none; }
  .legal tr { border-top:1px solid var(--line); padding:10px 0; }
  .legal tr:first-child { border-top:none; }
  .legal td, .legal td:first-child { border-top:none; padding:2px 14px; width:auto; }   /* td:first-child กว้าง 30% (จอกว้าง) ต้องปลดด้วย ไม่งั้นหัวแถวแคบจนคำอังกฤษหักทีละตัว */
}

/* ── เกี่ยวกับผู้พัฒนา (NP 8 ต.ค.): บทความแบบ Quote + กล่อง "ฝากถึงผู้พัฒนา" ── */
.dev-quote { position:relative; margin:0; padding:40px 48px 32px; border-radius:var(--r-l); background:#fff; box-shadow:var(--sh-2); overflow:hidden; }
.dev-quote::before { content:''; position:absolute; left:0; top:0; bottom:0; width:6px; background:var(--primary); }   /* แถบสีซ้าย = ป้ายบอกว่าเป็นคำพูด */
.dev-qm { position:absolute; right:32px; top:24px; font-size:72px; opacity:.10; color:var(--blue); }
.dev-quote blockquote { margin:0; position:relative; }
.dev-quote p { font-size:17px; line-height:1.95; color:var(--ink); }
.dev-quote p + p { margin-top:16px; }
.dev-quote p:first-child::first-letter { font-size:1.5em; font-weight:600; color:var(--blue); }
.dev-quote p.dev-note { margin-top:20px; padding:14px 16px; border-radius:var(--r-s); background:var(--soft); font-size:14.5px; line-height:1.85; color:var(--sub); }   /* ย่อหน้าท้าย Disclaimer (NP 8 ต.ค.) */
.dev-note b { color:var(--ink); }
.dev-made { margin-top:20px; display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.dev-made > span { font-size:13px; font-weight:600; color:var(--mute); }
.dev-ai { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
/* โลโก้ AI (NP 8 ต.ค.): สัญลักษณ์จัตุรัส 1:1 สีเทาโทนเดียว (Simple Icons) + ชื่อ — ไอคอนกึ่งกลางบรรทัดชื่อ */
.dev-ai .ai { display:inline-flex; align-items:center; gap:8px; height:36px; padding:0 14px 0 10px; border-radius:999px; background:var(--soft); font-size:13px; font-weight:600; color:var(--sub); }
.dev-ai .ai img { width:20px; height:20px; display:block; flex-shrink:0; }
.dev-quote figcaption { margin-top:24px; padding-top:20px; border-top:1px solid var(--line); display:flex; align-items:center; gap:12px; }
.dev-quote figcaption img { width:48px; height:48px; border-radius:50%; background:var(--soft); box-shadow:var(--sh-1); }
.dev-quote figcaption span { display:flex; flex-direction:column; line-height:1.4; }
.dev-quote figcaption b { font-size:15px; display:inline-flex; align-items:center; gap:6px; }
/* ป้ายยืนยันผู้พัฒนา (NP 8 ต.ค.): วงกลมฟ้า ติ๊กถูกขาว กลางเป๊ะ (flex เต็มวง) */
.vfy { width:17px; height:17px; border-radius:50%; background:#1d9bf0; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; font-style:normal; }
.vfy .fi { display:flex; width:100%; height:100%; align-items:center; justify-content:center; font-size:9px; line-height:1; color:#fff; }
.dev-quote figcaption small { font-size:13px; color:var(--sub); }
@media (max-width: 700px) { .dev-quote { padding:32px 20px 24px 26px; } .dev-quote p { font-size:15.5px; line-height:1.9; } .dev-qm { font-size:56px; right:16px; top:16px; } }

.wall { margin-top:32px; display:grid; grid-template-columns:minmax(0, 380px) minmax(0, 1fr); gap:24px; align-items:start; }
.wall-form { position:sticky; top:calc(var(--nav-h) + 16px); padding:28px 24px 24px; }
.wall-form h3 { display:flex; align-items:center; gap:10px; font-size:20px; }
.wall-form h3 .fi { width:36px; height:36px; border-radius:11px; background:var(--primary); color:#fff; font-size:16px; }
.wall-form .sub { margin-top:8px; font-size:13.5px; color:var(--sub); line-height:1.7; }
.wall-form .fld:first-of-type { margin-top:16px; }
.fld input[type=text] { margin-top:8px; width:100%; height:52px; padding:0 16px; border:1.5px solid var(--line); border-radius:var(--r-s); background:var(--soft); font:400 16px Prompt, system-ui, sans-serif; color:var(--ink); outline:none; transition:border-color .15s, background .15s; }
.fld input[type=text]:focus { border-color:var(--blue); background:#fff; }
.ava-pick { margin-top:10px; display:grid; grid-template-columns:repeat(8, minmax(0, 1fr)); gap:6px; }
.ava { padding:0; border:2px solid transparent; border-radius:50%; background:var(--soft); cursor:pointer; aspect-ratio:1; overflow:hidden; display:flex; align-items:center; justify-content:center; transition:border-color .15s, transform .15s; }
.ava img { width:100%; height:100%; object-fit:cover; display:block; }
.ava:hover { transform:translateY(-2px); }
.ava.on { border-color:var(--blue); box-shadow:0 0 0 3px rgba(74,144,226,0.22); }
.ava:focus-visible { box-shadow:0 0 0 3px rgba(74,144,226,0.4); outline:none; }
.wall-form .btn { margin-top:20px; width:100%; }
.wall-form .btn[disabled] { opacity:.6; pointer-events:none; }
.f-msg.ok { color:#2f9e5a; }
.wall-note { margin-top:4px; font-size:12px; color:var(--mute); text-align:center; line-height:1.6; }

.wall-bar { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.wall-bar h3 { font-size:18px; display:flex; align-items:center; gap:8px; }
.wall-total { min-width:0; padding:0 10px; height:24px; border-radius:999px; background:var(--soft); font-size:12px; font-weight:600; color:var(--sub); display:inline-flex; align-items:center; }
.wall-total:empty { display:none; }
.seg { display:inline-flex; padding:4px; gap:4px; border-radius:999px; background:#fff; box-shadow:var(--sh-1); }
.seg button { height:32px; padding:0 14px; border:none; border-radius:999px; background:transparent; font:600 12.5px Prompt, system-ui, sans-serif; color:var(--sub); cursor:pointer; display:inline-flex; align-items:center; gap:6px; transition:background .15s, color .15s; }
.seg button .fi { font-size:11px; line-height:1; }
.seg button.on { background:var(--primary); color:#fff; }
.wall-list { margin-top:16px; display:flex; flex-direction:column; gap:12px; transition:opacity .15s; }
.wall-list.loading { opacity:.5; }
.wcard { background:#fff; border-radius:var(--r-m); box-shadow:var(--sh-1); padding:16px 18px; }
.wcard.mine { box-shadow:0 0 0 2px rgba(74,144,226,0.45), var(--sh-1); }
.wc-top { display:flex; align-items:center; gap:12px; }
.wc-ava { width:44px; height:44px; border-radius:50%; background:var(--soft); flex-shrink:0; }
.wc-who { min-width:0; flex:1; display:flex; flex-direction:column; line-height:1.4; }
.wc-who b { font-size:14.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.wc-who .anon { color:var(--sub); }
.wc-who small { font-size:12px; color:var(--mute); }
.wc-heart { flex-shrink:0; height:34px; padding:0 12px; border:1.5px solid var(--line); border-radius:999px; background:#fff; cursor:pointer; display:inline-flex; align-items:center; gap:6px; font:600 13px Prompt, system-ui, sans-serif; color:var(--sub); font-variant-numeric:tabular-nums; transition:border-color .15s, color .15s, background .15s; }
.wc-heart .fi { font-size:13px; line-height:1; color:#c8ced6; transition:color .15s; }
.wc-heart:hover { border-color:#ffc2d1; }
.wc-heart.on { border-color:#ffd0dc; background:#fff3f6; color:#ff5c8a; cursor:default; }
.wc-heart.on .fi { color:#ff5c8a; }
.wc-heart.pop .fi { animation:heartPop .4s ease; }
@keyframes heartPop { 0% { transform:scale(1); } 40% { transform:scale(1.45); } 100% { transform:scale(1); } }
.wcard { position:relative; }
.wcard.dev { box-shadow:0 0 0 1.5px rgba(29,155,240,0.35), var(--sh-1); }   /* โพสต์ของผู้พัฒนา (v3) */
.wcard.pinned { padding-top:38px; }
.wc-pin { position:absolute; left:18px; top:12px; display:inline-flex; align-items:center; gap:5px; font-size:11.5px; font-weight:600; color:#1d9bf0; }
.wc-pin .fi { font-size:11px; line-height:1; }
.wc-who b { display:inline-flex; align-items:center; gap:5px; }
.wc-who .vfy { width:15px; height:15px; } .wc-who .vfy .fi { font-size:8px; }
.wc-act { margin-top:8px; display:flex; align-items:center; gap:12px; font-size:12.5px; color:var(--mute); }
.wc-rbtn { padding:0; border:none; background:none; font:600 12.5px Prompt, system-ui, sans-serif; color:var(--sub); cursor:pointer; display:inline-flex; align-items:center; gap:5px; }
.wc-rbtn .fi { font-size:12px; line-height:1; }
.wc-rbtn:hover { color:var(--blue); }
/* คำตอบ (v4 · ทุกคนตอบได้): พื้นเทาอ่อน · ของผู้พัฒนาพื้นฟ้าอ่อน · @ชื่อ = ตัวฟ้าหนา */
.wc-reps { margin-top:10px; display:flex; flex-direction:column; gap:8px; }
.wc-reply { padding:10px 12px; border-radius:var(--r-s); background:var(--soft); display:flex; gap:10px; align-items:flex-start; }
.wc-reply.dev { background:#f2f8fe; }
.wc-reply.mine { box-shadow:0 0 0 2px rgba(74,144,226,0.45); }
.wc-reply img { width:28px; height:28px; border-radius:50%; flex-shrink:0; background:#fff; }
.wc-reply > div { min-width:0; flex:1; }
.wc-rhead { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.wc-rhead b { font-size:13px; display:inline-flex; align-items:center; gap:5px; }
.wc-rhead .anon { color:var(--sub); }
.wc-rhead .vfy { width:14px; height:14px; } .wc-rhead .vfy .fi { font-size:7.5px; }
.wc-rhead small { font-size:11.5px; color:var(--mute); }
.at { font-weight:600; color:var(--blue); }
.at.dev { color:#1d9bf0; }
.wc-ract { margin-top:6px; display:flex; align-items:center; gap:12px; }
.wc-heart.sm { height:26px; padding:0 9px; font-size:12px; gap:4px; border-width:1px; }
.wc-heart.sm .fi { font-size:11px; }
.wc-reply p { margin-top:2px; font-size:14px; line-height:1.75; color:var(--ink); white-space:pre-line; overflow-wrap:anywhere; }
.wc-more { align-self:flex-start; padding:4px 2px; border:none; background:none; font:600 12.5px Prompt, system-ui, sans-serif; color:var(--blue); cursor:pointer; }
.wc-rbox { margin-top:10px; padding:12px; border-radius:var(--r-s); background:#fff; border:1.5px solid var(--line); }
.wc-rto { display:flex; align-items:center; gap:6px; flex-wrap:wrap; font-size:12.5px; color:var(--sub); }
.wc-rto img { width:20px; height:20px; border-radius:50%; background:var(--soft); }
.wc-rbox textarea { margin-top:8px; width:100%; box-sizing:border-box; min-height:64px; padding:10px 12px; border:1.5px solid var(--line); border-radius:var(--r-s); background:var(--soft); font:400 15px/1.6 Prompt, system-ui, sans-serif; color:var(--ink); outline:none; resize:vertical; }
.wc-rbox textarea:focus { border-color:var(--blue); background:#fff; }
.wc-rfoot { margin-top:8px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.wc-rmsg { flex:1; min-width:0; font-size:12.5px; color:#e05555; }
.wc-rcnt { font-size:12px; color:var(--mute); font-variant-numeric:tabular-nums; }
.wc-rcancel { padding:0 6px; border:none; background:none; font:600 12.5px Prompt, system-ui, sans-serif; color:var(--sub); cursor:pointer; }
.wc-rbox .btn-sm[disabled] { opacity:.6; pointer-events:none; }
.wc-body { margin-top:10px; font-size:14.5px; line-height:1.8; color:var(--ink); white-space:pre-line; overflow-wrap:anywhere; }
.wall-empty { padding:40px 20px; text-align:center; color:var(--sub); font-size:14px; background:#fff; border-radius:var(--r-m); box-shadow:var(--sh-1); display:flex; flex-direction:column; align-items:center; gap:10px; }
.wall-empty .fi { font-size:28px; color:var(--blue); opacity:.5; }
.pager { margin-top:20px; display:flex; justify-content:center; align-items:center; gap:6px; flex-wrap:wrap; }
.pager button { min-width:36px; height:36px; padding:0 10px; border:none; border-radius:999px; background:#fff; box-shadow:var(--sh-1); font:600 13px Prompt, system-ui, sans-serif; color:var(--sub); cursor:pointer; display:inline-flex; align-items:center; justify-content:center; }
.pager button .fi { font-size:14px; line-height:1; }
.pager button.on { background:var(--primary); color:#fff; }
.pager button[disabled] { opacity:.4; cursor:default; }
.pager .gap { color:var(--mute); padding:0 2px; }
@media (max-width: 900px) { .wall { grid-template-columns:minmax(0, 1fr); } .wall-form { position:static; } }
@media (max-width: 420px) { .ava-pick { grid-template-columns:repeat(6, minmax(0, 1fr)); } .wcard { padding:14px; } }

/* ── ปุ่มไป Wiki ในหน้าแรก (NP 11 ต.ค.) — พาไปหน้าของสิ่งที่โชว์อยู่ · home.js ใส่ที่อยู่ตามแมพ/อาชีพ/แคปม่อน/ระบบ ── */
.nav-links a { white-space:nowrap; }
.wk-more { margin-top:20px; }
.sys-txt .wk-more { margin-top:16px; }
.wk-pill { margin-top:auto; padding:0 12px; height:30px; flex-shrink:0; border-radius:999px; background:var(--soft); color:var(--blue); font-size:12.5px; font-weight:600; display:inline-flex; align-items:center; gap:6px; line-height:1; transition:background .15s; }
.wk-pill .fi { font-size:12px; line-height:1; display:inline-flex; }
.wk-pill:hover { background:rgba(74,144,226,0.12); }
.cc { height:456px; }
.cc .wk-pill { margin-top:12px; }
.mon .wk-pill { margin-top:auto; }
.mon-el { margin-bottom:12px; }
a.shot-chip { color:var(--ink); transition:background .15s; }
a.shot-chip:hover { background:#fff; }
.shot-chip .ws-go { margin-left:-2px; color:var(--mute); }
.shot-chip.off .ws-go { display:none; }
@media (min-width: 901px) and (max-width: 1080px) { .nav-in { gap:16px; } .nav-links a { padding:0 10px; } }   /* เมนู 6 อัน: จอ 901-1080 ปุ่ม "เล่นเลย" เคยล้นขอบขวา ~30px */
/* ★ NP 11 ต.ค.: ท้ายเว็บเหลือลิงก์ Facebook 2 อัน (กลุ่ม · เพจ) แบบไอคอน+ข้อความ */
.social { flex-wrap:wrap; gap:8px 12px; }
.social a { width:auto; height:38px; padding:0 16px 0 12px; border-radius:999px; gap:8px; color:var(--ink); font-size:13px; font-weight:600; line-height:1; white-space:nowrap; transition:background .15s; }
.social a .fi { color:#1877F2; display:inline-flex; line-height:1; }
.social a:hover { background:rgba(24,119,242,0.10); }
.social { gap:8px; }
.social a { padding:0 14px 0 10px; gap:6px; font-size:12.5px; }
@media (min-width: 901px) { .foot-in { grid-template-columns:1.7fr 1fr 1fr 1fr; } }   /* คอลัมน์แรกกว้างพอให้ลิงก์ FB 2 อันอยู่แถวเดียว (จอ ≥1100) */

/* ★ NP 17 ต.ค.: โหมดในเกม (Wiki เปิดในกรอบของเกม / ?app=1 · ป้าย html.app ตั้งโดย site.js) — "ให้มันเหลือแค่เนื้อหา"
   ไม่มีแถบบน · ท้ายเว็บ · ปุ่มเสียง · ปุ่มเล่นเลย (เล่นเกมซ้อนในเกม) · ลิงก์ "หน้าแรก" ใน breadcrumb (หน้าต่าง Wiki ของเกมมีหัว+ปุ่มปิดเองแล้ว) */
html.app { --nav-h:0px; }
html.app #nav, html.app #foot, html.app #menu-sheet, html.app .nav-snd { display:none !important; }
html.app .crumb > a[href="/"], html.app .crumb > a[href="/"] + .fi { display:none; }
html.app [data-soon], html.app a[href^="https://play.capmonmastermmo.com"] { display:none !important; }
