/* novaplay-vars — ตัวแปรที่ไฟล์นี้ (ยกมาจากเว็บพี่น้อง) ใช้ แต่ธีม novaplay ยังไม่มี
   ไม่มีนิยาม = พื้นหลังหาย ตัวหนังสือสีเข้มบนพื้นเข้ม (เช่นเลขขั้นตอนสมัครที่มองไม่เห็น) */
:root{
  --grad-gold:linear-gradient(115deg,#f9da8d,#c88b30 70%,#ffde87);
  --text:#f8f4ff;
  --surface:#100c19;
  --red:#ff6b6b;
  --maxw:1120px;
  --font-outfit:Orbitron,Kanit,sans-serif;
}

/* ระบบสมาชิก (ล็อกอิน/สมัคร/ฝาก-ถอน/ธนาคาร/PIN) — โครงมาจาก sagame ปรับสีเป็นธีม UFABET27
   ใช้ตัวแปรสีของเว็บเอง (--gold #f5c451 / --surface #161927 / --bg #08090e) ไม่ได้ยกสีเขียวของ sagame มา */
.memberPage{min-height:100vh;display:flex;flex-direction:column}
.memberWrap{flex:1;padding:8px 0 70px}
.memberWrap h1{font-size:clamp(1.6rem,4vw,2.2rem);margin:0 0 18px}
.member-box{position:relative;display:flex;align-items:center}
.auth-actions{display:inline-flex;align-items:stretch;border:1px solid var(--gold);border-radius:30px;overflow:hidden}
.auth-actions .nav-cta,.auth-actions .nav-login-btn{flex:1 1 0;min-width:118px;margin:0;border:0;border-radius:0;padding:12px 18px;display:flex;align-items:center;justify-content:center;white-space:nowrap;background:transparent;color:var(--gold);font-family:inherit;font-size:14px;font-weight:600;cursor:pointer}
.auth-actions .nav-cta{border-right:1px solid rgba(216,173,82,.4)}
.auth-actions .nav-cta:hover,.auth-actions .nav-login-btn:hover{background:var(--gold);color:#0b0c12}
.member-chip{display:flex;align-items:center;gap:10px;cursor:pointer;position:relative;padding:8px 14px 8px 8px;border:1px solid rgba(216,173,82,.27);border-radius:30px}
.member-avatar{width:32px;height:32px;flex:none;border-radius:50%;background:linear-gradient(135deg,#ffe08a,#c98f18);color:#0b0c12;display:grid;place-items:center;font:700 14px var(--font-outfit)}
.member-info{display:flex;flex-direction:column;line-height:1.3}
.member-info b{font-size:12px;color:#f6f1e5;font-weight:600}
.member-info small{font-size:10px;color:var(--gold)}
.member-menu{display:none;position:absolute;top:100%;right:0;padding-top:10px;min-width:190px;z-index:30}
.member-menu>a:first-child{border-top-left-radius:8px;border-top-right-radius:8px}
.member-menu>a:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}
.member-menu{filter:drop-shadow(0 20px 40px rgba(0,0,0,.4))}
.member-chip:hover .member-menu,.member-chip:focus-within .member-menu{display:block}
.member-menu a{display:block;padding:12px 16px;font-size:12px;color:#c9d2cb;background:#101a13;border-left:1px solid rgba(216,173,82,.27);border-right:1px solid rgba(216,173,82,.27);border-bottom:1px solid rgba(255,255,255,.05)}
.member-menu>a:first-child{border-top:1px solid rgba(216,173,82,.27)}
.member-menu>a:last-child{border-bottom:1px solid rgba(216,173,82,.27)}
.member-menu a:last-child{border-bottom:0}
.member-menu a:hover{background:#17472e;color:#fff}
.auth-modal{position:fixed;inset:0;background:rgba(0,0,0,.78);backdrop-filter:blur(14px) saturate(.9);-webkit-backdrop-filter:blur(14px) saturate(.9);z-index:200;display:flex;align-items:center;justify-content:center;padding:20px;opacity:0;visibility:hidden;transition:.3s;overflow-y:auto}
.auth-modal.open{opacity:1;visibility:visible}
.auth-card{background:#101a13;color:#fff;border:1px solid rgba(216,173,82,.27);max-width:400px;width:100%;padding:40px;border-radius:14px;position:relative;margin:auto;box-shadow:0 30px 80px rgba(0,0,0,.6);transform:translateY(12px);transition:transform .3s}
.auth-modal.open .auth-card{transform:translateY(0)}
.auth-close{position:absolute;top:14px;right:16px;background:none;border:0;color:#8b9a90;font-size:24px;cursor:pointer;line-height:1}
.auth-tabs{display:flex;gap:8px;margin-bottom:25px;border-bottom:1px solid rgba(216,173,82,.19)}
.auth-tab{flex:1;background:none;border:0;padding:12px;font-family:inherit;font-weight:600;font-size:14px;color:#8b9a90;cursor:pointer;border-bottom:2px solid transparent}
.auth-tab.active{color:var(--gold);border-color:var(--gold)}
.auth-form label{display:block;font-size:11px;color:#a3b0a7;margin-bottom:18px}
.auth-form input{width:100%;padding:13px;margin-top:7px;border:1px solid rgba(216,173,82,.2);background:#0a130d;color:#f6f1e5;font-family:inherit;border-radius:4px}
.auth-form button[type=submit]{width:100%;padding:15px;border:0;background:linear-gradient(135deg,#ffe08a,#c98f18);color:#0b0c12;font-family:inherit;font-weight:700;cursor:pointer;border-radius:4px;margin-top:5px}
.auth-error{color:#ff6846;font-size:11px;min-height:14px;margin:-8px 0 12px}
.auth-note{font-size:10px;color:#69766d;line-height:1.6;margin-top:20px;border-top:1px solid rgba(255,255,255,.06);padding-top:15px}
.auth-head{text-align:center;margin-bottom:22px}
.auth-logo{width:60px;height:60px;margin:0 auto 14px;border-radius:50%;border:2px solid var(--gold);display:grid;place-items:center;font:800 18px var(--font-outfit);color:var(--gold)}
.auth-head h3{font:700 22px var(--font-outfit),'IBM Plex Sans Thai';margin:0 0 6px;color:#f6f1e5}
.auth-head p{font-size:12px;color:#93a29a;margin:0;line-height:1.6}
.auth-form input{width:100%;padding:14px;margin-top:8px;border:1px solid rgba(216,173,82,.25);background:#0a130d;color:#f6f1e5;font-family:inherit;font-size:15px;border-radius:6px;text-align:center;letter-spacing:1px}
.auth-form input:focus{outline:none;border-color:var(--gold)}
.auth-btn-row{display:flex;gap:10px;margin-top:4px}
.auth-btn-login,.auth-btn-register{flex:1;padding:14px;border-radius:6px;font-family:inherit;font-weight:700;font-size:14px;cursor:pointer;border:0}
.auth-btn-login{background:linear-gradient(135deg,#ffe08a,#c98f18);color:#0b0c12}
.auth-btn-register{background:transparent;border:1px solid var(--gold);color:var(--gold)}
.auth-btn-register:hover{background:var(--gold);color:#0b0c12}
.auth-divider{display:flex;align-items:center;gap:12px;margin:22px 0 16px;color:#69766d;font-size:11px}
.auth-divider:before,.auth-divider:after{content:"";flex:1;height:1px;background:rgba(255,255,255,.09)}
.auth-line{display:flex;align-items:center;justify-content:center;gap:10px;padding:14px;border-radius:6px;background:#06c755;color:#fff;font-weight:700;font-size:14px;transition:.2s}
.auth-line:hover{background:#05b34c}
.auth-line-ico{background:#fff;color:#06c755;font:800 11px var(--font-outfit);padding:3px 6px;border-radius:4px;letter-spacing:.5px}
.member-box{order:3;margin-left:auto}
.member-chip{padding:6px 14px 6px 6px;border-radius:30px;gap:10px}
.member-avatar{width:34px;height:34px;font-size:15px}
.member-info b{font-size:14px}
.member-info small{font-size:12px}
.auth-actions .nav-cta,.auth-actions .nav-login-btn{min-width:0;padding:10px 12px;font-size:13px}
.auth-card{padding:30px 22px}
.inner-main{color:#f6f1e5;min-height:60vh}
.auth-btn-full{width:100%;display:block;padding:15px;border-radius:8px;font-size:15px}
.auth-foot{display:flex;flex-direction:column;gap:10px}
.auth-foot .auth-btn-register{display:flex;align-items:center;justify-content:center;padding:14px;border-radius:8px;text-decoration:none}
.auth-foot .auth-line{border-radius:8px}
.auth-actions .nav-cta{display:none}
.auth-actions{border-radius:24px}
.auth-actions .nav-login-btn{padding:9px 16px;font-size:13px}
.pin-change{background:none;border:0;color:#9caaa1;font-family:inherit;font-size:12px;cursor:pointer;text-decoration:underline}
.pin-change:hover{color:#e3c16c}
.reg-form{text-align:left}
.reg-form label{margin-bottom:14px}
.reg-form select{width:100%;padding:14px;margin-top:8px;border:1px solid rgba(216,173,82,.25);background:#0a130d;color:#f6f1e5;font-family:inherit;font-size:15px;border-radius:6px}
.reg-form input{text-align:left;letter-spacing:0}
.reg-steps{display:flex;align-items:center;justify-content:center;gap:8px;color:#6d7a72;font-size:12px;margin-bottom:18px}
.reg-steps b{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#ffe08a,#c98f18);color:#0b0c12;font-size:12px}
.reg-steps i{width:26px;height:1px;background:rgba(216,173,82,.35)}
.reg-warn{background:rgba(220,38,38,.14);border:1px solid rgba(248,113,113,.35);color:#fca5a5;font-size:12px;padding:10px 12px;border-radius:8px;margin-bottom:12px}
.reg-bank{display:flex;flex-direction:column;gap:2px;background:rgba(255,255,255,.05);border:1px solid rgba(216,173,82,.2);border-radius:10px;padding:12px 14px;margin-bottom:16px;font-size:13px;color:#c9d2cb}
.reg-bank b{color:#f6f1e5;font-size:14px}
.bank-picker{position:relative;margin:8px 0 16px}
.bank-field{display:flex;align-items:center;gap:10px;width:100%;padding:12px 14px;cursor:pointer;
  background:#0a130d;border:1px solid rgba(216,173,82,.25);border-radius:6px;color:#f6f1e5;font-family:inherit;font-size:15px;text-align:left}
.bank-field img{width:26px;height:26px;border-radius:6px;flex:none}
.bank-field .bank-ph{color:#7d8a81}
.bank-field .bank-caret{margin-left:auto;color:var(--gold);font-style:normal}
.bank-menu{position:absolute;z-index:20;top:calc(100% + 6px);left:0;right:0;background:#0d1811;
  border:1px solid rgba(216,173,82,.3);border-radius:10px;box-shadow:0 20px 40px rgba(0,0,0,.55);overflow:hidden}
.bank-search{width:100%;padding:12px 14px;border:0;border-bottom:1px solid rgba(255,255,255,.08);
  background:#0a130d;color:#f6f1e5;font-family:inherit;font-size:14px;text-align:left;letter-spacing:0}
.bank-search:focus{outline:none}
.bank-list{max-height:260px;overflow-y:auto}
.bank-list button{display:flex;align-items:center;gap:12px;width:100%;padding:11px 14px;cursor:pointer;
  background:none;border:0;color:#e6ebe7;font-family:inherit;font-size:14px;text-align:left}
.bank-list button:hover,.bank-list button.on{background:rgba(216,173,82,.16)}
.bank-list img{width:26px;height:26px;border-radius:6px;flex:none}
.bank-empty{padding:14px;color:#8d99ae;font-size:13px;text-align:center}
.reg-bank{flex-direction:row;align-items:center;gap:12px}
.reg-bank img{width:38px;height:38px;border-radius:8px;flex:none}
.reg-bank>div{display:flex;flex-direction:column}
.acct-head{font-size:17px;font-weight:800;margin:22px 0 12px}
.acct-list{list-style:none;padding:0;margin:0 0 14px;display:flex;flex-direction:column;gap:8px}
.acct-list li{display:flex;align-items:center;gap:12px;background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:12px 14px}
.acct-list img{width:38px;height:38px;border-radius:8px;flex:none}
.acct-list>li>div{display:flex;flex-direction:column;flex:1;min-width:0}
.acct-list b{font-size:14px}
.acct-list span{font-size:12px;color:#9aa6bb}
.acct-badge{font-size:11px;color:#34d399;font-style:normal;white-space:nowrap}
.acct-list button{padding:8px 12px;border-radius:9px;font-size:12px;cursor:pointer;white-space:nowrap;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.16);color:#e8edf7}
.acct-form{margin-bottom:8px}
.acct-pick{display:flex;flex-direction:column;gap:8px;margin-bottom:6px}
.acct-opt{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;cursor:pointer;text-align:left;
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.1);color:#e8edf7}
.acct-opt.on{border-color:rgba(245,158,11,.65);background:rgba(245,158,11,.12)}
.acct-opt img{width:32px;height:32px;border-radius:8px;flex:none}
.acct-opt span{display:flex;flex-direction:column;font-size:12px;color:#9aa6bb;flex:1;min-width:0}
.acct-opt b{font-size:13px;color:#e8edf7}
.acct-opt i{font-style:normal;color:#fbbf24}
.pay-methods{display:flex;flex-direction:column;gap:10px}
.pay-method{display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px;padding:14px 16px;cursor:pointer;text-align:left;
  background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.12);border-radius:12px;color:#e8edf7}
.pay-method:hover{border-color:rgba(245,158,11,.55);background:rgba(245,158,11,.1)}
.pay-method b{font-size:15px}
.pay-method span{grid-column:1;font-size:12px;color:#9aa6bb}
.pay-method i{grid-row:1/3;font-style:normal;font-size:20px;color:#fbbf24}
.pay-current{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 14px;cursor:pointer;
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.12);border-radius:12px;color:#e8edf7;font-size:14px}
.pay-current span{font-size:12px;color:#fbbf24}
.pay-accept{display:flex;align-items:flex-start;gap:10px;font-size:13px;color:#cfd6e4;cursor:pointer;line-height:1.5}
.pay-accept{width:100%}
.pay-accept input{width:18px;height:18px;accent-color:#f59e0b;flex:none;margin-top:1px}
.pay-accept span{flex:1;min-width:0}
.wallet-txbar button:disabled{opacity:.5;cursor:default}
.pay-warn{background:rgba(220,38,38,.16);border:1px solid rgba(248,113,113,.45);color:#fca5a5;font-size:13px;font-weight:600;padding:10px 12px;border-radius:10px;line-height:1.55}
.pay-limit{list-style:disc;margin:0;padding:10px 12px 10px 30px;display:flex;flex-direction:column;gap:4px}
.pay-limit li{font-weight:600}
.wallet-form input{width:100%}
.pay-accept input[type=checkbox]{width:18px;min-width:18px;height:18px;padding:0;margin:1px 0 0;
  border-radius:4px;flex:none;accent-color:#f59e0b;background:transparent}
.pay-ok{background:rgba(16,185,129,.14);border:1px solid rgba(52,211,153,.4);color:#6ee7b7;
  font-size:13px;font-weight:600;border-radius:10px;line-height:1.55}
.acct-actions{display:flex;align-items:center;gap:8px;flex:none}
.sheet{position:fixed;inset:0;z-index:210;display:flex;align-items:center;justify-content:center;padding:20px;
  background:rgba(0,0,0,.78);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);overflow-y:auto}
.sheet-card{position:relative;width:100%;max-width:420px;margin:auto;background:#101a13;color:#f6f1e5;
  border:1px solid rgba(216,173,82,.3);border-radius:16px;padding:28px 22px;box-shadow:0 30px 80px rgba(0,0,0,.6)}
.sheet-card h3{font-size:18px;font-weight:800;margin-bottom:16px;text-align:center}
.sheet-close{position:absolute;top:10px;right:12px;width:34px;height:34px;font-size:22px;line-height:1;cursor:pointer;
  background:none;border:0;color:#9caaa1}
.sheet-close:hover{color:#fff}
.bank-field img,.bank-list img,.acct-list img,.acct-opt img,.reg-bank img{padding:4px;object-fit:contain}
.apick-field{align-items:center;padding:10px 14px}
.apick-info{display:flex;flex-direction:column;line-height:1.35;min-width:0}
.apick-info b{font-size:14px}
.apick-info small{font-size:12px;color:#9aa6bb}
.apick .bank-list button{align-items:center}
.apick .bank-list img{width:34px;height:34px}
.apick-badge{margin-left:auto;font-size:11px;color:#34d399;font-style:normal;white-space:nowrap}
.apick .bank-field img{width:38px;height:38px}
.wallet-wrap { max-width: 560px; margin: 0 auto; padding: 0 16px 64px; }
.wallet-title { font-size: 28px; font-weight: 800; margin-bottom: 16px; }
.wallet-credit { display: flex; justify-content: space-between; align-items: center;
background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
border-radius: 14px; padding: 14px 18px; margin-bottom: 18px; }
.wallet-credit b { font-size: 22px; }
.wallet-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.wallet-tabs button { flex: 1; padding: 12px; border-radius: 12px; font-weight: 700; cursor: pointer;
background: rgba(255,255,255,.06); color: #cfd6e4; border: 1px solid rgba(255,255,255,.1); }
.wallet-tabs button.on { background: linear-gradient(90deg,#f59e0b,#fbbf24); color: #12151c; border-color: transparent; }
.wallet-form { display: flex; flex-direction: column; gap: 12px; }
.wallet-form input { width: 100%; padding: 14px 16px; border-radius: 12px; font-size: 18px;
background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #fff; }
.wallet-quick { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.wallet-quick button { padding: 10px; border-radius: 10px; cursor: pointer;
background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: #e8edf7; }
.wallet-btn { padding: 14px; border-radius: 12px; font-weight: 800; font-size: 16px; cursor: pointer;
background: linear-gradient(90deg,#f59e0b,#fbbf24); color: #12151c; border: 0; }
.wallet-btn:disabled { opacity: .6; cursor: default; }
.wallet-bank { display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 12px 16px; }
.wallet-muted { color: #9aa6bb; font-size: 14px; }
.wallet-err { color: #f87171; font-size: 14px; }
.wallet-ok { color: #34d399; font-weight: 700; }
.wallet-warn { color: #fbbf24; font-size: 14px; }
.wallet-frame { width: 100%; max-width: 380px; height: 1000px; margin: 0 auto; border: 0; border-radius: 14px; background: #171920; display: block; touch-action: auto; }
.wallet-openpay { display: block; text-align: center; margin-top: 10px; padding: 12px; border-radius: 10px; font-size: 14px; font-weight: 700; color: #12151c; background: linear-gradient(90deg,#f59e0b,#fbbf24); }
.wallet-txbar { display: flex; justify-content: space-between; align-items: center; gap: 10px;
font-size: 13px; color: #9aa6bb; margin-bottom: 10px; }
.wallet-subtabs { display: flex; gap: 8px; margin-bottom: 14px; }
.wallet-subtabs button { flex: 1; padding: 9px; border-radius: 10px; font-size: 14px; cursor: pointer;
background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: #cfd6e4; }
.wallet-subtabs button.on { background: rgba(245,158,11,.18); border-color: rgba(245,158,11,.5); color: #fbbf24; }
.wallet-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.wallet-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px;
background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: 12px; padding: 12px 14px; }
.wallet-list b { display: block; font-size: 15px; }
.wallet-list b.in { color: #34d399; }
.wallet-list b.out { color: #fbbf24; }
.wallet-list small { color: #8d99ae; font-size: 12px; }
.wallet-badge { font-size: 12px; color: #cfd6e4; background: rgba(255,255,255,.07);
border-radius: 999px; padding: 5px 11px; white-space: nowrap; }
.wallet-txbar button { padding: 8px 12px; border-radius: 10px; cursor: pointer;
background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #e8edf7; }
.wallet-wrap{max-width:600px}
.wallet-title{font-size:30px;line-height:1.6;padding-top:4px;margin-bottom:18px}
.wallet-wrap h1,.wallet-wrap h2,.wallet-wrap h3{line-height:1.55}
.acct-head{line-height:1.55}
.wallet-form label{display:block;font-size:13px;color:#9aa6bb;line-height:1.7}
.wallet-form label input{margin-top:7px}
.wallet-list b,.acct-list b,.apick-info b{line-height:1.6}
.wallet-credit span{line-height:1.6}
.inner-main .wallet-wrap{padding-top:0}
.wallet-wrap h1,.wallet-wrap h2,.wallet-wrap h3,.wallet-title,.acct-head,.sheet-card h3{letter-spacing:normal;word-break:normal;overflow-wrap:normal}
.wallet-title{font-weight:800}
.seg{position:relative;display:grid;grid-template-columns:repeat(var(--n),1fr);gap:0;padding:4px;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.09);border-radius:14px;margin-bottom:18px;
  -webkit-tap-highlight-color:transparent}
.seg-thumb{position:absolute;top:4px;bottom:4px;left:4px;width:calc((100% - 8px)/var(--n));border-radius:10px;
  background:linear-gradient(90deg,#f59e0b,#fbbf24);box-shadow:0 6px 16px rgba(245,158,11,.28);
  transform:translateX(calc(var(--i) * 100%));
  transition:transform .34s cubic-bezier(.32,.72,0,1);pointer-events:none;z-index:0}
.seg button{position:relative;z-index:1;padding:11px 8px;border:0;background:none;cursor:pointer;
  font-family:inherit;font-size:14px;font-weight:700;color:#cfd6e4;border-radius:10px;
  transition:color .2s ease,transform .12s ease;touch-action:manipulation}
.seg button:hover{color:#fff}
.seg button.on{color:#12151c}
.seg button:active{transform:scale(.96)}
.seg-sm{margin-bottom:14px;padding:3px;border-radius:12px}
.seg-sm button{padding:9px 6px;font-size:13px;font-weight:600}
.seg-sm .seg-thumb{top:3px;bottom:3px;left:3px;width:calc((100% - 6px)/var(--n));border-radius:9px;
  background:rgba(245,158,11,.22);box-shadow:none;border:1px solid rgba(245,158,11,.5)}
.seg-sm button.on{color:#fbbf24}
.seg-thumb{transition:none}
.wallet-ref{text-align:center;font-size:.82rem;line-height:1.7;margin-bottom:10px;padding:8px 10px;
  border:1px solid rgba(255,255,255,.12);border-radius:12px;background:rgba(0,0,0,.28);word-break:break-all}
.wallet-ref b{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}

/* ── ส่วนที่ต้องเขียนเอง: กล่องล็อกอิน/สมัคร, แป้น PIN, หน้า /join ──
   ธีมเดิมของ UFABET27 มี .auth-* ของโมดัลปลอมอยู่แล้ว (public/site.css) จึงต้องเจาะจงกว่า
   ไม่งั้นสไตล์ตีกันจนกล่องหลุดออกมาเป็นเนื้อหาหน้า */
.sheet{position:fixed;inset:0;z-index:9000;display:flex;align-items:center;justify-content:center;
  padding:20px;background:rgba(4,5,10,.82);backdrop-filter:blur(6px);overflow-y:auto}
.sheet .sheet-card{position:relative;width:min(420px,100%);max-height:92vh;overflow-y:auto;margin:auto;
  background:linear-gradient(180deg,#1b1f31,#11131d);border:1px solid rgba(245,196,81,.28);
  border-radius:22px;padding:26px 22px 20px;box-shadow:0 30px 80px rgba(0,0,0,.65)}
.sheet .sheet-close{position:absolute;right:14px;top:12px;width:34px;height:34px;border-radius:50%;
  border:0;background:rgba(255,255,255,.06);color:var(--muted);font-size:16px;cursor:pointer}
.sheet .sheet-close:hover{background:rgba(255,255,255,.12);color:#fff}
.sheet .auth-logo{display:block;width:150px;height:auto;margin:4px auto 14px}
.sheet .auth-title{font-size:1.35rem;font-weight:800;text-align:center;margin:0 0 4px;color:#fff}
.sheet .auth-sub{font-size:.85rem;color:var(--muted);text-align:center;margin:0 0 16px}
.sheet .auth-error{color:var(--red);font-size:.82rem;margin:8px 0 0;text-align:center}
.sheet .auth-form{display:grid;gap:12px}
.sheet .auth-form label{display:grid;gap:6px;font-size:.8rem;font-weight:600;color:var(--muted)}
.sheet .auth-form input,.sheet .auth-form select{width:100%;padding:12px 14px;border-radius:12px;
  border:1px solid var(--line);background:#0d0f18;color:var(--text);font:inherit;font-size:.95rem;outline:none}
.sheet .auth-form input:focus,.sheet .auth-form select:focus{border-color:var(--gold)}
.sheet .auth-form .btn{margin-top:4px}
.sheet .pin-change{background:none;border:0;color:var(--muted);font:inherit;font-size:.8rem;cursor:pointer;padding:6px}
.sheet .pin-change:hover{color:var(--gold)}
.sheet .auth-line{display:block;text-align:center;margin-top:14px;padding:11px;border-radius:12px;
  border:1px solid rgba(39,209,124,.28);background:rgba(39,209,124,.1);color:#5ce39c;font-size:.85rem;font-weight:700}

/* แป้น PIN */
.pin-dots{display:flex;justify-content:center;gap:10px;margin:14px 0 6px}
.pin-dots i{width:14px;height:14px;border-radius:50%;border:1px solid var(--line);background:#0d0f18}
.pin-dots i.on{background:var(--gold);border-color:var(--gold)}
.pinpad{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px}
.pinpad button{padding:14px 0;border-radius:14px;border:1px solid var(--line);background:#12141f;
  color:#fff;font:700 1.15rem/1 inherit;cursor:pointer}
.pinpad button:hover{border-color:var(--gold);color:var(--gold)}

/* ขั้นตอนสมัคร 3 ขั้น */
.reg-steps{display:flex;align-items:center;justify-content:center;gap:6px;margin:0 0 6px}
.reg-steps span{display:flex;align-items:center;gap:6px}
.reg-steps i{display:block;width:26px;height:1px;background:var(--line)}
.reg-steps b{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;
  background:rgba(255,255,255,.07);color:var(--muted);font-size:.78rem}
.reg-steps b.on{background:var(--grad-gold);color:#1a1405}
.reg-steps b.done{background:rgba(245,196,81,.22);color:var(--gold)}
.reg-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.reg-warn{font-size:.76rem;color:var(--muted);margin:2px 0 0;line-height:1.7}
.reg-bank{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:14px;background:#0d0f18}
.reg-bank img{width:40px;height:40px;border-radius:10px;padding:6px;object-fit:contain}
.reg-bank b{display:block;color:#fff;font-size:.9rem}
.reg-bank span{display:block;color:var(--muted);font-size:.78rem}

/* ตัวเลือกธนาคาร */
.bank-picker{position:relative}
.bank-field{display:flex;align-items:center;gap:10px;width:100%;padding:12px 14px;border-radius:12px;
  border:1px solid var(--line);background:#0d0f18;color:var(--text);font:inherit;cursor:pointer;text-align:left}
.bank-field img{width:28px;height:28px;border-radius:8px;padding:4px;object-fit:contain}
.bank-ph{color:var(--muted)}
.bank-caret{margin-left:auto;color:var(--muted);font-style:normal}
.bank-menu{position:absolute;z-index:20;left:0;right:0;top:calc(100% + 6px);border:1px solid var(--line);
  border-radius:14px;background:#11131d;box-shadow:0 20px 50px rgba(0,0,0,.6);overflow:hidden}
.bank-search{width:100%;padding:11px 14px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--text);font:inherit;outline:none}
.bank-list{max-height:260px;overflow-y:auto}
.bank-list button{display:flex;align-items:center;gap:10px;width:100%;padding:10px 14px;border:0;background:none;color:var(--text);font:inherit;cursor:pointer;text-align:left}
.bank-list button:hover,.bank-list button.on{background:rgba(245,196,81,.12)}
.bank-list img{width:26px;height:26px;border-radius:8px;padding:4px;object-fit:contain}
.bank-empty{padding:16px;text-align:center;color:var(--muted);font-size:.82rem}

/* ชิปสมาชิก + เมนู */
.member-box{position:relative}
.member-chip{display:flex;align-items:center;gap:9px;padding:6px 12px 6px 6px;border-radius:999px;
  border:1px solid rgba(245,196,81,.32);background:rgba(245,196,81,.08);color:var(--text);font:inherit;cursor:pointer}
.member-avatar{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;
  background:var(--grad-gold);color:#1a1405;font-weight:800;font-size:.9rem}
.member-credit{font-size:.9rem;color:var(--gold);white-space:nowrap}
.member-refresh{font-style:normal;color:var(--muted);cursor:pointer;transition:transform .5s}
.member-refresh.spin{animation:mspin .8s linear infinite}
@keyframes mspin{to{transform:rotate(360deg)}}
.member-menu{position:absolute;right:0;top:calc(100% + 8px);min-width:210px;z-index:60;padding:6px;
  border:1px solid var(--line);border-radius:14px;background:#11131d;box-shadow:0 20px 50px rgba(0,0,0,.6);display:grid}
.member-menu-head{padding:10px 12px;border-bottom:1px solid var(--line);margin-bottom:4px}
.member-menu-head b{display:block;color:#fff;font-size:.9rem}
.member-menu-head span{display:block;color:var(--muted);font-size:.76rem}
.member-menu a,.member-menu button{display:block;width:100%;padding:10px 12px;border:0;border-radius:10px;
  background:none;color:var(--text);font:inherit;font-size:.86rem;text-align:left;cursor:pointer;text-decoration:none}
.member-menu a:hover,.member-menu button:hover{background:rgba(245,196,81,.12);color:var(--gold)}
.member-menu .member-logout{color:var(--red);margin-top:4px;border-top:1px solid var(--line);border-radius:0 0 10px 10px}

/* หน้า /join */
.joinWrap{min-height:70vh;display:grid;place-items:center;padding:120px 20px 80px}
.joinCard{width:min(420px,100%);text-align:center;padding:28px 22px;border:1px solid var(--line);
  border-radius:22px;background:var(--surface)}
.joinCard img{width:160px;height:auto;margin:0 auto 12px}
.joinCard h1{font-size:1.35rem;margin:0 0 6px}
.joinCard p{color:var(--muted);font-size:.86rem;margin:0 0 16px}
.joinBtns{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.joinBack{display:inline-block;margin-top:14px;color:var(--muted);font-size:.84rem;text-decoration:none}
.joinBack:hover{color:var(--gold)}

@media(max-width:520px){
  .sheet{padding:12px}
  .sheet .sheet-card{padding:22px 16px 16px}
  .reg-two{grid-template-columns:1fr}
}

/* ── ปรับหน้าตาเพิ่มเติม (รอบแก้ UI) ── */
.memberWrap{width:min(760px,calc(100% - 32px));margin-inline:auto}
.memberWrap>h1,.wallet-title{margin-top:0}

/* ไอคอนรีเฟรชเครดิต — ใช้ inline-grid ให้จุดหมุนอยู่กลางตัวอักษรจริง ไม่ส่ายตอนหมุน */
.member-refresh{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;
  font-size:14px;line-height:1;transform-origin:50% 50%;background:rgba(255,255,255,.06)}
.member-refresh:hover{color:var(--gold);background:rgba(245,196,81,.16)}
.member-refresh.spin{animation:mspin .7s linear infinite}

/* ช่องติ๊กยอมรับเงื่อนไข — เดิมข้อความชนกล่องติ๊กจนล้น */
.pay-accept{display:flex;align-items:flex-start;gap:10px;line-height:1.7;font-size:.86rem;
  padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#0d0f18;margin:12px 0}
.pay-accept input[type=checkbox]{flex:none;width:18px;height:18px;margin:2px 0 0;accent-color:var(--gold)}
.pay-accept span,.pay-accept label{flex:1;min-width:0}

/* บล็อกข้อมูลในหน้ากระเป๋าเงินให้ห่างเท่ากันทั้งหมด */
.wallet-wrap>*+*{margin-top:14px}

/* หน้าในระบบสมาชิก: ตัดช่องว่างหัวหน้าให้เหลือพอดี (ของเดิมยกมาจาก sagame ที่มีหัวเว็บสูงกว่า) */
.memberWrap .inner-main{padding-top:0}
.memberWrap .wallet-wrap{padding-top:0}

/* .wallet-form label{display:block} ของธีมเดิมเจาะจงกว่า .pay-accept — ต้องเขียนให้ชนะ */
.wallet-form label.pay-accept,
.wallet-wrap label.pay-accept,
label.pay-accept{display:flex;align-items:flex-start;gap:12px;line-height:1.75;
  padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#0d0f18;margin:12px 0}
label.pay-accept>input[type=checkbox]{flex:0 0 auto;width:18px;height:18px;margin:3px 0 0;accent-color:var(--gold)}
label.pay-accept>span{flex:1 1 auto;min-width:0;display:block}

/* ปุ่มรีเฟรชเครดิต — ใช้ SVG แทนตัวอักษร จะได้หมุนเป็นวงกลมจริง ไม่ส่าย */
.member-refresh svg{width:14px;height:14px;display:block}
.member-refresh{color:var(--muted)}

/* ไอคอนหน้าเมนูสมาชิก */
.member-menu a,.member-menu button{display:flex;align-items:center;gap:10px}
.member-menu .mi{flex:none;width:22px;text-align:center;font-size:15px;line-height:1;filter:saturate(1.1)}

/* จอเล็ก: ธีมเดิมซ่อน .hdr-cta ทั้งก้อน ทำให้ยอดเงินหายไปด้วย
   → ล็อกอินแล้ว (มี .member-box) ให้โชว์ชิปข้างปุ่มแฮมเบอร์เกอร์ ส่วนในเมนูมือถือไม่ต้องซ้ำ */
@media(max-width:900px){
  .hdr-cta:has(.member-box){display:flex!important;align-items:center;margin-left:auto;margin-right:6px}
  .hdr-cta:has(.member-box) .member-chip{padding:5px 10px 5px 5px}
  .hdr-cta:has(.member-box) .member-credit{font-size:.82rem}
  .mnav .row .member-box{display:none}
}

/* กันเลื่อนแนวนอนบนมือถือให้แน่นอน (ตัวข่าววิ่งกว้างเกินจอโดยตั้งใจ ต้องคลิปไว้)
   ตั้งที่ html ด้วย เพราะ overflow-x:hidden ที่ body อย่างเดียวบางเบราว์เซอร์ยังเลื่อนได้ */
html{overflow-x:hidden;max-width:100%}
body{overflow-x:hidden}

/* overflow:clip กันล้นแนวนอนได้เหมือน hidden แต่ไม่ทำให้ position:sticky ตาย
   เบราว์เซอร์เก่าที่ไม่รู้จัก clip จะตกไปใช้ hidden ด้านบนตามเดิม */
@supports (overflow:clip){html{overflow-x:clip}body{overflow-x:clip}}

.ticker,.ticker-in,.ticker-track{max-width:100%;overflow:hidden}
/* เดิมทับ max-width ของคอนเทนเนอร์ทุกตัว หน้าแรกเลยกางเต็มจอ — ใช้ min() แทน */
.articlesWrap,.memberWrap{max-width:100%}
.siteWrap{max-width:min(1140px,100%)}
.wrap{max-width:min(var(--maxw,1240px),100%)}
img,video,iframe,table{max-width:100%}

/* ── ช่องกรอกจำนวนเงินมาตรฐาน (หน้าฝาก/ถอน) ───────────────────────────── */
.amt { display: grid; gap: 12px; min-width: 0; max-width: 100%; }
.amt-title { margin: 0; text-align: center; font-size: 13px; color: #9aa6bb; }
.amt-box { display: flex; align-items: center; gap: 12px; padding: 22px 18px; border-radius: 16px; max-width: 100%; overflow: hidden;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); transition: border-color .2s, box-shadow .2s; }
.amt-box.on { border-color: var(--gold, #f5c451); box-shadow: 0 0 0 3px rgba(245,196,81,.12); }
.amt-box.bad { border-color: rgba(248,113,113,.7); }
.amt-box input { flex: 1 1 0; width: 100%; min-width: 0; padding: 0; background: none; border: 0; outline: none;
  color: #fff; font-size: 38px; font-weight: 900; line-height: 1.05; text-align: center; }
.amt-box input::placeholder { color: #5b6478; }
.amt-box span { color: #9aa6bb; font-size: 14px; }
.amt-fix { display: grid; gap: 10px; }
.amt-fix button { display: grid; gap: 4px; text-align: left; padding: 12px 16px; border-radius: 14px; cursor: pointer;
  background: rgba(245,196,81,.06); border: 1px solid rgba(245,196,81,.4); color: #fff; }
.amt-fix button:hover { background: rgba(245,196,81,.15); }
.amt-fix small { color: #9aa6bb; font-size: 12px; }
.amt-fix b { font-size: 18px; font-weight: 900; }
.amt-err { margin: 0; text-align: center; color: #f87171; font-size: 14px; }
.amt-limit { margin: 0; text-align: center; color: #9aa6bb; font-size: 14px; }
.amt-head { border-left: 3px solid var(--gold, #f5c451); padding-left: 12px; font-size: 14px; font-weight: 800; color: #fff; }
.amt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.amt-grid button { display: grid; gap: 2px; padding: 12px 4px; border-radius: 14px; cursor: pointer; text-align: center;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: #e8edf7; transition: .15s; }
.amt-grid button:hover { border-color: rgba(245,196,81,.5); }
.amt-grid button.on { background: rgba(245,196,81,.15); border-color: var(--gold, #f5c451); color: var(--gold, #f5c451); }
.amt-grid button.over { opacity: .45; }
.amt-grid b { font-size: 15px; font-weight: 900; }
.amt-grid small { font-size: 10px; color: #9aa6bb; }
@media (max-width: 420px) { .amt-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── คืนยอดเสีย / ลิ้งรับทรัพย์ / โปรโมชั่น (ยกจาก sagame) ── */
.wallet-muted { color: #9aa6bb; font-size: 14px; }
.lobby-error{margin:0 0 14px;padding:10px 14px;border-radius:10px;background:#3a1414;border:1px solid #ff6b6b55;color:#ffb3b3;font-size:14px}
.cb-wrap{text-align:center;max-width:640px;margin:auto}
.cb-label{margin:0;font-size:18px;font-weight:700}
.cb-sub{margin:4px 0 0;font-size:12px;color:#8fa295}
.cb-amount{margin:14px 0 0;font-size:40px;font-weight:800;color:#fff}
.cb-amount small{font-size:15px;color:#8fa295}
.cb-min{margin:18px 0;padding-top:18px;border-top:1px solid #ffffff14;color:#c4d0c8;font-size:14px}
.cb-btn{width:100%;padding:15px;border:0;border-radius:12px;font:700 15px inherit;cursor:pointer;
  background:linear-gradient(135deg,#f0d481,#b98227);color:#181005;transition:.2s}
.cb-btn:disabled{background:#1a231d;color:#5d6b62;cursor:default}
.cb-note{margin-top:18px;padding:18px;border-radius:12px;background:#fff;color:#0d3a92;display:grid;gap:6px}
.cb-note b{font-size:15px}
.cb-note span{font-size:14px}
.cb-note small{color:#333;font-size:12px}
.cb-total{margin-top:14px;color:#8fa295;font-size:13px}
.cb-ok{margin:12px 0;padding:10px 14px;border-radius:10px;background:#12331f;border:1px solid #27d17c55;color:#8ef0b8;font-size:14px}
.aff-wrap{text-align:center;max-width:860px;margin:auto}
.aff-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:22px 0}
.aff-cards div{padding:18px 10px;border-radius:12px;background:#fff;color:#111}
.aff-cards span{display:block;font-size:13px;color:#555}
.aff-cards b{display:block;margin-top:6px;font-size:22px;font-weight:800}
.aff-cards b small{font-size:12px;color:#666}
.aff-box{margin-top:18px;padding:18px;border-radius:14px;background:#fff;color:#111}
.aff-box>b{display:block;text-align:left;font-size:15px;margin-bottom:10px}
.aff-tabs{display:flex;gap:4px;border-bottom:2px solid #f0a04b;margin-bottom:16px}
.aff-tabs button{padding:10px 16px;border:0;background:none;font:600 14px inherit;color:#666;cursor:pointer;border-radius:8px 8px 0 0}
.aff-tabs button.on{background:#ffe9d5;color:#e2701c}
.aff-qr{display:grid;place-items:center;padding:18px;background:#f5f5f5;border-radius:10px}
.aff-qr img{width:220px;height:220px}
.aff-link{margin:12px 0;font-size:14px;word-break:break-all;color:#333}
.aff-copy{padding:9px 20px;border:0;border-radius:999px;background:#f2801e;color:#fff;font:600 13px inherit;cursor:pointer}
.aff-detail{margin-top:16px;padding:18px;border-radius:14px;background:#fff;color:#333;text-align:left;font-size:14px;line-height:1.8}
.aff-detail b{display:block;text-align:center;margin-bottom:10px;color:#111}
.ap-wrap{max-width:900px;margin:auto;display:grid;gap:26px}
.ap-block h2{margin:0 0 12px;font-size:18px}
.ap-empty{padding:26px;text-align:center;border-radius:12px;background:#101912;color:#8fa295}
.ap-turn{display:grid;gap:10px;padding:18px;border-radius:12px;background:#101912}
.ap-turn div{display:flex;justify-content:space-between;font-size:14px}
.ap-turn b{color:#e8c870}
.ap-table{border-radius:12px;overflow:hidden;background:#101912}
.ap-tr{display:grid;grid-template-columns:56px 1fr 1.4fr 120px;gap:8px;padding:12px 14px;font-size:14px;border-bottom:1px solid #ffffff0d}
.ap-th{background:#8a5a2b;color:#fff;font-weight:700}
.ap-active{padding:18px;border-radius:12px;background:#101912;border-left:4px solid #d8ad52;display:grid;gap:8px}
.ap-active b{font-size:16px;color:#e8c870}
.promo-ok{color:#34d399;margin:12px 0 0;font-size:14px;font-weight:600}
.promo-err{color:#f87171;margin:12px 0 0;font-size:14px;font-weight:600}
.promo-note{color:#9aa89f;margin:10px 0 0;font-size:13px}
.promo-state{display:grid;gap:3px;margin-top:14px;padding:12px 14px;border-radius:12px;
  background:rgba(216,173,82,.08);border:1px solid rgba(216,173,82,.3)}
.promo-state b{font-size:14px;color:#f0dfae}
.promo-state span{font-size:13px;color:#e8eee9}
.promo-state small{font-size:12px;color:#9aa89f;line-height:1.6}
.promo-state-wait{background:rgba(251,191,36,.1);border-color:rgba(251,191,36,.4)}
.promo-state-wait b{color:#fbbf24}

/* ── การ์ด/โมดัลโปรโมชั่น (ยกจาก sagame) ── */
.promo-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:18px;margin:18px 0 30px}
.promo-card{display:flex;flex-direction:column;gap:12px;padding:14px;border-radius:16px;background:#fff;color:#111}
.promo-card img{width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:12px;background:#f2f2f2}
.promo-card h3{margin:0;font-size:15px;line-height:1.5;flex:1}
.promo-card button{padding:11px;border:0;border-radius:999px;background:linear-gradient(135deg,#1fa85f,#137a42);color:#fff;font:700 14px inherit;cursor:pointer}
.promo-card button:hover{filter:brightness(1.08)}
.promo-modal{position:fixed;inset:0;z-index:150;display:grid;place-items:center;padding:20px;background:rgba(0,0,0,.75);backdrop-filter:blur(6px);overflow-y:auto}
.promo-modal-card{position:relative;width:min(560px,100%);max-height:88vh;overflow-y:auto;padding:22px;border-radius:18px;background:#0e1711;border:1px solid #d8ad5233}
.promo-modal-card img{width:100%;border-radius:12px;margin-bottom:14px}
.promo-modal-card h3{margin:0 0 12px;font-size:18px;color:#e8c870}
.promo-close{position:absolute;right:14px;top:12px;width:34px;height:34px;border:0;border-radius:50%;background:#00000066;color:#fff;font-size:22px;line-height:1;cursor:pointer}
.promo-detail{color:#c4d0c8;font-size:14px;line-height:1.85;margin-bottom:16px}
.promo-detail img{max-width:100%;height:auto}
.promo-tabs{display:inline-flex;gap:4px;background:rgba(255,255,255,.05);border:1px solid rgba(216,173,82,.22);
  border-radius:12px;padding:4px;margin:0 0 18px}
.promo-tabs button{background:none;border:0;padding:9px 16px;border-radius:9px;cursor:pointer;font:inherit;
  font-size:14px;font-weight:600;color:#9aa89f;transition:.18s}
.promo-tabs button:hover{color:#e8c870}
.promo-tabs button.on{background:linear-gradient(135deg,#f0d481,#b98227);color:#1a1206}
.promo-redeem{background:rgba(255,255,255,.04);border:1px solid rgba(216,173,82,.22);border-radius:14px;padding:18px;margin-bottom:22px}
.promo-redeem>p{margin:0 0 12px;color:#b9c4bd;font-size:14px}
.promo-redeem-row{display:flex;gap:10px;flex-wrap:wrap}
.promo-redeem-row input{flex:1;min-width:200px;padding:13px 16px;border-radius:11px;background:rgba(0,0,0,.35);
  border:1px solid rgba(216,173,82,.3);color:#f6f1e5;font:inherit;font-size:15px;letter-spacing:1px;outline:none}
.promo-redeem-row input:focus{border-color:#d8ad52;box-shadow:0 0 0 3px rgba(216,173,82,.15)}
.promo-redeem-row button{padding:13px 24px;border-radius:11px;border:0;cursor:pointer;font:inherit;font-weight:800;
  background:linear-gradient(135deg,#f0d481,#b98227);color:#1a1206}
.promo-redeem-row button:disabled{opacity:.5;cursor:not-allowed}

/* เลือกโปรโมชั่นตอนฝาก */
.pay-promo{display:grid;gap:6px;margin:14px 0}
.pay-promo label{font-size:13px;color:#c4d0c8;font-weight:600}
.pay-promo select{padding:12px 14px;border-radius:11px;background:rgba(0,0,0,.35);border:1px solid rgba(216,173,82,.3);color:inherit;font:inherit;font-size:14px}
/* ── ล็อบบี้เกม (ยกจาก sagame) ── */
.lobby-main{min-width:0}
.lobby-side>button{padding:15px 12px;color:#c4d0c8;font:500 16px/1.2 inherit;text-align:left;background:none;border:0;
  border-left:3px solid transparent;border-radius:0 6px 6px 0;cursor:pointer;transition:.2s;display:flex;align-items:center;gap:8px}
.lobby-side>button:hover,.lobby-side>button.active{background:linear-gradient(90deg,#1c5034,#142d1e);color:#fff;border-left-color:#d8ad52;font-weight:600}
.lobby-side>button i{margin-left:auto;font-style:normal;font-size:12px;color:#8fa295}
.lobby-side>button img{width:28px;height:28px;object-fit:contain;flex:none}
.provider-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:14px}
.provider-card{position:relative;display:flex;flex-direction:column;gap:6px;padding:10px;background:#101912;
  border:1px solid #d8ad5233;border-radius:14px;color:#e9efe9;cursor:pointer;transition:.2s;text-align:center}
.provider-card:hover{border-color:#d8ad52;transform:translateY(-3px);box-shadow:0 14px 26px #0006}
.provider-card img{width:100%;height:104px;object-fit:contain;border-radius:10px;background:#0a120c}
.provider-card span{font-size:14px;font-weight:600}
.provider-card small{font-size:11px;color:#8fa295}
.provider-busy{position:absolute;inset:0;display:grid;place-items:center;background:#000000b3;border-radius:14px;font-size:12px;font-style:normal;color:#e8c870}
.lobby-bar{display:flex;align-items:center;gap:12px;margin-bottom:16px;flex-wrap:wrap}
.lobby-bar b{font-size:17px;color:#e8c870}
.lobby-bar input{margin-left:auto;min-width:180px;padding:9px 13px;border-radius:999px;border:1px solid #d8ad5233;background:#101912;color:#fff;font:inherit;font-size:14px}
.lobby-back{padding:8px 14px;border-radius:999px;border:1px solid #d8ad5240;background:#101912;color:#d8ad52;font:600 13px inherit;cursor:pointer}
.lobby-back:hover{background:#1c5034;color:#fff}
.game-tile-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:12px}
.game-tile{position:relative;display:flex;flex-direction:column;gap:6px;padding:0 0 8px;background:#101912;
  border:1px solid #ffffff0f;border-radius:12px;color:#dfe7e0;cursor:pointer;overflow:hidden;transition:.2s}
.game-tile:hover{border-color:#d8ad52;transform:translateY(-3px)}
.game-tile img{width:100%;aspect-ratio:1;object-fit:cover;background:#0a120c}
.game-tile span{font-size:12px;padding:0 8px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.lobby-more{display:block;margin:20px auto 0;padding:11px 26px;border-radius:999px;border:1px solid #d8ad5255;
  background:#101912;color:#e8c870;font:600 14px inherit;cursor:pointer}
.lobby-more:hover{background:#1c5034;color:#fff}
.lobby-empty{padding:40px 0;text-align:center;color:#8fa295}
.lobby-error{margin:0 0 14px;padding:10px 14px;border-radius:10px;background:#3a1414;border:1px solid #ff6b6b55;color:#ffb3b3;font-size:14px}
@media(max-width:900px){
  .lobby-side>b,.lobby-side>small{display:none}
  .lobby-side>button{white-space:nowrap;border-left:0;border-bottom:3px solid transparent;border-radius:8px;padding:10px 14px;font-size:14px}
  .lobby-side>button.active{border-left:0;border-bottom-color:#d8ad52}}
/* ── ล็อบบี้เกม: จอใหญ่เมนูหมวดอยู่ซ้าย · มือถือย้ายขึ้นบนเลื่อนแนวนอน ── */
.lobby-shell{display:grid;grid-template-columns:196px minmax(0,1fr);gap:20px;align-items:start;margin-top:20px}

.lobby-side{display:flex;flex-direction:column;gap:10px;position:sticky;top:88px}
.lobby-side>b{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#8b9490;font-weight:700;padding-left:4px}
.lobby-side>small{margin-top:6px;font-size:11px;color:#6f7a74;padding-left:4px}
.lobby-side>button{display:flex;align-items:center;gap:10px;width:100%;padding:12px 14px;border-radius:14px;cursor:pointer;
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.02));
  border:1px solid rgba(216,173,82,.16);color:#e7ece9;font:600 14px inherit;text-align:left;transition:.18s}
.lobby-side>button:hover{border-color:rgba(216,173,82,.5);transform:translateX(2px)}
.lobby-side>button img{width:30px;height:30px;object-fit:contain;flex:none}
.lobby-side>button i{margin-left:auto;font-style:normal;font-size:11px;font-weight:700;padding:2px 8px;border-radius:999px;
  background:rgba(0,0,0,.35);color:#c3a563}
.lobby-side>button.active{background:linear-gradient(135deg,#f5a524,#e2701c);border-color:transparent;color:#2a1704;
  box-shadow:0 10px 24px rgba(226,112,28,.28)}
.lobby-side>button.active i{background:rgba(0,0,0,.18);color:#2a1704}

.lobby-main{min-width:0}
.lobby-bar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:16px}
.lobby-bar>b{font-size:15px;color:#e8c870}
.lobby-bar input{flex:1;min-width:180px;padding:11px 15px;border-radius:12px;background:rgba(0,0,0,.35);
  border:1px solid rgba(216,173,82,.25);color:#f6f1e5;font:inherit;font-size:14px;outline:none}
.lobby-bar input:focus{border-color:#d8ad52;box-shadow:0 0 0 3px rgba(216,173,82,.14)}
.lobby-back{padding:9px 15px;border-radius:11px;border:1px solid rgba(216,173,82,.3);background:transparent;
  color:#e8c870;cursor:pointer;font:600 13px inherit}
.lobby-back:hover{background:rgba(216,173,82,.12)}

.provider-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px}
.provider-card{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px;border-radius:16px;cursor:pointer;
  background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.015));
  border:1px solid rgba(216,173,82,.16);color:#e7ece9;font:600 13px inherit;transition:.2s}
.provider-card:hover{border-color:rgba(216,173,82,.55);transform:translateY(-4px);box-shadow:0 16px 30px rgba(0,0,0,.45)}
.provider-card img{width:100%;aspect-ratio:1;object-fit:contain;border-radius:12px;background:rgba(0,0,0,.25)}
.provider-card span{text-align:center;line-height:1.35}
.provider-card small{font-size:11px;color:#8b9490}
.provider-busy{opacity:.55;pointer-events:none}

.game-tile-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:14px}
.game-tile{display:flex;flex-direction:column;gap:8px;padding:0 0 10px;border-radius:14px;overflow:hidden;cursor:pointer;
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07);color:#e7ece9;font:600 12px inherit;transition:.2s}
.game-tile:hover{border-color:rgba(216,173,82,.5);transform:translateY(-4px);box-shadow:0 16px 30px rgba(0,0,0,.45)}
.game-tile img{width:100%;aspect-ratio:1;object-fit:cover;display:block}
.game-tile span{padding:0 10px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

.lobby-more{display:block;margin:22px auto 0;padding:12px 30px;border-radius:999px;cursor:pointer;
  border:1px solid rgba(216,173,82,.35);background:transparent;color:#e8c870;font:700 14px inherit}
.lobby-more:hover{background:rgba(216,173,82,.12)}
.lobby-empty{padding:44px 0;text-align:center;color:#8b9490}
.lobby-error{margin:0 0 14px;padding:11px 15px;border-radius:11px;background:rgba(120,20,20,.35);
  border:1px solid rgba(255,107,107,.35);color:#ffb3b3;font-size:14px}

@media(max-width:900px){
  /* มือถือ: เมนูหมวดขึ้นไปอยู่บน เลื่อนแนวนอนได้ */
  .lobby-shell{grid-template-columns:1fr;gap:14px}
  .lobby-side{position:static;flex-direction:row;gap:8px;overflow-x:auto;padding-bottom:6px;
    scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .lobby-side::-webkit-scrollbar{display:none}
  .lobby-side>b,.lobby-side>small{display:none}
  .lobby-side>button{width:auto;flex:none;flex-direction:column;gap:6px;padding:10px 14px;border-radius:14px;
    font-size:12px;text-align:center;white-space:nowrap}
  .lobby-side>button:hover{transform:none}
  .lobby-side>button i{margin:0}
  .provider-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px}
  .game-tile-grid{grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px}
}

/* หน้าแรก: ล็อกอินแล้วซ่อนส่วนแนะนำ (hero) แล้วขึ้นล็อบบี้เกมแทน */
/* ── การ์ดค่ายบนหน้าแรก (ใช้รูปจริงจากหลังบ้าน) ── */
/* รูปค่ายจากหลังบ้านเป็นแบนเนอร์ใหญ่ ถ้าใช้กริด 4 ช่องเดิมการ์ดจะบานจนคลิกยาก */
.camps{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:14px}
.camp-icon{border-radius:16px}
.camp-icon::after{inset:2px;border-radius:14px}
.camp-icon img{object-fit:cover;border-radius:14px}
/* hover เดิมขยายทั้งการ์ด (scale) พอเมาส์อยู่ขอบ ๆ จะเข้า-ออกสลับกันจนกดไม่โดน
   เปลี่ยนเป็นเรืองแสง+ยกเล็กน้อยแทน พื้นที่กดคงที่ */
.camp-icon:hover,.camp-icon:focus-visible{transform:translateY(-3px);
  filter:drop-shadow(0 10px 20px rgba(245,196,81,.3))}
.camp-icon:hover img,.camp-icon:focus-visible img{transform:none}
@media(max-width:640px){.camps{grid-template-columns:repeat(3,1fr);gap:10px}}
/* ── การ์ดเกมยอดนิยมหน้าแรก (รูปจริงจากหลังบ้านเป็นจัตุรัส) ── */
.games{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px}
/* รูปจากหลังบ้านเป็นสี่เหลี่ยมจัตุรัส กรอบเดิมกว้าง 260x105 เลยตัดหัวตัดท้ายจนอ่านชื่อเกมไม่ออก */
.game img{aspect-ratio:1;object-fit:cover}
.game:hover,.game:focus-visible{transform:translateY(-4px)}
@media(max-width:640px){.games{grid-template-columns:repeat(2,1fr);gap:10px}}

/* เมนูบนหัวเว็บ: แขกเห็นหมวดเกม · สมาชิกเห็นเมนูกระเป๋าเงิน/สิทธิประโยชน์แทน */
.member-only{display:none !important}
html.is-member .guest-only{display:none !important}
html.is-member .nav .member-only,html.is-member .mnav .member-only{display:inline-flex !important}

/* ชิปเครดิตระหว่างรอโปรไฟล์ — โครงร่างกะพริบเบา ๆ แทนปุ่มเข้าสู่ระบบ */
.member-chip-skeleton{display:inline-flex;align-items:center;gap:8px;opacity:.55;pointer-events:none;
  animation:memberSkel 1.1s ease-in-out infinite}
.member-chip-skeleton .member-avatar{background:rgba(255,255,255,.18);color:transparent}
.member-chip-skeleton .member-credit{color:transparent;background:rgba(255,255,255,.14);border-radius:6px}
@keyframes memberSkel{0%,100%{opacity:.4}50%{opacity:.7}}

/* เฟรมแรกสุด React ยังไม่รู้ว่าล็อกอิน (โทเคนอยู่ localStorage) — คลาส is-member มาก่อน paint
   จึงใช้ซ่อนปุ่มเข้าสู่ระบบ/สมัครไว้เลย ไม่ให้เห็นสลับกับชิปเครดิต */
html.is-member .hdr-cta [data-auth],html.is-member .mnav .row [data-auth]{display:none !important}

/* กล่องเข้าสู่ระบบของ NovaPlay */
.sheet .auth-logo,.auth-logo{width:190px;height:auto;margin:2px auto 16px;display:block;
  border:0;border-radius:0;background:none}
.auth-swap{display:block;width:100%;margin-top:12px;padding:10px;border:0;border-radius:10px;
  background:rgba(255,255,255,.05);color:#b7b1bf;font:inherit;font-size:13px;cursor:pointer}
.auth-swap:hover{background:rgba(255,255,255,.09);color:#fff}
.auth-swap b{color:var(--gold,#f6c76c)}

/* ปุ่มสลับโหมดในกล่องสมาชิก (อยู่เหนือปุ่ม LINE) */
.auth-switch{display:block;width:100%;margin:12px 0 10px;padding:13px;border-radius:12px;cursor:pointer;
  border:1px solid rgba(246,199,108,.45);background:rgba(246,199,108,.08);color:#f6c76c;
  font:inherit;font-size:14px;font-weight:600;transition:.18s}
.auth-switch:hover{background:rgba(246,199,108,.16);color:#ffdfa0}

/* novaplay-gradient — ไล่เฉดม่วง-ทองจาง ๆ ให้หน้าสมาชิกไม่ทึบ (โทนเดียวกับหน้าอื่นของเว็บ) */
.memberPage,.wallet-wrap{position:relative}
.memberPage:before,.wallet-wrap:before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:
    radial-gradient(900px 420px at 78% -8%,rgba(139,53,255,.16),transparent 62%),
    radial-gradient(760px 380px at 12% 4%,rgba(246,199,108,.07),transparent 60%),
    radial-gradient(700px 500px at 50% 108%,rgba(139,53,255,.10),transparent 65%)}

/* การ์ด (ไม่รวม <form> — ฟอร์มเป็นตัวจัดวาง ไม่ใช่การ์ด) */
.wallet-credit,.wallet-list li,.acct-list li,.reg-bank{
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.018));
  border:1px solid rgba(255,255,255,.09)}
.wallet-credit{position:relative;overflow:hidden;padding:18px 20px}
.wallet-credit:before{content:"";position:absolute;left:12%;right:12%;top:0;height:1px;
  background:linear-gradient(90deg,transparent,rgba(246,199,108,.55),rgba(139,53,255,.45),transparent)}
.wallet-credit b{background:linear-gradient(100deg,#f9da8d,#ffd98a 45%,#c46bff);
  -webkit-background-clip:text;background-clip:text;color:transparent}

/* ฟอร์ม: เว้นระยะให้หายใจ ไม่ต้องมีพื้นหลังทับ */
.wallet-form{background:none;border:0;display:grid;gap:14px}
.wallet-form label{display:grid;gap:6px}
.sheet-card,.ufa-card{padding:24px 22px 22px}
.sheet-card form,.acct-modal form{display:grid;gap:14px}

/* แถบแท็บ ฝาก/ถอน/ประวัติ */
.seg{background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.08)}
.seg-thumb{box-shadow:0 6px 20px rgba(246,199,108,.28)}

/* ช่องกรอกเงิน */
.amt-box{background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.015));
  border-color:rgba(246,199,108,.22)}
.amt-box.on{box-shadow:0 0 0 3px rgba(246,199,108,.10),0 10px 30px rgba(139,53,255,.12)}

/* หัวข้อหน้าสมาชิก */
.wallet-title,.memberWrap h1{background:linear-gradient(96deg,#fff 40%,#f6c76c);
  -webkit-background-clip:text;background-clip:text;color:transparent}
/* คู่มือตั้งค่า DNS (ยกจาก siam88) — ปรับสีเป็นทอง/ม่วงของ novaplay */
.dns-wrap { max-width: 760px; margin: auto; padding-top: 0; }
.dns-head { margin: 0 0 10px; font-size: 22px; text-align: center; }
.dns-lead { margin: 0 0 18px; color: #9aa6bb; font-size: 14px; line-height: 1.8; }
.dns-tabs { display: flex; gap: 6px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 16px; }
.dns-tabs button { padding: 12px 24px; border: 0; background: none; color: #9aa6bb; font: 600 15px inherit;
  cursor: pointer; border-radius: 10px 10px 0 0; }
.dns-tabs button.on { background: rgba(246,199,108,.16); color: #f6c76c; }
.dns-intro { color: #9aa6bb; font-size: 14px; margin: 0 0 16px; }
.dns-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.dns-steps li { padding: 16px; border-radius: 16px; border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.015)); }
.dns-wrap { padding: 8px 0 40px; }
.dns-steps b { display: block; margin-bottom: 8px; color: var(--gold, #f5c451); font-size: 15px; }
.dns-steps img { width: 100%; max-width: 420px; height: auto; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); }
.dns-note { margin-top: 24px; padding: 14px; border-radius: 12px; background: rgba(255,255,255,.05);
  color: #cfd6e4; font-size: 14px; text-align: center; }

/* ล็อกอินแล้วไม่ต้องโชว์แบนเนอร์ชวนสมัครบนหน้าแรก */
html.is-member .hero{display:none}
html.is-member .quick-dock{margin-top:110px}
/* การ์ดเข้าเล่นทุกใบกดได้ (เดิมเป็น article/div เลยไม่มีสัญญาณว่าคลิกได้) */
.quick-dock a,.provider-card,.sport-card,.cat,.game,.camp-icon,.es-card,.tour-card{cursor:pointer}
.provider-card:hover{transform:translateY(-4px);transition:.2s}

/* สไลด์ค่ายเกม/กีฬา — ของเดิมเลื่อนด้วย CSS animation (transform) ทำให้ scroll/ลากไม่ได้
   ปิด animation แล้วใช้ scrollLeft (JS) แทน: ลากเองได้ ปล่อยแล้วเลื่อนต่อ */
.provider-grid,.sport-grid{
  display:flex !important;width:auto !important;max-width:100% !important;
  animation:none !important;transform:none !important;
  grid-template-columns:none !important;justify-content:flex-start !important;
  overflow-x:auto !important;overscroll-behavior-x:contain;scroll-snap-type:none;
  gap:14px;padding-bottom:6px;cursor:grab;
  scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch}
.provider-grid::-webkit-scrollbar,.sport-grid::-webkit-scrollbar{display:none}
.provider-grid.np-drag,.sport-grid.np-drag{cursor:grabbing;user-select:none}
.provider-grid>*,.sport-grid>*{flex:0 0 auto;scroll-snap-align:none}
.provider-grid>.provider-card{width:clamp(150px,15vw,200px)}
.sport-grid>.sport-card{width:clamp(150px,14vw,200px);height:auto;aspect-ratio:1}
@media(max-width:680px){
  .provider-grid>.provider-card{width:42vw}
  .sport-grid>.sport-card{width:44vw;min-width:0}
}

/* nova-hero — สไลด์ 3 ใบตาม styles.css เดิม · มือถือใช้ภาพครอปแนวตั้งของแต่ละใบ */
@media(max-width:680px){
  .hero{height:calc(100svh - 68px);min-height:600px;max-height:860px;padding:0;display:block;
    margin-top:0;overflow:hidden;position:relative}
  .hero-copy{position:absolute;left:0;right:0;bottom:0;width:auto;padding:0 18px 24px;z-index:5}
  .hero-copy h1{font-size:clamp(28px,7.6vw,38px);letter-spacing:0;line-height:1.35;margin:8px 0 6px}
  .hero-description,.hero-copy>p{font-size:13px;line-height:1.7;max-height:5.2em;overflow:hidden}
  .hero-stats{margin-top:14px;gap:14px}
  .holo-card{display:none}
  /* ภาพแต่ละสไลด์ฝั่งมือถือ — ครอปแนวตั้ง เนื้อหาอยู่กลาง ล่างไล่เป็นดำไว้วางข้อความ */
  .hero-slide{background-position:center 6% !important;background-size:cover !important}
  .hero-slide-football{background-image:linear-gradient(0deg,#07050d 4%,rgba(7,5,13,.8) 30%,rgba(7,5,13,.18) 64%,transparent 78%),url('/assets/hero-football-cheer-mb.webp') !important}
  .hero-slide-slots{background-image:linear-gradient(0deg,#07050d 4%,rgba(7,5,13,.8) 30%,rgba(7,5,13,.18) 64%,transparent 78%),url('/assets/hero-slots-mb.webp') !important}
  .hero-slide-casino{background-image:linear-gradient(0deg,#07050d 4%,rgba(7,5,13,.8) 30%,rgba(7,5,13,.18) 64%,transparent 78%),url('/assets/hero-casino-mb.webp') !important}
}

/* ── ดาวตก + แสงลอย: เป็นชั้นแยกลอยเหนือภาพ (เดิมวางเป็น ::before ของ .hero เลยโดนสไลด์ทับ) ── */
.nova-fx{position:absolute;inset:0;z-index:4;pointer-events:none;overflow:hidden}
.nova-fx b{position:absolute;bottom:-8%;width:5px;height:5px;border-radius:50%;
  background:radial-gradient(circle,#fff 0%,rgba(246,199,108,.95) 45%,transparent 70%);
  box-shadow:0 0 12px rgba(246,199,108,.9),0 0 26px rgba(196,107,255,.6);
  animation:novaRise linear infinite}
.nova-fx b:nth-child(1){left:8%;animation-duration:9s;animation-delay:0s}
.nova-fx b:nth-child(2){left:22%;animation-duration:11s;animation-delay:1.6s;width:4px;height:4px}
.nova-fx b:nth-child(3){left:37%;animation-duration:8s;animation-delay:3.1s;width:6px;height:6px}
.nova-fx b:nth-child(4){left:54%;animation-duration:12s;animation-delay:.8s}
.nova-fx b:nth-child(5){left:68%;animation-duration:9.5s;animation-delay:2.4s;width:4px;height:4px}
.nova-fx b:nth-child(6){left:81%;animation-duration:10.5s;animation-delay:4.2s;width:6px;height:6px}
.nova-fx b:nth-child(7){left:93%;animation-duration:8.5s;animation-delay:5.5s}
@keyframes novaRise{
  0%{transform:translateY(0) scale(.7);opacity:0}
  12%{opacity:1}
  85%{opacity:.8}
  100%{transform:translateY(-105vh) scale(1.15);opacity:0}}

.nova-fx i{position:absolute;top:-20%;width:3px;height:200px;border-radius:3px;
  background:linear-gradient(180deg,transparent,rgba(255,255,255,.95),#f6c76c,rgba(196,107,255,.9),transparent);
  filter:drop-shadow(0 0 10px rgba(246,199,108,.95)) drop-shadow(0 0 24px rgba(196,107,255,.6));
  transform:rotate(22deg);opacity:0;animation:novaMeteor 5s linear infinite}
.nova-fx i:nth-of-type(1){left:34%;animation-delay:.4s}
.nova-fx i:nth-of-type(2){left:62%;animation-delay:2s;height:260px}
.nova-fx i:nth-of-type(3){left:82%;animation-delay:3.6s;height:160px}
.nova-fx i:nth-of-type(4){left:98%;animation-delay:5.2s;height:220px}
@keyframes novaMeteor{
  0%{opacity:0;transform:translate3d(0,-16%,0) rotate(22deg)}
  7%{opacity:1}
  72%{opacity:.75}
  100%{opacity:0;transform:translate3d(-26vw,122vh,0) rotate(22deg)}}
@media(max-width:820px){
  .nova-fx i{animation-name:novaMeteorM}
  .nova-fx i:nth-of-type(1){left:50%}
  .nova-fx i:nth-of-type(2){left:74%}
  .nova-fx i:nth-of-type(3){left:90%}
  .nova-fx i:nth-of-type(4){left:104%}
  @keyframes novaMeteorM{
    0%{opacity:0;transform:translate3d(0,-16%,0) rotate(22deg)}
    7%{opacity:1}
    72%{opacity:.75}
    100%{opacity:0;transform:translate3d(-49vh,122vh,0) rotate(22deg)}}
}
@media(prefers-reduced-motion:reduce){.nova-fx{display:none}}

/* styles.css เดิมปิดคลิกการ์ดค่ายไว้ (.games-section .provider-card{pointer-events:none})
   เพราะสมัยก่อนเลื่อนด้วย CSS animation — ตอนนี้ต้องกดเข้าเล่นได้ */
.games-section .provider-card,.provider-card,.sport-card{pointer-events:auto !important;cursor:pointer}
.provider-card *,.sport-card *{pointer-events:none}      /* คลิกที่ไหนของการ์ดก็นับเป็นการ์ด */
.provider-card .launch{pointer-events:auto}

/* ── ล็อกอินแล้ว hero ถูกซ่อน แต่ยังอยากได้ดาวตก/แสงลอยทั้งหน้า ──
   เปลี่ยน .hero เป็นชั้นเอฟเฟกต์แบบ fixed เต็มจอ ซ่อนลูกทุกตัวยกเว้น .nova-fx */
html.is-member{background:var(--bg)}
html.is-member body{background:transparent}
html.is-member .hero{display:block !important;position:fixed;inset:0;width:100%;height:100dvh;
  min-height:0;max-height:none;margin:0;padding:0;overflow:hidden;background:none;
  pointer-events:none;z-index:-1}
html.is-member .hero>*{display:none !important}
html.is-member .hero>.nova-fx{display:block !important;position:absolute;inset:0;opacity:.55}
html.is-member .hero:after{content:none}
/* ส่วนที่ทึบเต็มพื้นให้โปร่งลงนิด ดาวตกจะได้เห็นลอดเป็นพื้นหลัง */
html.is-member .guidelines-section{background:radial-gradient(circle at 50% 20%,rgba(125,43,201,.13),transparent 42%),rgba(7,5,13,.72)}
