/* หน้าแรก v6 (6 ต.ค. 2026) — ครีมอุ่น · หัวข้อ teal #2f6f73 · ทอง #e8b64a · การ์ดมนเงานุ่ม · ใช้เฉพาะ body.is-home
   โครง HTML: pages/home.mjs · พฤติกรรม: static/js/site.js (data-tabs + data-autoplay · lightbox · .rv) */
.is-home {
  --h6-cream: #fff9eb; --h6-cream2: #f6ecd3; --h6-sand: #e8d3a9; --h6-line: #ecdcb6;
  --h6-teal: #2f6f73; --h6-teal-d: #245a5d; --h6-gold: #e8b64a; --h6-gold-d: #b9811f;
  --h6-ink: #4b3a28; --h6-ink2: #7a6048; --h6-r: 22px;
  --h6-shadow: 0 2px 0 #ecdcb6, 0 14px 32px rgba(89, 70, 40, .12);
  background: var(--h6-cream); color: var(--h6-ink);
}
.h6-wrap { width: min(100% - 32px, 1200px); margin-inline: auto; position: relative; z-index: 1; }

/* ── ปุ่ม ── */
.h6-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 600 1.06rem/1.2 var(--font-head); text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.h6-btn svg { width: 20px; height: 20px; flex: none; }
.h6-btn .play-ico { width: 24px; height: 24px; }
.h6-btn-gold { background: linear-gradient(#f5ca6a, var(--h6-gold)); color: #3a2a10; box-shadow: 0 4px 0 var(--h6-gold-d), 0 10px 22px rgba(217, 154, 40, .28); }
.h6-btn-gold:hover { color: #2a1d08; transform: translateY(-2px); box-shadow: 0 6px 0 var(--h6-gold-d), 0 14px 26px rgba(217, 154, 40, .32); }
.h6-btn-gold:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--h6-gold-d); }
.h6-btn-ghost { background: rgba(255, 250, 240, .92); color: var(--h6-teal-d); border: 2px solid rgba(47, 111, 115, .35); }
.h6-btn-ghost:hover { background: #fff; border-color: var(--h6-teal); color: var(--h6-teal-d); }
.h6-btn-xl { min-height: 60px; padding: 0 32px; font-size: 1.18rem; }
.h6-btn-xxl { min-height: 68px; padding: 0 44px; font-size: 1.35rem; }
.h6-btn:focus-visible, .h6-jtab:focus-visible, .h6-shot:focus-visible, .h6-class:focus-visible, .h6-map:focus-visible { outline: 3px solid var(--h6-teal); outline-offset: 3px; }

/* ── หัวข้อส่วน ── */
.h6-sec { position: relative; padding: clamp(60px, 8vw, 112px) 0; overflow: hidden; }
.h6-head { text-align: center; margin: 0 auto clamp(28px, 4vw, 48px); max-width: 760px; }
.h6-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 10px; font: 600 .8rem/1 var(--font-head); letter-spacing: .22em; color: #c8952c; }
.h6-leaf { width: 14px; height: 14px; background: var(--h6-teal); border-radius: 0 100% 0 100%; display: inline-block; }
.h6-head h2, .h6-finale h2 { margin: 0 0 12px; font: 600 clamp(1.9rem, 4vw, 3rem)/1.3 var(--font-head); color: var(--h6-teal); letter-spacing: -.01em; }
.h6-lead { margin: 0 auto; font-size: clamp(1.02rem, 1.4vw, 1.14rem); line-height: 1.8; color: var(--h6-ink2); }
.h6-more { text-align: center; margin: clamp(26px, 4vw, 44px) 0 0; }
.h6-card { background: #fffdf7; border: 1px solid var(--h6-line); border-radius: var(--h6-r); box-shadow: var(--h6-shadow); }
.h6-swipe { display: none; }

/* ── Hero ── */
.h6-hero { position: relative; min-height: clamp(600px, 92vh, 880px); display: flex; align-items: center; overflow: hidden; background: #f3e2bd; isolation: isolate; }
.h6-hero-bg { position: absolute; inset: 0; z-index: -2; }
.h6-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 45%; }
.h6-hero-haze { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255, 249, 235, .96) 0%, rgba(255, 249, 235, .86) 32%, rgba(255, 249, 235, .2) 58%, rgba(255, 249, 235, 0) 72%), linear-gradient(0deg, rgba(255, 249, 235, .9), rgba(255, 249, 235, 0) 22%); }
.h6-hero-in { padding: 150px 0 72px; }
.h6-hero-in > * { max-width: 560px; }
.h6-status { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 18px; padding: 8px 18px 8px 14px; border-radius: 999px; background: #fffdf6; border: 1px solid #cfe3d9; box-shadow: 0 4px 14px rgba(47, 111, 115, .12); font-size: .95rem; color: var(--h6-ink2); }
.h6-status strong { color: var(--h6-teal-d); font-family: var(--font-head); font-weight: 600; }
.h6-status .dot { width: 10px; height: 10px; border-radius: 50%; background: #3fb36b; box-shadow: 0 0 0 4px rgba(63, 179, 107, .2); }
.h6-status .live-online { color: var(--h6-teal-d); }
.h6-hero h1 { margin: 0 0 14px; font: 600 clamp(2.4rem, 4.4vw, 3.8rem)/1.18 var(--font-head); color: var(--h6-teal); letter-spacing: -.015em; text-shadow: 0 2px 0 #fff9eb, 0 6px 24px rgba(255, 249, 235, .9); }
html[lang="en"] .h6-hero h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.h6-hero-sub { margin: 0 0 20px; font-size: clamp(1.1rem, 1.7vw, 1.35rem); line-height: 1.75; color: #5b4630; }
.h6-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 28px; }
.h6-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 253, 246, .92); border: 1px solid var(--h6-line); font: 500 .96rem/1.2 var(--font-head); color: var(--h6-teal-d); }
.h6-chips svg { width: 20px; height: 20px; color: var(--h6-teal); }
.h6-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.h6-gift { margin: 18px 0 0; font-size: .95rem; }
.h6-gift a { color: var(--h6-teal-d); font-weight: 600; }
/* แอป Android รุ่นทดสอบ (ใบ apk-download-ui) — ทางรองใต้ปุ่มเล่น: สีครีม/เส้นบาง ไม่มีเงานูน (ปุ่มทองยังเด่นสุด) · site.js เปิดเฉพาะ Android ที่ไม่ใช่ในแอป FB/LINE */
.h6-apk { display: flex; align-items: center; gap: 12px; width: fit-content; max-width: 100%; min-height: 56px; margin: 16px 0 0; padding: 6px 16px 6px 6px; border-radius: 18px; background: rgba(255, 253, 246, .94); border: 1.5px solid rgba(47, 111, 115, .28); color: var(--h6-teal-d); text-decoration: none; transition: border-color .15s, background .15s; }
.h6-apk:hover { background: #fff; border-color: var(--h6-teal); color: var(--h6-teal-d); }
.h6-apk:focus-visible { outline: 3px solid var(--h6-teal); outline-offset: 3px; }
.h6-apk img { width: 44px; height: 44px; flex: none; border-radius: 12px; box-shadow: 0 2px 6px rgba(60, 38, 12, .18); }
.h6-apk-txt { display: grid; min-width: 0; line-height: 1.25; }
.h6-apk-txt small { font: 500 .8rem/1.3 var(--font-head); color: var(--h6-ink2); letter-spacing: .02em; }
.h6-apk-txt b { font: 600 1.05rem/1.3 var(--font-head); }
.h6-apk-dl { display: grid; justify-items: center; gap: 1px; margin-left: auto; padding-left: 12px; border-left: 1px solid var(--h6-line); color: var(--h6-teal); }
.h6-apk-dl svg { width: 22px; height: 22px; }
.h6-apk-dl small { font-size: .74rem; line-height: 1.1; color: var(--h6-ink2); white-space: nowrap; }
.h6-credit { position: absolute; right: 14px; bottom: 12px; font-size: 12px; color: #fff; background: rgba(40, 30, 20, .35); padding: 3px 10px; border-radius: 999px; }

/* ── แถบการ์ด (เดสก์ท็อปเป็นกริด · มือถือปัดซ้ายขวา) ── */
.h6-rail { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.h6-shots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.h6-classes, .h6-maps { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ภาพจากเกมจริง */
.h6-screens { background: var(--h6-cream); }
.h6-trailer { margin: 0 auto 28px; max-width: 960px; border-radius: var(--h6-r); overflow: hidden; box-shadow: var(--h6-shadow); background: #000; }
.h6-trailer video { width: 100%; height: auto; display: block; }
.h6-trailer figcaption { background: #fffdf7; padding: 8px 14px; font-size: .9rem; color: var(--h6-ink2); }
.h6-shot { position: relative; display: block; border-radius: var(--h6-r); overflow: hidden; aspect-ratio: 16 / 10; box-shadow: var(--h6-shadow); background: var(--h6-sand); }
.h6-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.h6-shot:hover img { transform: scale(1.04); }
.h6-shot-label { position: absolute; left: 12px; bottom: 12px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 253, 246, .94); color: var(--h6-teal-d); font: 600 .95rem/1.2 var(--font-head); box-shadow: 0 3px 10px rgba(0, 0, 0, .12); }

/* คุณสมบัติหลัก */
.h6-features { background: var(--h6-cream2); }
.h6-feat { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.h6-feat > li { overflow: hidden; display: flex; flex-direction: column; }
.h6-feat-art { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: linear-gradient(160deg, #e2f0ec, #f6ecd3); }
.h6-feat-art > img { width: 100%; height: 100%; object-fit: cover; }
.h6-devices { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 6px; }
.h6-devices svg { width: 38px; height: 38px; padding: 8px; border-radius: 12px; background: rgba(255, 253, 246, .95); color: var(--h6-teal); box-shadow: 0 3px 10px rgba(0, 0, 0, .12); }
.h6-art-tag { position: absolute; left: 10px; top: 10px; font-size: 12px; color: #fff; background: rgba(40, 30, 20, .4); padding: 2px 10px; border-radius: 999px; }
.h6-feat-body { padding: 20px 22px 24px; }
.h6-feat-body h3 { margin: 0 0 8px; font: 600 1.3rem/1.35 var(--font-head); color: var(--h6-teal); }
.h6-feat-body p { margin: 0; color: var(--h6-ink2); line-height: 1.75; }
.h6-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 14px 0 0; }
.h6-tags li { padding: 4px 11px; border-radius: 999px; background: #e7f1ef; color: var(--h6-teal-d); font: 500 .86rem/1.3 var(--font-head); }
/* จิ๊กซอว์ 3×3 (ภาพเดียวแบ่งด้วยกริดทับ) */
.h6-mini-puzzle, .h6-puzzle { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); aspect-ratio: 1; overflow: hidden; }
.h6-mini-puzzle > img, .h6-puzzle > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.h6-mini-puzzle > i, .h6-puzzle > i { position: relative; border: 2px solid rgba(255, 253, 246, .85); display: flex; align-items: center; justify-content: center; }
.h6-mini-puzzle > i.off, .h6-puzzle > i.off { background: repeating-linear-gradient(45deg, #f3e6c8 0 10px, #efdfbd 10px 20px); color: #c2a36c; }
.h6-mini-puzzle { height: 100%; margin: 0 auto; }
.h6-puzzle > i.off svg { width: 30%; height: 30%; }

/* เลือกเส้นทาง */
.h6-paths { background: linear-gradient(180deg, var(--h6-cream), #eef5f1); }
.h6-path-milestones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 28px 0 14px; padding: 0; }
.h6-path-milestones li { display: flex; align-items: center; gap: 12px; padding: 18px 14px; border: 1px solid #dce4d4; border-radius: 16px; background: #fffef9; }
.h6-milestone-number { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; color: #39624e; background: #edf3e7; font: 500 .9rem var(--font-head); }
.h6-path-milestones li:last-child .h6-milestone-number { background: #f9e6ae; color: #70551c; }
.h6-path-milestones strong, .h6-path-milestones small { display: block; }
.h6-path-milestones strong { font: 500 1rem/1.4 var(--font-head); color: #355448; }
.h6-path-milestones small { margin-top: 3px; color: #667363; font-size: .8rem; }
.h6-path-note { color: #687063; font-size: .88rem; line-height: 1.7; text-align: center; margin: 0 0 32px; }
.h6-path-note a { display: inline-flex; gap: 5px; align-items: center; color: #2f6f73; }
.h6-path-note svg { width: 14px; height: 14px; }
.h6-path-gallery-label { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 0 14px; color: #355448; font-weight: 600; }
.h6-path-gallery-label > span { font-size: .82rem; font-weight: 400; color: #697363; }
.h6-class { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--h6-ink); background: #fffef9; border: 1px solid #dce4d4; border-radius: 22px; overflow: hidden; box-shadow: 0 3px 12px #324b3e08; transition: transform .15s, box-shadow .15s; }
.h6-class:hover { transform: translateY(-3px); color: var(--h6-ink); box-shadow: 0 10px 24px #324b3e14; }
.h6-class-art { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(#fff9ed24, #fff9ed24), url('../site/class-paths/sandport-stage.webp') center / cover, #e8eddf; }
.h6-class-art > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.h6-class-tier { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 8px; background: #fffef9e8; color: #426052; font-size: .75rem; }
.h6-class-body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 20px; border-top: 3px solid var(--ac); }
.h6-class-heading { display: flex; align-items: center; gap: 12px; }
.h6-class-heading > img { width: 36px; height: 36px; object-fit: contain; }
.h6-class-heading strong { display: block; font: 600 1.5rem/1.3 var(--font-head); color: #285955; }
.h6-class-role { display: block; color: #687363; font-size: .8rem; margin-bottom: 3px; }
.h6-class-tag { font-size: .94rem; line-height: 1.6; min-height: 3.2em; }
.h6-class-evolution { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: auto; padding-top: 14px; border-top: 1px solid #e6e9de; }
.h6-class-evolution > span { position: relative; min-width: 0; color: #667363; font-size: .8rem; line-height: 1.5; }
.h6-class-evolution small { display: block; font-size: .75rem; opacity: 1; margin-bottom: 3px; }
.h6-class-evolution .is-shown { color: #285955; font-weight: 600; }
.h6-class-link { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 6px; font-size: .87rem; color: #2f6f73; }
.h6-class-link svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 1000px) { .h6-path-milestones { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .h6-path-milestones { gap: 8px; margin-top: 20px; }
  .h6-path-milestones li { gap: 8px; padding: 12px 10px; }
  .h6-milestone-number { width: 26px; height: 26px; font-size: .75rem; }
  .h6-path-milestones strong { font-size: .85rem; }
  .h6-path-milestones small { font-size: .75rem; }
  .h6-path-note { text-align: left; font-size: .82rem; margin-bottom: 24px; }
  .h6-path-gallery-label { display: block; }
  .h6-path-gallery-label > span { display: block; margin-top: 4px; }
  .h6-class-body { padding: 16px; }
}

/* ── ค้นพบโลกทีละชิ้น (ส่วนเด่น) ── */
.h6-journal { background: radial-gradient(ellipse at 50% 40%, #fff6dc 0, #f3e2bd 55%, #e8d3a9 100%); padding-block: clamp(70px, 9vw, 130px); }
.h6-ring img { position: absolute; width: clamp(110px, 10vw, 160px); height: auto; opacity: .95; filter: drop-shadow(0 8px 10px rgba(75, 45, 23, .2)); z-index: 0; }
.h6-ring .r0 { left: 3%; top: 9%; } .h6-ring .r1 { right: 4%; top: 7%; } .h6-ring .r2 { left: 1.5%; top: 42%; } .h6-ring .r3 { right: 2%; top: 40%; }
.h6-ring .r4 { left: 4%; bottom: 14%; } .h6-ring .r5 { right: 5%; bottom: 16%; } .h6-ring .r6 { left: 17%; top: 2%; width: 100px; } .h6-ring .r7 { right: 17%; top: 1%; width: 100px; }
.h6-journal .h6-head h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.h6-book { position: relative; max-width: 1060px; margin: 0 auto; padding: clamp(18px, 2.4vw, 30px); border-radius: 30px; background: #8a5a35; box-shadow: 0 4px 0 #6b4326, 0 30px 60px rgba(75, 45, 23, .3); }
.h6-book-pages { position: relative; border-radius: 18px; background: linear-gradient(90deg, #fffaf0 0, #fffaf0 49.4%, #e9d7b0 50%, #fffaf0 50.6%, #fffaf0 100%); box-shadow: inset 0 0 0 2px #ecdcb6, inset 0 0 40px rgba(201, 162, 106, .25); }
.h6-jpage { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); padding: clamp(20px, 3vw, 40px); align-items: center; }
.h6-jpage[hidden] { display: none; }
.h6-puzzle { border-radius: 14px; box-shadow: 0 6px 18px rgba(75, 45, 23, .2); background: #f3e6c8; }
.h6-progress { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-family: var(--font-head); color: var(--h6-ink2); }
.h6-progress .bar { flex: 1; height: 12px; border-radius: 999px; background: #efdfbd; overflow: hidden; }
.h6-progress .bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6cc2a4, var(--h6-teal)); }
.h6-progress b { color: var(--h6-teal); font-size: 1.2rem; }
.h6-jlabel { margin: 0 0 2px; font: 600 .9rem/1 var(--font-head); letter-spacing: .1em; color: #c8952c; }
.h6-jright h3 { margin: 0 0 14px; font: 600 clamp(1.8rem, 3.2vw, 2.5rem)/1.2 var(--font-head); color: var(--h6-teal); }
.h6-jfacts { margin: 0 0 16px; display: grid; gap: 10px; }
.h6-jfacts > div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding-bottom: 10px; border-bottom: 1px dashed #e2cfa6; }
.h6-jfacts dt { font: 600 .95rem/1.5 var(--font-head); color: var(--h6-ink2); }
.h6-jfacts dd { margin: 0; line-height: 1.55; }
.h6-jfacts dd img { display: inline-block; vertical-align: -4px; margin-right: 4px; }
.h6-jfacts .role-chip { margin-left: 4px; font-size: .85rem; }
.h6-jreward { display: grid; gap: 4px; }
.h6-tlink { font-family: var(--font-head); font-weight: 600; color: var(--h6-teal); }
.h6-book-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.h6-jtab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 104px; padding: 8px 6px 6px; border-radius: 16px; background: #fff6e0; border: 2px solid transparent; cursor: pointer; font: 500 .82rem/1.2 var(--font-head); color: var(--h6-ink); transition: transform .15s, background .15s; }
.h6-jtab img { width: 64px; height: 64px; object-fit: contain; }
.h6-jtab:hover { transform: translateY(-2px); background: #fffaf0; }
.h6-jtab.is-active { background: #fffdf7; border-color: var(--h6-gold); box-shadow: 0 4px 0 var(--h6-gold-d); }
.h6-jtab em { position: absolute; top: 4px; right: 8px; font-style: normal; color: var(--h6-gold-d); }
.h6-book-mascot { position: absolute; right: -40px; top: -86px; width: 130px; height: auto; z-index: 2; pointer-events: none; }
.h6-book-note { margin: 12px 0 0; text-align: center; font-size: .85rem; color: #f6e6c7; }
.h6-rewards { list-style: none; padding: 0; margin: clamp(32px, 4vw, 48px) auto 0; max-width: 1060px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.h6-rewards li { padding: 22px 22px 24px; }
.h6-rw-ico { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 16px; background: #fff3d6; font-size: 1.6rem; margin-bottom: 10px; }
.h6-rewards h3 { margin: 0 0 6px; font: 600 1.25rem/1.3 var(--font-head); color: var(--h6-teal); }
.h6-rewards p { margin: 0; color: var(--h6-ink2); line-height: 1.7; }

/* โลกกว้าง */
.h6-world { background: var(--h6-cream); }
.h6-map { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--h6-ink); background: #fffdf7; border: 1px solid var(--h6-line); border-radius: var(--h6-r); overflow: hidden; box-shadow: var(--h6-shadow); transition: transform .15s; }
.h6-map:hover { transform: translateY(-4px); color: var(--h6-ink); }
.h6-map-art { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.h6-map-art img { width: 100%; height: 100%; object-fit: cover; }
.h6-map-tag { position: absolute; left: 12px; top: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 253, 246, .94); color: var(--h6-teal-d); font: 600 .85rem/1.2 var(--font-head); }
.h6-map-body { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px 18px; }
.h6-map-body strong { font: 600 1.25rem/1.3 var(--font-head); color: var(--h6-teal); }
.h6-map-body small { color: var(--h6-ink2); font-size: .95rem; }
.h6-map-meta { margin-top: 6px; font-size: .9rem; color: #a0743a; font-family: var(--font-head); }

/* ชีวิตผู้เล่น */
.h6-life { background: linear-gradient(180deg, var(--h6-cream2), var(--h6-cream)); }
.h6-life-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.h6-life-grid li { display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 20px; }
.h6-life-ico { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: #e7f1ef; font-size: 1.5rem; margin-bottom: 6px; }
.h6-life-grid strong { font: 600 1.12rem/1.3 var(--font-head); color: var(--h6-teal); }
.h6-life-grid small { font-size: .95rem; line-height: 1.6; color: var(--h6-ink2); }

/* ชุมชน (แบนเนอร์ Facebook ใช้สไตล์ live-v5) */
.h6-community { padding: 0 0 clamp(48px, 6vw, 80px); }

/* CTA ล่าง (ชิด footer) */
.is-home .site-footer { margin-top: 0; }
.h6-finale { position: relative; padding: clamp(80px, 11vw, 150px) 0; text-align: center; overflow: hidden; isolation: isolate; color: #fff; }
.h6-finale-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.h6-finale::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 50%, rgba(28, 64, 66, .55), rgba(20, 44, 46, .82)); }
.h6-finale .h6-eyebrow { color: #f5d58a; }
.h6-finale h2 { color: #fff; font-size: clamp(2.4rem, 5.4vw, 4rem); text-shadow: 0 3px 16px rgba(0, 0, 0, .35); }
.h6-finale-mascot { width: 120px; height: auto; margin: 0 auto 6px; display: block; }
.h6-finale-cta { margin: 22px 0 26px; }
.h6-anywhere { list-style: none; display: flex; justify-content: center; gap: 14px; padding: 0; margin: 0 0 10px; }
.h6-anywhere li { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 92px; padding: 12px 6px 10px; border-radius: 18px; background: rgba(255, 253, 246, .14); border: 1px solid rgba(255, 253, 246, .3); font: 500 .95rem/1.2 var(--font-head); }
.h6-anywhere svg { width: 30px; height: 30px; color: #f5d58a; }
.h6-finale-sub { margin: 0; font-size: 1.1rem; color: #f6efdf; }
.h6-finale-apk { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0 0; }
.h6-finale-apk svg:first-child { width: 26px; height: 26px; color: #f5d58a; }
.h6-finale-apk a[hidden] { display: none; }
.h6-finale-apk a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; max-width: 100%; padding: 6px 16px 6px 8px; border-radius: 999px; background: rgba(255, 253, 246, .14); border: 1px solid rgba(255, 253, 246, .38); color: #fff; font: 500 1rem/1.3 var(--font-head); text-decoration: none; transition: background .15s; }
.h6-finale-apk a:hover { background: rgba(255, 253, 246, .24); color: #fff; }
.h6-finale-apk img { width: 32px; height: 32px; border-radius: 9px; flex: none; }
.h6-finale-apk svg { width: 18px; height: 18px; flex: none; color: #f5d58a; }

/* เลื่อนแล้วค่อยโผล่ (site.js ใส่ .rv-on / .in) */
.rv-on .rv { opacity: 0; transform: translateY(18px); transition: opacity .5s ease calc(var(--i, 0) * 60ms), transform .5s ease calc(var(--i, 0) * 60ms); }
.rv-on .rv.in { opacity: 1; transform: none; }

/* ── แท็บเล็ต ── */
@media (max-width: 1060px) {
  .h6-life-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h6-ring { display: none; }
  .h6-book-mascot { right: -10px; top: -70px; width: 100px; }
}
@media (max-width: 900px) {
  .h6-feat { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .h6-jpage { grid-template-columns: 1fr; }
  .h6-book-pages { background: #fffaf0; }
  .h6-rewards { grid-template-columns: 1fr; max-width: 560px; }
  .h6-shots, .h6-classes, .h6-maps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ── มือถือ: แถบปัดซ้ายขวา + ปุ่มติดล่าง (mobile-play ใน layout) ── */
@media (max-width: 760px) {
  /* ภาพอยู่บน (สี่เหลี่ยมจัตุรัส) ข้อความต่อด้านล่าง — ไม่ผูกกับความสูงจอ */
  .h6-hero { display: block; min-height: 0; background: var(--h6-cream); }
  .h6-hero-bg { position: relative; inset: auto; display: block; aspect-ratio: 1 / 1; }
  .h6-hero-bg img { object-position: 50% 42%; }
  .h6-hero-haze { inset: auto 0 auto 0; top: 0; aspect-ratio: 1 / 1; background: linear-gradient(0deg, var(--h6-cream) 0%, rgba(255, 249, 235, 0) 34%); }
  .h6-hero-in { padding: 0 0 40px; margin-top: -64px; }
  .h6-hero h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .h6-hero-cta .h6-btn { flex: 1 1 100%; }
  .h6-apk { width: 100%; }
  .h6-credit { top: 76px; bottom: auto; }
  .h6-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: -16px; padding: 4px 16px 18px; scroll-padding-inline: 16px; overscroll-behavior-x: contain; scrollbar-width: none; }
  .h6-rail::-webkit-scrollbar { display: none; }
  .h6-rail > li { flex: 0 0 82%; scroll-snap-align: start; }
  .h6-classes > li { flex-basis: 88%; }
  .h6-swipe { display: block; margin: 2px 0 0; text-align: right; font-size: .85rem; color: var(--h6-ink2); }
  .h6-book { padding: 10px; border-radius: 22px; }
  .h6-book-mascot { display: none; }
  .is-home #news .grid-3 { grid-template-columns: 1fr; }
  .h6-jpage { padding: 16px; gap: 18px; }
  .h6-jfacts > div { grid-template-columns: 78px 1fr; }
  .h6-book-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .h6-jtab { flex: none; width: 88px; }
  .h6-jtab img { width: 52px; height: 52px; }
  .h6-btn-xxl { width: 100%; padding: 0 20px; }
  .h6-anywhere li { width: 84px; }
}
@media (max-width: 380px) {
  .h6-life-grid { grid-template-columns: 1fr; }
  .h6-btn-xl { padding: 0 20px; font-size: 1.08rem; }
}
@media (prefers-reduced-motion: reduce) {
  .h6-btn, .h6-shot img, .h6-class, .h6-map, .h6-jtab { transition: none; }
  .rv-on .rv { opacity: 1; transform: none; transition: none; }
}

/* 6 ต.ค. ผู้ใช้: "hero ไม่สวย ขอภาพเด่น ๆ ภาพสวยอยู่แล้ว" — คอม: ภาพเต็มชัด ไม่มีหมอกครีมทับครึ่งซ้าย · ข้อความอยู่ในการ์ดครีมมุมซ้ายล่าง */
@media (min-width: 761px) {
  .h6-hero { align-items: flex-end; min-height: clamp(620px, 94vh, 900px); }
  .h6-hero-bg img { object-position: 60% 40%; }
  .h6-hero-haze { background: linear-gradient(0deg, rgba(40, 28, 14, .28), rgba(40, 28, 14, 0) 30%); }
  .h6-hero-in { padding: 120px 0 56px; }
  .h6-hero-in > * { max-width: none; }
  .h6-hero-card { max-width: 500px; padding: 24px 28px 26px; border-radius: 26px; background: rgba(255, 249, 235, .9); border: 1px solid rgba(232, 182, 74, .55); box-shadow: 0 18px 44px rgba(60, 38, 12, .22); }
  .h6-hero-card h1 { font-size: clamp(2.1rem, 3.3vw, 3rem); text-shadow: none; }
  .h6-hero-card .h6-hero-sub { font-size: clamp(1.02rem, 1.3vw, 1.18rem); margin-bottom: 16px; }
  .h6-hero-card .h6-chips { margin-bottom: 20px; }
  .h6-hero-card .h6-status { margin-bottom: 14px; box-shadow: none; }
}

/* 26 Oct: readable introduction, a dedicated art frame and useful first steps. */
.is-home { --h6-line: #e1e6d7; --h6-ink: #34443e; --h6-ink2: #687365; --h6-shadow: 0 5px 18px #34443e0a; }
.h6-hero { display: block; min-height: 0; background: linear-gradient(135deg, #f0f5e9, #fff9eb 65%); }
.h6-hero-in { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 36px; align-items: center; padding: 32px 0 40px; margin-top: 0; }
.h6-hero-in > * { max-width: none; }
.h6-hero-card { max-width: none; padding: 12px 0; background: none; border: 0; box-shadow: none; }
.h6-hero-card h1, html[lang="en"] .h6-hero h1 { font-size: clamp(2rem, 3.4vw, 3.15rem); line-height: 1.28; color: #285957; text-shadow: none; }
.h6-hero-card h1 > span { display: block; }
.h6-hero-card .h6-hero-sub { margin-bottom: 20px; font-size: 1.08rem; line-height: 1.75; color: #5d6b5f; }
.h6-hero-card .h6-status { padding: 0; margin-bottom: 18px; background: none; border: 0; box-shadow: none; font-size: .88rem; gap: 8px; }
.h6-status .dot { width: 8px; height: 8px; margin-inline: 3px; background: #3c925d; box-shadow: 0 0 0 3px #dcefd9; }
.h6-status .live-online { padding-left: 8px; border-left: 1px solid #bfceba; font-size: .83rem; }
.h6-hero-card .h6-chips { gap: 8px 16px; margin-bottom: 24px; }
.h6-chips li { padding: 0; background: transparent; border: 0; font: 500 .88rem/1.6 var(--font-body); gap: 6px; }
.h6-chips svg { width: 17px; height: 17px; }
.h6-hero-cta { gap: 12px; }
.h6-btn { white-space: normal; text-align: center; border-radius: 14px; line-height: 1.45; padding: 12px 22px; }
.h6-hero-cta .h6-btn { min-height: 52px; font-size: 1rem; padding-inline: 24px; }
.h6-btn-gold { box-shadow: 0 2px 0 #b9811f, 0 6px 16px #e8b64a24; }
.h6-btn-gold:hover { box-shadow: 0 3px 0 #b9811f, 0 8px 18px #e8b64a30; }
.h6-btn-ghost { border-width: 1px; background: #fffef9; border-color: #9cbdb1; }
.h6-launch-note { margin: 22px 0 0; padding-left: 12px; border-left: 3px solid #dbc379; font-size: .86rem; line-height: 1.7; color: #69705d; }
.h6-launch-note strong { color: #5c673e; }
.h6-launch-note a { color: #285957; white-space: nowrap; }
.h6-hero-visual { position: relative; margin: 0; height: clamp(390px, 39vw, 520px); border-radius: 32px 32px 72px 32px; overflow: hidden; box-shadow: 0 10px 30px #766b3820; }
.h6-hero-bg { display: block; position: absolute; inset: 0; z-index: auto; aspect-ratio: auto; }
.h6-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 67% 50%; }
.h6-hero .h6-credit { top: auto; right: 18px; bottom: 18px; font-size: .7rem; background: #273e3c99; }
.h6-sec { padding-block: clamp(44px, 6vw, 76px); }
.h6-head { margin-bottom: 30px; }
.h6-head h2, .h6-finale h2 { font-size: clamp(1.7rem, 3.1vw, 2.45rem); }
.h6-eyebrow { letter-spacing: .13em; color: #92752e; line-height: 1.5; }
.h6-welcome { padding: 28px 0 36px; background: #fff9eb; }
.h6-welcome-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 32px; align-items: center; }
.h6-welcome-art { position: relative; margin: 0; border-radius: 24px; overflow: hidden; }
.h6-welcome-art img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.h6-welcome-art figcaption { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 6px; background: #fffef9d9; font-size: .75rem; color: #4d5d4b; }
.h6-welcome-copy > p { margin-bottom: 12px; color: #657260; }
.h6-welcome-copy > .h6-eyebrow { margin-bottom: 6px; font-size: .72rem; color: #7d743c; }
.h6-welcome-copy h2 { font-size: clamp(1.45rem, 2.3vw, 1.9rem); color: #285957; margin-bottom: 8px; }
.h6-start-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.h6-start-links a { display: grid; grid-template-columns: 1fr auto; gap: 4px; padding: 14px; border: 1px solid #dde5d3; border-radius: 16px; background: #fffef9; text-decoration: none; color: #62735f; transition: background .15s, border-color .15s; }
.h6-start-links a:hover { background: #f0f6e9; border-color: #abc69a; }
.h6-start-links .h6-start-number { font-size: .8rem; font-weight: 600; color: #506b40; }
.h6-start-links strong { grid-column: 1; font: 500 1rem/1.5 var(--font-head); color: #2f6255; }
.h6-start-links a > span:not(.h6-start-number) { grid-column: 1 / -1; font-size: .85rem; line-height: 1.6; }
.h6-start-links i { grid-column: 2; grid-row: 1 / 3; align-self: center; font-style: normal; font-size: 1.2rem; color: #4b795e; }
@media (max-width: 1000px) {
  .h6-hero-in { gap: 24px; }
  .h6-hero-cta .h6-btn { padding-inline: 16px; }
  .h6-welcome-in { grid-template-columns: minmax(0, .6fr) minmax(0, 2fr); gap: 22px; }
  .h6-start-links { gap: 8px; }
}
@media (max-width: 760px) {
  .h6-hero-in { grid-template-columns: 1fr; gap: 24px; padding: 16px 0 28px; }
  .h6-hero-card { padding: 0; }
  .h6-hero-card h1, html[lang="en"] .h6-hero h1 { font-size: clamp(1.85rem, 7.8vw, 2.45rem); margin-bottom: 12px; }
  .h6-hero-card .h6-status { margin-bottom: 12px; }
  .h6-hero-card .h6-hero-sub { font-size: 1rem; margin-bottom: 14px; line-height: 1.7; }
  .h6-hero-card .h6-chips { margin-bottom: 18px; gap: 6px 14px; }
  .h6-chips li { font-size: .8rem; }
  .h6-hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .h6-hero-cta .h6-btn { min-height: 50px; padding: 10px 12px; font-size: .94rem; }
  .h6-launch-note { margin-top: 18px; font-size: .83rem; }
  .h6-hero-visual { height: 240px; border-radius: 24px 24px 48px 24px; }
  .h6-hero-bg img { object-position: 50% 53%; }
  .h6-welcome { padding: 24px 0; }
  .h6-welcome-in { grid-template-columns: 1fr; gap: 18px; }
  .h6-welcome-art { display: block; width: 100%; max-width: 420px; margin-inline: auto; }
  .h6-welcome-art img { height: 200px; aspect-ratio: auto; object-position: center 55%; }
  .h6-start-links { gap: 8px; }
  .h6-start-links a { padding: 12px 10px; }
  .h6-start-links strong { font-size: .91rem; }
  .h6-start-links a > span:not(.h6-start-number) { font-size: .78rem; }
}
@media (max-width: 600px) { .h6-start-links { grid-template-columns: 1fr; } .h6-start-links a { grid-template-columns: 26px 1fr auto; gap: 2px 8px; } .h6-start-links strong { grid-column: 2; } .h6-start-links a > span:not(.h6-start-number) { grid-column: 2; } .h6-start-links i { grid-column: 3; } }

/* Comfortable first steps on phones, balanced cards on portrait tablets. */
@media (max-width: 600px) {
 .h6-start-links a { padding: 14px; gap: 3px 10px; align-items: center; }
 .h6-start-links strong { font-size: 1rem; }
 .h6-start-links a > span:not(.h6-start-number) { font-size: .875rem; }
 .h6-start-links .h6-start-number { grid-row: 1 / 3; }
 .h6-class-evolution { gap: 5px; }
}
@media (min-width: 761px) and (max-width: 1000px) {
 .h6-welcome-in { grid-template-columns: 1fr; gap: 20px; }
 .h6-welcome-art { width: 240px; margin-inline: auto; }
 .h6-welcome-copy > p, .h6-welcome-copy > h2 { text-align: center; }
 .h6-start-links { gap: 12px; }
 .h6-start-links a { padding: 16px; }
 .h6-feat { max-width: none; }
 .h6-feat > li { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; }
 .h6-feat-art { height: 100%; min-height: 220px; }
}

@media (min-width: 761px) and (max-width: 1000px) {
 .h6-jpage { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; padding: 24px; }
 .h6-jfacts > div { grid-template-columns: 70px 1fr; }
 .h6-rewards { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; gap: 14px; }
 .h6-rewards > li { padding: 18px; }
}
/* Google Play — hero ใต้ปุ่มเล่น · finale คู่กับปุ่มติดตั้งลงคอม */
/* ใบ gplay-place-1114: ทางเลือกที่ 2 ใต้ปุ่มเข้าเล่น (ระยะเท่ากลุ่มปุ่ม) */
.h6-gplay { margin: 16px 0 0; display: grid; gap: 8px; }
.h6-gplay-note { font-size: .86rem; font-weight: 700; color: #69705d; letter-spacing: .01em; }
.h6-finale-apk a.gp-badge { padding: 0; min-height: 0; background: none; border: 0; border-radius: 9px; }
.h6-finale-apk a.gp-badge img { width: auto; height: 48px; border-radius: 0; }
