/* SUPERLSM99 ธีมใหม่ ui=2 — mobile first, บนจอคอมแสดงเป็นกรอบมือถือกลางจอ */
:root {
    --blue: #1f5fe0;
    --blue-d: #1648b8;
    --orange: #ff7a1a;
    --orange-d: #f05f00;
    --navy: #0d1b4c;
    --text: #1d2747;
    --muted: #6b7591;
    --bg: #f4f7fd;
    --panel: #e9f0fc;
    --line: #dbe4f5;
    --app-w: 440px;
    --bn-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Kanit', 'Noto Sans Thai', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }

.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* โครงหลัก */
.app {
    position: relative;
    max-width: var(--app-w);
    min-height: 100vh;
    margin: 0 auto;
    background: #fff;
    padding-bottom: calc(var(--bn-h) + env(safe-area-inset-bottom));
}

/* header */
.hd {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; gap: 10px;
    height: 56px; padding: 0 12px;
    background: #fff;
    box-shadow: 0 1px 0 var(--line);
}
.hd-logo { margin-right: auto; min-width: 0; }
.hd-logo img { height: 26px; width: auto; }
/* ไอคอน LINE / Telegram วงกลมสีตามแพลตฟอร์ม (ลิงก์ชุดเดียวกับ #sheet-contact) */
.hd-sns { display: flex; gap: 8px; flex: none; }
.hd-sns-item {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    box-shadow: 0 2px 6px rgba(13, 27, 76, .18);
}
.hd-sns-item img { width: 20px; height: 20px; }
.hd-sns-item.is-line { background: #06C755; }
.hd-sns-item.is-tg { background: #2AABEE; }
.hd-sns-item.is-tg img { margin-left: -2px; }

/* ปุ่ม */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 48px; padding: 0 16px;
    border-radius: 10px;
    font-size: 17px; font-weight: 500; color: #fff;
    box-shadow: 0 3px 8px rgba(13, 27, 76, .15);
    transition: transform .1s, filter .15s;
}
.btn:active { transform: scale(.97); }
.btn:hover { filter: brightness(1.06); }
.btn-blue { background: linear-gradient(180deg, #2c6ff0, var(--blue-d)); }
.btn-orange { background: linear-gradient(180deg, #ff8c32, var(--orange-d)); }
.btn-block { width: 100%; }

/* hero slider (Swiper — /js/swiper-bundle.min.js ของเว็บเดิม) */
.hero { position: relative; overflow: hidden; }
.hero-slide { display: block; }
.hero-slide img { width: 100%; aspect-ratio: 960 / 500; object-fit: cover; }
.hero .hero-dots {
    position: absolute; left: 0; right: 0; bottom: 10px; z-index: 2;
    display: flex; justify-content: center; align-items: center; gap: 6px;
}
.hero .hero-dots .swiper-pagination-bullet {
    width: 9px; height: 9px; margin: 0; border-radius: 9px;
    background: rgba(255, 255, 255, .85); opacity: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
    transition: width .25s, background-color .25s;
}
.hero .hero-dots .swiper-pagination-bullet-active { width: 18px; background: var(--orange); }

/* ส่วนเนื้อหา */
.wrap { padding: 12px 12px 4px; }

.auth { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* จุดเด่น (ข้อมูล กดไม่ได้) */
.trust {
    display: grid; grid-template-columns: repeat(3, 1fr);
    padding: 12px 0 10px;
    list-style: none;
    background: var(--panel);
    border-radius: 12px;
}
.trust li {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 0 4px;
    font-size: 14px; font-weight: 500; color: var(--navy); text-align: center; line-height: 1.25;
}
.trust li + li { border-left: 1px solid var(--line); }
.trust-ic {
    display: grid; place-items: center;
    width: 38px; height: 38px; border-radius: 50%;
    color: var(--blue); background: #fff;
    box-shadow: 0 2px 6px rgba(31, 95, 224, .15);
}
.trust-ic .ic { width: 22px; height: 22px; }

.sec-hd { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 10px; }
.sec-ttl {
    position: relative;
    font-size: 22px; font-weight: 600; color: var(--navy);
    padding-bottom: 4px;
}
.sec-ttl::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 28px; height: 3px; border-radius: 3px; background: var(--orange);
}
.sec-more {
    display: inline-flex; align-items: center; gap: 2px;
    padding: 4px 8px 4px 12px;
    font-size: 13px; color: var(--navy);
    background: var(--panel); border-radius: 20px;
}
.sec-more .ic { width: 16px; height: 16px; }

.svc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.svc-item { border-radius: 10px; overflow: hidden; box-shadow: 0 3px 10px rgba(13, 27, 76, .12); }
.svc-item img { width: 100%; aspect-ratio: 340 / 155; object-fit: cover; transition: transform .25s; }
.svc-item:hover img { transform: scale(1.04); }

/* ผลหวยล่าสุด — grid 2 คอลัมน์แบบ 77up.lol .u2-results-grid: ซ้ายหวยรัฐบาล ขวาลาว/ฮานอยซ้อนกัน */
.rs-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: stretch; }
.rs-main {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column;
    padding: 10px 8px;
    color: #fff;
    background: linear-gradient(160deg, #2c6ff0, var(--navy));
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(13, 27, 76, .22);
    container-type: inline-size;
}
.rs-main::before {
    content: ""; position: absolute; right: -40px; top: -40px;
    width: 120px; height: 120px; border-radius: 50%;
    background: rgba(255, 255, 255, .07);
}
.rs-hd { position: relative; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.rs-hd > div { min-width: 0; }
.rs-flag { flex: none; width: 24px; height: 24px; border-radius: 50%; box-shadow: 0 0 0 1.5px #fff; }
.rs-flag-glo { width: 30px; height: 30px; border-radius: 0; box-shadow: none; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35)); }
.rs-hd h3 { font-size: 13px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-hd p { font-size: 11px; line-height: 1.3; opacity: .8; }
.rs-first {
    position: relative;
    margin: auto 0 6px; padding: 10px 4px 8px;
    text-align: center;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
}
.rs-first span { display: block; font-size: clamp(12px, 7cqw, 15px); font-weight: 500; color: #ffd8b8; }
.rs-first strong {
    display: block;
    font-size: clamp(20px, 14cqw, 30px); font-weight: 700; line-height: 1.15; letter-spacing: .04em;
    font-variant-numeric: tabular-nums;
    color: #fff; text-shadow: 0 2px 10px rgba(255, 122, 26, .55);
}
.rs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.rs-box {
    padding: 5px 2px; text-align: center;
    background: rgba(255, 255, 255, .12); border-radius: 10px;
}
.rs-box span { display: block; font-size: 10.5px; line-height: 1.3; opacity: .85; }
.rs-box strong { display: block; font-size: clamp(15px, 10cqw, 22px); font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; color: #ffb36b; }
.rs-btn {
    display: flex; align-items: center; justify-content: center; gap: 2px;
    margin-top: 8px; height: 34px;
    font-size: 12.5px; font-weight: 500; color: #fff;
    background: linear-gradient(180deg, #ff8c32, var(--orange-d));
    border-radius: 999px;
}
.rs-btn .ic { width: 14px; height: 14px; }
/* การ์ดหวยรัฐบาล: .rs-first + .rs-row + .rs-btn อยู่กึ่งกลางแนวตั้งในพื้นที่ใต้ .rs-hd (.rs-first margin-top:auto คู่กับตัวนี้) */
.rs-main > .rs-btn { margin-bottom: auto; }
.rs-side { display: grid; gap: 8px; align-content: start; }
.rs-card {
    display: flex; flex-direction: column;
    padding: 8px 6px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 3px 10px rgba(13, 27, 76, .08);
}
.rs-card .rs-hd { margin-bottom: 6px; }
.rs-card .rs-flag { box-shadow: 0 0 0 1px var(--line); }
.rs-card .rs-hd h3 { font-size: 12px; font-weight: 500; color: var(--navy); }
.rs-card .rs-hd p { font-size: 10px; color: var(--muted); opacity: 1; }
.rs-card .rs-row { gap: 4px; }
.rs-card .rs-box { padding: 4px 2px; background: var(--panel); }
.rs-card .rs-box span { font-size: 9.5px; color: var(--muted); opacity: 1; }
.rs-card .rs-box strong { font-size: 14px; color: var(--blue); letter-spacing: .05em; }
.rs-btn-sm { margin-top: 6px; height: 30px; font-size: 11.5px; color: var(--blue); background: var(--panel); }

/* กิจกรรมพิเศษ — การ์ดไอคอนซ้าย + หัวข้อ (อังกฤษ/ไทย) และคำอธิบายขวา */
.pk-list { display: grid; gap: 10px; }
.pk-card {
    position: relative; display: flex; align-items: center; gap: 12px;
    padding: 12px 34px 12px 12px; overflow: hidden;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 4px 14px rgba(13, 27, 76, .07);
}
.pk-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(180deg, var(--blue), var(--orange)); }
.pk-ic {
    flex: 0 0 72px; height: 72px; display: flex; align-items: center; justify-content: center; border-radius: 14px;
    background: radial-gradient(circle at 70% 25%, #ffe7d4 0, rgba(255, 231, 212, 0) 55%), linear-gradient(150deg, #dbe7ff, #eef3ff);
}
.pk-ic img { width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(13, 27, 76, .22)); }
.pk-tx { display: flex; flex-direction: column; min-width: 0; }
.pk-en { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; color: var(--orange-d); }
.pk-th { font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--navy); }
.pk-desc { margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.pk-go { position: absolute; right: 10px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--blue); }

/* โปรโมชั่น — การ์ดแถวละ 1 (.pm) + sheet รายละเอียด (.sheet-pro) */
.pm { scroll-margin-top: 64px; } /* .bn โปรโมชั่น → /#promotion ไม่ให้ .hd (sticky 56px) บัง */
.pm-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.pm-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 4px 14px rgba(13, 27, 76, .07);
}
.pm-card img { display: block; width: 100%; aspect-ratio: 960 / 500; object-fit: cover; }
.pm-tx { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; }
.pm-ttl, .pm-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pm-ttl { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--navy); }
.pm-desc { font-size: 13px; line-height: 1.4; color: var(--muted); }
.sheet-pro .sheet-box { padding: 0 16px calc(20px + env(safe-area-inset-bottom)); transition: transform .36s cubic-bezier(.22, 1, .36, 1); }
.pro-hd { position: sticky; top: 0; z-index: 2; height: 30px; margin: 0 -16px; background: #fff; }
.pro-grip { position: absolute; left: 50%; top: 9px; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: #d3dbec; }
.pro-x {
    position: absolute; right: 8px; top: 6px; width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border: 0; border-radius: 50%; background: var(--panel); color: var(--navy); cursor: pointer;
}
.pro-x .ic { width: 18px; height: 18px; }
.pro-img { display: block; width: 100%; aspect-ratio: 960 / 500; object-fit: cover; margin-top: 8px; border-radius: 12px; box-shadow: 0 4px 14px rgba(13, 27, 76, .15); }
.pro-ttl { margin: 14px 0 8px; font-size: 19px; font-weight: 600; line-height: 1.35; color: var(--navy); }
.pro-detail { padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.65; color: var(--text); overflow-wrap: anywhere; }
/* รายละเอียดจาก editor มี font-family/font-size inline — ใช้ฟอนต์ของธีม */
.pro-detail * { font-family: inherit !important; font-size: inherit !important; max-width: 100%; }
.pro-detail h1, .pro-detail h2, .pro-detail h3, .pro-detail h4 { margin: 0 0 6px; font-size: 15px !important; font-weight: 600; color: var(--blue-d); }
.pro-detail p { margin: 0 0 6px; }
.pro-detail ul, .pro-detail ol { margin: 0 0 8px; padding-left: 20px; }
.pro-detail ul { list-style: disc; }
.pro-detail ol { list-style: decimal; }
.pro-detail strong, .pro-detail b { font-weight: 600; color: var(--navy); }
.pro-detail a { color: var(--blue); text-decoration: underline; }
.pro-detail img { height: auto; border-radius: 8px; }

/* การ์ด / accordion */
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}
.card summary {
    list-style: none; cursor: pointer;
    position: relative;
    padding: 12px 40px 12px 14px;
    font-weight: 500; color: var(--navy);
}
.card summary::-webkit-details-marker { display: none; }
.card summary::after {
    content: ""; position: absolute; right: 16px; top: 50%;
    width: 8px; height: 8px; margin-top: -6px;
    border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
    transform: rotate(45deg); transition: transform .2s;
}
.card[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.seo-body, .faq-body { padding: 0 14px 14px; font-size: 14px; color: var(--muted); }
.seo-body h1, .seo-body h2, .seo-body h3 { font-size: 16px; color: var(--navy); margin: 10px 0 4px; }
.seo-body p, .faq-body p { margin: 0 0 8px; }
.seo-body img { display: none; }
.faq { display: grid; gap: 8px; margin-top: 10px; }

/* footer */
.ft { margin-top: 16px; padding: 12px; text-align: center; background: var(--panel); font-size: 13px; color: var(--muted); }
.ft-age { display: flex; align-items: center; justify-content: center; gap: 8px; }
.ft-18 {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border: 2px solid var(--navy); border-radius: 50%;
    font-size: 11px; font-weight: 600; color: var(--navy);
}
.ft-copy { margin-top: 6px; font-size: 12px; }

/* bottom nav */
.bn {
    position: fixed; z-index: 30; bottom: 0; left: 50%;
    width: 100%; max-width: var(--app-w);
    transform: translateX(-50%);
    display: grid; grid-template-columns: repeat(5, 1fr);
    height: calc(var(--bn-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff;
    box-shadow: 0 -2px 12px rgba(13, 27, 76, .1);
}
.bn-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    font-size: 12px; color: var(--blue);
}
.bn-item .ic { width: 24px; height: 24px; }
.bn-main { justify-content: flex-end; padding-bottom: 6px; color: var(--orange); font-weight: 500; }
.bn-main-ic {
    display: flex; align-items: center; justify-content: center;
    width: 54px; height: 54px; margin-top: -26px;
    border: 4px solid #fff; border-radius: 50%;
    background: linear-gradient(180deg, #ff8c32, var(--orange-d));
    color: #fff;
    box-shadow: 0 4px 12px rgba(240, 95, 0, .4);
}

/* bottom sheet / popup */
/* z-index เหนือ LIVECHAT (#livechatcontroller .chat-btn = 9999) */
.sheet { position: fixed; inset: 0; z-index: 10000; visibility: hidden; }
.sheet.is-open { visibility: visible; }
.sheet-bg { position: absolute; inset: 0; background: rgba(5, 12, 35, .55); opacity: 0; transition: opacity .2s; }
.sheet.is-open .sheet-bg { opacity: 1; }
.sheet-box {
    position: absolute; bottom: 0; left: 50%;
    width: 100%; max-width: var(--app-w);
    max-height: 90vh; overflow-y: auto;
    padding: 22px 16px calc(22px + env(safe-area-inset-bottom));
    background: #fff;
    border-radius: 18px 18px 0 0;
    transform: translate(-50%, 100%);
    transition: transform .25s ease;
}
.sheet.is-open .sheet-box { transform: translate(-50%, 0); }
.sheet-x { position: absolute; right: 10px; top: 6px; font-size: 30px; line-height: 1; color: var(--muted); padding: 4px 8px; }
.sheet-ttl { font-size: 20px; font-weight: 600; color: var(--navy); margin-bottom: 14px; }

.menu { display: grid; padding-top: 10px; }
.menu a { padding: 12px 4px; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--navy); }
.menu a:last-child { border-bottom: 0; }

/* ---------- เข้าสู่ระบบ (#sheet-login) ---------- */
.sheet-login .sheet-box {
    padding: 0 0 calc(18px + env(safe-area-inset-bottom));
    transition: transform .36s cubic-bezier(.22, 1, .36, 1);
}
.sheet-box.is-dragging { transition: none; }

/* หัวสีน้ำเงิน + แถบความเร็วเอียงแบบโลโก้ */
.lg-hd {
    position: relative; overflow: hidden;
    padding: 10px 20px 30px;
    color: #fff;
    background: linear-gradient(135deg, #0d1b4c 0%, #163a9c 55%, var(--blue) 100%);
    border-radius: 18px 18px 0 0;
    touch-action: none;
}
.lg-hd::before {
    content: ""; position: absolute; top: -40%; right: -20px;
    width: 200px; height: 180%;
    background: linear-gradient(90deg,
        transparent 0 22%, var(--orange) 22% 34%, transparent 34% 46%,
        rgba(255, 255, 255, .16) 46% 53%, transparent 53% 64%,
        rgba(255, 140, 50, .5) 64% 69%, transparent 69%);
    transform: skewX(-24deg);
}
.lg-hd::after {
    content: ""; position: absolute; left: -60px; bottom: -80px;
    width: 220px; height: 160px;
    background: radial-gradient(closest-side, rgba(255, 255, 255, .14), transparent);
}
.lg-hd > * { position: relative; z-index: 1; }
.lg-grip { display: block; width: 40px; height: 4px; margin: 0 auto 14px; border-radius: 4px; background: rgba(255, 255, 255, .45); }
.lg-x {
    position: absolute; top: 14px; right: 14px;
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255, 255, 255, .16); color: #fff;
    z-index: 2;
}
.lg-x .ic { width: 18px; height: 18px; }
.lg-eyebrow { font-size: 12px; font-weight: 600; font-style: italic; letter-spacing: .08em; color: rgba(255, 255, 255, .75); }
.lg-eyebrow b { color: #ffb347; font-weight: 700; }
.lg-ttl { margin-top: 2px; font-size: 30px; font-weight: 800; font-style: italic; line-height: 1.15; }
.lg-sub { margin-top: 4px; font-size: 14px; color: rgba(255, 255, 255, .82); }

.lg-form {
    position: relative; z-index: 1;
    display: grid; gap: 12px;
    margin-top: -16px; padding: 22px 16px 0;
    background: #fff;
    border-radius: 18px 18px 0 0;
}

/* ช่องกรอก label ลอย */
.fl {
    position: relative;
    display: flex; align-items: center;
    height: 58px;
    border: 1.5px solid var(--line); border-radius: 14px;
    background: var(--bg);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.fl > .ic { position: absolute; left: 14px; color: var(--muted); transition: color .15s; }
.fl input {
    width: 100%; height: 100%;
    padding: 20px 14px 4px 46px;
    border: 0; outline: 0; border-radius: 14px; background: none;
    font: inherit; font-size: 16px; color: var(--text);
}
.fl input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px var(--bg) inset; }
.fl label {
    position: absolute; left: 46px; top: 50%;
    transform: translateY(-50%);
    font-size: 16px; color: var(--muted);
    pointer-events: none;
    transition: top .15s, font-size .15s, color .15s;
}
.fl input:focus + label,
.fl input:not(:placeholder-shown) + label,
.fl input:-webkit-autofill + label { top: 15px; font-size: 12px; font-weight: 500; color: var(--blue); }
.fl:focus-within { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(31, 95, 224, .12); }
.fl:focus-within > .ic { color: var(--blue); }
.fl.is-invalid { border-color: #e5484d; box-shadow: 0 0 0 4px rgba(229, 72, 77, .12); }
#lg-pass { padding-right: 52px; }
.fl-eye {
    position: absolute; right: 6px;
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 10px;
    color: var(--muted);
}
.fl-eye .ic-hide,
.fl-eye[aria-pressed="true"] .ic-show { display: none; }
.fl-eye[aria-pressed="true"] .ic-hide { display: block; }

.lg-err {
    display: none; align-items: flex-start; gap: 8px;
    padding: 10px 12px; border-radius: 12px;
    background: #fff1f1; color: #c0262d;
    font-size: 14px; line-height: 1.45;
}
.lg-err.is-show { display: flex; }
.lg-err .ic { width: 20px; height: 20px; }

.lg-submit { height: 54px; margin-top: 2px; border-radius: 14px; font-size: 18px; font-weight: 600; }
.lg-spin {
    display: none; width: 20px; height: 20px;
    border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%;
    animation: ui2-spin .7s linear infinite;
}
.lg-form.is-loading .lg-spin { display: inline-block; }
.lg-form.is-loading .lg-submit { pointer-events: none; filter: saturate(.8); }
.lg-form.is-shake { animation: ui2-shake .4s; }

.lg-forgot { justify-self: center; padding: 4px 8px; font-size: 14px; color: var(--muted); }
.lg-forgot b { font-weight: 500; color: var(--blue); }
.lg-or { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.lg-or::before, .lg-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.lg-reg {
    height: 50px; border-radius: 14px;
    border: 1.5px solid var(--orange);
    background: #fff; color: var(--orange-d);
    box-shadow: none;
}
.lg-reg:hover { background: #fff6ef; }

/* ---------- สมัครสมาชิก (#sheet-register) ใช้หน้าตาเดียวกับ #sheet-login ---------- */
.fl.has-eye input { padding-right: 52px; }
.fl-ok {
    position: absolute; right: 16px;
    color: #16a34a;
    opacity: 0; transform: scale(.6);
    transition: opacity .15s, transform .15s;
}
.fl.is-match .fl-ok { opacity: 1; transform: none; }

.rg-steps { display: flex; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.rg-steps li {
    position: relative; flex: 1;
    padding-top: 9px;
    font-size: 12px; color: rgba(255, 255, 255, .6);
}
.rg-steps li::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0;
    height: 4px; border-radius: 4px;
    background: rgba(255, 255, 255, .22);
    transition: background .2s;
}
.rg-steps li.is-on { color: #fff; font-weight: 500; }
.rg-steps li.is-on::before { background: var(--orange); }

#register .rg-panel { display: none; gap: 12px; }
#register[data-step="1"] [data-panel="1"],
#register[data-step="age"] [data-panel="age"],
#register[data-step="2"] [data-panel="2"] { display: grid; }
#register [data-show] { display: none; }
#register[data-step="1"] [data-show~="1"],
#register[data-step="2"] [data-show~="2"] { display: flex; }

.rg-submit { background: linear-gradient(180deg, #ff8c32, var(--orange-d)); }
.lg-forgot { align-items: center; gap: 2px; }
.lg-forgot .ic { width: 18px; height: 18px; }

.rg-age { justify-items: center; text-align: center; padding: 4px 0; }
.rg-age-badge {
    display: flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; border-radius: 50%;
    border: 3px solid var(--orange);
    font-size: 20px; font-weight: 700; font-style: italic; color: var(--orange-d);
}
.rg-age-ttl { font-size: 18px; font-weight: 600; color: var(--navy); }
.rg-age-txt { margin-top: -6px; font-size: 14px; color: var(--muted); }
.rg-ghost { background: var(--panel); color: var(--navy); box-shadow: none; }

.rg-label { font-size: 14px; font-weight: 500; color: var(--navy); }
.rg-banks {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
    max-height: 200px; overflow-y: auto; padding: 2px;
}
.rg-bank {
    position: relative;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 8px 2px;
    border: 1.5px solid var(--line); border-radius: 12px;
    text-align: center; cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.rg-bank input { position: absolute; opacity: 0; pointer-events: none; }
.rg-bank-logo { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; }
.rg-bank-logo img { width: 24px; height: 24px; object-fit: contain; }
.rg-bank-name { font-size: 11px; line-height: 1.25; color: var(--text); overflow-wrap: anywhere; }
.rg-bank:focus-within { border-color: var(--blue); }
.rg-bank.is-on { border-color: var(--blue); background: #f0f5ff; box-shadow: 0 0 0 3px rgba(31, 95, 224, .12); }
.rg-banks.is-invalid { border-radius: 12px; box-shadow: 0 0 0 2px rgba(229, 72, 77, .5); }

@keyframes ui2-spin { to { transform: rotate(360deg); } }
@keyframes ui2-shake {
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}
@media (prefers-reduced-motion: reduce) {
    .sheet-box, .sheet-bg { transition: none; }
    .lg-form.is-shake { animation: none; }
}

#sheet-contact .contact { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.contact-item {
    display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 10px 16px; border-radius: 12px;
    font-size: 16px; font-weight: 600; color: #fff;
}
.contact-item img { width: 28px; height: 28px; flex: none; }
.contact-item.is-line { background: #06C755; }
.contact-item.is-tg { background: #2AABEE; }

body.is-locked { overflow: hidden; }

/* ---------- หน้าย่อย (desktop2/*.php) ---------- */
.crumb {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 12px;
    font-size: 13px; color: var(--muted);
    white-space: nowrap; overflow: hidden;
    background: var(--bg);
}
.crumb > * { flex: none; }
.crumb > :last-child { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.crumb a { color: var(--blue); }
.crumb > * + *::before { content: "›"; margin-right: 6px; color: var(--muted); }

.pg-banner { display: block; }
.pg-banner img { width: 100%; aspect-ratio: 960 / 500; object-fit: cover; }
.pg-ttl { margin: 4px 0 14px; line-height: 1.35; }
.pg-ttl + .auth { margin-top: -2px; }
.pg-cta { margin-top: 14px; }
.pg-h1 { font-size: 21px; font-weight: 600; line-height: 1.4; color: var(--navy); }

/* บทความจาก editor (SEO) */
.prose { font-size: 15px; line-height: 1.75; color: var(--text); overflow-wrap: anywhere; }
.wrap.prose { padding: 14px 14px 4px; }
.prose > :first-child { margin-top: 0; }
.prose h1 { margin: 4px 0 12px; font-size: 22px; font-weight: 600; line-height: 1.4; color: var(--navy); }
.prose h2 {
    position: relative;
    margin: 22px 0 8px; padding-left: 12px;
    font-size: 19px; font-weight: 600; line-height: 1.4; color: var(--navy);
}
.prose h2::before {
    content: ""; position: absolute; left: 0; top: 4px; bottom: 4px;
    width: 4px; border-radius: 4px; background: var(--orange);
}
.prose h3 { margin: 18px 0 6px; font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--blue-d); }
.prose p { margin: 0 0 12px; }
.prose strong, .prose b { font-weight: 600; color: var(--navy); }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.prose ul, .prose ol { margin: 0 0 12px; padding-left: 22px; }
.prose li { margin-bottom: 4px; }
.prose img { margin: 12px auto; border-radius: 10px; }
.prose hr { margin: 18px 0; border: 0; border-top: 1px solid var(--line); }
.prose table { display: block; max-width: 100%; overflow-x: auto; margin: 0 0 12px; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { padding: 6px 8px; border: 1px solid var(--line); }
.prose iframe, .prose video { max-width: 100%; }

/* การ์ดข่าว / บทความ */
.nw { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nw-item {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
    box-shadow: 0 3px 10px rgba(13, 27, 76, .08);
}
.nw-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--panel); }
.nw-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.nw-item:hover .nw-img img { transform: scale(1.04); }
.nw-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 8px 10px 10px; }
.nw-ttl {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--navy);
}
.nw-date, .art-date { display: flex; align-items: center; gap: 4px; margin-top: auto; font-size: 12px; color: var(--muted); }
.nw-date .ic, .art-date .ic { width: 14px; height: 14px; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 16px 0 4px; }
.pager .btn {
    height: 36px; min-width: 36px; padding: 0 10px;
    border-radius: 10px; font-size: 14px; font-weight: 500;
    color: var(--navy); background: var(--panel); box-shadow: none;
}
.pager .btn-primary { color: #fff; background: var(--blue); }
.pager .btn[disabled] { opacity: .45; cursor: default; }
.empty { padding: 24px 12px; text-align: center; font-size: 14px; color: var(--muted); background: var(--bg); border-radius: 12px; }

/* หน้าอ่านบทความ */
.art-date { margin: 6px 0 12px; font-size: 13px; }
.art-img { width: 100%; margin-bottom: 14px; border-radius: 12px; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.pn a {
    display: flex; align-items: center; gap: 4px;
    padding: 10px; border-radius: 10px;
    font-size: 13px; line-height: 1.35; color: var(--navy); background: var(--panel);
}
.pn .ic { width: 18px; height: 18px; color: var(--blue); }
.pn-next { grid-column: 2; justify-content: flex-end; text-align: right; }

/* โปรโมชั่น */
.pro { display: grid; gap: 12px; }
.pro-item { margin: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 3px 10px rgba(13, 27, 76, .12); }
.pro-item img { width: 100%; aspect-ratio: 960 / 500; object-fit: cover; }

/* วิธีแก้ไขปัญหาเข้าเว็บ */
.fix-warn, .fix-sum {
    display: flex; align-items: flex-start; gap: 8px;
    margin-top: 6px; padding: 10px 12px; border-radius: 12px;
    font-size: 14px; line-height: 1.5;
}
.fix-warn { color: #c0262d; background: #fff1f1; }
.fix-sum { margin-top: 14px; color: #166534; background: #ecfdf3; }
.fix-warn .ic, .fix-sum .ic { width: 20px; height: 20px; }
.fix { margin-top: 14px; padding: 14px 12px; background: var(--panel); border-radius: 14px; }
.fix-ttl { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--navy); }
.fix-ttl .trust-ic { flex: none; }
.fix-steps { display: grid; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; counter-reset: fix; }
.fix-steps li {
    position: relative; counter-increment: fix;
    padding: 12px 12px 12px 50px;
    font-size: 15px; background: #fff; border-radius: 12px;
}
.fix-steps li::before {
    content: counter(fix);
    position: absolute; left: 12px; top: 12px;
    display: grid; place-items: center;
    width: 28px; height: 28px; border-radius: 50%;
    font-size: 14px; font-weight: 600; color: #fff;
    background: linear-gradient(180deg, #ff8c32, var(--orange-d));
}
.fix-steps b { font-weight: 600; color: var(--navy); }
.fix-store { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.fix-store img { width: 128px; }
.fix-shot { width: 100%; max-width: 220px; margin: 10px 0 0; border: 1px solid var(--line); border-radius: 10px; }
.fix-wide { max-width: 100%; }
.fix-note { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* รีวิว */
.rv { display: grid; gap: 10px; }
.rv-item { display: flex; gap: 10px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.rv-av {
    display: grid; place-items: center; flex: none;
    width: 40px; height: 40px; border-radius: 50%;
    font-weight: 600; color: #fff;
    background: linear-gradient(180deg, #2c6ff0, var(--blue-d));
}
.rv-body { flex: 1; min-width: 0; }
.rv-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rv-name { font-weight: 600; color: var(--navy); }
.rv-stars { font-size: 14px; letter-spacing: 1px; color: #ffb020; }
.rv-date { font-size: 12px; color: var(--muted); }
.rv-txt { margin-top: 4px; font-size: 14px; }

/* ฟอร์มในหน้า (รีวิว) */
.fm-box { padding: 16px 14px; background: var(--panel); border-radius: 14px; }
.fm { display: grid; gap: 12px; margin-top: 14px; }
.fm label { display: grid; gap: 4px; font-size: 13px; font-weight: 500; color: var(--navy); }
.fm input, .fm select {
    width: 100%; height: 48px; padding: 0 14px;
    border: 1.5px solid var(--line); border-radius: 12px; outline: 0;
    font: inherit; font-size: 16px; color: var(--text); background: #fff;
}
.fm input:focus, .fm select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 95, 224, .12); }
.fm-cap { display: flex; align-items: center; gap: 8px; }
.fm-cap img { flex: none; height: 48px; width: auto; border-radius: 10px; }
.alert { margin-top: 12px; padding: 10px 12px; border-radius: 12px; font-size: 14px; }
.alert ul { margin: 4px 0 0; padding-left: 18px; }
.alert-ok { color: #166534; background: #ecfdf3; }
.alert-err { color: #c0262d; background: #fff1f1; }

/* จอคอม: กรอบมือถือกลางจอ */
@media (min-width: 480px) {
    body {
        background: #0d1b4c url(/css2/img/bg-stadium.webp) center / cover no-repeat fixed; /* 2026-10-31 รูปสนาม (จาก sure24vip) ; เดิม radial-gradient(circle at 50% 0, #1d4fb8 0, #0d1b4c 60%) fixed */
    }
    .app { box-shadow: 0 0 40px rgba(0, 0, 0, .45); }
}

/* ---------- แถบติดตั้งแอป (PWA) บนสุดเหนือ header — desktop2/__html.php #pwa-bar (ชุดเดียวกับ member, แบบ supervip2541) ---------- */
.pwa-bar {
    position: relative; z-index: 21;
    display: flex; align-items: center; gap: 10px; min-height: 48px;
    padding: 6px 8px 6px 12px;
    background: linear-gradient(90deg, #1f5fe0 0%, #0d1b4c 100%);
    color: #fff; line-height: 1.3;
}
.pwa-bar[hidden] { display: none; }
.pwa-bar > img { flex: none; width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.pwa-bar-tx { flex: 1; min-width: 0; display: grid; }
.pwa-bar-tx b { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pwa-bar-tx small { font-size: 12px; font-weight: 300; color: rgba(255, 255, 255, .8); }
.pwa-bar.is-help .pwa-bar-tx small { color: #ffd2a8; }
.pwa-bar-tx small svg { width: 14px; height: 14px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pwa-bar-btn {
    flex: none; display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border: 0; border-radius: 16px;
    background: linear-gradient(180deg, #ff9a4a 0%, #ff7a1a 50%, #f05f00 100%); color: #fff; text-decoration: none;
    font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.pwa-bar-x { flex: none; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; background: none; color: rgba(255, 255, 255, .75); cursor: pointer; }
.pwa-bar-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
