* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
  }

  /* --- Latar belakang statis --- */
  body {
    background: url("https://188.166.251.201/uploads/luck365/Lovepik_com-401103802-illustration-festival-background1.webp") no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    overflow-x: hidden;
  }

  /* Lapisan overlay gelap agar teks tetap jelas */
  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 82, 68, 0);
    /* hijau gelap transparan */
    z-index: 0;
  }

  /* Semua konten di atas overlay */
  .container,
  .footer-menu,
  .falling-item {
    position: relative;
    z-index: 5;
  }

  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 10px 0 100px;
    padding-bottom: 250px; /* biar gak ketutup footer fixed */
  }

  /* --- Tombol Gambar di Awal --- */
  .top-button {
    margin-bottom: 15px;
  }

  .top-button img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
  }

  .top-button img:hover {
    transform: scale(1.05);
  }

  .bottomm-button {
    margin-bottom: 15px;
  }

  .bottom-button img {
    width: 120px;
    height: 70px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
  }

  .bottom-button img:hover {
    transform: scale(1.05);
  }

  .logo {
    width: 200px;
    height: auto;
    margin: 20px 0;
  }

  /* --- Carousel --- */
  .carousel {
    position: relative;
    width: 300px;
    height: 180px;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  }

  .carousel img {
    width: 100%;
    object-fit: fill;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
  }

  .carousel img.active {
    opacity: 1;
  }

  /* --- Tombol navigasi carousel --- */
  .carousel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: white;
    font-size: 20px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
    z-index: 10;
  }

  .carousel button:hover {
    background: rgba(0, 0, 0, 0.7);
  }

  .prev {
    left: 10px;
  }

  .next {
    right: 10px;
  }

  /* --- Tombol menu utama --- */
  .buttons {
    display: flex;
    flex-direction: column;
    width: 80%;
    margin-top: 35px;
    margin-bottom: 80px;
  }

  .buttons a {
    text-decoration: none;
    text-align: center;
    padding: 15px;
    margin: 6px 0;
    background-color: rgba(64, 135, 107, 0.333);
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.3s;
  }

  .buttons a:hover {
    background-color: #22c55e;
    color: #000;
  }

  /* --- Menu bawah statis --- */
  .footer-menu {
    position: fixed;
    bottom: -5px;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 5px 0;
    border-top: 2px solid #22c55e;
    backdrop-filter: blur(5px);
    z-index: 20;
  }

  .footer-menu a {
    color: white;
    text-decoration: none;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s;
  }

  .footer-menu a:hover {
    transform: scale(1.1);
    color: #22c55e;
  }

  .footer-menu span {
    font-size: 18px;
    margin-bottom: -2px;
  }

  /* --- Efek Halloween --- */
  .falling-item {
    position: fixed;
    top: -50px;
    pointer-events: none;
    z-index: 2;
    animation: fall linear forwards;
  }

  @keyframes fall {
    from {
      transform: translateY(0) rotate(0deg);
      opacity: 1;
    }

    to {
      transform: translateY(110vh) rotate(360deg);
      opacity: 0;
    }
  }

  .three-columns {
      display: flex;
      gap: 20px;
      width: 82%;
      margin: 1em 1em;
  }

  .column {
      flex: 1;
      background-color: rgba(255, 255, 255, 0.1);
      border-radius: 10px;
      width: 50%;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
      margin: 1em;
  }

  .column h3 {
      text-align: center;
      margin-bottom: 15px;
      padding-bottom: 10px;
      border-bottom: 2px solid #fdbb2d;
      color: #fdbb2d;
  }

  .winners-list {
      list-style-type: none;
      overflow-y: visible;
  }

  .winners-list li {
      padding: 12px 15px;
      margin-bottom: 10px;
      background-color: rgba(255, 255, 255, 0.1);
      border-radius: 8px;
      display: flex;
      align-items: center;
      transition: transform 0.3s, background-color 0.3s;
  }

  .winners-list li:hover {
      transform: translateX(5px);
      background-color: rgba(253, 187, 45, 0.2);
  }

  .winner-number {
      display: inline-block;
      width: 30px;
      height: 30px;
      background-color: #fdbb2d;
      color: #1a2a6c;
      border-radius: 50%;
      text-align: center;
      line-height: 30px;
      font-weight: bold;
      margin-right: 10px;
  }

  .prize-clips {
      display: flex;
      flex-direction: column;
      gap: 15px;
  }

  .video-placeholder {
      width: 100%;
      height: 150px;
      background-color: rgba(0, 0, 0, 0.5);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fdbb2d;
      font-weight: bold;
      position: relative;
      overflow: hidden;
  }

  .video-placeholder::before {
      content: "▶";
      font-size: 40px;
      position: absolute;
      opacity: 0.7;
  }

  .prizes-list {
      list-style-type: none;
  }

  .prizes-list li {
      padding: 15px;
      margin-bottom: 10px;
      background-color: rgba(255, 255, 255, 0.1);
      border-radius: 8px;
      display: flex;
      align-items: center;
      transition: transform 0.3s, background-color 0.3s;
  }

  .prizes-list li:hover {
      transform: translateX(5px);
      background-color: rgba(253, 187, 45, 0.2);
  }

  .prize-icon {
      display: inline-block;
      width: 40px;
      height: 40px;
      background-color: #fdbb2d;
      color: #1a2a6c;
      border-radius: 50%;
      text-align: center;
      line-height: 40px;
      font-weight: bold;
      margin-right: 15px;
      font-size: 18px;
  }

  .buttons {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 15px;
      margin-top: 30px;
  }

  /* --- Menu bawah statis --- */
  .footer-menu {
    position: fixed;
    bottom: -5px;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 5px 0;
    border-top: 2px solid #22c55e;
    backdrop-filter: blur(5px);
    z-index: 20;
  }

  .footer-menu a {
    color: white;
    text-decoration: none;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s;
  }

  .footer-menu a:hover {
    transform: scale(1.1);
    color: #22c55e;
  }

  .footer-menu span {
    font-size: 18px;
    margin-bottom: -2px;
  }

  @keyframes fall {
    from {
      transform: translateY(0) rotate(0deg);
      opacity: 1;
    }

    to {
      transform: translateY(110vh) rotate(360deg);
      opacity: 0;
    }
  }

  @media(max-width: 500px) {
    .logo {
      width: 229px;
      margin-top: 20px;
    }

    .carousel {
      width: 280px;
      height: 160px;
    }

    .top-button img {
      width: 100%;
    }

    .buttons {
      width: 300px;
    }

    .footer-menu span {
      font-size: 40px;
    }

    .footer-menu a {
      font-size: 15px;
    }
  }

  /* Responsivitas untuk layar handphone */
@media (max-width: 768px) {
    .three-columns {
        flex-direction: column;
        width: 95%;
        gap: 10px;
    }
    
    .column {
        width: 100%;
        margin: 0.5em 0;
    }
    
    .buttons {
        width: 95%;
        grid-template-columns: 1fr;
    }
    
    .carousel {
        width: 80%;
        height: 160px;
    }
    
    .logo {
        width: 180px;
    }
    
    .footer-menu a {
        font-size: 10px;
    }
    
    .footer-menu span {
        font-size: 16px;
    }
}

/* Untuk layar sangat kecil (iPhone SE dll) */
@media (max-width: 375px) {
    .container {
        padding: 5px 0 80px;
    }
    
    .logo {
        width: 150px;
        margin: 10px 0;
    }
    
    .carousel {
        height: 150px;
    }
    
    .buttons a {
        padding: 12px;
        font-size: 14px;
    }
    
    .footer-menu {
        padding: 3px 0;
    }
}

/* Perbaikan untuk elemen daftar pemenang di mobile */
.winners-list li, .prizes-list li {
    padding: 10px;
    font-size: 14px;
}

.winner-number, .prize-icon {
    width: 25px;
    height: 25px;
    line-height: 25px;
    font-size: 14px;
}

/* --- Sistem Tab untuk Mobile --- */
.tab-system {
  display: none; /* Sembunyikan di desktop */
}

.tab-buttons {
  display: flex;
  width: 100%;
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.tab-btn {
  flex: 1;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  font-size: 14px;
}

.tab-btn.active {
  background: #22c55e;
  color: #000;
}

.tab-btn:not(.active):hover {
  background: rgba(255, 255, 255, 0.2);
}

.tab-content {
  display: none;
  width: 100%;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tampilkan tab system hanya di mobile */
@media (max-width: 768px) {
  .tab-system {
      display: block;
      width: 95%;
      margin: 0 auto;
  }
  
  .three-columns {
      display: none; /* Sembunyikan layout desktop di mobile */
  }
  
  /* Style untuk konten tab */
  .tab-column {
      background: rgba(255, 255, 255, 0.1);
      border-radius: 10px;
      padding: 15px;
      margin-bottom: 15px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }
  
  .tab-column h3 {
      text-align: center;
      margin-bottom: 15px;
      padding-bottom: 10px;
      border-bottom: 2px solid #fdbb2d;
      color: #fdbb2d;
  }
}

/* Untuk layar sangat kecil */
@media (max-width: 375px) {
  .tab-btn {
      padding: 12px 8px;
      font-size: 12px;
  }
  
  .tab-column {
      padding: 10px;
  }
}

/* Additional styles for guide page */
.guide-section {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.guide-section h3 {
  color: #fdbb2d;
  margin-bottom: 15px;
  border-bottom: 2px solid #fdbb2d;
  padding-bottom: 10px;
}

.step-list {
  list-style-type: none;
  counter-reset: step-counter;
}

.step-list li {
  counter-increment: step-counter;
  margin-bottom: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border-left: 4px solid #22c55e;
}

.step-list li::before {
  content: "Langkah " counter(step-counter);
  display: block;
  font-weight: bold;
  color: #fdbb2d;
  margin-bottom: 5px;
  font-size: 14px;
}

.rules-list {
  list-style-type: none;
}

.rules-list li {
  margin-bottom: 10px;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
}

.rules-list li::before {
  content: "✓";
  color: #22c55e;
  font-weight: bold;
  margin-right: 10px;
  font-size: 16px;
}

.warning-box {
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 15px;
  margin: 15px 0;
}

.warning-box h4 {
  color: #fecaca;
  margin-bottom: 10px;
}

.info-box {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid #93c5fd;
  border-radius: 10px;
  padding: 15px;
  margin: 15px 0;
}

.info-box h4 {
  color: #93c5fd;
  margin-bottom: 10px;
}

.contact-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 15px;
}

.contact-link {
  display: flex;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
}

.contact-link:hover {
  background: #22c55e;
  color: #000;
  transform: translateY(-2px);
}

.contact-link img {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

/* Tab content khusus untuk panduan */
.tab-guide-content {
  display: none;
}

.tab-guide-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

/* Responsive untuk panduan */
@media (max-width: 768px) {
  .guide-section {
      padding: 15px;
      margin-bottom: 15px;
  }
  
  .step-list li {
      padding: 12px;
      font-size: 14px;
  }
  
  .contact-links {
      grid-template-columns: 1fr;
  }
  
  .contact-link {
      padding: 10px;
      font-size: 14px;
  }
}

@media (max-width: 480px) {
  .tab-buttons {
      flex-direction: column;
  }
  
  .tab-btn {
      border-radius: 0;
  }
  
  .tab-btn:first-child {
      border-radius: 10px 10px 0 0;
  }
  
  .tab-btn:last-child {
      border-radius: 0 0 10px 10px;
  }
}

  #miniMusicPlayer {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    font-family: "Poppins", sans-serif;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
  }

  #miniMusicPlayer button {
    background: #ff8800;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
  }

  #miniMusicPlayer button:hover {
    background: #ffaa33;
  }

  #miniMusicPlayer .title {
    font-size: 14px;
    font-weight: 500;
  }