/* ========================================================================
   YO66 — "Fresh Green Energy" theme
   Lime green / deep green / orange accent, energetic straightforward tone
   Structural signature: classic 3-zone header (logo-left/nav-center/btn-right),
   split hero (text/contained banner), plain feature-card grid (not a fan),
   full-width bottom-nav bar with underline active state
   ======================================================================== */

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

:root {
  --bg: #0e1b0a;
  --bg-alt: #12220d;
  --panel: #16300f;
  --green: #3ecf1e;
  --green-bright: #7dff4a;
  --green-deep: #1f7a0f;
  --orange: #ff9518;
  --orange-deep: #e0740a;
  --cream: #ffffff;
  --text: #ffffff;
  --muted: #d9f2cf;
  --ink-dark: #103808;
  --muted-dark: #3c5a33;
  --line: rgba(126, 255, 74, 0.25);
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.5);
  --radius: 20px;
  --font-head: 'Chakra Petch', 'Maitree', sans-serif;
  --font-body: 'Maitree', sans-serif;
}

body {
  background: linear-gradient(rgba(14,27,10,.2), rgba(14,27,10,.2)), url("assets/img/BG web - YO66.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(14,27,10,.2), rgba(14,27,10,.2)), url("assets/img/BG phone - YO66.webp") center/cover fixed; background-attachment: scroll; }
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; color: var(--cream); line-height: 1.34; margin: 0 0 0.6rem; }
h1 { font-size: clamp(1.8rem, 4.2vw, 2.85rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.95rem); }
h3 { font-size: 1.05rem; }
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(--green-bright), var(--green) 60%, var(--green-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kw { background: linear-gradient(120deg, var(--green-bright), var(--orange) 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.8rem; letter-spacing: 0.08em; color: var(--green-bright); font-weight: 700; margin-bottom: 0.7rem; text-transform: uppercase; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); display: inline-block; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.78rem 1.8rem; border-radius: 10px; font-weight: 700; font-size: 0.98rem; border: 2px solid transparent; cursor: pointer; transition: transform 0.18s ease; white-space: nowrap; font-family: var(--font-head); }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, var(--orange), var(--orange-deep)); color: #2a1400; box-shadow: 0 10px 24px rgba(224, 116, 10, 0.35); }
.btn-outline { background: rgba(126, 255, 74, 0.1); color: var(--green-bright); border-color: var(--green-deep); }

/* image-based CTA buttons (LOGIN/REGISTER graphics) */
.img-btn { display: inline-block; height: 46px; transition: transform 0.18s ease, filter 0.18s ease; }
.img-btn img { height: 100%; width: auto; display: block; }
.img-btn:hover { transform: translateY(-2px); }
.img-btn.lg { height: 56px; }
.img-btn.sm { height: 36px; }

/* LINE floating button */
.line-fab { position: fixed; right: 16px; bottom: 88px; 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); }
.line-fab svg { width: 20px; height: 20px; fill: #fff; }
@media (max-width: 760px) { .line-fab { bottom: 74px; right: 12px; padding: 0.55rem 0.8rem; } .line-fab span { display: none; } }

/* ===== HEADER — classic 3-zone: logo-left / nav-center / buttons-right ===== */
.header { position: sticky; top: 0; z-index: 50; background: rgba(14, 27, 10, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1280px; margin: 0 auto; padding: 0.7rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.logo-link { display: flex; align-items: center; }
.logo-img { height: 42px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 1.6rem; }
.nav-link { font-size: 0.94rem; color: var(--muted); font-weight: 600; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.nav-link:hover, .nav-link.active { color: var(--green-bright); border-color: var(--green-bright); }
.header-btns { display: flex; align-items: center; gap: 0.7rem; }
.header-row2 { display: none; }

/* ===== HERO — split: text left / contained banner right ===== */
.hero { padding: 2.6rem 1.5rem 3.2rem; position: relative; overflow: hidden; }
.hero-figure { position: absolute; width: 110px; opacity: 0.9; pointer-events: none; z-index: 1; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.35)); }
.hero-figure.hf1 { right: 1%; top: 4px; width: 96px; }
.hero-figure.hf2 { left: 0.5%; bottom: 2px; width: 92px; }
@media (max-width: 900px) { .hero-figure { display: none; } }
.hero-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.2rem; align-items: center; position: relative; z-index: 2; }
.hero-copy { background: rgba(10, 33, 6, 0.68); backdrop-filter: blur(10px); border-radius: 26px; padding: 1.8rem; }
.hero-copy .eyebrow { display: flex; }
.hero-copy p { color: var(--muted); font-size: 1.02rem; }
.hero-actions { display: flex; align-items: center; gap: 0.9rem; margin-top: 1.3rem; flex-wrap: wrap; }
.hero-banner { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 3px solid var(--green-deep); }

/* ===== SECTIONS ===== */
.section { padding: 3.2rem 1.5rem; background: rgba(14, 27, 10, 0.2); }
.section.alt { background: rgba(18, 34, 13, 0.28); }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-head { max-width: 760px; margin: 0 auto 2.1rem; text-align: center; background: rgba(10, 33, 6, 0.62); backdrop-filter: blur(10px); border-radius: 24px; padding: 1.6rem 1.8rem; }
.section-head 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-radius: 14px; padding: 0.6rem; border: 1px solid var(--line); transition: transform 0.18s ease; }
.provider-card:hover { transform: translateY(-4px); }
.provider-card img { width: 100%; }

/* ===== FEATURE CARD GRID (portrait cards, plain grid — not a fan) ===== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.feature-grid .fcard { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 2px solid var(--green-deep); transition: transform 0.18s ease; }
.feature-grid .fcard:hover { transform: translateY(-6px); }
.feature-grid .fcard img { width: 100%; }

/* ===== FEATURE BLOCK (text + landscape banner) ===== */
.feature-block { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem; align-items: center; }
.feature-block.flip .fb-media { order: 2; }
.feature-block.flip .fb-copy { order: 1; }
.fb-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 2px solid var(--green-deep); }
.fb-copy { background: rgba(10, 33, 6, 0.62); backdrop-filter: blur(10px); border-radius: 24px; padding: 1.8rem; }
.fb-copy p { color: var(--muted); }

/* ===== STEP CARDS ===== */
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.step-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.step-card .step-num { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--green-bright), var(--green-deep)); color: #06210a; font-weight: 800; font-family: var(--font-head); margin-bottom: 0.8rem; }
.step-card p { color: var(--muted); font-size: 0.9rem; 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: 1px solid var(--line); 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 { position: relative; padding: 1rem 1.5rem 4rem; }
.cta-figure { position: absolute; right: 3%; bottom: 4rem; width: 120px; opacity: 0.95; pointer-events: none; z-index: 1; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.4)); }
@media (max-width: 900px) { .cta-figure { display: none; } }
.cta-panel { max-width: 980px; margin: 0 auto; text-align: center; padding: 2.6rem 1.6rem; border-radius: 26px; background: linear-gradient(150deg, var(--green-deep), var(--panel)); border: 1px solid var(--green-bright); }
.cta-btns { display: flex; justify-content: center; gap: 0.9rem; margin-top: 1.3rem; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer { padding: 2.8rem 1.5rem 6.5rem; text-align: center; background: rgba(18, 34, 13, 0.88); border-top: 1px solid var(--line); }
.footer-logo { height: 60px; 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 — full-width bar, underline active state ===== */
.sticky-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; align-items: center; justify-content: space-around; background: rgba(14, 27, 10, 0.97); border-top: 1px solid var(--line); padding: 0.5rem 0.4rem; }
.mnav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.15rem; font-size: 0.64rem; color: var(--muted); font-weight: 700; padding: 0.35rem 0.1rem; border-top: 2px solid transparent; }
.mnav-item svg { width: 19px; height: 19px; fill: var(--muted); }
.mnav-item.active { color: var(--green-bright); border-top-color: var(--green-bright); }
.mnav-item.active svg { fill: var(--green-bright); }

/* ===== PAGE (promotion / article) ===== */
.page-hero { padding: 2.4rem 1.5rem 1rem; text-align: center; }
.page-hero-inner { display: inline-block; background: rgba(10, 33, 6, 0.68); backdrop-filter: blur(10px); border-radius: 26px; padding: 1.8rem 2rem; max-width: 780px; }
.page-hero .eyebrow { justify-content: center; display: flex; }
.page-hero h1 { max-width: 780px; margin: 0 auto 0.6rem; }
.page-hero p { max-width: 640px; margin: 0 auto; color: var(--muted); }
.page-main { max-width: 940px; margin: 2rem auto; padding: 2.2rem 1.5rem 4rem; background: rgba(255,255,255,0.94); border-radius: 28px; color: var(--ink-dark); }
.page-main p { color: var(--muted-dark); }
.page-main h2 { color: var(--green-deep); margin-top: 2.1rem; }
.page-main h2:first-child { margin-top: 0; }
.page-cover { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 2rem; }
.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-dark); }
.page-content ul li::before { content: "●"; position: absolute; left: 0; color: var(--orange-deep); font-size: 0.7rem; top: 0.35rem; }

.tip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin: 1.6rem 0 2rem; }
.tip-card { background: #fff; border: 1px solid #e2ecdc; border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 10px 26px rgba(16,56,8,0.08); }
.tip-card .tip-num { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: #2a1400; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 0.8rem; font-family: var(--font-head); }
.tip-card h3 { color: var(--ink-dark); }
.tip-card p { color: var(--muted-dark); font-size: 0.9rem; margin: 0; }

.article-main { max-width: 780px; margin: 2rem auto; padding: 2.4rem 1.5rem 4rem; background: rgba(255,255,255,0.94); border-radius: 28px; color: var(--ink-dark); }
.article-main .eyebrow { justify-content: center; display: flex; }
.article-main h1 { text-align: center; color: var(--green-deep); }
.article-main h2 { color: var(--green-deep); margin-top: 2rem; }
.article-main p { color: var(--muted-dark); }
.article-meta { text-align: center; color: var(--muted-dark); font-size: 0.85rem; margin-bottom: 1.8rem; }
.step-list { display: flex; flex-direction: column; gap: 1.1rem; margin: 1.6rem 0; }
.step-item { display: flex; gap: 1rem; background: #fff; border: 1px solid #e2ecdc; border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: 0 10px 26px rgba(16,56,8,0.08); }
.step-item .step-num { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--green-deep); 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.92rem; margin: 0; }
.action-btns { display: flex; justify-content: center; align-items: center; gap: 0.8rem; 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) {
  .hero-inner { grid-template-columns: 1fr; }
  .feature-block, .feature-block.flip { grid-template-columns: 1fr; }
  .feature-block.flip .fb-media, .feature-block.flip .fb-copy { order: initial; }
  .teaser-split { grid-template-columns: 1fr; }
  .tip-grid { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: 1fr; }
  .provider-grid { grid-template-columns: repeat(4, 1fr); }
  .feature-grid { grid-template-columns: repeat(1, 1fr); max-width: 340px; margin: 0 auto; }
}
@media (max-width: 760px) {
  .nav-menu { display: none; }
  .provider-grid { grid-template-columns: repeat(3, 1fr); }
  body { padding-bottom: 4.6rem; }
  .sticky-bar { display: flex; }
}
