:root {
  --bg: #120c24;
  --bg-2: #1a1233;
  --bg-3: #241a44;
  --line: #33275a;
  --text: #f2f3f8;
  --muted: #a99cc6;
  --accent: #e8399a;
  --accent-2: #8b5cf6;
  --col: 440px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Kanit', system-ui, sans-serif; font-weight: 300; line-height: 1.6;
  padding-bottom: 96px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.accent { color: var(--accent); }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; background: rgba(18, 12, 36, .92); backdrop-filter: blur(10px);
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 20px; letter-spacing: .5px; }
.logo-orb {
  width: 28px; height: 28px; border-radius: 50%;
  background: conic-gradient(from 200deg, #ff8ad0, #e8399a, #38bdf8, #fbbf24, #ff8ad0);
  box-shadow: 0 0 14px rgba(232, 57, 154, .55);
}
.logo small { font-size: 10px; color: var(--muted); font-weight: 400; align-self: flex-end; margin-left: -6px; }
.nav { display: flex; gap: 22px; font-size: 15px; font-weight: 400; }
.nav a:hover, .nav a.active { color: var(--accent); }
.burger { display: none; background: none; border: 0; color: var(--text); font-size: 24px; cursor: pointer; }

@media (max-width: 760px) {
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg-2); border-top: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 22px; border-bottom: 1px solid var(--line); }
  .burger { display: block; }
}

/* ---------- column ---------- */
.col { width: 100%; max-width: var(--col); margin: 0 auto; padding: 0 16px; }
section { margin: 40px 0; }
h2 { font-size: 22px; font-weight: 500; margin: 0 0 12px; }
p { margin: 0 0 12px; color: #d7d9e4; }

/* ---------- hero ---------- */
.hero { position: relative; margin-top: 10px; }
.hero-art { position: relative; height: 260px; overflow: hidden; }
.blob {
  position: absolute; filter: blur(2px); opacity: .9;
  border-radius: 42% 58% 61% 39% / 45% 39% 61% 55%;
  animation: morph 9s ease-in-out infinite alternate;
}
.blob.b1 { inset: 20px 30px 40px 40px; }
.blob.b2 { width: 120px; height: 90px; right: 10px; top: 40px; animation-duration: 7s; }
.blob.b3 { width: 90px; height: 70px; left: 0; bottom: 30px; animation-duration: 11s; }
@keyframes morph {
  0%   { border-radius: 42% 58% 61% 39% / 45% 39% 61% 55%; transform: rotate(0); }
  100% { border-radius: 63% 37% 38% 62% / 55% 62% 38% 45%; transform: rotate(8deg); }
}
.hero-icon {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 110px; filter: drop-shadow(0 10px 30px rgba(0,0,0,.45));
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }
.hero-dots { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 2; }
.hero-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(255,255,255,.35); cursor: pointer; padding: 0; }
.hero-dots button.on { background: #fff; width: 18px; border-radius: 4px; }
.hero-text { margin-top: -40px; position: relative; }
.hero-kicker { font-size: 22px; font-weight: 500; color: #cfd2e2; }
.hero-title {
  font-size: 44px; font-weight: 600; line-height: 1.1; margin: 0 0 14px;
  background: linear-gradient(180deg, #fff, #b9bdd2); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- tournament ---------- */
.tour-title {
  font-size: 36px; font-weight: 600; margin: 0; line-height: 1.1;
  background: linear-gradient(90deg, var(--accent), #ff8ad0); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tour-sub { font-size: 20px; font-style: italic; font-weight: 500; margin: 2px 0 10px; }
.board { background: var(--bg-2); border-radius: 12px; overflow: hidden; position: relative; }
.board-head, .row {
  display: grid; grid-template-columns: 40px 1fr 80px 100px; align-items: center; gap: 8px; padding: 0 16px;
}
.board-head { font-size: 12px; color: var(--muted); height: 38px; }
.row { height: 58px; border-top: 1px solid var(--line); font-size: 15px; }
.rank { text-align: center; font-size: 13px; font-weight: 500; }
.rank.top { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #f59e0b; color: #111; margin: 0 auto; }
.rank.top.r2 { background: #cbd5e1; } .rank.top.r3 { background: #d97706; }
.player { display: flex; align-items: center; gap: 10px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; }
.prize { font-size: 11px; font-weight: 600; background: var(--accent); color: #fff; border-radius: 4px; padding: 2px 6px; text-align: center; }
.row:nth-child(n+5) .prize { background: #fff; color: #111; }
.score { text-align: right; font-weight: 400; }
.board.collapsed .row:nth-child(n+12) { display: none; }
.board.collapsed::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 70px;
  background: linear-gradient(transparent, var(--bg-2)); pointer-events: none;
}
.btn.more { display: flex; width: max-content; margin: -22px auto 0; position: relative; z-index: 2; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 10px; padding: 10px 22px; font: inherit; font-weight: 500; font-size: 16px; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.btn:active { transform: scale(.97); }
.btn-pink { background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(232, 57, 154, .35); }
.btn-light { background: #f4f4f6; color: #111; }
.btn-sm { padding: 6px 14px; font-size: 14px; border-radius: 8px; }

/* ---------- category banners ---------- */
.cat {
  position: relative; display: flex; align-items: center; height: 170px; margin-bottom: 12px;
  border-radius: 14px; overflow: hidden; padding: 0 24px; isolation: isolate;
}
.cat::before {
  content: ''; position: absolute; right: -40px; bottom: -60px; width: 260px; height: 200px; z-index: -1;
  background: rgba(255,255,255,.12); border-radius: 50% 40% 60% 50%; transform: rotate(-12deg);
}
.cat-title { font-size: 38px; font-weight: 600; line-height: 1; }
.cat-sub { font-size: 26px; font-weight: 500; color: #ffb3dc; line-height: 1.2; }
.cat-icon { position: absolute; right: 22px; font-size: 92px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.4)); transition: transform .3s; }
.cat:hover .cat-icon { transform: scale(1.08) rotate(-6deg); }

/* ---------- providers ---------- */
.providers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.chip {
  height: 42px; display: grid; place-items: center; border-radius: 8px;
  background: var(--bg-2); color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .3px;
  filter: grayscale(1); transition: color .2s, background .2s;
}
.chip:hover { color: #fff; background: var(--bg-3); }

/* ---------- new games card ---------- */
.newgames {
  position: relative; border-radius: 14px; overflow: hidden; padding: 22px 20px; min-height: 260px;
  background: #0b0718; display: flex; flex-direction: column; justify-content: space-between;
}
.tiles { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 10px; transform: rotate(-8deg) scale(1.25); opacity: .45; }
.tile { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font-size: 30px; }
.newgames > * { position: relative; }
.newgames h3 { margin: 0; font-size: 26px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.newgames h3::after { content: ''; }
.underline { width: 60px; height: 3px; background: var(--accent); border-radius: 2px; margin-top: 6px; }
.play { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 13px; }
.newgames p { font-size: 13px; text-shadow: 0 1px 6px #000; margin: 0; }

/* ---------- promotion cards ---------- */
.promo-grid { display: grid; gap: 12px; }
.promo {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 18px;
  display: grid; gap: 4px;
}
.promo .tag { justify-self: start; font-size: 11px; font-weight: 500; color: var(--accent); background: rgba(232, 57, 154,.12); border-radius: 20px; padding: 2px 10px; }
.promo h3 { margin: 4px 0 0; font-size: 18px; font-weight: 500; }
.promo p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- games page ---------- */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.tab { flex: none; padding: 6px 16px; border-radius: 20px; background: var(--bg-2); color: var(--muted); border: 0; font: inherit; font-size: 14px; cursor: pointer; }
.tab.on { background: var(--accent); color: #fff; }
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.game { border-radius: 10px; overflow: hidden; background: var(--bg-2); cursor: pointer; }
.game .thumb { aspect-ratio: 1; display: grid; place-items: center; font-size: 36px; }
.game .name { font-size: 12px; padding: 6px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- footer + sticky CTA ---------- */
.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 40px 16px 20px; }
.cta {
  position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 60;
  display: flex; gap: 10px; padding: 0; width: min(344px, calc(100% - 32px));
}
.cta .btn { flex: 1; height: 48px; font-size: 17px; }
.cta .btn-pink { flex: 1.5; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; background: rgba(0,0,0,.65); padding: 16px; }
.modal.open { display: grid; }
.sheet { width: 100%; max-width: 380px; background: var(--bg-2); border-radius: 16px; padding: 24px; position: relative; }
.sheet h3 { margin: 0 0 16px; font-weight: 500; font-size: 22px; }
.close { position: absolute; top: 12px; right: 14px; background: none; border: 0; color: var(--muted); font-size: 22px; cursor: pointer; }
.field { display: grid; gap: 4px; margin-bottom: 12px; font-size: 14px; color: var(--muted); }
.field input, .field select {
  height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text);
  padding: 0 12px; font: inherit; font-size: 15px;
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent); border-color: transparent; }
.sheet .btn { width: 100%; height: 46px; margin-top: 6px; }
.switch { text-align: center; font-size: 14px; color: var(--muted); margin-top: 14px; }
.switch a { color: var(--accent); cursor: pointer; }
.toast { position: fixed; left: 50%; top: 80px; transform: translateX(-50%); background: #fff; color: #111; padding: 10px 18px; border-radius: 10px; font-size: 14px; z-index: 200; display: none; }

/* ================= หน้าสมาชิก (for-you) ================= */
.notice {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  background: var(--bg-2); padding: 8px 16px; font-size: 13px; color: #ff8ad0; line-height: 1.35;
}
.notice .btn-light { padding: 3px 10px; font-size: 12px; border-radius: 6px; flex: none; }
.user-chip { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.user-chip .avatar { width: 26px; height: 26px; font-size: 13px; }
.wallet { font-size: 12px; color: var(--muted); font-weight: 400; }
.wallet b { color: var(--text); font-weight: 500; }
.header.member .nav { gap: 16px; font-size: 14px; }
@media (max-width: 1100px) {
  .header.member .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg-2); border-top: 1px solid var(--line);
  }
  .header.member .nav.open { display: flex; }
  .header.member .nav a { padding: 12px 22px; border-bottom: 1px solid var(--line); }
  .header.member .burger { display: block; }
}
.me-row {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 8px;
  height: 52px; padding: 0 16px; margin-top: 12px; border-radius: 10px; background: var(--bg-2); font-size: 14px;
}
.me-row .rank { font-size: 11px; background: var(--accent); color: #fff; border-radius: 4px; padding: 1px 4px; }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.sec-head h2 { font-size: 16px; margin: 0; padding-bottom: 6px; border-bottom: 3px solid var(--accent); }
.sec-head h2.blue { border-color: #e8399a; }
.sec-head h2 small { color: var(--muted); font-weight: 400; font-size: 12px; margin-left: 4px; }
.select {
  background: #e8399a; color: #fff; border: 0; border-radius: 8px; height: 30px; padding: 0 10px;
  font: inherit; font-size: 12px; cursor: pointer;
}
.btn-ghost { background: var(--bg-2); color: var(--text); border: 1px solid var(--line); }

.feed { display: grid; gap: 8px; }
.win {
  display: grid; grid-template-columns: 62px 34px 1fr auto; align-items: center; gap: 10px;
  background: var(--bg-2); border-radius: 10px; padding: 10px 12px; font-size: 13px;
  animation: slidein .4s ease;
}
@keyframes slidein { from { opacity: 0; transform: translateY(-8px); } }
.win .who { font-size: 12px; line-height: 1.3; }
.win .who time { color: var(--muted); font-size: 11px; display: block; }
.thumb-sm { width: 34px; height: 34px; border-radius: 7px; display: grid; place-items: center; font-size: 18px; }
.win .g b { font-weight: 500; display: block; line-height: 1.2; }
.win .g span { color: var(--muted); font-size: 11px; }
.win .amt { text-align: right; line-height: 1.4; }
.win .amt b { font-weight: 600; display: block; }
.badge { display: inline-block; font-size: 10px; font-weight: 600; border-radius: 4px; padding: 0 5px; }
.badge.bet { background: #2b3f66; color: #fbbf24; }
.badge.x { background: var(--accent); color: #fff; }
.badge.x.blue { background: #e8399a; } .badge.x.green { background: #16a34a; }

.hot-head, .hot { display: grid; grid-template-columns: 30px 46px 1fr auto; align-items: center; gap: 10px; }
.hot-head { font-size: 11px; color: var(--muted); padding: 0 12px 6px; }
.hot { background: var(--bg-2); border-radius: 10px; padding: 8px 12px; margin-bottom: 6px; font-size: 14px; }
.hot .n { text-align: center; color: var(--muted); }
.hot .thumb-sm { width: 46px; height: 46px; font-size: 22px; }
.hot .g b { font-weight: 500; display: block; line-height: 1.2; }
.hot .g span { color: var(--muted); font-size: 11px; }
.hot .c { text-align: right; font-weight: 600; line-height: 1.35; }

.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail .card { flex: 0 0 31%; scroll-snap-align: start; text-align: center; font-size: 11px; color: #cfd2e2; }
.rail .card .thumb { aspect-ratio: 3/4; border-radius: 10px; display: grid; place-items: center; font-size: 34px; margin-bottom: 6px; }
.rail-line { position: relative; height: 1px; background: var(--line); margin: 12px 0 0; }
.rail-line button {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--bg-3); color: var(--text); cursor: pointer; font-size: 11px;
}

.feature { position: relative; }
.feature .slide { display: none; }
.feature .slide.on { display: block; animation: slidein .35s ease; }
.feature .art {
  height: 130px; border-radius: 12px; display: grid; place-items: center; font-size: 60px; margin-bottom: 10px;
  position: relative; overflow: hidden;
}
.feature .art span.lbl { position: absolute; right: 16px; bottom: 12px; font-size: 26px; font-weight: 600; letter-spacing: 1px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.feature p { font-size: 13px; }
.feature .dots { position: absolute; top: 10px; right: 12px; z-index: 2; display: flex; gap: 5px; }
.feature .dots button { width: 6px; height: 6px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.3); cursor: pointer; }
.feature .dots button.on { background: #fff; width: 10px; height: 10px; margin-top: -2px; }

/* แถบเมนูล่าง */
.dock {
  position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 60;
  display: flex; gap: 2px; padding: 6px; border-radius: 16px;
  background: linear-gradient(180deg, #e8399a, #c0267c); box-shadow: 0 10px 30px rgba(232, 57, 154, .35);
}
.dock a {
  width: 54px; height: 50px; border-radius: 11px; display: grid; place-items: center; align-content: center; gap: 1px;
  font-size: 10px; color: #fff; font-weight: 400;
}
.dock a svg { width: 18px; height: 18px; }
.dock a.on { background: #fff; color: var(--accent); }

.sheet-menu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sheet-menu a { background: var(--bg); border-radius: 12px; padding: 14px 6px; text-align: center; font-size: 13px; display: grid; gap: 4px; }
.sheet-menu a span { font-size: 22px; }

/* ================= ภาพประกอบ (มาสคอต/บอลลูน/ปกเกม) ================= */
img.hero-icon { inset: auto; left: 50%; top: 18px; width: 230px; transform: translateX(-50%); animation: floatx 4s ease-in-out infinite; }
@keyframes floatx { 50% { transform: translate(-50%, -10px); } }
.tour { position: relative; }
.tour > :not(.tour-mascot):not(.balloon) { position: relative; z-index: 1; }
.tour-mascot { position: absolute; right: -36px; top: -14px; width: 150px; transform: rotate(8deg); opacity: .95; pointer-events: none; }
.balloon {
  position: absolute; border-radius: 50% 50% 48% 52% / 55% 55% 45% 45%; pointer-events: none;
  box-shadow: inset -6px -8px 14px rgba(0,0,0,.25), inset 6px 6px 10px rgba(255,255,255,.35);
  animation: bob 5s ease-in-out infinite;
}
.balloon::after { content: ''; position: absolute; left: 50%; top: 100%; width: 1px; height: 40px; background: rgba(255,255,255,.25); }
.balloon.b1 { width: 34px; height: 40px; right: 120px; top: 70px; background: #ff8ad0; }
.balloon.b2 { width: 26px; height: 31px; right: -50px; top: 170px; background: #a78bfa; animation-delay: -2s; }
.balloon.b3 { width: 70px; height: 82px; right: -90px; top: 260px; background: #fb923c; animation-delay: -1s; opacity: .85; }
@keyframes bob { 50% { transform: translateY(-14px) rotate(4deg); } }
.thumb-sm, .rail .card .thumb, .game .thumb, .tile { font-size: 0; }
main.col { overflow-x: clip; }
.tour .tour-sub, .tour p { max-width: 74%; }
.tour-mascot { right: -48px; width: 140px; }

/* ================= หน้าสมาชิกย่อย ================= */
.page-title { font-size: 22px; margin-bottom: 16px; }
.muted { color: var(--muted); } .small { font-size: 12px; }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.card-title { margin: 0 0 10px; font-size: 16px; font-weight: 500; }
.sub-title { font-size: 16px; font-weight: 500; margin: 24px 0 10px; }
.wide { width: 100%; height: 46px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.kv { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv span { color: var(--muted); } .kv b { font-weight: 500; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.empty { text-align: center; color: var(--muted); padding: 30px 0; font-size: 14px; }
img.avatar { object-fit: cover; background: #3b2a55; }

.profile-card { display: flex; align-items: center; gap: 14px; background: linear-gradient(120deg, #3b1d6e, #8a1f5c); border: 0; }
.big-avatar { width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.15); padding: 4px; }
.p-name { font-size: 20px; font-weight: 500; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.stat-grid.one { grid-template-columns: 1fr; } .stat-grid.three { grid-template-columns: repeat(3, 1fr); }
.stat { background: var(--bg-2); border-radius: 12px; padding: 12px 14px; display: grid; }
.stat span { font-size: 12px; color: var(--muted); } .stat b { font-size: 20px; font-weight: 600; }
.stat-grid.three .stat b { font-size: 16px; }

.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-2); border-radius: 12px; padding: 4px; margin-bottom: 14px; }
.seg a { text-align: center; padding: 9px; border-radius: 9px; color: var(--muted); font-weight: 500; }
.seg a.on { background: var(--accent); color: #fff; }
.bank-card { background: linear-gradient(120deg, #14532d, #166534); border: 0; }
.bank-row { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; }
.bank-logo { width: 44px; height: 44px; border-radius: 12px; background: #fff; color: #166534; display: grid; place-items: center; font-weight: 600; }
.acc { font-size: 20px; font-weight: 600; letter-spacing: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 14px; }
.chip-btn { border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 8px; padding: 6px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.chip-btn:hover { border-color: var(--accent); color: var(--accent); }
.field input[type=file] { padding: 10px; height: auto; }

.txn-list { display: grid; gap: 8px; }
.txn { display: flex; justify-content: space-between; align-items: center; background: var(--bg-2); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.txn b { font-weight: 500; } .txn .r { text-align: right; display: grid; justify-items: end; gap: 3px; }
.pos { color: #4ade80; } .neg { color: #f87171; }
.st { font-size: 11px; border-radius: 4px; padding: 0 6px; }
.st-wait { background: #78350f; color: #fde68a; } .st-ok { background: #14532d; color: #86efac; } .st-no { background: #7f1d1d; color: #fecaca; }

.points-hero, .ref-hero { display: flex; align-items: center; gap: 14px; background: linear-gradient(120deg, #4c1d95, #be185d); border: 0; }
.points-hero img, .ref-hero img { width: 76px; }
.points-hero > div { display: grid; } .points-hero b { font-size: 30px; font-weight: 600; line-height: 1.2; }
.ref-hero b { font-size: 17px; font-weight: 500; } .ref-hero p { margin: 4px 0 0; color: #f3d6e8; }
.mission-list { display: grid; gap: 8px; }
.mission { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; background: var(--bg-2); border-radius: 12px; padding: 12px; }
.m-icon { font-size: 26px; text-align: center; } .m-body b { font-weight: 500; font-size: 14px; }
.bar { height: 6px; background: var(--bg); border-radius: 3px; overflow: hidden; margin: 6px 0 2px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 3px; }
.reward-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.reward { background: var(--bg-2); border-radius: 12px; padding: 12px; display: grid; gap: 4px; text-align: center; }
.r-art { height: 90px; border-radius: 10px; display: grid; place-items: center; font-size: 42px; margin-bottom: 6px; }
.reward b { font-weight: 500; }
.copy-row { display: flex; gap: 8px; margin: 6px 0 8px; }
.copy-row input { flex: 1; min-width: 0; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 0 10px; font: inherit; font-size: 12px; }
.ref-hero + .card .btn.wide { margin-top: 12px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.contact { display: grid; justify-items: center; gap: 2px; padding: 16px 6px; border-radius: 14px; font-weight: 500; }
.contact span { font-size: 28px; } .contact small { font-size: 11px; opacity: .85; font-weight: 300; }
.contact.line { background: #06a94d; } .contact.tg { background: #2481cc; } .contact.tel { background: var(--bg-3); }
.faq details { background: var(--bg-2); border-radius: 10px; margin-bottom: 8px; padding: 0 14px; }
.faq summary { padding: 12px 0; cursor: pointer; font-size: 14px; font-weight: 400; }
.faq details p { font-size: 13px; color: var(--muted); }

/* แบนเนอร์หมวด: มาสคอต + ของประกอบ */
.cat-mascot { position: absolute; right: 86px; bottom: -18px; width: 110px; transform: rotate(-6deg); transition: transform .3s; }
.cat:hover .cat-mascot { transform: rotate(0) translateY(-6px); }
.cat-icon { right: 18px; font-size: 76px; }
.cat .spark { position: absolute; width: 8px; height: 8px; background: #fff; opacity: .5; transform: rotate(45deg); }
/* โปรโมชั่นมีภาพ */
.promo { grid-template-columns: 1fr; }
.promo-art { height: 120px; border-radius: 10px; display: grid; place-items: center; font-size: 54px; margin-bottom: 8px; position: relative; overflow: hidden; }
.promo-art img { position: absolute; right: 6px; bottom: -10px; width: 96px; }
.promo .btn { margin-top: 8px; justify-self: start; }
/* เล่นเกม */
.play-art { height: 200px; border-radius: 12px; margin-bottom: 14px; }
.loader { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin 0.8s linear infinite; margin: 10px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ================= โปรไฟล์ ================= */
.pf-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.pf-user { display: flex; align-items: center; gap: 8px; } .pf-user b { font-weight: 500; }
.tier-badge { font-size: 10px; font-weight: 600; color: #111; background: var(--c); border-radius: 4px; padding: 1px 6px; }
.info-dot { width: 16px; height: 16px; border-radius: 50%; border: 0; background: #fff; color: #111; font: 600 10px/16px Kanit, sans-serif; padding: 0; cursor: pointer; }
.pf-links { display: flex; gap: 12px; font-size: 13px; } .pf-links a { text-decoration: underline; }
.pf-bank { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.pf-bank > div { display: grid; line-height: 1.35; font-size: 13px; }
.bank-tile { width: 56px; height: 56px; border-radius: 10px; background: linear-gradient(135deg, #e8399a, #be185d); display: grid; place-items: center; align-content: center; font-weight: 600; font-size: 18px; }
.bank-tile small { font-size: 8px; font-weight: 400; }
.pf-bank .acc { font-size: 15px; letter-spacing: .5px; }
.pf-total { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 0 2px 8px; }
.pf-act { display: flex; gap: 6px; }
.btn-xs { padding: 2px 10px; font-size: 12px; border-radius: 6px; box-shadow: none; }
.wallet { background: var(--bg-2); border-radius: 12px; padding: 8px 12px 12px; margin-bottom: 14px; }
.wallet-head { width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: 0; color: var(--muted); font: inherit; font-size: 12px; padding: 4px 0; cursor: pointer; }
.chev { font-size: 20px; color: var(--text); transition: transform .25s; line-height: 1; }
.wallet.open .chev { transform: rotate(180deg); }
.wallet-main { position: relative; border-radius: 10px; padding: 10px 12px; margin-top: 4px; border: 2px solid transparent; transition: border-color .2s, background .2s; }
.wallet.open .wallet-main { border-color: var(--accent); background: var(--bg-3); }
.live { color: #4ade80; }
.w-amt { font-size: 24px; font-weight: 600; margin: 6px 0 4px; }
.tiny { font-size: 11px; }
.w-check { position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; display: none; place-items: center; }
.wallet.open .w-check { display: grid; }
.wallet-more { display: none; margin-top: 12px; }
.wallet.open .wallet-more { display: block; animation: slidein .25s ease; }
.w-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.link { font-size: 12px; text-decoration: underline; color: var(--text); }
.w-bonus { display: flex; justify-content: space-between; align-items: center; background: var(--bg); border-radius: 8px; padding: 8px 12px; margin-bottom: 6px; font-size: 13px; }
.empty-box { border: 1px solid var(--line); border-radius: 10px; padding: 12px; text-align: center; display: grid; gap: 2px; font-size: 12px; color: var(--muted); }
.empty-box b { color: var(--text); font-weight: 500; font-size: 14px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; }
.coin-lbl { font-size: 12px; } .coin-lbl.gold { color: #fbbf24; } .coin-lbl.blue { color: #c4b5fd; }
.big-num { font-size: 22px; font-weight: 600; margin: 2px 0; }
.bonus-box { display: grid; gap: 2px; margin: 0; } .bonus-box b { font-size: 22px; font-weight: 600; }
.tier-sheet { padding: 0; overflow: hidden; background: #fff; color: #222; }
.tier-sheet .close { color: #fff; z-index: 2; }
.tier-sheet p { color: #333; padding: 0 18px; }
.tier-hero { height: 150px; display: grid; place-items: center; align-content: center; gap: 6px; color: #fff; font-size: 13px;
  background: repeating-conic-gradient(from 0deg, #2c2150 0 10deg, #3a3e52 10deg 20deg); margin-bottom: 14px; }
.tier-hero img { width: 84px; filter: drop-shadow(0 0 16px var(--c)); }
.tier-hero b { color: var(--accent); }
.tier-list { list-style: none; margin: 0; padding: 0 18px 0 34px; position: relative; }
.tier-list::before { content: ''; position: absolute; left: 22px; top: 8px; bottom: 24px; width: 1px; background: #ccc; }
.tier-list li { display: flex; justify-content: space-between; padding: 6px 0; position: relative; color: #444; }
.tier-list li::before { content: ''; position: absolute; left: -16px; top: 11px; width: 9px; height: 9px; border-radius: 50%; border: 1px solid #aaa; background: #fff; }
.tier-list li.on::before { background: #22c55e; border-color: #22c55e; }
.tier-list li > div:first-child { display: grid; }
.tier-sheet .muted { color: #777; }
.tier-sheet > p:last-child { padding-bottom: 16px; }

/* ================= ฝาก/ถอน/กิจกรรม/แลก/ชวนเพื่อน/ติดต่อ ================= */
.center { text-align: center; }
.hide { display: none !important; }
.page-title { text-align: center; font-size: 18px; }
.seg-blue { max-width: 240px; margin: 0 auto 16px; background: #0b0718; }
.seg-blue a.on { background: #a855f7; }
.amt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.amt-btn { border: 0; border-radius: 6px; background: #fff; color: var(--accent); font: inherit; font-size: 13px; padding: 5px 0; cursor: pointer; }
.amt-btn.on { background: var(--accent); color: #fff; }
.coupon-line { font-size: 12px; background: rgba(232, 57, 154,.12); color: #ffb3dc; border-radius: 8px; padding: 6px 10px; margin-bottom: 10px; }
.coupon-line a { color: #fff; text-decoration: underline; margin-left: 6px; }
.steps { padding-left: 20px; font-size: 14px; color: #d7d9e4; } .steps li { margin-bottom: 8px; }
.ul-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin-bottom: 14px; font-size: 13px; }
.ul-tabs a { padding: 6px 0; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ul-tabs a.on { color: var(--text); border-color: var(--text); }
.grp { font-size: 13px; font-weight: 500; margin: 18px 0 8px; }
.m-group { display: grid; gap: 8px; }
.m-group.line { padding-left: 16px; border-left: 2px solid var(--line); margin-left: 4px; }
.m-card { position: relative; border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--bg-2); font-size: 13px; }
.m-card.ok { border-color: #22c55e; background: #16261d; }
.m-group.line .m-card::before { content: ''; position: absolute; left: -23px; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); }
.m-group.line .m-card.ok::before { border-color: #22c55e; background: #22c55e; }
.m-card b { font-weight: 400; display: block; }
.m-prog { position: absolute; right: 12px; top: 8px; width: 60px; text-align: right; font-size: 9px; color: var(--muted); }
.m-prog .bar { margin: 2px 0 0; height: 3px; }
.m-card.ok .bar i { background: #22c55e; }
.m-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 2px; font-weight: 500; }
.pill { border: 0; border-radius: 4px; background: #fff; color: var(--accent); font: inherit; font-size: 10px; padding: 2px 8px; cursor: pointer; }
.pill.go { background: var(--accent); color: #fff; } .pill.done { background: #2c2150; color: var(--text); cursor: default; }
.wallet-pills { font-size: 14px; font-weight: 500; margin-left: 10px; display: inline-flex; gap: 10px; }
.page-title:has(.wallet-pills) { text-align: left; }
.reward-grid.big { grid-template-columns: 1fr 1fr; gap: 14px; }
.reward-card { background: none; border: 0; color: var(--text); text-align: left; font: inherit; padding: 0; cursor: pointer; display: grid; gap: 3px; }
.reward-card .r-art { height: 140px; position: relative; overflow: hidden; margin-bottom: 6px; }
.reward-card .r-art img { position: absolute; right: -6px; bottom: -14px; width: 70px; }
.reward-card b { font-weight: 400; font-size: 13px; } .cost { font-weight: 500; }
.reward-card:hover .r-art { filter: brightness(1.1); }
.ref-sum { display: flex; justify-content: space-between; align-items: center; }
.ref-sum > div { display: grid; } .ref-sum b { font-size: 18px; font-weight: 600; } .ref-sum .r { text-align: right; }
.qr { width: 148px; height: 148px; margin: 0 auto 10px; background: #fff; padding: 8px; border-radius: 6px; display: grid; place-items: center; color: #111; }
.qr img, .qr canvas { width: 132px !important; height: 132px !important; }
.copy-line { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 12px; text-align: left; word-break: break-all; }
.or { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; color: var(--muted); font-size: 12px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.short-row { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.short-row input { flex: 1; min-width: 0; height: 30px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg-3); color: var(--text); padding: 0 8px; font: inherit; font-size: 12px; }
.btn-line { background: #4cc764; color: #fff; width: 100%; max-width: 260px; margin-top: 6px; }
.dot-links { margin: 22px 0; padding-left: 22px; font-size: 13px; } .dot-links li { margin-bottom: 6px; } .dot-links a { color: var(--accent); }
.dot-links li::marker { color: #fff; }

/* ================= หน้าเกม / โปรโมชั่น ================= */
.cat-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 10px; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-pill { flex: none; border: 0; border-radius: 6px; background: #2c2150; color: var(--muted); font: inherit; font-size: 12px; padding: 6px 12px; cursor: pointer; }
.cat-pill.on { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(232, 57, 154,.4); }
.g-tools { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.tool { border: 0; border-radius: 6px; color: #fff; font: inherit; font-size: 12px; height: 30px; padding: 0 12px; cursor: pointer; display: inline-flex; align-items: center; }
.tool.blue { background: #a855f7; } .tool.green { background: #22c55e; } .tool.orange { background: #f97316; margin-left: auto; }
.tool select { background: none; border: 0; color: #fff; font: inherit; cursor: pointer; } .tool select option { color: #111; }
.search-box { display: flex; gap: 6px; margin-bottom: 10px; }
.search-box input { flex: 1; height: 38px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); padding: 0 12px; font: inherit; }
.search-box button { width: 38px; border: 0; border-radius: 8px; background: var(--bg-3); color: var(--text); cursor: pointer; }
.prov-panel { background: #0b0718; border-radius: 10px; padding: 10px 10px 0; margin-bottom: 14px; }
.prov-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.prov { border: 1px solid transparent; border-radius: 6px; background: var(--bg-3); color: #cfd2e2; font: 500 12px Kanit, sans-serif; height: 38px; cursor: pointer; }
.prov.on { border-color: var(--accent); color: #fff; background: #3a1e33; }
.prov.more { background: none; text-decoration: underline; }
.prov-toggle { display: block; margin: 6px auto -12px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--bg-3); color: var(--text); cursor: pointer; transition: transform .2s; position: relative; }
.prov-toggle.up { transform: rotate(180deg); }
.g-info { margin: 18px 0 8px; }
.game-grid.named .game { background: none; border: 0; padding: 0; color: var(--text); font: inherit; text-align: center; }
.game-grid.named .thumb { border-radius: 10px; }
.game-grid.named .name { font-size: 11px; color: #cfd2e2; }
.promo-sec h2 { display: inline-block; padding-bottom: 6px; border-bottom: 3px solid var(--accent); font-size: 16px; }
.promo-sec h3.lead { font-size: 15px; font-weight: 500; margin: 14px 0 4px; }
.promo-item { margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.promo-banner { position: relative; height: 200px; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; padding: 0 22px; text-align: right; }
.promo-banner .big { font-size: 34px; font-weight: 600; line-height: 1.05; text-shadow: 0 3px 12px rgba(0,0,0,.35); }
.promo-banner .tagl { font-size: 22px; font-weight: 600; color: #ff8ad0; }
.promo-banner img { position: absolute; left: -10px; bottom: -24px; width: 170px; transform: rotate(-6deg); }
.promo-banner .ico { position: absolute; left: 150px; top: 20px; font-size: 40px; }
.promo-toggle { width: 100%; background: none; border: 0; color: var(--text); font: inherit; font-size: 13px; text-decoration: underline; padding: 10px 0; cursor: pointer; }
.promo-toggle span { display: inline-block; margin-left: 6px; transition: transform .2s; text-decoration: none; }
.promo-item.open .promo-toggle span { transform: rotate(180deg); }
.promo-body { display: none; font-size: 13px; padding-bottom: 14px; }
.promo-item.open .promo-body { display: block; animation: slidein .25s ease; }
.promo-body ul { padding-left: 18px; color: #d7d9e4; }

/* ================= รูปเกมจริงทุกจุด ================= */
.avatar { background-size: cover; background-position: center; }
.r-art { position: relative; }
.r-ico { position: absolute; left: 8px; top: 6px; font-size: 22px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
.feature .art { background-size: cover; }
.cat { background-size: cover; }
.cat-title, .cat-sub { text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.promo-banner .ico { display: none; }
/* แบนเนอร์หมวด: ภาพประจำหมวด ไม่มีมาสคอต */
.cat::before { display: none; }
.cat-mascot, .cat .spark { display: none; }
.game-grid.named .thumb[style*="img/cat/"] { background-size: 260% !important; background-position: 78% 50% !important; }
.game .thumb.tall { aspect-ratio: 600 / 802; }
/* โลโก้ค่าย */
.chip.logo { height: 56px; padding: 6px; filter: none; background: #0b0718; }
.chip.logo img { width: 100%; height: 100%; object-fit: contain; }
.chip.more { color: var(--accent); }
.prov img { width: 100%; height: 100%; object-fit: contain; display: block; }
.prov { height: 52px; padding: 4px; }
.providers .chip { height: 56px; }
.chip.more { font-size: 13px; }
/* โลโก้ค่ายเป็นภาพสี่เหลี่ยมจัตุรัส → ช่องจัตุรัส ไม่ล้น */
.providers .chip { height: auto; aspect-ratio: 1; }
.chip.logo { display: block; padding: 0; overflow: hidden; border-radius: 10px; }
.chip.logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.prov { height: auto; aspect-ratio: 1; padding: 0; overflow: hidden; }
.prov img { object-fit: cover; }
.prov.more { aspect-ratio: auto; }
.prov-grid { grid-template-columns: repeat(5, 1fr); }
.prov { border-radius: 8px; }
/* แบนเนอร์หมวดแบบรูป (มีข้อความในรูป) */
section#cats { display: grid; gap: 4px; }
.cat-img { display: block; transition: transform .2s; }
.cat-img img { display: block; width: 100%; height: auto; }
.cat-img:hover { transform: translateY(-3px); }
.feature .art.art-img { height: auto; background: none; display: block; }
.feature .art.art-img img { display: block; width: 100%; height: auto; }
/* hero: ปกเกมซ้อน 3 ใบ */
.hero-cards { position: absolute; inset: 0; display: grid; place-items: center; }
.hc { position: absolute; width: 132px; aspect-ratio: 3/4; border-radius: 14px; background-size: cover; background-position: center;
  box-shadow: 0 14px 30px rgba(0,0,0,.5); border: 3px solid rgba(255,255,255,.85); animation: hcIn .5s ease; }
.hc0 { transform: translate(-92px, 18px) rotate(-14deg); }
.hc2 { transform: translate(92px, 18px) rotate(14deg); }
.hc1 { width: 150px; z-index: 2; transform: translateY(-4px); animation: hcIn .5s ease, float 4s 0.5s ease-in-out infinite; }
@keyframes hcIn { from { opacity: 0; scale: .85; } }
.tour-mascot { width: 120px; right: -30px; top: -6px; transform: rotate(6deg); }
.hero-text { margin-top: 8px; }
/* แบนเนอร์โปรโมชั่น v2: พื้นไล่สี + ข้อความซ้าย + ไอคอน 3D ขวา */
.promo-banner.v2 { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; padding: 0 18px 0 24px;
  background: radial-gradient(circle at 78% 50%, hsl(var(--h) 85% 55% / .55), transparent 55%),
              linear-gradient(120deg, hsl(var(--h) 60% 22%), hsl(calc(var(--h) + 40) 70% 14%)); border: 1px solid hsl(var(--h) 60% 40% / .5); }
.promo-banner.v2::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.04) 0 14px, transparent 14px 28px); }
.pb-text { position: relative; display: grid; gap: 2px; }
.pb-text .tagl { font-size: 15px; color: #ffb3dc; }
.pb-text .big { font-size: 34px; }
.pb-art { position: relative; width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 10px 22px rgba(0,0,0,.5)); animation: float 4s ease-in-out infinite; }
.pb-ico { position: relative; font-size: 84px; }
.promo-banner.v2 .pb-art { position: relative; left: auto; bottom: auto; transform: none; width: 140px; height: 140px; flex: none; }
.promo-banner.v2 .pb-text { flex: 1; min-width: 0; z-index: 1; }

/* ================= แบนเนอร์โปรโมชั่น (สไตล์โปสเตอร์) ================= */
.pbx { position: relative; height: 210px; border-radius: 16px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 22% 60%, hsl(var(--h) 90% 45%) 0%, hsl(var(--h) 85% 22%) 45%, #0b0718 100%);
  box-shadow: inset 0 0 0 1px hsl(var(--h) 90% 70% / .35), 0 10px 30px rgba(0,0,0,.35); }
.pbx-rays { position: absolute; left: 25%; top: 55%; width: 700px; height: 700px; translate: -50% -50%; z-index: -1; opacity: .35;
  background: repeating-conic-gradient(from 0deg, hsl(var(--h) 100% 80% / .55) 0 6deg, transparent 6deg 18deg);
  mask-image: radial-gradient(circle, #000 0 25%, transparent 60%); animation: spin 40s linear infinite; }
.bokeh { position: absolute; border-radius: 50%; background: hsl(calc(var(--h) + 30) 100% 80%); opacity: .45; filter: blur(1.5px); z-index: -1;
  box-shadow: 0 0 12px hsl(calc(var(--h) + 30) 100% 70%); }
.coin { position: absolute; width: 22px; height: 22px; border-radius: 50%; rotate: var(--a); z-index: 1;
  background: radial-gradient(circle at 35% 35%, #fff6c2, #fbbf24 45%, #b45309 100%); box-shadow: inset 0 0 0 2px #fde68a, 0 3px 6px rgba(0,0,0,.4);
  animation: bob 4s ease-in-out infinite; }
.coin:nth-of-type(2n) { animation-delay: -1.5s; width: 16px; height: 16px; }
.pbx .spark { position: absolute; width: 14px; height: 14px; z-index: 1; background: #fff; opacity: .9;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: twinkle 2.4s ease-in-out infinite; }
.pbx .spark:nth-of-type(2n) { animation-delay: -1.2s; width: 10px; height: 10px; }
@keyframes twinkle { 50% { opacity: .2; scale: .6; } }
.pbx-art { position: absolute; left: 4%; top: 50%; translate: 0 -50%; width: 46%; display: grid; place-items: center; z-index: 1; }
.pbx-art::before { content: ''; position: absolute; width: 150px; height: 150px; border-radius: 50%; background: hsl(var(--h) 100% 75% / .55); filter: blur(28px); z-index: -1; }
.pbx-art img { width: 172px; max-width: 100%; filter: drop-shadow(0 14px 18px rgba(0,0,0,.55)); animation: float 4s ease-in-out infinite; }
.pbx-art span { font-size: 100px; }
.pbx-text { position: absolute; right: 18px; top: 50%; translate: 0 -50%; width: 54%; display: grid; justify-items: end; text-align: right; z-index: 2; line-height: 1.05; }
.pbx-tag { font-size: 26px; font-weight: 600; font-style: italic; color: #fff; text-shadow: 0 0 10px hsl(var(--h) 100% 60%), 0 2px 0 hsl(var(--h) 80% 30%); }
.pbx-line { font-size: 15px; font-weight: 500; color: #ffd6ee; margin: 4px 0 2px; }
.pbx-big { position: relative; font-size: 64px; font-weight: 700; letter-spacing: -1px; font-style: italic;
  background: linear-gradient(180deg, #fffbe6 0%, #fde68a 35%, #f59e0b 65%, #b45309 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1.5px #5b1a0a; filter: drop-shadow(0 3px 0 #5b1a0a) drop-shadow(0 0 14px hsl(var(--h) 100% 60% / .8)); }
.pbx-swoosh { position: absolute; right: -40px; bottom: -70px; width: 320px; height: 120px; border-radius: 50%; z-index: 0;
  background: linear-gradient(90deg, transparent, hsl(calc(var(--h) + 20) 90% 60% / .35)); transform: rotate(-12deg); }
@media (max-width: 380px) { .pbx-big { font-size: 52px; } .pbx-tag { font-size: 22px; } }
.game .thumb.tall img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.game .thumb.tall { background: var(--bg-2); overflow: hidden; }
.more-games { grid-column: 1 / -1; margin-top: 8px; height: 44px; }

/* ================= แลกของรางวัล ================= */
.ic-coin { display: inline-block; width: 16px; height: 16px; border-radius: 50%; vertical-align: -2px;
  background: radial-gradient(circle at 35% 35%, #fff6c2, #fbbf24 50%, #b45309); box-shadow: inset 0 0 0 1.5px #fde68a; }
.ic-gem { width: 17px; height: 17px; vertical-align: -3px; }
.wallet-pills > span { display: inline-flex; align-items: center; gap: 5px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 2px 10px; font-size: 14px; }
.rw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rw-card { display: flex; flex-direction: column; text-align: left; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--bg-2); color: var(--text); font: inherit; cursor: pointer; transition: transform .15s, border-color .15s; }
.rw-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.rw-art { position: relative; height: 130px; display: grid; place-items: center; overflow: hidden; isolation: isolate;
  background: radial-gradient(circle at 50% 55%, hsl(var(--h) 90% 55%) 0%, hsl(var(--h) 80% 28%) 55%, hsl(var(--h) 70% 12%) 100%); }
.rw-rays { position: absolute; width: 400px; height: 400px; z-index: -1; opacity: .3;
  background: repeating-conic-gradient(from 0deg, #fff 0 6deg, transparent 6deg 20deg); mask-image: radial-gradient(circle, #000 0 20%, transparent 55%);
  animation: spin 30s linear infinite; }
.rw-art img { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(0,0,0,.45)); transition: transform .25s; }
.rw-card:hover .rw-art img { transform: scale(1.08) rotate(-4deg); }
.rw-emoji { font-size: 64px; }
.rw-qty { position: absolute; right: 8px; top: 8px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.3); border-radius: 20px; padding: 1px 9px; }
.rw-body { display: grid; gap: 2px; padding: 10px 12px 12px; flex: 1; }
.rw-body b { font-weight: 500; font-size: 14px; }
.rw-cost { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 600; font-size: 15px; }
.rw-cost em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 500; background: var(--accent); color: #fff; border-radius: 6px; padding: 3px 9px; }
.rw-card.locked .rw-cost em { background: #2c2150; color: var(--muted); }
.rw-card.locked .rw-art { filter: saturate(.75); }
#rArt .rw-art { height: 150px; border-radius: 12px; }
#rArt .rw-art img { width: 116px; height: 116px; }
.reward .rw-art { height: 100px; border-radius: 10px; margin-bottom: 6px; }
.reward .rw-art img { width: 70px; height: 70px; }

/* ================= ประวัติรายการ ================= */
.hx-demo { font-size: 12px; color: #fde68a; background: rgba(251,191,36,.1); border: 1px dashed rgba(251,191,36,.45); border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; text-align: center; }
.hx-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.hx-sum > div { border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; background: var(--bg-2); border: 1px solid var(--line); }
.hx-sum span { font-size: 11px; color: var(--muted); } .hx-sum b { font-size: 16px; font-weight: 600; }
.hx-sum .in { background: linear-gradient(135deg, rgba(34,197,94,.18), transparent); } .hx-sum .in b { color: #4ade80; }
.hx-sum .out { background: linear-gradient(135deg, rgba(248,113,113,.18), transparent); } .hx-sum .out b { color: #f87171; }
.hx-sum .gold { background: linear-gradient(135deg, rgba(251,191,36,.18), transparent); } .hx-sum .gold b { color: #fbbf24; }
.hx-filter { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.hx-filter .tabs { padding-bottom: 0; min-width: 0; }
.hx-day { font-size: 12px; color: var(--muted); margin: 16px 2px 6px; font-weight: 500; }
.hx-list { display: grid; gap: 6px; }
.hx-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; width: 100%; text-align: left;
  background: var(--bg-2); border: 1px solid transparent; border-radius: 12px; padding: 10px 12px; color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s; }
.hx-row:hover { border-color: var(--line); }
.hx-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; font-weight: 600; }
.hx-ico.in { background: rgba(34,197,94,.15); color: #4ade80; } .hx-ico.out { background: rgba(248,113,113,.15); color: #f87171; } .hx-ico.gold { background: rgba(251,191,36,.15); }
.hx-ico.big { width: 56px; height: 56px; font-size: 26px; border-radius: 16px; }
.hx-mid { display: grid; gap: 1px; min-width: 0; } .hx-mid b { font-weight: 500; font-size: 14px; }
.hx-note { font-size: 11px; color: #a78bfa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .hx-note.bad { color: #fca5a5; }
.hx-amt { display: grid; justify-items: end; gap: 3px; } .hx-amt b { font-size: 15px; font-weight: 600; }
.hx-empty { display: grid; justify-items: center; gap: 6px; padding: 40px 0; text-align: center; }
.hx-empty > span:first-child { font-size: 44px; } .hx-empty b { font-weight: 500; } .hx-empty .btn { margin-top: 8px; }
.hx-head { display: grid; justify-items: center; gap: 6px; margin: 4px 0 14px; } .hx-head b { font-size: 26px; font-weight: 600; }
.hx-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; } .hx-actions .btn { height: 42px; }

/* ================= หน้าแรกหลายแบบ (js/home-layouts.js) ================= */
.hs { margin: 28px 0; }
.hs-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.hs-head h2 { margin: 0; font-size: 18px; }
.hs-head a { font-size: 12px; color: var(--accent); }
.hg { display: grid; gap: 6px; color: var(--text); }
.hg-img { display: block; aspect-ratio: 1; border-radius: 12px; background-size: cover; background-position: center; box-shadow: 0 6px 14px rgba(0,0,0,.35); transition: transform .2s; }
.hg:hover .hg-img { transform: translateY(-3px); }
.hg-name { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 40s linear infinite; align-items: center; }
.marquee-track img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- แจ็กพอต ---- */
.jp-hero { position: relative; overflow: hidden; margin-top: 14px; padding: 26px 20px 22px; border-radius: 20px; text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, var(--accent) 0%, var(--bg-2) 60%); border: 1px solid var(--line); isolation: isolate; }
.jp-glow { position: absolute; inset: -40%; z-index: -1; opacity: .25; background: repeating-conic-gradient(from 0deg, #fff 0 5deg, transparent 5deg 15deg);
  mask-image: radial-gradient(circle, #000 0 30%, transparent 60%); animation: spin 50s linear infinite; }
.jp-kicker { font-size: 13px; letter-spacing: 1px; color: var(--lighter, #fff); opacity: .9; }
.jp-amount { font-size: 46px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; margin: 4px 0 8px;
  background: linear-gradient(180deg, #fffbe6, #fde68a 40%, #f59e0b 75%, #b45309); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0,0,0,.45)); }
.jp-hero p { font-size: 13px; }
.jp-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.jp-cta .btn { height: 46px; }
.jp-cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 22px 0 0; text-align: center; font-size: 12px; }
.jp-cats a { display: grid; justify-items: center; gap: 6px; color: var(--text); }
.jp-cats span { width: 60px; height: 60px; border-radius: 50%; background-size: 230% auto; background-position: 92% 30%; background-color: var(--bg-2);
  border: 2px solid var(--accent); box-shadow: 0 0 0 4px var(--bg), 0 0 16px var(--accent); transition: transform .2s; }
.jp-cats a:hover span { transform: scale(1.08); }
.jp-rail { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.jp-rail::-webkit-scrollbar { display: none; }
.jp-rail .hg { flex: 0 0 30%; scroll-snap-align: start; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 8px; margin-top: 12px; text-align: center; }
.pd { display: grid; justify-items: center; gap: 3px; font-size: 12px; }
.pd .avatar { width: 46px; height: 46px; border: 2px solid var(--accent); }
.pd b { font-weight: 500; } .pd span { color: #fbbf24; font-weight: 600; }
.pd-bar { width: 100%; border-radius: 10px 10px 0 0; display: grid; place-items: center; font-size: 26px; font-weight: 700; margin-top: 4px;
  background: linear-gradient(180deg, var(--accent), var(--bg-2)); }
.pd1 .pd-bar { height: 96px; } .pd2 .pd-bar { height: 72px; } .pd3 .pd-bar { height: 56px; }
.pd1 .avatar { width: 58px; height: 58px; border-color: #fbbf24; box-shadow: 0 0 14px #fbbf24; }
.jp-promos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.jp-promos a { position: relative; height: 110px; border-radius: 14px; overflow: hidden; padding: 12px; color: #fff; display: grid; align-content: end;
  background: linear-gradient(135deg, hsl(var(--h) 70% 35%), hsl(var(--h) 70% 15%)); }
.jp-promos img { position: absolute; right: -6px; top: -4px; width: 74px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.4)); }
.jp-promos b { font-size: 26px; font-weight: 700; line-height: 1; color: #fde68a; } .jp-promos span { font-size: 12px; }

/* ---- แดชบอร์ด ---- */
.db-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; align-items: center; margin-top: 18px; }
.db-pill { display: inline-block; font-size: 11px; color: #4ade80; background: rgba(34,197,94,.12); border-radius: 20px; padding: 2px 10px; }
.db-hero h1 { font-size: 28px; line-height: 1.15; margin: 10px 0 8px; font-weight: 600; }
.db-hero p { font-size: 13px; }
.db-cta { display: grid; gap: 8px; margin-top: 10px; } .db-cta .btn { height: 42px; }
.db-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; transform: rotate(4deg); }
.db-grid span { aspect-ratio: 3/4; border-radius: 12px; background-size: cover; background-position: center; box-shadow: 0 10px 20px rgba(0,0,0,.4); }
.db-grid span:nth-child(2n) { transform: translateY(14px); }
.db-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 26px 0 0; }
.db-stats div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 6px; text-align: center; display: grid; }
.db-stats b { font-size: 20px; color: var(--accent); } .db-stats span { font-size: 11px; color: var(--muted); }
.db-games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.db-games .hg-img { aspect-ratio: 3/4; }
.db-feats { display: grid; gap: 10px; }
.db-feats div { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: center; background: var(--bg-2); border-radius: 14px; padding: 12px 14px; border-left: 3px solid var(--accent); }
.db-feats span { grid-row: span 2; font-size: 26px; text-align: center; } .db-feats b { font-weight: 500; } .db-feats p { margin: 0; font-size: 12px; color: var(--muted); }
.db-provs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.db-provs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }

/* ---- นิตยสาร ---- */
.mg-slider { position: relative; height: 190px; margin-top: 14px; border-radius: 18px; overflow: hidden; }
.mg-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; color: #fff; opacity: 0; transition: opacity .6s;
  background: radial-gradient(circle at 80% 50%, hsl(var(--h) 90% 55% / .6), transparent 55%), linear-gradient(120deg, hsl(var(--h) 60% 22%), hsl(var(--h) 70% 10%)); }
.mg-slide.on { opacity: 1; z-index: 1; }
.mg-slide div { display: grid; } .mg-slide span { font-size: 18px; font-weight: 600; font-style: italic; }
.mg-slide b { font-size: 56px; font-weight: 700; line-height: 1; color: #fde68a; text-shadow: 0 3px 0 rgba(0,0,0,.4); } .mg-slide em { font-style: normal; font-size: 13px; }
.mg-slide img { width: 140px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.5)); animation: float 4s ease-in-out infinite; }
.mg-dots { position: absolute; bottom: 10px; left: 50%; translate: -50% 0; display: flex; gap: 6px; z-index: 2; }
.mg-dots button { width: 8px; height: 8px; border: 0; border-radius: 4px; background: rgba(255,255,255,.4); padding: 0; cursor: pointer; transition: width .2s; }
.mg-dots button.on { width: 22px; background: #fff; }
.mg-search { display: flex; align-items: center; gap: 8px; margin-top: 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 6px 6px 6px 14px; }
.mg-search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); font: inherit; font-size: 14px; outline: none; }
.mg-ticker { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-size: 12px; }
.mg-live { flex: none; background: #ef4444; color: #fff; font-weight: 600; font-size: 10px; border-radius: 4px; padding: 2px 6px; animation: twinkle 1.6s infinite; }
.mg-ticker .marquee-track { gap: 28px; animation-duration: 50s; } .mg-ticker b { color: #fbbf24; }
.mg-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mg-cats a.wide { grid-column: span 2; } .mg-cats img { width: 100%; display: block; }
.mg-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mg-mosaic .hg.big { grid-column: span 2; grid-row: span 2; } .mg-mosaic .hg.big .hg-img { aspect-ratio: auto; height: 100%; min-height: 200px; }
.mg-mosaic .hg.big { grid-template-rows: 1fr auto; }
.mg-board { display: grid; gap: 6px; }
.mg-board div { display: grid; grid-template-columns: 30px 34px 1fr auto; gap: 10px; align-items: center; background: var(--bg-2); border-radius: 12px; padding: 8px 12px; }
.mg-board .avatar { width: 34px; height: 34px; } .mg-board b { font-weight: 500; } .mg-board em { font-style: normal; color: #fbbf24; font-weight: 600; }

/* ================= หน้าแรก NOVA (magazine v2) ================= */
.az-hero { position: relative; height: 230px; margin-top: 14px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08); }
.az-slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; padding: 0 16px 0 22px; opacity: 0; transition: opacity .6s;
  background: radial-gradient(circle at 78% 45%, var(--accent) 0%, transparent 45%), radial-gradient(circle at 0% 100%, var(--accent2, #8b5cf6) 0%, transparent 40%),
              linear-gradient(135deg, var(--bg-3), var(--bg)); }
.az-slide.on { opacity: 1; z-index: 1; }
.az-copy { display: grid; justify-items: start; }
.az-tag { font-size: 12px; font-weight: 500; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: 20px; padding: 2px 10px; backdrop-filter: blur(6px); }
.az-copy b { font-size: 58px; font-weight: 700; line-height: 1.05; margin-top: 6px;
  background: linear-gradient(180deg, #fff, #ffb3dc 60%, #f472b6); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); }
.az-copy em { font-style: normal; font-size: 13px; color: #ffd6ee; }
.az-btns { display: flex; gap: 8px; margin-top: 12px; }
.az-btns .btn { height: 34px; }
.az-slide img { justify-self: center; width: 150px; filter: drop-shadow(0 14px 22px rgba(0,0,0,.5)) drop-shadow(0 0 22px var(--accent)); animation: float 4s ease-in-out infinite; }
.az-dots { position: absolute; left: 22px; bottom: 14px; display: flex; gap: 6px; z-index: 2; }
.az-dots button { width: 8px; height: 8px; border: 0; border-radius: 4px; background: rgba(255,255,255,.35); padding: 0; cursor: pointer; transition: width .25s; }
.az-dots button.on { width: 24px; background: #fff; }
.mg-search { box-shadow: 0 0 0 1px transparent, 0 8px 22px rgba(0,0,0,.3); }
.mg-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232, 57, 154,.25); }
.mg-live { animation: none; background: rgba(239,68,68,.15); color: #f87171; border: 1px solid rgba(239,68,68,.5); }
.az-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.az-cats a { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; color: var(--text);
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.01)); border: 1px solid var(--line); transition: transform .15s, border-color .15s; }
.az-cats a:first-child { grid-column: span 2; }
.az-cats a:hover { transform: translateY(-2px); border-color: var(--accent); }
.az-orb { width: 54px; height: 54px; border-radius: 50%; background-size: 240% auto; background-position: 93% 28%; background-color: var(--bg-3);
  box-shadow: 0 0 0 2px var(--accent), 0 0 18px rgba(232, 57, 154,.55); }
.az-cat-t { display: grid; } .az-cat-t b { font-weight: 500; } .az-cat-t em { font-style: normal; font-size: 11px; color: var(--muted); }
.az-cats i { font-style: normal; color: var(--accent); font-size: 20px; }
.az-top { display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 0 6px; }
.az-top::-webkit-scrollbar { display: none; }
.az-top a { flex: 0 0 44%; display: flex; align-items: flex-end; scroll-snap-align: start; }
.az-num { font-size: 92px; font-weight: 700; line-height: .8; letter-spacing: -6px; margin-right: -14px; z-index: 1;
  color: var(--bg); -webkit-text-stroke: 2px var(--accent); text-shadow: 0 0 18px rgba(232, 57, 154,.5); }
.az-cover { flex: 1; aspect-ratio: 3/4; border-radius: 12px; background-size: cover; background-position: center; box-shadow: 0 10px 20px rgba(0,0,0,.45); }
.az-promos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.az-promos a { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 14px; color: var(--text); background: var(--bg-2); border: 1px solid var(--line); }
.az-promos img { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.4)); }
.az-promos span { display: grid; } .az-promos b { font-size: 20px; color: var(--light, #ff8ad0); line-height: 1.1; } .az-promos em { font-style: normal; font-size: 11px; color: var(--muted); }
.az-btns .btn { white-space: nowrap; padding: 0 12px; font-size: 13px; }
.az-slide { grid-template-columns: 1.3fr 1fr; }
.az-slide img { width: 130px; }

/* ================= ป๊อปอัปหน้าแรก (js/home-popup.js) ================= */
.hp-modal { z-index: 150; backdrop-filter: blur(3px); animation: hpFade .25s ease; }
@keyframes hpFade { from { opacity: 0; } }
.hp-sheet { position: relative; width: 100%; max-width: 360px; border-radius: 20px; overflow: hidden; background: var(--bg-2);
  border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.6); animation: hpPop .3s cubic-bezier(.2,.9,.3,1.2); }
@keyframes hpPop { from { transform: scale(.88); opacity: 0; } }
.hp-x { position: absolute; top: 10px; right: 10px; z-index: 3; width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0,0,0,.45); color: #fff; font-size: 15px; backdrop-filter: blur(4px); }
.hp-track { position: relative; }
.hp-slide { display: none; } .hp-slide.on { display: block; animation: slidein .3s ease; }
.hp-img { position: relative; height: 210px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 55%, hsl(var(--h) 90% 55%) 0%, hsl(var(--h) 75% 25%) 55%, hsl(var(--h) 60% 10%) 100%); }
.hp-img::before { content: ''; position: absolute; width: 520px; height: 520px; opacity: .28;
  background: repeating-conic-gradient(from 0deg, #fff 0 6deg, transparent 6deg 18deg); mask-image: radial-gradient(circle, #000 0 20%, transparent 55%); animation: spin 40s linear infinite; }
.hp-img img { position: relative; width: 170px; height: 170px; object-fit: contain; filter: drop-shadow(0 14px 20px rgba(0,0,0,.5)); animation: float 4s ease-in-out infinite; }
.hp-badge { position: absolute; left: 14px; top: 14px; font-size: 12px; font-weight: 600; color: #fff; background: var(--accent); border-radius: 20px; padding: 3px 12px; box-shadow: 0 4px 12px rgba(0,0,0,.35); }
.hp-body { padding: 16px 18px 6px; text-align: center; }
.hp-body h3 { margin: 0 0 6px; font-size: 20px; font-weight: 600; }
.hp-body p { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.hp-btn { width: 100%; height: 44px; }
.hp-nav { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 6px 0 2px; }
.hp-nav button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; }
.hp-dots { display: flex; gap: 6px; } .hp-dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--line); cursor: pointer; transition: width .2s; }
.hp-dots i.on { width: 20px; background: var(--accent); }
.hp-hide { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 0 14px; font-size: 13px; color: var(--muted); cursor: pointer; user-select: none; }
.hp-hide input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }

/* ================= ขนาดตามแบบอ้างอิง (วัดจากหน้าจริงที่กว้าง 390 / 711px) ================= */
/* คอลัมน์: เนื้อหากว้าง 440 + ขอบข้าง 20 */
:root { --col: 480px; }
.col { padding: 0 20px; }
/* hero: พื้นที่ภาพ 650×380 ล้นคอลัมน์ได้, พื้นโค้ง 564×310, ข้อความทับครึ่งล่างของภาพ */
.hero { margin-top: 0; }
.hero-art { width: min(650px, 100vw); height: 380px; left: 50%; transform: translateX(-50%); overflow: visible; }
.blob.b1 { inset: auto; width: 564px; height: 310px; left: 50%; top: 0; margin-left: -300px; }
.blob.b2 { width: 150px; height: 110px; right: 4%; top: 120px; }
.blob.b3 { width: 110px; height: 80px; left: 2%; top: 210px; bottom: auto; }
.hero-cards { place-items: start center; padding-top: 34px; }
.hc { width: 180px; border-radius: 18px; }
.hc0 { transform: translate(-128px, 26px) rotate(-14deg); }
.hc2 { transform: translate(128px, 26px) rotate(14deg); }
.hc1 { width: 210px; }
.hero-dots { top: 90px; left: auto; right: calc(50% - 160px); transform: none; gap: 8px; align-items: center; }
.hero-dots button { width: 6px; height: 6px; background: rgba(255,255,255,.5); }
.hero-dots button.on { width: 14px; height: 14px; border-radius: 50%; }
.hero-text { margin-top: -98px; z-index: 2; }
.hero-kicker { font-size: 30px; font-weight: 500; line-height: 36px; margin-bottom: -10px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.hero-title { font-size: 60px; font-weight: 500; line-height: 72px; margin: 0 0 6px; }
.hero-text p { font-size: 16px; line-height: 24px; color: #fff; margin: 0; }
/* ทัวร์นาเมนต์ */
.tour-title { font-size: 38px; font-weight: 600; line-height: 1.2; margin: 0 0 5px; }
.tour-sub { font-size: 24px; font-weight: 500; line-height: 1.2; margin: 0 0 4px; }
.tour p { font-size: 14px !important; line-height: 1.4; max-width: calc(100% - 95px); margin: 0 0 5px; }
.tour .tour-sub { max-width: none; }
.tour-mascot { width: 210px; right: -55px; top: 25px; transform: none; }
.board { margin-top: 10px; }
.board-head, .row { grid-template-columns: 30px 1fr auto 90px; gap: 10px; padding: 0 20px; }
.board-head { height: auto; padding: 15px 20px 5px; }
.row { height: 60px; font-size: 16px; }
.rank.top { width: 22px; height: 22px; font-size: 12px; font-weight: 700; }
.prize { font-size: 10px; font-weight: 700; padding: 3px 7px; }
/* ปุ่มสมัคร/เข้าสู่ระบบติดล่างจอ */
.cta { width: min(440px, calc(100% - 40px)); }
.cta .btn { height: 50px; font-size: 18px; font-weight: 500; }/* ให้พื้นโค้ง hero ล้นออกนอกคอลัมน์ได้เหมือนแบบ (กันหน้าเลื่อนข้างที่ body แทน) */
html, body { overflow-x: clip; }
main.col { overflow-x: visible; }
.tour-mascot { width: 180px; right: -45px; top: 40px; }
.balloon.b1 { right: 150px; top: 18px; }
.balloon.b2 { right: -14px; top: 30px; }
.balloon.b3 { right: -70px; top: 300px; }

/* =========================================================
   โทนสีม่วง-ชมพู (ตามรูปอ้างอิง 4 ต.ค. 2569)
   ลบทั้งบล็อกนี้ = กลับเป็นสีเดิม · สำรองไฟล์เดิมไว้ที่ css/style.ก่อนเปลี่ยนสี.css
   ========================================================= */
:root {
  --bg: #2b2166;                    /* ช่องกรอก / แถบ / พื้นด้านใน */
  --bg-2: rgba(255, 255, 255, .09); /* การ์ดแบบกระจกฝ้า */
  --bg-3: rgba(255, 255, 255, .16);
  --line: rgba(255, 255, 255, .16);
  --text: #ffffff;
  --muted: #dacdf3;
  --accent: #f0559a;                /* ชมพูหลัก */
  --accent-2: #4ea8e8;              /* ฟ้า (ปลายไล่สีปุ่ม) */
  --gold: #ffd23f;                  /* เหลืองชื่อแบรนด์ */
  --dot: #45c8ff;                   /* จุดฟ้าหน้ารายการ */
  --solid: #3c2b7d;                 /* พื้นทึบสำหรับป๊อปอัป/เมนู */
}
body { background: linear-gradient(160deg, #2b2366 0%, #43307f 28%, #6c3596 58%, #b3418f 84%, #d24c91 100%) fixed; }
.header { background: rgba(43, 35, 102, .82); }

/* ป๊อปอัปและเมนูต้องทึบ ไม่งั้นมองทะลุ */
.sheet, .hp-sheet { background: var(--solid); }
@media (max-width: 760px) { .nav { background: var(--solid); } }
@media (max-width: 1100px) { .header.member .nav { background: var(--solid); } }

/* ปุ่มหลักและป้าย: ไล่สีชมพู → ฟ้า */
.btn-pink, .select { background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 6px 20px rgba(240, 85, 154, .35); }
.tab.on, .seg a.on { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff; }
.badge.x.blue, .bank-tile { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.dock { background: linear-gradient(90deg, #e94b9b, #8a4fd6 55%, #4ea8e8); box-shadow: 0 10px 30px rgba(110, 60, 200, .45); }
.sec-head h2.blue { border-color: var(--dot); }

/* การ์ดกระจก: ขอบสว่างบาง ๆ */
.card, .board, .stat, .wallet, .reward, .mission, .txn, .hot, .faq details { border: 1px solid var(--line); }

/* แผงที่เดิมเป็นดำสนิท → ม่วงเข้มโปร่ง */
.seg-blue, .prov-panel, .chip.logo { background: rgba(30, 20, 80, .55); }

/* ชื่อแบรนด์สีเหลือง */
.logo { color: var(--gold); }
/* ---------- ป๊อปอัปมุมซ้ายล่าง: ใครเพิ่งเข้าสู่ระบบ (js/live-toast.js) ---------- */
.live-toast {
  position: fixed; left: 12px; bottom: 96px; z-index: 70;
  display: flex; align-items: center; gap: 12px;
  min-width: 240px; max-width: calc(100% - 24px); padding: 14px 20px 14px 16px;
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14);
  background: linear-gradient(135deg, #1b1745 0%, #2a2160 55%, #3d2c80 100%);
  box-shadow: 0 10px 30px rgba(20, 10, 60, .55);
  opacity: 0; transform: translateX(-120%); pointer-events: none;
  transition: transform .45s cubic-bezier(.2, .9, .3, 1.15), opacity .3s;
}
.live-toast.show { opacity: 1; transform: none; animation: ltGlow 1.2s ease-in-out infinite; }
.live-toast b { display: block; font-weight: 500; font-size: 14px; color: #fff; line-height: 1.35; }
.live-toast small { display: block; font-size: 12px; color: #6fd3ff; line-height: 1.3; }
.lt-dot { width: 11px; height: 11px; flex: none; border-radius: 50%; background: #45c8ff; animation: ltBlink 1s steps(2, start) infinite; box-shadow: 0 0 10px #45c8ff; }
@keyframes ltBlink { 50% { opacity: .15; box-shadow: none; } }
@keyframes ltGlow { 50% { box-shadow: 0 10px 30px rgba(20, 10, 60, .55), 0 0 0 2px rgba(69, 200, 255, .45), 0 0 22px rgba(69, 200, 255, .35); } }
@media (min-width: 900px) { .live-toast { left: 24px; bottom: 24px; } }
@media (prefers-reduced-motion: reduce) { .live-toast.show, .lt-dot { animation: none; } }
/* ---------- ป๊อปอัปหน้าแรก แบบโปสเตอร์ (homePopup.style = 'poster') ---------- */
.pp-sheet { max-width: 400px; background: linear-gradient(180deg, #2c1863 0%, #4a1f78 100%); border: 1px solid rgba(255,255,255,.18); }
.pp-x { background: #3a1d6e; color: #fff; font-size: 16px; width: 38px; height: 38px; box-shadow: 0 4px 12px rgba(0,0,0,.35); }
.pp-image { display: block; width: 100%; height: auto; }
.pp-art {
  position: relative; padding: 18px 14px 12px; text-align: center; overflow: hidden; color: #2a0f5c;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.9) 0 2px, transparent 3px),
    radial-gradient(circle at 86% 30%, rgba(255,255,255,.9) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 8%, rgba(255,255,255,.8) 0 1.5px, transparent 2.5px),
    radial-gradient(120% 70% at 50% 0%, #d8f0ff 0%, #c4ddff 40%, transparent 70%),
    linear-gradient(180deg, #c9e6ff 0%, #f3d6ff 55%, #ffd3ea 100%);
}
.pp-brand {
  font-size: 56px; font-weight: 600; font-style: italic; line-height: .95; letter-spacing: 1px;
  background: linear-gradient(180deg, #fff6a8 0%, #ffd23f 45%, #ff9f1c 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 #4a1a8a) drop-shadow(0 6px 10px rgba(74, 26, 138, .45));
}
.pp-headline { margin-top: 4px; font-size: 22px; font-weight: 600; color: #3b1478; }
.pp-catch { display: flex; justify-content: center; gap: 8px; margin-top: 2px; }
.pp-catch span { font-size: 30px; font-weight: 600; font-style: italic; line-height: 1.15; padding: 0 12px 2px; border-radius: 12px; }
.pp-catch .c0 { color: #fff; background: linear-gradient(90deg, #7b3fe4, #a855f7); box-shadow: 0 4px 0 #4a1a8a; }
.pp-catch .c1 { background: linear-gradient(180deg, #ff5fa8, #e8399a); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 #fff); }
.pp-tags { display: inline-block; margin-top: 10px; padding: 3px 14px; border-radius: 20px; background: #fff; color: #3b1478; font-size: 12px; font-weight: 500; box-shadow: 0 3px 10px rgba(74, 26, 138, .18); }
.pp-tags i { font-style: normal; color: #e8399a; }
.pp-games { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.pp-game { position: relative; aspect-ratio: 1; border-radius: 10px; background-size: cover; background-position: center; border: 2px solid #fff; box-shadow: 0 4px 10px rgba(74, 26, 138, .3); overflow: hidden; }
.pp-game span { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 3px 3px; font-size: 9px; font-weight: 500; color: #fff; line-height: 1.15; background: linear-gradient(transparent, rgba(30, 10, 70, .85)); }
.pp-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.pp-feats div { background: #fff; border-radius: 10px; padding: 6px 2px 5px; display: grid; justify-items: center; box-shadow: 0 3px 8px rgba(74, 26, 138, .15); }
.pp-feats b { font-size: 18px; line-height: 1.2; }
.pp-feats strong { font-size: 12px; font-weight: 600; color: #3b1478; line-height: 1.3; }
.pp-feats small { font-size: 9px; color: #6b5b95; line-height: 1.2; }
.pp-cta {
  margin: 12px auto 0; display: flex; align-items: center; justify-content: center; gap: 10px; width: 78%; height: 50px;
  border: 3px solid #fff; border-radius: 30px; cursor: pointer; font: 600 italic 24px Kanit, sans-serif; color: #fff;
  background: linear-gradient(90deg, #ff4fa0, #e8399a 50%, #c2185b); box-shadow: 0 6px 18px rgba(232, 57, 154, .55);
  animation: ppPulse 1.6s ease-in-out infinite;
}
.pp-cta span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #e8399a; font-style: normal; font-size: 20px; line-height: 1; }
@keyframes ppPulse { 50% { transform: scale(1.04); box-shadow: 0 8px 26px rgba(232, 57, 154, .75); } }
.pp-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 12px; padding: 6px; border-radius: 10px; background: rgba(255,255,255,.7); }
.pp-trust div { display: flex; align-items: center; gap: 4px; text-align: left; }
.pp-trust b { font-size: 15px; }
.pp-trust span { font-size: 9px; color: #6b5b95; line-height: 1.2; }
.pp-trust strong { display: block; font-size: 10px; color: #3b1478; font-weight: 600; }
.pp-bottom { padding: 18px 16px 16px; text-align: center; }
.pp-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pp-btns .btn { height: 52px; border-radius: 14px; font-size: 16px; font-weight: 600; cursor: pointer; }
.pp-login { background: #2a2470; color: #fff; border: 1px solid rgba(255,255,255,.18); }
.pp-reg { background: linear-gradient(90deg, #f0559a, #e070b8); }
.pp-desc { margin: 16px 0 0; font-size: 14px; color: #fff; line-height: 1.6; }
.pp-foot { margin-top: 12px; font-size: 14px; font-weight: 600; color: #a9c8ff; }
@media (prefers-reduced-motion: reduce) { .pp-cta { animation: none; } }
/* ---------- ป๊อปอัปหน้าแรก (แบบสไลด์) — หน้าตาตามรูปอ้างอิง: พื้นรูปสว่างพาสเทล + ปุ่มคู่ + บรรทัด © ---------- */
.hp-modal .hp-sheet { background: linear-gradient(180deg, #2c1863 0%, #4a1f78 100%); border: 1px solid rgba(255,255,255,.18); }
.hp-img {
  background:
    radial-gradient(circle at 12% 20%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 84% 26%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 70% 10%, rgba(255,255,255,.85) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 26% 82%, rgba(255,255,255,.85) 0 1.5px, transparent 2.5px),
    linear-gradient(180deg, #c9e6ff 0%, #f0d6ff 55%, #ffd3ea 100%);
}
.hp-img::before { opacity: .45; }
.hp-img img { filter: drop-shadow(0 12px 16px rgba(74, 26, 138, .45)); }
.hp-x { background: #3a1d6e; color: #fff; }
.hp-btns { display: grid; gap: 10px; }
.hp-btns.two { grid-template-columns: 1fr 1fr; }
.hp-btns .hp-btn { height: 46px; border-radius: 12px; font-weight: 600; }
.hp-login { background: #2a2470; color: #fff; border: 1px solid rgba(255,255,255,.18); }
.hp-foot { padding: 0 16px 14px; margin-top: -4px; text-align: center; font-size: 13px; font-weight: 600; color: #a9c8ff; }
/* ป๊อปอัปมุมซ้ายล่าง: บนมือถือย่อให้เล็กลง */
@media (max-width: 899px) {
  .live-toast { min-width: 0; gap: 9px; padding: 8px 14px 8px 11px; border-radius: 11px; }
  .live-toast b { font-size: 12.5px; }
  .live-toast small { font-size: 11px; }
  .lt-dot { width: 8px; height: 8px; }
}
/* ป๊อปอัปหน้าแรก: สไลด์โปสเตอร์รูปเต็มกว้าง (slides[].poster) */
.hp-img.hp-poster { display: block; height: auto; background: none; cursor: pointer; }
.hp-img.hp-poster::before { display: none; }
.hp-img.hp-poster img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; animation: none; filter: none; }
.hp-poster + .hp-body { padding-top: 14px; }
/* ป๊อปอัปหน้าแรก: เอฟเฟกต์ตามวิดีโออ้างอิง (แสงวิ่งบนปุ่ม · ไฟชมพูกลางปุ่ม · แถบแสงทแยงพาดแผงล่าง) */
.hp-modal .hp-sheet { background: linear-gradient(180deg, #3a1766 0%, #4a1a72 60%, #3d1563 100%); }
.hp-modal .hp-sheet::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; pointer-events: none; z-index: 1;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,.07) 45%, rgba(255,255,255,.11) 50%, rgba(255,255,255,.07) 55%, transparent 100%);
  animation: hpSweep 4.5s ease-in-out infinite;
}
@keyframes hpSweep { 0% { transform: translateX(0) skewX(-12deg); } 60%, 100% { transform: translateX(380%) skewX(-12deg); } }
.hp-poster { position: relative; z-index: 0; }
.hp-body, .hp-desc, .hp-foot { position: relative; z-index: 2; }
.hp-btns { position: relative; }
.hp-btns .hp-btn { position: relative; overflow: hidden; height: 50px; font-size: 16px; }
.hp-btns .hp-btn::after {
  content: ''; position: absolute; top: -20%; bottom: -20%; left: -70%; width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg);
  animation: hpShine 3s ease-in-out infinite;
}
.hp-btns .hp-btn.btn-pink::after { animation-delay: .25s; }
@keyframes hpShine { 0% { left: -70%; } 45%, 100% { left: 130%; } }
.hp-btns.two::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 4px; margin: -2px 0 0 -8px; border-radius: 4px; z-index: 3;
  background: #ff5fb0; box-shadow: 0 0 10px 3px rgba(255, 79, 160, .8); animation: hpGlow 1.4s ease-in-out infinite;
}
@keyframes hpGlow { 0%, 100% { opacity: .25; transform: scaleX(.6); } 50% { opacity: 1; transform: scaleX(1.3); } }
.hp-desc { margin: 2px 0 0; padding: 0 18px; text-align: center; font-size: 14px; line-height: 1.6; color: #fff; }
.hp-modal .hp-foot { margin-top: 10px; padding-bottom: 18px; }
@media (prefers-reduced-motion: reduce) { .hp-modal .hp-sheet::after, .hp-btns .hp-btn::after, .hp-btns.two::before { animation: none; } }
.hp-modal .hp-desc { margin-top: 14px; }
.hp-poster + .hp-body { padding-top: 18px; padding-bottom: 0; }

/* ---------- hero: ต้นไม้ไหวตามลมแทนพื้นโค้ง (js/home-layouts.js → HERO_TREES) ---------- */
.hero-art .blob { display: none; }
.hero-trees { position: absolute; inset: 0; pointer-events: none; }
.hero-trees svg { width: 100%; height: 100%; overflow: visible; }
.hero-trees .tree { transform-box: view-box; animation: treeSway 5.5s ease-in-out infinite alternate; }
.hero-trees .crown { transform-box: fill-box; transform-origin: 50% 100%; animation: treeRustle 3s ease-in-out infinite alternate; }
@keyframes treeSway { 0% { transform: rotate(-1.4deg); } 100% { transform: rotate(1.8deg); } }
@keyframes treeRustle { 0% { transform: rotate(-1deg) scale(1); } 100% { transform: rotate(1.3deg) scale(1.02, .99); } }
.hero-trees .leaf { transform-box: fill-box; transform-origin: center; opacity: 0; animation: leafDrift 9s linear infinite; }
@keyframes leafDrift {
  0% { transform: translate(0, 0) rotate(0); opacity: 0; }
  10% { opacity: .9; }
  50% { transform: translate(120px, 40px) rotate(220deg); }
  85% { opacity: .7; }
  100% { transform: translate(240px, 110px) rotate(480deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .hero-trees .tree, .hero-trees .crown, .hero-trees .leaf { animation: none; } }

/* ---------- header สมาชิก: เมนูสั้นแบบหน้าแรก (หน้าอื่นอยู่ในป๊อปอัป "เมนู") ---------- */
@media (min-width: 761px) {
  .header.member .nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 22px; font-size: 15px; background: none; border: 0; }
  .header.member .nav a { padding: 0; border: 0; }
  .header.member .burger { display: none; }
}
.header.member .user-chip { gap: 6px; padding: 3px 12px 3px 3px; border-radius: 20px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); white-space: nowrap; }
.header.member .user-chip .avatar { width: 26px; height: 26px; border-radius: 50%; }
.hd-credit { font-size: 12px; color: var(--muted); font-weight: 400; }
.hd-credit b { color: #fff; font-weight: 500; }
@media (max-width: 760px) { .header.member .user-chip { background: none; border: 0; border-radius: 0; padding: 12px 22px; } }

/* ---------- hero: ต้นไม้รูปจริง (img/ต้นไม้.webp) เอนตามลม + ใบไม้ร่วง ---------- */
.hero-trees .ht { position: absolute; bottom: 14px; width: 300px; aspect-ratio: 562 / 659; }
.hero-trees .ht-l { left: -110px; }
.hero-trees .ht-r { right: -110px; width: 270px; transform: scaleX(-1); }
.hero-trees .ht-tree { display: block; width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 100%;
  filter: drop-shadow(0 12px 18px rgba(30, 10, 70, .45)); animation: htSway 6s ease-in-out infinite alternate; }
.hero-trees .ht-r .ht-tree { animation-duration: 7.2s; animation-delay: -2.5s; }
@keyframes htSway {
  0%   { transform: skewX(1.4deg) rotate(-.5deg); }
  50%  { transform: skewX(-.6deg) rotate(.2deg); }
  100% { transform: skewX(-2deg) rotate(.7deg); }
}
.hero-trees .ht-leaf { position: absolute; width: 15px; height: 15px; opacity: 0; animation: htFall var(--d) linear infinite; animation-delay: var(--t); }
.hero-trees .ht-leaf svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
@keyframes htFall {
  0%   { transform: translate(0, 0) rotate(0); opacity: 0; }
  8%   { opacity: 1; }
  25%  { transform: translate(calc(var(--dx) * .35), 55px) rotate(80deg); }
  50%  { transform: translate(calc(var(--dx) * -.15), 120px) rotate(190deg); }
  75%  { transform: translate(calc(var(--dx) * .7), 185px) rotate(290deg); }
  90%  { opacity: .9; }
  100% { transform: translate(var(--dx), 240px) rotate(400deg); opacity: 0; }
}
@media (max-width: 600px) {
  .hero-trees .ht { width: 190px; bottom: 70px; }
  .hero-trees .ht-l { left: -60px; }
  .hero-trees .ht-r { right: -60px; width: 175px; }
  .hero-trees .ht-leaf { width: 12px; height: 12px; }
}
@media (prefers-reduced-motion: reduce) { .hero-trees .ht-tree, .hero-trees .ht-leaf { animation: none; } }
/* ไล่จางโคนต้นไม้ (แถบพื้นหญ้า) ให้กลืนพื้นหลัง */
.hero-trees .ht-tree { -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 97%); mask-image: linear-gradient(to bottom, #000 80%, transparent 97%); }

/* ขยับต้นไม้เข้าหาปกเกม */
.hero-trees .ht-l { left: -45px; }
.hero-trees .ht-r { right: -45px; }
@media (max-width: 600px) { .hero-trees .ht-l { left: -60px; } .hero-trees .ht-r { right: -60px; } }

/* ขยับต้นไม้เข้ามาอีก */
.hero-trees .ht-l { left: 15px; }
.hero-trees .ht-r { right: 15px; }
@media (max-width: 600px) { .hero-trees .ht-l { left: -60px; } .hero-trees .ht-r { right: -60px; } }

/* ขอบต้นไม้ไล่จางในไฟล์รูปแล้ว → ไม่ใช้ mask/เงา (ทำให้เห็นเส้นขอบ) */
.hero-trees .ht-tree { -webkit-mask-image: none; mask-image: none; filter: none; }

.promo-intro { margin: -4px 0 14px; font-size: 14px; line-height: 1.6; color: var(--muted); }

.promo-outro { margin-top: 18px; line-height: 1.7; }


/* ---------- รวมค่ายเกม: สไตล์หรู + ลูกเล่น ---------- */
.providers { gap: 12px; perspective: 600px; }
.providers .chip { position: relative; overflow: hidden; border-radius: 14px;
  border: 1.5px solid transparent;
  background: linear-gradient(#120a24, #120a24) padding-box, linear-gradient(135deg, #fff1b8, #e0a43a 35%, #7a4a12 60%, #ffd76a) border-box;
  box-shadow: 0 6px 16px rgba(10, 0, 30, .45);
  transition: transform .3s cubic-bezier(.2,.9,.3,1.3), box-shadow .3s;
  animation: provIn .55s cubic-bezier(.2,.9,.3,1.2) both; }
.providers .chip.logo img { border-radius: 12px; transition: transform .35s; }
/* แสงทองวิ่งผ่านทีละช่อง */
.providers .chip::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 230, 160, .35) 50%, transparent 62%) no-repeat;
  background-size: 260% 100%; background-position: 170% 0; animation: provShine 6s ease-in-out infinite; }
.providers .chip:hover { transform: translateY(-6px) rotateX(8deg) scale(1.06); box-shadow: 0 14px 28px rgba(255, 180, 50, .4), 0 0 0 1px rgba(255, 215, 110, .6); z-index: 1; }
.providers .chip.logo:hover img { transform: scale(1.1); }
@keyframes provShine { 0%, 60% { background-position: 170% 0; } 90%, 100% { background-position: -70% 0; } }
@keyframes provIn { from { opacity: 0; transform: translateY(16px) scale(.85); } }
/* หน่วงเวลาไล่ทีละช่อง (ทั้งตอนโผล่และแสงวิ่ง) */
.providers .chip:nth-child(1) { animation-delay: .00s; } .providers .chip:nth-child(1)::after { animation-delay: 0s; }
.providers .chip:nth-child(2) { animation-delay: .05s; } .providers .chip:nth-child(2)::after { animation-delay: .25s; }
.providers .chip:nth-child(3) { animation-delay: .10s; } .providers .chip:nth-child(3)::after { animation-delay: .5s; }
.providers .chip:nth-child(4) { animation-delay: .15s; } .providers .chip:nth-child(4)::after { animation-delay: .75s; }
.providers .chip:nth-child(5) { animation-delay: .20s; } .providers .chip:nth-child(5)::after { animation-delay: .25s; }
.providers .chip:nth-child(6) { animation-delay: .25s; } .providers .chip:nth-child(6)::after { animation-delay: .5s; }
.providers .chip:nth-child(7) { animation-delay: .30s; } .providers .chip:nth-child(7)::after { animation-delay: .75s; }
.providers .chip:nth-child(8) { animation-delay: .35s; } .providers .chip:nth-child(8)::after { animation-delay: 1s; }
.providers .chip:nth-child(9) { animation-delay: .40s; } .providers .chip:nth-child(9)::after { animation-delay: .5s; }
.providers .chip:nth-child(10) { animation-delay: .45s; } .providers .chip:nth-child(10)::after { animation-delay: .75s; }
.providers .chip:nth-child(11) { animation-delay: .50s; } .providers .chip:nth-child(11)::after { animation-delay: 1s; }
.providers .chip:nth-child(12) { animation-delay: .55s; } .providers .chip:nth-child(12)::after { animation-delay: 1.25s; }
/* ช่อง "+79 ค่าย" เป็นปุ่มทองเด่น ๆ เต้นเบา ๆ */
.providers .chip.more { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; text-align: center;
  color: #3a1d00; font-weight: 600; font-size: 12px; line-height: 1.15;
  background: linear-gradient(160deg, #fff4c2, #ffd25a 40%, #e8a12a 75%, #ffe08a) padding-box, linear-gradient(135deg, #fff, #c47f17) border-box;
  box-shadow: 0 6px 18px rgba(255, 180, 50, .45);
  animation: provIn .55s cubic-bezier(.2,.9,.3,1.2) .6s both, morePulse 2.2s ease-in-out 1.2s infinite; }
.providers .chip.more .num { font-size: 26px; font-weight: 700; letter-spacing: -.5px; }
@keyframes morePulse { 50% { box-shadow: 0 6px 26px rgba(255, 200, 70, .85), 0 0 0 4px rgba(255, 215, 110, .25); transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .providers .chip, .providers .chip::after, .providers .chip.more { animation: none; } }
.providers .chip { filter: none; }
.providers .chip.more:hover { color: #3a1d00; }

/* ---------- รวมค่ายเกม: แบบสไลด์ 2 แถววิ่งสวนกัน (provRows() ใน common.js) ---------- */
.pv-rows { --pv-a: #ffd76a; --pv-b: #b46bff; --pv-bg: #0d0818; position: relative; margin: 18px -16px 0; }
/* แถววิ่ง (แบบเดียวกับ "เกมใหม่มาแรง" ใน maya.html) ขอบซ้ายขวาจางหาย */
.pv-stage { display: grid; gap: 10px; padding: 4px 0; overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.pv-track { display: flex; gap: 10px; width: max-content; padding: 10px 5px; animation: pvMarq var(--t, 36s) linear infinite; }
.pv-row.rev .pv-track { animation-direction: reverse; }
.pv-row:hover .pv-track { animation-play-state: paused; }
@keyframes pvMarq { to { transform: translateX(-50%); } }

/* การ์ดค่าย: ขนาดเท่ากันทุกใบ ชื่อค่ายทับขอบล่าง + แสงวาบผ่าน */
.pv-card { position: relative; flex: none; display: block; width: 96px; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--pv-bg);
  border: 1px solid color-mix(in srgb, var(--pv-a) 40%, transparent); box-shadow: 0 6px 14px rgba(0, 0, 0, .45);
  color: #fff; text-decoration: none; transition: transform .35s cubic-bezier(.2, .9, .3, 1.3), box-shadow .35s, border-color .35s; }
.pv-logo, .pv-logo img { display: block; width: 100%; height: 100%; }
.pv-logo img { object-fit: cover; -webkit-user-drag: none; }
.pv-card::after { content: ''; position: absolute; top: 0; bottom: 0; left: -80%; width: 50%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-18deg); animation: pvSweep 4.2s ease-in-out infinite; }
.pv-card:nth-child(3n+2)::after { animation-delay: 1.4s; } .pv-card:nth-child(3n)::after { animation-delay: 2.8s; }
@keyframes pvSweep { 0%, 70% { left: -80%; } 100% { left: 140%; } }
.pv-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 5px; font-size: 10.5px; font-weight: 500; line-height: 1.2; text-align: center;
  background: linear-gradient(transparent, rgba(0, 0, 0, .9)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-card:hover { transform: translateY(-8px) scale(1.06); border-color: var(--pv-a); z-index: 2;
  box-shadow: 0 14px 26px rgba(0, 0, 0, .55), 0 0 20px color-mix(in srgb, var(--pv-a) 45%, transparent); }

/* ปุ่มดูทั้งหมด: ขอบไล่สีหมุน */
.pv-cta { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: min(320px, calc(100% - 32px)); height: 52px; margin: 14px auto 0;
  border-radius: 999px; color: #fff; font-size: 16px; font-weight: 500; text-decoration: none; overflow: hidden; isolation: isolate;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--pv-b) 35%, transparent); transition: transform .2s; }
.pv-cta::before { content: ''; position: absolute; inset: -150%; z-index: -2;
  background: conic-gradient(from 0deg, var(--pv-a), var(--pv-b), transparent 40%, var(--pv-a) 60%, var(--pv-b), var(--pv-a)); animation: pvSpin 4s linear infinite; }
.pv-cta::after { content: ''; position: absolute; inset: 1.5px; z-index: -1; border-radius: inherit;
  background: linear-gradient(180deg, color-mix(in srgb, var(--pv-bg) 80%, #fff 6%), var(--pv-bg)); }
.pv-cta b { color: var(--pv-a); font-weight: 600; }
.pv-cta i { font-style: normal; font-size: 22px; line-height: 1; color: var(--pv-a); transition: transform .2s; }
.pv-cta:hover { transform: translateY(-2px); }
.pv-cta:hover i { transform: translateX(4px); }
@keyframes pvSpin { to { transform: rotate(360deg); } }

@media (min-width: 900px) { .pv-rows { margin-left: 0; margin-right: 0; } .pv-card { width: 120px; } .pv-name { font-size: 11.5px; } }
@media (prefers-reduced-motion: reduce) { .pv-track, .pv-card::after, .pv-cta::before { animation: none; } .pv-row { overflow-x: auto; } }

/* ---------- การ์ดหมวดเกม (ดีไซน์ใหม่ ทันสมัย) ---------- */
#cats { display: grid; gap: 14px; }
.cat-card { position: relative; display: block; aspect-ratio: 690 / 309; border-radius: 22px; overflow: hidden; isolation: isolate;
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 12px 30px rgba(18, 6, 48, .45); transition: transform .35s ease, box-shadow .35s ease; }
.cc-bg, .cc-fg { position: absolute; inset: -4%; background-size: cover; background-position: center; will-change: transform; }
.cc-bg { z-index: -2; animation: ccKen 18s ease-in-out infinite alternate; }
.cc-fg { z-index: -1; animation: ccFloat 6s ease-in-out infinite alternate; }
.cat-card::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(22, 10, 52, .92) 0%, rgba(22, 10, 52, .6) 38%, rgba(22, 10, 52, 0) 72%),
              linear-gradient(0deg, rgba(22, 10, 52, .55) 0%, rgba(22, 10, 52, 0) 45%); }
.cc-fg + .cc-body, .cat-card .cc-body { z-index: 1; }
.cat-card:has(.cc-fg)::before { z-index: 0; }
.cc-body { position: absolute; left: 22px; bottom: 18px; display: grid; gap: 2px; color: #fff; }
.cc-body small { font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.cc-body b { font-size: clamp(30px, 9vw, 40px); font-weight: 600; line-height: 1.05; letter-spacing: -.01em; }
.cc-body em { font-style: normal; font-size: 13px; color: rgba(255, 255, 255, .78); }
.cc-go { position: absolute; right: 16px; bottom: 16px; z-index: 1; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .3s ease, background .3s ease; }
.cc-go svg { width: 20px; height: 20px; }
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(18, 6, 48, .6); }
.cat-card:hover .cc-go { transform: translateX(4px); background: var(--accent); border-color: transparent; }
@keyframes ccKen { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.08) translate(-1.5%, -1%); } }
@keyframes ccFloat { from { transform: translateY(1.5%) scale(1); } to { transform: translateY(-1.5%) scale(1.025); } }
@media (prefers-reduced-motion: reduce) { .cc-bg, .cc-fg { animation: none; } }
/* =========================================================
   ธีมโลกอนาคต 3D — ใช้เฉพาะหน้าที่ <body class="future"> (หน้าแรก)
   ลบคลาส future ออกจาก index.html = กลับเป็นแบบเดิม
   ========================================================= */
body.future { --neo-c: #22e6ff; --neo-m: #ff3dd6; --neo-v: #8a5cff;
  background: radial-gradient(120% 60% at 80% 0%, rgba(138, 92, 255, .35), transparent 60%),
              radial-gradient(90% 50% at 0% 30%, rgba(255, 61, 214, .22), transparent 60%),
              radial-gradient(100% 60% at 50% 100%, rgba(34, 230, 255, .14), transparent 60%),
              linear-gradient(180deg, #05020f 0%, #0b0526 45%, #120838 100%) fixed; }
body.future .header { background: rgba(6, 3, 20, .72); border-bottom: 1px solid rgba(34, 230, 255, .25); box-shadow: 0 1px 24px rgba(34, 230, 255, .12); }
body.future .logo { color: #fff; text-shadow: 0 0 12px rgba(34, 230, 255, .7); }
body.future .nav a.active, body.future .nav a:hover { color: var(--neo-c); text-shadow: 0 0 10px rgba(34, 230, 255, .8); }

/* ---- hero: ฉากอวกาศ + พื้นกริด 3D ---- */
body.future .hero-trees { display: none; }
.fx-scene { position: absolute; inset: -20px -40px 0; overflow: hidden; pointer-events: none; z-index: 0; border-radius: 0 0 30px 30px;
  -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent); mask-image: linear-gradient(180deg, #000 75%, transparent); }
body.future .hero-cards { z-index: 2; }
.fx-stars { position: absolute; inset: 0; opacity: .9;
  background-image: radial-gradient(1.2px 1.2px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 34% 8%, #cdf, transparent),
    radial-gradient(1.4px 1.4px at 58% 22%, #fff, transparent), radial-gradient(1px 1px at 76% 12%, #fcf, transparent),
    radial-gradient(1.2px 1.2px at 88% 34%, #fff, transparent), radial-gradient(1px 1px at 22% 40%, #aef, transparent),
    radial-gradient(1.3px 1.3px at 46% 46%, #fff, transparent), radial-gradient(1px 1px at 66% 52%, #fff, transparent),
    radial-gradient(1px 1px at 6% 56%, #fff, transparent), radial-gradient(1.2px 1.2px at 94% 6%, #fff, transparent);
  animation: fxTwinkle 3.5s ease-in-out infinite alternate; }
.fx-stars.s2 { transform: scale(1.6) rotate(12deg); opacity: .5; animation-duration: 5s; animation-delay: -2s; }
@keyframes fxTwinkle { from { opacity: .35; } to { opacity: 1; } }
.fx-planet { position: absolute; width: 190px; height: 190px; right: 2%; top: 24px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffd1f6 0%, #ff3dd6 22%, #8a5cff 52%, #1b0b4a 78%, #05020f 100%);
  box-shadow: 0 0 60px rgba(255, 61, 214, .55), inset -20px -24px 40px rgba(0, 0, 0, .55), inset 10px 8px 30px rgba(255, 255, 255, .25);
  animation: fxBob 7s ease-in-out infinite alternate; }
.fx-ring { position: absolute; inset: 42% -45%; border-radius: 50%; border: 3px solid rgba(34, 230, 255, .75);
  box-shadow: 0 0 18px rgba(34, 230, 255, .8), inset 0 0 14px rgba(34, 230, 255, .6); transform: rotate(-18deg) rotateX(68deg);
  animation: fxRing 9s linear infinite; }
@keyframes fxRing { to { transform: rotate(-18deg) rotateX(68deg) rotateZ(360deg); } }
@keyframes fxBob { from { transform: translateY(0); } to { transform: translateY(14px); } }
.fx-beam { position: absolute; top: -10%; width: 2px; height: 80%; background: linear-gradient(180deg, transparent, rgba(34, 230, 255, .9), transparent);
  filter: blur(.5px); opacity: .6; animation: fxBeam 4s ease-in-out infinite; }
.fx-beam.b1 { left: 18%; } .fx-beam.b2 { left: 72%; animation-delay: -2s; background: linear-gradient(180deg, transparent, rgba(255, 61, 214, .9), transparent); }
@keyframes fxBeam { 0%, 100% { opacity: 0; transform: translateY(-20%); } 50% { opacity: .7; transform: translateY(10%); } }
.fx-grid { position: absolute; left: -50%; right: -50%; bottom: -10%; height: 62%; transform-origin: 50% 0;
  transform: perspective(260px) rotateX(62deg);
  background-image: linear-gradient(rgba(34, 230, 255, .75) 1.5px, transparent 1.5px), linear-gradient(90deg, rgba(255, 61, 214, .65) 1.5px, transparent 1.5px);
  background-size: 46px 46px; animation: fxGrid 1.6s linear infinite;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%); mask-image: linear-gradient(180deg, transparent, #000 35%); }
@keyframes fxGrid { to { background-position: 0 46px; } }
.fx-horizon { position: absolute; left: 0; right: 0; bottom: 52%; height: 2px; background: linear-gradient(90deg, transparent, var(--neo-c), var(--neo-m), transparent);
  box-shadow: 0 0 22px 4px rgba(34, 230, 255, .55); }
body.future .hero-art { overflow: visible; }

/* การ์ดเกมใน hero: ลอย 3D + ขอบนีออน */
body.future .hero-cards { perspective: 900px; }
body.future .hc { border: 2px solid rgba(34, 230, 255, .8); box-shadow: 0 0 22px rgba(34, 230, 255, .55), 0 0 60px rgba(255, 61, 214, .35), 0 24px 40px rgba(0, 0, 0, .6); }
body.future .hc1 { animation: fxCard 5s ease-in-out infinite alternate; }

/* ข้อความ hero */
body.future .hero-kicker { color: var(--neo-c); text-shadow: 0 0 14px rgba(34, 230, 255, .8); letter-spacing: .02em; }
body.future .hero-title { background: linear-gradient(90deg, #fff 0%, #b8f6ff 35%, #ff9df0 70%, #fff 100%); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 18px rgba(138, 92, 255, .7));
  animation: fxShine 6s linear infinite; }
@keyframes fxShine { to { background-position: 200% center; } }
@keyframes fxCard { from { translate: 0 0; } to { translate: 0 -8px; } }

/* ---- หัวข้อทุกส่วน: นีออน ---- */
body.future section > h2, body.future .hs-head h2 { background: linear-gradient(90deg, var(--neo-c), var(--neo-m)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 10px rgba(34, 230, 255, .45)); }
body.future .tour-title { font-family: Orbitron, Kanit, sans-serif; font-weight: 800; letter-spacing: .04em;
  background: linear-gradient(90deg, var(--neo-c), #fff 45%, var(--neo-m)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 61, 214, .6)); }
body.future .cc-body small { font-family: Orbitron, Kanit, sans-serif; letter-spacing: .28em; color: var(--neo-c); text-shadow: 0 0 8px rgba(34, 230, 255, .7); }

/* ---- แผงกระจก + ขอบนีออนไล่สี ---- */
body.future .board, body.future .promo, body.future .newgames, body.future .cat-card {
  border: 1px solid transparent;
  background: linear-gradient(rgba(14, 8, 40, .72), rgba(14, 8, 40, .72)) padding-box, linear-gradient(135deg, rgba(34, 230, 255, .8), rgba(138, 92, 255, .4), rgba(255, 61, 214, .8)) border-box;
  box-shadow: 0 0 24px rgba(34, 230, 255, .12), 0 18px 40px rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
body.future .cat-card { background: linear-gradient(transparent, transparent) padding-box, linear-gradient(135deg, var(--neo-c), var(--neo-v) 50%, var(--neo-m)) border-box; }
body.future .cat-card::before { background: linear-gradient(90deg, rgba(6, 3, 24, .92) 0%, rgba(6, 3, 24, .5) 40%, rgba(6, 3, 24, 0) 75%), linear-gradient(0deg, rgba(6, 3, 24, .6), transparent 50%); }
body.future .cc-go { border-color: rgba(34, 230, 255, .6); box-shadow: 0 0 14px rgba(34, 230, 255, .45); }
body.future .promo .tag { color: var(--neo-c); background: rgba(34, 230, 255, .12); }

/* ---- 3D เอียงตามเมาส์ + แสงสะท้อน ---- */
.tilt { transform-style: preserve-3d; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .2s ease-out; }
body.future .cat-card.tilt::after, body.future .promo.tilt::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .18), transparent 45%); opacity: 0; transition: opacity .3s; }
body.future .cat-card.tilt:hover::after, body.future .promo.tilt:hover::after { opacity: 1; }
body.future .promo { position: relative; }

/* ---- ปุ่ม ---- */
body.future .btn-pink { background: linear-gradient(90deg, var(--neo-m), var(--neo-v) 50%, var(--neo-c)); box-shadow: 0 0 20px rgba(255, 61, 214, .5), 0 0 40px rgba(34, 230, 255, .25); }
body.future .btn-light { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(34, 230, 255, .6); box-shadow: 0 0 16px rgba(34, 230, 255, .3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
body.future .cta { filter: drop-shadow(0 0 16px rgba(138, 92, 255, .4)); }
@media (prefers-reduced-motion: reduce) { .fx-stars, .fx-planet, .fx-ring, .fx-beam, .fx-grid, body.future .hero-title, body.future .hc1 { animation: none; } }
/* ฉากอวกาศเต็มความกว้างจอ ขอบซ้าย/ขวาจางหาย (ไม่เห็นเส้นตัดแข็ง) */
.fx-scene { left: 50%; right: auto; width: 100vw; transform: translateX(-50%); border-radius: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent), linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(180deg, #000 70%, transparent), linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-composite: intersect; }
.fx-planet { right: calc(50% - 470px); }
@media (max-width: 760px) {
  .fx-planet { width: 120px; height: 120px; right: 6px; top: 6px; }
  .fx-scene { -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
}
/* =========================================================
   ธีมโลกอนาคต v2 — ออโรร่า + วงล้อ 3D + การ์ดเบนโต้มีมิติ
   ========================================================= */
body.future { background: #06031a; }
body.future::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 45% at 85% 5%, rgba(122, 76, 255, .38), transparent 70%),
              radial-gradient(55% 40% at 5% 40%, rgba(255, 64, 196, .22), transparent 70%),
              radial-gradient(70% 50% at 60% 100%, rgba(0, 220, 255, .16), transparent 70%); }
body.future .hero-cards, body.future .hero-dots { display: none; }

/* ออโรร่าไหล */
.fx-aurora { position: absolute; width: 70%; height: 70%; border-radius: 50%; filter: blur(60px); opacity: .55; mix-blend-mode: screen; }
.fx-aurora.a1 { left: -10%; top: -10%; background: #6c3bff; animation: fxDrift1 16s ease-in-out infinite alternate; }
.fx-aurora.a2 { right: -15%; top: 5%; background: #ff2fb4; animation: fxDrift2 19s ease-in-out infinite alternate; }
.fx-aurora.a3 { left: 25%; bottom: -25%; background: #00d4ff; opacity: .4; animation: fxDrift1 22s ease-in-out infinite alternate-reverse; }
@keyframes fxDrift1 { to { transform: translate(18%, 12%) scale(1.15); } }
@keyframes fxDrift2 { to { transform: translate(-20%, 10%) scale(.9); } }
.fx-grain { position: absolute; inset: 0; opacity: .12; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ลูกแก้วลอย (ทรงกลม 3D ด้วยไล่แสง) */
.fx-orb { position: absolute; border-radius: 50%; z-index: 1;
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, .95) 0 6%, rgba(255, 255, 255, .25) 14%, transparent 40%),
              radial-gradient(circle at 65% 70%, rgba(0, 230, 255, .55), transparent 55%),
              radial-gradient(circle at 50% 50%, rgba(160, 110, 255, .55), rgba(60, 20, 140, .25) 70%, rgba(255, 255, 255, .15) 100%);
  box-shadow: inset -6px -10px 20px rgba(20, 0, 60, .5), 0 10px 30px rgba(120, 60, 255, .35); animation: fxFloat 7s ease-in-out infinite alternate; }
.fx-orb.o1 { width: 64px; height: 64px; left: 10%; top: 30px; }
.fx-orb.o2 { width: 34px; height: 34px; right: 14%; top: 60px; animation-duration: 5s; animation-delay: -2s; }
.fx-orb.o3 { width: 22px; height: 22px; left: 22%; top: 200px; animation-duration: 6s; animation-delay: -4s; }
@keyframes fxFloat { to { transform: translateY(-18px) rotate(12deg); } }

/* พอร์ทัลเรืองแสงใต้วงล้อ */
.fx-portal { position: absolute; left: 50%; top: 270px; width: 520px; height: 120px; margin-left: -260px; border-radius: 50%; z-index: 1;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .85), rgba(0, 220, 255, .6) 25%, rgba(140, 80, 255, .35) 55%, transparent 75%);
  filter: blur(2px); animation: fxPulse 3.5s ease-in-out infinite; }
.fx-portal::after { content: ''; position: absolute; inset: 18% 8%; border-radius: 50%; border: 2px solid rgba(0, 230, 255, .8); box-shadow: 0 0 24px rgba(0, 230, 255, .9), inset 0 0 18px rgba(255, 64, 196, .6); }
@keyframes fxPulse { 50% { transform: scale(1.06); opacity: .8; } }

/* วงล้อปกเกม 3D */
.fx-ring3d { --w: 150px; --r: 300px; position: absolute; inset: 0; z-index: 2; perspective: 1100px; perspective-origin: 50% 30%; }
.fx-tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(-8deg); }
.fx-spin { position: absolute; left: 50%; top: 40px; width: var(--w); aspect-ratio: 3 / 4; margin-left: calc(var(--w) / -2);
  transform-style: preserve-3d; animation: fxSpin 26s linear infinite; }
.fx-item { position: absolute; inset: 0; border-radius: 16px; background-size: cover; background-position: center;
  transform: rotateY(calc(var(--i) * 45deg)) translateZ(var(--r)); backface-visibility: hidden;
  border: 1.5px solid rgba(255, 255, 255, .35); box-shadow: 0 0 22px rgba(0, 220, 255, .35), 0 20px 40px rgba(0, 0, 0, .5);
  -webkit-box-reflect: below 10px linear-gradient(transparent 62%, rgba(255, 255, 255, .28)); }
.fx-item::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, rgba(255, 255, 255, .35), transparent 40%); }
@keyframes fxSpin { to { transform: rotateY(-360deg); } }
.fx-ring3d:hover .fx-spin { animation-play-state: paused; }

/* ซ่อนฉาก v1 ที่ไม่ใช้แล้ว */
.fx-grid, .fx-horizon, .fx-planet, .fx-beam { display: none; }

/* ข้อความ hero: ตัวโครเมียม */
body.future .hero-title { background: linear-gradient(180deg, #ffffff 0%, #dfe7ff 38%, #8f9bd8 52%, #ffffff 64%, #c8b6ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 0 rgba(40, 10, 90, .6)) drop-shadow(0 0 22px rgba(140, 90, 255, .55)); animation: none; }
body.future .hero-kicker { color: #7ef2ff; }

@media (max-width: 760px) {
  .fx-ring3d { --w: 104px; --r: 190px; }
  .fx-spin { top: 34px; }
  .fx-portal { top: 190px; width: 340px; height: 80px; margin-left: -170px; }
  .fx-orb.o1 { width: 44px; height: 44px; left: 4%; top: 14px; }
}

/* ---- การ์ดหมวดแบบเบนโต้ 3D ---- */
body.future #cats { grid-template-columns: 1fr 1fr; gap: 12px; perspective: 1200px; }
body.future #cats .cat-card:first-child { grid-column: 1 / -1; }
body.future #cats .cat-card:not(:first-child) { aspect-ratio: 1 / 1.05; }
body.future .cat-card { border-radius: 24px; transform-style: preserve-3d; }
body.future .cat-card .cc-body { transform: translateZ(46px); }
body.future .cat-card .cc-go { transform: translateZ(30px); }
body.future #cats .cat-card:not(:first-child) .cc-body { left: 16px; bottom: 16px; right: 16px; }
body.future #cats .cat-card:not(:first-child) .cc-body b { font-size: clamp(22px, 6.4vw, 30px); }
body.future #cats .cat-card:not(:first-child) .cc-body em { display: none; }
body.future #cats .cat-card:not(:first-child) .cc-go { top: 14px; right: 14px; bottom: auto; width: 36px; height: 36px; }
body.future #cats .cat-card:not(:first-child)::before { background: linear-gradient(0deg, rgba(6, 3, 24, .95) 0%, rgba(6, 3, 24, .35) 55%, rgba(6, 3, 24, .1) 100%); }
body.future .cc-body b { background: linear-gradient(180deg, #fff 0%, #e6ebff 45%, #a9b2e6 60%, #fff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(30, 8, 70, .7)); }
body.future .cat-card .cc-bg { inset: -6%; }
body.future .cat-card.tilt:hover .cc-bg { transform: scale(1.12); transition: transform .6s ease; }
body.future .cat-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .06); }
@media (prefers-reduced-motion: reduce) { .fx-aurora, .fx-orb, .fx-portal, .fx-spin { animation: none; } }
/* วงล้อ 12 ใบ ระยะกว้างขึ้น เห็นหลายใบพร้อมกัน */
.fx-ring3d { --w: 128px; --r: 400px; }
.fx-spin { top: 22px; animation-duration: 36s; }
.fx-item { transform: rotateY(calc(var(--i) * 30deg)) translateZ(var(--r)); }
.fx-portal { top: 236px; }
@media (max-width: 760px) {
  .fx-ring3d { --w: 92px; --r: 250px; }
  .fx-spin { top: 26px; }
  .fx-portal { top: 168px; }
}
@media (min-width: 761px) { body.future .hero-text { margin-top: -30px; } }

/* ---------- การ์ดหมวดแบบ 3D ป๊อปเอาต์: วัตถุหลักโผล่ทะลุขอบบนการ์ด ---------- */
.cc-frame { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; z-index: 0; }
.cc-frame .cc-bg, .cc-frame .cc-fg { z-index: auto; }
.cat-card::before { border-radius: inherit; }
.cc-pop { display: none; }
body.future #cats { row-gap: 40px; padding-top: 18px; }
body.future .cat-card { overflow: visible; }
body.future .cat-card::before { z-index: 1; }
body.future .cat-card .cc-body, body.future .cat-card .cc-go { z-index: 3; }
body.future .cat-card::after { z-index: 4; }
body.future #cats .cat-card:not(:first-child) .cc-bg { filter: blur(3px) brightness(.55) saturate(1.2); }
body.future .cc-pop { display: block; position: absolute; z-index: 2; pointer-events: none; height: auto;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .6)) drop-shadow(0 0 22px rgba(120, 80, 255, .35));
  transform: translateZ(70px); animation: popFloat 4.5s ease-in-out infinite alternate; transition: transform .4s ease; }
body.future .pop-slot    { width: 56%; right: 4%;  bottom: 30%; }
body.future .pop-casino  { width: 108%; right: -10%; bottom: 36%; animation-delay: -1s; }
body.future .pop-fishing { width: 112%; right: -14%; bottom: 34%; animation-delay: -2s; }
body.future .pop-lotto   { width: 104%; right: -6%;  bottom: 38%; animation-delay: -3s; }
@keyframes popFloat { from { translate: 0 0; } to { translate: 0 -8px; } }
body.future .cat-card.tilt:hover .cc-pop { transform: translateZ(90px) scale(1.06); }
body.future #cats .cat-card:not(:first-child) .cc-go { z-index: 5; }
@media (prefers-reduced-motion: reduce) { .cc-pop { animation: none; } }
body.future #cats .cat-card:not(:first-child) .cc-go { top: auto; bottom: 16px; right: 14px; }
body.future .pop-fishing { width: 132%; right: -24%; bottom: 26%; }
body.future .pop-lotto   { width: 124%; right: -14%; bottom: 30%; }
body.future .pop-slot    { width: 60%; right: 8%; bottom: 28%; }
/* =========================================================
   การ์ดหมวดโฮโลแกรม (body.future) — วาดด้วย CSS/SVG ล้วน
   ========================================================= */
.holo { --c1: #22e6ff; --c2: #8a5cff; }
.holo-sport { --c1: #22e6ff; --c2: #3b5bff; } .holo-slot { --c1: #ff3dd6; --c2: #ffb02e; }
.holo-casino { --c1: #ff4d6d; --c2: #8a5cff; } .holo-fishing { --c1: #00ffc8; --c2: #1f8bff; } .holo-lotto { --c1: #ffd23f; --c2: #ff3dd6; }
.holo .hz-bg { position: absolute; inset: 0; background:
  radial-gradient(80% 70% at 70% 30%, color-mix(in srgb, var(--c1) 38%, transparent), transparent 70%),
  radial-gradient(70% 60% at 15% 100%, color-mix(in srgb, var(--c2) 45%, transparent), transparent 70%),
  linear-gradient(160deg, #0d0730, #05021a);
}
.holo .hz-bg::after { content: ''; position: absolute; inset: 0; opacity: .25;
  background-image: linear-gradient(color-mix(in srgb, var(--c1) 60%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--c1) 60%, transparent) 1px, transparent 1px);
  background-size: 22px 22px; -webkit-mask-image: radial-gradient(80% 80% at 60% 40%, #000, transparent); mask-image: radial-gradient(80% 80% at 60% 40%, #000, transparent); }
.holo .hz-scan { position: absolute; left: 0; right: 0; height: 30%; top: -30%; pointer-events: none;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--c1) 22%, transparent), transparent); animation: hzScan 4s linear infinite; }
@keyframes hzScan { to { top: 110%; } }
body.future .holo::before { background: linear-gradient(0deg, rgba(5, 2, 20, .85) 0%, rgba(5, 2, 20, .2) 45%, transparent 70%); }
body.future .holo { border-radius: 24px; }
body.future #cats { row-gap: 14px; padding-top: 0; }

/* ---- กีฬา: ลูกบอลโฮโลแกรมหมุน + สนาม 3D ---- */
.hp-field { position: absolute; left: 30%; right: -10%; bottom: -30%; height: 75%; transform: perspective(300px) rotateX(60deg); transform-origin: 50% 100%;
  background: repeating-linear-gradient(90deg, rgba(34, 230, 255, .5) 0 1.5px, transparent 1.5px 34px), repeating-linear-gradient(0deg, rgba(34, 230, 255, .5) 0 1.5px, transparent 1.5px 34px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 60%); mask-image: linear-gradient(180deg, transparent, #000 60%); animation: hpField 1.4s linear infinite; }
@keyframes hpField { to { background-position: 0 34px, 0 34px; } }
.hp-ball { position: absolute; width: 34%; aspect-ratio: 1; right: 12%; top: 10%; filter: drop-shadow(0 0 18px rgba(34, 230, 255, .8)); animation: hpBounce 1.6s cubic-bezier(.4, 0, .6, 1) infinite alternate; }
.hp-ball svg { width: 100%; height: 100%; animation: hpRoll 3s linear infinite; }
@keyframes hpRoll { to { transform: rotate(360deg); } }
@keyframes hpBounce { from { translate: 0 0; } to { translate: 0 18%; } }
.hp-shadow { position: absolute; width: 26%; height: 8%; right: 16%; bottom: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(34, 230, 255, .6), transparent); animation: hpShadow 1.6s ease-in-out infinite alternate; }
@keyframes hpShadow { from { transform: scale(.7); opacity: .5; } to { transform: scale(1.05); opacity: 1; } }
.hp-trail { position: absolute; height: 3px; width: 50%; right: 30%; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--c1)); filter: blur(.5px); animation: hpTrail 1.6s ease-in-out infinite; }
.hp-trail.t1 { top: 30%; } .hp-trail.t2 { top: 42%; width: 36%; animation-delay: -.5s; background: linear-gradient(90deg, transparent, #ff3dd6); }
@keyframes hpTrail { 0% { transform: translateX(-40%); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateX(20%); opacity: 0; } }

/* ---- สล็อต: วงล้อนีออน 3 วงหมุน ---- */
.hs-machine { position: absolute; left: 12%; right: 12%; top: 12%; height: 42%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7%; padding: 5%;
  border-radius: 16px; background: rgba(10, 4, 30, .6); border: 1.5px solid var(--c1); box-shadow: 0 0 20px color-mix(in srgb, var(--c1) 60%, transparent), inset 0 0 18px color-mix(in srgb, var(--c1) 35%, transparent); }
.hs-reel { position: relative; overflow: hidden; border-radius: 8px; background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .1), rgba(255, 255, 255, .02));
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); }
.hs-strip { position: absolute; left: 0; right: 0; top: 0; display: grid; animation: hsSpin 1.6s linear infinite; }
.hs-strip i { height: var(--rh, 44px); display: grid; place-items: center; font: 800 normal 22px/1 Orbitron, sans-serif; color: #fff;
  text-shadow: 0 0 6px var(--c1), 0 0 14px var(--c1); }
.hs-strip i:nth-child(3n+2) { color: #ffe27a; text-shadow: 0 0 6px #ffb02e, 0 0 14px #ffb02e; }
@keyframes hsSpin { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.hs-line { position: absolute; left: 3%; right: 3%; top: 50%; height: 2px; background: #ffe27a; box-shadow: 0 0 10px #ffb02e; opacity: .85; }
.hs-glow { position: absolute; left: 20%; right: 20%; top: 58%; height: 10%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c1) 70%, transparent), transparent); filter: blur(4px); }

/* ---- คาสิโน: รูเล็ต 3D หมุน + ชิปลอย ---- */
.hc-wheel { position: absolute; width: 64%; aspect-ratio: 1; left: 18%; top: 4%; transform: perspective(500px) rotateX(55deg); }
.hc-disk { position: absolute; inset: 0; border-radius: 50%; border: 4px solid var(--c1);
  background: radial-gradient(circle, #1a0b3a 0 30%, transparent 31%), repeating-conic-gradient(#ff2d55 0 10deg, #120826 10deg 20deg);
  box-shadow: 0 0 26px color-mix(in srgb, var(--c1) 70%, transparent), inset 0 0 0 10px rgba(255, 210, 63, .35); animation: hcSpin 6s linear infinite; }
.hc-hub { position: absolute; inset: 40%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6c2, #ffb02e 60%, #8a4b00); box-shadow: 0 0 14px #ffb02e; }
.hc-ball { position: absolute; inset: 6%; border-radius: 50%; animation: hcSpin 2.4s linear infinite reverse; }
.hc-ball::after { content: ''; position: absolute; top: 0; left: 50%; width: 9%; aspect-ratio: 1; margin-left: -4.5%; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff, 0 0 20px var(--c1); }
@keyframes hcSpin { to { transform: rotate(360deg); } }
.hc-chip { position: absolute; width: 18%; aspect-ratio: 1; border-radius: 50%; border: 3px dashed #fff; box-shadow: 0 0 0 4px currentColor, 0 0 18px currentColor; background: radial-gradient(circle, currentColor 0 45%, rgba(0,0,0,.3) 46%);
  animation: hcChip 3.2s ease-in-out infinite alternate; }
.hc-chip.c1 { color: #ff3dd6; left: 6%; top: 46%; } .hc-chip.c2 { color: #22e6ff; right: 6%; top: 40%; animation-delay: -1.2s; width: 14%; } .hc-chip.c3 { color: #ffd23f; right: 22%; top: 2%; animation-delay: -2.2s; width: 11%; }
@keyframes hcChip { from { transform: translateY(0) rotate(-20deg) rotateX(40deg); } to { transform: translateY(-14px) rotate(25deg) rotateX(10deg); } }

/* ---- ยิงปลา: ปลาโครงลวดนีออน + โซนาร์ + ฟอง ---- */
.hf-sonar { position: absolute; left: 50%; top: 32%; width: 20%; aspect-ratio: 1; margin: -10% 0 0 -10%; border-radius: 50%; border: 2px solid var(--c1); animation: hfSonar 3s ease-out infinite; }
.hf-sonar.s2 { animation-delay: -1s; } .hf-sonar.s3 { animation-delay: -2s; }
@keyframes hfSonar { from { transform: scale(.3); opacity: 1; } to { transform: scale(4); opacity: 0; } }
.hf-fish { position: absolute; width: 66%; left: 16%; top: 14%; filter: drop-shadow(0 0 8px var(--c1)) drop-shadow(0 0 18px var(--c1)); animation: hfSwim 3.6s ease-in-out infinite; }
@keyframes hfSwim { 0%, 100% { transform: translate(-10%, 0) rotate(-4deg); } 50% { transform: translate(10%, -10%) rotate(4deg); } }
.hf-bub { position: absolute; left: var(--x); bottom: 30%; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid rgba(180, 255, 245, .9); box-shadow: 0 0 6px var(--c1); opacity: 0; animation: hfBub var(--d) linear var(--t) infinite; }
@keyframes hfBub { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-160px) scale(1.2); opacity: 0; } }

/* ---- หวย: ลูกบอลเด้งในโลกแก้ว ---- */
.hl-globe { position: absolute; width: 60%; aspect-ratio: 1; left: 20%; top: 4%; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .45), transparent 25%), radial-gradient(circle, rgba(255, 210, 63, .12), rgba(255, 61, 214, .12) 70%, rgba(255, 255, 255, .25));
  border: 2px solid rgba(255, 255, 255, .45); box-shadow: 0 0 24px color-mix(in srgb, var(--c1) 60%, transparent), inset 0 0 20px rgba(255, 255, 255, .25); }
.hl-ball { position: absolute; width: 26%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 Orbitron, sans-serif; color: #1a0b3a;
  background: radial-gradient(circle at 32% 28%, #fff, var(--bc) 55%, color-mix(in srgb, var(--bc) 55%, #000)); box-shadow: 0 4px 8px rgba(0, 0, 0, .4); animation: hlMix 2.2s ease-in-out infinite; }
.hl-ball.b0 { --bc: #ffd23f; left: 10%; top: 50%; } .hl-ball.b1 { --bc: #ff3dd6; left: 40%; top: 60%; animation-delay: -.4s; animation-duration: 1.8s; }
.hl-ball.b2 { --bc: #22e6ff; left: 64%; top: 46%; animation-delay: -.9s; } .hl-ball.b3 { --bc: #7dff6a; left: 26%; top: 22%; animation-delay: -1.3s; animation-duration: 2.6s; }
.hl-ball.b4 { --bc: #ff8a3d; left: 56%; top: 16%; animation-delay: -.6s; animation-duration: 2s; } .hl-ball.b5 { --bc: #b98cff; left: 42%; top: 36%; animation-delay: -1.6s; }
@keyframes hlMix { 0%, 100% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(35%, -45%) rotate(90deg); } 50% { transform: translate(-30%, -70%) rotate(180deg); } 75% { transform: translate(-40%, -15%) rotate(270deg); } }
.hl-stand { position: absolute; width: 30%; height: 7%; left: 35%; top: 64%; border-radius: 0 0 50% 50%; background: linear-gradient(90deg, #8a5cff, #ff3dd6); box-shadow: 0 0 14px #ff3dd6; }

/* การ์ดใหญ่ (กีฬา) ให้ภาพอยู่ขวา */
body.future #cats .holo-sport .cc-body { max-width: 60%; }
@media (prefers-reduced-motion: reduce) { .holo *, .holo .hz-scan { animation: none !important; } }
/* สล็อต: 1 สัญลักษณ์เต็มช่อง ชัด ๆ */
.hs-reel { -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); }
.hs-strip { height: 100%; grid-auto-rows: 100%; animation-name: hsSpin7; }
.hs-strip i { height: auto; font-size: clamp(18px, 6vw, 30px); }
@keyframes hsSpin7 { from { transform: translateY(0); } to { transform: translateY(-700%); } }
.hs-machine { top: 10%; height: 46%; }
/* วงล้อสล็อต: หมุนแล้วหยุดทีละสัญลักษณ์ */
@keyframes hsSpin7 { 0%, 8.86% { transform: translateY(-0%); } 14.29%, 23.14% { transform: translateY(-100%); } 28.57%, 37.43% { transform: translateY(-200%); } 42.86%, 51.71% { transform: translateY(-300%); } 57.14%, 66% { transform: translateY(-400%); } 71.43%, 80.29% { transform: translateY(-500%); } 85.71%, 94.57% { transform: translateY(-600%); } 100% { transform: translateY(-700%); } }
.hs-strip { animation-timing-function: cubic-bezier(.5,0,.3,1.4); }
.hs-strip i { font-size: clamp(20px, 7vw, 32px); }

/* กีฬา: นักเตะ 3 คนแบบโฮโลแกรมอยู่หลังลูกบอล */
.hp-players { position: absolute; top: 0; bottom: 0; right: -2%; width: 78%; z-index: 0;
  background: url('../img/cat/photo/sport-fg.webp?v=1') center bottom / cover no-repeat;
  filter: saturate(1.15) contrast(1.05) drop-shadow(0 0 16px rgba(34, 230, 255, .45));
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%), linear-gradient(0deg, transparent 0%, #000 22%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%), linear-gradient(0deg, transparent 0%, #000 22%); mask-composite: intersect;
  animation: hpHolo 5s ease-in-out infinite alternate; }
.hp-players::after { content: ''; position: absolute; inset: 0; mix-blend-mode: overlay;
  background: repeating-linear-gradient(0deg, rgba(34, 230, 255, .35) 0 1px, transparent 1px 4px), linear-gradient(120deg, rgba(34, 230, 255, .35), rgba(255, 61, 214, .3));
  -webkit-mask: inherit; }
@keyframes hpHolo { 0% { opacity: .9; transform: translateY(0); } 48% { opacity: .9; } 50% { opacity: .65; transform: translateY(-1.5%) skewX(-1deg); } 52% { opacity: .9; } 100% { opacity: .95; transform: translateY(-2%); } }
/* ลูกบอลย้ายลงมุมหน้า ไม่บังหน้านักเตะ */
.holo-sport .hp-ball { width: 24%; right: 4%; top: auto; bottom: 22%; z-index: 2; }
.holo-sport .hp-shadow { width: 18%; right: 7%; bottom: 8%; z-index: 1; }
.holo-sport .hp-field { z-index: 1; opacity: .7; }
.holo-sport .hp-trail { z-index: 1; }
.holo-sport .hp-ball { width: 17%; right: 26%; bottom: 5%; }
.holo-sport .hp-shadow { width: 13%; right: 28%; bottom: 2%; }

/* การ์ดเล็ก: ภาพ 3D หลัก (img/cat/photo/*-art.webp) + เอฟเฟกต์นีออนเป็นตัวประกอบ */
.h-art { position: absolute; left: 10%; right: 10%; top: 4%; height: 64%; z-index: 1; background: center / contain no-repeat;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .55)) drop-shadow(0 0 18px color-mix(in srgb, var(--c1) 55%, transparent));
  animation: hArt 4s ease-in-out infinite alternate; }
@keyframes hArt { from { transform: translateY(0) scale(1); } to { transform: translateY(-5%) scale(1.03); } }
.holo-slot .h-art { animation-delay: -1s; } .holo-casino .h-art { animation-delay: -2s; } .holo-lotto .h-art { animation-delay: -3s; }
/* ซ่อนชิ้นนีออนหลัก เหลือไว้เป็นเอฟเฟกต์รอบ ๆ */
.holo-slot .hs-machine, .holo-casino .hc-wheel, .holo-fishing .hf-fish, .holo-lotto .hl-globe, .holo-lotto .hl-stand { display: none; }
.holo-slot .hs-glow { top: 62%; z-index: 0; }
.holo-casino .hc-chip { z-index: 2; } .holo-casino .hc-chip.c1 { left: 2%; top: 42%; width: 15%; } .holo-casino .hc-chip.c2 { right: 2%; top: 36%; width: 12%; } .holo-casino .hc-chip.c3 { right: 10%; top: 2%; }
.holo-fishing .hf-sonar { z-index: 0; top: 36%; } .holo-fishing .hf-bub { z-index: 2; }
/* หวย: ประกายวงแหวนหมุนรอบลูกบอล */
.holo-lotto .h-art::after { content: ''; position: absolute; inset: 6% 4%; border-radius: 50%; border: 2px dashed rgba(255, 210, 63, .7); animation: hcSpin 9s linear infinite; }
.holo-slot .h-art::after { content: ''; position: absolute; left: 10%; right: 10%; bottom: -6%; height: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 61, 214, .7), transparent); }
/* โลโก้ค่ายเล็กลง (ผู้ใช้สั่ง) */
.pv-card { width: 80px; border-radius: 12px; }
.pv-name { font-size: 9.5px; padding: 12px 4px 4px; }
.pv-track { gap: 8px; }
.pv-cta { height: 46px; width: min(290px, calc(100% - 32px)); }
@media (min-width: 900px) { .pv-card { width: 100px; } .pv-name { font-size: 10.5px; } }

/* ลูกบอลจริง (img/cat/photo/football.svg — Wikimedia Commons, public domain) หมุน + แสงเงาทรงกลม */
.hp-ball.real { filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .55)); }
.hp-ball.real img { display: block; width: 100%; height: 100%; animation: hpRoll 2.6s linear infinite; }
.hp-ball.real .hp-shade { position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .55), transparent 32%), radial-gradient(circle at 50% 50%, transparent 52%, rgba(0, 0, 0, .45) 100%); }
/* แบนเนอร์โปรใช้ภาพถ่ายจริง (img/promo/photo/p0-p3.webp จาก Pexels — ใช้เชิงพาณิชย์ฟรี) */
.pbx.has-photo .pbx-photo { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: left center; transform: scale(1.02); transition: transform 6s ease; }
.pbx.has-photo:hover .pbx-photo { transform: scale(1.08); }
.pbx.has-photo::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 4, 24, .05) 0%, rgba(10, 4, 24, .25) 38%, rgba(18, 6, 40, .88) 66%, rgba(18, 6, 40, .95) 100%),
              linear-gradient(0deg, rgba(10, 4, 24, .45), transparent 40%); }
.pbx.has-photo .pbx-art, .pbx.has-photo .pbx-rays, .pbx.has-photo .bokeh, .pbx.has-photo .coin, .pbx.has-photo .pbx-swoosh { display: none; }
.pbx.has-photo .pbx-text { z-index: 3; width: 50%; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }
.pbx.has-photo .spark { z-index: 2; }
.hp-ball.real img { border-radius: 50%; }

/* =========================================================
   Hero หรูทรงพลัง: เหรียญทอง 3D หมุนบนแท่นทอง + ลำแสง + ฝุ่นทอง + ปกเกมโคจร
   ========================================================= */
body.future .fx-orb, body.future .fx-portal { display: none; }
body.future .fx-aurora.a2 { background: #ffb02e; opacity: .28; }
.lx-rays { position: absolute; left: 50%; top: 150px; width: 900px; height: 900px; margin: -450px 0 0 -450px; z-index: 1; pointer-events: none; opacity: .55;
  background: repeating-conic-gradient(from 0deg, rgba(255, 214, 120, .22) 0 4deg, transparent 4deg 14deg);
  -webkit-mask-image: radial-gradient(circle, #000 0 18%, transparent 52%); mask-image: radial-gradient(circle, #000 0 18%, transparent 52%);
  animation: lxRays 40s linear infinite; }
@keyframes lxRays { to { transform: rotate(360deg); } }

/* เหรียญ */
.lx-coin { --s: 190px; position: absolute; left: 50%; top: 52px; width: var(--s); height: var(--s); margin-left: calc(var(--s) / -2); z-index: 3; perspective: 900px;
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .6)) drop-shadow(0 0 40px rgba(255, 190, 60, .45)); animation: lxFloat 4.5s ease-in-out infinite alternate; }
@keyframes lxFloat { from { translate: 0 0; } to { translate: 0 -12px; } }
.lx-spin { position: absolute; inset: 0; transform-style: preserve-3d; animation: lxSpin 9s cubic-bezier(.45, .05, .55, .95) infinite; }
@keyframes lxSpin { 0% { transform: rotateY(-28deg) rotateX(8deg); } 50% { transform: rotateY(28deg) rotateX(4deg); } 100% { transform: rotateY(-28deg) rotateX(8deg); } }
.lx-coin.flip .lx-spin { animation: lxFlip 1.1s cubic-bezier(.2, .8, .2, 1), lxSpin 9s cubic-bezier(.45, .05, .55, .95) 1.1s infinite; }
@keyframes lxFlip { from { transform: rotateY(-360deg) rotateX(8deg) scale(.85); } to { transform: rotateY(-28deg) rotateX(8deg) scale(1); } }
.lx-edge { position: absolute; inset: 0; border-radius: 50%; transform: translateZ(var(--z));
  background: linear-gradient(90deg, #6b3c00, #c98a16 30%, #ffe08a 50%, #b07210 70%, #5a3300); }
.lx-face { position: absolute; inset: 0; border-radius: 50%; display: grid; place-content: center; text-align: center; backface-visibility: hidden;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .85) 0 6%, transparent 30%),
    radial-gradient(circle, transparent 0 62%, #8a5208 63%, #ffe7a0 66%, #c78714 70%, #7a4705 74%, transparent 75%),
    repeating-conic-gradient(from 0deg, rgba(120, 70, 0, .35) 0 2deg, transparent 2deg 6deg),
    radial-gradient(circle at 40% 35%, #fff2c2 0%, #ffd25a 32%, #e7a21f 60%, #9a5a06 100%);
  box-shadow: inset 0 0 0 4px #ffe9a8, inset 0 0 0 8px #a86a0c, inset 0 -10px 24px rgba(90, 45, 0, .55); }
.lx-front { transform: translateZ(8px); } .lx-back { transform: rotateY(180deg) translateZ(8px); }
.lx-big { display: block; font: 800 calc(var(--s) * .26)/1 Orbitron, Kanit, sans-serif; letter-spacing: -.02em;
  background: linear-gradient(180deg, #fff9e0 0%, #ffd767 40%, #a35f04 58%, #ffe39a 78%, #7a4402 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #6b3a00) drop-shadow(0 4px 6px rgba(80, 40, 0, .55)); }
.lx-sub { display: block; margin-top: 6px; font: 700 calc(var(--s) * .07)/1 Orbitron, sans-serif; letter-spacing: .32em; color: #7a4402; text-shadow: 0 1px 0 rgba(255, 240, 200, .8); }

/* แท่นทอง 3 ชั้น */
.lx-podium { position: absolute; left: 50%; top: 250px; width: 360px; height: 120px; margin-left: -180px; z-index: 2; }
.lx-podium i { position: absolute; left: 50%; border-radius: 50%; transform: translateX(-50%); }
.lx-podium .t1 { top: 0; width: 220px; height: 44px; background: radial-gradient(ellipse at 50% 35%, #2a1550, #120826 70%); border: 2px solid #ffd25a;
  box-shadow: 0 0 22px rgba(255, 200, 80, .8), inset 0 0 18px rgba(255, 200, 80, .5), 0 12px 0 -2px #8a5208, 0 14px 0 -2px #3a1f05; }
.lx-podium .t2 { top: 26px; width: 290px; height: 56px; z-index: -1; background: radial-gradient(ellipse at 50% 30%, #1d0f3c, #0a0418 70%); border: 1.5px solid rgba(255, 210, 90, .7);
  box-shadow: 0 0 30px rgba(255, 190, 60, .35), 0 12px 0 -2px #5c3606; }
.lx-podium .t3 { top: 56px; width: 360px; height: 64px; z-index: -2; background: radial-gradient(ellipse, rgba(255, 200, 80, .35), transparent 70%); filter: blur(6px); }

/* ปกเกมโคจรรอบเหรียญ */
body.future .fx-ring3d { --w: 70px; --r: 270px; z-index: 2; perspective-origin: 50% 20%; }
body.future .fx-spin { top: 108px; animation-duration: 30s; }
body.future .fx-item { border-radius: 12px; border: 1.5px solid rgba(255, 215, 120, .7); box-shadow: 0 0 16px rgba(255, 190, 60, .35), 0 12px 24px rgba(0, 0, 0, .55);
  -webkit-box-reflect: none; }

/* ฝุ่นทองลอย */
.lx-dust { position: absolute; left: var(--x); bottom: 30px; width: 4px; height: 4px; border-radius: 50%; z-index: 4; background: #ffe08a; box-shadow: 0 0 8px #ffb02e;
  opacity: 0; animation: lxDust var(--d) linear var(--t) infinite; }
@keyframes lxDust { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-320px); opacity: 0; } }

/* หัวข้อทองหรู */
body.future .hero-title { background: linear-gradient(180deg, #fffaf0 0%, #ffe39a 40%, #d79a26 60%, #fff3c8 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(90, 45, 0, .6)) drop-shadow(0 0 22px rgba(255, 190, 60, .35)); }
body.future .hero-kicker { color: #ffd767; text-shadow: 0 0 14px rgba(255, 190, 60, .6); }

@media (max-width: 760px) {
  .lx-coin { --s: 132px; top: 40px; }
  .lx-rays { top: 106px; width: 600px; height: 600px; margin: -300px 0 0 -300px; }
  .lx-podium { top: 176px; transform: scale(.68); transform-origin: 50% 0; }
  body.future .fx-ring3d { --w: 50px; --r: 168px; }
  body.future .fx-spin { top: 82px; }
  .lx-dust { bottom: 120px; }
}
@media (prefers-reduced-motion: reduce) { .lx-rays, .lx-coin, .lx-spin, .lx-dust { animation: none !important; } }
/* =========================================================
   Hero แบบนิตยสาร (แทนเหรียญ/ออโรร่า) — เรียบ คมชัด น่าเชื่อถือ
   สีเดียว: ทองหม่น #c9a96e บนพื้นกรมท่าดำ · ไม่มีเรืองแสง ไม่มีตัวหนังสือไล่สี
   ========================================================= */
body.future { --ed-ink: #0c0b14; --ed-acc: #c9a96e; --ed-line: rgba(255, 255, 255, .12); background: var(--ed-ink); }
body.future::before { background: radial-gradient(80% 50% at 85% 0%, rgba(201, 169, 110, .10), transparent 70%); }
body.future .fx-scene, body.future .hero-dots, body.future .hero-trees, body.future .blob { display: none !important; }
body.future .hero { display: grid; gap: 26px; margin-top: 18px; }
body.future .hero-art { position: relative; width: auto; height: auto; left: auto; transform: none; overflow: visible; order: 0; }
body.future .hero-text { margin: 0; order: 1; }
.ed-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; aspect-ratio: 16 / 11; }
.ed-tile { position: relative; overflow: hidden; border-radius: 6px; background: #1a1826; }
.ed-tile.t0 { grid-row: 1 / 3; }
.ed-tile.t3 { grid-column: 2 / 4; }
.ed-tile.t4 { display: none; }
.ed-tile i { position: absolute; inset: 0; background-size: cover !important; background-position: center !important; transition: opacity .35s ease, transform 6s ease; }
.ed-tile i.out { opacity: 0; }
.ed-tile:hover i { transform: scale(1.04); }
.ed-tag { position: absolute; left: 10px; bottom: 10px; padding: 6px 10px; border-radius: 4px; background: rgba(12, 11, 20, .82); font-size: 12px; color: #d9d6e4; letter-spacing: .02em; }
.ed-tag b { color: #fff; font-weight: 600; }
.ed-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font: 500 12px/1 Kanit, sans-serif; color: #8d8a9c; letter-spacing: .08em; }
.ed-idx b { color: var(--ed-acc); font-weight: 600; }
.ed-line { position: relative; flex: 1; max-width: 160px; height: 1px; background: var(--ed-line); }
.ed-line i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: var(--ed-acc); transform-origin: left; animation: edLine 4.5s linear forwards; }
@keyframes edLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
body.future .hero-kicker { color: var(--ed-acc); text-shadow: none; font-size: 15px; font-weight: 500; letter-spacing: .04em; margin-bottom: 6px; }
body.future .hero-title { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #f4f2ec; filter: none; animation: none;
  font-size: clamp(40px, 11vw, 64px); font-weight: 600; line-height: 1.05; letter-spacing: -.01em; margin: 0 0 16px; }
body.future .hero-text p { color: #a9a6b8; font-size: 15px; line-height: 1.75; max-width: 46ch; }
.ed-trust { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); margin: 24px 0 0; padding: 0; border-top: 1px solid var(--ed-line); }
.ed-trust li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--ed-line); }
.ed-trust li:nth-child(odd) { padding-right: 12px; border-right: 1px solid var(--ed-line); }
.ed-trust li:nth-child(even) { padding-left: 16px; }
.ed-trust b { font-size: 20px; font-weight: 600; color: #f4f2ec; }
.ed-trust span { font-size: 12.5px; color: #8d8a9c; }
@media (min-width: 900px) {
  body.future .hero { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 48px; min-height: 520px; }
  body.future .hero-text { order: 0; }
  body.future .hero-art { order: 1; }
  .ed-tile.t3 { grid-column: 2 / 3; } .ed-tile.t4 { display: block; }
  .ed-trust { grid-template-columns: repeat(4, 1fr); }
  .ed-trust li:nth-child(odd), .ed-trust li:nth-child(even) { padding: 14px 14px 14px 0; border-right: 0; }
  .ed-trust li + li { padding-left: 14px; border-left: 1px solid var(--ed-line); }
}
@media (prefers-reduced-motion: reduce) { .ed-line i { animation: none; transform: none; } .ed-tile i { transition: none; } }
@media (min-width: 900px) {
  body.future .hero { width: min(1160px, calc(100vw - 64px)); margin-left: calc(50% - min(580px, 50vw - 32px)); margin-right: 0; }
  body.future .hero-title { font-size: 68px; }
  body.future .hero-text p { font-size: 16px; }
}
/* hero: รูปเกมอยู่บน ข้อความอยู่ล่าง (ทุกขนาดจอ) */
@media (min-width: 900px) {
  body.future .hero { grid-template-columns: 1fr; gap: 36px; min-height: 0; }
  body.future .hero-art { order: 0; }
  body.future .hero-text { order: 1; }
  .ed-grid { aspect-ratio: 16 / 7; }
}
@media (min-width: 900px) { .ed-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; grid-template-rows: 1fr; aspect-ratio: auto; height: 300px; } .ed-tile.t0, .ed-tile.t3 { grid-row: auto; grid-column: auto; } .ed-tile.t4 { display: block; } }

/* hero อยู่ในคอลัมน์เดียวกับส่วนอื่น (ไม่ขยายออกข้างบนคอม) — ใช้เลย์เอาต์แบบมือถือทุกขนาดจอ */
@media (min-width: 900px) {
  body.future .hero { width: auto; margin-left: 0; margin-right: 0; grid-template-columns: 1fr; gap: 26px; min-height: 0; }
  .ed-grid { grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16 / 11; height: auto; }
  .ed-tile.t0 { grid-row: 1 / 3; grid-column: auto; }
  .ed-tile.t3 { grid-column: 2 / 4; grid-row: auto; }
  .ed-tile.t4 { display: none; }
  body.future .hero-title { font-size: 56px; }
  body.future .hero-text p { font-size: 15px; }
  .ed-trust { grid-template-columns: repeat(2, 1fr); }
  .ed-trust li:nth-child(odd) { padding: 14px 12px 14px 0; border-right: 1px solid var(--ed-line); border-left: 0; }
  .ed-trust li:nth-child(even) { padding: 14px 0 14px 16px; border-left: 0; border-right: 0; }
}
/* ---------- ป๊อปอัปเกม: ปุ่มคู่ + เดโมเล่นได้จริง ---------- */
.gm-note { margin: 4px 0 14px; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; line-height: 1.6; color: #d6d2e6; text-align: center; }
.gm-note b { color: #3ef0a0; font-weight: 600; }
.gm-btns { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.gm-btns.one { grid-template-columns: 1fr; }
.gm-main { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 18px; border-radius: 12px; font-weight: 600; font-size: 15px; color: #0b2a17;
  background: linear-gradient(90deg, #2fe58f, #a6ea72); border: 0; cursor: pointer; box-shadow: 0 6px 18px rgba(47, 229, 143, .3); }
.gm-main.sm { height: 34px; font-size: 13px; padding: 0 12px; border-radius: 8px; }
.gm-demo { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 20px; border-radius: 12px; font-weight: 600; font-size: 15px; color: #fff;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); cursor: pointer; }
.gm-demo.wide { width: 100%; margin-top: 10px; }
.gm-demo:hover { background: rgba(255, 255, 255, .16); }
.game { position: relative; }
.demo-badge { position: absolute; top: 6px; left: 6px; z-index: 2; padding: 2px 7px; border-radius: 6px; font-size: 10px; font-weight: 600; color: #0b2a17; background: #3ef0a0; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
/* หน้าต่างเดโมเต็มจอ */
.demo-box { position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; background: #06040f; }
.demo-bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 16px; background: #120c24; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.demo-bar span { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.demo-bar b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-bar small { font-size: 11.5px; color: #3ef0a0; }
.demo-x { width: 38px; height: 38px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font-size: 16px; cursor: pointer; }
.demo-frame { position: relative; flex: 1; }
.demo-frame .loader { position: absolute; left: 50%; top: 50%; margin: -20px 0 0 -20px; }
.demo-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gm-main { white-space: nowrap; }

/* การ์ดหมวด: พื้นหลังฉากจากเกมจริง (img/cat/photo/<หมวด>-bg.webp) แทนพื้นม่วง+ตาราง */
.holo-slot, .holo-casino, .holo-fishing, .holo-lotto { --bgimg: none; }
.holo-slot { --bgimg: url('../img/cat/photo/slot-bg.webp?v=2'); } .holo-casino { --bgimg: url('../img/cat/photo/casino-bg.webp?v=2'); }
.holo-fishing { --bgimg: url('../img/cat/photo/fishing-bg.webp?v=2'); } .holo-lotto { --bgimg: url('../img/cat/photo/lotto-bg.webp?v=2'); }
.holo-slot .hz-bg, .holo-casino .hz-bg, .holo-fishing .hz-bg, .holo-lotto .hz-bg {
  background: radial-gradient(60% 50% at 50% 38%, color-mix(in srgb, var(--c1) 22%, transparent), transparent 70%),
    linear-gradient(180deg, transparent 0%, transparent 50%, rgba(5, 2, 20, .55) 100%),
    var(--bgimg) center / cover no-repeat, linear-gradient(160deg, #0d0730, #05021a);
  filter: brightness(1.18) saturate(1.15); animation: hzPan 14s ease-in-out infinite alternate; }
body.future .holo-slot::before, body.future .holo-casino::before, body.future .holo-fishing::before, body.future .holo-lotto::before { background: linear-gradient(0deg, rgba(5, 2, 20, .88) 0%, rgba(5, 2, 20, .25) 34%, transparent 55%); }
.holo-slot .hz-bg::after, .holo-casino .hz-bg::after, .holo-fishing .hz-bg::after, .holo-lotto .hz-bg::after { opacity: 0; }
@keyframes hzPan { from { background-size: auto, auto, 108%, auto; background-position: 0 0, 0 0, 45% 50%, 0 0; } to { background-size: auto, auto, 116%, auto; background-position: 0 0, 0 0, 55% 45%, 0 0; } }
.holo-slot .h-art, .holo-casino .h-art, .holo-fishing .h-art, .holo-lotto .h-art { filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .7)) drop-shadow(0 0 22px color-mix(in srgb, var(--c1) 55%, transparent)); }

/* แบนเนอร์โปรแบบฉาก 3D (promotions.html SCENES) — วัตถุตรงกับเนื้อหาโปร แทนภาพถ่าย */
.pbx.scene { background:
    radial-gradient(70% 90% at 26% 46%, hsl(var(--h) 95% 58% / .95) 0%, hsl(var(--h) 90% 34% / .9) 38%, transparent 72%),
    radial-gradient(60% 80% at 100% 0%, hsl(calc(var(--h) + 40) 90% 55% / .45), transparent 60%),
    linear-gradient(120deg, hsl(var(--h) 70% 16%), #120726 60%, #0a0418); }
.pbx.scene .pbx-rays { left: 26%; top: 48%; opacity: .5; }
.sc-spot { position: absolute; left: 26%; top: 46%; width: 230px; height: 230px; translate: -50% -50%; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, hsl(calc(var(--h) + 30) 100% 82% / .85), hsl(var(--h) 100% 60% / .35) 40%, transparent 70%); filter: blur(6px);
  animation: scPulse 3.6s ease-in-out infinite; }
.sc-floor { position: absolute; left: 26%; bottom: 10px; width: 210px; height: 34px; translate: -50% 0; border-radius: 50%; z-index: 0;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); }
.sc-art { position: absolute; left: 0; top: 0; bottom: 0; width: 54%; z-index: 2; pointer-events: none; }
.sc-obj { position: absolute; height: auto; rotate: var(--r); filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); animation: scFloat 4.2s ease-in-out infinite; }
.sc-obj.main { filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .55)) drop-shadow(0 0 22px hsl(calc(var(--h) + 30) 100% 70% / .7)); animation-duration: 5s; }
@keyframes scFloat { 50% { translate: 0 -7px; rotate: calc(var(--r) + 4deg); } }
@keyframes scPulse { 50% { opacity: .75; scale: .94; } }
.pbx.scene .pbx-text { width: 48%; z-index: 3; }
.pbx.scene .pbx-big { font-size: 58px; }
.pbx.scene .coin { z-index: 2; }
.pbx.scene:hover .sc-obj.main { scale: 1.06; transition: scale .4s ease; }
@media (max-width: 380px) { .pbx.scene .pbx-big { font-size: 48px; } .sc-obj { scale: .86; } }
@media (min-width: 560px) { .pbx.scene { height: 240px; } .sc-obj { scale: 1.12; } }

.pbx.scene .pbx-art { display: none; }
html { background-color: #43307f; }
.pbx.scene .coin { display: none; }
/* ตัวละครหลักยืนนิ่ง ๆ แค่หายใจเบา ๆ (ไม่หมุน) + ขอบทองเรือง */
.pbx.scene .sc-obj.main { animation: scBreath 4.5s ease-in-out infinite; transform-origin: 50% 100%;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .5)) drop-shadow(0 0 18px rgba(255, 200, 80, .55)); }
@keyframes scBreath { 50% { scale: 1.025; translate: 0 -2px; } }
.pbx.scene .sc-spot { background: radial-gradient(circle, rgba(255, 236, 170, .9), rgba(255, 170, 40, .45) 38%, hsl(var(--h) 100% 55% / .25) 60%, transparent 72%); }
.pbx.scene .pbx-rays { background: repeating-conic-gradient(from 0deg, rgba(255, 220, 140, .5) 0 6deg, transparent 6deg 18deg); }

/* แบนเนอร์โปร: นิ่งทั้งพื้นหลังและตัวละคร (ผู้ใช้สั่ง ไม่ต้องขยับ) */
.pbx.scene .pbx-rays, .pbx.scene .sc-spot, .pbx.scene .sc-obj, .pbx.scene .spark, .pbx.scene .bokeh { animation: none !important; }
.pbx.scene:hover .sc-obj.main { scale: none; }

/* สีเต็ม: มุมขวาบนไล่ไปทางแดง/ม่วง ไม่ให้เพี้ยนเป็นเขียวขี้ม้า + กันคลุมข้อความเป็นกล่องฟ้า */
.pbx.scene { -webkit-user-select: none; user-select: none; background: radial-gradient(70% 90% at 26% 46%, hsl(var(--h) 95% 56% / .95) 0%, hsl(var(--h) 90% 32% / .9) 38%, transparent 72%), radial-gradient(60% 80% at 100% 0%, hsl(calc(var(--h) - 30) 90% 50% / .5), transparent 60%), linear-gradient(120deg, hsl(var(--h) 75% 20%), hsl(calc(var(--h) - 20) 70% 12%) 60%, #0a0418); }

/* แบนเนอร์โปร: พื้นหลังฉากเกมจริง (img/promo/bg) + ไล่มืดด้านขวาให้ตัวหนังสือทองอ่านชัด */
.sc-bg { position: absolute; inset: 0; z-index: 0; background: center / cover no-repeat; }
.sc-bg::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 4, 20, 0) 0%, rgba(10, 4, 20, .15) 42%, rgba(12, 4, 22, .72) 66%, rgba(12, 4, 22, .86) 100%),
              linear-gradient(0deg, rgba(10, 4, 20, .45), transparent 35%); }
.pbx.scene .pbx-rays, .pbx.scene .sc-spot, .pbx.scene .bokeh, .pbx.scene .pbx-swoosh { display: none; }
.pbx.scene .sc-floor { z-index: 1; }

/* ภาพเต็มถึงขอบ: ไล่มืดด้านขวาเบาลง ใช้เงาตัวหนังสือช่วยอ่านแทน */
.sc-bg::after { background: linear-gradient(90deg, transparent 0%, rgba(12, 4, 22, .08) 45%, rgba(12, 4, 22, .32) 72%, rgba(12, 4, 22, .38) 100%), linear-gradient(0deg, rgba(10, 4, 20, .3), transparent 30%); }
.pbx.scene .pbx-text { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .85)) drop-shadow(0 0 14px rgba(0, 0, 0, .55)); }

/* ตัวหนังสือแบนเนอร์โปรขยับเข้ามาทางซ้าย (ผู้ใช้สั่ง) */
.pbx.scene .pbx-text { right: 9%; }

/* พื้นหลังคู่บ่าวสาว (โคมแดง) หรี่ลงนิดให้ตัวละครชุดแดงเด่น */
.sc-bg[style*='couple-bg'] { filter: brightness(.72) saturate(.9); }

/* ขนาดตัวหนังสือทุกหน้าเท่ากัน อิงหน้าแรก: หัวข้อส่วน 22px · หัวข้อรอง 18px · เนื้อความ 14px */
main h2, main .page-title, .promo-sec h2, main h2.blue { font-size: 22px; font-weight: 500; }
main h3.lead, main .sub-title { font-size: 18px; font-weight: 500; }
main p, main li, main p.small, main .promo-outro, main p.center.small, main div.small, main span.small, main a.small, main .promo-body { font-size: 14px; }
main p.tiny, main .muted.tiny, main span.tiny, main div.tiny { font-size: 12px; }
main h2.tour-title { font-size: 38px; }
main h3.lead { font-size: 18px !important; }
main h2 { font-size: 22px !important; }
main h2.tour-title { font-size: 38px !important; }
body.future main li { font-size: 16px; }
/* ตัวเลขทองบนแบนเนอร์โปร: เหลืองทองเต็ม ๆ ไม่ไล่ไปส้มน้ำตาล */
.pbx-big { background: linear-gradient(180deg, #fffbe0 0%, #ffe95c 30%, #ffd21f 62%, #ffb800 100%); -webkit-background-clip: text; background-clip: text;
  -webkit-text-stroke: 1.5px #7a3a00; filter: drop-shadow(0 3px 0 #6b2f00) drop-shadow(0 0 12px rgba(255, 200, 40, .65)); }

/* ตัวเลขเอียง (italic) ล้นกรอบ → สีทองไม่ถึงขอบขวาของตัว: เพิ่มพื้นที่ให้สีทองคลุมทั้งตัว แล้วดึงตำแหน่งกลับเท่าเดิม */
.pbx-big { padding: 0 .16em 0 .08em; margin-right: -.16em; }

.pbx-note { margin-top: 6px; padding: 3px 12px; border-radius: 20px; font-size: 13px; font-weight: 500; color: #3a1a00; background: linear-gradient(180deg, #fff3b0, #ffd21f); box-shadow: 0 2px 8px rgba(0, 0, 0, .35); white-space: nowrap; }

/* ================= กระดานหวย (games.html#lotto) ================= */
.lt-board { grid-column: 1 / -1; display: grid; gap: 18px; }
.lt-sec h3 { display: flex; align-items: baseline; gap: 8px; font-size: 18px; font-weight: 500; margin: 0 0 8px; }
.lt-sec h3::before { content: ''; width: 4px; height: 18px; border-radius: 2px; background: linear-gradient(180deg, #ffe95c, #ff9f1a); align-self: center; }
.lt-sec h3 small { font-size: 12px; font-weight: 300; opacity: .7; }
.lt-list { display: grid; gap: 8px; }
.lt-row { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 14px; text-align: left; color: inherit; font: inherit;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); cursor: pointer; transition: background .2s, transform .2s; }
.lt-row:hover { background: rgba(255, 255, 255, .13); transform: translateY(-1px); }
.lt-flag { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 3px 8px rgba(0, 0, 0, .35); }
.lt-name { display: grid; gap: 2px; min-width: 0; }
.lt-name b { font-size: 15px; font-weight: 500; }
.lt-name small { font-size: 13px; opacity: .78; }
.lt-st { font-size: 13px; font-weight: 500; padding: 5px 10px; border-radius: 20px; white-space: nowrap; text-align: center; background: rgba(255, 255, 255, .1); }
.lt-st i { display: block; font-style: normal; font-size: 10.5px; font-weight: 300; opacity: .85; }
.lt-st.open { background: linear-gradient(180deg, #2fe08a, #12a95d); color: #fff; font-variant-numeric: tabular-nums; }
.lt-st.wait { background: linear-gradient(180deg, #ffe95c, #ffb800); color: #4a2600; }
.lt-st.done { background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .8); }
@media (min-width: 700px) { .lt-list { grid-template-columns: 1fr 1fr; } }

/* การ์ดหวยสด (เวลาจริง) — พื้นหลังฉากเวทีออกรางวัล + ลูกบอลหวย 3D */
.lt-live { position: relative; overflow: hidden; isolation: isolate; border-radius: 20px; padding: 16px 16px 18px; min-height: 230px; color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 215, 100, .45), 0 14px 34px rgba(0, 0, 0, .45); display: grid; gap: 12px; align-content: start; }
.lt-live-bg { position: absolute; inset: 0; z-index: -2; background: url('../img/cat/photo/lotto-bg.webp?v=2') center 30% / cover no-repeat; }
.lt-live-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 4, 30, .78) 0%, rgba(20, 4, 30, .55) 55%, rgba(20, 4, 30, .2) 100%), linear-gradient(0deg, rgba(20, 4, 30, .7), transparent 50%); }
.lt-live-art { position: absolute; right: -14px; top: 26px; width: 150px; z-index: -1; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .55)); opacity: .95; }
.lt-live-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lt-k { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: #ffd84d; }
.lt-k i { width: 8px; height: 8px; border-radius: 50%; background: #2fe08a; box-shadow: 0 0 0 0 rgba(47, 224, 138, .7); animation: ltPing 1.6s infinite; }
.lt-live.done .lt-k i { background: #ff4d6d; box-shadow: 0 0 0 0 rgba(255, 77, 109, .7); }
@keyframes ltPing { 70% { box-shadow: 0 0 0 9px rgba(0, 0, 0, 0); } }
.lt-clock { font-size: 12.5px; padding: 4px 10px; border-radius: 20px; background: rgba(0, 0, 0, .45); font-variant-numeric: tabular-nums; }
.lt-live-head { display: flex; align-items: center; gap: 12px; }
.lt-live-head img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #ffd84d, 0 4px 12px rgba(0, 0, 0, .5); }
.lt-live-head b { display: block; font-size: 22px; font-weight: 600; line-height: 1.2; text-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
.lt-live-head small { font-size: 13px; opacity: .85; }
.lt-balls { display: flex; flex-wrap: wrap; gap: 8px; }
.lt-balls i { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 26px; font-weight: 700; color: #3a0d4a;
  background: radial-gradient(circle at 35% 30%, #fff, #f1e9ff 55%, #c9b8e8); box-shadow: inset 0 -4px 8px rgba(80, 40, 120, .25), 0 4px 10px rgba(0, 0, 0, .45); }
.lt-index { font-size: 14px; } .lt-index b { font-size: 24px; color: #ffd84d; margin-left: 6px; }
.lt-tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lt-tri span { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; background: rgba(0, 0, 0, .42); border: 1px solid rgba(255, 216, 77, .3); }
.lt-tri small { font-size: 12px; opacity: .85; } .lt-tri b { font-size: 24px; font-weight: 700; color: #ffd84d; letter-spacing: 1px; }
.lt-count { display: grid; gap: 2px; }
.lt-count small { font-size: 13px; opacity: .85; }
.lt-count b { font-size: 42px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: 1px;
  background: linear-gradient(180deg, #fffbe0, #ffe95c 40%, #ffc400); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); padding-right: .1em; }
.lt-count span { font-size: 13px; opacity: .85; }
.lt-res { display: block; font-style: normal; font-size: 12.5px; color: #ffd84d; margin-top: 1px; } .lt-res b { font-weight: 600; letter-spacing: .5px; }

/* กระดานหวย: เรียงแถวเดียวเหมือนหน้ามือถือทุกขนาดจอ (ผู้ใช้สั่ง) */
@media (min-width: 700px) { .lt-list { grid-template-columns: 1fr; } }
.lt-name b, .lt-name small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ================= หน้าหวยแบบการ์ด (games.html#lotto) ================= */
.lt-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.lt-tabs::-webkit-scrollbar { display: none; }
.lt-tab { flex: none; height: 40px; padding: 0 18px; border-radius: 22px; font: inherit; font-size: 15px; font-weight: 500; color: #fff; cursor: pointer;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); }
.lt-tab.on { color: #3a1a00; background: linear-gradient(180deg, #ffe95c, #ffb800); border-color: transparent; box-shadow: 0 4px 14px rgba(255, 184, 0, .4); }
.lt-search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-radius: 24px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .7); }
.lt-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font: inherit; font-size: 15px; }
.lt-search input::placeholder { color: rgba(255, 255, 255, .55); }
.lc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lc { display: grid; gap: 8px; align-content: start; padding: 0 0 10px; border-radius: 16px; overflow: hidden; text-align: left; color: #fff; font: inherit; cursor: pointer;
  background: linear-gradient(180deg, rgba(40, 14, 70, .85), rgba(24, 8, 44, .92)); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 8px 20px rgba(0, 0, 0, .3); transition: transform .2s; }
.lc:hover { transform: translateY(-2px); }
.lc-cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.lc-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.lc-badge { position: absolute; left: 8px; top: 8px; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 20px; color: #fff; background: linear-gradient(180deg, #2fe08a, #12a95d); box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.lc.wait .lc-badge { color: #3a1a00; background: linear-gradient(180deg, #ffe95c, #ffb800); }
.lc-name { padding: 0 10px; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-res { margin: 0 8px; padding: 8px; border-radius: 12px; display: grid; gap: 6px; min-height: 92px; align-content: center;
  background: linear-gradient(135deg, #3b1d8f, #6a1f7a); border-left: 3px solid #ff3d6e; }
.lc-res > small { font-size: 12px; font-weight: 500; }
.lc-none { font-size: 12.5px; opacity: .75; text-align: center; }
.lc-balls { display: flex; gap: 3px; flex-wrap: nowrap; }
.lc-balls i { flex: 1; max-width: 26px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 700; color: #2a0f45;
  background: radial-gradient(circle at 35% 30%, #fff, #efe6ff 60%, #c8b6ea); box-shadow: 0 2px 4px rgba(0, 0, 0, .35); }
.lc-tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.lc-tri span { display: grid; justify-items: center; padding: 3px 0; border-radius: 8px; background: rgba(0, 0, 0, .28); }
.lc-tri small { font-size: 10px; opacity: .85; white-space: nowrap; } .lc-tri b { font-size: 14px; font-weight: 700; color: #ffd84d; }
.lc-next { margin: 0 8px; padding: 7px 9px; border-radius: 12px; display: grid; gap: 2px; background: rgba(255, 184, 0, .1); border: 1px solid rgba(255, 216, 77, .35); }
.lc-nd { font-size: 12.5px; font-weight: 600; }
.lc-next span { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: #ffd84d; } .lc-next em { font-style: normal; font-weight: 700; font-size: 14px; }
.lc-cd { margin: 0 8px; display: grid; gap: 4px; }
.lc-cd > small { font-size: 12px; opacity: .8; }
.lc-cd > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.lc-cd span { display: grid; justify-items: center; padding: 4px 0; border-radius: 8px; background: rgba(0, 0, 0, .35); }
.lc-cd b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; } .lc-cd i { font-style: normal; font-size: 10.5px; opacity: .75; }
.lt-board > .lt-sec { display: none; }
.lc-days { font-size: 15px !important; font-weight: 700; color: #ffd84d; opacity: 1 !important; }

/* แท็บหวย: ขึ้นบรรทัดใหม่แทนการเลื่อนข้าง (เมาส์บนคอมเลื่อนข้างไม่ได้) เห็นครบทุกแท็บ */
.lt-tabs { flex-wrap: wrap; overflow: visible; }
/* รูปปกการ์ดหวยเตี้ยลงนิด ทั้งคอมและมือถือ (ผู้ใช้สั่ง) */
.lc-cover { aspect-ratio: 16 / 10; }
/* กล่องผลทุกใบสูงเท่ากัน (มีผล/ไม่มีผล) ให้กล่องงวดถัดไปกับนับถอยหลังตรงแนวกันทั้งแถว */
.lc-res { height: 124px; min-height: 0; align-content: center; overflow: hidden; }
.lc-next { min-height: 60px; align-content: center; }
.lc-tag { font-style: normal; font-size: 10px; font-weight: 500; margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .18); opacity: .85; }

/* หัวหน้าหวย (H1 + 2 ย่อหน้า) */
.lt-head { display: grid; gap: 8px; }
.lt-head h1 { margin: 4px 0 2px; font-size: 26px; font-weight: 600; line-height: 1.3; background: linear-gradient(180deg, #fffbe0, #ffe95c 55%, #ffc400); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lt-head p { margin: 0; font-size: 14px; line-height: 1.75; opacity: .92; }
@media (min-width: 700px) { .lt-head h1 { font-size: 30px; } }
.lt-head h1 span { white-space: nowrap; }   /* กันเบราว์เซอร์ตัดคำไทยกลางคำ (ผลอ/อกสด) */

/* หน้า lotto.html */
h3.lc-name { margin: 0; line-height: 1.4; }
#lotto.lt-board { margin-top: 16px; }

/* H1 หน้าโปร (หน้าตาเดิมของ h2) + หน้าเกม */
.promo-sec h1.promo-h1 { display: inline-block; margin: 0; padding-bottom: 6px; border-bottom: 3px solid var(--accent); font-size: 22px; font-weight: 500; }
.g-h1 { margin: 0 0 12px; font-size: 22px; font-weight: 500; line-height: 1.35; }
