/*
Theme Name: KE789 Dynamic Theme
Theme URI: https://ke789pg.city/
Description: Parameterized KE789 WordPress theme for multi-brand production.
Version: 0.9.2-preview
Text Domain: yg88-sample
*/
:root{--green:#0b9f14;--green-dark:#087c10;--lime:#d8ff2e;--ink:#17201a;--muted:#687269;--paper:#fff;--soft:#f4f8f3;--line:#dce7da;--yellow:#ffe500;--red:#e73736}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fff;color:var(--ink);font-family:Arial,"Helvetica Neue",sans-serif;line-height:1.6}a{color:inherit;text-decoration:none}.shell{width:min(1040px,calc(100% - 32px));margin:auto}.topbar{padding:16px 0;background:#fff}.topbar-inner{display:grid;grid-template-columns:180px 1fr auto;align-items:center;gap:30px}.brand{display:flex;align-items:center;font-size:52px;line-height:1;font-weight:950;letter-spacing:-5px;color:var(--yellow);font-style:italic}.brand-logo{display:block;max-width:170px;max-height:64px;width:auto;height:auto;object-fit:contain}.search{height:40px;border-radius:25px;border:1px solid #e4e9e3;background:#f8faf8;display:flex;align-items:center;padding:0 16px;color:#8a918b}.search span{font-size:13px;flex:1}.search b{font-size:20px;color:#1f281f}.actions{display:flex;gap:12px}.pill{padding:9px 17px;border-radius:4px;color:#fff;font-size:12px;font-weight:800;text-transform:uppercase;box-shadow:0 3px 0 rgba(0,0,0,.12)}.pill.register{background:#68a90c}.pill.login{background:#ea3c3c}.nav-wrap{background:var(--green);border-bottom:3px solid rgba(0,0,0,.05)}.nav{display:grid;grid-template-columns:repeat(10,1fr);min-height:43px;align-items:center}.nav>ul{display:contents}.nav li{list-style:none;min-width:0;height:100%}.nav a{display:flex;align-items:center;justify-content:center;height:100%;color:#fff;font-size:12px;font-weight:850;text-align:center;text-transform:uppercase;white-space:nowrap}.nav a:hover{color:var(--lime)}.hero{position:relative;overflow:hidden;min-height:325px;background:radial-gradient(circle at 82% 35%,rgba(255,255,255,.95),rgba(219,250,230,.66) 20%,transparent 40%),linear-gradient(120deg,#f7fffe 0%,#e6faf1 45%,#dff3ff 100%)}.hero:before,.hero:after{content:"";position:absolute;border-radius:50%;filter:blur(2px)}.hero:before{width:420px;height:420px;right:-80px;top:-95px;background:repeating-conic-gradient(from 0deg,#dff8ff 0 12deg,#fff 12deg 24deg);opacity:.7}.hero:after{width:280px;height:280px;right:155px;bottom:-165px;border:34px solid rgba(4,146,30,.14);box-shadow:0 0 0 35px rgba(255,229,0,.14),0 0 0 70px rgba(65,166,255,.1)}.hero-inner{position:relative;z-index:1;padding:42px 0 34px;display:grid;grid-template-columns:1.2fr .8fr;align-items:center}.eyebrow{display:inline-flex;align-items:center;gap:10px;color:var(--green-dark);font-weight:900;text-transform:uppercase}.eyebrow:before{content:attr(data-brand);padding:4px 12px;border:3px solid var(--green);border-radius:50%;font-size:22px}.hero h1{margin:14px 0 8px;font-size:48px;line-height:1.08;color:var(--green-dark);text-transform:uppercase;text-shadow:2px 2px 0 #fff,-1px -1px 0 #fff}.hero p{max-width:610px;color:#3f5947}.hero-domain{display:inline-block;margin-top:10px;padding:7px 35px;background:#fff;border:1px solid #cfdace;border-radius:6px;font-family:Georgia,serif;color:var(--green-dark);font-size:22px;font-weight:800;box-shadow:0 5px 14px rgba(20,80,40,.08)}.hero-art{position:relative;height:240px}.disc{position:absolute;inset:45px 10px 0;border-radius:50%;background:linear-gradient(150deg,#fff,#b8e9db);border:10px solid #fff;box-shadow:0 16px 30px rgba(19,91,54,.18)}.disc:before{content:attr(data-brand);position:absolute;inset:34px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,var(--green),var(--green-dark));color:var(--yellow);font-size:44px;font-weight:950;letter-spacing:-4px}.card-fan{position:absolute;width:68px;height:94px;border-radius:9px;background:#fff;box-shadow:0 9px 20px rgba(0,0,0,.13);display:grid;place-items:center;color:#e53935;font-size:25px;font-weight:900}.card-fan.one{right:50px;top:5px;transform:rotate(12deg)}.card-fan.two{right:110px;top:0;transform:rotate(-6deg);color:#1b56c9}.card-fan.three{right:170px;top:18px;transform:rotate(-22deg)}.category-strip{padding:28px 0 24px}.category-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}.category-card{min-height:132px;border:2px solid var(--tone);border-radius:10px;overflow:hidden;background:linear-gradient(145deg,color-mix(in srgb,var(--tone) 14%,white),#fff);position:relative}.category-card:before{content:attr(data-mark);position:absolute;right:-4px;top:14px;color:var(--tone);opacity:.16;font-size:68px;font-weight:950;line-height:1}.category-card small{display:block;padding:6px 9px;color:var(--tone);font-size:10px;font-weight:900;text-transform:uppercase}.category-card strong{position:absolute;left:0;right:0;bottom:0;padding:7px 5px;background:var(--tone);color:#fff;text-align:center;font-size:11px;text-transform:uppercase}.category-card .symbol{height:74px;display:grid;place-items:center;font-size:38px;filter:saturate(1.15)}.section{padding:24px 0 46px}.section-heading{text-align:center;color:var(--green);font-size:27px;line-height:1.25;text-transform:uppercase;letter-spacing:.5px}.section-lead{max-width:920px;margin:0 auto 28px;text-align:center;color:#57635a}.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.post-card{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 8px 24px rgba(20,70,35,.07);transition:.2s}.post-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(20,70,35,.12)}.thumb{height:140px;padding:14px;background:linear-gradient(135deg,var(--tone),var(--deep));color:#fff;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.thumb:after{content:"YG88.city";position:absolute;right:12px;bottom:9px;font-size:11px;font-weight:800;opacity:.8}.thumb b{font-size:26px}.thumb span{font-size:11px;text-transform:uppercase;letter-spacing:1px}.thumb.has-image{padding:0;background:#142018}.thumb.has-image:after{display:none}.thumb.has-image img{width:100%;height:100%;object-fit:cover;display:block}.thumb.has-image span{position:absolute;left:9px;top:9px;padding:4px 8px;border-radius:4px;background:rgba(4,20,8,.78);z-index:1}.thumb.has-image b{display:none}.post-body{padding:15px}.post-body small{color:var(--green);font-size:11px;font-weight:800;text-transform:uppercase}.post-body h3{margin:5px 0 7px;font-size:17px;line-height:1.35}.post-body p{margin:0;color:var(--muted);font-size:13px}.faq{background:var(--soft);padding:42px 0}.faq h2{text-align:center;color:var(--green)}.faq details{max-width:850px;margin:10px auto;background:#fff;border:1px solid var(--line);border-radius:8px;padding:13px 16px}.faq summary{font-weight:800;cursor:pointer}.footer{background:#112719;color:#dbe9dd;padding:38px 0 20px}.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:40px}.footer .brand{font-size:40px}.footer .brand-logo{max-width:150px;max-height:56px}.footer h3{margin-top:0;color:#fff;font-size:14px;text-transform:uppercase}.footer a{display:block;padding:3px 0;color:#c7d9c9;font-size:13px}.copyright{margin-top:30px;padding-top:14px;border-top:1px solid rgba(255,255,255,.12);font-size:12px;color:#8fa897}.page-title{padding:35px 0 10px;text-transform:uppercase;color:var(--green)}.article{max-width:800px;margin:30px auto 60px}.article h1{line-height:1.2}.article-cover{width:100%;height:auto;border-radius:14px;margin:8px 0 24px}.mobile-nav{display:none}@media(max-width:860px){.topbar-inner{grid-template-columns:1fr auto}.search{display:none}.nav{overflow-x:auto;display:flex}.nav>ul{display:flex}.nav li{flex:0 0 auto}.nav a{padding:13px 16px}.hero-inner{grid-template-columns:1fr}.hero h1{font-size:35px}.hero-art{display:none}.category-grid{grid-template-columns:repeat(3,1fr)}.post-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:560px){.shell{width:min(100% - 22px,1040px)}.brand{font-size:38px}.brand-logo{max-width:125px;max-height:50px}.actions{gap:6px}.pill{padding:7px 9px;font-size:10px}.hero{min-height:300px}.hero-inner{padding:34px 0}.hero h1{font-size:29px}.hero-domain{font-size:18px}.category-grid{grid-template-columns:repeat(2,1fr)}.post-grid,.footer-grid{grid-template-columns:1fr}.section-heading{font-size:22px}}

.yg88-bottom-ad{position:fixed;z-index:100;bottom:0;left:50%;transform:translateX(-50%);display:flex;width:min(960px,100%)}
.yg88-bottom-ad>a{display:block;width:50%;line-height:0}
.yg88-bottom-ad img{display:block;width:100%;height:50px;object-fit:cover}
.hero{background:radial-gradient(circle at 82% 35%,rgba(255,255,255,.95),color-mix(in srgb,var(--green) 18%,white) 20%,transparent 40%),linear-gradient(120deg,#fff 0%,color-mix(in srgb,var(--green) 12%,white) 45%,color-mix(in srgb,var(--yellow) 15%,white) 100%)}
.hero:after{border-color:color-mix(in srgb,var(--green) 18%,transparent);box-shadow:0 0 0 35px color-mix(in srgb,var(--yellow) 18%,transparent),0 0 0 70px color-mix(in srgb,var(--green) 10%,transparent)}
.disc{background:linear-gradient(150deg,#fff,color-mix(in srgb,var(--green) 24%,white))}
.brand-ke789 .topbar{background:#050505}.brand-ke789 .header-search{border-color:#34252a;background:#171214;color:#c4b7bb}.brand-ke789 .header-search b{color:#ffd34d}.brand-ke789 .footer{background:#050505}

/* KE789 0.3.1: align the brand shell, header and logo proportions with ke789vn.love. */
body.brand-ke789{background:linear-gradient(90deg,#eee9e7 0%,#f7f5f4 18%,#f7f5f4 82%,#eee9e7 100%) fixed;font-family:Montserrat,Arial,sans-serif}
.brand-ke789>header,.brand-ke789>main,.brand-ke789>.footer{width:min(1200px,100%);margin-left:auto;margin-right:auto;box-shadow:0 0 28px rgba(54,18,20,.10)}
.brand-ke789>main{min-height:60vh;background:#fff}
.brand-ke789 .shell{width:min(1140px,calc(100% - 60px))}
.brand-ke789 .topbar{height:76px;padding:0}
.brand-ke789 .topbar-inner{height:76px;grid-template-columns:210px 1fr;gap:28px}
.brand-ke789 .brand-logo{width:210px;max-width:210px;max-height:70px}
.brand-ke789 .header-search{display:none}
.brand-ke789 .actions{margin-left:auto;gap:20px}
.brand-ke789 .pill{display:inline-flex;min-width:120px;height:28px;align-items:center;justify-content:center;padding:0 16px;border-radius:18px;font-size:12px}
.brand-ke789 .nav-wrap{background:#d00000;border-bottom:3px solid #ffd000}
.brand-ke789 .nav{min-height:50px;display:flex;justify-content:center;gap:30px;overflow-x:auto}
.brand-ke789 .nav>ul{display:flex;align-items:stretch;gap:30px;margin:0;padding:0}
.brand-ke789 .nav li{flex:0 0 auto}
.brand-ke789 .nav a{padding:0 2px;font-size:13px}
.brand-ke789 .footer .brand-logo{width:auto;max-width:208px;max-height:60px}
.brand-ke789.ke789-bg-preview-yg88{background:#fff}
.brand-ke789.ke789-bg-preview-yg88>header,.brand-ke789.ke789-bg-preview-yg88>main,.brand-ke789.ke789-bg-preview-yg88>.footer{width:100%;max-width:none;box-shadow:none}
.brand-ke789.ke789-bg-preview-yg88 .shell{width:min(1040px,calc(100% - 32px))}
@media(max-width:760px){body.brand-ke789{background:#fff}.brand-ke789 .shell{width:calc(100% - 28px)}.brand-ke789 .topbar{height:69px}.brand-ke789 .topbar-inner{height:69px;grid-template-columns:1fr auto;justify-items:center}.brand-ke789 .brand-logo{width:195px;max-width:195px;max-height:58px}.brand-ke789 .actions{gap:8px}.brand-ke789 .pill{min-width:76px;height:28px;padding:0 9px;font-size:9px}.brand-ke789 .nav{min-height:42px;justify-content:flex-start}.brand-ke789 .nav>ul{gap:0}.brand-ke789 .nav a{padding:0 15px}}
@media(max-width:760px){
  .yg88-bottom-ad{left:0;width:100%;height:auto;transform:none;flex-direction:column}
  .yg88-bottom-ad>a{width:100%}
  .yg88-bottom-ad img{width:100%;height:auto}
  .yg88-bottom-ad::before{content:'×';position:absolute;right:0;top:-25px;width:20px;height:20px;border:2px solid #111;border-radius:50%;background:#fff;color:#111;font:700 17px/15px Arial;text-align:center}
}

/* KE789 0.5.6: source-matched 1920x450 two-slide home carousel. */
.yg88-reference-slider{position:relative;width:100%;aspect-ratio:1920/450;overflow:hidden;background:#edf7ff;isolation:isolate}
.yg88-slider-viewport,.yg88-slider-track,.yg88-slider-slide{width:100%;height:100%}
.yg88-slider-viewport{overflow:hidden}
.yg88-slider-track{display:flex;transform:translate3d(0,0,0);transition:transform .65s cubic-bezier(.22,.61,.36,1);will-change:transform}
.yg88-slider-slide{position:relative;flex:0 0 100%;margin:0;overflow:hidden}
.yg88-slider-slide img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.yg88-slider-slide.has-reference-placeholder{background-position:center;background-size:cover}
.yg88-slider-slide.has-reference-placeholder>img{opacity:0;transition:opacity .22s ease}
.yg88-slider-slide.has-reference-placeholder.is-image-loaded>img{opacity:1}
.ke789-slide-brand-overlay{position:absolute;z-index:2;left:23.15%;top:1.8%;width:10.05%;height:24.8%;overflow:hidden;border-radius:10px;background:#fff;box-shadow:0 3px 10px rgba(39,106,125,.12)}
.ke789-slide-logo-window{position:absolute;inset:0;display:block;overflow:hidden}
.yg88-slider-slide .ke789-slide-logo-window .brand-logo{position:absolute;left:50%;top:50%;display:block;width:100%;height:auto;max-width:none;max-height:none;object-fit:contain;transform:translate(-50%,-50%)}
.ke789-slide-domain-overlay{position:absolute;z-index:2;left:27.25%;bottom:7.2%;display:flex;width:17.8%;height:12.8%;align-items:center;justify-content:center;padding:0 1.1%;overflow:hidden;border:1px solid rgba(119,135,133,.5);border-radius:6px;background:#fff;color:#23820f;font-family:Georgia,"Times New Roman",serif;font-size:clamp(8px,1.52vw,29px);font-weight:800;letter-spacing:-.02em;line-height:1;white-space:nowrap;box-shadow:none}
.yg88-slider-button{position:absolute;z-index:3;top:50%;display:grid;place-items:center;width:42px;height:42px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.84);color:#198b1c;font-size:31px;line-height:1;box-shadow:0 3px 12px rgba(0,50,80,.18);opacity:0;transform:translateY(-50%);transition:opacity .2s,background-color .2s;cursor:pointer}
.yg88-reference-slider:hover .yg88-slider-button,.yg88-reference-slider:focus-within .yg88-slider-button{opacity:1}
.yg88-slider-button:hover,.yg88-slider-button:focus-visible{background:#fff;outline:2px solid #15931b;outline-offset:2px}
.yg88-slider-prev{left:18px}.yg88-slider-next{right:18px}
.yg88-slider-dots{position:absolute;z-index:3;left:50%;bottom:11px;display:flex;gap:9px;transform:translateX(-50%)}
.yg88-slider-dot{width:10px;height:10px;padding:0;border:2px solid rgba(255,255,255,.95);border-radius:50%;background:rgba(255,255,255,.48);box-shadow:0 1px 4px rgba(0,0,0,.18);cursor:pointer}
.yg88-slider-dot.is-active{background:#fff}
@media(max-width:860px){.yg88-slider-button{width:28px;height:28px;font-size:21px;opacity:.88}.yg88-slider-prev{left:7px}.yg88-slider-next{right:7px}.yg88-slider-dots{bottom:5px;gap:6px}.yg88-slider-dot{width:7px;height:7px;border-width:1px}}
@media(prefers-reduced-motion:reduce){.yg88-slider-track{transition:none}}

/* KE789 0.4.0: YG88-inspired full-width image hero with dynamic WordPress copy. */
.hero-background{position:absolute;z-index:0;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.hero-brand-lockup{display:flex;align-items:center;gap:18px;margin-bottom:20px;color:var(--green-dark);font-weight:900;text-transform:uppercase}
.hero-brand-logo{display:flex;align-items:center;flex:0 0 auto}
.hero-brand-logo .brand-logo{width:155px;max-width:155px;max-height:52px}
.hero-brand-tagline{padding-left:18px;border-left:2px solid currentColor;font-size:15px;line-height:1.25}
.brand-ke789 .hero{min-height:360px;background:#fff7f4}
.brand-ke789 .hero:before{content:"";position:absolute;z-index:1;inset:0;width:auto;height:auto;right:0;top:0;border-radius:0;filter:none;opacity:1;background:linear-gradient(90deg,rgba(255,255,255,.95) 0%,rgba(255,248,245,.86) 34%,rgba(255,244,240,.34) 57%,rgba(255,255,255,0) 74%)}
.brand-ke789 .hero:after{display:none}
.brand-ke789 .hero-inner{z-index:2;min-height:360px;display:flex;align-items:center;padding:28px 0 30px}
.brand-ke789 .hero-copy{width:57%;position:relative}
.brand-ke789 .hero-brand-lockup{margin-bottom:15px;color:#7c0500}
.brand-ke789 .hero-brand-logo .brand-logo{width:185px;max-width:185px;max-height:58px}
.brand-ke789 .hero-brand-tagline{max-width:300px;border-color:#d00000;font-size:14px;letter-spacing:.2px}
.brand-ke789 .hero h1{max-width:610px;margin:0 0 12px;color:#790500;font-size:43px;line-height:1.04;letter-spacing:-1px;text-shadow:0 2px 0 #fff;text-transform:uppercase}
.brand-ke789 .hero p{max-width:570px;margin:0 0 18px;color:#4f453f;font-size:15px;line-height:1.55}
.brand-ke789 .hero-domain{margin:0;padding:6px 28px;border:1px solid #e1c8c2;border-radius:5px;background:rgba(255,255,255,.92);color:#7c0500;font-size:21px;box-shadow:0 4px 14px rgba(91,0,0,.08)}
.brand-ke789 .hero-art{display:none}
@media(max-width:760px){
  .brand-ke789 .hero{min-height:350px}
  .brand-ke789 .hero-background{object-position:68% center}
  .brand-ke789 .hero:before{background:linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,248,245,.93) 52%,rgba(255,244,240,.55) 76%,rgba(255,255,255,.1) 100%)}
  .brand-ke789 .hero-inner{min-height:350px;padding:25px 0}
  .brand-ke789 .hero-copy{width:75%}
  .brand-ke789 .hero-brand-lockup{gap:10px;margin-bottom:13px}
  .brand-ke789 .hero-brand-logo .brand-logo{width:145px;max-width:145px;max-height:48px}
  .brand-ke789 .hero-brand-tagline{padding-left:10px;font-size:10px}
  .brand-ke789 .hero h1{font-size:31px}
  .brand-ke789 .hero p{font-size:13px;line-height:1.45}
  .brand-ke789 .hero-domain{padding:5px 18px;font-size:17px}
}
@media(max-width:480px){
  .brand-ke789 .hero-background{object-position:72% center;opacity:.48}
  .brand-ke789 .hero:before{background:linear-gradient(90deg,#fff 0%,rgba(255,250,248,.94) 72%,rgba(255,255,255,.58) 100%)}
  .brand-ke789 .hero-copy{width:100%}
  .brand-ke789 .hero-brand-tagline{display:none}
  .brand-ke789 .hero h1{max-width:360px;font-size:28px}
  .brand-ke789 .hero p{max-width:330px}
}

/* KE789 0.5.0: full homepage structure aligned with the YG88 desktop/mobile layout. */
body.brand-ke789{overflow-x:hidden;background:#fff;font-family:Arial,"Helvetica Neue",sans-serif}
.brand-ke789>header,.brand-ke789>main,.brand-ke789>.footer{width:100%;max-width:none;margin:0;box-shadow:none}
.brand-ke789>main{background:#fff}
.brand-ke789 .shell{width:min(1040px,calc(100% - 30px))}
.mobile-menu{display:none}

.brand-ke789 .topbar{height:88px;padding:0;background:#050505}
.brand-ke789 .topbar-inner{height:88px;display:grid;grid-template-columns:210px minmax(280px,490px) auto;gap:28px;align-items:center}
.brand-ke789 .brand{justify-self:start}
.brand-ke789 .brand-logo{display:block;width:210px;max-width:210px;max-height:68px;object-fit:contain}
.brand-ke789 .header-search{display:flex;width:100%;height:36px;border:1px solid #3a3032;background:#181315}
.brand-ke789 .actions{justify-self:end;margin:0;gap:14px}
.brand-ke789 .pill{min-width:100px;height:30px;padding:0 14px;border-radius:5px;font-size:11px;box-shadow:none}
.brand-ke789 .nav-wrap{height:38px;border:0;border-bottom:2px solid #ffd000;background:#d00000}
.brand-ke789 .nav{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:0;min-height:38px;height:38px;overflow:visible}
.brand-ke789 .nav>ul{display:contents;margin:0;padding:0}
.brand-ke789 .nav li{height:38px}
.brand-ke789 .nav a{height:38px;padding:0 4px;font-size:12px;line-height:1;white-space:nowrap}

.brand-ke789 .yg88-home-hero{position:relative;width:100%;min-height:0;aspect-ratio:1920/450;background:linear-gradient(105deg,#fffaf5 0%,#fff7f0 52%,#ffd4c8 100%);overflow:hidden}
.brand-ke789 .yg88-home-hero:before{content:"";position:absolute;z-index:1;inset:0;border-radius:0;filter:none;opacity:1;background:linear-gradient(90deg,rgba(255,255,255,.30) 0%,rgba(255,255,255,.08) 45%,rgba(255,255,255,0) 70%)}
.brand-ke789 .yg88-home-hero:after{display:none}
.brand-ke789 .yg88-home-hero .hero-background{inset:auto;top:-17.5%;right:clamp(100px,9vw,175px);bottom:auto;left:auto;width:auto;max-width:none;height:135%;object-fit:contain;object-position:center;opacity:1;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 24%,#000 100%);mask-image:linear-gradient(90deg,transparent 0,#000 24%,#000 100%)}
.brand-ke789 .yg88-home-hero .hero-inner{position:absolute;z-index:2;inset:0;min-height:0;height:100%;padding:0;display:flex;align-items:center}
.brand-ke789 .yg88-home-hero .hero-copy{width:64%;padding:0}
.brand-ke789 .yg88-home-hero .hero-brand-lockup{gap:14px;margin:0 0 10px;color:#8b0904}
.brand-ke789 .yg88-home-hero .hero-brand-logo .brand-logo{width:150px;max-width:150px;max-height:48px}
.brand-ke789 .yg88-home-hero .hero-brand-tagline{max-width:260px;padding-left:14px;border-left:2px solid #d00000;font-size:13px;line-height:1.2}
.brand-ke789 .yg88-home-hero h2{max-width:780px;margin:0 0 13px;color:#790500;font-size:clamp(26px,2.65vw,40px);font-weight:900;line-height:1.02;letter-spacing:-.7px;text-transform:uppercase;text-shadow:0 1px 0 #fff}
.brand-ke789 .yg88-home-hero p{display:none}
.brand-ke789 .yg88-home-hero .hero-domain{margin:0;padding:5px 25px;border:1px solid #dccac6;border-radius:5px;background:rgba(255,255,255,.92);color:#790500;font-size:20px;line-height:1.25;box-shadow:0 3px 10px rgba(88,0,0,.08)}
@media(min-width:1100px){.brand-ke789 .yg88-home-hero .hero-background{top:-27.5%;height:155%}.brand-ke789 .yg88-home-hero .hero-inner{width:100%;max-width:none}.brand-ke789 .yg88-home-hero .hero-copy{margin-left:clamp(80px,10vw,190px);transform:none}}

.brand-ke789 .category-strip{padding:24px 0 25px;background:#fff}
.brand-ke789 .original-game-grid{width:min(1040px,calc(100% - 30px));gap:19.6px}
.brand-ke789 .original-game-card{scroll-snap-align:start}
.brand-ke789 .original-game-card.is-branded{border:2px solid #d00000;border-radius:10px;background:#180003}
.brand-ke789 .original-game-card.is-branded span{padding:8px 4px;background:linear-gradient(90deg,#720000,#d00000,#720000);color:#ffd000;font-size:10px}

.home-intro{padding:0 0 46px;background:#fff;color:#292929}
.home-intro h1{max-width:980px;margin:0 auto 26px;color:#b90000;font-size:28px;font-weight:800;line-height:1.25;text-align:center;text-transform:uppercase}
.home-intro>div>p{margin:0 0 21px;font-size:16px;line-height:1.6}
.home-intro>div>p a{color:#8c0000}
.home-intro h2{margin:20px 0 12px;color:#111;font-size:20px;line-height:1.35}
.home-faq{border-top:1px solid #d7dfe7}
.home-faq details{margin:0;border:0;border-bottom:1px solid #e5e8eb;border-radius:0;background:#fff;padding:0}
.home-faq summary{position:relative;display:block;min-height:50px;padding:13px 42px 11px;color:#1174d1;font-size:17px;font-weight:700;line-height:1.45;cursor:pointer;list-style:none}
.home-faq summary::-webkit-details-marker{display:none}
.home-faq summary:before{content:"⌄";position:absolute;left:13px;top:8px;font-size:26px;font-weight:400;transform:rotate(-90deg);transition:transform .2s ease}
.home-faq details[open] summary:before{transform:rotate(0deg)}
.home-faq details p{margin:0;padding:13px 42px 20px;font-size:16px;line-height:1.6}

@media(max-width:760px){
  .brand-ke789 .shell{width:calc(100% - 30px)}
  .brand-ke789>header{height:73px;position:relative;z-index:20}
  .brand-ke789 .topbar{height:73px;background:#fff}
  .brand-ke789 .topbar-inner{width:100%;height:73px;display:grid;grid-template-columns:58px 1fr 58px;grid-template-rows:30px 43px;grid-template-areas:"actions actions actions" "menu brand spacer";gap:0;padding:0 15px}
  .brand-ke789 .actions{grid-area:actions;justify-self:stretch;align-self:stretch;display:flex;align-items:center;justify-content:center;gap:14px;width:100vw;margin-left:calc(50% - 50vw);background:#050505}
  .brand-ke789 .pill{min-width:77px;height:24px;padding:0 10px;border-radius:4px;font-size:10px}
  .brand-ke789 .brand{grid-area:brand;justify-self:center;align-self:center;height:43px}
  .brand-ke789 .brand-logo{width:121px;max-width:121px;max-height:43px}
  .brand-ke789 .header-search{display:none}
  .brand-ke789 .nav-wrap{display:none}
  .mobile-menu{grid-area:menu;display:block;position:relative;align-self:center;justify-self:start;margin:0}
  .mobile-menu summary{display:flex;width:24px;height:24px;flex-direction:column;justify-content:center;gap:4px;cursor:pointer;list-style:none}
  .mobile-menu summary::-webkit-details-marker{display:none}
  .mobile-menu summary span{display:block;width:20px;height:2px;background:#5e5e5e}
  .mobile-menu-panel{position:absolute;z-index:30;top:31px;left:-15px;width:min(290px,86vw);padding:8px 0;background:#fff;border-top:3px solid #d00000;box-shadow:0 10px 24px rgba(0,0,0,.2)}
  .mobile-menu-panel a{display:block;padding:10px 18px;border-bottom:1px solid #eee;color:#700000;font-size:13px;font-weight:800;text-transform:uppercase}

  .brand-ke789 .yg88-home-hero{min-height:0;aspect-ratio:1920/450}
  .brand-ke789 .yg88-home-hero .hero-background{inset:auto;top:-15%;right:30px;bottom:auto;left:auto;width:auto;max-width:none;height:130%;object-fit:contain;object-position:center;opacity:1;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 20%,#000 100%);mask-image:linear-gradient(90deg,transparent 0,#000 20%,#000 100%)}
  .brand-ke789 .yg88-home-hero:before{background:linear-gradient(90deg,rgba(255,255,255,.22),rgba(255,255,255,0) 72%)}
  .brand-ke789 .yg88-home-hero .hero-inner{width:100%;min-height:0;padding:0 15px}
  .brand-ke789 .yg88-home-hero .hero-copy{width:58%;padding:0}
  .brand-ke789 .yg88-home-hero .hero-brand-lockup{gap:4px;margin:0 0 2px}
  .brand-ke789 .yg88-home-hero .hero-brand-logo .brand-logo{width:43px;max-width:43px;max-height:14px}
  .brand-ke789 .yg88-home-hero .hero-brand-tagline{display:block;max-width:70px;padding-left:4px;border-left-width:1px;font-size:5.2px;line-height:1.05}
  .brand-ke789 .yg88-home-hero h2{max-width:190px;margin:0 0 3px;font-size:10.5px;line-height:1.02;letter-spacing:-.1px;text-shadow:0 1px 0 #fff}
  .brand-ke789 .yg88-home-hero p{display:none}
  .brand-ke789 .yg88-home-hero .hero-domain{padding:1px 8px;border-radius:2px;font-size:6.6px;line-height:1.25;box-shadow:none}

  .brand-ke789 .category-strip{padding:22px 0 28px}
  .brand-ke789 .original-game-grid{width:calc(100% - 30px);display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:calc((100% - 20px)/3);gap:10px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-inline:contain}
  .brand-ke789 .original-game-grid::-webkit-scrollbar{display:none}
  .brand-ke789 .original-game-card.is-branded span{padding:5px 2px;font-size:7px}

  .home-intro{padding:0 0 38px}
  .home-intro h1{margin:0 auto 28px;font-size:22px;line-height:1.22}
  .home-intro>div>p{margin-bottom:22px;font-size:16px;line-height:1.6}
  .home-intro h2{margin:20px 0 9px;font-size:17px;line-height:1.45}
  .home-faq summary{min-height:51px;padding:12px 14px 12px 39px;font-size:16px;line-height:1.5}
  .home-faq summary:before{left:9px;top:8px}
  .home-faq details p{padding:13px 14px 20px 39px;font-size:16px}
}

/* KE789 0.6.4: YG88-inspired footer with configurable social/contact actions. */
.ke789-reference-footer .shell{width:min(1200px,calc(100% - 40px))}
.brand-ke789 .topbar .brand{position:relative;width:226px;height:58px;min-height:58px;overflow:hidden;border-radius:8px;background:#fff}
.brand-ke789 .topbar .brand-logo{position:absolute;left:50%;top:50%;width:226px;height:226px;max-width:none;max-height:none;transform:translate(-50%,-50%);object-fit:contain}
.ke789-reference-footer{min-height:390px;padding:50px 0 22px;border-top:3px solid #e7b82f;background:#090012;color:#fff}
.ke789-reference-footer-grid{display:grid;grid-template-columns:1.05fr .85fr 1.35fr;gap:54px}
.ke789-footer-about .brand{position:relative;display:flex;width:280px;height:82px;min-height:82px;margin:0 0 26px;align-items:center;justify-content:center;overflow:hidden;border-radius:9px;background:#fff}
.ke789-footer-about .brand-logo{position:static;display:block;width:auto;height:auto;max-width:100%;max-height:100%;transform:none;object-fit:contain}
.ke789-footer-about>p{max-width:390px;margin:0 0 22px;color:#f1edf5;font-size:14px;line-height:1.75}
.ke789-footer-about .ke789-footer-manager{margin-top:26px}
.ke789-footer-about .ke789-footer-tags{margin-top:24px;font-weight:700;word-spacing:5px}
.ke789-footer-column h2{margin:0 0 28px;padding:0 0 13px;border-bottom:2px solid rgba(255,255,255,.24);color:#fff;font-size:18px;line-height:1.25;text-transform:uppercase}
.ke789-footer-column h2:after{content:"";display:block;width:56%;height:2px;margin:11px 0 -15px;background:rgba(255,255,255,.16)}
.ke789-footer-column ul{margin:0;padding:0;list-style:none}
.ke789-footer-column li{border-bottom:1px solid rgba(255,255,255,.13)}
.ke789-footer-column li>a,.ke789-footer-contact li{display:flex;align-items:center;gap:10px;min-height:43px;color:#fff;font-size:14px;line-height:1.45}
.ke789-footer-column li>a:hover{color:#ffd000}
.ke789-footer-check{font-size:19px;font-weight:900}
.ke789-footer-action-list small{display:inline-flex;align-items:center;height:17px;margin-left:auto;padding:0 4px;border-radius:2px;background:#d90000;color:#fff;font-size:8px;font-weight:900;line-height:1}
.ke789-footer-action-list small.new{background:#1678e8}
.ke789-footer-contact li{align-items:flex-start;padding:10px 0}
.ke789-footer-contact li>span:first-child{width:20px;flex:0 0 20px;text-align:center;font-size:17px}
.ke789-footer-contact li>a{display:inline;color:#fff;font-size:14px}
.ke789-footer-socials{display:flex;align-items:center;gap:9px;margin-top:15px}
.ke789-footer-socials a,.ke789-footer-socials span{display:grid;width:42px;height:42px;padding:0;place-items:center;border:2px solid rgba(255,255,255,.65);border-radius:50%;color:#fff}
.ke789-footer-socials svg{display:block;width:21px;height:21px;fill:currentColor}
.ke789-footer-socials a:hover{border-color:#ffd000;color:#ffd000;transform:translateY(-1px)}
.ke789-footer-socials .is-disabled{cursor:not-allowed;opacity:.48}
.ke789-reference-footer .copyright{margin-top:34px;padding-top:15px;border-top:1px solid rgba(255,255,255,.14);color:#91899a;font-size:11px}

@media(max-width:760px){
  .ke789-reference-footer .shell{width:calc(100% - 28px)}
  .ke789-reference-footer{min-height:0;padding:34px 0 20px}
  .ke789-reference-footer-grid{grid-template-columns:1fr;gap:32px}
  .brand-ke789 .topbar .brand{width:150px;height:40px;min-height:40px}
  .brand-ke789 .topbar .brand-logo{width:150px;height:150px}
  .ke789-footer-about .brand{width:225px;height:66px;min-height:66px}
  .ke789-footer-about .brand-logo{width:auto;height:auto;max-width:100%;max-height:100%}
  .ke789-footer-about>p{max-width:none;margin-bottom:17px;font-size:13px}
  .ke789-footer-column h2{margin-bottom:18px;font-size:16px}
  .ke789-reference-footer .copyright{margin-top:26px}
}

/* KE789 0.8.8: keep the three-column footer inside tablet-width viewports. */
@media(min-width:761px) and (max-width:900px){
  .ke789-reference-footer-grid{grid-template-columns:.9fr .95fr 1.2fr;gap:22px}
  .ke789-footer-about{grid-column:auto}
  .ke789-footer-about .brand{width:100%;max-width:205px;height:60px;min-height:60px;margin-bottom:20px}
  .ke789-footer-about>p{max-width:none;font-size:12px;line-height:1.65}
  .ke789-footer-column h2{font-size:15px}
  .ke789-footer-column li>a,.ke789-footer-contact li{gap:7px;font-size:12px}
  .ke789-footer-contact li>a{font-size:12px}
  .ke789-footer-socials{gap:6px}
  .ke789-footer-socials a,.ke789-footer-socials span{width:36px;height:36px}
  .ke789-footer-socials svg{width:18px;height:18px}
}

/* KE789 0.8.0: header proportions and colors aligned to the current YG88 reference. */
@media(min-width:761px){
  .brand-ke789>header{height:126px;background:#fff}
  .brand-ke789 .topbar{height:90px;padding:0;background:#fff}
  .brand-ke789 .topbar-inner{width:min(1064px,calc(100% - 30px));height:90px;display:grid;grid-template-columns:200px 496px 1fr;gap:30px;align-items:center}
  .brand-ke789 .topbar .brand{position:relative;width:200px;height:71px;min-height:71px;overflow:hidden;border-radius:0;background:transparent}
  .brand-ke789 .topbar .brand-logo{position:absolute;left:50%;top:50%;display:block;width:200px;height:200px;max-width:none;max-height:none;object-fit:contain;transform:translate(-50%,-50%)}
  .brand-ke789 .header-search{position:relative;display:flex;width:496px;height:33px;margin:0;border:1px solid #ddd;border-radius:18px;background:#f7f7f7;color:#777;overflow:hidden}
  .brand-ke789 .header-search input{width:100%;height:31px;margin:0;padding:0 43px 0 13px;border:0;background:transparent;color:#555;font:400 13px/31px Arial,"Helvetica Neue",sans-serif;box-shadow:none;outline:0}
  .brand-ke789 .header-search input::placeholder{color:#777;opacity:1}
  .brand-ke789 .header-search button{position:absolute;right:0;top:0;display:grid;width:37px;height:31px;padding:0;place-items:center;border:0;background:transparent;color:#222;box-shadow:none;cursor:pointer}
  .brand-ke789 .header-search button svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
  .brand-ke789 .actions{justify-self:end;align-items:center;margin:0;gap:14px}
  .brand-ke789 .pill{display:inline-flex;height:27px;min-width:0;padding:0 7px;align-items:center;justify-content:center;border-radius:4px;font-size:11px;line-height:1;white-space:nowrap;box-shadow:none}
  .brand-ke789 .pill.register{width:80px;background:#428201}
  .brand-ke789 .pill.login{width:98px;background:#fa1414}
  .brand-ke789 .nav-wrap{height:36px;border:0;background:#009e0d}
  .brand-ke789 .nav{display:flex;width:min(1040px,calc(100% - 30px));min-height:36px;height:36px;margin:0 auto;align-items:stretch;justify-content:center;gap:clamp(10px,1.8vw,20px);overflow:visible}
  .brand-ke789 .nav>ul{display:flex;width:100%;height:36px;margin:0;padding:0;align-items:stretch;justify-content:center;gap:clamp(10px,1.8vw,20px)}
  .brand-ke789 .nav li{width:auto;height:36px;margin:0}
  .brand-ke789 .nav li:first-child{margin-left:0}
  .brand-ke789 .nav li:last-child{margin-right:0}
  .brand-ke789 .nav a{width:auto;height:36px;padding:0;color:#fff;font-size:12px;font-weight:800;line-height:36px;white-space:nowrap}
  .brand-ke789 .nav a:hover{color:#e8ff3f}
}

/* KE789 0.8.7: prevent the desktop header controls from overflowing before the mobile breakpoint. */
@media(min-width:761px) and (max-width:1064px){
  .brand-ke789 .topbar-inner{grid-template-columns:180px minmax(240px,496px) auto;gap:20px}
  .brand-ke789 .topbar .brand{width:180px}
  .brand-ke789 .topbar .brand-logo{width:180px;height:180px}
  .brand-ke789 .header-search{width:100%}
  .brand-ke789 .actions{gap:10px}
}

@media(max-width:760px){
  .brand-ke789>header{height:62px;background:#fff}
  .brand-ke789 .topbar{height:62px;padding:0;background:#fff;border-bottom:1px solid #eee}
  .brand-ke789 .topbar-inner{width:100%;height:62px;display:grid;grid-template-columns:44px 1fr 44px;grid-template-rows:62px;grid-template-areas:"menu brand spacer";gap:0;padding:0 14px}
  .brand-ke789 .actions,.brand-ke789 .header-search,.brand-ke789 .nav-wrap{display:none}
  .brand-ke789 .brand{grid-area:brand;justify-self:center;align-self:center;height:50px}
  .brand-ke789 .topbar .brand{width:150px;height:50px;min-height:50px;border-radius:0;background:transparent}
  .brand-ke789 .topbar .brand-logo{width:150px;height:150px}
  .mobile-menu{grid-area:menu;display:block;position:relative;align-self:center;justify-self:start;margin:0}
  .mobile-menu summary{width:30px;height:30px;gap:5px}
  .mobile-menu summary span{width:22px;height:2px;background:#4a4a4a}
  .mobile-menu-panel{top:45px;left:-14px;border-top-color:#009e0d}
  .mobile-menu-panel a{color:#087c10}
}

/* KE789 0.8.1: functional reference-style search, live results and search page heading. */
@media(min-width:761px){
  .brand-ke789 .header-search{z-index:60;overflow:visible}
  .brand-ke789 .ke789-live-search-results{position:absolute;z-index:61;left:0;right:0;top:37px;max-height:330px;overflow-y:auto;border:1px solid #ddd;border-radius:4px;background:#fff;box-shadow:0 9px 24px rgba(0,0,0,.18)}
  .brand-ke789 .ke789-live-search-results[hidden]{display:none}
  .brand-ke789 .ke789-live-search-item{display:block;padding:9px 13px;border-bottom:1px solid #ededed;color:#2b2b2b;font-size:13px;line-height:1.35;text-align:left;text-transform:none}
  .brand-ke789 .ke789-live-search-item:last-child{border-bottom:0}
  .brand-ke789 .ke789-live-search-item:hover,.brand-ke789 .ke789-live-search-item.is-active{background:#f1f7ef;color:#357c03}
  .brand-ke789 .ke789-live-search-item strong{color:#357c03}
  .brand-ke789 .ke789-live-search-empty{padding:12px 13px;color:#777;font-size:13px;line-height:1.4}
}
.source-search-heading{margin:0 0 30px;text-align:center}
.source-search-heading .source-breadcrumb{margin-bottom:13px}
.source-search-heading h1{margin:0;color:#111;font-size:28px;line-height:1.25;font-weight:900}
@media(max-width:760px){
  .source-search-heading{margin-bottom:24px}
  .source-search-heading h1{font-size:24px}
}

/* KE789 0.8.3: keep WordPress body.search separate from the header search form. */
body.search{display:block;height:auto;min-height:100%;padding:0;border:0;border-radius:0;background:#fff;color:var(--ink);align-items:initial}

/* Multi-brand preview: keep the generic AK168/JIN88/KS168 mobile header inside the viewport. */
@media(max-width:760px){
  body:not(.brand-ke789){overflow-x:hidden}
  body:not(.brand-ke789) .shell{width:calc(100% - 24px)}
  body:not(.brand-ke789) .topbar{height:64px;padding:0}
  body:not(.brand-ke789) .topbar-inner{width:100%;height:64px;display:grid;grid-template-columns:40px minmax(0,1fr) 118px;grid-template-rows:64px;gap:6px;padding:0 12px}
  body:not(.brand-ke789) .mobile-menu{grid-column:1;grid-row:1;justify-self:start;align-self:center;margin:0}
  body:not(.brand-ke789) .mobile-menu-panel{left:0;width:min(290px,calc(100vw - 24px))}
  body:not(.brand-ke789) .brand{grid-column:2;grid-row:1;min-width:0;justify-self:center;align-self:center;letter-spacing:-2px}
  body:not(.brand-ke789) .brand-logo{max-width:120px;max-height:50px}
  body:not(.brand-ke789) .header-search{display:none}
  body:not(.brand-ke789) .actions{grid-column:3;grid-row:1;min-width:0;justify-content:flex-end;gap:4px}
  body:not(.brand-ke789) .pill{padding:6px 7px;font-size:9px;white-space:nowrap}
  body:not(.brand-ke789) .nav-wrap{display:none}
}
