@import url("base.css");
@import url("carousel.css");
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
}

button,
input {
  font: inherit;
}

.static-login {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 14px;
}

.static-login input {
  width: 174px;
  height: 38px;
  padding: 0 12px;
  color: var(--base);
  background: var(--secondaryBackground);
  border: 1px solid transparent;
  border-radius: 7px;
  outline: none;
}

.static-login input:focus {
  border-color: var(--primary);
}

.static-login-button,
.static-register-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 13px;
  border-radius: 8px;
}

.static-login-button {
  color: #fff;
  background: var(--primary);
}

.static-register-button {
  color: var(--primary);
  background: #fff;
}

.static-announcement {
  width: max-content;
  min-width: 100%;
  padding-left: 100%;
  white-space: nowrap;
  animation: static-marquee 25s linear infinite;
}

@keyframes static-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.homebanner .slider {
  display: flex;
  transition: transform 500ms ease;
  will-change: transform;
}

.homebanner .control-dots {
  position: static;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  margin: 12px 0 0;
  overflow-x: auto;
  order: 2;
}

.homebanner .carousel-slider {
  display: flex;
  flex-direction: column;
}

.homebanner .control-dots li {
  flex: 0 0 auto;
  cursor: pointer;
}

.homebanner .control-arrow {
  display: none;
}

.static-jackpot-stage {
  position: relative;
  width: 100%;
  height: 18.5vw;
}

.static-jackpot-icon {
  position: relative;
  z-index: 20;
  height: 100%;
}

.static-jackpot-icon img {
  width: auto;
  height: 100%;
  object-fit: contain;
}

.static-jackpot-shell {
  position: absolute;
  z-index: 10;
  top: 0;
  right: 0;
  bottom: 0;
  width: 83.333333%;
  padding: 4px;
  overflow: hidden;
  background: linear-gradient(90deg, #8d4a11, #efe172, #8d4a11);
  border-radius: 12px;
}

.static-jackpot-inner {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--secondaryBackground);
  border-radius: 10px;
}

.static-jackpot-inner::before,
.static-jackpot-inner::after {
  content: "";
  position: absolute;
  z-index: 4;
  right: 12px;
  left: 25%;
  height: 8px;
  background: radial-gradient(circle, #f8f3e7 0 3px, transparent 4px) 0 0 / 27px 8px repeat-x;
  animation: jackpot-lights 1.1s steps(2, end) infinite;
}

.static-jackpot-inner::before {
  top: 5px;
}

.static-jackpot-inner::after {
  bottom: 5px;
  animation-delay: -0.55s;
}

@keyframes jackpot-lights {
  50% {
    filter: sepia(1) saturate(4);
    opacity: 0.55;
  }
}

.static-jackpot-counter {
  position: absolute;
  z-index: 5;
  top: 27%;
  right: 3%;
  bottom: 27%;
  left: 38%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: clamp(13px, calc(1vw + 1vh + 1vmin), 44px);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(0deg, #c27e1e, #efe172);
  background-clip: text;
  -webkit-background-clip: text;
  border: 2px solid #9d5b17;
  border-radius: 8px;
  box-shadow: inset 0 0 0 2px var(--background);
}

.admin-custom {
  font-size: 16px;
  line-height: 1.75;
}

.admin-custom a,
.admin-custom strong {
  color: var(--base);
}

.admin-custom .ql-size-large {
  font-size: 20px;
}

.admin-custom ul {
  padding-left: 24px;
  list-style: disc;
}

.admin-custom ol {
  padding-left: 24px;
  list-style: decimal;
}

.static-menu-backdrop {
  position: fixed;
  z-index: 2130000000;
  inset: 0;
  display: none;
  background: rgb(0 0 0 / 65%);
}

.static-menu-backdrop.is-open {
  display: block;
}

aside.static-menu-open {
  transform: translateX(0) !important;
}

@media (max-width: 1023px) {
  .homebanner .control-dots {
    margin-top: 14px;
  }
}

@media (min-width: 640px) {
  .static-jackpot-stage {
    height: 80px;
  }
}

@media (min-width: 768px) {
  .static-jackpot-stage {
    height: 11vh;
  }
}

@media (min-width: 1024px) {
  .static-jackpot-stage {
    height: 192px;
  }

  .static-jackpot-shell {
    padding: 8px;
    border-radius: 24px;
  }

  .static-jackpot-inner {
    border-radius: 20px;
  }

  .static-jackpot-counter {
    border-width: 4px;
    border-radius: 16px;
  }
}

@media (max-width: 520px) {
  .admin-custom {
    font-size: 15px;
    line-height: 1.7;
  }

  .admin-custom .ql-size-large {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .static-announcement,
  .homebanner .slider {
    animation: none;
    transition: none;
  }
}

/* =====================================================
   GMI99 FIREWORK EFFECT
   ===================================================== */

#gmi-firework-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  pointer-events: none;
  z-index: 2147483000;
}

/* Roket */
.gmi-firework-rocket {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 28px;
  color: var(--rocket-color, #ffd84a);
  transform:
    translate3d(
      var(--start-x),
      var(--start-y),
      0
    )
    rotate(var(--rotation));

  animation:
    gmi-firework-launch
    var(--duration, 2.3s)
    cubic-bezier(0.22, 0.65, 0.35, 1)
    forwards;

  filter:
    drop-shadow(0 0 8px currentColor)
    drop-shadow(0 0 18px currentColor);

  will-change: transform, opacity;
}

/* Badan roket */
.gmi-firework-rocket::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 50%;
  width: 8px;
  height: 18px;
  border-radius: 8px;
  transform: translateX(-50%);

  background:
    radial-gradient(
      circle at 30% 25%,
      #ffffff 0 8%,
      #fff2a8 18%,
      currentColor 55%,
      #bd6d00 100%
    );

  box-shadow:
    0 0 8px currentColor,
    0 0 16px currentColor;
}

/* Kepala roket */
.gmi-firework-rocket::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);

  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 8px solid currentColor;

  filter: drop-shadow(0 0 7px currentColor);
}

/* Ekor api */
.gmi-firework-trail {
  position: absolute;
  top: 19px;
  left: 50%;
  width: 6px;
  height: 40px;
  border-radius: 999px;
  transform: translateX(-50%);

  background:
    linear-gradient(
      to bottom,
      #ffffff 0%,
      #fff7a6 16%,
      currentColor 48%,
      rgba(255, 120, 0, 0.55) 72%,
      transparent 100%
    );

  filter: blur(0.4px);
  box-shadow: 0 0 10px currentColor;

  animation:
    gmi-firework-trail-flicker
    0.12s
    infinite
    alternate;
}

/* Asap roket */
.gmi-firework-smoke {
  position: absolute;
  top: 38px;
  left: 50%;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  transform: translateX(-50%);

  background:
    radial-gradient(
      circle,
      rgba(255, 245, 180, 0.7),
      rgba(255, 160, 20, 0.35) 45%,
      transparent 72%
    );

  filter: blur(1px);

  animation:
    gmi-firework-smoke-pulse
    0.22s
    infinite
    alternate;
}

/* Percikan ledakan */
.gmi-firework-spark {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--spark-size, 5px);
  height: calc(var(--spark-size, 5px) * 1.6);
  border-radius: 999px;
  color: var(--spark-color, #ffd84a);
  background: currentColor;

  box-shadow:
    0 0 5px currentColor,
    0 0 12px currentColor,
    0 0 20px currentColor;

  transform: translate3d(0, 0, 0);

  animation:
    gmi-firework-explode
    var(--spark-duration, 1.5s)
    cubic-bezier(0.15, 0.65, 0.3, 1)
    var(--spark-delay, 0s)
    forwards;

  will-change: transform, opacity;
}

@keyframes gmi-firework-launch {
  0% {
    transform:
      translate3d(
        var(--start-x),
        var(--start-y),
        0
      )
      rotate(var(--rotation));

    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform:
      translate3d(
        var(--end-x),
        var(--end-y),
        0
      )
      rotate(var(--rotation));

    opacity: 0.2;
  }
}

@keyframes gmi-firework-trail-flicker {
  from {
    height: 30px;
    opacity: 0.65;
    transform: translateX(-50%) scaleY(0.85);
  }

  to {
    height: 43px;
    opacity: 1;
    transform: translateX(-50%) scaleY(1.12);
  }
}

@keyframes gmi-firework-smoke-pulse {
  from {
    opacity: 0.25;
    transform: translateX(-50%) scale(0.75);
  }

  to {
    opacity: 0.6;
    transform: translateX(-50%) scale(1.25);
  }
}

@keyframes gmi-firework-explode {
  0% {
    transform:
      translate3d(0, 0, 0)
      rotate(var(--spark-rotation, 0deg))
      scale(1.25);

    opacity: 1;
  }

  68% {
    opacity: 1;
  }

  100% {
    transform:
      translate3d(
        var(--move-x),
        var(--move-y),
        0
      )
      rotate(var(--spark-rotation, 0deg))
      scale(0.15);

    opacity: 0;
  }
}

/* Mengurangi beban animasi jika perangkat memintanya */
@media (prefers-reduced-motion: reduce) {
  #gmi-firework-layer {
    display: none;
  }
}


/* =====================================================
   GMI99 BACKGROUND IMAGE
   ===================================================== */

body {
  position: relative;
  min-height: 100vh;
  background-color: #050505;
  isolation: isolate;
}

/* Gambar background + blur */
body::before {
  content: "";
  position: fixed;
  inset: -50px;
  z-index: -2;
  pointer-events: none;

  background-image:
    url("https://u.imggsh.com/uploads/originals/1dcbbeb6d9e31148.webp");

  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  filter: blur(2px);
  transform: scale(1.08);
}

/* Lapisan hitam 70% */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background: rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  body::before {
    inset: -20px;
    background-size: contain;
    background-position: center top;
    background-color: #050505;
    filter: blur(15px);
    transform: scale(1.03);
  }
}