/* RG88 Theme v1 — scoped to public landing only. */
#rg88-showcase, #rg88-showcase * {box-sizing:border-box}
#rg88-showcase { --rg-bg:#100b0e;--rg-card:#21151a;--rg-red:#9e2028;--rg-gold:#ffc64e;--rg-edge:#643137;color:#fff3e7;background:linear-gradient(150deg,#240e16,#100b0e 58%);font:500 14px/1.45 system-ui,-apple-system,Segoe UI,sans-serif;padding:16px;margin:14px auto 24px;max-width:1240px;border:1px solid #63302f;border-radius:18px;box-shadow:0 8px 32px #0004;}
#rg88-showcase .rg-head {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
#rg88-showcase .rg-brand {font-size:clamp(19px,3vw,27px);font-weight:900;letter-spacing:.6px;color:var(--rg-gold);text-shadow:0 2px 13px #db462b55}
#rg88-showcase .rg-tag {font-size:11px;color:#e8c0b2;border:1px solid #643c3b;padding:5px 9px;border-radius:50px}
#rg88-showcase .rg-hero {display:grid;grid-template-columns:1.5fr 1fr;gap:12px;margin-bottom:18px}
#rg88-showcase .rg-hero img {display:block;width:100%;height:100%;max-height:285px;min-height:160px;object-fit:cover;border-radius:12px}
#rg88-showcase .rg-hero-note {display:flex;flex-direction:column;justify-content:center;padding:22px;border:1px solid #74402b;border-radius:12px;background:radial-gradient(circle at 95% 8%,#7d1f29 0,transparent 45%),linear-gradient(140deg,#32141d,#1e1117)}
#rg88-showcase .rg-hero-note b {font-size:24px;color:#ffd273;line-height:1.14}
#rg88-showcase .rg-hero-note p {font-size:13px;color:#dcc8c0;margin:10px 0 0}
#rg88-showcase .rg-section {margin:21px 0 12px;display:flex;align-items:center;justify-content:space-between;gap:12px}
#rg88-showcase .rg-title {margin:0;font-size:17px;color:#ffe0a2;font-weight:800;letter-spacing:.3px}
#rg88-showcase .rg-count {font-size:11px;color:#d6b3a9}
#rg88-showcase .rg-cats {display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
#rg88-showcase .rg-cat {text-decoration:none;color:#fff !important;text-align:center;background:#281820;border:1px solid #60343c;border-radius:12px;padding:12px 6px;font-weight:750;font-size:12px}
#rg88-showcase .rg-cat strong {display:block;font-size:21px;color:#ffd27a;margin-bottom:5px}
#rg88-showcase .rg-cat:first-child {background:linear-gradient(135deg,#7a202b,#431922);border-color:#d18c3a}
#rg88-showcase .rg-search {appearance:none;width:100%;background:#160e12;border:1px solid #8b4840;color:#fff;padding:11px 13px;border-radius:10px;font-size:13px;outline:none}
#rg88-showcase .rg-search:focus {border-color:#ffc64e}
#rg88-showcase .rg-empty {font-size:12px;color:#d8bbb0;padding:12px;background:#27191d;border-radius:9px}
#rg88-showcase .rg-togel-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
#rg88-showcase .rg-market {background:#20161a;border:1px solid #70353a;border-radius:8px;overflow:hidden;text-align:center;min-width:0}
#rg88-showcase .rg-market-name {background:linear-gradient(#b32a2e,#701c24);font-size:11px;padding:6px 3px;min-height:31px;display:flex;align-items:center;justify-content:center;overflow-wrap:anywhere}
#rg88-showcase .rg-market-number {font-weight:900;font-size:17px;color:#fff0da;letter-spacing:1px;padding:9px 2px 1px;font-variant-numeric:tabular-nums}
#rg88-showcase .rg-market-info {font-size:10px;color:#bca7a4;padding:0 2px 8px}
#rg88-showcase .rg-providers {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
#rg88-showcase .rg-provider {display:block;text-decoration:none !important;color:#fff !important;background:linear-gradient(160deg,#34212a,#1e1519);border:1px solid #69413e;border-radius:12px;padding:8px;min-width:0;transition:transform .2s,border-color .2s}
#rg88-showcase .rg-provider:hover {transform:translateY(-2px);border-color:#f2b650}
#rg88-showcase .rg-provider-visual {display:flex;align-items:center;justify-content:center;height:98px;background:radial-gradient(circle at 50% 30%,#614231,#24161a 65%);border-radius:8px;overflow:hidden}
#rg88-showcase .rg-provider img {width:100%;height:100%;object-fit:contain}
#rg88-showcase .rg-provider-name {display:block;min-height:36px;padding:8px 2px 1px;text-align:center;font-size:12px;font-weight:700;overflow-wrap:anywhere}
#rg88-showcase .rg-footer {font-size:11px;color:#b99f98;margin-top:22px;text-align:center}
#rg88-showcase .rg-hide {display:none !important}
#rg88-showcase .rg-tabs {display:flex;gap:6px;margin-bottom:10px}
#rg88-showcase .rg-tab {border:1px solid #734039;border-radius:40px;background:#241619;color:#eac2a8;padding:7px 13px;cursor:pointer;font-size:12px}
#rg88-showcase .rg-tab[aria-selected=true]{background:#f2ba42;color:#281100;border-color:#f2ba42;font-weight:800}
@media(max-width:700px){#rg88-showcase{margin:10px 8px 20px;padding:11px;border-radius:12px}#rg88-showcase .rg-hero{grid-template-columns:1fr}#rg88-showcase .rg-hero img{height:auto;min-height:0;max-height:none;aspect-ratio:2.3}#rg88-showcase .rg-hero-note{padding:12px}#rg88-showcase .rg-hero-note b{font-size:17px}#rg88-showcase .rg-hero-note p{font-size:11px;margin-top:4px}#rg88-showcase .rg-togel-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}#rg88-showcase .rg-market-name{font-size:9px;min-height:32px;padding:4px 2px}#rg88-showcase .rg-market-number{font-size:13px;letter-spacing:0}#rg88-showcase .rg-market-info{font-size:8px}#rg88-showcase .rg-providers{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}#rg88-showcase .rg-provider-visual{height:85px}#rg88-showcase .rg-provider-name{font-size:11px;min-height:34px}#rg88-showcase .rg-title{font-size:14px}#rg88-showcase .rg-cat{font-size:10px;padding:9px 2px}#rg88-showcase .rg-cat strong{font-size:18px}#rg88-showcase .rg-tag{font-size:9px}}

/* RG88 Unified V2 refinements */
#rg88-showcase .rg-hero { display:none!important; }
#rg88-showcase .rg-togel-grid { display:grid!important; grid-template-columns:repeat(4,minmax(0,1fr));gap:6px!important; }
#rg88-showcase .rg-market {min-width:0;overflow:hidden;border-radius:7px;background:#211719;border:1px solid #79332a;text-align:center;}
#rg88-showcase .rg-market-name {background:#982125;color:#fff;font-size:8.5px;line-height:1.2;min-height:34px;padding:5px 3px;display:flex;justify-content:center;align-items:center;overflow-wrap:anywhere;font-weight:800;}
#rg88-showcase .rg-market-number {color:#ffda83;font-size:15px;font-weight:800;padding:9px 4px 4px;line-height:1.25;overflow-wrap:anywhere;}
#rg88-showcase .rg-market-number.long-result {font-size:11px;letter-spacing:-.3px;line-height:1.3;}
#rg88-showcase .rg-market-number.very-long-result {font-size:9px;letter-spacing:-.5px;}
#rg88-showcase .rg-market-date {color:#c7aaa0;font-size:8px;padding:2px 2px 8px;}
#rg88-showcase .rg-daily-track {display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;padding:4px 2px 12px;-webkit-overflow-scrolling:touch;}
#rg88-showcase .rg-daily-card {flex:0 0 clamp(110px,36%,180px);min-width:0;display:block;color:#fff;text-decoration:none;scroll-snap-align:start;background:#29181d;border:1px solid #68412d;border-radius:13px;overflow:hidden;}
#rg88-showcase .rg-daily-visual {display:block;aspect-ratio:1/1;overflow:hidden;background:#382326;}
#rg88-showcase .rg-daily-visual img {display:block;width:100%;height:100%;object-fit:cover;}
#rg88-showcase .rg-daily-name {display:block;font-size:11px;font-weight:750;padding:7px 6px 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
#rg88-showcase .rg-daily-provider {display:block;color:#e6b453;font-size:9px;padding:0 6px 8px;}
#rg88-showcase .rg-daily-intro {font-size:11px;color:#c8ada2;margin:4px 0 8px;}
#rg88-showcase .rg-provider-visual {height:auto;aspect-ratio:4/3;}
#rg88-showcase .rg-provider img {object-fit:contain;}
@media(min-width:801px){#rg88-showcase .rg-daily-card{flex-basis:170px;}#rg88-showcase .rg-togel-grid{grid-template-columns:repeat(6,minmax(0,1fr));}}
@media(max-width:480px){#rg88-showcase .rg-market-name{font-size:8.5px;}#rg88-showcase .rg-market-number{font-size:15px;}#rg88-showcase .rg-market-number.long-result{font-size:10px;}#rg88-showcase .rg-market-number.very-long-result{font-size:8px;} }

/* V2.1: exactly three visible Daily Picks on phones, scroll by one every 3s. */
#rg88-showcase .rg-daily-track {touch-action:pan-x;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;scroll-padding-inline:2px;}
@media(max-width:700px){
 #rg88-showcase .rg-daily-track {gap:8px;}
 #rg88-showcase .rg-daily-card {flex:0 0 calc((100% - 16px)/3);max-width:calc((100% - 16px)/3);}
 #rg88-showcase .rg-daily-name {font-size:10px;}
 #rg88-showcase .rg-daily-provider {font-size:9px;}
}
@media(prefers-reduced-motion:reduce){#rg88-showcase .rg-daily-track{scroll-behavior:auto!important;}#rg88-showcase .rg-daily-card{transition:none!important;}}

/* Unified V2.2: distinct featured panel, result panel and provider panel */
#rg88-showcase {background:transparent;border:0;box-shadow:none;padding:0;margin:12px auto 24px;max-width:1240px;}
#rg88-showcase .rg-featured-section,
#rg88-showcase .rg-results-section,
#rg88-showcase .rg-slot-section,
#rg88-showcase .rg-other-section {background:linear-gradient(150deg,#240e16,#100b0e 65%);border:1px solid #63302f;border-radius:14px;padding:14px;margin:0 0 12px;overflow:hidden;min-width:0;}
#rg88-showcase .rg-featured-section{margin-top:0;background:linear-gradient(135deg,#36141b,#170c10 72%);border-color:#815134;}
#rg88-showcase .rg-featured-section>.rg-section{margin:0 0 9px;}
#rg88-showcase .rg-results-section>.rg-section,#rg88-showcase .rg-slot-section>.rg-section{margin:0 0 12px;}
#rg88-showcase .rg-spacer{height:10px;}
#rg88-showcase .rg-daily-intro{margin:0 0 9px;}
#rg88-showcase .rg-daily-track{margin:0;}
#rg88-showcase .rg-featured-section .rg-title{color:#ffd37a;}
@media(max-width:700px){
 #rg88-showcase {padding:0;margin:10px 8px 20px;}
 #rg88-showcase .rg-featured-section,#rg88-showcase .rg-results-section,#rg88-showcase .rg-slot-section,#rg88-showcase .rg-other-section{padding:12px;border-radius:12px;margin-bottom:10px;}
 #rg88-showcase .rg-daily-card{flex:0 0 calc((100% - 16px)/3);max-width:calc((100% - 16px)/3);}
}

/* V2.3 - RG88 mobile login actions; scoped to the original engine login wrapper. */
.wrapper2 .login-wrapper .rg88-action-row {
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  width:100%;
  margin:10px 0 0;
  align-items:stretch;
}
.wrapper2 .login-wrapper .rg88-action-row > .buttonjoin {
  min-width:0;
  width:100%;
  margin:0 !important;
  padding:0 !important;
}
.wrapper2 .login-wrapper .rg88-action-row .rg88-action-login,
.wrapper2 .login-wrapper .rg88-action-row .rg88-action-register,
.wrapper2 .login-wrapper .rg88-promo-wrap .rg88-action-promo {
  display:flex !important;
  justify-content:center;
  align-items:center;
  width:100% !important;
  box-sizing:border-box !important;
  margin:0 !important;
  min-width:0 !important;
  text-align:center;
  text-decoration:none !important;
  text-shadow:none !important;
  font-size:clamp(14px,3.5vw,17px) !important;
  font-weight:800 !important;
  line-height:1.2 !important;
  border-radius:11px !important;
  min-height:46px !important;
  height:auto !important;
  padding:10px 6px !important;
  box-shadow:none !important;
}
.wrapper2 .login-wrapper .rg88-action-row .rg88-action-login {
  background:linear-gradient(135deg,#ffe08a,#d49a32) !important;
  color:#241408 !important;
  border:1px solid #f4ce75 !important;
}
.wrapper2 .login-wrapper .rg88-action-row .rg88-action-register {
  background:#641e28 !important;
  color:#ffedd0 !important;
  border:1px solid #bf8d44 !important;
}
.wrapper2 .login-wrapper .rg88-promo-wrap {
  margin:9px 0 0 !important;
  padding:0 !important;
}
.wrapper2 .login-wrapper .rg88-promo-wrap .rg88-action-promo {
  min-height:40px !important;
  font-size:15px !important;
  background:#312024 !important;
  color:#f1c878 !important;
  border:1px solid #75503c !important;
}
.wrapper2 .login-wrapper .rg88-action-row .rg88-action-login:focus-visible,
.wrapper2 .login-wrapper .rg88-action-row .rg88-action-register:focus-visible,
.wrapper2 .login-wrapper .rg88-promo-wrap .rg88-action-promo:focus-visible {
  outline:2px solid #ffe08a !important;
  outline-offset:3px;
}


/* RG88 Unified V2.4 — Live Casino and Sportsbook banners */
#rg88-showcase .rg-banner-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0;}
#rg88-showcase .rg-banner-card{position:relative;display:block;min-width:0;overflow:hidden;border-radius:10px;border:1px solid #724536;background:#1b1015;text-decoration:none;isolation:isolate;}
#rg88-showcase .rg-banner-card.rg-banner-wide{grid-column:1/-1;}
#rg88-showcase .rg-banner-card img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;object-position:center;transition:transform .2s ease;}
#rg88-showcase .rg-banner-card.rg-banner-wide img{aspect-ratio:2.65/1;object-fit:cover;}
#rg88-showcase .rg-banner-card:hover img{transform:scale(1.025);}
#rg88-showcase .rg-banner-card:focus-visible{outline:2px solid #ffd37a;outline-offset:3px;}
#rg88-showcase .rg-banner-label{position:absolute;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:space-between;gap:6px;padding:13px 9px 7px;background:linear-gradient(transparent,rgba(12,7,10,.92));color:#ffe4ad;font-weight:800;line-height:1.2;font-size:12px;text-shadow:0 1px 2px #000;}
#rg88-showcase .rg-banner-label small{font-size:10px;color:#fff4dd;font-weight:500;text-align:right;}
#rg88-showcase .rg-live-section .rg-section,#rg88-showcase .rg-sports-section .rg-section{margin:0 0 12px;}
@media(max-width:700px){#rg88-showcase .rg-banner-grid{gap:7px;}#rg88-showcase .rg-banner-label{padding:14px 6px 5px;font-size:10px;}#rg88-showcase .rg-banner-label small{font-size:8px;}}
@media(prefers-reduced-motion:reduce){#rg88-showcase .rg-banner-card img{transition:none!important;}}

/* V2.5 controlled desktop preview only. Mobile V2.4 styling unchanged. */
@media (min-width: 701px) {
 .col-sm-9.blog-posts > #latest-results.rg88-native-strip-hidden {display:none !important;}
 .col-sm-9.blog-posts > #rg88-showcase.rg88-desktop-preview {width:100%;max-width:none;margin:16px 0 20px;padding:0;clear:both;}
 #rg88-showcase.rg88-desktop-preview .rg-daily-card {flex:0 0 calc((100% - 50px)/6);max-width:calc((100% - 50px)/6);}
 #rg88-showcase.rg88-desktop-preview .rg-providers {grid-template-columns:repeat(4,minmax(0,1fr));}
 #rg88-showcase.rg88-desktop-preview .rg-togel-grid {grid-template-columns:repeat(4,minmax(0,1fr));}
 #rg88-showcase.rg88-desktop-preview .rg-banner-grid {grid-template-columns:repeat(3,minmax(0,1fr));}
 #rg88-showcase.rg88-desktop-preview .rg-banner-card.rg-banner-wide {grid-column:auto;}
 #rg88-showcase.rg88-desktop-preview .rg-banner-card img,
 #rg88-showcase.rg88-desktop-preview .rg-banner-card.rg-banner-wide img {aspect-ratio:16/9;}
 #rg88-showcase.rg88-desktop-preview .rg-title {font-size:16px;}
}
@media (min-width:701px) and (max-width: 1100px){
 #rg88-showcase.rg88-desktop-preview .rg-daily-card {flex:0 0 calc((100% - 30px)/4);max-width:calc((100% - 30px)/4);}
 #rg88-showcase.rg88-desktop-preview .rg-providers {grid-template-columns:repeat(3,minmax(0,1fr));}
 #rg88-showcase.rg88-desktop-preview .rg-banner-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
 #rg88-showcase.rg88-desktop-preview .rg-banner-card.rg-banner-wide {grid-column:1/-1;}
}
#rg88-showcase .rg-empty[hidden]{display:none!important;}

/* RG88 V2.5.3: one visible, descriptive H1 on mobile and desktop. */
#rg88-showcase .rg88-seo-h1 { margin:0 0 10px; padding:0; color:#ffd273; font:800 clamp(14px,1.5vw,20px)/1.35 system-ui,-apple-system,Segoe UI,sans-serif; letter-spacing:.1px; text-wrap:balance; overflow-wrap:anywhere; }
@media (max-width:700px) { #rg88-showcase .rg88-seo-h1 {font-size:15px;line-height:1.35;margin-bottom:9px;} }

/* RG88 V2.5.5: shared native-IDN-login gate (mobile and desktop) */
html.rg88-gate-open{overflow:hidden!important;}
#rg88-login-gate[hidden]{display:none!important;}
#rg88-login-gate{position:fixed;inset:0;z-index:2147483000;display:grid;place-items:center;padding:16px;box-sizing:border-box;font-family:system-ui,-apple-system,Segoe UI,sans-serif;}
#rg88-login-gate .rg88-gate-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.78);}
#rg88-login-gate .rg88-gate-panel{position:relative;width:min(100%,420px);box-sizing:border-box;background:linear-gradient(150deg,#2c1119,#160d12 85%);border:1px solid #b48241;border-radius:17px;box-shadow:0 24px 75px rgba(0,0,0,.7);padding:28px 21px 22px;color:#f5e6d7;text-align:center;}
#rg88-login-gate .rg88-gate-close{position:absolute;right:11px;top:9px;border:0;background:transparent;color:#ead1b1;font-size:28px;width:37px;height:37px;line-height:1;cursor:pointer;}
#rg88-login-gate .rg88-gate-mark{color:#ffd47c;font-size:28px;margin-bottom:9px;}
#rg88-login-gate h2{font:800 clamp(18px,4.5vw,23px)/1.35 system-ui,sans-serif!important;color:#ffd47c!important;margin:0 10px 11px!important;}
#rg88-login-gate p{color:#dbc5bb!important;font:400 14px/1.6 system-ui,sans-serif!important;margin:0 0 22px!important;}
#rg88-login-gate .rg88-gate-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
#rg88-login-gate #rg88-gate-login,#rg88-login-gate #rg88-gate-register{display:flex;justify-content:center;align-items:center;min-height:46px;padding:10px;border-radius:10px;box-sizing:border-box;font:800 16px/1.2 system-ui,sans-serif!important;text-decoration:none!important;cursor:pointer;}
#rg88-login-gate #rg88-gate-login{color:#241408!important;background:linear-gradient(135deg,#ffe08a,#d49a32)!important;border:1px solid #f4ce75!important;}
#rg88-login-gate #rg88-gate-register{color:#ffedd0!important;background:#641e28!important;border:1px solid #bf8d44!important;}
#rg88-login-gate button:focus-visible,#rg88-login-gate a:focus-visible{outline:3px solid #ffe08a!important;outline-offset:2px;}
@media(max-width:400px){#rg88-login-gate .rg88-gate-panel{padding:26px 15px 18px;}}
