/* ========================================================================
   MUNKONG88 — "Neon Carnival" theme
   Near-black / vivid orange / gold / hot-pink pop, loud Gen-Z hype energy
   Structural signature: floating pill header (margin from edge) + marquee
   ticker strip below it, single-column chunky "clay" cards with thick
   borders + double shadow, oversized circular center button bottom-nav
   ======================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }

:root {
  --bg: #1a0f08;
  --bg-alt: #241407;
  --panel: #2c1a0c;
  --orange: #ff7a1a;
  --orange-bright: #ffa14d;
  --orange-deep: #e0600a;
  --gold: #ffd34d;
  --gold-deep: #e0a923;
  --pink: #ff3d8a;
  --cream: #ffffff;
  --text: #ffffff;
  --muted: #ffffff;
  --line: rgba(255, 122, 26, 0.3);
  --shadow-a: 0 6px 0 rgba(0,0,0,0.35);
  --shadow-b: 0 16px 34px rgba(0, 0, 0, 0.5);
  --radius: 24px;
  --font-head: 'Kodchasan', 'Fahkwang', sans-serif;
  --font-body: 'Fahkwang', sans-serif;
}

body {
  background: linear-gradient(rgba(26,15,8,.2), rgba(26,15,8,.2)), url("assets/img/BG web -มั่นคง88.webp") center/cover fixed;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (max-width: 760px) {
  body { background: linear-gradient(rgba(26,15,8,.2), rgba(26,15,8,.2)), url("assets/img/BG mobile -มั่นคง88.webp") center/cover fixed; background-attachment: scroll; }
}

/* LINE floating button */
.line-fab { position: fixed; right: 16px; bottom: 92px; z-index: 65; display: flex; align-items: center; gap: 0.4rem; background: #06c755; color: #fff; padding: 0.6rem 1rem; border-radius: 999px; font-weight: 700; font-size: 0.85rem; font-family: var(--font-head); box-shadow: 0 10px 24px rgba(6,199,85,0.45); border: 2px solid #1a0f08; }
.line-fab svg { width: 20px; height: 20px; fill: #fff; }
@media (max-width: 760px) { .line-fab { bottom: 78px; right: 12px; padding: 0.55rem 0.8rem; } .line-fab span { display: none; } }

.hero-figure { position: absolute; width: 110px; opacity: 0.9; pointer-events: none; z-index: 1; filter: drop-shadow(0 12px 20px rgba(0,0,0,0.5)); }
.hero-figure.hf1 { right: 2%; top: 0; }
.hero-figure.hf2 { left: 1%; bottom: 0; width: 90px; }
@media (max-width: 760px) { .hero-figure { display: none; } }

.mini-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.mini-card { border-radius: var(--radius); overflow: hidden; border: 3px solid var(--gold-deep); background: var(--panel); }
.mini-card img { width: 100%; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; color: var(--cream); line-height: 1.32; margin: 0 0 0.6rem; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1rem; color: var(--text); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.grad-text { background: linear-gradient(120deg, var(--gold), var(--orange-bright) 55%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kw { background: linear-gradient(120deg, var(--gold), var(--pink) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }

.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; letter-spacing: 0.04em; color: var(--gold); font-weight: 700; margin-bottom: 0.7rem; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); display: inline-block; }

/* ===== BUTTONS — chunky clay ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.85rem 1.9rem; border-radius: 999px; font-weight: 700; font-size: 1rem; border: 3px solid #1a0f08; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; white-space: nowrap; font-family: var(--font-head); box-shadow: var(--shadow-a); }
.btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 rgba(0,0,0,0.35); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #2a1600; }
.btn-outline { background: var(--panel); color: var(--gold); border-color: var(--gold-deep); }

/* ===== HEADER — floating pill with margin, mascot peek ===== */
.header-wrap { padding: 0.8rem 1rem 0; position: sticky; top: 0; z-index: 50; background: rgba(26, 15, 8, 0.85); backdrop-filter: blur(6px); }
.header { max-width: 1200px; margin: 0 auto; background: var(--panel); border: 3px solid var(--orange-deep); border-radius: 22px; box-shadow: var(--shadow-b); }
.header-inner { padding: 0.6rem 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo-link { display: flex; align-items: center; gap: 0.5rem; }
.logo-img { height: 42px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 1.2rem; }
.nav-link { font-size: 0.92rem; color: var(--text); font-weight: 600; }
.nav-link:hover { color: var(--gold); }
.header-btns { display: flex; align-items: center; gap: 0.6rem; }
.header-row2 { display: none; }

/* ===== MARQUEE TICKER — under header ===== */
.ticker-bar { overflow: hidden; background: var(--orange-deep); padding: 0.55rem 0; margin-top: 0.8rem; }
.ticker-track { display: flex; gap: 3rem; white-space: nowrap; animation: ticker-scroll 18s linear infinite; }
.ticker-track span { font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; color: var(--cream); }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== HERO ===== */
.hero { padding: 2.4rem 1.5rem 3rem; text-align: center; position: relative; overflow: hidden; }
.hero-inner { max-width: 820px; margin: 0 auto; position: relative; z-index: 2; }
.hero .eyebrow { justify-content: center; display: flex; }
.hero-inner p { color: var(--muted); font-size: 1.02rem; }
.hero-actions { display: flex; justify-content: center; gap: 1rem; margin-top: 1.4rem; flex-wrap: wrap; }
.hero-banner { max-width: 1000px; margin: 2.2rem auto 0; border-radius: var(--radius); overflow: hidden; border: 4px solid var(--orange-deep); box-shadow: var(--shadow-b); transform: rotate(-0.6deg); }

/* ===== SECTIONS ===== */
.section { padding: 3.2rem 1.5rem; background: rgba(26, 15, 8, 0.2); }
.section.alt { background: rgba(36, 20, 7, 0.25); }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-head { max-width: 720px; margin: 0 auto 2.1rem; text-align: center; }
.section-head p { color: var(--muted); }

/* ===== CLAY FEATURE CARD (single-column, stacked, thick border) — signature ===== */
.clay-card { max-width: 980px; margin: 0 auto 1.8rem; background: var(--panel); border: 3px solid var(--orange-deep); border-radius: var(--radius); box-shadow: var(--shadow-b); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.clay-card:last-child { margin-bottom: 0; }
.clay-card.flip { direction: rtl; }
.clay-card.flip .clay-copy, .clay-card.flip .clay-media { direction: ltr; }
.clay-media img { height: 100%; object-fit: cover; }
.clay-copy { padding: 2rem; }
.clay-copy p { color: var(--muted); }

/* ===== GAME GRID ===== */
.provider-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.provider-card { display: block; background: var(--panel); border: 2px solid var(--line); border-radius: 16px; padding: 0.6rem; transition: transform 0.15s ease; }
.provider-card:hover { transform: translateY(-4px) rotate(1deg); }
.provider-card img { width: 100%; }

/* ===== 3-CARD SPEECH-BUBBLE STRIP ===== */
.bubble-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.bubble-card { position: relative; background: var(--panel); border: 3px solid var(--gold-deep); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-a); }
.bubble-card::after { content: ""; position: absolute; left: 30px; bottom: -14px; width: 0; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 14px solid var(--gold-deep); }
.bubble-card h3 { color: var(--gold); }
.bubble-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ===== TEASER SPLIT ===== */
.teaser-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.teaser-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--panel); border: 3px solid var(--orange-deep); display: flex; flex-direction: column; }
.teaser-card img { height: 150px; object-fit: cover; width: 100%; }
.teaser-card-body { padding: 1.3rem 1.4rem; }
.teaser-card h3 { margin-bottom: 0.35rem; }
.teaser-card p { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.9rem; }

/* ===== CTA ===== */
.cta-section { padding: 1rem 1.5rem 4rem; }
.cta-panel { max-width: 1020px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1.6rem; padding: 2.2rem; border-radius: 28px; background: linear-gradient(135deg, var(--orange-deep), var(--panel) 70%); border: 3px solid var(--gold); box-shadow: var(--shadow-b); }
.cta-panel img { width: 130px; }
.cta-btns { display: flex; gap: 1rem; margin-top: 1.3rem; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer { padding: 2.8rem 1.5rem 7.5rem; text-align: center; background: rgba(36, 20, 7, 0.9); border-top: 3px solid var(--orange-deep); }
.footer-logo { height: 72px; margin: 0 auto 1rem; }
.footer-tagline { max-width: 620px; margin: 0 auto 1rem; color: var(--muted); font-size: 0.9rem; }
.footer-copy { color: var(--muted); font-size: 0.8rem; margin: 0; }

/* ===== BOTTOM NAV — oversized circular center button ===== */
.sticky-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; align-items: center; justify-content: space-between; background: var(--panel); border-top: 3px solid var(--orange-deep); padding: 0.5rem 0.6rem; }
.mnav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.15rem; font-size: 0.66rem; color: var(--muted); font-weight: 700; padding: 0.3rem 0.1rem; }
.mnav-item svg { width: 20px; height: 20px; fill: var(--muted); }
.mnav-center { width: 68px; height: 68px; border-radius: 50%; margin-top: -30px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--gold), var(--orange-deep)); border: 4px solid var(--bg); box-shadow: 0 10px 22px rgba(255, 122, 26, 0.5); }
.mnav-center svg { width: 30px; height: 30px; fill: #2a1600; }

/* ===== PAGE (promotion / article) ===== */
.page-hero { padding: 2.4rem 1.5rem 1rem; text-align: center; }
.page-hero .eyebrow { justify-content: center; display: flex; }
.page-hero h1 { max-width: 800px; margin: 0 auto 0.6rem; }
.page-hero p { max-width: 640px; margin: 0 auto; color: var(--muted); }
.page-main { max-width: 940px; margin: 0 auto; padding: 2.2rem 1.5rem 4rem; }
.page-cover { border-radius: var(--radius); overflow: hidden; border: 3px solid var(--orange-deep); box-shadow: var(--shadow-b); margin-bottom: 2rem; }
.page-content h2 { color: var(--gold); margin-top: 2.1rem; }
.page-content h2:first-child { margin-top: 0; }
.page-content ul { margin: 1rem 0; display: flex; flex-direction: column; gap: 0.55rem; }
.page-content ul li { padding-left: 1.5rem; position: relative; color: var(--muted); }
.page-content ul li::before { content: "★"; position: absolute; left: 0; color: var(--pink); font-size: 0.7rem; top: 0.35rem; }
.promo-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin: 1.6rem 0 2rem; }
.promo-strip img { border-radius: var(--radius); border: 3px solid var(--orange-deep); }

.article-main { max-width: 780px; margin: 0 auto; padding: 2.4rem 1.5rem 4rem; }
.article-main .eyebrow { justify-content: center; display: flex; }
.article-main h1 { text-align: center; }
.article-meta { text-align: center; color: var(--muted); font-size: 0.85rem; margin-bottom: 1.8rem; }
.game-review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin: 1.8rem 0; }
.game-review-card { background: var(--panel); border: 3px solid var(--gold-deep); border-radius: var(--radius); padding: 1.4rem; }
.game-review-card h3 { color: var(--gold); margin-bottom: 0.5rem; }
.game-review-card p { color: var(--muted); font-size: 0.9rem; margin: 0; }
.action-btns { display: flex; justify-content: center; gap: 0.9rem; flex-wrap: wrap; margin-top: 2rem; }

/* ===== 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); }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .clay-card, .clay-card.flip { grid-template-columns: 1fr; direction: ltr; }
  .clay-media img { height: 220px; width: 100%; }
  .bubble-strip { grid-template-columns: 1fr; }
  .teaser-split { grid-template-columns: 1fr; }
  .promo-strip { grid-template-columns: 1fr; }
  .game-review-grid { grid-template-columns: 1fr; }
  .provider-grid { grid-template-columns: repeat(4, 1fr); }
  .cta-panel { grid-template-columns: 1fr; text-align: center; }
  .cta-panel img { margin: 0 auto; }
  .cta-btns { justify-content: center; }
}
@media (max-width: 760px) {
  .nav-menu { display: none; }
  .header-btns .btn-outline { display: none; }
  .provider-grid { grid-template-columns: repeat(3, 1fr); }
  body { padding-bottom: 5.6rem; }
  .sticky-bar { display: flex; }
}
