:root{
  --bg:#0d0e10;
  --panel:#15171a;
  --panel2:#1c1e22;
  --gold:#24d98a;
  --gold2:#6bf0b2;
  --text:#f5f5f5;
  --muted:#9b9da2;
  --line:#292c31;
  --green:#61d38b;
}
*{box-sizing:border-box}
html,body{margin:0;background:#08090a;color:var(--text);font-family:Arial,Helvetica,sans-serif}
body{min-height:100vh}
a{text-decoration:none;color:inherit}
button{font:inherit}

.app{
  width:min(100%, 480px);
  min-height:100vh;
  margin:auto;
  background:linear-gradient(180deg,#0c0d0f 0%,#101114 55%,#0b0c0e 100%);
  padding-bottom:78px;
  overflow:hidden;
}

/* HEADER */
.header{
  height:62px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:9px 10px;
  background:#121417;
  border-bottom:1px solid #292b2f;
  position:sticky;top:0;z-index:50;
}
.icon-btn{
  width:38px;height:38px;border:1px solid #303238;border-radius:10px;
  background:#1d2024;color:#ddd;display:grid;place-items:center;flex:0 0 38px;
}
.logo{
  flex:1;text-align:center;font-weight:900;letter-spacing:1px;
  font-size:17px;color:var(--gold2);text-shadow:0 1px 10px #000;
}
.auth{display:flex;gap:6px}
.auth a{
  height:38px;padding:0 12px;border-radius:10px;display:flex;align-items:center;
  justify-content:center;font-size:12px;font-weight:800;border:1px solid #383b40;
}
.login{background:#202328}
.register{background:linear-gradient(180deg,#57efab,#0fa969);color:#111!important;border-color:#57efab!important}

/* NOTICE */
.notice{height:30px;display:flex;align-items:center;padding:0 12px;color:#888;font-size:11px;border-bottom:1px solid #222}
.dot{width:6px;height:6px;border-radius:50%;background:#24d98a;margin-right:7px}

/* HERO */
.hero{padding:9px 10px 2px}
.hero-card{
  height:184px;border-radius:13px;overflow:hidden;position:relative;
  border:1px solid #393027;
  background:
    radial-gradient(circle at 75% 40%,rgba(36,217,138,.30),transparent 27%),
    linear-gradient(135deg,#17130c,#2a2417 55%,#111214);
}
.hero-content{position:absolute;inset:0;padding:24px 20px;display:flex;flex-direction:column;justify-content:center}
.hero-kicker{font-size:11px;color:var(--gold2);letter-spacing:2px;font-weight:800}
.hero-title{font-size:28px;line-height:1.05;font-weight:950;margin:5px 0}
.hero-sub{font-size:12px;color:#c7c8ca}
.hero-btn{
  width:max-content;margin-top:13px;padding:8px 15px;border-radius:8px;
  background:#24d98a;color:#111;font-size:11px;font-weight:900;
}
.hero-orb{
  position:absolute;width:150px;height:150px;border-radius:50%;right:-22px;top:15px;
  background:radial-gradient(circle at 38% 35%,#b8ffe0 0,#0fa969 28%,#064c31 55%,transparent 70%);
  opacity:.75;
}
.hero-dots{display:flex;gap:4px;position:absolute;bottom:8px;left:50%;transform:translateX(-50%)}
.hero-dots i{width:5px;height:5px;background:#888;border-radius:50%}.hero-dots i:first-child{background:var(--gold2);width:15px;border-radius:5px}

/* CATEGORY */
.section{padding:13px 10px 0}
.cat-row{display:grid;grid-template-columns:repeat(6,1fr);gap:6px}
.cat{
  min-width:0;height:67px;border:1px solid #2b2e33;border-radius:11px;background:#181a1e;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;
}
.cat svg{width:24px;height:24px;stroke:#bfc1c5;fill:none;stroke-width:1.7}
.cat.active{border-color:#24d98a;background:linear-gradient(180deg,#29261f,#17181b)}
.cat.active svg{stroke:var(--gold2)}
.cat span{font-size:9px;color:#aaa;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.cat.active span{color:#eee}

/* SECTION TITLE */
.section-head{display:flex;align-items:center;justify-content:space-between;margin:19px 3px 9px}
.section-head h2{font-size:18px;margin:0;font-weight:900}
.section-head h2:after{content:"";display:inline-block;width:5px;height:5px;background:#24d98a;border-radius:50%;margin:0 0 3px 7px}
.more{font-size:10px;color:#aaa;border:1px solid #34373c;background:#181a1e;padding:7px 9px;border-radius:7px}

/* GAME CARDS */
.games{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.game{min-width:0}
.game-img{
  aspect-ratio:3/4;border-radius:8px;overflow:hidden;border:1px solid #303238;
  background:linear-gradient(145deg,#35383d,#16181b 60%,#29210f);
  position:relative;display:flex;align-items:center;justify-content:center;text-align:center;
}
.game-img:before{content:"";position:absolute;width:58px;height:58px;border-radius:50%;border:1px solid rgba(107,240,178,.35)}
.game-img b{font-size:10px;z-index:1;color:#eee;line-height:1.1}
.rtp{position:absolute;top:5px;right:5px;background:#111c16;color:#7be19b;border:1px solid #315a40;border-radius:5px;padding:3px 4px;font-size:8px;font-weight:800}
.game-name{font-size:10px;font-weight:700;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.game-meta{font-size:9px;color:var(--gold2);margin-top:3px}

/* JACKPOT / TOTO */
.toto-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.toto{
  border:1px solid #31343a;border-radius:10px;padding:12px;background:linear-gradient(145deg,#282b30,#151619);
}
.toto small{font-size:9px;color:#aaa}.toto strong{display:block;font-size:25px;margin:8px 0;color:#eee}
.toto .balls{display:flex;gap:4px}.toto i{font-style:normal;font-size:8px;background:#26292d;padding:5px 6px;border-radius:4px;color:#aaa}

/* FLOAT */
.float-menu{position:fixed;right:max(12px,calc((100vw - 480px)/2 + 10px));bottom:92px;z-index:40;display:flex;flex-direction:column;gap:6px}
.float-menu a{
  width:38px;height:38px;border-radius:10px;background:#1b1d21;border:1px solid #383b40;
  display:grid;place-items:center;color:#bbb;box-shadow:0 5px 18px #0008
}
.float-menu svg{width:18px;height:18px;stroke:currentColor;fill:none}

/* BOTTOM NAV */
.bottom{
  position:fixed;bottom:0;left:50%;transform:translateX(-50%);
  width:min(100%,480px);height:70px;background:rgba(16,18,21,.97);
  border-top:1px solid #303238;display:grid;grid-template-columns:1fr 1fr 1.2fr 1fr 1fr;z-index:60;
  backdrop-filter:blur(12px);
}
.bottom a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#85878c;font-size:9px;font-weight:700}
.bottom svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.8}
.bottom .active{color:var(--gold2)}
.bottom .center{position:relative}
.bottom .center span{
  width:54px;height:54px;border-radius:50%;margin-top:-27px;display:grid;place-items:center;
  background:linear-gradient(145deg,#57efab,#0fa969);color:#111;border:4px solid #101215;
  box-shadow:0 5px 20px #000;
}
.bottom .center span svg{width:23px;height:23px}
.bottom .center label{margin-top:0;color:#ddd;font-size:9px}

/* DESKTOP */
@media(min-width:700px){
  body{padding:25px 0}
  .app{box-shadow:0 0 45px #000;border:1px solid #25272b;border-radius:16px}
  .header{position:relative;border-radius:16px 16px 0 0}
  .bottom{position:fixed}
}

/* PROVIDER / HOME BOTTOM / SIDEBAR */
.providers-section .provider-count{font-size:9px;color:#999;border:1px solid #34373c;padding:6px 8px;border-radius:7px}
.provider-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
.provider-item{min-height:54px;border:1px solid #2d3035;border-radius:9px;background:#17191c;display:flex;align-items:center;justify-content:center;text-align:center;padding:8px 5px;color:#c6c7ca;font-size:9px;font-weight:800}
.provider-item:hover{border-color:#24d98a}
.home-bottom{padding:14px 10px 0}
.home-benefits{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.home-benefit{min-height:42px;border:1px solid #26292d;border-radius:9px;background:#17191c;display:flex;align-items:center;gap:8px;padding:8px 10px}
.home-benefit-icon{font-size:15px;color:var(--gold2)}.home-benefit-text{font-size:10px;color:#c7c8ca;font-weight:700}
.home-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;padding:17px 0 10px;text-align:center}
.home-stat strong{display:block;color:var(--gold2);font-size:14px}.home-stat span{font-size:9px;color:#999}
.home-responsible{text-align:center;color:#aaa;font-size:10px;padding:8px 0 17px;border-bottom:1px solid #292c31}
.home-section{text-align:center;padding:18px 10px 0}.home-section h3{text-transform:uppercase;font-size:12px;margin:0 0 10px}.home-section p{font-size:10px;line-height:1.6;color:#999;margin:0 auto;max-width:360px}.home-links{display:flex;flex-direction:column;gap:9px}.home-links a{font-size:10px;color:#aaa}.home-contact>a{font-size:10px;color:var(--gold2)}.home-socials{display:flex;justify-content:center;gap:8px;margin-top:12px}.home-socials a{width:30px;height:30px;border:1px solid #303238;border-radius:50%;display:grid;place-items:center;color:#ccc;font-weight:800}
@media(max-width:360px){.provider-grid{grid-template-columns:repeat(2,1fr)}}
/* MAXWIN TERBARU - continuous left marquee */
.games-marquee{position:relative;overflow:hidden;width:100%;margin:0 -1px;padding:0 1px}
.games-marquee:before,.games-marquee:after{content:"";position:absolute;top:0;bottom:0;width:14px;z-index:2;pointer-events:none}
.games-marquee:before{left:0;background:linear-gradient(90deg,#101114,transparent)}
.games-marquee:after{right:0;background:linear-gradient(270deg,#101114,transparent)}
.games-track{display:flex;gap:8px;width:max-content;transform:translateX(0)}
.games-track.is-ready{animation:maxwinLeft 18s linear infinite}
.games-track:hover{animation-play-state:paused}
.games-track .game{width:calc((min(100vw,480px) - 44px)/4);min-width:88px;max-width:106px;flex:0 0 auto}
.game-real-img{background:#17191c!important}
.game-real-img:before{display:none}
.game-real-img img{display:block;width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.game-provider{position:absolute;left:5px;bottom:5px;z-index:2;background:rgba(10,11,12,.82);border:1px solid #393b40;color:#ddd;border-radius:5px;padding:3px 4px;font-size:7px;font-weight:800;max-width:calc(100% - 10px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.game-loading{font-size:8px;color:#777;letter-spacing:1px}
.game-error{width:100%;padding:35px 0;text-align:center;color:#777;font-size:10px}
@keyframes maxwinLeft{from{transform:translateX(0)}to{transform:translateX(calc(-50% - 4px))}}
@media(max-width:360px){.games-track .game{min-width:78px}.games-track.is-ready{animation-duration:16s}}
@media(prefers-reduced-motion:reduce){.games-track.is-ready{animation:none}}


/* MAXWIN TERBARU - win display */
.games-marquee .game-win {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--gold, #24d98a);
  white-space: nowrap;
}

.games-marquee .game-user {
  margin-top: 3px;
  font-size: 9px;
  line-height: 1.2;
  color: #8d8d8d;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.games-marquee .game-user::first-letter {
  color: #858585;
}

.games-marquee .game-provider {
  display: none !important;
}

.games-marquee .game-meta {
  display: none !important;
}


/* ===== MAXWIN TERBARU - FINAL POLISH ===== */
.maxwin-latest-section {
  overflow: hidden;
}

.maxwin-latest-section .section-title {
  letter-spacing: .2px;
}

.games-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 2px 0 8px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
}

.games-marquee .games-track {
  display: flex;
  width: max-content;
  gap: 10px;
  will-change: transform;
  animation: maxwinMarquee 32s linear infinite;
  animation-play-state: running !important;
}

.games-marquee:hover .games-track,
.games-marquee .games-track:hover,
.games-marquee .games-track.is-ready {
  animation-play-state: running !important;
}

.games-marquee .game {
  flex: 0 0 112px;
  width: 112px;
  min-width: 112px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.games-marquee .game-img {
  width: 112px;
  height: 138px;
  overflow: hidden;
  border-radius: 10px;
  background: #15171a;
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 5px 18px rgba(0,0,0,.25);
}

.games-marquee .game-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease, filter .25s ease;
}

.games-marquee .game:hover .game-img img {
  transform: scale(1.035);
  filter: brightness(1.06);
}

.games-marquee .game-name {
  margin-top: 7px;
  min-height: 28px;
  font-size: 11px;
  line-height: 14px;
  font-weight: 700;
  color: #f4f4f4;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.games-marquee .game-win {
  margin-top: 4px;
  font-size: 11px;
  line-height: 14px;
  font-weight: 800;
  color: #62eeaa;
  white-space: nowrap;
  letter-spacing: .05px;
}

.games-marquee .game-user,
.games-marquee .game-provider,
.games-marquee .game-meta {
  display: none !important;
}

@keyframes maxwinMarquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 480px) {
  .games-marquee .games-track {
    gap: 9px;
    animation-duration: 29s;
  }

  .games-marquee .game,
  .games-marquee .game-img {
    width: 108px;
    min-width: 108px;
  }

  .games-marquee .game-img {
    height: 134px;
  }

  .games-marquee .game-name {
    font-size: 10.5px;
  }

  .games-marquee .game-win {
    font-size: 10.5px;
  }
}

/* PREMIUM CATEGORY + PROVIDER VISUALS */
.cat-row{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;overflow:visible!important}
.cat{min-width:0!important;height:74px!important;padding:8px 4px!important;border:1px solid #2c2f34!important;border-radius:13px!important;background:linear-gradient(145deg,#1b1e22,#111316)!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:7px!important;position:relative;overflow:hidden;transition:.2s ease!important}
.cat:before{content:"";position:absolute;inset:-25px;background:radial-gradient(circle at 50% 0,rgba(36,217,138,.14),transparent 52%);pointer-events:none}
.cat-art{position:relative;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;font-size:21px;font-weight:950;color:#6bf0b2;background:linear-gradient(145deg,#332a18,#17130d);border:1px solid rgba(36,217,138,.25);box-shadow:0 7px 18px rgba(0,0,0,.25),inset 0 0 13px rgba(36,217,138,.08)}
.cat span:last-child{position:relative;font-size:7px!important;font-weight:950!important;letter-spacing:.6px!important;color:#b8babf!important}
.cat.active,.cat:hover{border-color:#159f63!important;transform:translateY(-2px)!important;box-shadow:0 9px 22px rgba(0,0,0,.28),inset 0 0 20px rgba(36,217,138,.05)!important}
.cat.active span:last-child{color:#6bf0b2!important}
.cat-slots .cat-art{color:#8ed7ff;background:linear-gradient(145deg,#172b35,#10171b)}
.cat-togel .cat-art{color:#72dc99;background:linear-gradient(145deg,#173326,#101814)}
.cat-casino .cat-art{color:#f0a9d2;background:linear-gradient(145deg,#351b2c,#171117)}
.cat-egame .cat-art{color:#b89cff;background:linear-gradient(145deg,#261d39,#13111a)}
.cat-fishing .cat-art{color:#7dd5d8;background:linear-gradient(145deg,#173235,#101819)}
.provider-grid-premium{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}
.provider-card{min-height:78px!important;position:relative;justify-content:flex-start!important;gap:7px!important;padding:10px!important;text-align:left!important;overflow:hidden}
.provider-card:after{content:"";position:absolute;right:-25px;bottom:-32px;width:75px;height:75px;border-radius:50%;background:radial-gradient(circle,rgba(36,217,138,.13),transparent 68%);pointer-events:none}
.provider-mark{width:38px;height:31px;border-radius:9px;display:grid;place-items:center;background:#0e1012;border:1px solid #34373b;flex:0 0 38px;box-shadow:inset 0 0 12px rgba(255,255,255,.025)}
.provider-mark b{font-size:13px;font-weight:1000;letter-spacing:-1px}
.mark-pragmatic,.provider-pragmatic b{color:#2de198}.mark-pg,.provider-pg b{color:#fff}.mark-88,.provider-slot88 b{color:#6bf0b2}.mark-generic{color:#62eeaa}
.provider-label{font-size:7px!important;font-weight:950!important;letter-spacing:.25px;color:#d1d2d4!important;line-height:1.25;max-width:calc(100% - 48px);white-space:normal!important;text-align:left!important}
.provider-arrow{position:absolute;right:9px;bottom:8px;color:#6e7176;font-size:14px;line-height:1}
.provider-card:hover .provider-mark{border-color:#159f63;box-shadow:0 0 16px rgba(36,217,138,.08)}
@media(max-width:700px){.cat-row{grid-template-columns:repeat(3,minmax(0,1fr))!important}.provider-grid-premium{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(min-width:1000px){.cat-row{grid-template-columns:repeat(6,1fr)!important}.provider-grid-premium{grid-template-columns:repeat(6,minmax(0,1fr))!important}}
.latest-game-badge{position:absolute;left:6px;top:6px;z-index:4;padding:4px 6px;border-radius:6px;background:rgba(9,10,12,.82);border:1px solid rgba(36,217,138,.42);color:#6bf0b2;font-size:6px;font-weight:1000;letter-spacing:.6px;backdrop-filter:blur(4px)}
.games-marquee .game-img{position:relative;overflow:hidden}.games-marquee .game-img img{transition:transform .25s ease}.games-marquee .game:hover .game-img img{transform:scale(1.04)}

/* =========================================================
   RESPONSIVE SYSTEM — keep existing structure, improve sizing
   ========================================================= */
html,body{width:100%;max-width:100%;overflow-x:hidden}
img,video,iframe{max-width:100%}
.app{width:100%;max-width:480px;margin-inline:auto}
.header{min-width:0}
.header .brand-logo{min-width:0}
.auth{flex:0 0 auto;white-space:nowrap}
.auth a{white-space:nowrap}
.cat-row{width:100%;min-width:0}
.cat{min-width:0}
.games,.toto-grid,.provider-grid,.provider-grid-premium{width:100%;min-width:0}
.game,.game-img,.game-name,.game-meta{min-width:0}
.section-head{min-width:0}
.section-head h2{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.notice,.notice-marquee{min-width:0}
.hero-card{width:100%;max-width:100%}
.home-bottom{width:auto;max-width:100%}

/* Attractive category logo tiles without changing the existing links/layout */
.cat{position:relative;overflow:hidden;gap:5px;padding:6px 3px}
.cat:before{content:"";position:absolute;width:42px;height:42px;border-radius:50%;top:7px;opacity:.16;filter:blur(.2px);background:radial-gradient(circle,#6bf0b2,transparent 68%)}
.cat-art{position:relative;width:31px;height:31px;border-radius:10px;display:grid;place-items:center;font-size:17px;font-weight:1000;line-height:1;color:#6bf0b2;border:1px solid rgba(243,210,123,.22);background:linear-gradient(145deg,#27231a,#151619);box-shadow:inset 0 0 12px rgba(243,210,123,.06),0 4px 12px rgba(0,0,0,.18)}
.cat-top .cat-art{color:#6bf0b2;background:linear-gradient(145deg,#3a2c12,#17130d)}
.cat-slots .cat-art{color:#2de198;background:linear-gradient(145deg,#382318,#17120f)}
.cat-togel .cat-art{color:#7ed9a0;background:linear-gradient(145deg,#183126,#111916)}
.cat-casino .cat-art{color:#dba6ff;background:linear-gradient(145deg,#2d1d37,#151219)}
.cat-egame .cat-art{color:#72caff;background:linear-gradient(145deg,#162b3b,#11161b)}
.cat-fishing .cat-art{color:#63d7dc;background:linear-gradient(145deg,#143437,#10181a)}
.cat.active .cat-art{border-color:rgba(243,210,123,.6);box-shadow:0 0 18px rgba(243,210,123,.11),inset 0 0 12px rgba(243,210,123,.08)}
.cat span:last-child{position:relative}

@media (min-width:700px){
  body{padding:20px 0;background:#070809}
  .app{max-width:1200px;min-height:calc(100vh - 40px);border:1px solid #25272b;border-radius:18px;box-shadow:0 0 55px rgba(0,0,0,.45)}
  .header{border-radius:17px 17px 0 0;padding-left:18px;padding-right:18px}
  .hero{padding-left:18px;padding-right:18px}
  .section{padding-left:18px;padding-right:18px}
  .home-bottom{margin-left:18px;margin-right:18px}
  .cat-row{gap:10px}
  .cat{height:78px}
  .cat-art{width:36px;height:36px;font-size:19px}
  .games{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
  .toto-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
  .provider-grid,.provider-grid-premium{grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}
  .home-benefits{grid-template-columns:repeat(4,minmax(0,1fr))}
  .home-stats{max-width:700px;margin-left:auto;margin-right:auto}
  .float-menu{right:20px}
  .bottom{width:min(calc(100% - 40px),1200px);border-radius:0 0 18px 18px}
}

@media (min-width:1100px){
  .app{max-width:1280px}
  .section{padding-left:24px;padding-right:24px}
  .hero{padding-left:24px;padding-right:24px}
  .home-bottom{margin-left:24px;margin-right:24px}
  .games{gap:12px}
  .game-img{border-radius:11px}
}

@media (max-width:700px){
  .header{gap:7px;padding-left:8px;padding-right:8px}
  .logo{font-size:15px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .auth{gap:5px}
  .auth a{padding-left:9px;padding-right:9px;font-size:10px}
  .hero-title{font-size:25px}
  .cat-row{gap:5px}
  .cat{height:66px}
  .cat-art{width:29px;height:29px;font-size:15px}
  .section{padding-left:9px;padding-right:9px}
  .games{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
  .game-name{font-size:9px}
  .game-meta{font-size:8px}
  .toto-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .provider-grid,.provider-grid-premium{grid-template-columns:repeat(3,minmax(0,1fr))}
  .home-benefits{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-benefit-text{font-size:10px}
}

@media (max-width:380px){
  .header{padding-left:6px;padding-right:6px}
  .auth a{padding-left:7px;padding-right:7px;font-size:9px}
  .cat-row{gap:4px}
  .cat{height:63px}
  .cat-art{width:27px;height:27px;font-size:14px}
  .cat span:last-child{font-size:8px}
  .games{gap:6px}
  .home-benefits{gap:6px}
  .home-benefit{padding:8px}
}
/* RESPONSIVE SYSTEM — keep existing structure */
html,body{width:100%;max-width:100%;overflow-x:hidden}
img,video,iframe{max-width:100%}
.app{width:100%;max-width:480px;margin-inline:auto}
.header{min-width:0}.header .brand-logo{min-width:0}.auth{flex:0 0 auto;white-space:nowrap}.auth a{white-space:nowrap}
.cat-row{width:100%;min-width:0}.cat{min-width:0}.games,.toto-grid,.provider-grid,.provider-grid-premium{width:100%;min-width:0}.game,.game-img,.game-name,.game-meta{min-width:0}
.section-head{min-width:0}.section-head h2{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.notice,.notice-marquee{min-width:0}.hero-card{width:100%;max-width:100%}.home-bottom{width:auto;max-width:100%}
/* Category visual logos */
.cat{position:relative;overflow:hidden;gap:5px;padding:6px 3px}.cat:before{content:"";position:absolute;width:42px;height:42px;border-radius:50%;top:7px;opacity:.16;background:radial-gradient(circle,#6bf0b2,transparent 68%)}
.cat-art{position:relative;width:31px;height:31px;border-radius:10px;display:grid;place-items:center;font-size:17px;font-weight:1000;line-height:1;color:#6bf0b2;border:1px solid rgba(243,210,123,.22);background:linear-gradient(145deg,#27231a,#151619);box-shadow:inset 0 0 12px rgba(243,210,123,.06),0 4px 12px rgba(0,0,0,.18)}
.cat-top .cat-art{color:#6bf0b2;background:linear-gradient(145deg,#3a2c12,#17130d)}.cat-slots .cat-art{color:#2de198;background:linear-gradient(145deg,#382318,#17120f)}.cat-togel .cat-art{color:#7ed9a0;background:linear-gradient(145deg,#183126,#111916)}.cat-casino .cat-art{color:#dba6ff;background:linear-gradient(145deg,#2d1d37,#151219)}.cat-egame .cat-art{color:#72caff;background:linear-gradient(145deg,#162b3b,#11161b)}.cat-fishing .cat-art{color:#63d7dc;background:linear-gradient(145deg,#143437,#10181a)}
.cat.active .cat-art{border-color:rgba(243,210,123,.6);box-shadow:0 0 18px rgba(243,210,123,.11),inset 0 0 12px rgba(243,210,123,.08)}.cat span:last-child{position:relative}
@media (min-width:700px){
 body{padding:20px 0;background:#070809}.app{max-width:1200px;min-height:calc(100vh - 40px);border:1px solid #25272b;border-radius:18px;box-shadow:0 0 55px rgba(0,0,0,.45)}.header{border-radius:17px 17px 0 0;padding-left:18px;padding-right:18px}.hero{padding-left:18px;padding-right:18px}.section{padding-left:18px;padding-right:18px}.home-bottom{margin-left:18px;margin-right:18px}.cat-row{gap:10px}.cat{height:78px}.cat-art{width:36px;height:36px;font-size:19px}.games{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.toto-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.provider-grid,.provider-grid-premium{grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}.home-benefits{grid-template-columns:repeat(4,minmax(0,1fr))}.home-stats{max-width:700px;margin-left:auto;margin-right:auto}.float-menu{right:20px}.bottom{width:min(calc(100% - 40px),1200px);border-radius:0 0 18px 18px}
}
@media (min-width:1100px){.app{max-width:1280px}.section{padding-left:24px;padding-right:24px}.hero{padding-left:24px;padding-right:24px}.home-bottom{margin-left:24px;margin-right:24px}.games{gap:12px}.game-img{border-radius:11px}}
@media (max-width:700px){
 .header{gap:7px;padding-left:8px;padding-right:8px}.logo{font-size:15px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.auth{gap:5px}.auth a{padding-left:9px;padding-right:9px;font-size:10px}.hero-title{font-size:25px}.cat-row{gap:5px}.cat{height:66px}.cat-art{width:29px;height:29px;font-size:15px}.section{padding-left:9px;padding-right:9px}.games{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.game-name{font-size:9px}.game-meta{font-size:8px}.toto-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.provider-grid,.provider-grid-premium{grid-template-columns:repeat(3,minmax(0,1fr))}.home-benefits{grid-template-columns:repeat(2,minmax(0,1fr))}.home-benefit-text{font-size:10px}
}
@media (max-width:380px){.header{padding-left:6px;padding-right:6px}.auth a{padding-left:7px;padding-right:7px;font-size:9px}.cat-row{gap:4px}.cat{height:63px}.cat-art{width:27px;height:27px;font-size:14px}.cat span:last-child{font-size:8px}.games{gap:6px}.home-benefits{gap:6px}.home-benefit{padding:8px}}


/* Final UI tuning: preserve original category layout, improve spacing */
.header{gap:10px;}
.header .brand-logo{flex:1 1 auto;min-width:0;max-width:145px;height:34px;object-fit:contain;margin-left:8px;margin-right:auto;}
.header .logo{flex:1 1 auto;margin-left:8px;margin-right:auto;}
.auth{margin-left:auto;gap:8px;}
.auth a{flex:0 0 auto;}
.cat-row{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:6px!important;}
.cat{height:67px!important;border-radius:11px!important;background:#181a1e!important;border:1px solid #2b2e33!important;box-shadow:none!important;transform:none!important;}
.cat:before{display:none!important;}
.cat-art{width:39px!important;height:39px!important;border-radius:10px!important;font-size:22px!important;background:transparent!important;border:0!important;box-shadow:none!important;}
.cat span:last-child{font-size:9px!important;color:#aaa!important;font-weight:700!important;letter-spacing:0!important;}
.cat.active{border-color:#24d98a!important;background:linear-gradient(180deg,#29261f,#17181b)!important;}
.cat.active span:last-child{color:#eee!important;}
.cat-top .cat-art{color:#6bf0b2}.cat-slots .cat-art{color:#2de198}.cat-togel .cat-art{color:#7ed9a0}.cat-casino .cat-art{color:#dba6ff}.cat-egame .cat-art{color:#72caff}.cat-fishing .cat-art{color:#63d7dc}
.provider-grid-premium{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;}
.provider-card{min-height:58px!important;padding:7px 7px!important;}
.provider-mark{width:34px!important;height:34px!important;display:grid!important;place-items:center!important;flex:0 0 34px!important;border-radius:9px!important;}
.provider-mark b{font-size:12px!important;font-weight:1000!important;letter-spacing:-.6px!important;}
.provider-label{font-size:8px!important;line-height:1.1!important;}
@media(min-width:701px){.cat{height:70px!important}.cat-art{width:42px!important;height:42px!important;font-size:24px!important}.header .brand-logo{max-width:155px;height:36px;margin-left:12px}.auth{gap:10px}.auth a{padding-left:13px;padding-right:13px}.provider-grid-premium{grid-template-columns:repeat(6,minmax(0,1fr))!important;}}
@media(max-width:700px){.header .brand-logo{max-width:125px;height:32px;margin-left:10px}.header .logo{margin-left:10px}.auth{gap:8px}.auth a{padding-left:10px!important;padding-right:10px!important}.cat-row{grid-template-columns:repeat(6,minmax(0,1fr))!important}.cat{height:65px!important}.cat-art{width:34px!important;height:34px!important;font-size:20px!important}.provider-grid-premium{grid-template-columns:repeat(3,minmax(0,1fr))!important;}}
@media(max-width:430px){.header{gap:6px;padding-left:7px;padding-right:7px}.header .brand-logo{max-width:112px;height:30px;margin-left:8px}.auth{gap:6px}.auth a{padding-left:8px!important;padding-right:8px!important;font-size:9px!important}.cat-row{gap:4px!important}.cat{height:63px!important}.cat-art{width:31px!important;height:31px!important;font-size:18px!important}.cat span:last-child{font-size:8px!important;}}

/* =========================================================
   BLACK GREEN THEME — visual colors/background only
   ========================================================= */
:root{
  --bg:#050907;
  --panel:#0c1210;
  --panel2:#101a15;
  --gold:#22d889;
  --gold2:#66f0af;
  --text:#f4fff9;
  --muted:#8ea39a;
  --line:#1d382c;
  --green:#25e28d;
}
html,body{
  background:#030806 !important;
  color:#f4fff9 !important;
}
body{
  background-image:linear-gradient(rgba(2,8,6,.40),rgba(2,8,6,.62)),url("https://updatetiapharibugis.com/image/bg.jpg") !important;
  background-position:center top !important;
  background-size:cover !important;
  background-attachment:fixed !important;
  background-repeat:no-repeat !important;
}
.app{
  background:linear-gradient(180deg,rgba(5,13,10,.96),rgba(7,15,12,.94) 55%,rgba(4,10,8,.97)) !important;
  border-color:#173d2b !important;
}
.header,.side-head{
  background:rgba(7,18,13,.94) !important;
  border-color:#173a2a !important;
}
.icon-btn,.search-btn,.more,.float-menu a,.side-tab,.side-promo-card,.side-link,.side-auth .side-login,
.provider-item,.home-benefit,.home-socials a,.register-progress,.register-note,
.games-marquee .game-provider{
  background:#0b1511 !important;
  border-color:#1b3d2d !important;
}
.logo,.bottom .active,.home-stat strong,.home-contact>a,.home-links a:hover,
.side-link:hover,.side-link.active,.side-tab.active,.side-icon,
.section-head h2:after,.game-meta,.register-login a,.eyebrow,.hero-kicker{
  color:#66f0af !important;
}
.register{
  background:linear-gradient(135deg,#47eea0,#0fbf73) !important;
  border-color:#47eea0 !important;
  color:#04100a !important;
}
.login,.head-login{
  background:#0a1611 !important;
  border-color:#2a6247 !important;
  color:#d9fff0 !important;
}
.hero-card{
  border-color:#1d4d37 !important;
  background:
    radial-gradient(circle at 75% 40%,rgba(34,216,137,.20),transparent 28%),
    linear-gradient(135deg,#07120d,#0d1d15 55%,#07100c) !important;
}
.hero-orb{background:radial-gradient(circle at 38% 35%,#a6ffd3 0,#28d889 28%,#096e45 55%,transparent 70%) !important}
.hero-btn,.bottom .center span,.register-submit{
  background:linear-gradient(135deg,#57f0a5,#10bc72) !important;
  color:#031009 !important;
  border-color:#49e79d !important;
}
.more{color:#9fd8be !important}
.notice{border-color:#17382a !important;color:#91a99e !important}
.dot{background:#35e895 !important}
.cat,.provider-item,.home-benefit,.toto,.game-img,.side-promo-card,.side-tab,.side-auth .side-login{
  border-color:#1b392b !important;
}
.cat,.toto,.game-img{
  background:linear-gradient(145deg,#0d1712,#08100c) !important;
}
.cat.active,.side-tab.active{
  border-color:#27d886 !important;
  background:linear-gradient(180deg,#11291e,#09140f) !important;
}
.cat.active span,.cat.active svg{color:#7cf3b7 !important;stroke:#63ecac !important}
.side-link:hover,.side-link.active{background:#0c1a13 !important;border-color:#1c543b !important}
.side-link:hover .side-icon,.side-link.active .side-icon{color:#42e89b !important}
.side-divider,.home-responsible,.footer-content .footerlink.version-sec{background-color:transparent !important;border-color:#17382a !important}
.bottom{background:rgba(5,13,10,.96) !important;border-color:#1d3d2d !important}
.bottom .center span{border-color:#07100b !important;box-shadow:0 5px 20px #000,0 0 20px rgba(34,216,137,.12) !important}
.float-menu a{color:#a8c9ba !important}
.provider-item:hover,.home-socials a:hover{border-color:#2ee398 !important;color:#6af1b0 !important}
.home-bottom{color:#e8fff4 !important}
.home-responsible{color:#a6bcb1 !important}
.home-section h3{color:#e8fff4 !important}
.home-section p,.home-links a{color:#94aa9f !important}
.home-benefit-icon{background:#0e2017 !important;color:#62edab !important}
.register-page{background:linear-gradient(rgba(3,10,7,.70),rgba(3,10,7,.86)),url("https://updatetiapharibugis.com/image/bg.jpg") center top/cover fixed no-repeat !important}
.register-card{background:linear-gradient(155deg,#0d1712,#08100c) !important;border-color:#1a3b2c !important}
.register-head p,.register-card-head p,.register-login{color:#91a79c !important}
.register-progress{background:#09110d !important}
.register-progress span.active{color:#67efad !important}
.register-progress .active b{background:linear-gradient(145deg,#54ef9f,#0fb86f) !important;color:#031009 !important}
.section-title{color:#66f0af !important}
.section-title:after{background:#1a3c2d !important}
.field input{background:#07100c !important;border-color:#1b3b2c !important}
.field input:focus{border-color:#2ce194 !important;box-shadow:0 0 0 3px rgba(44,225,148,.10) !important}

/* prevent theme from altering content geometry */


/* BRAND HORN + ABOUT PATCH */
.notice-mic svg{width:18px;height:18px;display:block;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;transform-origin:50% 50%;animation:noticeHornShake .72s ease-in-out infinite}
@keyframes noticeHornShake{0%,100%{transform:rotate(0deg) translateX(0)}20%{transform:rotate(-7deg) translateX(-1px)}40%{transform:rotate(7deg) translateX(1px)}60%{transform:rotate(-5deg) translateX(-1px)}80%{transform:rotate(5deg) translateX(1px)}}
.home-about{text-align:left!important}
.home-about h3{max-width:none!important;text-align:left!important;line-height:1.45}
.home-about h4{margin:22px 0 12px;color:#eee;font-size:14px;line-height:1.45}
.home-about p{max-width:none!important;text-align:left!important;line-height:1.75}
.home-about ul{margin:16px 0 0;padding-left:21px;color:#aaa;font-size:11px;line-height:1.75}
.home-about li{padding-left:2px;margin:8px 0}
.home-about li strong,.home-about p strong{color:#eee}
@media(prefers-reduced-motion:reduce){.notice-mic svg{animation:none}}
/* END BRAND HORN + ABOUT PATCH */
