:root {
  --primary-red: #ff3b3b;
  --accent-gold: #ffca28;
  --dark-bg: #0f0f0f;
}

body {
  background: var(--dark-bg);
  color: #fff;
  font-family: var(--pdikm-font-body);
  overflow: hidden;
  margin: 0;
}

.adventure-wrapper {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.9) 100%),
    url('/assets/img/pdikm/bgpdikm.jpg'); /* Pastikan path gambar benar */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  position: relative;
  box-sizing: border-box;
}

.btn-skip {
  position: absolute;
  top: 25px;
  right: 20px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: bold;
  z-index: 20;
}

/* Top HUD */
.game-header {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 20px;
  z-index: 10;
}

.badge-level {
  font-family: var(--pdikm-font-display);
  font-size: 0.85rem;
  background: rgba(255, 59, 59, 0.2);
  border: 2px solid var(--primary-red);
  padding: 10px 20px;
  border-radius: 50px;
  color: var(--primary-red);
  text-shadow: 0 0 10px rgba(255, 59, 59, 0.5);
  letter-spacing: 2px;
}

.referral-header {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 5px;
  z-index: 10;
}

.referral-level {
  font-family: var(--pdikm-font-display);
  font-size: 0.85rem;
  background: rgba(255, 59, 59, 0.2);
  border: 2px solid var(--primary-red);
  padding: 5px 5px;
  border-radius: 50px;
  color: var(--primary-red);
  text-shadow: 0 0 10px rgba(255, 59, 59, 0.5);
  letter-spacing: 2px;
}

/* Avatar Fixed di Tengah */
.character-avatar {
  width: 140px;
  height: 140px;
  margin-top: 10px;
  margin-bottom: -30px;
  z-index: 15;
  pointer-events: none;
  /* Agar tidak menghalangi swipe pada area box */
}

.character-avatar img {
  width: 100%;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
}

/* Avatar Fixed di Tengah */
.start-avatar {
  width: 270px;
  height: 100px;
  margin-top: 10px;
  margin-bottom: 0px;
  z-index: 15;
  pointer-events: none;
  /* Agar tidak menghalangi swipe pada area box */
}

.start-avatar img {
  width: 100%;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
}

/* Swiper Styling */
.swiper {
  width: 100%;
  max-width: 450px;
  height: auto;
  z-index: 5;
}

.swiper-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  opacity: 0.4;
  transition: opacity 0.3s;
}

.swiper-slide-active {
  opacity: 1;
}

.text-box {
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--primary-red);
  border-radius: 20px;
  padding: 40px 25px 30px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  position: relative;
}

.text-box::before {
  content: 'GUIDE';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-red);
  font-size: 0.6rem;
  padding: 3px 15px;
  border-radius: 5px;
  font-weight: 900;
}

.slide-image {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  object-fit: contain;
}

.slide-text {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

/* Footer Controls */
.game-footer {
  width: 100%;
  z-index: 10;
}

/* btn-adventure / btn-scan → public/assets/css/pdikm/eticket-buttons.css */

/* Swiper Pagination Custom */
.swiper-pagination-bullet {
  background: #fff !important;
  opacity: 0.3;
}

.swiper-pagination-bullet-active {
  background: var(--primary-red) !important;
  opacity: 1;
  width: 20px !important;
  border-radius: 5px !important;
}

.floating-anim {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}
