/* v5 · 4 ต.ค. 2026 — เกมเปิดให้เล่นแล้ว: ปุ่ม "เข้าเล่น" เด่นที่สุดทุกหน้า · นักผจญภัยรุ่นแรก (เดิมลงทะเบียนล่วงหน้า)
   ภาพประดับชุดเดียวกับหน้าล็อกอินของเกม (/assets/game/login/* — build.mjs whitelist) · ใช้ทุกหน้า */

/* ── ปุ่มเข้าเล่น ── */
.play-ico { width: 1.15em; height: 1.15em; flex: none; margin-right: .4em; vertical-align: -.2em; }
.btn-play, .btn-play-lg, .is-home .hero.hero-v3 .btn-hero { display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 600px) { .mobile-play { display: flex; align-items: center; justify-content: center; } }   /* คอมยังซ่อน (site.css) */
.btn-play { font-weight: 700; letter-spacing: .01em; background: linear-gradient(180deg, #ffd978, #f2b845 60%, #e2a032); box-shadow: inset 0 1px 0 #fff8, 0 3px 0 #b97f22, 0 8px 18px #b8802440; }
.btn-play:hover { transform: translateY(-1px); }
@media (max-width: 400px) { .btn-play .play-ico { display: none; } .btn-play { white-space: nowrap; } }   /* 320px: หัวเว็บต้องไม่ล้นจอ */
.mobile-play { gap: 0; }
.footer-brand .btn-play-lg { margin-top: 4px; }

/* ── hero: สถานะเปิดแล้ว ── */
.is-home .hero.hero-v3 .hero-live .dot { animation: live-pulse 2s ease-out infinite; }
.is-home .hero.hero-v3 .hero-live .live-online { padding-left: 10px; border-left: 1px solid rgba(160, 130, 80, .35); font-weight: 700; color: #2e5c4f; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 154, 85, .45); } 80%, 100% { box-shadow: 0 0 0 9px rgba(74, 154, 85, 0); } }
@media (prefers-reduced-motion: reduce) { .is-home .hero.hero-v3 .hero-live .dot { animation: none; } }
.is-home .hero.hero-v3 .btn-hero { min-width: 230px; font-size: 21px; }
.is-home .hero.hero-v3 .btn-hero .play-ico { width: 26px; height: 26px; }
.is-home .hero.hero-v3 .hero-gift { margin: 16px 0 0; }
.is-home .hero.hero-v3 .hero-gift a { display: inline-block; padding: 7px 14px; border-radius: 12px; background: rgba(255, 250, 238, .8); border: 1px dashed #d6b26a; font-size: 13.5px; line-height: 1.5; color: #6b4a1b; text-decoration: none; backdrop-filter: blur(4px); }
.is-home .hero.hero-v3 .hero-gift a:hover { border-style: solid; color: #4a2e18; }
/* คอม: ใต้ปุ่มเป็นตำแหน่งปริกกี้ในภาพ hero — ลิงก์ของต้อนรับซ่อน (มีส่วนนักผจญภัยรุ่นแรกด้านล่างแล้ว) */
@media (min-width: 901px) { .is-home .hero.hero-v3 .hero-gift { display: none; } }
.is-home .hero.hero-v3 .hero-live strong { letter-spacing: .03em; font-size: 14px; }
html[lang="en"] .is-home .hero.hero-v3 .hero-live strong { letter-spacing: .12em; font-size: 12px; }
@media (max-width: 760px) {
  .is-home .hero.hero-v3 .hero-live .live-online { flex-basis: 100%; border-left: 0; padding: 0; text-align: center; }
  .is-home .hero.hero-v3 .hero-gift a { font-size: 13px; }
}

/* ── นักผจญภัยรุ่นแรก ── */
.is-home .first-adv { position: relative; padding-top: 96px; }
.first-adv .fa-orn { display: block; width: min(420px, 78%); height: auto; margin: -24px auto -46px; position: relative; z-index: 2; pointer-events: none; }
.first-adv .prereg-card { position: relative; }
.first-adv .prereg-invitation .btn-play-lg { font-size: 19px; padding: 15px 30px; }
@media (max-width: 440px) { .first-adv .prereg-invitation h2 { font-size: 25px; } }
.footer-brand .footer-social { margin-top: 18px; }
.fa-steps { margin-top: 36px; text-align: center; }
.fa-steps-title { margin: 0 0 18px; font: 500 1.4rem/1.3 var(--font-head); color: #5c4b32; }
.play-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.play-steps li { position: relative; display: grid; justify-items: center; gap: 4px; padding: 22px 18px 20px; background: #fffaf0; border: 1px solid #e3d3ac; border-radius: 22px; box-shadow: 0 8px 22px #5b482214; }
.play-steps li:not(:last-child)::after { content: ''; position: absolute; right: -15px; top: 50%; width: 12px; height: 12px; border-top: 2px solid #d6b26a; border-right: 2px solid #d6b26a; transform: translateY(-50%) rotate(45deg); }
.play-steps img { width: 64px; height: 64px; object-fit: contain; }
.play-steps .ps-n { position: absolute; top: 12px; left: 14px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #2f6f73; color: #fff; font: 700 13px/1 var(--font-head); }
.play-steps strong { font: 600 1.05rem/1.4 var(--font-head); color: #4b2d17; }
.play-steps small { font-size: 14px; line-height: 1.6; color: #7a6048; }
@media (max-width: 700px) {
  .is-home .first-adv { padding-top: 64px; }
  .play-steps { grid-template-columns: 1fr; gap: 12px; }
  .play-steps li { grid-template-columns: 56px 1fr; justify-items: start; text-align: left; column-gap: 14px; padding: 14px 16px; }
  .play-steps li img { grid-row: span 2; width: 56px; height: 56px; }
  .play-steps li:not(:last-child)::after { display: none; }
  .play-steps .ps-n { top: 8px; left: 8px; width: 22px; height: 22px; font-size: 12px; }
}
.first-adv-closed { padding: 56px 0; }
.fa-note { display: flex; gap: 22px; align-items: center; padding: 26px 30px; border-radius: 24px; background: #fffaf0; border: 1px solid #e3d3ac; box-shadow: 0 10px 28px #5b482214; }
.fa-note img { flex: none; }
.fa-note h2 { margin: 0 0 6px; font-size: 1.5rem; color: #4b2d17; }
.fa-note p { margin: 0 0 14px; color: #6b5a44; }
@media (max-width: 600px) { .fa-note { flex-direction: column; text-align: center; padding: 22px 18px; } }

/* ── แบนเนอร์ชุมชน (community_banner.webp) ── */
.community-banner { position: relative; display: block; margin: 0 0 40px; border-radius: 26px; overflow: hidden; text-decoration: none; isolation: isolate; box-shadow: 0 14px 36px #5b48221f; border: 3px solid #f3dca2; }
.community-banner img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; object-position: left center; }
.community-banner .cb-copy { position: absolute; inset: 0 0 0 auto; width: min(46%, 520px); display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 24px 34px; background: linear-gradient(90deg, transparent, #fff6e2e6 26%); text-align: right; align-items: flex-end; }
.community-banner strong { font: 600 clamp(1.25rem, 2.2vw, 1.9rem)/1.3 var(--font-head); color: #4b2d17; }
.community-banner small { font-size: 15px; color: #6b5a44; }
.community-banner .cb-btn { margin-top: 8px; display: inline-flex; gap: 8px; align-items: center; padding: 10px 20px; border-radius: 999px; background: #2f6f73; color: #fff; font: 600 15px/1 var(--font-head); box-shadow: 0 3px 0 #1f4f52; }
.community-banner:hover .cb-btn { background: #28636a; }
@media (max-width: 700px) {
  .community-banner img { aspect-ratio: 16 / 9; object-position: 18% center; }
  .community-banner .cb-copy { position: static; width: auto; background: #fff6e2; text-align: center; align-items: center; padding: 16px; }
}

/* ── ลิงก์ชุมชน (footer · ซัพพอร์ต) ── */
.footer-social, .social-links { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.footer-social a, .social-links a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; text-decoration: none; font-size: 14px; }
.footer-social a { background: #ffffff14; color: #f3e7cc; border: 1px solid #ffffff26; }
.footer-social a:hover { background: #ffffff24; color: #fff; }
.social-links a { background: #e6f1ee; color: #2f6f73; border: 1px solid #b9d6cf; }
.footer-social svg, .social-links svg { width: 20px; height: 20px; }

.split-cta { margin: 22px 0 0; }

/* ── หัวข้อหน้าข้างใน: เส้นคั่นชุดเดียวกับหน้าล็อกอินเกม ── */
body.inner .section-orn { width: 230px; height: 44px; margin-top: 4px; background: no-repeat left center/contain url("/assets/game/login/divider.webp") !important; }
@media (max-width: 600px) { body.inner .section-orn { width: 180px; height: 34px; } }
body.inner .cta-band .btn-play-lg { font-size: 1.1rem; }
