/* =====================================================================
   ธีมขาว (หน้าผู้เล่นทุกหน้า) — เปิดเมื่อ <html> มีคลาส sm-light (ปุ่มพระอาทิตย์/พระจันทร์ บนแถบบน)
   ใส่ต่อจาก sm-clean.css โดย src/assets.js · ค่าเริ่มต้นของเว็บยังเป็นธีมเข้ม
   หลักการ: เปลี่ยนตัวแปรสีของธีมเดิม (soft / neon / esx) ก่อน แล้วค่อยทับจุดที่เขียนสีเข้มตายตัวไว้
   ===================================================================== */

/* ---------- ปุ่มสลับธีม: ธีมเข้มโชว์พระอาทิตย์ (กดไปขาว) · ธีมขาวโชว์พระจันทร์ ---------- */
html:not(#c1):not(#c2):not(#c3) .theme-btn:not([hidden]) {
  display: inline-grid !important;
  place-items: center;
}

html:not(#c1):not(#c2):not(#c3) .theme-btn .moon {
  display: none !important;
}

html:not(#c1):not(#c2):not(#c3) .theme-btn .sun {
  display: block !important;
}

html.sm-light:not(#c1):not(#c2):not(#c3) .theme-btn .moon {
  display: block !important;
}

html.sm-light:not(#c1):not(#c2):not(#c3) .theme-btn .sun {
  display: none !important;
}

/* ---------- ตัวแปรสี ---------- */
html.sm-light:not(#c1):not(#c2):not(#c3) {
  color-scheme: light;
  --bg: #f6f3f7;
  --surface: #ffffff;
  --surface-2: #f4eff5;
  --line: rgba(28, 22, 34, 0.09);
  --line-2: rgba(28, 22, 34, 0.15);
  --border: rgba(28, 22, 34, 0.1);
  --text: #1c1622;
  --muted: #5f5669;
  --faint: #8f8697;
  --accent: #d9539f;
  --accent-rgb: 217, 83, 159;
  --accent-soft: rgba(217, 83, 159, 0.1);
  --bg-rgb: 246, 243, 247;
  --surface-rgb: 255, 255, 255;
  --fg-rgb: 28, 22, 34;
  --card: #ffffff;
  --card-solid: #ffffff;
  --card-2: rgba(28, 22, 34, 0.04);
  --card-brd: rgba(28, 22, 34, 0.08);
  --soft-shadow: 0 18px 40px -26px rgba(60, 30, 70, 0.35);
  --pop-shadow: 0 24px 50px -24px rgba(60, 30, 70, 0.4);
  --edit-btn: rgba(28, 22, 34, 0.06);
  --check-active: rgba(217, 83, 159, 0.1);
  --p-pink: rgba(217, 83, 159, 0.1); --p-pink-ink: #c03f8a;
  --p-blue: rgba(47, 127, 196, 0.1); --p-blue-ink: #2f7fc4;
  --p-lav: rgba(124, 92, 214, 0.1); --p-lav-ink: #6a4fc4;
  --p-mint: rgba(25, 150, 112, 0.1); --p-mint-ink: #178a67;
  --p-peach: rgba(214, 104, 64, 0.1); --p-peach-ink: #c25a33;
  --p-butter: rgba(196, 140, 20, 0.12); --p-butter-ink: #a3740d;
  --ok: #178a67; --ok-soft: rgba(25, 150, 112, 0.1);
  --warn: #a3740d; --warn-soft: rgba(196, 140, 20, 0.12);
  --danger: #d13a62; --danger-soft: rgba(209, 58, 98, 0.1);
  --ex-pill: #f5eef5;
  --ex-field: rgba(28, 22, 34, 0.05);
  --ex-field-h: rgba(28, 22, 34, 0.08);
  --ex-overlay: linear-gradient(180deg, rgba(242, 147, 212, 0.08) 0%, rgba(110, 187, 247, 0.08) 100%);
  --nx-row: rgba(28, 22, 34, 0.04);
  --nx-row-h: rgba(28, 22, 34, 0.07);
  --nx-panel-fill: #ffffff;
  --nx-glow: 0 18px 40px -26px rgba(60, 30, 70, 0.35);
  --nx-text-grad: linear-gradient(90deg, #1c1622 35%, #d9539f 75%, #2f7fc4);
}

html.sm-light:not(#c1):not(#c2):not(#c3) body {
  background-color: #f6f3f7 !important;
  background-image:
    radial-gradient(900px 560px at 0% 0%, rgba(242, 147, 212, 0.16), transparent 62%),
    radial-gradient(900px 600px at 100% 20%, rgba(110, 187, 247, 0.14), transparent 62%) !important;
  color: #1c1622;
}

/* ---------- แถบบน ---------- */
html.sm-light:not(#c1):not(#c2):not(#c3) header.nav {
  background: rgba(255, 255, 255, 0.85) !important;
  border-bottom-color: rgba(28, 22, 34, 0.08) !important;
}

html.sm-light:not(#c1):not(#c2):not(#c3) .vn-top,
html.sm-light:not(#c1):not(#c2):not(#c3) .vt-tos {
  color: #5f5669 !important;
}

html.sm-light:not(#c1):not(#c2):not(#c3) .vn-top:hover,
html.sm-light:not(#c1):not(#c2):not(#c3) .vn-grp.open > .vn-top,
html.sm-light:not(#c1):not(#c2):not(#c3) .vn-top.on,
html.sm-light:not(#c1):not(#c2):not(#c3) .vn-grp.on > .vn-top,
html.sm-light:not(#c1):not(#c2):not(#c3) .vt-tos:hover {
  color: #1c1622 !important;
}

html.sm-light:not(#c1):not(#c2):not(#c3) .vn-dd {
  background: #fff;
  border-color: rgba(28, 22, 34, 0.08);
  box-shadow: 0 24px 50px -24px rgba(60, 30, 70, 0.35);
}

html.sm-light:not(#c1):not(#c2):not(#c3) .vn-di {
  color: #1c1622;
}

html.sm-light:not(#c1):not(#c2):not(#c3) .vn-di:hover {
  background: rgba(28, 22, 34, 0.04);
}

html.sm-light:not(#c1):not(#c2):not(#c3) .vn-dtx small {
  color: #8f8697;
}

html.sm-light:not(#c1):not(#c2):not(#c3) .vn-dic {
  color: #d9539f;
}

html.sm-light:not(#c1):not(#c2):not(#c3) .vt-search,
html.sm-light:not(#c1):not(#c2):not(#c3) .vt-live,
html.sm-light:not(#c1):not(#c2):not(#c3) .lang-sw,
html.sm-light:not(#c1):not(#c2):not(#c3) .ubtn,
html.sm-light:not(#c1):not(#c2):not(#c3) .theme-btn {
  border: 1px solid rgba(28, 22, 34, 0.1) !important;
  background: #fff !important;
  color: #1c1622 !important;
}

html.sm-light:not(#c1):not(#c2):not(#c3) .vt-search span,
html.sm-light:not(#c1):not(#c2):not(#c3) .vt-live span {
  color: #5f5669 !important;
}

html.sm-light:not(#c1):not(#c2):not(#c3) .vt-live b {
  color: #1c1622 !important;
}

html.sm-light:not(#c1):not(#c2):not(#c3) .lang-sw button {
  color: #8f8697 !important;
}

html.sm-light:not(#c1):not(#c2):not(#c3) .lang-sw button.on {
  background: #f4eff5 !important;
  color: #1c1622 !important;
  box-shadow: inset 0 0 0 1px rgba(28, 22, 34, 0.12) !important;
}

/* แถบแท็บล่าง (มือถือ) */
html.sm-light:not(#c1):not(#c2):not(#c3) .vbar {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(28, 22, 34, 0.08) !important;
}

/* ---------- การ์ด / กล่องทั่วไป (ธีม esx ใส่พื้นดำตายตัวไว้) ---------- */
html.sm-light:not(#c1):not(#c2):not(#c3) .nx-panel,
html.sm-light:not(#c1):not(#c2):not(#c3) .card,
html.sm-light:not(#c1):not(#c2):not(#c3) .p-card,
html.sm-light:not(#c1):not(#c2):not(#c3) .dialog,
html.sm-light:not(#c1):not(#c2):not(#c3) .ux-sheet,
html.sm-light:not(#c1):not(#c2):not(#c3) .rl-sec,
html.sm-light:not(#c1):not(#c2):not(#c3) .rl-adminbar,
html.sm-light:not(#c1):not(#c2):not(#c3) .rl-dlg,
html.sm-light:not(#c1):not(#c2):not(#c3) .ai-box,
html.sm-light:not(#c1):not(#c2):not(#c3) .e-card,
html.sm-light:not(#c1):not(#c2):not(#c3) .v-card,
html.sm-light:not(#c1):not(#c2):not(#c3) .sm-panel,
html.sm-light:not(#c1):not(#c2):not(#c3) .sm-hero,
html.sm-light:not(#c1):not(#c2):not(#c3) .g-card,
html.sm-light:not(#c1):not(#c2):not(#c3) .wf-tier .wf-title,
html.sm-light:not(#c1):not(#c2):not(#c3) .wf-dlg,
html.sm-light:not(#c1):not(#c2):not(#c3) .ux-tilt,
html.sm-light:not(#c1):not(#c2):not(#c3) .g-hello,
html.sm-light:not(#c1):not(#c2):not(#c3) .rm-card,
html.sm-light:not(#c1):not(#c2):not(#c3) .vc-box,
html.sm-light:not(#c1):not(#c2):not(#c3) .udrop,
html.sm-light:not(#c1):not(#c2):not(#c3) .pdrop,
html.sm-light:not(#c1):not(#c2):not(#c3) .vs-panel {
  border: 1px solid rgba(28, 22, 34, 0.08) !important;
  background: #fff !important;
  box-shadow: 0 18px 40px -26px rgba(60, 30, 70, 0.3) !important;
  color: #1c1622;
}

/* หัวข้อไล่สี: เดิมเริ่มจากขาว → เปลี่ยนให้เริ่มจากสีเข้ม */
html.sm-light:not(#c1):not(#c2):not(#c3) .p-head h1,
html.sm-light:not(#c1):not(#c2):not(#c3) .wf-head h1,
html.sm-light:not(#c1):not(#c2):not(#c3) .rl-hero h1,
html.sm-light:not(#c1):not(#c2):not(#c3) .ux-hero-tx h1,
html.sm-light:not(#c1):not(#c2):not(#c3) .nx-grad,
html.sm-light:not(#c1):not(#c2):not(#c3) .g-l2 {
  background: linear-gradient(90deg, #1c1622 35%, #d9539f 75%, #2f7fc4) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

html.sm-light:not(#c1):not(#c2):not(#c3) h1,
html.sm-light:not(#c1):not(#c2):not(#c3) h2,
html.sm-light:not(#c1):not(#c2):not(#c3) h3,
html.sm-light:not(#c1):not(#c2):not(#c3) h4 {
  color: #1c1622;
}

/* ป้ายหัวข้อเล็ก (แคปซูลชมพู) */
html.sm-light:not(#c1):not(#c2):not(#c3) .p-eyebrow,
html.sm-light:not(#c1):not(#c2):not(#c3) .rl-eyebrow,
html.sm-light:not(#c1):not(#c2):not(#c3) .g-eyebrow,
html.sm-light:not(#c1):not(#c2):not(#c3) .ux-kicker,
html.sm-light:not(#c1):not(#c2):not(#c3) .sec-h {
  background: rgba(217, 83, 159, 0.09) !important;
  color: #c03f8a !important;
}

html.sm-light:not(#c1):not(#c2):not(#c3) .perks .n {
  background: #f4eff5 !important;
}

/* ---------- ท้ายเว็บ ---------- */
html.sm-light:not(#c1):not(#c2):not(#c3) .sitefoot {
  border-top-color: rgba(28, 22, 34, 0.08) !important;
  color: #5f5669 !important;
}

html.sm-light:not(#c1):not(#c2):not(#c3) .sitefoot a,
html.sm-light:not(#c1):not(#c2):not(#c3) .sitefoot .copy b {
  color: #1c1622 !important;
}

/* ---------- หน้าแรก /home (home.css) ---------- */
html.sm-light:not(#c1):not(#c2):not(#c3) #home {
  --hm-card: #ffffff;
  --hm-line: rgba(28, 22, 34, 0.08);
  --hm-muted: #5f5669;
}

html.sm-light:not(#c1):not(#c2):not(#c3) #home .hm-hero-bg {
  background:
    radial-gradient(50% 55% at 50% 50%, rgba(5, 4, 6, 0.4), transparent 75%),
    linear-gradient(180deg, rgba(5, 4, 6, 0.3) 0%, rgba(5, 4, 6, 0.2) 40%, rgba(246, 243, 247, 0.6) 82%, #f6f3f7 100%),
    url('/img/smoothiecommunitylaoding.jpg') 50% 22% / cover no-repeat;
}

html.sm-light:not(#c1):not(#c2):not(#c3) #home .hm-st {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px -26px rgba(60, 30, 70, 0.3);
}

html.sm-light:not(#c1):not(#c2):not(#c3) #home .hm-st b {
  background: linear-gradient(90deg, #d9539f, #2f7fc4);
  -webkit-background-clip: text;
  background-clip: text;
}

html.sm-light:not(#c1):not(#c2):not(#c3) #home .hm-q,
html.sm-light:not(#c1):not(#c2):not(#c3) #home .hm-card {
  color: #1c1622;
  box-shadow: 0 18px 40px -28px rgba(60, 30, 70, 0.25);
}

html.sm-light:not(#c1):not(#c2):not(#c3) #home .hm-qgo {
  color: rgba(28, 22, 34, 0.3);
}

html.sm-light:not(#c1):not(#c2):not(#c3) #home .hm-sechd h2,
html.sm-light:not(#c1):not(#c2):not(#c3) #home .g-galsec .g-sechd h2,
html.sm-light:not(#c1):not(#c2):not(#c3) #home .hm-chd h3 {
  color: #1c1622;
}

html.sm-light:not(#c1):not(#c2):not(#c3) #home .hm-uhead,
html.sm-light:not(#c1):not(#c2):not(#c3) #home .hm-rules a {
  background: #f6f3f7;
  color: #1c1622;
}

html.sm-light:not(#c1):not(#c2):not(#c3) #home .hm-rules a:hover {
  background: rgba(217, 83, 159, 0.08);
}

html.sm-light:not(#c1):not(#c2):not(#c3) #home .hm-ai {
  background: linear-gradient(135deg, rgba(242, 147, 212, 0.18), rgba(110, 187, 247, 0.16)), #fff;
}

html.sm-light:not(#c1):not(#c2):not(#c3) #home .hm-more,
html.sm-light:not(#c1):not(#c2):not(#c3) #home .hm-ai small,
html.sm-light:not(#c1):not(#c2):not(#c3) #home .hm-qic {
  color: #c03f8a;
}

html.sm-light:not(#c1):not(#c2):not(#c3) #home .hm-q:hover .hm-qic {
  color: #141118;
}

/* ---------- หน้า /tos (tos.css) ---------- */
html.sm-light:not(#c1):not(#c2):not(#c3) .tos-body {
  color: #1c1622;
  background: #f6f3f7;
  color-scheme: light;
}

html.sm-light:not(#c1):not(#c2):not(#c3) .tos-body::before {
  background:
    linear-gradient(180deg, rgba(246, 243, 247, 0.85), rgba(246, 243, 247, 0.94)),
    url('/img/smoothiecommunitylaoding.jpg') 50% 30% / cover no-repeat;
}

html.sm-light:not(#c1):not(#c2):not(#c3) .tos-hero-bg {
  background:
    radial-gradient(55% 60% at 50% 55%, rgba(5, 4, 6, 0.45), transparent 75%),
    linear-gradient(180deg, rgba(5, 4, 6, 0.1) 0%, rgba(5, 4, 6, 0.3) 45%, rgba(246, 243, 247, 0.7) 82%, #f6f3f7 100%),
    url('/img/smoothiecommunitylaoding.jpg') 50% 20% / cover no-repeat;
}

html.sm-light:not(#c1):not(#c2):not(#c3) .tos-layout {
  background: #fff;
  box-shadow: 0 30px 70px -40px rgba(60, 30, 70, 0.4);
}

html.sm-light:not(#c1):not(#c2):not(#c3) .tos-doc h2,
html.sm-light:not(#c1):not(#c2):not(#c3) .tos-doc b,
html.sm-light:not(#c1):not(#c2):not(#c3) .tos-faq summary {
  color: #1c1622;
}

html.sm-light:not(#c1):not(#c2):not(#c3) .tos-doc p,
html.sm-light:not(#c1):not(#c2):not(#c3) .tos-doc ul {
  color: #4f4659;
}

html.sm-light:not(#c1):not(#c2):not(#c3) .tos-doc h3,
html.sm-light:not(#c1):not(#c2):not(#c3) .tos-doc a,
html.sm-light:not(#c1):not(#c2):not(#c3) .tos-faq summary::after {
  color: #c03f8a;
}

html.sm-light:not(#c1):not(#c2):not(#c3) .tos-doc section + section {
  border-top-color: rgba(28, 22, 34, 0.08);
}

html.sm-light:not(#c1):not(#c2):not(#c3) .tos-faq {
  border-color: rgba(28, 22, 34, 0.08);
  background: #faf8fb;
}

html.sm-light:not(#c1):not(#c2):not(#c3) .tos-faq[open] {
  background: rgba(242, 147, 212, 0.08);
}

html.sm-light:not(#c1):not(#c2):not(#c3) .tos-faq summary::after {
  border-color: rgba(28, 22, 34, 0.15);
}

html.sm-light:not(#c1):not(#c2):not(#c3) .tos-lang,
html.sm-light:not(#c1):not(#c2):not(#c3) .tos-theme {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(28, 22, 34, 0.1) !important;
  color: #1c1622 !important;
}

html.sm-light:not(#c1):not(#c2):not(#c3) .tos-body .sitefoot {
  color: #5f5669 !important;
}

/* ---------- หน้า /verify (verify.css) ---------- */
html.sm-light:not(#c1):not(#c2):not(#c3) .vf-body .vf-bg {
  background:
    linear-gradient(180deg, rgba(246, 243, 247, 0.55) 0%, rgba(246, 243, 247, 0.8) 55%, #f6f3f7 100%),
    url('/img/smoothiecommunitylaoding.jpg') 50% 25% / cover no-repeat;
}

html.sm-light:not(#c1):not(#c2):not(#c3) .vf-body #app.card {
  box-shadow: 0 40px 80px -40px rgba(60, 30, 70, 0.45) !important;
}

html.sm-light:not(#c1):not(#c2):not(#c3) .vf-body .tile,
html.sm-light:not(#c1):not(#c2):not(#c3) .vf-body .add-steam,
html.sm-light:not(#c1):not(#c2):not(#c3) .vf-body .chip {
  background: #f6f3f7 !important;
  color: #1c1622 !important;
}

html.sm-light:not(#c1):not(#c2):not(#c3) .vf-body .tile .name,
html.sm-light:not(#c1):not(#c2):not(#c3) .vf-body .tos-ack {
  color: #1c1622 !important;
}

html.sm-light:not(#c1):not(#c2):not(#c3) .vf-body .tile .sub,
html.sm-light:not(#c1):not(#c2):not(#c3) .vf-body .steps .step span {
  color: #5f5669 !important;
}

html.sm-light:not(#c1):not(#c2):not(#c3) .vf-body .btn.primary {
  color: #1c1622 !important;
}
