/* ============================================================
   suai138 — "Midnight Gold" theme
   ดำสนิท + ทองหรูหรา + กรมท่าเบอร์กันดี (ตามโทนจริงจากแบนเนอร์ h1/h2/h3.webp)
   ฟอนต์ Pridi (หัวข้อ) + Krub (เนื้อหา) — ยังไม่เคยใช้คู่นี้ในแบรนด์อื่น
   ============================================================ */

:root {
  --gold: #f2b544;
  --gold-bright: #ffd873;
  --gold-deep: #b8801f;
  --wine: #6b1414;
  --wine-deep: #4a0d0d;
  --bg: #0b0805;
  --bg-alt: #150f0a;
  --panel: #1c140d;
  --line: #3a2b18;
  --ink: #fff6e6;
  --muted: #d8c6a8;
  --ink-dark: #241708;
  --muted-dark: #6b573d;
  --radius: 20px;
  --shadow: 0 18px 40px rgba(0,0,0,0.55);
  --font-head: 'Pridi', serif;
  --font-body: 'Krub', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg), var(--bg-alt));
  overflow-x: hidden;
  padding-bottom: 0;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); margin: 0 0 0.6rem; color: var(--ink); line-height: 1.3; }
p { line-height: 1.8; margin: 0 0 1rem; }
.grad-text { background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===== HEADER — floating rounded bar, single row ===== */
.header-wrap { position: sticky; top: 0; z-index: 50; padding: 0.8rem 1rem 0; }
.header { max-width: 1280px; margin: 0 auto; background: rgba(28, 20, 13, 0.86); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 0.55rem 0.7rem 0.55rem 1.4rem; }
.logo-link img { height: 30px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 1.6rem; }
.nav-menu a { color: var(--muted); font-weight: 600; font-size: 0.94rem; transition: color 0.2s ease; }
.nav-menu a:hover, .nav-menu a.active { color: var(--gold-bright); }
.header-btns { display: flex; align-items: center; gap: 0.5rem; }
.img-btn img { height: 34px; width: auto; transition: transform 0.18s ease; }
.img-btn:hover img { transform: translateY(-2px) scale(1.03); }
.img-btn.lg img { height: 46px; }

/* ===== HERO ===== */
.hero { position: relative; padding: 2.4rem 1.2rem 1rem; overflow: hidden; }
.hero-banner { max-width: 1100px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--gold-deep); }
.hero-copy { max-width: 900px; margin: 1.8rem auto 0; text-align: center; }
.hero-copy .eyebrow { justify-content: center; display: flex; }
.hero-copy p { color: var(--muted); font-size: 1.02rem; }
.hero-actions { display: flex; justify-content: center; gap: 0.9rem; margin-top: 1.2rem; flex-wrap: wrap; }

/* ===== MASCOT TRIO — centered showcase, not corner decoration ===== */
.mascot-trio { display: flex; justify-content: center; align-items: flex-end; gap: 1.6rem; max-width: 720px; margin: 2.2rem auto 0; }
.mascot-trio img { width: 33%; max-width: 210px; filter: drop-shadow(0 16px 28px rgba(0,0,0,0.55)); }
@media (max-width: 640px) { .mascot-trio { gap: 0.6rem; } .mascot-trio img { width: 32%; } }

.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; letter-spacing: 0.06em; color: var(--gold-bright); font-weight: 700; margin-bottom: 0.7rem; font-family: var(--font-body); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wine); box-shadow: 0 0 0 3px rgba(107,20,20,0.35); display: inline-block; }

/* ===== BUTTONS (fallback) ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.8rem 1.9rem; border-radius: 999px; font-weight: 700; font-size: 0.98rem; border: 2px solid transparent; cursor: pointer; font-family: var(--font-body); }
.btn-gold { background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep)); color: var(--ink-dark); }
.btn-outline { border-color: var(--gold-deep); color: var(--gold-bright); background: transparent; }

/* ===== SECTIONS ===== */
.section { padding: 3.2rem 1.2rem; }
.section.alt { background: rgba(255,255,255,0.02); }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 2.2rem; }
.section-head p { color: var(--muted); }

/* ===== GAME REVIEW GRID (H2-2 games) ===== */
.game-review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin: 0; }
.game-review-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.game-review-card h3 { color: var(--gold-bright); margin-bottom: 0.5rem; }
.game-review-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ===== PROVIDER GRID ===== */
.provider-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; margin-top: 1.6rem; }
.provider-card { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.provider-card img { width: 100%; }

/* ===== STEP LIST (H2-3 register) ===== */
.step-list { display: flex; flex-direction: column; gap: 1.1rem; max-width: 820px; margin: 0 auto; }
.step-item { display: flex; gap: 1.1rem; background: #fff8ea; border: 1px solid #e6d3ac; border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: 0 10px 26px rgba(0,0,0,0.18); }
.step-item .step-num { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--wine); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); }
.step-item h3 { color: var(--ink-dark); margin-bottom: 0.35rem; }
.step-item p { color: var(--muted-dark); font-size: 0.94rem; margin: 0; }

/* ===== FEATURE BANNER (h2/h3 landscape) ===== */
.feature-banner { max-width: 1100px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--gold-deep); }
.feature-banner img { width: 100%; }
.feature-banner-copy { max-width: 820px; margin: 1.6rem auto 0; text-align: center; }
.feature-banner-copy p { color: var(--muted); }

/* ===== MINI CARD STRIP (portrait feature cards) ===== */
.mini-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.1rem; }
.mini-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gold-deep); background: var(--panel); transition: transform 0.18s ease; }
.mini-card:hover { transform: translateY(-6px); }
.mini-card img { width: 100%; }

/* ===== TEASER SPLIT ===== */
.teaser-split { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.teaser-card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.teaser-card img { width: 100%; height: 200px; object-fit: cover; }
.teaser-card-body { padding: 1.4rem; }
.teaser-card-body h3 { color: var(--gold-bright); }
.teaser-card-body p { color: var(--muted); font-size: 0.92rem; }

/* ===== CTA ===== */
.cta-section { position: relative; padding: 1rem 1.2rem 4rem; }
.cta-panel { max-width: 980px; margin: 0 auto; text-align: center; padding: 2.8rem 1.6rem; border-radius: 26px; background: linear-gradient(150deg, var(--wine-deep), var(--panel) 70%); border: 1px solid var(--gold); }
.cta-btns { display: flex; justify-content: center; gap: 0.9rem; margin-top: 1.3rem; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer { text-align: center; padding: 2.6rem 1.2rem 6rem; border-top: 1px solid var(--line); }
.footer-logo { height: 32px; margin: 0 auto 1rem; }
.footer-tagline { color: var(--muted); max-width: 560px; margin: 0 auto 0.6rem; font-size: 0.92rem; }
.footer-copy { color: var(--muted-dark); font-size: 0.82rem; }
.footer-tagline a, .footer-tagline b { color: var(--gold-bright); }

/* ===== LINE FAB ===== */
.line-fab { position: fixed; right: 18px; bottom: 96px; z-index: 60; display: flex; align-items: center; gap: 0.4rem; background: #06c755; color: #fff; padding: 0.6rem 1rem; border-radius: 999px; box-shadow: 0 10px 24px rgba(0,0,0,0.4); font-weight: 700; font-size: 0.85rem; }
.line-fab svg { width: 20px; height: 20px; fill: #fff; }
@media (max-width: 760px) { .line-fab { bottom: 80px; right: 12px; padding: 0.55rem 0.75rem; } .line-fab span { display: none; } }

/* ===== STICKY BAR — bar with diamond notch center button ===== */
.sticky-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: rgba(11, 8, 5, 0.95); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 0.5rem 0.6rem; align-items: center; justify-content: space-between; }
.mnav-item { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; font-size: 0.62rem; color: var(--muted); font-weight: 700; padding: 0.4rem 0.5rem; flex: 1; text-align: center; }
.mnav-item svg { width: 18px; height: 18px; fill: var(--gold); }
.mnav-item.active { color: var(--gold-bright); }
.mnav-item.active svg { fill: var(--gold-bright); }
.mnav-center { position: relative; top: -20px; width: 56px; height: 56px; border-radius: 14px; transform: rotate(45deg); background: linear-gradient(135deg, var(--gold-bright), var(--wine)); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 20px rgba(0,0,0,0.5); border: 2px solid var(--bg); }
.mnav-center svg { transform: rotate(-45deg); width: 24px; height: 24px; fill: #fff; }

/* ===== reveal-on-scroll ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== PAGE (promotion/article) SHARED ===== */
.page-hero { text-align: center; padding: 3rem 1.2rem 1.2rem; max-width: 820px; margin: 0 auto; }
.page-hero h1 { font-size: 1.7rem; }
.page-hero p { color: var(--muted); }
.page-main { max-width: 820px; margin: 0 auto; padding: 1rem 1.2rem 3rem; }
.page-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 1.6rem; border: 1px solid var(--gold-deep); }
.page-content, .article-main { background: #fff8ea; border-radius: var(--radius); padding: 2rem 1.8rem; box-shadow: var(--shadow); }
.page-content h2, .page-content h3, .article-main h1, .article-main h2, .article-main h3 { color: var(--ink-dark); }
.page-content p, .article-main p { color: var(--muted-dark); }
.article-main { max-width: 820px; margin: 2rem auto 3rem; padding: 2rem 1.8rem; }
.article-meta { color: var(--muted-dark); font-size: 0.85rem; margin-top: -0.4rem; }
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin: 1.6rem 0 2rem; }
.promo-card { background: #fff; border: 1px solid #ecdfc4; border-radius: 16px; padding: 1.5rem; }
.promo-card .promo-tag { display: inline-block; background: rgba(107,20,20,0.1); color: var(--wine); font-size: 0.72rem; font-weight: 700; padding: 0.22rem 0.7rem; border-radius: 999px; margin-bottom: 0.7rem; }
.promo-card h3 { color: var(--ink-dark); }
.promo-card p { color: var(--muted-dark); font-size: 0.9rem; margin: 0; }
.action-btns { display: flex; justify-content: center; gap: 0.9rem; margin-top: 1.6rem; flex-wrap: wrap; }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .game-review-grid { grid-template-columns: 1fr; }
  .provider-grid { grid-template-columns: repeat(4, 1fr); }
  .mini-strip { grid-template-columns: repeat(2, 1fr); }
  .teaser-split { grid-template-columns: 1fr; }
  .promo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-menu { display: none; }
  .header-inner { padding: 0.5rem 0.6rem; }
  .provider-grid { grid-template-columns: repeat(3, 1fr); }
  body { padding-bottom: 4.6rem; }
  .sticky-bar { display: flex; }
}
