:root {
  --hm88-bg:#080c11; --hm88-surface:#111820; --hm88-surface-2:#19212a;
  --hm88-line:#30323a; --hm88-gold:#ff9820; --hm88-gold-light:#ffb949;
  --hm88-text:#f9fafb; --hm88-muted:#b1b8c0; --hm88-radius:10px;
  --hm88-max-width:1280px; --hm88-shadow:0 15px 42px rgba(0,0,0,.25)
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--hm88-bg);color:var(--hm88-text);font-family:Roboto,Arial,sans-serif;font-size:15px;line-height:1.6;overflow-wrap:anywhere}
img{max-width:100%;height:auto}
svg,img{vertical-align:middle}
a{color:inherit;text-decoration:none}
a:hover{color:var(--hm88-gold)}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.6}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--hm88-gold-light);outline-offset:3px}
[hidden]{display:none!important}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.screen-reader-text:focus,.hm88-skip-link:focus{clip:auto;clip-path:none;width:auto;height:auto;margin:0;padding:12px;left:10px;top:10px;color:#111;background:white;z-index:10000}
.hm88-container{width:min(var(--hm88-max-width),calc(100% - 40px));margin-inline:auto}
.hm88-button{border-radius:30px;display:inline-flex;align-items:center;justify-content:center;text-align:center;min-height:39px;padding:8px 23px;font-size:.85rem;line-height:1.2;font-weight:800;border:1px solid transparent;white-space:nowrap;transition:background .18s,color .18s,transform .18s}
.hm88-button:hover{transform:translateY(-1px)}
.hm88-button-primary{background:linear-gradient(110deg,#ffb02e,#fb8514);color:#111!important;border-color:#ffb12e}
.hm88-button-primary:hover{background:#ffca63}
.hm88-button-outline{background:#101116e8;color:white;border-color:#9a7b45}
.hm88-button-outline:hover{background:#292827;color:white}
.hm88-site-header{position:relative;z-index:30;background:#0b0f14;border-bottom:1px solid #35302b}
.hm88-header-inner{min-height:68px;display:flex;align-items:center;gap:25px}
.hm88-logo{flex:0 0 auto;width:126px}
.hm88-logo img{width:auto;max-width:130px;height:52px;object-fit:contain;object-position:left center}
.hm88-logo .custom-logo-link{display:inline-flex}
.hm88-primary-nav{flex:1;min-width:0}
.hm88-menu{display:flex;align-items:center;justify-content:center;gap:clamp(9px,1.6vw,28px);list-style:none;padding:0;margin:0}
.hm88-menu li{position:relative}
.hm88-menu a{display:block;font-size:12.5px;line-height:1.3;font-weight:700;white-space:nowrap;padding:12px 0}
.hm88-menu .current-menu-item>a,.hm88-menu .current_page_item>a{color:var(--hm88-gold)}
.hm88-menu .sub-menu{display:none;position:absolute;left:0;top:100%;z-index:20;min-width:180px;list-style:none;margin:0;padding:8px 12px;background:#161c22;box-shadow:var(--hm88-shadow);border:1px solid var(--hm88-line);border-radius:8px}
.hm88-menu li:hover>.sub-menu,.hm88-menu li:focus-within>.sub-menu{display:block}
.hm88-header-actions,.hm88-account-actions{display:flex;align-items:center;gap:9px}
.hm88-header-actions .hm88-button{font-size:11px;min-height:33px;padding:7px 15px}
.hm88-icon-button{width:36px;height:36px;border:0;background:transparent;display:inline-grid;place-items:center;border-radius:9px}
.hm88-icon-button:hover{background:#242a32}
.hm88-icon-button img{filter:brightness(0) invert(1)}
.hm88-mobile-toggle,.hm88-mobile-panel{display:none}
.hm88-header-search{position:absolute;left:0;right:0;top:100%;background:#151b22;border-bottom:1px solid var(--hm88-line);padding:16px 0;box-shadow:var(--hm88-shadow)}
.hm88-search-form{display:flex;gap:8px;width:100%}
.hm88-search-form input{background:#0e1318;color:#fff;border:1px solid #52606b;border-radius:8px;padding:10px 13px;flex:1;min-width:0}
.hm88-search-form button{border-radius:8px;padding:8px 18px;background:var(--hm88-gold);color:#111;font-weight:800;border:0}
.hm88-site-footer{margin-top:26px;border-top:1px solid #323238;background:#0b1014}
.hm88-footer-main{display:grid;grid-template-columns:1.6fr 1fr 1fr 1.4fr;gap:28px;padding-block:28px 25px}
.hm88-footer-brand .hm88-brand-link img{width:130px;height:auto}
.hm88-footer-brand p,.hm88-footer-column p{color:var(--hm88-muted);font-size:12px;max-width:280px}
.hm88-footer-column h2{margin:3px 0 13px;font-size:15px}
.hm88-footer-column ul,.hm88-footer-menu{list-style:none;padding:0;margin:0}
.hm88-footer-column li{margin:0 0 4px;font-size:12px;color:var(--hm88-muted)}
.hm88-footer-column a:hover{color:var(--hm88-gold)}
.hm88-social-links{display:flex;gap:10px;margin-top:12px}
.hm88-social-links a{width:30px;height:30px;border-radius:50%;background:#222931;display:grid;place-items:center}
.hm88-social-links img{filter:brightness(0) invert(1);width:18px;height:18px}
.hm88-footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--hm88-line);padding:9px 0 12px}
.hm88-footer-bottom p{font-size:11px;color:#9ca4ad;margin:0}
.hm88-adult-marker{border:1px solid #f5f5f5;color:#fff;font-weight:800;border-radius:50%;width:30px;height:30px;display:grid;place-items:center;font-size:12px}
.hm88-post-meta{display:flex;flex-wrap:wrap;gap:9px;align-items:center;color:#c8cbd1;font-size:11px}
.hm88-empty-posts{color:var(--hm88-muted)}
.hm88-breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:10px;color:var(--hm88-muted);font-size:12px;padding:18px 0}
.hm88-breadcrumb [aria-current]{color:#fff}
.hm88-article-body{font-size:16px;line-height:1.85;color:#d9dde3;overflow-wrap:anywhere}
.hm88-article-body img{height:auto;border-radius:8px}
.hm88-article-body a{color:#ffb338;text-decoration:underline;text-underline-offset:3px}
.hm88-article-body h2,.hm88-article-body h3{scroll-margin-top:90px;line-height:1.35;color:white}
.hm88-article-body table{display:block;max-width:100%;overflow-x:auto}
.hm88-page-layout{min-height:55vh;max-width:920px;padding-bottom:60px}
.hm88-page-article{border:1px solid var(--hm88-line);border-radius:12px;padding:28px;background:#11161c}
.hm88-page-article h1{margin-top:0;font-size:clamp(24px,3vw,37px)}
.hm88-notfound{text-align:center;padding-top:80px}
.hm88-notfound .hm88-search-form{max-width:580px;margin:25px auto}
@media(max-width:1140px){.hm88-menu{gap:10px}.hm88-menu a{font-size:11px}.hm88-logo{width:110px}.hm88-header-inner{gap:12px}}
@media(max-width:980px){
  .hm88-container{width:calc(100% - 30px)}
  .hm88-primary-nav{display:none}.hm88-header-inner{justify-content:space-between;min-height:62px}
  .hm88-mobile-toggle{display:inline-grid}.hm88-mobile-panel:not([hidden]){display:block}
  .hm88-mobile-panel{background:#121820;border-top:1px solid var(--hm88-line);padding:7px 0 14px}
  .hm88-mobile-menu{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
  .hm88-mobile-menu li{list-style:none}.hm88-mobile-menu a{display:block;padding:10px;background:#1b222b;border-radius:7px;font-weight:600;font-size:13px}
  .hm88-mobile-menu .sub-menu{list-style:none;padding-left:8px}
}
@media(max-width:640px){
  .hm88-header-inner{gap:10px}.hm88-logo{width:105px}.hm88-logo img{height:45px;max-width:105px}
  .hm88-header-actions{gap:2px}.hm88-header-actions .hm88-button{min-height:28px;padding:6px 7px;font-size:10px}
  .hm88-icon-button{width:30px;height:33px}.hm88-footer-main{grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 15px}
  .hm88-footer-brand{grid-column:1/-1}.hm88-footer-column:last-child{grid-column:1/-1}
  .hm88-footer-bottom p{font-size:10px}.hm88-page-article{padding:18px}.hm88-article-body{font-size:15px}
}
@media(max-width:380px){.hm88-account-actions{gap:4px}.hm88-header-actions .hm88-button{font-size:9px;padding:5px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* RC2: layout corrections mapped to the APPROVED 1536×1024 HM88 design. */
@media (min-width:981px){
  .hm88-header-inner{min-height:54px}
  .hm88-logo{width:115px}
  .hm88-logo img{max-width:115px;height:42px}
  .hm88-menu a{font-size:12px}
  .hm88-header-actions .hm88-button{min-height:30px}
}
@media (max-width:980px){
  .hm88-header-inner{justify-content:initial}
  .hm88-mobile-toggle{order:0;display:inline-grid;flex-shrink:0}
  .hm88-logo{order:1}
  .hm88-header-actions{margin-left:auto;order:2}
}
@media (max-width:640px){
  .hm88-header-inner{min-height:52px;gap:6px}
  .hm88-logo{width:94px}
  .hm88-logo img{max-width:94px;height:42px}
  .hm88-header-actions{gap:3px}
  .hm88-footer-main{display:flex;align-items:flex-start;flex-wrap:nowrap;padding:15px 0 9px}
  .hm88-footer-brand{width:100%;display:grid;grid-template-columns:1fr auto;gap:0 10px;align-items:center}
  .hm88-footer-brand .hm88-brand-link{grid-column:1;grid-row:1}
  .hm88-footer-brand .hm88-brand-link img{width:102px}
  .hm88-footer-brand p{grid-column:1/-1;margin:4px 0 0;font-size:10px}
  .hm88-footer-brand .hm88-social-links{grid-column:2;grid-row:1;margin:0}
  .hm88-footer-main>.hm88-footer-column{display:none}
  .hm88-footer-bottom{padding:6px 0 9px}
}

/* RC3: Design Lock visual geometry + compact footer; native menus remain functional. */
@media(min-width:981px){
 .hm88-site-footer{margin-top:10px}
 .hm88-footer-main{padding-block:15px 12px;gap:18px}
 .hm88-footer-column h2{margin:1px 0 5px;font-size:13px}
 .hm88-footer-brand .hm88-brand-link img{width:105px}
 .hm88-footer-brand p,.hm88-footer-column p{font-size:11px;line-height:1.45;margin:3px 0}
 .hm88-footer-column li{font-size:11px;line-height:1.35;margin:1px 0}
 .hm88-footer-bottom{padding:7px 0}
}
@media(max-width:640px){
 .hm88-site-footer{margin-top:8px}
 .hm88-footer-main{padding:10px 0 7px}
 .hm88-footer-brand p{font-size:9px;line-height:1.4}
 .hm88-footer-bottom{padding:5px 0 7px}
}

/* RC3.1: mobile legal links from the real Footer menu, never invented destinations. */
.hm88-footer-mobile-links{display:none}
@media(max-width:640px){
  .hm88-footer-bottom{flex-wrap:wrap;gap:7px 10px}
  .hm88-footer-mobile-links{display:block;flex:1 1 100%;order:0}
  .hm88-footer-mobile-menu{display:flex;gap:6px 12px;list-style:none;margin:0;padding:0;flex-wrap:wrap}
  .hm88-footer-mobile-menu a{font-size:10px;color:#c6cbd0}
  .hm88-footer-bottom>p{order:1;flex:1 1 auto}
  .hm88-footer-bottom>.hm88-adult-marker{order:2}
}
