/* =========================================================
   SATTA v2 — ธีมสี LINE  |  เบา เร็ว อ่านง่ายบนมือถือราคาประหยัด
   ไม่มีเฟรมเวิร์ก ไม่มีไอคอนฟอนต์ (ใช้ SVG ในหน้า)
   ========================================================= */
@font-face { font-family: Kanit; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/kanit-thai-400-normal.woff2) format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: Kanit; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/kanit-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Kanit; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/kanit-thai-600-normal.woff2) format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: Kanit; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/kanit-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --g: #06C755;          /* LINE green */
  --g-d: #05B04B;
  --g-ink: #FFFFFF;      /* ตัวหนังสือบนพื้นเขียว: ขาวแบบ LINE */
  --g-text: #047A35;     /* เขียวสำหรับตัวหนังสือบนพื้นขาว */
  --g-soft: #E7F8EE;
  --bg: #F4F5F7;
  --card: #FFFFFF;
  --text: #111111;
  --muted: #5E6670;
  --bd: #E4E6EA;
  --dark: #0F1712;
  --red: #D92D20;
  --amber-bg: #FFF4D6; --amber: #7A4B00;
  --r: 16px; --r-s: 12px;
  --shadow: 0 1px 2px rgba(17,17,17,.04), 0 4px 16px rgba(17,17,17,.06);
  --nav-h: 64px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; font-family: Kanit, "Noto Sans Thai", "Leelawadee UI", Tahoma, system-ui, sans-serif; font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-tap-highlight-color: transparent; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px)); }
img, video, canvas, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--g-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .4em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(24px, 6vw, 34px); }
h2 { font-size: clamp(20px, 4.8vw, 26px); }
h3 { font-size: 18px; }
p { margin: 0 0 .8em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--g); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.green { color: var(--g-text); }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: -4px; }
.section { padding: 28px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.stack > * + * { margin-top: 12px; }

/* ---------- ปุ่ม ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 16px; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background .15s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn-g { background: var(--g); color: var(--g-ink); text-shadow: 0 1px 1px rgba(0,0,0,.12); }
.btn-g:hover { background: var(--g-d); }
.btn-dark { background: var(--text); color: #fff; }
.btn-ghost { background: var(--card); border-color: var(--bd); color: var(--text); }
.btn-ghost:hover { border-color: #C9CDD3; }
.btn-soft { background: var(--g-soft); color: var(--g-text); }
.btn-block { width: 100%; }
.btn-lg { min-height: 54px; font-size: 18px; padding: 0 24px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn[disabled] { background: #E4E6EA; color: var(--muted); cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--g-text); cursor: pointer; font-weight: 600; }

/* ---------- ป้าย ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.b-g { background: var(--g); color: var(--g-ink); font-weight: 600; }
.b-soft { background: var(--g-soft); color: var(--g-text); }
.b-dark { background: var(--text); color: #fff; }
.b-red { background: #FDE8E7; color: #A1190F; }
.b-amber { background: var(--amber-bg); color: var(--amber); }
.b-gray { background: #EEF0F2; color: #3A4048; }

/* ---------- ส่วนหัว ---------- */
.announce { background: var(--g); color: var(--g-ink); text-align: center; font-size: 14px; font-weight: 600; padding: 6px 12px; text-shadow: 0 1px 1px rgba(0,0,0,.12); }
.top { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--bd); }
@supports (backdrop-filter: blur(8px)) { .top { background: rgba(255,255,255,.85); backdrop-filter: blur(8px); } }
.top .wrap { display: flex; align-items: center; gap: 10px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 20px; text-decoration: none !important; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--g); color: var(--g-ink); display: grid; place-items: center; font-weight: 600; font-size: 18px; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.top-search { flex: 1; display: none; }
.top-nav { display: none; gap: 4px; }
.top-nav a { color: var(--text); font-weight: 500; padding: 8px 12px; border-radius: 10px; }
.top-nav a[aria-current="page"], .top-nav a:hover { background: var(--g-soft); color: var(--g-text); text-decoration: none; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; color: var(--text); background: transparent; border: 0; cursor: pointer; }
.icon-btn:hover { background: var(--bg); }
.wallet { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 6px 0 14px; border-radius: 999px; background: var(--g-soft); color: var(--g-text); font-weight: 600; text-decoration: none !important; white-space: nowrap; }
.wallet .plus { width: 28px; height: 28px; border-radius: 999px; background: var(--g); color: var(--g-ink); display: grid; place-items: center; }
.avatar { width: 36px; height: 36px; border-radius: 999px; object-fit: cover; background: var(--g-soft); }
.search-box { position: relative; }
.search-box .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-box input { width: 100%; min-height: 44px; border-radius: 999px; border: 1px solid var(--bd); background: var(--bg); padding: 0 16px 0 42px; }
.search-box input:focus { background: #fff; border-color: var(--g); outline: none; box-shadow: 0 0 0 3px var(--g-soft); }
@media (min-width: 900px) {
  .top-search { display: block; max-width: 420px; }
  .top-nav { display: flex; }
  .only-mobile { display: none !important; }
}
@media (max-width: 899px) { .only-desktop { display: none !important; } }

/* ---------- เมนูล่าง (มือถือ) ---------- */
.bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--bd); padding-bottom: env(safe-area-inset-bottom, 0px); }
.bnav ul { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); max-width: 560px; height: var(--nav-h); }
.bnav a { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: 12px; font-weight: 500; text-decoration: none !important; }
.bnav a[aria-current="page"] { color: var(--g-text); }
.bnav .ico { width: 24px; height: 24px; }
.bnav .center-btn .bubble { width: 48px; height: 48px; margin-top: -18px; border-radius: 999px; background: var(--g); color: var(--g-ink); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(6,199,85,.35); }
@media (min-width: 900px) { .bnav { display: none; } body { padding-bottom: 0; } }

/* ---------- การ์ด ---------- */
.card { background: var(--card); border: 1px solid var(--bd); border-radius: var(--r); }
.pad { padding: 16px; }
@media (min-width: 640px) { .pad { padding: 20px; } }

/* ---------- Hero (สิ่งแรกที่ลูกค้าเห็น) ---------- */
.hero { background: #fff; border-bottom: 1px solid var(--bd); overflow: hidden; }
.hero .wrap { display: grid; gap: 20px; padding-top: 24px; padding-bottom: 24px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--g-soft); color: var(--g-text); font-size: 14px; font-weight: 600; }
.hero-kicker .dot { width: 22px; height: 22px; border-radius: 999px; background: var(--g); color: var(--g-ink); display: grid; place-items: center; }
.hero h1 { font-size: clamp(30px, 8.4vw, 52px); line-height: 1.12; margin: 14px 0 10px; }
.hero h1 .hl { background: linear-gradient(transparent 62%, rgba(6,199,85,.35) 62%); }
.hero p.lead { color: var(--muted); font-size: 17px; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hero-art { position: relative; border-radius: 20px; overflow: hidden; background: var(--dark); aspect-ratio: 16 / 10; }
.hero-stack { display: grid; gap: 8px; }
.hero-stack div { border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 1; background: var(--dark); }
.hero-stack img { width: 100%; height: 100%; object-fit: cover; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.trust div { background: var(--bg); border-radius: var(--r-s); padding: 10px 8px; text-align: center; }
.trust b { display: block; font-size: 20px; line-height: 1.2; }
.trust span { font-size: 12px; color: var(--muted); }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr 1fr; align-items: center; padding-top: 40px; padding-bottom: 40px; } }

.ticker { display: flex; align-items: center; gap: 10px; background: var(--dark); color: #fff; font-size: 14px; padding: 8px 0; overflow: hidden; white-space: nowrap; }
.ticker .wrap { display: flex; align-items: center; gap: 10px; }
.ticker .live { flex: none; display: inline-flex; align-items: center; gap: 6px; color: var(--g); font-weight: 600; }
.ticker .live::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--g); }
.ticker ul { list-style: none; margin: 0; padding: 0; position: relative; height: 24px; flex: 1; overflow: hidden; }
.ticker li { position: absolute; inset: 0; opacity: 0; transform: translateY(100%); transition: opacity .4s, transform .4s; overflow: hidden; text-overflow: ellipsis; }
.ticker li.on { opacity: 1; transform: none; }
.ticker li:first-child { opacity: 1; transform: none; }
.ticker.js li:first-child:not(.on) { opacity: 0; transform: translateY(-100%); }

/* ---------- หมวดเกม ---------- */
.games { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .games { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.game { display: block; background: var(--card); border: 1px solid var(--bd); border-radius: var(--r); overflow: hidden; color: var(--text); text-decoration: none !important; }
.game:hover { box-shadow: var(--shadow); }
.game .img-box { aspect-ratio: 3 / 1; background: var(--dark); }
.game img, .game .img-empty { width: 100%; height: 100%; object-fit: cover; }
.game-body { padding: 10px 12px 12px; }
.game-body b { display: block; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-body span { font-size: 13px; color: var(--muted); }

/* ---------- การ์ดสินค้า ---------- */
.pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .pgrid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1000px) { .pgrid { grid-template-columns: repeat(5, 1fr); } }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--bd); border-radius: var(--r); overflow: hidden; color: var(--text); text-decoration: none !important; }
.pcard:hover { box-shadow: var(--shadow); }
.pcard .img-box { position: relative; aspect-ratio: 1 / 1; background: var(--dark); }
.pcard img, .pcard .img-empty { width: 100%; height: 100%; object-fit: cover; }
.pcard .tags { position: absolute; left: 8px; top: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.pcard-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.pcard-name { font-weight: 500; font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.price { font-weight: 600; font-size: 18px; color: var(--g-text); }
.price s { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 4px; }
.pcard-meta { font-size: 12px; color: var(--muted); margin-top: auto; }
.pcard.sold { opacity: .7; }
.pcard.sold img { filter: grayscale(.8); }
.img-empty { background: repeating-linear-gradient(45deg, #1a241e, #1a241e 10px, #16201a 10px, #16201a 20px); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 640px) { .rail { grid-auto-columns: 30%; } }
@media (min-width: 1000px) { .rail { grid-auto-columns: 19%; } }

/* ---------- ตัวกรอง ---------- */
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--bd); background: var(--card); color: var(--text); font-size: 14px; font-weight: 500; text-decoration: none !important; white-space: nowrap; }
.chip[aria-current="true"] { background: var(--text); border-color: var(--text); color: #fff; }

/* ---------- หน้าสินค้า ---------- */
.pd { display: grid; gap: 18px; }
@media (min-width: 900px) { .pd { grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: start; } .pd-buy { position: sticky; top: 80px; } }
.gallery .main { border-radius: var(--r); overflow: hidden; background: var(--dark); aspect-ratio: 1 / 1; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; margin-top: 8px; scrollbar-width: none; }
.thumbs button { flex: none; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--dark); cursor: pointer; }
.thumbs button[aria-pressed="true"] { border-color: var(--g); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.facts div { background: var(--bg); border-radius: var(--r-s); padding: 8px; text-align: center; font-size: 13px; color: var(--muted); }
.facts b { display: block; color: var(--text); font-size: 15px; }
.detail { white-space: pre-line; }
.coupon { display: flex; gap: 8px; }
.coupon input { flex: 1; min-width: 0; text-transform: uppercase; }
.sum { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 15px; }
.sum .total { font-weight: 600; font-size: 20px; color: var(--g-text); }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px)); z-index: 35; background: #fff; border-top: 1px solid var(--bd); padding: 10px 16px; display: flex; gap: 10px; align-items: center; }
.sticky-buy .price { font-size: 20px; }
@media (min-width: 900px) { .sticky-buy { display: none; } }

/* ---------- ฟอร์ม ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-weight: 500; font-size: 15px; }
.input, .field input, .field select, .field textarea { width: 100%; min-height: 46px; border-radius: var(--r-s); border: 1px solid #CDD1D6; background: #fff; padding: 10px 14px; }
.field textarea { min-height: 110px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--g); outline: none; box-shadow: 0 0 0 3px var(--g-soft); }
.hint { font-size: 13px; color: var(--muted); }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.seg label { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; border: 1px solid var(--bd); border-radius: var(--r-s); background: #fff; cursor: pointer; font-weight: 500; padding: 6px 10px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:checked + span { color: var(--g-text); }
.seg label:has(input:checked) { border-color: var(--g); background: var(--g-soft); box-shadow: inset 0 0 0 1px var(--g); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--g); outline-offset: 2px; }
.qr { width: 200px; height: 200px; background: #fff; border-radius: 12px; padding: 10px; display: grid; place-items: center; border: 1px solid var(--bd); }
.honey { position: absolute; left: -9999px; }

/* ---------- แท็บ ---------- */
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--bd); color: var(--text); font-weight: 500; text-decoration: none !important; }
.tabs a[aria-current="page"] { background: var(--g); border-color: var(--g); color: var(--g-ink); }

/* ---------- รายการ / ตาราง ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--bd); }
.list li:last-child { border-bottom: 0; }
.tx-plus { color: var(--g-text); font-weight: 600; }
.tx-minus { color: var(--red); font-weight: 600; }

/* ---------- การ์ดรางวัล / รหัส ---------- */
.reward { border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--bd); }
.reward-head { background: var(--g); color: var(--g-ink); padding: 14px 16px; }
.reward-head small { font-weight: 600; opacity: .85; }
.reward-head b { display: block; font-size: 22px; line-height: 1.25; }
.code { border: 2px dashed var(--g-text); border-radius: 12px; padding: 10px; text-align: center; font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; font-size: 22px; letter-spacing: 2px; }
.reward.used { opacity: .6; }
.secret { background: var(--bg); border-radius: var(--r-s); padding: 12px; white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; margin: 8px 0; }

/* ---------- วงล้อ ---------- */
.wheel-wrap { position: relative; width: min(100%, 400px); aspect-ratio: 1 / 1; margin: 0 auto; }
.wheel-wrap canvas { width: 100%; height: 100%; border-radius: 50%; }
.wheel-pointer { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); border-left: 18px solid transparent; border-right: 18px solid transparent; border-top: 30px solid var(--text); z-index: 2; filter: drop-shadow(0 2px 2px rgba(0,0,0,.2)); }
.wheel-hub { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 22%; aspect-ratio: 1 / 1; border-radius: 50%; background: #fff; border: 5px solid var(--text); display: grid; place-items: center; font-weight: 600; }
.odds { width: 100%; border-collapse: collapse; font-size: 14px; }
.odds td, .odds th { padding: 7px 4px; border-bottom: 1px solid var(--bd); text-align: left; }
.odds td + td, .odds th + th { text-align: right; }
.wheel-promo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 20px; border-radius: var(--r); background: var(--dark); color: #fff; text-decoration: none !important; }
.wheel-promo b { display: block; font-size: 22px; line-height: 1.25; }
.wheel-promo span { color: #B9C2BD; font-size: 15px; }

/* ---------- วิดีโอ (โหลดเมื่อกดเท่านั้น) ---------- */
.vgrid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .vgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .vgrid { grid-template-columns: repeat(3, 1fr); } }
.vbox { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--dark); }
.vbox img, .vbox iframe, .vbox video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.vplay { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(transparent 40%, rgba(0,0,0,.55)); border: 0; cursor: pointer; color: #fff; padding: 0; width: 100%; }
.vplay .circle { width: 64px; height: 64px; border-radius: 999px; background: var(--g); color: var(--g-ink); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.vplay .circle .ico { width: 28px; height: 28px; fill: currentColor; stroke: none; margin-left: 4px; }
.vtitle { position: absolute; left: 12px; right: 12px; bottom: 10px; text-align: left; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.6); }

/* ---------- ขั้นตอน / รีวิว / FAQ ---------- */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--bd); border-radius: var(--r); padding: 14px; }
.steps li::before { content: counter(s); flex: none; width: 34px; height: 34px; border-radius: 999px; background: var(--g); color: var(--g-ink); display: grid; place-items: center; font-weight: 600; }
.steps b { display: block; }
.steps span { color: var(--muted); font-size: 14px; }
.reviews { display: grid; gap: 10px; }
@media (min-width: 800px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review { background: var(--card); border: 1px solid var(--bd); border-radius: var(--r); padding: 14px; }
.stars { color: #F5A400; letter-spacing: 2px; font-size: 15px; }
.review p { margin: 6px 0; }
.review small { color: var(--muted); }
details.faq { background: var(--card); border: 1px solid var(--bd); border-radius: var(--r-s); margin-bottom: 8px; }
details.faq summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; font-weight: 500; position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--g-text); }
details.faq[open] summary::after { content: "–"; }
details.faq div { padding: 0 16px 14px; color: var(--muted); }

/* ---------- เนื้อหายาว (บทความ / หน้า SEO) ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.seo-text { color: var(--muted); font-size: 15px; }
.seo-text h2, .seo-text h3 { color: var(--text); }

/* ---------- ส่วนท้าย ---------- */
.foot { background: #fff; border-top: 1px solid var(--bd); margin-top: 32px; padding: 28px 0 24px; font-size: 15px; }
.foot-grid { display: grid; gap: 22px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot h3 { font-size: 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 6px 0; }
.foot a { color: var(--text); }
.foot-bottom { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--bd); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13px; }
.crumbs { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.crumbs a { color: var(--muted); }
.pager { display: flex; gap: 6px; justify-content: center; margin: 18px 0; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #fff; border: 1px solid var(--bd); color: var(--text); text-decoration: none; }
.pager span { background: var(--text); color: #fff; border-color: var(--text); }

/* ---------- แจ้งเตือน / ป๊อปอัป ---------- */
.toasts { position: fixed; top: 12px; left: 12px; right: 12px; z-index: 100; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { pointer-events: auto; max-width: 520px; width: 100%; background: var(--text); color: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: 0 8px 24px rgba(0,0,0,.2); font-weight: 500; transition: opacity .3s, transform .3s; }
.toast-success { background: var(--g); color: var(--g-ink); }
.toast-error { background: var(--red); }
.toast.hide { opacity: 0; transform: translateY(-10px); }
dialog.modal { border: 0; border-radius: 20px; padding: 0; width: min(92vw, 420px); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
dialog.modal::backdrop { background: rgba(15,23,18,.55); }
.modal-body { padding: 22px 20px 16px; text-align: center; }
.modal-body h3 { font-size: 20px; }
.modal-actions { display: flex; gap: 8px; padding: 0 20px 20px; }
.modal-actions .btn { flex: 1; }
.consent { position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom, 0px)); z-index: 60; max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid var(--bd); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 16px; font-size: 14px; }
.consent .row { display: flex; gap: 8px; margin-top: 10px; }
@media (min-width: 900px) { .consent { bottom: 16px; } }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.notice { background: var(--g-soft); color: #064A22; border-radius: var(--r-s); padding: 12px 14px; font-size: 15px; }
.notice.warn { background: var(--amber-bg); color: var(--amber); }

/* ---------- ปุ่มแชท LINE ลอยมุมขวาล่าง ---------- */
.chat-fab { position: fixed; right: 16px; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom, 0px)); z-index: 45; display: inline-flex; align-items: center; gap: 8px; height: 56px; padding: 0 6px; border-radius: 999px; background: var(--g); color: #fff; font-weight: 600; text-decoration: none !important; box-shadow: 0 6px 18px rgba(6,199,85,.45), 0 2px 6px rgba(0,0,0,.15); transition: transform .15s, background .15s; }
.chat-fab:hover { background: var(--g-d); transform: translateY(-2px); }
.chat-fab:active { transform: scale(.96); }
.chat-fab-icon { width: 44px; height: 44px; display: grid; place-items: center; }
.chat-fab-icon svg { width: 30px; height: 30px; fill: #fff; }
.chat-fab-text { display: none; padding-right: 12px; text-shadow: 0 1px 1px rgba(0,0,0,.12); }
.chat-fab::after { content: ""; position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 99px; background: #FF3B30; border: 2px solid #fff; }
@media (min-width: 900px) { .chat-fab { right: 24px; bottom: 24px; padding: 0 6px 0 6px; } .chat-fab-text { display: inline; } }
body:has(.sticky-buy) .chat-fab { bottom: calc(var(--nav-h) + 92px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 900px) { body:has(.sticky-buy) .chat-fab { bottom: 24px; } }
body:has(.consent:not([hidden])) .chat-fab { display: none; }

/* โหมดประหยัดเน็ต: ซ่อนรูปตกแต่ง */
.lite .deco { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* =========================================================
   ธีมกราเดียนต์เขียว LINE (สดใส แบบวัยรุ่น) — ทั้งหมดเป็น CSS ล้วน ไม่มีรูป ไม่เพิ่มเน็ต
   ========================================================= */
:root {
  --grad: linear-gradient(135deg, #34E584 0%, #06C755 45%, #04A64A 100%);
  --grad-h: linear-gradient(90deg, #04A64A 0%, #06C755 50%, #34E584 100%);
  --grad-deep: linear-gradient(150deg, #013F1E 0%, #046B31 35%, #05A847 70%, #2EDB7E 100%);
  --grad-lime: linear-gradient(90deg, #D4FF6B 0%, #7CFFB2 100%);
  --glow: 0 6px 20px rgba(6, 199, 85, .35);
  --bg: #F2F6F3;
}
.btn-g, .b-g, .brand-mark, .wallet .plus, .bnav .center-btn .bubble, .hero-kicker .dot, .steps li::before,
.reward-head, .vplay .circle, .tabs a[aria-current="page"], .toast-success, .chat-fab {
  background: var(--grad); color: #fff;
}
.btn-g { background-size: 160% 160%; background-position: 0% 50%; box-shadow: var(--glow); transition: background-position .4s, transform .1s, box-shadow .2s; }
.btn-g:hover { background: var(--grad); background-size: 160% 160%; background-position: 100% 50%; box-shadow: 0 8px 26px rgba(6, 199, 85, .45); }
.btn-white { background: #fff; color: #047A35; box-shadow: 0 8px 22px rgba(1, 40, 18, .25); }
.btn-white:hover { background: #F0FFF6; }
.btn-glass { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-glass:hover { background: rgba(255, 255, 255, .24); }
@supports (backdrop-filter: blur(6px)) { .btn-glass { backdrop-filter: blur(6px); } }
.announce { background: var(--grad-h); }
.chip[aria-current="true"] { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 3px 10px rgba(6, 199, 85, .3); }
.tabs a[aria-current="page"] { border-color: transparent; box-shadow: 0 3px 10px rgba(6, 199, 85, .3); }
.bnav .center-btn .bubble { box-shadow: 0 6px 16px rgba(6, 199, 85, .5); }
.bnav a[aria-current="page"] { color: #047A35; font-weight: 600; }

/* Hero */
.hero { position: relative; background: var(--grad-deep); color: #fff; border-bottom: 0; isolation: isolate; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: -1; pointer-events: none; }
.hero-glow.g1 { width: 380px; height: 380px; right: -80px; top: -120px; background: #7CFFB2; }
.hero-glow.g2 { width: 300px; height: 300px; left: 35%; bottom: -160px; background: #D4FF6B; opacity: .35; }
.hero h1 { color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .18); }
.hero h1 .hl { background: var(--grad-lime); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.hero p.lead { color: rgba(255, 255, 255, .92); }
.hero-kicker { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.trust div { background: rgba(1, 40, 18, .3); border: 1px solid rgba(255, 255, 255, .16); }
.trust b { color: #fff; }
.trust span { color: rgba(255, 255, 255, .85); }
.hero-stack div, .hero-art { box-shadow: 0 12px 30px rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .18); }
.ticker { background: #03301A; }
.ticker .live { color: #7CFFB2; }
.ticker .live::before { background: #7CFFB2; box-shadow: 0 0 0 3px rgba(124, 255, 178, .25); }

/* การ์ดและหัวข้อ */
.section-head h2, .section > .wrap > h2 { position: relative; padding-left: 14px; }
.section-head h2::before, .section > .wrap > h2::before { content: ""; position: absolute; left: 0; top: .18em; bottom: .18em; width: 5px; border-radius: 9px; background: var(--grad); }
.game, .pcard { transition: box-shadow .2s, border-color .2s, transform .15s; }
.game:hover, .pcard:hover { border-color: #9AE8BD; box-shadow: 0 8px 24px rgba(6, 199, 85, .18); transform: translateY(-2px); }
.wheel-promo { position: relative; overflow: hidden; background: var(--grad-deep); box-shadow: 0 10px 28px rgba(4, 107, 49, .3); isolation: isolate; }
.wheel-promo::after { content: ""; position: absolute; width: 260px; height: 260px; right: -60px; top: -110px; border-radius: 50%; background: #7CFFB2; filter: blur(50px); opacity: .45; z-index: -1; }
.wheel-promo span { color: rgba(255, 255, 255, .9); }
.wheel-promo .btn-g { background: #fff; color: #047A35; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.promo-kicker { display: inline-block; font-weight: 600; background: var(--grad-lime); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notice { background: linear-gradient(135deg, #EAFBF1 0%, #D9F7E7 100%); }
.foot { border-top: 0; box-shadow: inset 0 3px 0 0 #06C755; }

/* ปุ่มแชท: กราเดียนต์ + วงแสงเต้นเบา ๆ */
.chat-fab { box-shadow: 0 8px 22px rgba(6, 199, 85, .5), 0 2px 6px rgba(0, 0, 0, .15); }
.chat-fab-icon { position: relative; }
.chat-fab-icon::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(6, 199, 85, .55); animation: chatping 2.4s ease-out infinite; }
@keyframes chatping { 0% { box-shadow: 0 0 0 0 rgba(6, 199, 85, .55); } 70%, 100% { box-shadow: 0 0 0 18px rgba(6, 199, 85, 0); } }
@media (prefers-reduced-motion: reduce) { .chat-fab-icon::before { animation: none; } }

/* =========================================================
   วงล้อ v2.1: ปก · รางวัลมีรูป · ปุ่มหยุด · เสียง · ฉลอง
   ========================================================= */
.wheel-cards { display: grid; gap: 14px; }
@media (min-width: 800px) { .wheel-cards { grid-template-columns: repeat(2, 1fr); } }
.wheel-card { display: block; border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--bd); color: var(--text); text-decoration: none !important; transition: transform .15s, box-shadow .2s; }
.wheel-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(6, 199, 85, .2); }
.wheel-cover { aspect-ratio: 1200 / 630; background: var(--grad-deep); }
.wheel-cover img { width: 100%; height: 100%; object-fit: cover; }
.wheel-cover-empty { height: 100%; display: grid; place-items: center; color: #fff; }
.wheel-cover-empty .ico { width: 64px; height: 64px; }
.wheel-card-body { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; }
.wheel-card-body b { display: block; font-size: 18px; }
.wheel-card-body span:not(.btn) { color: var(--muted); font-size: 14px; }
.wheel-hero { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 1200 / 630; max-height: 360px; width: 100%; margin-bottom: 18px; background: var(--grad-deep); }
.wheel-hero img { width: 100%; height: 100%; object-fit: cover; }
.wheel-hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; background: linear-gradient(transparent, rgba(1, 30, 14, .85)); color: #fff; }
.wheel-hero-text h1 { margin: 0; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.wheel-hero-text p { margin: 2px 0 0; color: rgba(255, 255, 255, .9); }
@media (max-width: 640px) { .wheel-hero { aspect-ratio: 16 / 10; } }

.wheel-stage { position: relative; padding: 14px; border-radius: 50%; background: radial-gradient(circle, rgba(6, 199, 85, .18) 0%, transparent 68%); margin: 0 auto; width: min(100%, 440px); }
.wheel-wrap { cursor: pointer; filter: drop-shadow(0 14px 30px rgba(1, 40, 18, .35)); }
.wheel-wrap canvas { will-change: transform; }
.wheel-hub { overflow: hidden; background: #fff; border: 6px solid #0B120E; box-shadow: 0 0 0 4px #FDE68A, 0 6px 16px rgba(0, 0, 0, .3); color: #047A35; }
.wheel-hub img { width: 100%; height: 100%; object-fit: cover; }
.wheel-pointer { top: -2px; border-left-width: 20px; border-right-width: 20px; border-top: 36px solid #F59E0B; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .35)); transform-origin: 50% 0; }
.wheel-pointer.flick { animation: flick .12s ease-out; }
@keyframes flick { 0% { transform: translateX(-50%) rotate(0); } 40% { transform: translateX(-50%) rotate(-14deg); } 100% { transform: translateX(-50%) rotate(0); } }
.sound-btn { position: absolute; right: 0; top: 0; z-index: 3; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--bd); background: #fff; color: var(--text); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.sound-btn[aria-pressed="false"] { color: var(--muted); }
.spin-btn { max-width: 420px; margin: 14px auto 0; }
.spin-btn.stop-mode { background: linear-gradient(135deg, #FF6B6B, #E53935); color: #fff; box-shadow: 0 6px 20px rgba(229, 57, 53, .45); animation: pulse 0.9s ease-in-out infinite; font-size: 22px; }
@keyframes pulse { 50% { transform: scale(1.04); } }
.spin-hint { font-size: 14px; color: var(--muted); margin: 8px 0 2px; min-height: 1.6em; }

.prize-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.prize { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 12px 8px 10px; border-radius: 14px; background: #fff; border: 2px solid var(--bd); }
.prize b { font-size: 14px; line-height: 1.3; }
.prize small { font-size: 12px; color: var(--muted); }
.prize-img { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: var(--g-soft); color: var(--g-text); }
.prize-img img { width: 100%; height: 100%; object-fit: cover; }
.prize-img .ico { width: 34px; height: 34px; }
.prize-rar { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: #EEF0F2; color: #4B5563; }
.prize.r-rare { border-color: #93C5FD; } .prize.r-rare .prize-rar { background: #DBEAFE; color: #1D4ED8; }
.prize.r-epic { border-color: #D8B4FE; } .prize.r-epic .prize-rar { background: #F3E8FF; color: #7E22CE; }
.prize.r-legendary { border-color: #FCD34D; background: linear-gradient(180deg, #FFFBEB, #fff); } .prize.r-legendary .prize-rar { background: linear-gradient(90deg, #F59E0B, #FBBF24); color: #fff; }
.prize.out { opacity: .5; filter: grayscale(.7); }

/* หน้าต่างฉลอง */
.win { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px; background: rgba(1, 20, 9, .72); }
.win[hidden] { display: none; }
.win-card { position: relative; width: min(100%, 400px); border-radius: 26px; padding: 28px 20px 20px; text-align: center; background: #fff; overflow: hidden; animation: pop .45s cubic-bezier(.2, 1.4, .4, 1); isolation: isolate; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.win-rays { position: absolute; left: 50%; top: 120px; width: 620px; height: 620px; margin: -310px 0 0 -310px; z-index: -1; opacity: .5;
  background: repeating-conic-gradient(from 0deg, rgba(6, 199, 85, .28) 0deg 10deg, transparent 10deg 22deg); animation: spinrays 12s linear infinite; border-radius: 50%; mask-image: radial-gradient(circle, #000 25%, transparent 62%); -webkit-mask-image: radial-gradient(circle, #000 25%, transparent 62%); }
@keyframes spinrays { to { transform: rotate(360deg); } }
.win-badge { display: inline-block; font-weight: 600; font-size: 13px; padding: 3px 14px; border-radius: 999px; background: #EEF0F2; color: #374151; }
.win-img { width: 168px; height: 168px; margin: 12px auto 6px; border-radius: 28px; overflow: hidden; display: grid; place-items: center; background: var(--g-soft); color: var(--g-text); box-shadow: 0 10px 30px rgba(6, 199, 85, .35); animation: bob 2.4s ease-in-out infinite .5s; }
.win-img img { width: 100%; height: 100%; object-fit: cover; }
.win-img .ico { width: 72px; height: 72px; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-2deg); } }
.win-card h3 { font-size: 26px; margin: 8px 0 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.win-label { font-size: 20px; font-weight: 600; margin: 2px 0 10px; }
.win-detail { margin-bottom: 16px; }
.win-actions { display: flex; gap: 8px; }
.win-actions .btn { flex: 1; }
.win-card.r-rare .win-badge { background: #DBEAFE; color: #1D4ED8; } .win-card.r-rare .win-img { box-shadow: 0 10px 30px rgba(59, 130, 246, .45); }
.win-card.r-rare .win-rays { background: repeating-conic-gradient(rgba(59, 130, 246, .3) 0deg 10deg, transparent 10deg 22deg); }
.win-card.r-epic .win-badge { background: #F3E8FF; color: #7E22CE; } .win-card.r-epic .win-img { box-shadow: 0 10px 34px rgba(168, 85, 247, .5); }
.win-card.r-epic .win-rays { background: repeating-conic-gradient(rgba(168, 85, 247, .32) 0deg 10deg, transparent 10deg 22deg); }
.win-card.r-legendary { background: linear-gradient(180deg, #FFFBEB 0%, #fff 60%); }
.win-card.r-legendary .win-badge { background: linear-gradient(90deg, #F59E0B, #FBBF24); color: #fff; }
.win-card.r-legendary .win-img { box-shadow: 0 0 0 4px #FCD34D, 0 12px 40px rgba(245, 158, 11, .6); }
.win-card.r-legendary .win-rays { opacity: .8; background: repeating-conic-gradient(rgba(245, 158, 11, .38) 0deg 10deg, transparent 10deg 22deg); }
.win-card.r-legendary h3 { background: linear-gradient(90deg, #D97706, #F59E0B, #D97706); -webkit-background-clip: text; background-clip: text; }
.confetti { position: fixed; inset: 0; z-index: 160; pointer-events: none; }
.reward-thumb { width: 46px; height: 46px; border-radius: 12px; overflow: hidden; flex: none; background: rgba(255, 255, 255, .25); border: 2px solid rgba(255, 255, 255, .6); }
.reward-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .win-rays, .win-img, .spin-btn.stop-mode, .win-card { animation: none; } }
.promo-cover { flex: 1 1 100%; order: -1; border-radius: 14px; overflow: hidden; aspect-ratio: 1200 / 630; max-height: 200px; }
.promo-cover img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 800px) { .wheel-promo .promo-cover { flex: 0 0 300px; order: 0; } }

/* =========================================================
   v2.2: รูปโปรไฟล์ · การ์ดทักทาย · เติมเกม · เพจ Facebook
   ========================================================= */
.avatar { display: inline-block; border-radius: 999px; object-fit: cover; flex: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--g); }
.avatar-txt { display: inline-grid; place-items: center; background: var(--grad); color: #fff; font-weight: 600; line-height: 1; }
.me-link { display: inline-flex; border-radius: 999px; text-decoration: none !important; }
.bnav-avatar { display: inline-flex; padding: 1px; }
.bnav-avatar .avatar { box-shadow: 0 0 0 2px #fff, 0 0 0 3px #C9CDD3; }
.bnav a[aria-current="page"] .bnav-avatar .avatar { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--g); }
@media (max-width: 380px) { .top .brand span:last-child { display: none; } }

.hello { background: #fff; border-bottom: 1px solid var(--bd); }
.hello .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.hello-me { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; min-width: 0; }
.hello-me small, .hello-chip small { display: block; font-size: 12px; color: var(--muted); line-height: 1.2; }
.hello-me b { display: block; font-size: 17px; line-height: 1.25; }
.hello-actions { display: flex; gap: 8px; }
.hello-chip { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 14px; background: var(--g-soft); color: var(--text); text-decoration: none !important; }
.hello-chip .ico { width: 30px; height: 30px; padding: 5px; border-radius: 10px; background: var(--grad); color: #fff; }
.hello-chip b { font-size: 15px; }

.gt-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(92px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.gt-rail::-webkit-scrollbar { display: none; }
.gt-item { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; color: var(--text); text-decoration: none !important; padding: 10px 6px; border-radius: var(--r); background: #fff; border: 1px solid var(--bd); }
.gt-item:hover { border-color: #9AE8BD; box-shadow: 0 6px 18px rgba(6, 199, 85, .15); }
.gt-icon { width: 64px; height: 64px; border-radius: 18px; overflow: hidden; background: var(--dark); }
.gt-icon img, .gt-icon .img-empty { width: 100%; height: 100%; object-fit: cover; }
.gt-item b { font-size: 14px; line-height: 1.3; }
.gt-item small { font-size: 12px; color: var(--g-text); }

.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 8px; }
.pack { position: relative; cursor: pointer; }
.pack input { position: absolute; opacity: 0; pointer-events: none; }
.pack-body { position: relative; display: flex; flex-direction: column; gap: 2px; min-height: 84px; padding: 12px; border-radius: 14px; border: 2px solid var(--bd); background: #fff; }
.pack-body b { font-size: 16px; }
.pack-body .price { font-size: 17px; }
.pack-body small { font-size: 12px; }
.pack-badge { position: absolute; top: -9px; right: 8px; }
.pack input:checked + .pack-body { border-color: var(--g); background: var(--g-soft); box-shadow: 0 6px 18px rgba(6, 199, 85, .2); }
.pack input:focus-visible + .pack-body { outline: 3px solid var(--g); outline-offset: 2px; }

.fb-box { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fb-box iframe { width: 100%; max-width: 500px; box-shadow: var(--shadow); }
.fb-fallback { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 500px; padding: 14px 16px; border-radius: var(--r); background: #fff; border: 1px solid var(--bd); color: var(--text); text-decoration: none !important; }
.fb-fallback span:nth-child(2) { flex: 1; min-width: 0; }
.fb-fallback b { display: block; } .fb-fallback small { color: var(--muted); font-size: 13px; }
.fb-mark { width: 44px; height: 44px; flex: none; border-radius: 12px; background: #1877F2; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 26px; font-family: Arial, sans-serif; }
.fb-box.loaded .fb-fallback { padding: 10px 14px; }

/* =========================================================
   v2.3: เปิดกล่องแบบ CS:GO · สิทธิ์หมุนฟรี · ป้ายกิจกรรม
   ========================================================= */
.free-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: linear-gradient(135deg, #FFF7D6, #FFE9A8); color: #7A4B00; font-weight: 500; margin: 10px auto 0; }
.free-pill .ico { color: #D97706; }
.free-pill small { color: #92400E; font-weight: 400; }
.free-pill.big { margin: 0 0 14px; font-size: 16px; }
.wheel-cover { position: relative; }
.act-tags { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }

.case-stage { position: relative; padding-top: 52px; }
.case-stage .sound-btn { top: 0; }
.case-window { position: relative; height: 176px; border-radius: 20px; overflow: hidden; cursor: pointer; background: radial-gradient(120% 140% at 50% 0%, #1E2B24 0%, #0B120E 70%); box-shadow: inset 0 0 0 2px rgba(255,255,255,.06), 0 14px 30px rgba(1, 40, 18, .35); }
.case-window::before, .case-window::after { content: ""; position: absolute; top: 0; bottom: 0; width: 18%; z-index: 2; pointer-events: none; }
.case-window::before { left: 0; background: linear-gradient(90deg, #0B120E, transparent); }
.case-window::after { right: 0; background: linear-gradient(-90deg, #0B120E, transparent); }
.case-reel { position: absolute; left: 0; top: 14px; bottom: 14px; display: flex; will-change: transform; }
.case-item { flex: none; width: 128px; margin: 0 6px; border-radius: 14px; background: linear-gradient(180deg, #26332B, #18221C); border-bottom: 5px solid #9CA3AF; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #fff; text-align: center; padding: 8px 6px; box-sizing: border-box; transition: transform .25s, box-shadow .25s; }
.case-item img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; pointer-events: none; }
.case-item span { font-size: 13px; font-weight: 600; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-noimg { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.08); }
.case-noimg .ico { width: 40px; height: 40px; }
.case-item.r-rare { border-bottom-color: #3B82F6; background: linear-gradient(180deg, #1E2A44, #151E33); }
.case-item.r-epic { border-bottom-color: #A855F7; background: linear-gradient(180deg, #2E1E44, #201433); }
.case-item.r-legendary { border-bottom-color: #F59E0B; background: linear-gradient(180deg, #4A3612, #2E210A); }
.case-item.won { transform: scale(1.08); box-shadow: 0 0 0 3px #FDE68A, 0 0 24px rgba(253, 230, 138, .7); }
.case-marker { position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; margin-left: -2px; z-index: 3; background: #F59E0B; box-shadow: 0 0 12px rgba(245, 158, 11, .9); transform-origin: 50% 0; }
.case-marker::before, .case-marker::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); border-left: 12px solid transparent; border-right: 12px solid transparent; }
.case-marker::before { top: 0; border-top: 16px solid #F59E0B; }
.case-marker::after { bottom: 0; border-bottom: 16px solid #F59E0B; }
.case-marker.flick { animation: none; }
@media (max-width: 639px) { .case-item { width: 100px; } .case-item img, .case-noimg { width: 64px; height: 64px; } .case-window { height: 150px; } }
.free-chip { background: linear-gradient(135deg, #FFF7D6, #FFE9A8); }
.free-chip .ico { background: linear-gradient(135deg, #FBBF24, #D97706); }
.hello-actions { flex-wrap: wrap; }
@media (max-width: 520px) { .hello-actions { width: 100%; } .hello-chip { flex: 1 1 0; min-width: 0; padding-right: 8px; } .hello-chip b { font-size: 14px; white-space: nowrap; } }

/* =========================================================
   v2.5: แบนเนอร์สไลด์ด้านบน · โหมดประหยัด (ค่าเริ่มต้น)
   ========================================================= */
.bnr-wrap { padding-top: 12px; }
.bnr { position: relative; margin: 0 0 14px; border-radius: 18px; overflow: hidden; background: var(--g-soft); box-shadow: var(--shadow); }
.bnr-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.bnr-track::-webkit-scrollbar { display: none; }
.bnr-track:focus-visible { outline: 3px solid var(--g); outline-offset: -3px; }
.bnr-slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 4 / 1; max-height: 300px; display: block; }
.bnr-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) { .bnr { border-radius: 14px; } .bnr-slide.has-m { aspect-ratio: 2 / 1; max-height: 34vh; } }
.bnr-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 999px; border: 0; background: rgba(255,255,255,.9); color: #111; font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.bnr-nav.prev { left: 10px; } .bnr-nav.next { right: 10px; }
.bnr:hover .bnr-nav, .bnr-nav:focus-visible { opacity: 1; }
@media (hover: none) { .bnr-nav { display: none; } }
.bnr-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 2px; }
.bnr-dots button { width: 24px; height: 24px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.bnr-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.6); box-shadow: 0 0 0 1px rgba(0,0,0,.15); transition: width .2s, background .2s; }
.bnr-dots button[aria-current="true"]::before { width: 20px; background: #fff; }
.wrap > .bnr:first-child { margin-top: 4px; }

.lite-toggle { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; border: 1px solid var(--bd); background: #fff; color: var(--text); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; min-height: 40px; }
.lite-toggle b { color: var(--g-text); }
.lite-sw { width: 30px; height: 18px; border-radius: 99px; background: #C9CDD3; position: relative; transition: background .2s; }
.lite-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 99px; background: #fff; transition: transform .2s; }
.lite-toggle[aria-pressed="true"] .lite-sw { background: var(--g); }
.lite-toggle[aria-pressed="true"] .lite-sw::after { transform: translateX(12px); }
.lite-hint { color: var(--muted); font-size: 12px; }
.fb-load { margin-top: 4px; }

/* โหมดประหยัด: ตัดของตกแต่งและแอนิเมชันที่วิ่งตลอด (ประหยัดเน็ตและแบต) */
.lite .hero-glow, .lite .wheel-promo::after { display: none; }
.lite .chat-fab-icon::before { animation: none; }
.lite .win-rays { animation-duration: 0s; }
.lite .btn-g, .lite .chip, .lite .game, .lite .pcard { transition: none; }

/* =========================================================
   v2.6: การ์ดกิจกรรมสุ่มหน้าแรก (แบนเนอร์สี่เหลี่ยมจัตุรัส)
   ========================================================= */
.act-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .act-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .act-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.act-card { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--bd); color: var(--text); text-decoration: none !important; transition: transform .15s, box-shadow .2s, border-color .2s; }
.act-card:hover { transform: translateY(-2px); border-color: #9AE8BD; box-shadow: 0 10px 26px rgba(6, 199, 85, .18); }
.act-img { position: relative; aspect-ratio: 1 / 1; background: var(--grad-deep); overflow: hidden; }
.act-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.act-ph { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.act-ph .ico { width: 56px; height: 56px; }
.act-img .act-tags { position: absolute; left: 8px; top: 8px; right: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.act-time { position: absolute; right: 8px; bottom: 8px; background: rgba(1, 30, 14, .78); color: #fff; font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 999px; }
.act-body { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; padding: 10px 12px 12px; }
.act-body b { grid-column: 1 / -1; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.act-price { font-weight: 600; color: var(--g-text); font-size: 15px; white-space: nowrap; }
.act-price small { color: var(--muted); font-weight: 400; font-size: 12px; }
.act-cta { padding-inline: 12px; min-height: 34px; font-size: 14px; }
@media (max-width: 640px) { .act-body { grid-template-columns: 1fr; gap: 4px; } .act-cta { width: 100%; margin-top: 4px; } }

/* =========================================================
   v2.7: ปุ่มเข้าสู่ระบบแต่ละช่องทาง · หน้าบัญชี
   ========================================================= */
.login-btn { position: relative; justify-content: center; font-weight: 600; }
.login-mark { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); min-width: 30px; height: 30px; padding: 0 6px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 15px; font-family: Arial, sans-serif; }
.login-line { background: #06C755; color: #fff; } .login-line .login-mark { background: #fff; color: #06C755; font-size: 10px; }
.login-google { background: #fff; color: #1F1F1F; border: 1px solid #C9CDD3; } .login-google:hover { background: #F6F8FA; } .login-google .login-mark { background: #F1F3F4; color: #4285F4; }
.login-fb { background: #1877F2; color: #fff; } .login-fb:hover { background: #166FE0; } .login-fb .login-mark { background: #fff; color: #1877F2; font-size: 20px; }
.acc-list { list-style: none; margin: 0; padding: 0; }
.acc-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--bd); }
.acc-list li:last-child { border-bottom: 0; }
.acc-list .login-mark { position: static; transform: none; flex: none; }
.acc-list .acc-txt { flex: 1; min-width: 0; }
.acc-list .acc-txt small { display: block; color: var(--muted); }
