/*
 * Obsidian Ledger — ระบบดีไซน์หน้าลูกค้า (ตาม canvas "Betflix Web3 Lobby")
 *
 * แนวคิด: กระเป๋าเงินเป็นพระเอก — ตัวเลขเงินเป็นโมโนสเปซ พื้นออบซิเดียนลายกริดหกเหลี่ยม
 * สีมีความหมายตายตัว
 *   มินต์ (#4df3c3)  = เงินกลับหาลูกค้า / สถานะดี / สิ่งที่เลือกอยู่     (ถอน คืนเงิน ออนไลน์)
 *   ส้มถ่าน (#ff7a4a) = เงินเข้าเว็บ                                   (ฝาก สมัคร)
 *   ทอง (#ffd166)    = ของที่ลุ้นได้ / ชนะ / ระดับปัจจุบัน
 *   เทา (#9aa6b2)    = เสีย / ข้อมูลประกอบ
 *   แดงส้ม (#ff6a3d) = คาสิโนสด / ปิดปรับปรุง
 *
 * ทุกคลาสขึ้นต้น .ob- · โหลดหลัง member.css/readable.css เพื่อทับ token ของหน้าเก่าที่ยังใช้ .m- อยู่
 * (คืนยอดเสีย แนะนำเพื่อน หวย) ให้กลืนกับพื้นออบซิเดียนโดยไม่ต้องแก้ทุกหน้าในคราวเดียว
 */

:root {
    --ob-bg: #06080d;
    --ob-bg-rgb: 6, 8, 13;
    /* โทนของชุดสี (dark | light) — คอนโทรลพื้นฐานของเบราว์เซอร์ (scrollbar, input, select) ตามไปด้วย */
    --ob-scheme: dark;
    /* พื้น "จม" (ช่องปุ่ม/กล่องย่อยของหน้าเก่า .lt-*/.m-*) — ดำโปร่งบนโทนมืด · หมึกโปร่งบางบนโทนสว่าง (ThemePreset สลับให้) */
    --ob-sink: rgba(0, 0, 0, .35);
    --ob-sink-soft: rgba(0, 0, 0, .22);
    /* หมึกโปร่งสำหรับเส้น/ไฮไลต์ — ขาวบนโทนมืด · น้ำเงินเข้มบนโทนสว่าง (ThemePreset สลับให้) */
    --ob-ink-rgb: 255, 255, 255;
    --ob-surface: #0a0d14;
    --ob-surface-2: #0d1119;
    --ob-surface-3: #10151f;
    --ob-card: linear-gradient(160deg, #141a26, #0a0d14);
    --ob-card-soft: linear-gradient(160deg, #10151f 0%, #0a0d14 100%);

    --ob-line: rgba(255, 255, 255, .1);
    --ob-line-soft: rgba(255, 255, 255, .06);
    --ob-line-mid: rgba(255, 255, 255, .14);

    --ob-text: #e8edf2;
    --ob-white: #ffffff;
    --ob-muted: #9aa6b2;
    --ob-dim: #55606b;

    --ob-mint: #4df3c3;
    --ob-mint-2: #8ff7da;
    --ob-mint-dark: #1f8f78;
    --ob-mint-rgb: 77, 243, 195;

    --ob-gold: #ffd166;
    --ob-gold-dark: #c98f1d;
    --ob-gold-rgb: 255, 209, 102;

    --ob-orange: #ff7a4a;
    --ob-orange-dark: #e8502a;
    --ob-orange-text: #ffb08f;
    --ob-orange-ink: #1a0a05;
    --ob-orange-rgb: 255, 122, 74;

    --ob-live: #ff6a3d;
    --ob-live-text: #ff8a66;

    --ob-display: 'Unbounded', 'IBM Plex Sans Thai', sans-serif;
    --ob-sans: 'IBM Plex Sans Thai', 'Noto Sans Thai', 'Leelawadee UI', system-ui, sans-serif;
    --ob-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

    --ob-ease: cubic-bezier(.22, 1, .36, 1);
    --ob-r-xl: 22px;
    --ob-r-lg: 18px;
    --ob-r-md: 14px;
    --ob-r-sm: 10px;

    /* ความสูงแถบล่าง + ระยะเผื่อให้เนื้อหาไม่ถูกบัง */
    --ob-bottomnav: 66px;
    --ob-gutter: 18px;

    /* ── ทับ token ของหน้าเก่า (.m-*) ให้กลืนกับพื้นออบซิเดียน ── */
    --font-sans: var(--ob-sans);
    --ink: var(--ob-text);
    --ink-soft: var(--ob-muted);
    --ink-muted: var(--ob-muted);
    --gold: var(--ob-gold);
    --gold-light: #ffe3a0;
    --gold-dark: var(--ob-gold-dark);
    --gold-rgb: var(--ob-gold-rgb);
    --m-line: var(--ob-line-soft);
    --m-line-strong: rgba(var(--ob-mint-rgb), .35);
    --m-accent-rgb: var(--ob-mint-rgb);
    --m-button-rgb: var(--ob-mint-rgb);
    --m-card-bg: var(--ob-card-soft);
    --m-ok: var(--ob-mint);
    --m-ok-bg: rgba(var(--ob-mint-rgb), .12);
    --m-ok-line: rgba(var(--ob-mint-rgb), .4);
    --m-wait: var(--ob-gold);
    --m-wait-bg: rgba(var(--ob-gold-rgb), .12);
    --m-wait-line: rgba(var(--ob-gold-rgb), .4);
    --m-bad: var(--ob-live-text);
    --m-bad-bg: rgba(255, 106, 61, .12);
    --m-bad-line: rgba(255, 106, 61, .4);
}

/* ── พื้นฐาน ───────────────────────────────────────────────── */

html { background: var(--ob-bg); color-scheme: var(--ob-scheme, dark); }

body {
    margin: 0;
    min-height: 100vh;
    /* กันทั้งหน้าเลื่อนซ้ายขวาเมื่อมีอะไรกว้างเกินจอ (ตัวหนังสือใหญ่บน Android) — clip ไม่สร้าง scroll container ส่วนหัว sticky ยังทำงาน */
    overflow-x: clip;
    color: var(--ob-text);
    font-family: var(--ob-sans);
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    background-color: var(--ob-bg);
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(var(--ob-mint-rgb), .14), transparent 42%),
        radial-gradient(ellipse at 90% 8%, rgba(var(--ob-gold-rgb), .08), transparent 38%),
        repeating-linear-gradient(60deg, rgba(var(--ob-ink-rgb), .03) 0 1px, transparent 1px 34px),
        repeating-linear-gradient(-60deg, rgba(var(--ob-ink-rgb), .03) 0 1px, transparent 1px 34px),
        repeating-linear-gradient(0deg, rgba(var(--ob-ink-rgb), .022) 0 1px, transparent 1px 30px);
    background-attachment: fixed;
}

button, input, select, textarea { font-family: inherit; }
a { color: var(--ob-mint); }
a:hover { color: var(--ob-mint-2); }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.25; color: var(--ob-white); text-wrap: balance; letter-spacing: 0; }
img { display: block; max-width: 100%; }

.ob-display { font-family: var(--ob-display); }
.ob-mono { font-family: var(--ob-mono); font-variant-numeric: tabular-nums; }
.ob-muted { color: var(--ob-muted); }
.ob-gold { color: var(--ob-gold); }
.ob-mint { color: var(--ob-mint); }
.ob-orange { color: var(--ob-orange-text); }
.ob-live-text { color: var(--ob-live-text); }

.ob-scroll { scrollbar-width: none; }
.ob-scroll::-webkit-scrollbar { display: none; }

/* ── การเคลื่อนไหว — บอกสถานะเท่านั้น ปิดได้ด้วย reduced motion ── */

@keyframes ob-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ob-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes ob-spin { to { transform: rotate(360deg); } }
@keyframes ob-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ob-glow { 0%, 100% { box-shadow: 0 0 0 rgba(var(--ob-gold-rgb), 0); } 50% { box-shadow: 0 0 28px rgba(var(--ob-gold-rgb), .3); } }
@keyframes ob-flame { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
@keyframes ob-bar { from { width: 8%; } to { width: 82%; } }
@keyframes ob-up { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes ob-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ob-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.ob-rise { animation: ob-rise .6s var(--ob-ease) both; }
.ob-d1 { animation-delay: .05s; } .ob-d2 { animation-delay: .12s; } .ob-d3 { animation-delay: .2s; } .ob-d4 { animation-delay: .28s; }
.ob-d5 { animation-delay: .36s; } .ob-d6 { animation-delay: .44s; } .ob-d7 { animation-delay: .52s; } .ob-d8 { animation-delay: .6s; }
.ob-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ob-mint); box-shadow: 0 0 10px var(--ob-mint); flex: none; animation: ob-pulse 1.6s ease-in-out infinite; }
.ob-live-dot--hot { background: var(--ob-live); box-shadow: 0 0 10px var(--ob-live); }
.ob-live-dot--muted { background: var(--ob-muted); box-shadow: none; }
.ob-glow { animation: ob-glow 2.4s ease-in-out infinite; }
.ob-flame { animation: ob-flame 1s ease-in-out infinite; transform-origin: 50% 100%; }

/* ขอบเรืองแสงหมุน — การ์ดกระเป๋าและวงแหวนตอนเข้าเกม */
.ob-ring { position: relative; padding: 1px; overflow: hidden; isolation: isolate; border-radius: var(--ob-r-xl); }
.ob-ring::before { content: ""; position: absolute; inset: -150%; background: conic-gradient(from 0deg, transparent 0 60%, var(--ob-mint) 78%, var(--ob-live) 88%, transparent 100%); animation: ob-spin 7s linear infinite; }
.ob-ring--fast::before { animation-duration: 2.4s; }
.ob-ring > * { position: relative; z-index: 1; }

/* เปลี่ยนหน้า — เข้าลึกเลื่อนจากขวา ถอยเลื่อนจากซ้าย (middleware/direction.global.ts) */
.page-forward-enter-active, .page-forward-leave-active, .page-back-enter-active, .page-back-leave-active { transition: opacity .22s var(--ob-ease), transform .28s var(--ob-ease); }
.page-forward-enter-from { opacity: 0; transform: translateX(18px); }
.page-forward-leave-to { opacity: 0; transform: translateX(-10px); }
.page-back-enter-from { opacity: 0; transform: translateX(-18px); }
.page-back-leave-to { opacity: 0; transform: translateX(10px); }

@media (prefers-reduced-motion: reduce) {
    .ob-rise, .ob-live-dot, .ob-glow, .ob-flame, .ob-ring::before, .ob-ticker__track, .ob-launch__bar, .ob-sheet, .ob-skel { animation: none !important; }
    .ob-rise { opacity: 1; transform: none; }
    .page-forward-enter-active, .page-forward-leave-active, .page-back-enter-active, .page-back-leave-active { transition: opacity .15s; }
    .page-forward-enter-from, .page-forward-leave-to, .page-back-enter-from, .page-back-leave-to { transform: none; }
}

/* ── โครงหน้า ───────────────────────────────────────────────── */

.ob-shell { min-height: 100vh; display: flex; flex-direction: column; }
.ob-main { flex: 1; width: 100%; }
.ob-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.ob-page { padding-top: 16px; padding-bottom: 48px; } /* เฉพาะบน-ล่าง — อยู่ร่วมกับ .ob-wrap ที่ให้ระยะขอบซ้าย-ขวา */
.ob-stack { display: flex; flex-direction: column; gap: 14px; }
.ob-narrow { max-width: 640px; margin: 0 auto; }

@media (max-width: 767px) {
    .ob-wrap { padding: 0 var(--ob-gutter); }
    .ob-page { padding-top: 6px; padding-bottom: 12px; } /* ท้ายเว็บ (SiteFooter) เว้นที่ให้แถบล่างเองแล้ว */
}

/* หัวเว็บ */
.ob-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(var(--ob-ink-rgb), .07); background: rgba(var(--ob-bg-rgb), .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.ob-header__bar { height: 68px; display: flex; align-items: center; gap: 28px; }
.ob-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ob-white); min-width: 0; }
.ob-brand__name { font-family: var(--ob-display); font-weight: 700; font-size: 16px; letter-spacing: .02em; white-space: nowrap; }
.ob-brand__logo { height: 34px; width: auto; }
.ob-topnav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; }
.ob-topnav a { flex: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; color: var(--ob-muted); text-decoration: none; transition: color .2s, background .2s; }
.ob-topnav a:hover { color: var(--ob-white); }
.ob-topnav a.router-link-active, .ob-topnav a.is-on { color: var(--ob-white); font-weight: 600; background: rgba(var(--ob-ink-rgb), .06); }
.ob-topnav a.ob-topnav__gold { color: var(--ob-gold); }
.ob-header__right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.ob-iconbtn { width: 38px; height: 38px; border-radius: 12px; border: 1px solid rgba(var(--ob-ink-rgb), .12); background: var(--ob-surface-2); color: var(--ob-text); display: grid; place-items: center; cursor: pointer; text-decoration: none; transition: transform .2s, border-color .2s; }
.ob-iconbtn:hover { transform: translateY(-1px); border-color: rgba(var(--ob-mint-rgb), .5); }
.ob-iconbtn svg { width: 18px; height: 18px; }
.ob-iconbtn--badge { position: relative; }
.ob-iconbtn--badge::after { content: ""; position: absolute; right: 8px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--ob-live); border: 2px solid var(--ob-surface-2); }

@media (max-width: 767px) {
    .ob-header__bar { height: 62px; gap: 10px; }
    .ob-topnav, .ob-header__desktop { display: none !important; }
}
@media (min-width: 768px) {
    .ob-header__mobile { display: none !important; }
}

/* ยอดเงินแบบแคปซูล */
.ob-pill { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 10px; border-radius: 999px; border: 1px solid rgba(var(--ob-mint-rgb), .35); background: rgba(var(--ob-mint-rgb), .08); color: var(--ob-text); text-decoration: none; white-space: nowrap; }
.ob-pill__amt { font-family: var(--ob-mono); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.ob-pill--lg { height: 40px; padding: 0 14px 0 12px; }
.ob-pill--lg .ob-pill__amt { font-size: 15px; }
.ob-pill.is-up { border-color: var(--ob-gold); box-shadow: 0 0 18px rgba(var(--ob-gold-rgb), .35); transition: box-shadow .4s, border-color .4s; }

/* แถบวิ่ง LIVE */
.ob-ticker { height: 30px; overflow: hidden; border-radius: 8px; border: 1px solid rgba(var(--ob-ink-rgb), .08); background: var(--ob-surface); display: flex; align-items: center; }
.ob-ticker--strip { height: 32px; border: 0; border-radius: 0; border-top: 1px solid rgba(var(--ob-ink-rgb), .05); background: #080b11; }
.ob-ticker__label { flex: none; height: 100%; padding: 0 10px; display: flex; align-items: center; gap: 6px; border-right: 1px solid rgba(var(--ob-ink-rgb), .08); background: var(--ob-surface-2); font-family: var(--ob-display); font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--ob-mint); }
.ob-ticker--strip .ob-ticker__label { background: none; border: 0; padding-left: 0; }
.ob-ticker__viewport { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.ob-ticker__track { display: inline-flex; gap: 28px; padding-left: 12px; font-family: var(--ob-mono); font-size: 12px; color: var(--ob-muted); animation: ob-ticker 32s linear infinite; }
.ob-ticker__track b { font-weight: 700; }
.ob-ticker__track b.mint { color: var(--ob-mint); }
.ob-ticker__track b.gold { color: var(--ob-gold); }

/* แถบล่าง (มือถือ) */
.ob-bottomnav { position: fixed; left: 14px; right: 14px; bottom: 16px; z-index: 45; height: var(--ob-bottomnav); border-radius: 20px; border: 1px solid rgba(var(--ob-ink-rgb), .1); background: rgba(var(--ob-bg-rgb), .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 16px 40px rgba(0, 0, 0, .28); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; padding: 0 6px; }
.ob-bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ob-muted); text-decoration: none; font-size: 11px; font-weight: 500; -webkit-tap-highlight-color: transparent; }
.ob-bottomnav a svg { width: 22px; height: 22px; }
.ob-bottomnav a.router-link-active, .ob-bottomnav a.is-on { color: var(--ob-mint); font-weight: 600; }
.ob-bottomnav__fab { width: 46px; height: 46px; margin-top: -26px; border-radius: 16px; display: grid; place-items: center; color: var(--ob-orange-ink); background: linear-gradient(160deg, var(--ob-orange), var(--ob-orange-dark)); box-shadow: 0 10px 24px rgba(232, 80, 42, .45); }
.ob-bottomnav a .ob-bottomnav__fablabel { color: var(--ob-text); font-weight: 700; }
@media (min-width: 768px) { .ob-bottomnav { display: none; } }

/* ลิ้นชักเมนูมือถือ */
.ob-drawer-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(var(--ob-bg-rgb), .7); backdrop-filter: blur(3px); animation: ob-fade .2s both; }
.ob-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(320px, 86vw); background: linear-gradient(180deg, var(--ob-surface-3), var(--ob-surface)); border-left: 1px solid var(--ob-line); box-shadow: -24px 0 60px rgba(0, 0, 0, .6); padding: 18px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; animation: ob-rise .3s var(--ob-ease) both; }
.ob-drawer__list { display: flex; flex-direction: column; border-radius: 16px; border: 1px solid var(--ob-line); background: var(--ob-surface); overflow: hidden; }
.ob-drawer__list a, .ob-drawer__list button { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 0; border-bottom: 1px solid var(--ob-line-soft); background: none; color: var(--ob-text); text-decoration: none; font-size: 15px; font-weight: 500; text-align: left; cursor: pointer; width: 100%; }
.ob-drawer__list a:last-child, .ob-drawer__list button:last-child { border-bottom: 0; }
.ob-drawer__list svg { width: 18px; height: 18px; color: var(--ob-muted); flex: none; }
.ob-drawer__list a.router-link-active { color: var(--ob-mint); }
.ob-drawer__list a.router-link-active svg { color: var(--ob-mint); }

/* ท้ายเว็บ (เดสก์ท็อป) */

/* ── ตัวอักษร / หัวข้อ ───────────────────────────────────────── */

.ob-h1 { font-family: var(--ob-display); font-weight: 700; font-size: 22px; line-height: 1.1; color: var(--ob-white); }
.ob-h1--lg { font-size: 24px; }
.ob-sub { font-size: 13.5px; color: var(--ob-muted); margin-top: 4px; }
.ob-eyebrow { font-family: var(--ob-mono); font-size: 11px; letter-spacing: .18em; color: var(--ob-mint); text-transform: uppercase; }
.ob-eyebrow--gold { color: var(--ob-gold); }
.ob-sec { display: flex; flex-direction: column; gap: 12px; }
.ob-sec__h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ob-sec__h h2 { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.ob-sec__h .ob-sec__meta { font-family: var(--ob-mono); font-size: 12px; color: var(--ob-muted); }
.ob-sec__h a { font-size: 13px; text-decoration: none; }
@media (min-width: 768px) { .ob-sec__h h2 { font-size: 22px; } .ob-sec__h .ob-sec__meta { font-size: 13px; } .ob-sec__h a { font-size: 14px; } }

/* หัวหน้าแบบมี "ย้อนกลับ" + ยอดเงิน */
.ob-backbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; }
.ob-back { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px 0 8px; border-radius: 12px; border: 1px solid rgba(var(--ob-ink-rgb), .12); background: var(--ob-surface-2); color: var(--ob-text); text-decoration: none; font-size: 14px; font-weight: 500; cursor: pointer; }
.ob-back svg { width: 18px; height: 18px; }

/* ── ปุ่ม ────────────────────────────────────────────────────── */

/* box-sizing: ปุ่มที่เป็น <a> (NuxtLink) ไม่ได้ border-box เองเหมือน <button> — width:100% + padding จึงล้นขอบ (ผู้ใช้ 2026-10-11 ปุ่มสมัครล้นขอบ) */
.ob-btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: var(--ob-r-md); border: 1px solid transparent; font-family: inherit; font-weight: 700; font-size: 15px; color: var(--ob-text); background: var(--ob-surface-2); cursor: pointer; text-decoration: none; transition: transform .2s, filter .2s, border-color .2s; -webkit-tap-highlight-color: transparent; }
.ob-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.ob-btn:active { transform: translateY(0); }
.ob-btn:disabled, .ob-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; filter: none; }
.ob-btn svg { width: 18px; height: 18px; flex: none; }
.ob-btn--orange { background: linear-gradient(160deg, var(--ob-orange), var(--ob-orange-dark)); color: var(--ob-orange-ink); }
.ob-btn--mint { background: var(--ob-mint); color: var(--ob-bg); }
.ob-btn--gold { background: var(--ob-gold); color: var(--ob-bg); }
.ob-btn--mint-ghost { border-color: rgba(var(--ob-mint-rgb), .45); background: rgba(var(--ob-mint-rgb), .08); color: var(--ob-mint); }
.ob-btn--orange-ghost { border-color: rgba(var(--ob-orange-rgb), .6); background: rgba(var(--ob-orange-rgb), .1); color: var(--ob-orange-text); }
.ob-btn--ghost { border-color: rgba(var(--ob-ink-rgb), .14); background: var(--ob-surface-2); color: var(--ob-text); font-weight: 600; }
.ob-btn--danger { border-color: rgba(255, 106, 61, .5); background: rgba(255, 106, 61, .08); color: var(--ob-live-text); }
.ob-btn--text { background: none; border: 0; color: var(--ob-muted); font-weight: 500; height: 36px; }
.ob-btn--sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.ob-btn--xs { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.ob-btn--lg { height: 52px; font-size: 16px; }
.ob-btn--block { width: 100%; }
.ob-btn:focus-visible, .ob-chip:focus-visible, .ob-tile:focus-visible, .ob-game:focus-visible, .ob-row:focus-visible, .ob-iconbtn:focus-visible, .ob-bottomnav a:focus-visible, .ob-field:focus-within, .ob-opt:focus-within { outline: 2px solid var(--ob-mint); outline-offset: 2px; }

/* ชิปตัวกรอง */
.ob-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; }
.ob-chip { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(var(--ob-ink-rgb), .14); background: var(--ob-surface); color: var(--ob-text); font-family: inherit; font-weight: 500; font-size: 14px; cursor: pointer; white-space: nowrap; transition: transform .2s, border-color .2s; display: inline-flex; align-items: center; gap: 6px; }
.ob-chip:hover { transform: translateY(-1px); border-color: rgba(var(--ob-mint-rgb), .5); }
.ob-chip.is-on { border-color: var(--ob-mint); background: var(--ob-mint); color: var(--ob-bg); font-weight: 700; }
.ob-chip--orange.is-on { border-color: var(--ob-orange); background: rgba(var(--ob-orange-rgb), .12); color: var(--ob-orange-text); }
.ob-chip--tab { height: 38px; border-radius: 12px; }

/* ── การ์ด / รายการ ──────────────────────────────────────────── */

.ob-card { border-radius: var(--ob-r-lg); border: 1px solid var(--ob-line); background: var(--ob-surface); padding: 16px; }
.ob-card--soft { background: var(--ob-card-soft); }
.ob-card--mint { border-color: rgba(var(--ob-mint-rgb), .35); background: var(--ob-card-soft); }
.ob-card--gold { border-color: rgba(var(--ob-gold-rgb), .45); background: radial-gradient(ellipse at 50% 120%, rgba(var(--ob-gold-rgb), .2), transparent 60%), linear-gradient(160deg, #1a1508, var(--ob-surface)); }
.ob-card--orange { border-color: rgba(var(--ob-orange-rgb), .45); background: var(--ob-card); }
.ob-card--live { border-color: rgba(255, 106, 61, .45); background: linear-gradient(160deg, #1a0e0a, var(--ob-surface)); }
.ob-card--flat { padding: 0; overflow: hidden; border-radius: var(--ob-r-md); border-color: rgba(var(--ob-ink-rgb), .08); }

.ob-list { border-radius: var(--ob-r-md); border: 1px solid rgba(var(--ob-ink-rgb), .08); background: var(--ob-surface); overflow: hidden; }
.ob-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--ob-line-soft); color: var(--ob-text); text-decoration: none; transition: background .2s; }
.ob-row:last-child { border-bottom: 0; }
a.ob-row:hover, button.ob-row:hover { background: rgba(var(--ob-ink-rgb), .03); }
.ob-row__ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: rgba(var(--ob-ink-rgb), .06); color: var(--ob-text); }
.ob-row__ic svg { width: 16px; height: 16px; }
.ob-row__ic--mint { background: rgba(var(--ob-mint-rgb), .1); color: var(--ob-mint); }
.ob-row__ic--gold { background: rgba(var(--ob-gold-rgb), .12); color: var(--ob-gold); }
.ob-row__ic--orange { background: rgba(255, 106, 61, .12); color: var(--ob-live-text); }
.ob-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ob-row__t { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-row__s { font-family: var(--ob-mono); font-size: 12px; color: var(--ob-muted); }
.ob-row__amt { display: block; font-family: var(--ob-mono); font-weight: 700; font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ob-row__bal { display: block; font-family: var(--ob-mono); font-size: 11px; color: var(--ob-muted); text-align: right; margin-top: 3px; white-space: nowrap; }
.ob-row__rank { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(var(--ob-ink-rgb), .08); color: var(--ob-text); font-family: var(--ob-display); font-weight: 900; font-size: 13px; flex: none; }
.ob-row__rank--1 { background: var(--ob-gold); color: var(--ob-bg); }
.ob-row__rank--2 { background: rgba(var(--ob-ink-rgb), .14); color: var(--ob-white); }

.ob-day { margin: 18px 0 8px; display: flex; align-items: center; gap: 10px; font-family: var(--ob-mono); font-size: 12px; letter-spacing: .1em; color: var(--ob-muted); }
.ob-day::after { content: ""; flex: 1; height: 1px; background: rgba(var(--ob-ink-rgb), .08); }
.ob-day b { color: var(--ob-text); font-weight: 600; letter-spacing: 0; }

.ob-kv { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--ob-muted); }
.ob-kv b { font-family: var(--ob-mono); color: var(--ob-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.ob-kv--total { padding-top: 8px; border-top: 1px solid rgba(var(--ob-ink-rgb), .08); }
.ob-kv--total span { color: var(--ob-text); font-weight: 600; }
.ob-kv--total b { font-size: 16px; }

.ob-tag { display: inline-flex; align-items: center; font-size: 11px; padding: 1px 7px; border-radius: 999px; border: 1px solid rgba(var(--ob-ink-rgb), .14); color: var(--ob-muted); vertical-align: middle; margin-left: 6px; font-weight: 500; white-space: nowrap; }
.ob-tag--live { border-color: rgba(255, 106, 61, .6); color: var(--ob-live-text); }
.ob-tag--gold { border-color: rgba(var(--ob-gold-rgb), .5); color: var(--ob-gold); }
.ob-tag--mint { border-color: rgba(var(--ob-mint-rgb), .5); color: var(--ob-mint); }
.ob-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 6px; font-family: var(--ob-display); font-size: 9px; font-weight: 700; letter-spacing: .04em; }
.ob-badge--hot { background: var(--ob-live); color: var(--ob-orange-ink); }
.ob-badge--new { background: var(--ob-mint); color: var(--ob-bg); }
.ob-badge--gold { background: var(--ob-gold); color: var(--ob-bg); }
.ob-badge--text { font-family: var(--ob-sans); font-size: 11px; letter-spacing: 0; background: var(--ob-mint); color: var(--ob-bg); }

/* แถบความคืบหน้า */
.ob-progress { height: 6px; border-radius: 999px; background: rgba(var(--ob-ink-rgb), .08); overflow: hidden; }
.ob-progress > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ob-mint-dark), var(--ob-mint)); transition: width .6s var(--ob-ease); }
.ob-progress--gold > i { background: linear-gradient(90deg, var(--ob-gold-dark), var(--ob-gold)); }
.ob-progress--lg { height: 8px; }

/* ── ตัวเลขเงินก้อนใหญ่ ──────────────────────────────────────── */

.ob-money { font-family: var(--ob-mono); font-weight: 700; line-height: 1; letter-spacing: -.02em; color: var(--ob-white); font-variant-numeric: tabular-nums; }
.ob-money small { font-weight: 700; color: var(--ob-muted); }
.ob-money--xl { font-size: 34px; } .ob-money--xl small { font-size: 18px; }
.ob-money--xxl { font-size: 44px; } .ob-money--xxl small { font-size: 22px; }
.ob-money--lg { font-size: 28px; } .ob-money--lg small { font-size: 15px; }
.ob-money--md { font-size: 18px; } .ob-money--md small { font-size: 12px; }
.ob-money--gold { color: var(--ob-gold); text-shadow: 0 0 24px rgba(var(--ob-gold-rgb), .45); }
.ob-money--gold small { color: rgba(var(--ob-gold-rgb), .7); }
.ob-addr { font-family: var(--ob-mono); font-size: 12px; padding: 4px 8px; border-radius: 6px; border: 1px solid rgba(var(--ob-ink-rgb), .1); color: var(--ob-muted); white-space: nowrap; }

/* ── เครื่องหมายหกเหลี่ยม / การ์ดค่าย / การ์ดเกม ──────────────── */

.ob-hex { display: grid; place-items: center; clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); font-family: var(--ob-display); font-weight: 900; color: var(--ob-white); background: var(--ob-card); flex: none; }
.ob-hex--mint { background: linear-gradient(160deg, var(--ob-mint), var(--ob-mint-dark)); color: var(--ob-bg); }
.ob-hex--gold { background: linear-gradient(160deg, var(--ob-gold), var(--ob-gold-dark)); color: var(--ob-orange-ink); }
.ob-hex img { width: 100%; height: 100%; object-fit: cover; }

/* ระยะแถวน้อยกว่าระยะคอลัมน์ — รูปการ์ด AMB มีพื้นโปร่งด้านบน ~7% ของความสูงอยู่แล้ว ระยะที่เห็นจึงใกล้เคียงกันทั้งสองแนว */
.ob-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 10px; }
@media (min-width: 768px) { .ob-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px 12px; } }
@media (min-width: 1024px) { .ob-tiles { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px 14px; } }

.ob-tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; height: 120px; padding: 12px; border-radius: 16px; border: 1px solid var(--ob-line); background: var(--ob-card); color: var(--ob-text); text-decoration: none; overflow: hidden; cursor: pointer; text-align: left; font-family: inherit; transition: transform .25s var(--ob-ease), border-color .25s; -webkit-tap-highlight-color: transparent; }
.ob-tile:hover { transform: translateY(-3px); border-color: rgba(var(--ob-mint-rgb), .6); }
.ob-tile__glow { position: absolute; right: -18px; top: -18px; width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--ob-mint-rgb), .28), transparent 70%); pointer-events: none; }
.ob-tile__glow--live { background: radial-gradient(circle, rgba(255, 106, 61, .3), transparent 70%); }
.ob-tile__mark { font-family: var(--ob-display); font-weight: 900; font-size: 20px; line-height: 1; color: var(--ob-white); }
.ob-tile__img { height: 44px; width: auto; max-width: 70%; object-fit: contain; object-position: left; }
/* ตารางค่าย: ทุกการ์ดสัดส่วนเดียวกับการ์ด PNG ของ AMB (737×986) ให้แถวเท่ากัน ไม่ว่ามีรูปหรือไม่ */
.ob-tiles .ob-tile { height: auto; aspect-ratio: 737 / 986; }
/* การ์ดที่มีรูปค่าย: รูปล้วน ไม่มีกรอบ/พื้น/ตัวหนังสือ — ตัว PNG มีขอบมนและชื่อแบรนด์ในตัวแล้ว */
.ob-tile--art { padding: 0; border: 0; background: none; display: block; overflow: visible; border-radius: 0; }
/* การ์ด AMB มีขอบโปร่งซ้าย-ขวาในรูป (กรอบการ์ด 34..565 จาก 599 = 88.6%) — ขยายรูปออกข้างละ 6.4% ให้ตัวการ์ดเต็มช่อง
   ระยะห่างที่เห็นจึงเท่ากับ gap จริง (ผู้ใช้ 2026-10-11 "ใน pc ยังดูห่างไป") */
.ob-tiles .ob-tile--art { margin-inline: -6.4%; }
.ob-tile--art img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .45)); transition: filter .25s; }
.ob-tile--art:hover { border-color: transparent; }
.ob-tile--art:hover img { filter: drop-shadow(0 14px 26px rgba(var(--ob-mint-rgb), .35)); }
.ob-tile--art.ob-tile--off img { filter: grayscale(1) drop-shadow(0 8px 18px rgba(0, 0, 0, .45)); opacity: .55; }
.ob-tile--art.is-busy img { opacity: .5; }
.ob-tile__busy { position: absolute; inset: 0; display: grid; place-items: center; }
.ob-tile__busy .ob-spin { width: 28px; height: 28px; border-width: 3px; }
.ob-tile__name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-tile__sub { font-family: var(--ob-mono); font-size: 11px; color: var(--ob-mint); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-tile--off { opacity: .55; }
.ob-tile--off .ob-tile__sub { color: var(--ob-live-text); }
.ob-tile--off:hover { transform: none; border-color: var(--ob-line); }
.ob-tile--more { align-items: center; justify-content: center; gap: 6px; border: 1px dashed rgba(var(--ob-mint-rgb), .4); background: transparent; color: var(--ob-mint); font-weight: 600; font-size: 13px; text-align: center; }
.ob-tile--more svg { width: 22px; height: 22px; }
@media (min-width: 768px) { .ob-tile { height: 140px; padding: 16px; border-radius: 18px; } .ob-tile__mark { font-size: 24px; } .ob-tile__name { font-size: 14px; } .ob-tile__sub { font-size: 12px; } }

.ob-games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
@media (min-width: 640px) { .ob-games { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ob-games { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 14px; } }
/* แถวเดียวเลื่อนข้างทุกจอ การ์ดเล็ก (ผู้ใช้ 2026-10-11 "เล็กกว่านี้และเป็นแถวเดียว") — เดิมจอ ≥768 เป็นตาราง 6 คอลัมน์ 2 แถว */
.ob-games--rail { display: flex; gap: 10px; overflow-x: auto; padding: 2px 0 6px; scroll-snap-type: x proximity; }
.ob-games--rail .ob-game { flex: none; width: 104px; scroll-snap-align: start; }
@media (min-width: 768px) { .ob-games--rail { gap: 12px; } .ob-games--rail .ob-game { width: 132px; } }

.ob-game { display: flex; flex-direction: column; gap: 7px; color: var(--ob-text); text-decoration: none; min-width: 0; border: 0; background: none; padding: 0; cursor: pointer; text-align: left; font-family: inherit; transition: transform .25s var(--ob-ease); -webkit-tap-highlight-color: transparent; }
.ob-game:hover { transform: translateY(-3px); }
.ob-game:hover .ob-game__art { border-color: rgba(var(--ob-mint-rgb), .6); }
.ob-game__art { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; border: 1px solid var(--ob-line); background: var(--ob-card); display: flex; align-items: flex-end; padding: 10px; transition: border-color .25s; }
.ob-game__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ob-game__abbr { font-family: var(--ob-display); font-weight: 900; font-size: 26px; color: rgba(var(--ob-ink-rgb), .9); line-height: 1; position: relative; }
.ob-game__tag { position: absolute; left: 8px; top: 8px; z-index: 1; }
.ob-game__meta { position: absolute; right: 8px; top: 8px; z-index: 1; font-family: var(--ob-mono); font-size: 11px; color: var(--ob-mint); text-shadow: 0 1px 4px rgba(0, 0, 0, .8); }
.ob-game__name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-game__sub { font-family: var(--ob-mono); font-size: 11px; color: var(--ob-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-game.is-busy .ob-game__art::after { content: ""; position: absolute; inset: 0; background: rgba(var(--ob-bg-rgb), .55); }
@media (min-width: 768px) { .ob-game__name { font-size: 15px; } .ob-game__sub { font-size: 12px; } .ob-game__abbr { font-size: 34px; } }

/* ── ช่องกรอก ─────────────────────────────────────────────────── */

.ob-label { font-size: 13px; color: var(--ob-muted); margin-bottom: 6px; display: flex; justify-content: space-between; gap: 8px; }
.ob-field { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; border-radius: var(--ob-r-md); border: 1px solid rgba(var(--ob-ink-rgb), .12); background: var(--ob-surface); color: var(--ob-muted); transition: border-color .2s; }
.ob-field input, .ob-field select { flex: 1; min-width: 0; background: none; border: 0; color: var(--ob-text); font-family: inherit; font-size: 16px; outline: none; }
.ob-field input::placeholder { color: var(--ob-dim); }
.ob-field input:-webkit-autofill { -webkit-text-fill-color: var(--ob-text); -webkit-box-shadow: 0 0 0 1000px var(--ob-surface) inset; }
.ob-field--ok { border-color: rgba(var(--ob-mint-rgb), .5); }
.ob-field--error { border-color: rgba(255, 106, 61, .6); }
.ob-field--amt { height: 56px; padding: 0 16px; }
.ob-field--amt input { font-family: var(--ob-mono); font-weight: 700; font-size: 24px; text-align: right; color: var(--ob-white); }
.ob-field__prefix { font-family: var(--ob-mono); font-size: 14px; color: var(--ob-muted); padding-right: 10px; border-right: 1px solid rgba(var(--ob-ink-rgb), .12); }
.ob-field__icon { width: 18px; height: 18px; flex: none; }
.ob-field__btn { background: none; border: 0; color: var(--ob-muted); display: grid; place-items: center; cursor: pointer; padding: 0; }
.ob-field__btn svg { width: 18px; height: 18px; }
.ob-help { font-size: 12.5px; color: var(--ob-muted); margin-top: 6px; }
.ob-help b { color: var(--ob-mint); font-weight: 600; }
.ob-help--error { color: var(--ob-live-text); }
.ob-search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: var(--ob-r-md); border: 1px solid rgba(var(--ob-ink-rgb), .12); background: var(--ob-surface); color: var(--ob-muted); }
.ob-search svg { width: 18px; height: 18px; flex: none; }
.ob-search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--ob-text); font-family: inherit; font-size: 15px; outline: none; }
.ob-search__count { font-family: var(--ob-mono); font-size: 11px; padding: 3px 6px; border-radius: 6px; border: 1px solid rgba(var(--ob-ink-rgb), .12); color: var(--ob-muted); }

.ob-amts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ob-amts--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ob-amt { height: 40px; border-radius: 12px; border: 1px solid rgba(var(--ob-ink-rgb), .14); background: var(--ob-surface-2); color: var(--ob-text); font-family: var(--ob-mono); font-weight: 700; font-size: 14px; cursor: pointer; transition: transform .2s, border-color .2s; }
.ob-amt:hover { transform: translateY(-1px); }
.ob-amt.is-on { border-color: var(--ob-mint); background: rgba(var(--ob-mint-rgb), .1); color: var(--ob-mint); }
.ob-amt--orange.is-on { border-color: var(--ob-orange); background: rgba(var(--ob-orange-rgb), .12); color: var(--ob-orange-text); }

/* ตัวเลือกแบบการ์ด (วงเงินโต๊ะ / โปรโมชัน) */
.ob-opt { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px; border-radius: var(--ob-r-md); border: 1px solid rgba(var(--ob-ink-rgb), .12); background: var(--ob-surface-2); cursor: pointer; transition: border-color .2s, background .2s; }
.ob-opt:hover { border-color: rgba(var(--ob-mint-rgb), .5); }
.ob-opt.is-on { border-color: var(--ob-mint); background: rgba(var(--ob-mint-rgb), .08); }
.ob-opt--gold.is-on { border-color: rgba(var(--ob-gold-rgb), .6); background: rgba(var(--ob-gold-rgb), .06); }
.ob-opt input { width: 22px; height: 22px; margin: 0; accent-color: var(--ob-mint); }
.ob-opt--gold input { accent-color: var(--ob-gold); }
.ob-opt__t { font-size: 15px; font-weight: 600; color: var(--ob-white); }
.ob-opt__s { font-size: 12.5px; color: var(--ob-muted); margin-top: 2px; line-height: 1.5; }
.ob-opt__r { font-family: var(--ob-mono); font-size: 14px; font-weight: 700; color: var(--ob-text); text-align: right; font-variant-numeric: tabular-nums; }
.ob-opt__r small { display: block; font-size: 11px; color: var(--ob-muted); font-weight: 500; }

/* ── แผ่นด้านล่าง / overlay ──────────────────────────────────── */

.ob-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(var(--ob-bg-rgb), .6); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); animation: ob-fade .2s both; }
.ob-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 71; max-height: 92vh; overflow-y: auto; border-radius: 26px 26px 0 0; border: 1px solid rgba(var(--ob-ink-rgb), .12); border-bottom: 0; background: linear-gradient(180deg, var(--ob-surface-3), var(--ob-surface)); box-shadow: 0 -24px 60px rgba(0, 0, 0, .6); padding: 12px 18px calc(26px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; animation: ob-up .4s var(--ob-ease) both; }
.ob-sheet__grip { width: 40px; height: 4px; border-radius: 2px; background: rgba(var(--ob-ink-rgb), .18); margin: 0 auto; }
.ob-sheet h2 { font-size: 17px; }
@media (min-width: 768px) { .ob-sheet { left: 50%; right: auto; bottom: 50%; width: min(480px, 92vw); transform: translate(-50%, 50%); border-radius: 24px; border-bottom: 1px solid rgba(var(--ob-ink-rgb), .12); animation: ob-rise .35s var(--ob-ease) both; } .ob-sheet__grip { display: none; } }

.ob-overlay { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; padding: 18px; color: var(--ob-text); background-color: var(--ob-bg); background-image: radial-gradient(circle at 50% 30%, rgba(var(--ob-mint-rgb), .16), transparent 50%), repeating-linear-gradient(60deg, rgba(var(--ob-ink-rgb), .035) 0 1px, transparent 1px 28px), repeating-linear-gradient(-60deg, rgba(var(--ob-ink-rgb), .035) 0 1px, transparent 1px 28px), repeating-linear-gradient(0deg, rgba(var(--ob-ink-rgb), .025) 0 1px, transparent 1px 24px); animation: ob-fade .25s both; }
.ob-overlay__main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center; width: 100%; max-width: 360px; margin: 0 auto; }
.ob-launch__art { width: 168px; height: 168px; border-radius: 28px; padding: 2px; }
.ob-launch__art > div { width: 100%; height: 100%; border-radius: 26px; background: var(--ob-card); display: flex; align-items: flex-end; padding: 14px; box-sizing: border-box; position: relative; overflow: hidden; }
.ob-launch__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ob-launch__bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ob-mint-dark), var(--ob-mint)); animation: ob-bar 8s cubic-bezier(.2, .7, .3, 1) both; }
.ob-launch__facts { width: 100%; padding: 12px 14px; border-radius: var(--ob-r-md); border: 1px solid var(--ob-line); background: var(--ob-surface); display: flex; flex-direction: column; gap: 6px; text-align: left; }
.ob-overlay__foot { display: flex; flex-direction: column; gap: 10px; align-items: center; width: 100%; max-width: 360px; margin: 0 auto; }
.ob-state__ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; border: 1px solid rgba(var(--ob-ink-rgb), .12); background: var(--ob-surface); color: var(--ob-mint); margin: 0 auto; }
.ob-state__ico svg { width: 28px; height: 28px; }
.ob-state__ico--bad { color: var(--ob-live-text); border-color: rgba(255, 106, 61, .4); }
.ob-state__h { font-size: 18px; font-weight: 700; color: var(--ob-white); text-align: center; }
.ob-state__p { font-size: 14px; color: var(--ob-muted); text-align: center; line-height: 1.5; margin: 0; }
.ob-state__code { font-family: var(--ob-mono); font-size: 12px; color: var(--ob-muted); text-align: center; }
.ob-empty { padding: 40px 18px 44px; display: flex; flex-direction: column; gap: 12px; align-items: center; }

/* ── โครงรอโหลด ──────────────────────────────────────────────── */

.ob-skel { border-radius: 12px; background: linear-gradient(90deg, rgba(var(--ob-ink-rgb), .05) 25%, rgba(var(--ob-ink-rgb), .1) 50%, rgba(var(--ob-ink-rgb), .05) 75%); background-size: 200% 100%; animation: ob-shimmer 1.4s linear infinite; }
.ob-skel--tile { height: 120px; border-radius: 16px; }
.ob-skel--game { aspect-ratio: 4 / 5; border-radius: 14px; }
.ob-skel--row { height: 58px; }
.ob-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(var(--ob-ink-rgb), .2); border-top-color: var(--ob-mint); animation: ob-spin .8s linear infinite; display: inline-block; }

/* ── ตารางสองคอลัมน์บนเดสก์ท็อป ─────────────────────────────── */

.ob-two { display: grid; gap: 24px; align-items: start; }
.ob-hero { display: grid; gap: 24px; align-items: stretch; }
.ob-boost { display: grid; gap: 14px; }
@media (min-width: 1024px) {
    .ob-two { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
    .ob-hero { grid-template-columns: minmax(0, 1fr) 400px; }
    .ob-boost { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}
@media (min-width: 640px) and (max-width: 1023px) {
    .ob-boost { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ob-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ob-stat { padding: 12px 12px 10px; border-radius: var(--ob-r-md); border: 1px solid var(--ob-line); background: var(--ob-card-soft); display: flex; flex-direction: column; gap: 6px; }
.ob-stat__k { font-size: 12px; color: var(--ob-muted); }
.ob-stat__v { font-family: var(--ob-mono); font-weight: 700; font-size: 18px; line-height: 1; color: var(--ob-white); font-variant-numeric: tabular-nums; }
.ob-stat__v small { font-size: 12px; color: var(--ob-muted); }
.ob-stat--gold { border-color: rgba(var(--ob-gold-rgb), .4); background: radial-gradient(ellipse at 50% 120%, rgba(var(--ob-gold-rgb), .18), transparent 60%), linear-gradient(160deg, #1a1508, var(--ob-surface)); }
.ob-stat--gold .ob-stat__v { color: var(--ob-gold); }

/* ── ข้อความแจ้ง ─────────────────────────────────────────────── */

.ob-alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--ob-r-lg); border: 1px solid var(--ob-line); background: var(--ob-surface); font-size: 13.5px; color: var(--ob-muted); line-height: 1.5; }
.ob-alert svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.ob-alert b { color: var(--ob-white); font-weight: 700; display: block; font-size: 15px; margin-bottom: 2px; }
.ob-alert--bad { border-color: rgba(255, 106, 61, .45); background: linear-gradient(160deg, #1a0e0a, var(--ob-surface)); color: var(--ob-text); }
.ob-alert--bad svg { color: var(--ob-live-text); }
.ob-alert--ok { border-color: rgba(var(--ob-mint-rgb), .4); color: var(--ob-text); }
.ob-alert--ok svg { color: var(--ob-mint); }
.ob-alert--gold { border-color: rgba(var(--ob-gold-rgb), .4); }
.ob-alert--gold svg { color: var(--ob-gold); }

/* หน้าเก่าที่ยังใช้ .m-page — ให้ความกว้างและพื้นหลังเข้ากับโครงใหม่ */
.m-page { max-width: 640px; }

/* ── ป้ายระดับสมาชิก (การ์ดกระเป๋า) — โลหะตามขั้น: บรอนซ์ เงิน ทอง แพลทินัม เพชร ─────────── */

.ob-tier { --tier-a: #2a3140; --tier-b: var(--ob-surface-3); --tier-ink: var(--ob-text); --tier-glow: rgba(var(--ob-ink-rgb), .08); position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 5px; border-radius: 999px; border: 1px solid rgba(var(--ob-ink-rgb), .12); background: var(--ob-surface-2); color: var(--ob-text); text-decoration: none; white-space: nowrap; overflow: hidden; flex: none; transition: transform .25s var(--ob-ease), box-shadow .25s; box-shadow: 0 0 0 rgba(0, 0, 0, 0); }
.ob-tier::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 50%, var(--tier-glow), transparent 60%); pointer-events: none; }
.ob-tier:hover { transform: translateY(-2px); box-shadow: 0 10px 26px var(--tier-glow); }
.ob-tier__ic { position: relative; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, var(--tier-a), var(--tier-b)); color: var(--tier-ink); box-shadow: inset 0 1px 0 rgba(var(--ob-ink-rgb), .45), 0 2px 6px rgba(0, 0, 0, .35); flex: none; }
.ob-tier__ic svg { width: 12px; height: 12px; filter: drop-shadow(0 1px 0 rgba(var(--ob-ink-rgb), .25)); }
.ob-tier__body { position: relative; display: flex; flex-direction: column; line-height: 1.1; }
.ob-tier__body b, .ob-tier > b { font-family: var(--ob-display); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; background: linear-gradient(160deg, var(--tier-a), var(--tier-b) 70%, var(--tier-a)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ob-tier__body small { font-family: var(--ob-mono); font-size: 11px; color: var(--ob-muted); margin-top: 2px; }
.ob-tier__bar { position: absolute; left: 46px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: rgba(var(--ob-ink-rgb), .08); overflow: hidden; display: block; }
.ob-tier__bar > i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--tier-b), var(--tier-a)); }
.ob-tier--bronze   { --tier-a: #e0a46b; --tier-b: #8a4e1f; --tier-ink: #2a1505; --tier-glow: rgba(224, 164, 107, .22); }
.ob-tier--silver   { --tier-a: #f1f4f8; --tier-b: #8e99a6; --tier-ink: #1f2630; --tier-glow: rgba(200, 210, 222, .22); }
.ob-tier--gold     { --tier-a: #ffe08a; --tier-b: var(--ob-gold-dark); --tier-ink: #3a2400; --tier-glow: rgba(255, 209, 102, .26); }
.ob-tier--platinum { --tier-a: #d8ecff; --tier-b: #5f8fc9; --tier-ink: #0f2540; --tier-glow: rgba(168, 199, 250, .24); }
.ob-tier--diamond  { --tier-a: #b7f7ff; --tier-b: #2d8fb0; --tier-ink: #06303d; --tier-glow: rgba(124, 240, 255, .26); }
.ob-tier--skel .ob-tier__body b, .ob-tier--skel > b, .ob-tier--skel .ob-tier__ic { animation: ob-pulse 1.4s ease-in-out infinite; }
.ob-tier--skel .ob-tier__body b, .ob-tier--skel > b { background: none; color: var(--ob-muted); }

/* ── การ์ดหมวดเกม (ObCatChips): ไอคอนภาพสีใหญ่อยู่บน ชื่ออยู่ล่าง (ผู้ใช้ 2026-10-11: "หมวดใช้แบบนี้สวยกว่าแบบเดิม")
      แถวเดียวปัดเลื่อน ("ทำเป็นแบบเลื่อนสไลต์") หยุดตรงขอบการ์ด · มือถือเห็น 4 ใบครึ่งให้รู้ว่าปัดต่อได้
      · เลือกแล้วขอบมินต์เรืองแสง ไอคอนยกขึ้นนิดหนึ่ง ─────────── */

.ob-cats { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: 2px; padding: 4px 2px 10px; }
.ob-cats > .ob-cat { flex: 0 0 calc((100% - 4 * 10px) / 4.5); scroll-snap-align: start; }
.ob-cat { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 0; padding: 12px 4px 10px; border-radius: 18px; border: 1.5px solid rgba(var(--ob-ink-rgb), .08); background: var(--ob-surface); color: var(--ob-text); font-family: inherit; font-weight: 600; font-size: 13px; line-height: 1.2; cursor: pointer; text-decoration: none; transition: transform .25s var(--ob-ease), border-color .25s, color .25s, background .25s, box-shadow .25s; -webkit-tap-highlight-color: transparent; box-shadow: 0 2px 10px rgba(var(--ob-ink-rgb), .06); }
.ob-cat:hover { transform: translateY(-2px); border-color: rgba(var(--ob-mint-rgb), .45); }
.ob-cat__ic { width: 52px; height: 52px; display: grid; place-items: center; color: var(--ob-muted); transition: transform .3s var(--ob-ease); }
.ob-cat__ic svg { width: 30px; height: 30px; }
.ob-cat__ic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ob-cat__t { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-cat.is-on { border-color: var(--ob-mint); background: rgba(var(--ob-mint-rgb), .1); color: var(--ob-text); font-weight: 700; box-shadow: 0 8px 22px rgba(var(--ob-mint-rgb), .25); }
.ob-cat.is-on .ob-cat__ic { transform: translateY(-2px) scale(1.06); color: var(--ob-mint); }
.ob-cat--lotto { border-color: rgba(var(--ob-gold-rgb), .45); color: var(--ob-gold); }
.ob-cat--lotto:hover { border-color: var(--ob-gold); box-shadow: 0 8px 22px rgba(var(--ob-gold-rgb), .2); }
.ob-cat__arrow { position: absolute; top: 8px; right: 8px; width: 13px; height: 13px; opacity: .7; }
.ob-cat:focus-visible { outline: 2px solid var(--ob-mint); outline-offset: 2px; }
@media (min-width: 768px) {
  .ob-cats { gap: 12px; }
  .ob-cats > .ob-cat { flex-basis: 112px; }
  .ob-cat { font-size: 14px; padding: 14px 6px 12px; }
  .ob-cat__ic { width: 64px; height: 64px; }
}

/* ── พื้นหลังมีชีวิต (08/10/2569) — แสงเรืองมิ้นต์/ทองลอยช้า ๆ บนตารางจาง · transform+blur ล้วน ไม่กิน CPU · ปิดเมื่อ reduced-motion ── */
.ob-ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ob-ambient::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(var(--ob-ink-rgb), .035) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--ob-ink-rgb), .035) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 70%); mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 70%); }
.ob-ambient i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .45; will-change: transform; }
.ob-ambient__a { width: 46vw; height: 46vw; max-width: 520px; max-height: 520px; left: -14vw; top: 10vh; background: var(--ob-mint-dark); animation: ob-drift-a 24s ease-in-out infinite alternate; }
.ob-ambient__b { width: 40vw; height: 40vw; max-width: 460px; max-height: 460px; right: -14vw; top: 55vh; background: var(--ob-gold-dark); animation: ob-drift-b 28s ease-in-out infinite alternate; }
@keyframes ob-drift-a { from { transform: translate(0, 0) scale(1); } to { transform: translate(18vw, 18vh) scale(1.2); } }
@keyframes ob-drift-b { from { transform: translate(0, 0) scale(1.1); } to { transform: translate(-16vw, -16vh) scale(.9); } }
html[data-skin="lotto"] .ob-ambient { display: none; }
@media (prefers-reduced-motion: reduce) { .ob-ambient i { animation: none; } }

/* ── หน้าเข้าสู่ระบบ / สมัครสมาชิก (ผู้ใช้ 2026-10-17 "ออกแบบหน้าสมัคร และ ล็อคอินใหม่") ──
   รังผึ้งทองจางบนสุดของจอ (ชุดเดียวกับการ์ดกระเป๋า) · ฟอร์มอยู่ในการ์ดเดียว · ทุกช่องมีไอคอนนำหน้า */
.au-page { position: relative; min-height: 100vh; max-width: 460px; margin: 0 auto; padding: 18px 18px 24px; box-sizing: border-box; display: flex; flex-direction: column; isolation: isolate; }
.au-comb {
  position: absolute; left: 50%; top: 0; z-index: -1; width: 640px; max-width: 100vw; height: 300px; transform: translateX(-50%); pointer-events: none; background: var(--ob-gold); opacity: .3;
  --comb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20.78' height='36'%3E%3Cpath d='M10.39 0L20.78 6V18L10.39 24L0 18V6ZM10.39 24V36' fill='none' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E");
  -webkit-mask: var(--comb) 50% 0 / 20.78px 36px repeat, radial-gradient(60% 100% at 50% 0, #000, transparent 75%) no-repeat;
  -webkit-mask-composite: source-in;
  mask: var(--comb) 50% 0 / 20.78px 36px repeat, radial-gradient(60% 100% at 50% 0, #000, transparent 75%) no-repeat;
  mask-composite: intersect;
}
.au-card { display: flex; flex-direction: column; gap: 16px; padding: 14px 14px 18px; border-radius: 22px; border: 1px solid var(--ob-line); background: var(--ob-surface); box-shadow: 0 18px 44px rgba(0, 0, 0, .14); }
/* ไอคอนนำหน้าในช่องกรอก — แทน "+66" และป้ายตัวหนังสือ · โฟกัสแล้วเป็นมินต์ */
.ob-field__ic { display: grid; place-items: center; flex: none; padding-right: 10px; border-right: 1px solid rgba(var(--ob-ink-rgb), .12); color: var(--ob-muted); transition: color .2s; }
.ob-field__ic svg { width: 18px; height: 18px; }
.ob-field:focus-within .ob-field__ic { color: var(--ob-mint); }
.au-foot { margin-top: auto; padding-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.au-foot__links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ob-muted); }
.au-foot__links a { color: var(--ob-muted); text-decoration: none; }
