/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  background-color: #ffffff;
}

/* HEADER LOGO APITOTO */
.mobile-header {
  width: 100%;
  aspect-ratio: 2.345 / 1;
  overflow: hidden;
  background-color: #000000;
}

.header-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* BANNER UTAMA */
.main-banner {
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background-color: #000000;
  border: none;
}

.main-banner-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* PANEL TOMBOL HITAM */
.action-panel {
  position: relative;
  isolation: isolate;

  width: 100%;
  padding: 10px;

  display: flex;
  align-items: center;
  gap: 8px;

  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(255, 70, 0, 0.1) 0%,
      rgba(70, 10, 0, 0.06) 38%,
      transparent 70%
    ),
    linear-gradient(
      180deg,
      #090909 0%,
      #020202 48%,
      #000000 100%
    );

  border: none;

  box-shadow:
    inset 0 5px 10px rgba(255, 70, 0, 0.05),
    inset 0 -5px 10px rgba(0, 0, 0, 0.9),
    0 3px 5px rgba(0, 0, 0, 0.3);
}

/* HILANGKAN GARIS PANJANG PANEL */
.action-panel::before,
.action-panel::after {
  content: none;
}

/* ANIMASI BINGKAI EMAS */
@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* PENGATURAN DASAR TOMBOL */
.action-button {
  position: relative;
  z-index: 2;

  width: 50%;
  min-height: 52px;
  padding: 0 10px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #c77a10;
  border-radius: 10px;

  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.6px;
  text-align: center;
  text-decoration: none;

  overflow: hidden;

  box-shadow:
    inset 0 0 4px rgba(255, 132, 0, 0.15),
    0 0 2px rgba(255, 190, 55, 0.75),
    0 0 5px rgba(255, 75, 0, 0.22);

  transition:
    transform 0.15s ease,
    filter 0.15s ease,
    box-shadow 0.15s ease;
}

/* CAHAYA HALUS DI BAGIAN ATAS TOMBOL */
.action-button::before {
  content: "";
  position: absolute;
  z-index: 1;

  top: 2px;
  right: 7px;
  left: 7px;
  height: 42%;

  border-radius: 7px;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.18),
    transparent
  );

  pointer-events: none;
}

/* KILAUAN TIPIS HANYA PADA GARIS TEPI */
.action-button::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;

  padding: 1px;
  border-radius: inherit;

  background: conic-gradient(
    from var(--border-angle),
    #6b2e00 0deg,
    #cd7600 42deg,
    #ffe49c 70deg,
    #ffffff 84deg,
    #ffd05c 98deg,
    #9a4800 145deg,
    #612900 220deg,
    #ffb31f 292deg,
    #6b2e00 360deg
  );

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;

  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;

  animation: border-shine 3s linear infinite;
  pointer-events: none;
}

@keyframes border-shine {
  to {
    --border-angle: 360deg;
  }
}

/* TOMBOL DAFTAR */
.register-button {
  color: #fff5cf;

  background: linear-gradient(
    180deg,
    #d31313 0%,
    #910000 48%,
    #4b0000 100%
  );

  text-shadow:
    0 1px 0 #5d0000,
    0 0 6px rgba(255, 221, 135, 0.65);
}

/* TOMBOL LOGIN */
.login-button {
  color: #ffd66c;

  background: linear-gradient(
    180deg,
    #303030 0%,
    #101010 48%,
    #000000 100%
  );

  text-shadow:
    0 1px 0 #000000,
    0 0 7px rgba(255, 173, 42, 0.55);
}

/* TOMBOL SAAT DITEKAN */
.action-button:active {
  transform: scale(0.97);
  filter: brightness(1.15);

  box-shadow:
    inset 0 0 8px rgba(255, 190, 55, 0.35),
    0 0 4px rgba(255, 91, 0, 0.55);
}

/* BINGKAI DI BAWAH DAFTAR DAN LOGIN */
.page-content {
  position: relative;

  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;

  overflow: hidden;

  background-color: #000000;
  background-image: url("https://i.postimg.cc/pXPzBvrW/Bingkai.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 100%;

  border: none;
  box-shadow: none;
}

/* HP ANDROID KECIL */
@media (max-width: 360px) {
  .action-panel {
    padding: 8px;
    gap: 6px;
  }

  .action-button {
    min-height: 48px;
    font-size: 16px;
    border-radius: 8px;
  }
}

/* LOGO APITOTO */
.mobile-header {
  display: block;
  width: 100%;
  background: #000;
  overflow: hidden;
}

.header-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2.345 / 1;
  object-fit: cover;
  object-position: center;
}

/* SLOGAN */
.slogan-banner {
  display: block;
  width: 100%;
  aspect-ratio: 5.8 / 1;
  overflow: hidden;
  background: #000;
}

.slogan-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* BANNER PHOENIX */
.main-banner {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: #000;
}

.main-banner-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* TOMBOL LIVE CHAT */
.livechat-button {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 9999;

  display: block;
  width: 120px;
  height: 120px;

  border-radius: 50%;
  filter: drop-shadow(0 4px 10px rgba(255, 90, 0, 0.55));

  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.livechat-button img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}

.livechat-button:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 5px 14px rgba(255, 120, 0, 0.8));
}

.livechat-button:active {
  transform: scale(0.95);
}

/* UKURAN LIVE CHAT DI HP */
@media (max-width: 600px) {
  .livechat-button {
    right: 12px;
    bottom: 14px;
    width: 120px;
    height: 120px;
  }
}

/* DUA BANNER BERSEBELAHAN */
.double-banner {
  position: relative;
  z-index: 5;

  display: grid;
  width: 100%;

  /* Tidak ada jarak di bagian atas */
  padding: 0 10px 8px;

  /* Menggeser banner mendekati tombol */
  margin-top: -3px;

  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  background-color: #000000;
}
/* KOTAK BANNER */
.small-banner {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;

  overflow: hidden;

  border: 2px solid #a96a0a;
  border-radius: 8px;

  background:
    radial-gradient(
      circle at center,
      #250700 0%,
      #080301 45%,
      #000000 100%
    );

  box-shadow:
    inset 0 0 0 1px #3d2100,
    0 0 5px rgba(255, 116, 0, 0.4);
}

/* HP KECIL */
@media (max-width: 360px) {
  .double-banner {
    padding: 7px 8px;
    gap: 6px;
  }

  .small-banner {
    border-radius: 6px;
  }
}

/* PERSIAPAN KILAUAN BANNER */
.small-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* CAHAYA HALUS DI BAGIAN ATAS */
.small-banner::before {
  content: "";

  position: absolute;
  z-index: 2;

  top: 2px;
  right: 7px;
  left: 7px;
  height: 38%;

  border-radius: 6px;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.14),
    transparent
  );

  pointer-events: none;
}

/* KILAUAN EMAS BERJALAN PADA GARIS BINGKAI */
.small-banner::after {
  content: "";

  position: absolute;
  z-index: 4;
  inset: 0;

  padding: 2px;
  border-radius: inherit;

  background: conic-gradient(
    from var(--border-angle),
    #6b2e00 0deg,
    #cd7600 42deg,
    #ffe49c 70deg,
    #ffffff 84deg,
    #ffd05c 98deg,
    #9a4800 145deg,
    #612900 220deg,
    #ffb31f 292deg,
    #6b2e00 360deg
  );

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);

  -webkit-mask-composite: xor;

  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);

  mask-composite: exclude;

  /* Lebih lambat dan halus */
  animation: banner-border-shine 5s linear infinite;

  pointer-events: none;
}

/* GAMBAR TETAP DI BAWAH EFEK CAHAYA */
.small-banner img {
  position: relative;
  z-index: 1;
}

/* ANIMASI KILAUAN */
@keyframes banner-border-shine {
  from {
    --border-angle: 0deg;
  }

  to {
    --border-angle: 360deg;
  }
}

/* BINGKAI BANNER SANGAT TIPIS */
.small-banner {
  /* Hilangkan bingkai tebal yang lama */
  border: none;

  box-shadow:
    0 0 2px rgba(255, 153, 0, 0.35);
}

/* TIPISKAN GARIS KILAUAN */
.small-banner::after {
  /* Ketebalan garis hanya 1px */
  padding: 1px;

  border-radius: inherit;

  background: conic-gradient(
    from var(--border-angle),
    #6b2e00 0deg,
    #b96700 42deg,
    #ffd875 70deg,
    #fff6d6 84deg,
    #e6a428 98deg,
    #864000 145deg,
    #4b2200 220deg,
    #d68a10 292deg,
    #6b2e00 360deg
  );

  animation:
    banner-border-shine 6s linear infinite;
}

/* BINGKAI DAFTAR DAN LOGIN SANGAT TIPIS */
.action-button {
  /* Hilangkan bingkai tebal bawaan */
  border: none;

  box-shadow:
    0 0 2px rgba(255, 153, 0, 0.35);

  isolation: isolate;
}

/* KILAUAN TIPIS SAMA DENGAN BANNER */
.action-button::after {
  content: "";

  position: absolute;
  z-index: 4;
  inset: 0;

  /* Ketebalan bingkai */
  padding: 1px;

  border-radius: inherit;

  background: conic-gradient(
    from var(--border-angle),
    #6b2e00 0deg,
    #b96700 42deg,
    #ffd875 70deg,
    #fff6d6 84deg,
    #e6a428 98deg,
    #864000 145deg,
    #4b2200 220deg,
    #d68a10 292deg,
    #6b2e00 360deg
  );

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);

  -webkit-mask-composite: xor;

  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);

  mask-composite: exclude;

  animation:
    border-shine 6s linear infinite;

  pointer-events: none;
}

.naga-banner {
  width: 100%;
  overflow: hidden;
  background: #000;
}

.naga-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* BANNER NAGA */
.naga-banner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;

  /* supaya ukuran teks bisa mengikuti lebar banner */
  container-type: inline-size;
}


/* RTP LIVE */
.naga-banner .rtp-live-text {
  position: absolute;

  /* posisi mengikuti ukuran banner */
  top: 8%;
  right: 14%;

  z-index: 999;

  display: flex;
  align-items: center;

  /* jarak ikut ukuran banner */
  gap: 1.5cqw;

  margin: 0;
  padding: 0;

  white-space: nowrap;

  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;

  /* OTOMATIS MEMBESAR / MENGECIL */
  font-size: clamp(10px, 5cqw, 18px);

  color: #fa0303;

  text-shadow:
    0 1px 2px #000,
    0 0 5px #ff7a00,
    0 0 8px rgba(255, 122, 0, 0.8);

  pointer-events: none;
}


/* TITIK HIJAU */
.naga-banner .rtp-dot {
  display: inline-block;

  /* TITIK JUGA IKUT MEMBESAR / MENGECIL */
  width: clamp(5px, 2.3cqw, 9px);
  height: clamp(5px, 2.3cqw, 9px);

  flex-shrink: 0;

  border-radius: 50%;

  background: #39ff14;

  box-shadow:
    0 0 4px #39ff14,
    0 0 8px #39ff14;

  animation: lampuRTP 1s ease-in-out infinite;
}


@keyframes lampuRTP {
  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}


/* TITIK LAMPU HIJAU */
.rtp-dot {
  width: 9px;
  height: 9px;

  display: inline-block;
  flex-shrink: 0;

  border-radius: 50%;

  background: #39ff14;

  box-shadow:
    0 0 5px #39ff14,
    0 0 10px #39ff14,
    0 0 15px rgba(57, 255, 20, 0.8);

  animation: rtpLampu 1.2s ease-in-out infinite;
}


/* EFEK LAMPU BERKEDIP */
@keyframes rtpLampu {

  0%,
  100% {
    opacity: 0.45;
  }

  50% {
    opacity: 1;
  }

}

/* =====================================================
   RTP PREMIUM - MODEL SEPERTI GAMBAR CONTOH
===================================================== */

.rtp-premium-banner {
  position: relative;

  width: 100%;
  height: 100%;

  overflow: hidden;

  container-type: inline-size;

  background: #000;
}


/* =====================================================
   GAMBAR NAGA JADI BACKGROUND PENUH
===================================================== */

.rtp-dragon-bg {
  position: absolute !important;

  inset: 0;

  z-index: 1 !important;

  width: 100% !important;
  height: 100% !important;

  display: block;

  object-fit: cover;

  object-position: center;
}


/* =====================================================
   PANEL RTP KANAN
===================================================== */

.rtp-premium-panel {
  position: absolute;

  top: 9%;
  right: 3%;

  z-index: 10;

  width: 50%;
  height: 82%;

  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  padding:
    3.5cqw
    4cqw;

  border:
    1px solid
    rgba(207, 143, 43, 0.55);

  border-radius:
    5cqw;

  background:
    linear-gradient(
      180deg,
      rgba(10, 10, 10, 0.78),
      rgba(0, 0, 0, 0.88)
    );

  box-shadow:
    inset 0 0 12px
    rgba(255, 160, 20, 0.04),
    0 0 10px
    rgba(0, 0, 0, 0.55);

  backdrop-filter:
    blur(1px);
}


/* =====================================================
   RTP LIVE
===================================================== */

.rtp-premium-title {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 1.5cqw;

  padding: 1cqw 2cqw;

  border-radius: 2.2cqw;

  overflow: hidden;

  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
  font-size: 5.5cqw;

  line-height: 1;
  white-space: nowrap;

  color: #f80303;

  /* kaca gelap transparan */
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.05) 22%,
    rgba(0, 0, 0, 0.22) 55%,
    rgba(0, 0, 0, 0.38) 100%
  );

  border: 0.6px solid rgba(255, 215, 110, 0.35);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28),
    0 0 1.2cqw rgba(0, 0, 0, 0.35);

  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);

  text-shadow:
    0 0.3cqw 0.3cqw #000,
    0 0 1.2cqw rgba(255, 153, 0, 0.85);
}

.rtp-premium-title::before {
  content: "";

  position: absolute;

  top: 0;
  left: 8%;
  right: 8%;

  height: 48%;

  border-radius: 999px;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.28),
    rgba(255, 255, 255, 0.10),
    transparent
  );

  pointer-events: none;
}

.rtp-premium-title::after {
  content: "";

  position: absolute;

  left: 12%;
  right: 12%;
  bottom: 0.35cqw;

  height: 0.4px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 215, 120, 0.45),
    transparent
  );

  pointer-events: none;
}

/* =====================================================
   TITIK HIJAU
===================================================== */

.rtp-premium-title .rtp-dot {
  display: inline-block;

  width:
    clamp(
      5px,
      2.6cqw,
      10px
    );

  height:
    clamp(
      5px,
      2.6cqw,
      10px
    );

  flex-shrink: 0;

  border-radius: 50%;

  background:
    #39ff14;

  box-shadow:
    0 0 4px #39ff14,
    0 0 8px #39ff14,
    0 0 13px
    rgba(57, 255, 20, 0.7);

  animation:
    rtpPremiumLamp
    1.1s
    ease-in-out
    infinite;
}


@keyframes rtpPremiumLamp {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }

}


/* =====================================================
   PERSENTASE
===================================================== */

.rtp-premium-label {
  width: 90%;

  margin-top:
    3cqw;

  display: grid;

  grid-template-columns:
    1fr auto 1fr;

  align-items: center;

  gap:
    1.8cqw;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(
      6px,
      2.7cqw,
      10px
    );

  color:
    #d9aa45;

  letter-spacing:
    0.08em;

  white-space:
    nowrap;
}


.rtp-premium-label b {
  display: inline-block;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.2cqw;
  font-weight: 900;

  letter-spacing: 0.08em;
  white-space: nowrap;

  margin-left: -2cqw;

  /* CAHAYA DI ATAS + EMAS DI BAWAH */
  background-image:
    radial-gradient(
      ellipse at center,
      rgba(255, 255, 235, 0.75) 0%,
      rgba(255, 235, 155, 0.45) 25%,
      rgba(255, 195, 65, 0.18) 50%,
      transparent 75%
    ),
    linear-gradient(
      180deg,
      #fff4a8 0%,
      #ffd65a 30%,
      #c77a0a 55%,
      #ffe785 76%,
      #9b5000 100%
    );

  background-size:
    80% 180%,
    100% 100%;

  background-repeat: no-repeat;

  background-position:
    -250% center,
    center;

  -webkit-background-clip: text;
  background-clip: text;

  -webkit-text-fill-color: transparent;

  /* TIMBUL */
  filter:
    drop-shadow(0 0.18cqw 0 #7a3d00)
    drop-shadow(0 0.35cqw 0 #451b00)
    drop-shadow(0 0.55cqw 0 #251000)
    drop-shadow(0 0 0.8cqw rgba(255, 177, 30, 0.40));

  animation: mahjongGlowSweep 3.5s ease-in-out infinite;
}


@keyframes mahjongGlowSweep {

  0% {
    background-position:
      -250% center,
      center;
  }

  55% {
    background-position:
      50% center,
      center;
  }

  100% {
    background-position:
      350% center,
      center;
  }
}




.rtp-premium-label span {
  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      #b77817
    );
}


.rtp-premium-label span:last-child {
  background:
    linear-gradient(
      90deg,
      #b77817,
      transparent
    );
}


/* =====================================================
   ANGKA 90%
===================================================== */

.rtp-premium-panel #rtpValue {
  display: block;

  margin-top:
    1cqw;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

    font-size: 11cqw;
    clamp(
      20px,
      11cqw,
      52px
    );

  font-weight: 900;

  line-height: 1;

  color:
    #39ff14;

  text-shadow:
    0 0 4px #39ff14,
    0 0 8px
    rgba(57, 255, 20, 0.8),
    0 0 15px
    rgba(57, 255, 20, 0.35);
}


/* =====================================================
   BAR LUAR
===================================================== */

.rtp-premium-progress {
  width: 100%;

  height:
    clamp(
      9px,
      3.2cqw,
      9px
    );

  margin-top:
    2.6cqw;

  padding: 1px;

  overflow: hidden;

  border:
    1px solid
    #a97018;

  border-radius:
    999px;

  background:
    #111;

  box-shadow:
    inset 0 2px 5px
    rgba(0,0,0,0.9),
    0 0 5px
    rgba(255,150,0,0.2);
}


/* =====================================================
   BAR WARNA
===================================================== */

.rtp-premium-progress-bar {
  position: relative;

  height: 100%;

  border-radius:
    inherit;

  background:
    linear-gradient(
      90deg,

      #ff1f00 0%,

      #ff6700 22%,

      #ffc400 48%,

      #b4f600 72%,

      #26e96c 100%
    );

  box-shadow:
    0 0 6px
    rgba(57,255,20,0.5);

  transition:
    width 0.8s ease;
}


/* GLOSSY */

.rtp-premium-progress-bar::after {
  content: "";

  position: absolute;

  inset: 0;

  border-radius:
    inherit;

  background:
    linear-gradient(
      180deg,

      rgba(255,255,255,0.42),

      rgba(255,255,255,0.08) 50%,

      transparent 55%
    );
}


/* =====================================================
   ANGKA 0 - 100
===================================================== */

.rtp-scale {
  width: 92%;

  margin-top:
    1.2cqw;

  display: flex;

  justify-content:
    space-between;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 2.5cqw;
    clamp(
      10px,
      2.5cqw,
      8px
    );

  color:
    #d7a640;
}