/* Lotto Portal Header v1.0.0 */
.lphh{--lphh-red:#d90f17;--lphh-red-dk:#a3060c;--lphh-gold:#f6b800;
	font-family:"Kanit","Sarabun",system-ui,sans-serif;font-size:15px;line-height:1.4;color:#1d1d1f;background:#fff;position:relative;z-index:999;box-shadow:0 2px 10px rgba(0,0,0,.06);width:100%}
.lphh.is-sticky{position:sticky;top:0}
.admin-bar .lphh.is-sticky{top:32px}
.lphh *,.lphh *::before,.lphh *::after{box-sizing:border-box}
/* กันสไตล์ธีมรั่วเข้ามา */
.lphh a,.lphh a *{text-decoration:none!important;border-bottom:0!important;box-shadow:none}
.lphh ul{list-style:none!important;margin:0!important;padding:0!important}
.lphh li{margin:0!important;padding:0!important;list-style:none!important}
.lphh li::before{content:none!important}
.lphh button{all:unset;box-sizing:border-box;cursor:pointer}
.lphh img.emoji{display:inline-block!important;width:1.15em!important;height:1.15em!important;margin:0!important;vertical-align:-.15em!important}
.lphh a:focus-visible,.lphh button:focus-visible,.lphh input:focus-visible{outline:2px solid var(--lphh-gold)!important;outline-offset:2px}
.lphh-wrap{max-width:1240px;margin:0 auto;padding:0 16px}

/* แถวบน */
.lphh-top-in{display:flex;align-items:center;gap:20px;padding:12px 16px}
.lphh-logo{display:flex;align-items:center;gap:8px;flex-shrink:0;color:inherit!important}
.lphh-logo-img{height:48px!important;width:auto!important;max-width:none!important}
.lphh-logo-emoji{font-size:38px;line-height:1}
.lphh-logo-txt{display:flex;flex-direction:column;line-height:1.1}
.lphh-logo-txt strong{font-size:28px;font-weight:800;font-style:italic;color:var(--lphh-red);letter-spacing:-.5px}
.lphh-logo-txt small{font-size:11.5px;color:#444;margin-top:3px;font-weight:400}

.lphh-search{flex:1;display:flex!important;max-width:520px;margin:0 auto!important;border:1px solid #ddd;border-radius:999px;overflow:hidden;background:#fff;height:42px}
.lphh .lphh-search input[type=search]{flex:1;border:0!important;box-shadow:none!important;padding:0 18px!important;margin:0!important;font:inherit;font-size:14px;background:transparent!important;outline:none;min-width:0;height:100%!important;border-radius:0!important;color:#1d1d1f}
.lphh .lphh-search button{background:var(--lphh-red)!important;width:52px;height:100%;display:grid;place-items:center;border-radius:0}
.lphh .lphh-search button:hover{background:var(--lphh-red-dk)!important}
.lphh-search svg{width:18px;height:18px;fill:#fff}

.lphh-account{display:flex;align-items:center;gap:14px;flex-shrink:0;font-size:14px}
.lphh-login{color:#333!important}
.lphh-login:hover{color:var(--lphh-red)!important}
.lphh-register{background:var(--lphh-red);color:#fff!important;padding:8px 16px;border-radius:6px;font-weight:500;white-space:nowrap}
.lphh-register:hover{background:var(--lphh-red-dk)}

.lphh .lphh-burger{display:none;width:42px;height:42px;border-radius:8px;background:var(--lphh-red);flex-direction:column;align-items:center;justify-content:center;gap:5px}
.lphh-burger span{display:block;width:20px;height:2px;background:#fff;border-radius:2px;transition:transform .2s,opacity .2s}
.lphh.nav-open .lphh-burger span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.lphh.nav-open .lphh-burger span:nth-child(2){opacity:0}
.lphh.nav-open .lphh-burger span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* แถบเมนู */
.lphh-nav{background:linear-gradient(180deg,var(--lphh-red),var(--lphh-red-dk));border-bottom:3px solid var(--lphh-gold)}
.lphh-menu{display:flex;justify-content:space-between}
.lphh-item{position:relative}
.lphh-menu>.lphh-item>a{display:flex;align-items:center;gap:6px;color:#fff!important;padding:11px 14px;font-size:15px;white-space:nowrap;transition:background .15s}
.lphh-menu>.lphh-item:hover>a,.lphh-menu>.lphh-item.is-current>a{background:rgba(0,0,0,.18)}
.lphh-ic{display:inline-flex;align-items:center;font-size:16px;line-height:1}
.lphh-ic img{width:18px!important;height:18px!important;object-fit:contain}
.lphh-caret{width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid currentColor;margin-left:2px;opacity:.85}
.lphh .lphh-sub-toggle{display:none}

/* เมนูย่อย (เดสก์ท็อป) */
.lphh-sub{position:absolute;top:100%;left:0;min-width:220px;background:#fff;border-radius:0 0 8px 8px;box-shadow:0 10px 24px rgba(0,0,0,.15);padding:6px 0!important;opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .15s,transform .15s,visibility .15s;border-top:3px solid var(--lphh-gold)}
.lphh-sub .lphh-sub{position:static;box-shadow:none;border:0;opacity:1;visibility:visible;transform:none;padding:0 0 0 12px!important;min-width:0}
.lphh-item:hover>.lphh-sub,.lphh-item:focus-within>.lphh-sub{opacity:1;visibility:visible;transform:none}
.lphh-sub a{display:flex;align-items:center;gap:8px;padding:9px 16px;color:#222!important;font-size:14px}
.lphh-sub a:hover,.lphh-sub .is-current>a{background:#fff2f2;color:var(--lphh-red)!important}

/* มือถือ/แท็บเล็ต */
@media (max-width:1024px){
	.lphh-login{display:none}
	.lphh-menu>.lphh-item>a{padding:11px 10px;font-size:14px}
}
@media (max-width:900px){
	.lphh-top-in{flex-wrap:wrap;gap:10px;padding:10px 14px}
	.lphh-logo{flex:1;min-width:0}
	.lphh-logo-txt strong{font-size:22px}
	.lphh-logo-txt small{font-size:10.5px}
	.lphh-logo-emoji{font-size:30px}
	.lphh-logo-img{height:40px!important}
	.lphh-search{order:3;flex-basis:100%;max-width:none;height:40px}
	.lphh-register{padding:7px 12px;font-size:13px}
	.lphh .lphh-burger{display:flex}
	.lphh-nav{display:none;max-height:calc(100vh - 120px);overflow-y:auto}
	.lphh.nav-open .lphh-nav{display:block}
	.lphh-nav .lphh-wrap{padding:0}
	.lphh-menu{flex-direction:column}
	.lphh-menu>.lphh-item{border-top:1px solid rgba(255,255,255,.15)}
	.lphh-menu>.lphh-item>a{padding:13px 18px;font-size:15px}
	.lphh-caret{display:none}
	.lphh .lphh-sub-toggle{display:block;position:absolute;top:0;right:0;width:52px;height:47px}
	.lphh-sub-toggle::after{content:"";position:absolute;top:50%;left:50%;width:8px;height:8px;border-right:2px solid #fff;border-bottom:2px solid #fff;transform:translate(-50%,-70%) rotate(45deg);transition:transform .2s}
	.lphh-item.sub-open>.lphh-sub-toggle::after{transform:translate(-50%,-30%) rotate(-135deg)}
	.lphh-sub,.lphh-sub .lphh-sub{position:static;display:none;opacity:1;visibility:visible;transform:none;box-shadow:none;border:0;border-radius:0;background:rgba(0,0,0,.18);padding:0!important;min-width:0}
	.lphh-item.sub-open>.lphh-sub{display:block}
	.lphh-sub a{color:#fff!important;padding:11px 18px 11px 34px}
	.lphh-sub .lphh-sub a{padding-left:50px}
	.lphh-sub a:hover,.lphh-sub .is-current>a{background:rgba(0,0,0,.15);color:#fff!important}
	.lphh-sub .lphh-sub-toggle{height:42px}
}
@media (max-width:782px){.admin-bar .lphh.is-sticky{top:46px}}
@media (max-width:600px){.admin-bar .lphh.is-sticky{top:0}}
@media (prefers-reduced-motion:reduce){.lphh *{transition:none!important}}
