/* ============================================================
   Passion Community — design system
   Dark, warm, raspberry-pink. Derived from the brand logo.
   Font: Noto Sans Thai. Formal, wide layout, restrained glow.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* surfaces — raspberry-tinted near-black, never neutral */
  --bg:        oklch(0.17 0.035 350);
  --bg-2:      oklch(0.205 0.042 351);
  --surface:   oklch(0.235 0.050 352);
  --surface-2: oklch(0.275 0.055 353);
  --line:      oklch(0.36 0.050 352);
  --line-soft: oklch(0.36 0.050 352 / 0.5);

  /* ink */
  --ink:    oklch(0.97 0.012 350);
  --muted:  oklch(0.82 0.030 350);
  --faint:  oklch(0.70 0.035 350);

  /* brand */
  --brand:      oklch(0.62 0.215 8);
  --brand-deep: oklch(0.52 0.205 6);
  --pink:       oklch(0.82 0.120 354);
  --pink-soft:  oklch(0.88 0.075 350);
  --rose:       oklch(0.70 0.170 10);
  --ok:         oklch(0.80 0.140 165);

  /* glow helpers — restrained */
  --glow-brand: 0 0 0 1px oklch(0.62 0.215 8 / .22), 0 12px 30px -16px oklch(0.62 0.215 8 / .35);
  --glow-pink:  0 0 22px -12px oklch(0.82 0.120 354 / .3);

  /* white sticker outline (logo motif) */
  --sticker: 0 0 0 2px oklch(0.99 0 0 / .8);

  --radius:    12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --maxw: 1280px;

  --font-body:    "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* z-scale */
  --z-orbs: 0;
  --z-base: 1;
  --z-nav: 50;
  --z-sheet: 60;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);     /* ease-out-expo */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }

/* ===== Cinematic video background (all pages, injected by app.js) ===== */
.site-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg); }
.site-bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.6) saturate(1.08); }
.site-bg-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 110% at 72% 6%, oklch(0.62 0.215 8 / .15), transparent 46%),
    linear-gradient(180deg, oklch(0.16 0.035 350 / .82) 0%, oklch(0.16 0.04 350 / .70) 42%, oklch(0.15 0.035 350 / .92) 100%);
}
@media (prefers-reduced-motion: reduce) { .site-bg-video { display: none; } }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: transparent;
  line-height: 1.75;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* fixed ambient backdrop — soft, low intensity */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-orbs);
  pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 82% -10%, oklch(0.62 0.215 8 / .13), transparent 60%),
    radial-gradient(48rem 36rem at 6% 4%,    oklch(0.78 0.14 350 / .07), transparent 58%),
    radial-gradient(50rem 50rem at 50% 120%, oklch(0.58 0.20 6 / .10),  transparent 62%);
}

a { color: var(--pink); text-decoration: none; transition: color .2s; }
a:hover { color: var(--pink-soft); }

img { max-width: 100%; display: block; }

::selection { background: oklch(0.62 0.215 8 / .4); color: #fff; }

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 6px;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 4vw, 44px); position: relative; z-index: var(--z-base); }

/* ---------- Drifting orbs (decorative, per-page) — subtle ---------- */
.orbs { position: fixed; inset: 0; z-index: var(--z-orbs); pointer-events: none; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .28;
  animation: drift 26s var(--ease-out-quart) infinite alternate;
}
.orb.a { width: 32rem; height: 32rem; top: -10rem; right: -8rem; background: radial-gradient(circle, var(--brand), transparent 70%); }
.orb.b { width: 26rem; height: 26rem; bottom: -10rem; left: -8rem; background: radial-gradient(circle, var(--rose), transparent 70%); animation-duration: 32s; }
.orb.c { width: 20rem; height: 20rem; top: 42%; left: 56%; background: radial-gradient(circle, var(--pink), transparent 70%); opacity: .12; animation-duration: 36s; }

@keyframes drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(2rem, 1.6rem, 0) scale(1.1); }
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 14px; --pad-x: 28px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: var(--pad-y) var(--pad-x); border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .2s;
  min-height: 48px; text-align: center; line-height: 1.1;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: var(--glow-brand);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 0 0 1px oklch(0.62 0.215 8 / .3), 0 16px 34px -16px oklch(0.62 0.215 8 / .5); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  color: var(--ink);
  background: oklch(0.235 0.05 352 / .7);
  border-color: var(--line);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { color: var(--ink); border-color: var(--pink); transform: translateY(-2px); box-shadow: var(--glow-pink); }
.btn-block { width: 100%; }
.btn-lg { --pad-y: 16px; --pad-x: 34px; font-size: 1.05rem; }

/* ---------- Pill badge ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: oklch(0.235 0.05 352 / .7); border: 1px solid var(--line);
  padding: 7px 16px 7px 13px; border-radius: 999px; font-size: .86rem; color: var(--muted);
  font-weight: 500; backdrop-filter: blur(8px);
}
.badge .live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px oklch(0.80 0.14 165 / .18); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px oklch(0.80 0.14 165 / 0); } }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: oklch(0.17 0.035 350 / .78);
  backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--ink); letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand img { height: 48px; width: auto; filter: drop-shadow(0 2px 8px oklch(0.62 0.215 8 / .4)); }
.brand .mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: var(--sticker);
  display: grid; place-items: center; color: #fff; font-size: 18px;
}
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; }
.brand .wordmark { font-size: clamp(1.15rem, 1.5vw, 1.32rem); }
.wm-accent { color: var(--pink); }
.hero-logo .wordmark { font-size: clamp(1.8rem, 5vw, 2.8rem); color: var(--pink); }

.nav-links { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); }
.nav-links a { color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav-links a:not(.nav-cta):not(.nav-login):hover { color: var(--ink); }
/* uniform active state across every page: plain links → pink; the account button → pink ring */
.nav-links a.active { color: var(--pink); font-weight: 600; }
.nav-login.active { color: var(--pink) !important; border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink) inset; }

/* Discord login / account button */
.nav-login {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; line-height: 1;
  color: var(--ink); padding: 10px 18px; border-radius: 10px;
  border: 1px solid var(--line); background: oklch(0.235 0.05 352 / .7);
  transition: transform .2s var(--ease-out), background .2s, box-shadow .2s, border-color .2s;
}
.nav-login .dc-ico { width: 20px; height: 20px; flex: none; }
.nav-login.is-discord {
  color: #fff !important; background: #5865F2; border-color: transparent;
  box-shadow: 0 10px 26px -12px #5865F2, 0 0 0 1px oklch(1 0 0 / .12) inset;
}
.nav-login.is-discord:hover { background: #4752c4; transform: translateY(-1px); box-shadow: 0 14px 30px -12px #5865F2; }
.nav-login:not(.is-discord):hover { border-color: var(--pink); color: var(--ink); transform: translateY(-1px); }

/* ===== Discord — join button + live widget ===== */
.btn-discord { background: #5865F2; color: #fff !important; border: 0; box-shadow: 0 10px 26px -12px #5865F2; }
.btn-discord:hover { background: #4752c4; transform: translateY(-1px); box-shadow: 0 16px 34px -14px #5865F2; }
.btn .dc-ico { width: 1.3em; height: 1.3em; flex: none; }

.discord-card {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center;
  max-width: 500px; margin: 0 auto 24px; padding: 15px 18px;
  background: linear-gradient(135deg, oklch(0.32 0.10 277 / .30), oklch(0.235 0.05 352 / .65));
  border: 1px solid oklch(0.55 0.15 274 / .45); border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px oklch(1 0 0 / .04) inset, 0 14px 34px -22px #5865F2;
}
.dc-card-icon {
  width: 52px; height: 52px; border-radius: 14px; flex: none; display: grid; place-items: center;
  background: #5865F2; overflow: hidden; box-shadow: 0 6px 16px -8px #5865F2;
}
.dc-card-icon img { width: 100%; height: 100%; object-fit: cover; }
.dc-card-icon svg { width: 30px; height: 30px; color: #fff; }
.dc-card-info { text-align: left; flex: 1 1 auto; min-width: 0; }
.dc-card-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.04rem; color: var(--ink); }
.dc-card-stats { display: flex; gap: 16px; margin-top: 5px; flex-wrap: wrap; }
.dc-stat { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); }
.dc-stat b { color: var(--ink); font-weight: 700; }
.dc-stat .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.dc-stat.online .dot { background: #3ba55d; box-shadow: 0 0 8px #3ba55d; animation: pulse 2s infinite; }
.discord-card .btn { flex: none; }
@media (max-width: 460px) {
  .dc-card-info { text-align: center; flex-basis: 100%; }
  .discord-card { justify-content: center; }
}
.nav-cta {
  font-family: var(--font-display); font-weight: 600;
  color: #fff !important; padding: 10px 20px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: var(--glow-brand); transition: transform .2s var(--ease-out), box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); }

.menu-btn { display: none; background: oklch(0.235 0.05 352 / .7); border: 1px solid var(--line); color: var(--ink); width: 46px; height: 46px; border-radius: 12px; font-size: 22px; cursor: pointer; align-items: center; justify-content: center; }

/* mobile sheet */
@media (max-width: 880px) {
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 4px; padding: 16px clamp(20px, 4vw, 44px) 26px;
    background: oklch(0.17 0.035 350 / .97); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line); z-index: var(--z-sheet);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .3s var(--ease-out), opacity .3s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 13px 8px; font-size: 1.05rem; border-radius: 10px; }
  .nav-links a:not(.nav-cta):hover { background: var(--surface); }
  .nav-links .nav-cta { text-align: center; margin-top: 8px; }
  .nav-links .nav-login { justify-content: center; margin-top: 8px; }
  .menu-btn { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 9vw, 108px) 0 clamp(40px, 6vw, 76px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(30px, 6vw, 72px); align-items: center; }
.hero-copy { max-width: 40rem; }
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.2rem, 5.2vw, 4rem); line-height: 1.12; letter-spacing: -0.015em;
  margin: 18px 0 18px; text-wrap: balance;
}
.hero h1 .soft { color: var(--pink); display: inline-block; }
.hero p.lead { font-size: clamp(1.02rem, 1.5vw, 1.16rem); color: var(--muted); margin: 0 0 30px; max-width: 36rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 22px; color: var(--faint); font-size: .9rem; display: flex; align-items: center; gap: 8px; }

/* hero logo showcase — gentle halo */
.hero-logo { position: relative; display: grid; place-items: center; }
.hero-logo::before {
  content: ""; position: absolute; width: 84%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, oklch(0.62 0.215 8 / .3), oklch(0.78 0.14 350 / .13) 45%, transparent 70%);
  filter: blur(26px); animation: halo 7s ease-in-out infinite;
}
.hero-logo img { position: relative; width: clamp(250px, 36vw, 460px); filter: drop-shadow(0 14px 32px oklch(0.62 0.215 8 / .32)); }
@keyframes halo { 50% { transform: scale(1.06); opacity: .85; } }

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(36px, 5vw, 56px); }
.stats.stats-3 { grid-template-columns: repeat(3, 1fr); }
.stat {
  background: oklch(0.235 0.05 352 / .55); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: clamp(18px, 2.4vw, 26px); text-align: center;
  backdrop-filter: blur(6px);
  transition: transform .25s var(--ease-out), border-color .25s, background .25s;
}
.stat:hover { transform: translateY(-3px); border-color: oklch(0.62 0.215 8 / .4); background: oklch(0.25 0.055 352 / .62); }
.stat .n { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--ink); line-height: 1; }
.stat .n .accent { color: var(--pink); }
.stat .l { color: var(--faint); font-size: .85rem; margin-top: 6px; }

/* ---------- Server uptime ---------- */
.uptime {
  position: relative; overflow: hidden;
  max-width: 940px; margin: 0 auto; text-align: center;
  background:
    radial-gradient(130% 150% at 50% -20%, oklch(0.62 0.215 8 / .16), transparent 58%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4.4vw, 48px) clamp(18px, 4vw, 52px);
  box-shadow: var(--glow-pink), 0 30px 60px -40px oklch(0.62 0.215 8 / .5);
}
.uptime::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, oklch(0.82 0.12 354 / .55), transparent);
}
.uptime-glow {
  position: absolute; inset: auto -10% -60% -10%; height: 70%; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 100%, oklch(0.82 0.12 354 / .14), transparent 70%);
}
.uptime-head { position: relative; margin-bottom: clamp(22px, 3.4vw, 34px); }
.uptime-live {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ok); font-weight: 600; font-size: .88rem;
  background: oklch(0.80 0.14 165 / .1); border: 1px solid oklch(0.80 0.14 165 / .32);
  padding: 5px 15px 5px 11px; border-radius: 999px; margin-bottom: 16px;
}
.uptime-live .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0 oklch(0.80 0.14 165 / .6); animation: pulse 2s infinite;
}
.uptime-title { font-family: var(--font-display); font-weight: 800; line-height: 1.12; font-size: clamp(1.5rem, 3.6vw, 2.3rem); margin: 0 0 8px; }
.uptime-since { color: var(--faint); font-size: .92rem; margin: 0; }
.uptime-since b { color: var(--pink); font-weight: 600; }
.uptime-grid { position: relative; display: flex; align-items: stretch; justify-content: center; gap: clamp(6px, 1.4vw, 14px); flex-wrap: wrap; }
.uptime-cell {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  background: oklch(0.20 0.045 351 / .72); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: clamp(14px, 2vw, 22px) clamp(12px, 2.6vw, 26px);
  min-width: clamp(78px, 12vw, 116px); backdrop-filter: blur(6px);
}
.uptime-cell .num {
  font-family: var(--font-display); font-weight: 800; line-height: 1; color: var(--ink);
  font-size: clamp(2rem, 5.6vw, 3.4rem);
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
}
.uptime-cell .num.pink { color: var(--pink); text-shadow: var(--glow-pink); }
.uptime-cell .unit { color: var(--faint); font-size: .82rem; font-weight: 500; letter-spacing: .01em; }
.uptime-colon {
  align-self: center; font-family: var(--font-display); font-weight: 700; color: var(--pink);
  font-size: clamp(1.4rem, 3vw, 2.4rem); opacity: .45; animation: blink 2s steps(1) infinite;
}
@media (max-width: 560px) {
  .uptime-colon { display: none; }
  .uptime-grid { gap: 8px; }
  .uptime-cell { min-width: 0; flex: 1 1 28%; padding: 14px 8px; }
}

/* ---------- Section ---------- */
.section { padding: clamp(60px, 9vw, 108px) 0; position: relative; }
.section.band { background: linear-gradient(180deg, transparent, var(--bg-2) 12%, var(--bg-2) 88%, transparent); }
.section-head { max-width: 46rem; margin: 0 auto clamp(40px, 5vw, 60px); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--pink); font-weight: 600; font-size: .95rem; margin-bottom: 14px; }
.section h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.18; letter-spacing: -0.015em; margin: 0 0 14px; text-wrap: balance; }
.section .sub { color: var(--muted); font-size: 1.04rem; margin: 0; }

/* ---------- Bubble cards (feature grid) ---------- */
.bubbles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(16px, 2vw, 24px); }
.bubble {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 32px);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s;
}
.bubble:hover { transform: translateY(-4px); border-color: oklch(0.62 0.215 8 / .5); box-shadow: 0 16px 34px -22px oklch(0.62 0.215 8 / .5); }
.bubble .ico {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  font-size: 26px; margin-bottom: 16px;
  background: linear-gradient(135deg, oklch(0.62 0.215 8 / .18), oklch(0.78 0.14 350 / .1));
  border: 1px solid var(--line);
}
.bubble h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; margin: 0 0 8px; }
.bubble p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ---------- Disclosure / notice ---------- */
.notice {
  background: oklch(0.235 0.05 352 / .8); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 30px);
}
.notice .tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; color: var(--pink); margin-bottom: 10px; }
.notice p { margin: 0 0 10px; color: var(--muted); }
.notice p:last-child { margin-bottom: 0; }
.notice strong { color: var(--ink); }
.notice.accent { border-color: oklch(0.62 0.215 8 / .4); }

/* ---------- Coin info row (topup) ---------- */
.coininfo {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px;
  margin-top: 22px;
}
.coininfo .item { background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px 20px; }
.coininfo .item .k { color: var(--faint); font-size: .82rem; margin-bottom: 4px; }
.coininfo .item .v { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.coininfo .item .v .pink { color: var(--pink); }

/* ---------- Packages (topup) ---------- */
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(18px, 2.2vw, 26px); }
.pack {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-xl); padding: clamp(28px, 3vw, 38px) clamp(24px, 3vw, 30px);
  text-align: center; transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.pack:hover { transform: translateY(-4px); }
.pack.popular { border-color: var(--brand); box-shadow: var(--glow-brand); }
.pack .ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display); font-weight: 600; font-size: .8rem; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  padding: 5px 16px; border-radius: 999px; box-shadow: var(--sticker); white-space: nowrap;
}
.pack .coin-amt { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.6rem); color: var(--ink); line-height: 1; }
.pack .coin-amt small { font-size: .9rem; color: var(--faint); font-weight: 500; }
.pack .bonus { color: var(--ok); font-weight: 600; font-size: .92rem; margin-top: 8px; min-height: 1.4em; }
.pack .price { font-family: var(--font-display); margin: 18px 0 20px; }
.pack .price .now { font-size: 1.7rem; font-weight: 700; color: var(--ink); }
.pack .price .was { color: var(--faint); text-decoration: line-through; font-size: 1rem; margin-right: 8px; font-weight: 400; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(16px, 2vw, 22px); }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 30px); }
.step .num {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: #fff; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
}
.step h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; margin: 0 0 6px; }
.step p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-card {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, oklch(0.235 0.05 352), oklch(0.20 0.06 5));
  border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: clamp(44px, 6vw, 72px) clamp(24px, 4vw, 52px);
}
.cta-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40rem 20rem at 50% 120%, oklch(0.62 0.215 8 / .22), transparent 60%);
}
.cta-card > * { position: relative; }
.cta-card h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 3.6vw, 2.5rem); margin: 0 0 14px; letter-spacing: -0.015em; }
.cta-card p { color: var(--muted); max-width: 40rem; margin: 0 auto 28px; }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(44px, 6vw, 76px) 0 clamp(64px, 8vw, 104px); }
.legal-head { max-width: 820px; margin: 0 auto clamp(30px, 4vw, 44px); }
.legal-head .crumb { color: var(--faint); font-size: .88rem; margin-bottom: 14px; }
.legal-head .crumb a { color: var(--faint); }
.legal-head .crumb a:hover { color: var(--pink); }
.legal-head h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4.4vw, 2.9rem); margin: 0 0 8px; letter-spacing: -0.015em; }
.legal-head .updated { color: var(--faint); font-size: .9rem; }
.legal-body { max-width: 76ch; margin: 0 auto; }
.legal-body > p:first-child { font-size: 1.08rem; color: var(--ink); }
.legal-body h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; margin: 38px 0 12px; padding-top: 10px; }
.legal-body p, .legal-body li { color: var(--muted); }
.legal-body ul { padding-left: 1.2em; margin: 12px 0; }
.legal-body li { margin-bottom: 9px; }
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body a { text-decoration: underline; text-underline-offset: 3px; }
.callout {
  background: oklch(0.235 0.05 352 / .8); border: 1px solid oklch(0.62 0.215 8 / .4);
  border-radius: var(--radius-lg); padding: 20px 24px; margin: 22px 0;
}
.callout p { color: var(--ink); margin: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 8px; }
.toc a { font-size: .86rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 6px 13px; border-radius: 999px; text-decoration: none; }
.toc a:hover { color: var(--ink); border-color: var(--pink); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: clamp(44px, 6vw, 64px) 0 32px; margin-top: clamp(44px, 6vw, 84px); position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 48px); }
.footer .brand { margin-bottom: 14px; }
.footer .desc { color: var(--faint); font-size: .92rem; max-width: 36ch; }
.footer h4 { font-family: var(--font-display); font-weight: 600; font-size: .98rem; margin: 0 0 14px; color: var(--ink); }
.footer .col a { color: var(--muted); display: block; margin-bottom: 10px; font-size: .92rem; }
.footer .col a:hover { color: var(--pink); }
.footer-bottom { border-top: 1px solid var(--line-soft); margin-top: clamp(30px, 4vw, 42px); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--faint); font-size: .85rem; }
.footer-bottom a { color: var(--faint); }
.footer-bottom a:hover { color: var(--pink); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); animation: reveal .9s var(--ease-out) forwards; }
.reveal.d1 { animation-delay: .08s; }
.reveal.d2 { animation-delay: .16s; }
.reveal.d3 { animation-delay: .24s; }
.reveal.d4 { animation-delay: .32s; }
.reveal.d5 { animation-delay: .40s; }
@keyframes reveal { to { opacity: 1; transform: none; } }

/* ---------- 404 ---------- */
.notfound { min-height: 72vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.notfound .code { font-family: var(--font-display); font-weight: 700; font-size: clamp(5rem, 16vw, 10rem); line-height: .9; color: var(--pink); }
.notfound p { color: var(--muted); font-size: 1.1rem; margin: 6px 0 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { max-width: none; margin: 0 auto; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-note { justify-content: center; }
  .hero-logo { order: -1; }
  .section-head.left { text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Cinematic hero (homepage) — FiveM server style
   ============================================================ */
.hero-cine {
  position: relative; overflow: hidden;
  min-height: min(72vh, 680px); display: flex; align-items: center;
}
.hero-cine .scene { position: absolute; inset: 0; z-index: 0; }
.hero-cine .scene svg { width: 100%; height: 100%; display: block; }
/* veils the video into a subtle backdrop (not a busy foreground photo) and keeps
   the left side dark enough for the headline; fades cleanly into the next section */
.hero-cine .overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, oklch(0.15 0.035 350 / .48) 0%, oklch(0.15 0.035 350 / .28) 38%, oklch(0.15 0.035 350 / .34) 68%, oklch(0.15 0.035 350 / .78) 100%),
    radial-gradient(125% 105% at 14% 50%, oklch(0.13 0.03 350 / .72), transparent 60%);
}
/* drifting raspberry smoke clouds */
.hero-smoke { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-smoke span { position: absolute; border-radius: 50%; filter: blur(64px); opacity: .55; mix-blend-mode: screen; }
.hero-smoke span:nth-child(1) {
  width: 60vw; height: 60vw; left: -12vw; bottom: -26vw;
  background: radial-gradient(circle, oklch(0.62 0.215 8 / .55), transparent 65%);
  animation: smokeDrift 26s ease-in-out infinite;
}
.hero-smoke span:nth-child(2) {
  width: 46vw; height: 46vw; right: -8vw; top: -16vw;
  background: radial-gradient(circle, oklch(0.58 0.20 352 / .42), transparent 65%);
  animation: smokeDrift 34s ease-in-out infinite reverse;
}
.hero-smoke span:nth-child(3) {
  width: 40vw; height: 40vw; left: 38vw; bottom: -20vw;
  background: radial-gradient(circle, oklch(0.52 0.18 10 / .40), transparent 65%);
  animation: smokeDrift 30s ease-in-out infinite; animation-delay: -12s;
}
@keyframes smokeDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(7vw, -4vw) scale(1.14); }
  66%      { transform: translate(-6vw, 3vw) scale(.9); }
}
@media (prefers-reduced-motion: reduce) { .hero-smoke span { animation: none; } }
/* hero: align the Discord card left; keep the filled backgrounds, drop the glow shadow */
.hero-cine .discord-card { margin: 0 auto 20px 0; box-shadow: none; }
.hero-cine .btn-discord, .hero-cine .btn-discord:hover { box-shadow: none; }
.hero-cine .connect-grid { margin-top: 0; }
.hero-cine .grid-fade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .55;
  background-image:
    linear-gradient(oklch(0.82 0.12 354 / .055) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.82 0.12 354 / .055) 1px, transparent 1px);
  background-size: 66px 66px;
  -webkit-mask-image: radial-gradient(120% 92% at 50% 0%, #000, transparent 68%);
          mask-image: radial-gradient(120% 92% at 50% 0%, #000, transparent 68%);
}
.hero-cine-inner { position: relative; z-index: 2; width: 100%; padding: clamp(24px, 4.5vw, 56px) 0; }
.hero-emblem { height: clamp(50px, 7vw, 76px); width: auto; margin-bottom: 22px; filter: drop-shadow(0 6px 16px oklch(0.62 0.215 8 / .45)); }
.server-tag {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-display); font-weight: 600; font-size: .8rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--pink); margin-bottom: 16px;
}
.server-tag::before { content: ""; width: 26px; height: 1px; background: var(--pink); opacity: .7; }
.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.85rem, 4.1vw, 3.15rem); line-height: 1.14; letter-spacing: -0.02em;
  margin: 0 0 16px; max-width: 18ch; text-wrap: balance;
}
.hero-title .accent { color: var(--pink); }
.hero-cine .lead { color: var(--muted); font-size: clamp(1.02rem, 1.5vw, 1.18rem); max-width: 44ch; margin: 0 0 26px; }

.status-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 28px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: oklch(0.20 0.045 351 / .82); border: 1px solid var(--line);
  padding: 9px 17px; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--ink);
  backdrop-filter: blur(8px);
}
.status-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px oklch(0.80 0.14 165 / .18); animation: pulse 2.6s ease-in-out infinite; }
.status-pill.is-checking .dot { background: var(--faint); box-shadow: 0 0 0 4px oklch(0.70 0.035 350 / .15); animation: none; }
.status-pill.is-checking, .status-pill.is-checking b { color: var(--faint); }
.status-pill.is-offline .dot { background: oklch(0.62 0.20 25); box-shadow: 0 0 0 4px oklch(0.62 0.20 25 / .18); animation: none; }
.status-pill.is-offline b { color: var(--faint); }
.status-pill .sep { color: var(--faint); font-weight: 400; }
.status-pill b { color: var(--pink); }
.ping { color: var(--faint); font-size: .9rem; display: inline-flex; align-items: center; gap: 8px; }

.connect {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 30px; max-width: 580px;
  background: oklch(0.19 0.045 351 / .7); border: 1px solid var(--line);
  border-radius: 12px; padding: 11px 11px 11px 18px; backdrop-filter: blur(8px);
}
.connect .lbl { color: var(--faint); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.connect code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: var(--ink); font-size: .95rem; flex: 1; min-width: 150px; word-break: break-all; }
.connect button {
  font-family: var(--font-display); font-weight: 600; font-size: .88rem; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep)); border: 0; border-radius: 8px;
  padding: 9px 16px; cursor: pointer; transition: transform .2s var(--ease-out), box-shadow .2s; white-space: nowrap;
}
.connect button:hover { transform: translateY(-1px); box-shadow: var(--glow-brand); }
.connect button.copied { background: linear-gradient(135deg, var(--ok), oklch(0.70 0.15 165)); }

/* two-region connect (TH / International) */
.connect-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 18px); margin-top: 30px; }
.connect-col { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.connect-region { font-family: var(--font-display); font-weight: 600; font-size: .86rem; color: var(--muted); display: inline-flex; align-items: center; gap: 9px; }
.connect-region .flag {
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; color: var(--pink);
  background: oklch(0.62 0.215 8 / .14); border: 1px solid oklch(0.62 0.215 8 / .4);
  padding: 2px 7px; border-radius: 6px;
}
.connect-grid .connect { margin-top: 0; max-width: none; flex: 1; }
@media (max-width: 680px) { .connect-grid { grid-template-columns: 1fr; } }

.beacon { animation: blink 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* SVG line icons in feature cards */
.bubble .ico svg { width: 26px; height: 26px; stroke: var(--pink); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 18px); }
.shot {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, oklch(0.22 0.05 352), oklch(0.17 0.05 6));
}
.shot .ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--faint); font-size: .9rem; padding: 16px; text-align: center; }
.shot .ph svg { width: 30px; height: 30px; stroke: var(--faint); fill: none; stroke-width: 1.6; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.shot:hover img { transform: scale(1.05); }
.shot .cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 26px 16px 12px; font-size: .85rem; color: var(--ink); background: linear-gradient(transparent, oklch(0.12 0.03 350 / .85)); }

@media (max-width: 880px) {
  .hero-cine { min-height: auto; padding-top: 8px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .orb, .hero-logo::before, .badge .live, .status-pill .dot, .beacon { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
  .btn, .bubble, .pack, .nav-cta, .shot img, .connect button { transition: none !important; }
}

/* ============================================================
   ระบบร้านค้า / เติมเงิน — ปิดชั่วคราว (ยังไม่เปิดใช้งาน)
   ซ่อนเฉพาะ ร้านค้า / เติมเงิน / Donate — คง Login Discord + บัญชี + Logout ไว้
   ★ เปิดกลับ: ลบทั้งบล็อกนี้ทิ้ง (จุดเดียวจบ)
   ============================================================ */
a[href="/topup.html"],
a[href="/shop.html"],
[data-auth-only],
[data-shop] {
  display: none !important;
}
