* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
}

body {
  background:
    radial-gradient(
      ellipse 90% 55% at 50% 0%,
      rgba(var(--accent-rgb), 0.3) 0%,
      transparent 70%
    ),
    radial-gradient(
      circle 650px at 100% 100%,
      rgba(var(--accent-rgb), 0.18) 0%,
      transparent 70%
    ),
    radial-gradient(
      circle 500px at 0% 60%,
      rgba(var(--accent-rgb), 0.1) 0%,
      transparent 70%
    ),
    linear-gradient(
      180deg,
      var(--bg-glow) 0%,
      var(--bg-mid) 45%,
      var(--bg-end) 100%
    );
  background-attachment: fixed;
  background-color: var(--bg-mid);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

a {
  color: #fff;
  text-decoration: none;
}
button,
input {
  font-family: inherit;
}
button {
  border: 0;
}
.empty {
  padding: 18px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(var(--accent-rgb), 0.35);
  border-radius: 10px;
}

.desktop-shell {
  display: block;
}
.mobile-shell {
  display: none;
}
.desktop-main {
  margin-left: 0;
  min-height: 100vh;
}

.desktop-header {
  position: sticky;
  top: 0;
  z-index: 101;
  background:
    linear-gradient(
      90deg,
      rgba(var(--accent-rgb), 0.22),
      rgba(var(--accent-rgb), 0.06)
    ),
    var(--side-1);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.header-top {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.header-account-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  padding-left: 10px;
  border-left: 1px solid rgba(var(--accent-rgb), 0.25);
}

.acc-link {
  height: 36px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  transition: 0.2s;
}
.acc-link svg {
  color: var(--accent-light);
}
.acc-link:hover {
  border-color: var(--accent-light);
  background: rgba(var(--accent-rgb), 0.2);
}
.acc-link.highlight {
  background: var(--grad);
  border-color: var(--accent-light);
  color: var(--on-accent);
  box-shadow: 0 3px 10px rgba(var(--accent-rgb), 0.4);
}
.acc-link.highlight svg {
  color: var(--on-accent);
}

.desktop-nav-bar {
  position: sticky;
  top: 68px;
  z-index: 99;
  background:
    linear-gradient(
      90deg,
      rgba(var(--accent-rgb), 0.14),
      rgba(var(--accent-rgb), 0.04)
    ),
    var(--panel);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.35);
}

.desktop-nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.desktop-nav-inner::-webkit-scrollbar {
  display: none;
}

.nav-link.logout-link {
  color: #ffb4b4;
  margin-left: auto;
}
.header-logo img {
  height: 42px;
  display: block;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
}
.top-btn {
  height: 37px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.login-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(var(--accent-rgb), 0.7);
}
.register-btn {
  color: var(--on-accent);
  background: var(--grad);
  box-shadow: 0 3px 12px rgba(var(--accent-rgb), 0.4);
}

.nav-link {
  height: 32px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.8);
  transition: 0.2s;
  border: 1px solid transparent;
  flex: 0 0 auto;
}
.nav-link svg {
  color: var(--accent-light);
}
.nav-link:hover,
.nav-link.active {
  background: linear-gradient(
    90deg,
    rgba(var(--accent-rgb), 0.35),
    rgba(var(--accent-rgb), 0.08)
  );
  border-color: rgba(var(--accent-rgb), 0.45);
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--accent-light);
}
.nav-sep {
  width: 1px;
  height: 20px;
  background: rgba(var(--accent-rgb), 0.3);
  margin: 0 6px;
  flex: 0 0 auto;
}

.content {
  padding: 20px 24px 45px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}
.section {
  margin-top: 22px;
}
.section:first-child {
  margin-top: 0;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}
.section-title-line {
  width: 3px;
  height: 17px;
  border-radius: 2px;
  background: var(--grad-vert);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.7);
}

.hot-nav-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hot-nav-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  border-radius: 7px;
  color: var(--accent-light);
  cursor: pointer;
  transition: 0.2s;
}
.hot-nav-btn:hover {
  background: var(--accent-mid);
  color: #fff;
  border-color: var(--accent-light);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.5);
}
.hot-nav-btn.prev svg {
  transform: rotate(180deg);
}
.hot-nav-btns.mobile .hot-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.section-more {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-light);
  font-size: 10px;
  font-weight: 600;
}

.banner-wrap {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--side-1);
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 6px 24px rgba(var(--accent-rgb), 0.18);
}
.banner-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.45s ease;
}
.banner-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: var(--card-img);
  aspect-ratio: unset !important;
}
.banner-slide img {
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: fill !important;
  object-position: center center !important;
}

@media (max-width: 850px) {
  .banner-wrap {
    height: 190px;
  }
}

.banner-arrow {
  position: absolute;
  top: 50%;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(var(--accent-rgb), 0.6);
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
}
.banner-arrow.left {
  left: 12px;
}
.banner-arrow.left svg {
  transform: rotate(180deg);
}
.banner-arrow.right {
  right: 12px;
}
.banner-dots {
  position: absolute;
  bottom: 9px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
  z-index: 5;
}
.banner-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}
.banner-dot.active {
  width: 17px;
  border-radius: 5px;
  background: var(--accent-light);
}

.ticker {
  height: 38px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  background:
    linear-gradient(
      90deg,
      rgba(var(--accent-rgb), 0.2),
      rgba(var(--accent-rgb), 0.06)
    ),
    var(--panel);
  border-radius: 5px;
  isolation: isolate;
}
.ticker-icon {
  flex: 0 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 13px;
  color: var(--accent-light);
  background: var(--panel);
  z-index: 10;
  position: relative;
  box-shadow: 6px 0 12px var(--panel);
}
.ticker-track {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}
.ticker-text {
  display: inline-block;
  white-space: nowrap;
  color: #fff;
  font-size: 11px;
  will-change: transform;
  animation: tickerMoveDesktop 20s linear infinite;
}

/* HOT GAMES */
.hot-grid {
  display: flex;
  gap: 12px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 4px 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--accent-rgb), 0.4) transparent;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  cursor: grab;
}
.hot-grid:active {
  cursor: grabbing;
}
.hot-grid::-webkit-scrollbar {
  height: 6px;
}
.hot-grid::-webkit-scrollbar-thumb {
  background: rgba(var(--accent-rgb), 0.4);
  border-radius: 10px;
}

.hot-card {
  flex: 0 0 195px;
  width: 195px;
  min-width: 195px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  border-radius: 12px;
  scroll-snap-align: start;
  box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.15);
  transition: 0.22s;
  position: relative;
}
@media (min-width: 1200px) {
  .hot-card {
    flex: 0 0 210px;
    width: 210px;
    min-width: 210px;
  }
}
.hot-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), 1);
  box-shadow: 0 8px 22px rgba(var(--accent-rgb), 0.4);
}
.hot-card:hover .hot-overlay-play {
  opacity: 1;
}
.hot-card:hover img.hot-main-img {
  transform: scale(1.05);
}

.hot-image {
  width: 100%;
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
  background: var(--card-img);
}
.hot-image img.hot-main-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.hot-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.05) 50%
  );
  pointer-events: none;
  z-index: 1;
}

.hot-provider-top {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 0 0 12px 0;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}
.hot-provider-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hot-name-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 8px 7px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.hot-overlay-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: rgba(0, 0, 0, 0.4);
  transition: 0.22s;
  z-index: 2;
}
.hot-play-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--grad-play);
  color: var(--on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.8);
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* PROMO */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.promo-card {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff !important;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  background-size: 300% 100% !important;
  animation: gradientMove 3s linear infinite;
  transition: transform 0.2s;
}
.promo-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -2;
  border-radius: 10px;
  background: conic-gradient(
    from var(--angle),
    transparent 0deg,
    transparent 200deg,
    var(--glow1) 300deg,
    var(--glow2) 360deg
  );
  animation: rotateBorder 2.2s linear infinite;
}
.promo-card::after {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  border-radius: 8px;
  background: inherit;
  filter: brightness(0.7);
}
.promo-card.promosi {
  --glow1: #ff5ef6;
  --glow2: #a855ff;
  background-image: linear-gradient(
    90deg,
    #1a0a1f 0%,
    #4a1760 25%,
    #9a2ab0 50%,
    #4a1760 75%,
    #1a0a1f 100%
  ) !important;
  box-shadow:
    0 0 0 1px rgba(200, 94, 255, 0.4) inset,
    0 0 22px rgba(200, 94, 255, 0.5),
    0 6px 18px rgba(0, 0, 0, 0.6);
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.7),
    0 0 20px var(--glow1);
}
.promo-card.tournament {
  --glow1: #ffcc33;
  --glow2: #ff8800;
  background-image: linear-gradient(
    90deg,
    #1a1600 0%,
    #5a4a00 25%,
    #c89a00 50%,
    #5a4a00 75%,
    #1a1600 100%
  ) !important;
  box-shadow:
    0 0 0 1px rgba(255, 204, 51, 0.4) inset,
    0 0 22px rgba(255, 204, 51, 0.5),
    0 6px 18px rgba(0, 0, 0, 0.6);
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.7),
    0 0 20px var(--glow1);
}
.promo-card svg {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
  animation: iconFloat 1.5s ease-in-out infinite;
}
.promo-card:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.2);
}

/* GAME GRID (desktop): 1 kartu besar (2 baris) + 6 kartu kecil */
.game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.game-card {
  min-width: 0;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: 12px;
  transition: 0.22s;
  position: relative;
  box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.12);
  display: flex;
  flex-direction: column;
}
.game-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), 1);
  box-shadow: 0 8px 22px rgba(var(--accent-rgb), 0.4);
}
.game-card:hover .game-overlay {
  opacity: 1;
}

.game-image {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--card-img);
  position: relative;
  flex: 0 0 auto;
}
.game-image img.game-main-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.game-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0) 55%
  );
  z-index: 1;
  pointer-events: none;
}

.game-provider-top {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 0 0 12px 0;
  overflow: hidden;
  background: var(--side-2);
  border-right: 1px solid rgba(var(--accent-rgb), 0.45);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}
.game-provider-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-name-bottom {
  position: relative;
  z-index: 3;
  height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: var(--accent-light);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background:
    linear-gradient(
      90deg,
      rgba(var(--accent-rgb), 0.18),
      rgba(var(--accent-rgb), 0.04)
    ),
    var(--panel-2);
  border-top: 1px solid rgba(var(--accent-rgb), 0.3);
  flex: 0 0 42px;
  transition: 0.22s;
}
.game-card:hover .game-name-bottom {
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--accent-light);
}

.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: rgba(var(--accent-rgb), 0.22);
  backdrop-filter: blur(1px);
  transition: 0.22s;
  z-index: 2;
}

@media (min-width: 1051px) {
  .game-grid .game-card:first-child {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  .game-grid .game-card:first-child .game-image {
    aspect-ratio: auto;
    flex: 1 1 auto;
    min-height: 0;
  }
  .game-grid .game-card:first-child .game-image img.game-main-img {
    position: absolute;
    inset: 0;
  }
  .game-grid .game-card:first-child .game-name-bottom {
    height: 52px;
    flex: 0 0 52px;
    font-size: 15px;
  }
}

@media (max-width: 1050px) {
  .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* MODAL */
.login-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.login-modal-overlay.active {
  display: flex;
  opacity: 1;
}
.login-modal-overlay.active .login-modal {
  transform: none;
}
.login-modal {
  width: 100%;
  max-width: 400px;
  background:
    linear-gradient(
      180deg,
      rgba(var(--accent-rgb), 0.18),
      rgba(var(--accent-rgb), 0.06)
    ),
    var(--panel);
  border: 1px solid rgba(var(--accent-rgb), 0.55);
  border-radius: 14px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(var(--accent-rgb), 0.2);
  overflow: hidden;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.25s ease;
}
.login-modal-head {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.25);
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.2), transparent);
}
.login-modal-title {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.login-modal-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--grad-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-accent);
}
.login-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-modal-body {
  padding: 20px;
}
.login-err {
  background: rgba(255, 60, 60, 0.15);
  border: 1px solid rgba(255, 60, 60, 0.45);
  color: #ffb4b4;
  font-size: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 14px;
}
.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.login-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--accent-light);
}
.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.login-input-wrap svg {
  position: absolute;
  left: 12px;
  color: var(--accent-light);
  pointer-events: none;
}
.login-input {
  width: 100%;
  height: 44px;
  padding: 0 12px 0 38px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: 0.2s;
}
.login-input:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.25);
  background: rgba(0, 0, 0, 0.5);
}
.login-btn-submit {
  width: 100%;
  height: 46px;
  margin-top: 6px;
  background: var(--grad);
  color: var(--on-accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: 8px;
  cursor: pointer;
  box-shadow:
    0 6px 18px rgba(var(--accent-rgb), 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.login-footer {
  margin-top: 14px;
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}
.login-footer a {
  color: var(--accent-light);
  font-weight: 800;
}

/* MOBILE */
@media (max-width: 850px) {
  .desktop-shell {
    display: none;
  }
  .mobile-shell {
    display: block;
  }
  body {
    padding-bottom: 92px;
  }

  .mobile-header {
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 13px;
    background:
      linear-gradient(
        90deg,
        rgba(var(--accent-rgb), 0.2),
        rgba(var(--accent-rgb), 0.05)
      ),
      var(--side-1);
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  }
  .mobile-menu-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--on-accent);
    background: var(--grad-btn);
    border: 1px solid var(--accent-light);
    border-radius: 7px;
    box-shadow:
      0 2px 10px rgba(var(--accent-rgb), 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.35);
    cursor: pointer;
    flex: 0 0 auto;
  }
  .mobile-logo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mobile-logo img {
    height: 34px;
  }
  .mobile-header-spacer {
    width: 36px;
    flex: 0 0 36px;
  }
  .mobile-content {
    padding: 0 10px 25px;
  }

  .mobile-categories {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    width: calc(100% + 20px);
    margin: 0 -10px;
    background:
      linear-gradient(
        135deg,
        rgba(var(--accent-rgb), 0.18),
        rgba(var(--accent-rgb), 0.06)
      ),
      var(--panel);
    border-top: 1px solid rgba(var(--accent-rgb), 0.35);
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.35);
    border-radius: 0;
  }
  .mobile-categories::-webkit-scrollbar {
    display: none;
  }
  .mobile-category {
    flex: 0 0 auto;
    height: 42px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.2s;
  }
  .mobile-category.active {
    color: #fff;
    background: linear-gradient(
      180deg,
      rgba(var(--accent-rgb), 0.28),
      rgba(var(--accent-rgb), 0.08)
    );
    box-shadow: inset 0 -2px 0 var(--accent-light);
  }

  .mobile-banner {
    position: relative;
    overflow: hidden;
    width: calc(100% + 20px);
    margin: 0 -10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--card-img);
    box-shadow: none;
  }
  .mobile-banner-track {
    display: flex;
    transition: transform 0.4s ease;
  }
  .mobile-banner-slide {
    flex: 0 0 100%;
    aspect-ratio: 1.9/1;
    overflow: hidden;
  }
  .mobile-banner-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }
  .mobile-banner-dots {
    position: absolute;
    bottom: 7px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 4px;
  }
  .mobile-banner-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
  }
  .mobile-banner-dot.active {
    width: 15px;
    border-radius: 4px;
    background: var(--accent-light);
  }

  .mobile-login-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 9px;
  }
  .mobile-login {
    height: 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
  }
  .mobile-login.login,
  .mobile-login.register {
    color: var(--on-accent);
    background: var(--grad);
    box-shadow: 0 3px 12px rgba(var(--accent-rgb), 0.4);
  }

  .mobile-section {
    margin-top: 18px;
  }
  .mobile-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 9px;
  }
  .mobile-section-title {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
  }
  .mobile-section-title::before {
    content: "";
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: var(--grad-vert);
    box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.7);
  }
  .mobile-more {
    display: flex;
    align-items: center;
    color: var(--accent-light);
    font-size: 9px;
  }

  .mobile-hot-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 1px 7px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .mobile-hot-grid::-webkit-scrollbar {
    display: none;
  }
  .mobile-hot-card {
    flex: 0 0 128px;
    width: 128px;
    min-width: 128px;
    overflow: hidden;
    background: var(--card);
    border: 1px solid rgba(var(--accent-rgb), 0.5);
    box-shadow: 0 3px 10px rgba(var(--accent-rgb), 0.18);
    border-radius: 9px;
    position: relative;
    scroll-snap-align: start;
  }
  .mobile-hot-image {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--card-img);
    position: relative;
  }
  .mobile-hot-image img.mobile-main-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }
  .mobile-hot-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0) 50%
    );
    z-index: 1;
  }
  .mobile-name-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 6px;
    color: #fff;
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  }

  .mobile-game-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .mobile-game-card {
    min-width: 0;
    overflow: hidden;
    background: var(--card);
    border: 1px solid rgba(var(--accent-rgb), 0.4);
    border-radius: 9px;
    box-shadow: 0 3px 10px rgba(var(--accent-rgb), 0.15);
  }
  .mobile-game-image {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--card-img);
    position: relative;
  }
  .mobile-game-image img.mobile-main-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }
  .mobile-game-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
    z-index: 1;
  }
  .mobile-game-name-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 6px;
    color: #fff;
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  }

  .mobile-login.promosi {
    height: 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 8px;
    font-size: 12px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--on-accent) !important;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    --glow1: var(--accent-light);
    --glow2: var(--accent-mid);
    background-image: linear-gradient(
      90deg,
      var(--bg-end) 0%,
      var(--side-1) 25%,
      var(--accent-mid) 50%,
      var(--accent-dark) 75%,
      var(--bg-end) 100%
    ) !important;
    background-size: 300% 100% !important;
    animation: gradientMove 3s linear infinite;
    box-shadow:
      0 0 0 1px rgba(var(--accent-rgb), 0.5) inset,
      0 0 18px rgba(var(--accent-rgb), 0.5),
      0 3px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(var(--accent-rgb), 0.6);
  }
  .mobile-login.promosi::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -2;
    border-radius: 8px;
    background: conic-gradient(
      from var(--angle),
      transparent 0deg,
      transparent 200deg,
      var(--glow1) 300deg,
      var(--glow2) 360deg
    );
    animation: rotateBorder 2.2s linear infinite;
  }
  .mobile-login.promosi::after {
    content: "";
    position: absolute;
    inset: 2px;
    z-index: -1;
    border-radius: 6px;
    background: inherit;
    filter: brightness(0.85);
  }

  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 74px;
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background:
      linear-gradient(
        180deg,
        rgba(var(--accent-rgb), 0.18) 0%,
        transparent 60%
      ),
      linear-gradient(180deg, var(--nav-1) 0%, var(--nav-2) 100%);
    border-top: 1px solid rgba(var(--accent-rgb), 0.5);
    box-shadow:
      0 -4px 20px rgba(0, 0, 0, 0.5),
      0 -1px 0 rgba(var(--accent-rgb), 0.2);
  }
  .bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    position: relative;
    transition: 0.2s;
  }
  .bottom-item.active {
    color: var(--accent-light);
    text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.8);
  }
  .bottom-item.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--accent-light);
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.9);
  }

  .mobile-sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 199;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
  }
  .mobile-sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 290px;
    max-width: 82vw;
    z-index: 200;
    background: linear-gradient(180deg, var(--side-1) 0%, var(--side-2) 100%);
    border-right: 1px solid rgba(var(--accent-rgb), 0.55);
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.7);
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .mobile-sidebar.active {
    transform: translateX(0);
  }
  .mobile-sidebar-head {
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.35);
    background: rgba(var(--accent-rgb), 0.12);
    flex: 0 0 auto;
  }
  .mobile-sidebar-head img {
    height: 30px;
  }
  .mobile-sidebar-close {
    width: 34px;
    height: 34px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(var(--accent-rgb), 0.4);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mobile-sidebar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 14px;
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.2);
    flex: 0 0 auto;
  }
  .ms-btn {
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.5px;
    cursor: pointer;
  }
  .ms-btn.masuk {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(var(--accent-rgb), 0.7);
    color: #fff;
  }
  .ms-btn.daftar {
    background: var(--grad);
    color: var(--on-accent);
    box-shadow: 0 3px 12px rgba(var(--accent-rgb), 0.5);
    border: 1px solid var(--accent-light);
  }
  .mobile-sidebar-menu {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow-y: auto;
    flex: 1;
  }
  .ms-label {
    margin: 10px 8px 6px;
    color: var(--accent-light);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    opacity: 0.9;
  }
  .ms-item {
    height: 48px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 12px;
    border-radius: 9px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: 0.2s;
  }
  .ms-item svg {
    color: var(--accent-light);
    flex: 0 0 auto;
  }
}

.game-card.search-hidden,
.hot-card.search-hidden,
.mobile-game-card.search-hidden,
.mobile-hot-card.search-hidden {
  display: none !important;
}

.logged-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 300px;
}
.user-logged-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  height: 48px;
  padding: 6px 12px 6px 8px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.03)
    ),
    var(--panel);
  border: 1px solid rgba(var(--accent-rgb), 0.6);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.level-badge {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.level-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 2px;
}
.uname-text {
  font-size: 14px;
  color: #fff;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bal-row {
  display: flex;
  align-items: center;
  gap: 5px;
}
.bal-text {
  font-size: 12px;
}
.refresh-icon {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  transition: 0.3s;
}
.refresh-icon:hover {
  transform: rotate(180deg);
  color: #fff;
}

@keyframes chestFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.chest-box {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  margin-left: auto;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}
.chest-box img {
  width: 50px;
  height: 100%;
  object-fit: contain;
  display: block;
  animation: chestFloat 2s ease-in-out infinite;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

.mobile-ticker {
  height: 34px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(var(--accent-rgb), 0.2),
      rgba(var(--accent-rgb), 0.06)
    ),
    var(--panel);
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  border-radius: 5px;
  isolation: isolate;
}
.mobile-ticker-icon {
  flex: 0 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: var(--accent-light);
  background: var(--panel);
  z-index: 10;
  position: relative;
  box-shadow: 6px 0 10px var(--panel);
}
.mobile-ticker-track {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}
.mobile-ticker-text {
    display: inline-block;
    white-space: nowrap;
    color: #fff;
    font-size: 11px;
    will-change: transform;
    animation: tickerMoveMobile 24s linear infinite;
}

@keyframes tickerMoveMobile {
    0% {
        transform: translateX(100vw);
    }

    100% {
        transform: translateX(-100%);
    }
}
@keyframes tickerMoveDesktop {
    0% {
        transform: translateX(80vw);
    }

    100% {
        transform: translateX(-100%);
    }
}
@keyframes rotateBorder {
  to {
    --angle: 360deg;
  }
}
@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 300% 50%;
  }
}
@keyframes iconFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1px);
  }
}

.mobile-promo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.mobile-promo {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff !important;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  background-size: 300% 100% !important;
  animation: gradientMove 3s linear infinite;
}
.mobile-promo::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -2;
  border-radius: 10px;
  background: conic-gradient(
    from var(--angle),
    transparent 0deg,
    transparent 200deg,
    var(--glow1) 300deg,
    var(--glow2) 360deg
  );
  animation: rotateBorder 2.2s linear infinite;
}
.mobile-promo::after {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  border-radius: 8px;
  background: inherit;
  filter: brightness(0.7);
}
.mobile-promo.promosi {
  --glow1: #ff5ef6;
  --glow2: #a855ff;
  background-image: linear-gradient(
    90deg,
    #1a0a1f 0%,
    #4a1760 25%,
    #9a2ab0 50%,
    #4a1760 75%,
    #1a0a1f 100%
  ) !important;
  box-shadow:
    0 0 0 1px rgba(200, 94, 255, 0.4) inset,
    0 0 16px rgba(200, 94, 255, 0.45);
}
.mobile-promo.tournament {
  --glow1: #ffcc33;
  --glow2: #ff8800;
  background-image: linear-gradient(
    90deg,
    #1a1600 0%,
    #5a4a00 25%,
    #c89a00 50%,
    #5a4a00 75%,
    #1a1600 100%
  ) !important;
  box-shadow:
    0 0 0 1px rgba(255, 204, 51, 0.4) inset,
    0 0 16px rgba(255, 204, 51, 0.45);
}

.mobile-sidebar-logged {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background:
    linear-gradient(
      135deg,
      rgba(var(--accent-rgb), 0.22),
      rgba(var(--accent-rgb), 0.08)
    ),
    var(--panel);
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  border-radius: 12px;
  margin-bottom: 12px;
}
.ms-user-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ms-uname {
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ms-bal {
  font-size: 12px;
  color: var(--accent-light);
}

.mobile-logged-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  padding: 8px 10px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.07),
      rgba(255, 255, 255, 0.02)
    ),
    var(--panel);
  border: 1px solid rgba(var(--accent-rgb), 0.6);
  border-radius: 10px;
}

.mobile-provider-top,
.mobile-game-provider-top {
  position: absolute;
  top: 0 !important;
  left: 0 !important;
  width: 32px !important;
  height: 32px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 0 8px 0 !important;
  overflow: hidden !important;
  z-index: 5;
}
.mobile-provider-top img,
.mobile-game-provider-top img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 0 0 8px 0 !important;
}

.bottom-nav.logged {
  grid-template-columns: repeat(3, 1fr);
  height: 74px;
}
.bottom-item.deposit-bulat {
  top: -20px;
  gap: 6px;
}
.deposit-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-accent);
  --glow1: var(--accent-light);
  --glow2: var(--accent-mid);
  background-image: linear-gradient(
    90deg,
    var(--side-2) 0%,
    var(--nav-1) 25%,
    var(--accent-mid) 50%,
    var(--accent-dark) 75%,
    var(--side-2) 100%
  ) !important;
  background-size: 300% 100% !important;
  animation: gradientMove 3s linear infinite;
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.4) inset,
    0 0 22px rgba(var(--accent-rgb), 0.55),
    0 6px 18px rgba(0, 0, 0, 0.6);
  border: 0;
}
.deposit-circle::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -2;
  border-radius: 50%;
  background: conic-gradient(
    from var(--angle),
    transparent 0deg,
    transparent 200deg,
    var(--glow1) 300deg,
    var(--glow2) 360deg
  );
  animation: rotateBorder 2.2s linear infinite;
}
.deposit-circle::after {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: -1;
  border-radius: 50%;
  background: inherit;
  filter: brightness(0.85);
}

#gameLaunchOverlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}
.js-require-login {
  cursor: pointer;
}

#appErrorPopup .app-error-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 60, 60, 0.15);
  border: 1px solid rgba(255, 60, 60, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff6b6b;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
