/* หน้าแรก V3 แบบร่าง · ส่วนที่ 1/3: โทเคน หัวเว็บ ปุ่ม hero intro ลองกด
   ลอกระยะ สี ฟอนต์ จังหวะเคลื่อนไหวจากเว็บต้นแบบ (เจ้าของสั่ง 23 พ.ย. 2569) แล้วค่อยปรับเป็นของเราภายหลัง */
.w3 {
  --bg: #fff; --bg-soft: #f5f5f5; --navy: #131922;
  --ink: #2b313b; --ink-card: #171717; --ink-2: #50555e; --ink-3: #737373; --ink-soft: #8d9197;
  --exp-bg: #e5eeff; --exp-ink: #1747c9; --money-bg: #fff2cf; --money-ink: #7a5200;
  --dark: #0b0f17; --dark-card: #141a25; --dark-line: #ffffff17;
  --on-dark: #fff; --on-dark-2: #ffffffb8; --on-dark-soft: #ffffff80;
  --bezel: #1b1f27; --base-1: #e4e7eb; --base-2: #c6cbd2; --check: #22c55e;
  --note-green: #dbe7ff; --note-purple: #fff2cf; --note-coral: #e5eeff; --note-yellow: #fde19a; --note-teal: #f1f5ff;
  --gold: #f5b82e; --bonus-ink: #fde68a; --bonus-soft: #f5b82e1a; --bonus-line: #f5b82e52;
  --dot-red: #ff5f57; --dot-yellow: #febc2e; --dot-green: #28c840;
  --btn: #151a23; --btn-hover: #2b313b; --on-btn: #fff; --line: #17171714;
  --glass: #fff9; --glass-bar: #ffffffb8; --focus: #0074e2;
  --g1: #8ab4ff; --g2: #d6e4ff; --g3: #ffe08a; --g4: #f5b82e; --g5: #e09a00;
  --os-deep: #0046fc; --os-blue: #005bfd; --os-sky: #207dfc; --os-violet: #4f8dff; --os-lilac: #82bcff; --os-glass: #d3dfff;
  --os-logo: linear-gradient(90deg, var(--os-deep) 0%, var(--os-blue) 30%, var(--os-sky) 52%, var(--os-violet) 78%, var(--os-lilac) 100%);
  --t-blue: #3b82f6; --t-blue-deep: #1e3a8a; --t-blue-soft: #dbeafe; --t-blue-ink: #1d4ed8;
  --t-amber: #fbbf24; --t-amber-soft: #fef3c7; --t-amber-ink: #b45309;
  --t-teal: #2dd4bf; --t-teal-soft: #ccfbf1; --t-teal-ink: #0f766e;
  --t-pink: #f472b6; --t-pink-soft: #fce7f3; --t-pink-ink: #be185d;
  --shadow-sm: 0 2px 4px #00000014;
  --shadow-card: 0 2.5px 5px #0f172a0f, 0 12.6px 18px #0f172a1a;
  --ease-in: cubic-bezier(.16, 1, .3, 1); --ease-ui: cubic-bezier(.22, 1, .36, 1);
  --ease-morph: cubic-bezier(.33, 0, .2, 1); --ease-hover: cubic-bezier(.4, 0, .2, 1);
  --copy-at: 50ms; --burst-at: .3s; --chrome-at: 1s;
  --font: "Google Sans", system-ui, sans-serif; --hand: "Playpen Sans Thai", cursive;
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.w3 *, .w3 *::before, .w3 *::after { box-sizing: border-box; }
/* รีเซ็ตใส่ :where() ให้ความเฉพาะเป็นศูนย์ — คลาสของแต่ละส่วนจะชนะเสมอ */
:where(.w3) :where(h1, h2, h3, h4, p, ul, ol, figure, blockquote) { margin: 0; padding: 0; }
:where(.w3) :where(ul, ol) { list-style: none; }
:where(.w3) a { color: inherit; text-decoration: none; }
:where(.w3) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:where(.w3) img { display: block; max-width: 100%; }
html:has(.w3) { scroll-behavior: smooth; }
.w3 :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.w3 .ic { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.w3-nowrap { white-space: nowrap; }
.w3-chip { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 20px; }
.w3-chip.is-rose { background: #ffe4e6; color: #be123c; }
.w3-chip.is-teal { background: #ccfbf1; color: #0f766e; }
.w3-chip.is-sky { background: #e0f2fe; color: #0369a1; }

/* ── หัวเว็บ ── */
.w3-nav-wrap { z-index: 50; pointer-events: none; animation: w3-fade-in .6s ease var(--chrome-at) backwards; display: flex; justify-content: center; padding: 0 16px; position: fixed; inset: 16px 0 auto; }
.w3-nav { pointer-events: auto; width: min(984px, 100%); height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px; border-radius: 32px; background: transparent;
  transition: background-color .68s var(--ease-morph), box-shadow .68s var(--ease-morph), backdrop-filter .68s var(--ease-morph); }
.w3-nav[data-scrolled="true"] { background: var(--glass-bar); box-shadow: 0 0 0 1px var(--line); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); }
.w3-nav[data-tone="dark"][data-scrolled="true"] { background: #141a25b8; box-shadow: 0 0 0 1px var(--dark-line); }
.w3-pill { height: 48px; display: flex; align-items: center; gap: 4px; padding: 0 6px; border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background-color .68s var(--ease-morph), backdrop-filter .68s var(--ease-morph); }
.w3-pill.is-logo { gap: 8px; padding: 0 18px 0 14px; }
.w3-logo-mark { display: grid; }
.w3-logo-name { font-size: 18px; font-weight: 700; color: var(--ink); white-space: nowrap; transition: color .4s var(--ease-hover); }
.w3-nav[data-tone="dark"] .w3-logo-name { color: var(--on-dark); }
.w3-pill.is-logo img { grid-area: 1 / 1; align-self: center; height: 32px; width: auto; transition: opacity .4s var(--ease-hover); }
.w3-pill.is-logo .is-dark, .w3-nav[data-tone="dark"] .w3-pill.is-logo .is-light { opacity: 0; }
.w3-nav[data-tone="dark"] .w3-pill.is-logo .is-dark { opacity: 1; }
.w3-nav[data-scrolled="true"] .w3-pill { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.w3-nav[data-tone="dark"] .w3-pill { background: #141a2599; }
.w3-nav[data-tone="dark"][data-scrolled="true"] .w3-pill { background: transparent; }
.w3-nav-link { height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap;
  transition: background-color .24s var(--ease-hover), color .4s var(--ease-hover); }
.w3-nav-link:hover { background: var(--line); }
.w3-nav[data-tone="dark"] .w3-nav-link { color: var(--on-dark); }
.w3-nav[data-tone="dark"] .w3-nav-link:hover { background: var(--dark-line); }
.w3-nav-cta { display: inline-flex; overflow: hidden; max-width: 0; opacity: 0; white-space: nowrap; border-radius: 999px; clip-path: inset(0 100% 0 0 round 999px);
  transition: max-width .68s var(--ease-morph), opacity .2s var(--ease-morph), clip-path .98s var(--ease-morph); }
.w3-nav[data-scrolled="true"] .w3-nav-cta { max-width: 12rem; opacity: 1; clip-path: inset(0 round 999px); }
.w3-btn { height: 40px; display: inline-flex; align-items: center; padding: 0 20px; border-radius: 999px; background: var(--btn); color: var(--on-btn); font-size: 15px; font-weight: 500; white-space: nowrap; transition: background-color .24s var(--ease-hover); }
.w3-btn:hover { background: var(--btn-hover); }
.w3-nav[data-tone="dark"] .w3-btn { background: var(--on-dark); color: var(--btn); }

/* ── ปุ่มหลัก: ขอบฟ้า-ทองวิ่งรอบ ── */
.w3-cta { position: relative; height: 50px; display: inline-flex; justify-content: center; align-items: center; margin-top: 36px; padding: 0 26px; border-radius: 999px; color: var(--on-btn); font-size: 16px; font-weight: 500; }
.w3-cta-comet { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; clip-path: inset(0 round 999px); pointer-events: none; }
.w3-cta-spin { position: absolute; top: 50%; left: 50%; width: 160%; aspect-ratio: 1; margin: -80% 0 0 -80%; animation: w3-spin 3.333s linear infinite;
  background: conic-gradient(transparent 0 58%, var(--g1) 70%, var(--g2) 77%, var(--g3) 85%, var(--g5) 93%, transparent 100%); }
.w3-cta-face { position: absolute; inset: 2px; border-radius: inherit; background: var(--btn); transition: background-color .24s var(--ease-hover); }
.w3-cta:hover .w3-cta-face { background: var(--btn-hover); }
.w3-cta-label { position: relative; }
.w3-cta.is-light { color: var(--btn); }
.w3-cta.is-light .w3-cta-face { background: var(--on-dark); }
.w3-cta.is-light:hover .w3-cta-face { background: var(--glass-bar); }
.w3-cta.is-large { height: 58px; margin-top: 32px; padding: 0 44px; font-size: 18px; font-weight: 600; }

/* ── Hero ── */
.w3-hero-track { position: relative; height: 100svh; }
.w3-hero-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.w3-hero-copy { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 0 24px; text-align: center; }
.w3-hero-copy-in { max-width: 900px; display: flex; flex-direction: column; align-items: center; animation: w3-copy-in .5s var(--ease-in) var(--copy-at) backwards; }
.w3-h1 { color: var(--ink); font-size: min(clamp(2.5rem, 3.9vw, 3.5rem), 10.4167vw - 5px); font-weight: 500; line-height: 1.15; letter-spacing: -.025em; }
.w3-h1-line { display: block; }
.w3-wordmark { --wm: clamp(4rem, 7.6vw, 6.8rem); display: flex; justify-content: center; align-items: baseline; margin-bottom: .1em; font-size: var(--wm); font-weight: 700; line-height: 1.12; letter-spacing: -.035em; color: var(--navy); }
.w3-wm-b { position: relative; display: inline-block; margin-left: .14em; }
.w3-wm-aurora, .w3-wm-fill { display: block; padding: 0 .04em; color: transparent; -webkit-background-clip: text; background-clip: text; }
/* แสงไหลวนในตัวอักษร: ไล่ฟ้าแบรนด์ (ไม่ผสมทอง ผสมแล้วกลางสีหม่น) */
.w3-wm-aurora {
  background: radial-gradient(closest-side, #82bcfff2, transparent) 80% 10% / 75% 95% no-repeat,
    radial-gradient(closest-side, #207dfce6, transparent) 20% 30% / 60% 80% no-repeat,
    radial-gradient(closest-side, #96c8ffcc, transparent) 55% 0% / 45% 60% no-repeat,
    radial-gradient(closest-side, #0046fcf2, transparent) 10% 90% / 70% 95% no-repeat, var(--os-logo);
  -webkit-background-clip: text; background-clip: text; animation: w3-aurora 10s ease-in-out infinite;
}
/* น้ำเติมจากล่างขึ้นบนครั้งเดียวตอนโหลด แล้วหายไปเผยสีจริง */
.w3-wm-fill { --tb: calc(var(--wm) * .9); --tf: calc(var(--wm) * 1.2); --st: calc(var(--wm) * .14); --h: calc(var(--wm) * 1.2);
  position: absolute; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 0 H200 V20 Q150 40 100 20 T0 20 Z' fill='%23d3dfff'/%3E%3C/svg%3E") 0 calc(var(--h) * -.2) / var(--tb) var(--st) repeat-x,
    linear-gradient(var(--os-glass), var(--os-glass)) 0 0 / 100% 0 no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 0 H200 V20 Q150 40 100 20 T0 20 Z' fill='%2382bcff' fill-opacity='.55'/%3E%3C/svg%3E") 0 calc(var(--h) * -.12) / var(--tf) var(--st) repeat-x,
    linear-gradient(#82bcff8c, #82bcff8c) 0 0 / 100% 0 no-repeat;
  -webkit-background-clip: text; background-clip: text; animation: w3-fill 3s linear var(--copy-at) backwards;
}
.w3-hand { display: inline-block; margin-left: .12em; font-family: var(--hand); font-weight: 500; letter-spacing: 0; animation: w3-boil .6s step-end infinite; }
.w3-sweep { margin-inline: -.15em; padding: .2em .15em; color: transparent; font-weight: 600; -webkit-background-clip: text; background-clip: text; animation: w3-sweep 4.5s linear infinite;
  background-image: linear-gradient(90deg, var(--sweep-ink, var(--ink)) 0 33.33%, var(--g1) 38%, var(--g2) 43%, var(--g3) 50%, var(--g4) 56%, var(--g5) 61%, var(--sweep-ink, var(--ink)) 66.67% 100%);
  background-position: 100% 0; background-size: 300% 100%; }
.w3-sweep.is-on-dark { --sweep-ink: var(--on-dark); }
.w3-hero-sub { max-width: 34rem; margin-top: 20px; color: var(--ink); font-size: 17px; line-height: 1.6; text-wrap: balance; }
.w3-scroll { position: absolute; z-index: 3; bottom: 28px; left: 50%; translate: -50%; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 14px; border-radius: 999px; color: var(--ink-3); font-size: 15px; animation: w3-fade-in .6s ease var(--chrome-at) backwards; }
.w3-scroll-float { display: flex; animation: w3-float 2.2s ease-in-out infinite; }
.w3-cards { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.w3-card-pos { --x: var(--dx); --y: var(--dy); --r: var(--dr); --from-y: 0px; position: absolute; top: 50%; left: 50%; }
.w3-card { width: clamp(8rem, 13.5vw, 13rem); overflow: hidden; border-radius: 12px; background: var(--bg); box-shadow: var(--shadow-card);
  transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--r));
  animation: w3-card-burst 1.1s var(--ease-in) calc(var(--burst-at) + var(--o) * 50ms) backwards; }
.w3-card-media { position: relative; overflow: hidden; background: var(--bg-soft); }
.w3-card-media img { width: 100%; height: 100%; object-fit: cover; }
.w3-card-body { position: relative; padding: 22px 12px 12px; }
.w3-card-icon { position: absolute; top: -18px; left: 10px; width: 36px; height: 36px; display: flex; justify-content: center; align-items: center; border: 2px solid var(--bg); border-radius: 50%; background: var(--btn); color: var(--on-btn); }
.w3-card-name { overflow: hidden; color: var(--ink-card); font-size: 12px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.w3-card-meta { margin-top: 1px; color: var(--ink-3); font-size: 10px; }
/* เลื่อนลง: การ์ดปลิวออกข้าง ข้อความจางเบลอ (CSS scroll timeline · เบราว์เซอร์ที่ไม่รองรับใช้ JS ตั้ง --p-*) */
.w3-hero-track.is-js-scroll { height: 175svh; }
.w3-hero-track.is-js-scroll + .w3-intro { margin-top: -60svh; }
.is-js-scroll .w3-card-pos { opacity: calc(1 - var(--p-cards, 0)); transform: translate(calc(var(--side) * 24vw * var(--p-cards, 0)), calc(-16vh * var(--p-cards, 0))) scale(calc(1 - .15 * var(--p-cards, 0))); }
.is-js-scroll .w3-hero-copy { opacity: calc(1 - var(--p-copy, 0)); transform: scale(calc(1 - .04 * var(--p-copy, 0))); }
@supports (animation-timeline: scroll()) {
  .w3-hero-track { height: 175svh; }
  .w3-hero-track + .w3-intro { margin-top: -60svh; }
  .w3-card-pos { animation: w3-card-out linear both; animation-timeline: scroll(root); animation-range: 0 75vh; }
  .w3-hero-copy { animation: w3-copy-out linear both; animation-timeline: scroll(root); animation-range: 0 55vh; }
  @media (hover: hover) and (pointer: fine) { .w3-hero-copy { animation-name: w3-copy-out-blur; } }
}

/* ── โผล่ตอนเลื่อนถึง ── */
.w3-reveal { display: block; }
.w3-reveal[data-reveal="wait"] { opacity: 0; transform: translateY(28px); }
.w3-reveal[data-reveal="in"] { transition: opacity .7s var(--ease-ui) var(--reveal-delay, 0s), transform .9s var(--ease-in) var(--reveal-delay, 0s); }

/* ── Intro ── */
.w3-intro { position: relative; z-index: 5; display: flex; flex-direction: column; align-items: center; padding: 128px 24px 140px; background: linear-gradient(#fff0, var(--bg) 120px); }
.w3-intro-title { width: 100%; max-width: 62rem; color: var(--ink); font-size: clamp(1.6rem, 2.7vw, 2.5rem); font-weight: 500; line-height: 1.4; letter-spacing: -.01em; text-align: center; text-wrap: pretty; }
.w3-intro-line { display: block; }
.w3-intro-line.is-soft { margin-top: .15em; color: var(--ink-soft); }
@media (min-width: 768px) { .w3-intro-part { display: block; } }
.w3-intro-media-wrap { width: min(1105px, 100%); margin-top: 64px; }
.w3-intro-media-wrap[data-reveal="wait"] { transform: translateY(40px) scale(.94); }
.w3-intro-media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 32px; background: var(--bg-soft); box-shadow: var(--shadow-card); }
.w3-intro-video, .w3-intro-media iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.w3-intro-start { position: absolute; inset: 0; cursor: pointer; }
.w3-intro-play { width: 84px; height: 84px; display: flex; justify-content: center; align-items: center; padding-left: 4px; border-radius: 50%; color: var(--on-btn); background: var(--btn); box-shadow: 0 12px 32px #13192247; }
.w3-intro-start .w3-intro-play { position: absolute; top: 50%; left: 50%; translate: -50% -50%; transition: scale .24s var(--ease-hover), background-color .24s var(--ease-hover); }
.w3-intro-start:hover .w3-intro-play { scale: 1.06; background: var(--btn-hover); }

/* ── ลองกด ── */
.w3-demo { position: relative; z-index: 5; padding: 24px 24px 140px; background: var(--bg); }
.w3-demo-stage { position: relative; width: min(560px, 100%); margin: 0 auto; }
.w3-demo-hint { position: absolute; top: 34px; right: calc(100% + 44px); width: 210px; display: flex; flex-direction: column; align-items: flex-end; color: var(--ink); }
.w3-demo-hint-text { font-family: var(--hand); font-size: 22px; font-weight: 500; white-space: nowrap; animation: w3-boil .6s step-end infinite; }
.w3-demo-arrow { width: 110px; height: 64px; margin: 4px -40px 0 0; overflow: visible; }
.w3-demo-arrow.is-phone { display: none; }
.w3-demo-arrow path { fill: none; stroke: currentColor; stroke-width: 2.4px; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.w3-reveal[data-reveal="wait"] .w3-demo-arrow path { stroke-dashoffset: 1; }
.w3-reveal[data-reveal="in"] .w3-demo-arrow path { animation: w3-draw .7s var(--ease-ui) .5s backwards; }
.w3-reveal[data-reveal="in"] .w3-demo-arrow path + path { animation-delay: 1.1s; }
.w3-demo-card { position: relative; overflow: hidden; padding: 24px; border-radius: 24px; background: var(--bg); box-shadow: 0 0 0 1px var(--line), var(--shadow-card); }
.w3-demo-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.w3-demo-title { color: var(--ink-card); font-size: 22px; font-weight: 500; }
.w3-demo-note { color: var(--ink-3); font-size: 12px; }
.w3-demo-list { display: grid; gap: 8px; margin-top: 16px; }
.w3-demo-row { position: relative; }
.w3-demo-task { width: 100%; min-height: 60px; display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 16px; background: var(--bg); box-shadow: 0 0 0 1px var(--line); text-align: left;
  transition: background-color .24s var(--ease-hover), box-shadow .24s var(--ease-hover); }
.w3-demo-task:hover { background: var(--bg-soft); }
.w3-demo-check { width: 28px; height: 28px; flex: none; display: flex; justify-content: center; align-items: center; border: 2px solid var(--ink-soft); border-radius: 50%; color: transparent;
  transition: background-color .24s var(--ease-hover), border-color .24s var(--ease-hover), color .24s var(--ease-hover); }
.w3-demo-row[data-done="true"] .w3-demo-check { border-color: var(--os-blue); background: var(--os-blue); color: var(--on-btn); animation: w3-check-pop .36s var(--ease-in); }
.w3-demo-task-title { flex: 1; color: var(--ink-card); font-size: 17px; font-weight: 500; transition: color .24s var(--ease-hover); }
.w3-demo-row[data-done="true"] .w3-demo-task-title { color: var(--ink-soft); text-decoration: line-through; }
.w3-demo-task-meta { flex: none; display: flex; align-items: center; gap: 8px; }
.w3-demo-priority { color: var(--ink-3); font-size: 12px; }
.w3-demo-float { position: absolute; z-index: 2; top: 50%; right: 12px; translate: 0 -50%; display: inline-flex; gap: 4px; padding: 2px; border-radius: 999px; background: var(--bg); font-size: 13px; font-weight: 600; white-space: nowrap; pointer-events: none; animation: w3-reward-float 2s var(--ease-ui) forwards; }
.w3-demo-float span { padding: 3px 10px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.w3-demo-float .is-exp { background: var(--exp-bg); color: var(--exp-ink); }
.w3-demo-float .is-money { background: var(--money-bg); color: var(--money-ink); }
.w3-demo-float[data-back="true"] span { background: var(--bg-soft); color: var(--ink-3); }
.w3-demo-stats { display: grid; grid-template-columns: 1fr 1.25fr; margin-top: 18px; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }
.w3-demo-stat { padding: 14px 16px; }
.w3-demo-stat + .w3-demo-stat { box-shadow: -1px 0 0 var(--line); }
.w3-demo-stat-label { color: var(--ink-3); font-size: 12px; }
.w3-demo-level, .w3-demo-money { margin-top: 2px; color: var(--ink-card); font-size: 26px; font-weight: 500; line-height: 1.2; font-variant-numeric: tabular-nums; }
.w3-demo-level[data-up="true"] { color: var(--os-blue); animation: w3-level-pop .6s var(--ease-in); }
.w3-demo-bar { display: block; height: 6px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: var(--bg-soft); }
.w3-demo-bar span { display: block; width: var(--fill); height: 100%; border-radius: inherit; background: var(--os-logo); transition: width .7s var(--ease-ui); }
.w3-demo-stat-sub { margin-top: 6px; color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.w3-demo-levelup { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--exp-bg); color: var(--exp-ink); font-size: 14px; text-align: center; animation: w3-check-pop .5s var(--ease-in); }
.w3-demo-levelup strong { font-size: 17px; font-weight: 600; }
.w3-demo-confetti { position: absolute; top: 50%; left: 50%; pointer-events: none; }
.w3-demo-confetti i { --a: calc(var(--k) * 25.7deg); position: absolute; width: 7px; height: 7px; border-radius: 2px; background: var(--g3); opacity: 0; animation: w3-confetti 1.2s var(--ease-in) calc(var(--k) * 20ms) forwards; }
.w3-demo-confetti i:nth-child(3n) { background: var(--os-blue); }
.w3-demo-confetti i:nth-child(3n + 1) { background: var(--g5); }
.w3-demo-again { height: 40px; display: flex; align-items: center; gap: 8px; margin: 14px auto 0; padding: 0 18px; border-radius: 999px; box-shadow: 0 0 0 1px var(--line); color: var(--ink); font-size: 14px; font-weight: 500; transition: background-color .24s var(--ease-hover); }
.w3-demo-again:hover { background: var(--bg-soft); }

@media (max-width: 899px) {
  .w3-demo-hint { position: static; width: auto; flex-direction: row; justify-content: flex-start; align-items: flex-start; gap: 4px; margin: 0 0 6px 10px; }
  .w3-demo-arrow.is-desk { display: none; }
  .w3-demo-arrow.is-phone { display: block; order: -1; width: 48px; height: 45px; margin: 6px 0 -10px; }
}
@media (max-width: 767px) {
  .w3-intro { padding: 72px 16px 88px; }
  .w3-intro > .w3-intro-title { font-size: 1.375rem; }
  .w3-m-line { display: block; }
  .w3-intro-media-wrap { margin-top: 40px; }
  .w3-intro-media { border-radius: 20px; }
  .w3-intro-play { width: 60px; height: 60px; }
  .w3-demo { padding: 8px 16px 96px; }
  .w3-demo-card { padding: 16px; border-radius: 20px; }
  .w3-demo-task { gap: 12px; padding: 10px 12px; }
  .w3-demo-task-title { font-size: 16px; }
  .w3-demo-priority { display: none; }
  .w3-demo-level, .w3-demo-money { font-size: 21px; }
  .w3-nav { height: 56px; padding: 4px; }
  .w3-pill { height: 46px; }
  .w3-pill.is-logo { padding: 0 14px 0 10px; }
  .w3-logo-name { font-size: 16px; }
  .w3-nav-link, .w3-btn { padding: 0 14px; font-size: 14px; }
  .w3-hero-copy { justify-content: flex-start; padding-top: 22vh; }
  .w3-hero-sub { font-size: 15px; }
  .w3-cta { margin-top: 28px; }
  .w3-card-pos { --x: var(--mx); --y: var(--my); --r: var(--mr); --from-y: 12vh; }
  .w3-card-pos[data-phone="hide"] { display: none; }
  .w3-card { width: 7.5rem; }
  .w3-scroll { bottom: 16px; background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
@media (max-width: 400px) {
  .w3-pill.is-logo { gap: 6px; padding: 0 10px 0 8px; }
  .w3-nav-link, .w3-btn { padding: 0 11px; font-size: 13px; }
  .w3-intro-title { font-size: 1.4rem; }
  .w3-demo-stat { padding: 12px; }
  .w3-demo-level, .w3-demo-money { font-size: 19px; }
  .w3-demo-stat-sub { font-size: 11px; }
}

/* แบนเนอร์คุกกี้ (site-v2/js/consent.js + css/consent.css) ใช้ตัวแปรของหน้า v1/v2 — เติมให้ครบในหน้านี้ */
.w3 :is(.ck, .ck-pane, .ft-ck) { --card: #fff; --page: var(--bg-soft); --indigo: var(--os-blue); --mist: var(--exp-bg); --ok: var(--check); --shadow: var(--shadow-card); --f-body: var(--font); --f-display: var(--font); }
/* โทนเข้ม: การ์ดกับหน้าตั้งค่าใช้พื้น --dark-card ปุ่มกลายเป็นขาว (ปุ่มใช้ --ink เป็นพื้น --card เป็นตัวอักษร) */
.w3 :is(.ck, .ck-pane) { --card: var(--dark-card); --ink: var(--on-dark); --ink-2: var(--on-dark-2); --line: var(--dark-line); --page: #ffffff14; --mist: #ffffff14; --indigo: #8ab4ff; }
