body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #fff5f0;
  color: #b30000;
}

.hero {
  background-color: #d60000;
  color: white;
  text-align: center;
  padding: 40px 20px;
  background-image: radial-gradient(
    circle at 10% 10%,
    #ffcccb 1px,
    transparent 1px
  );
  background-size: 20px 20px;
  position: relative;
}

.firework {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid #ffcc66;
}

.firework.left {
  top: 10px;
  left: 20px;
}
.firework.right {
  top: 10px;
  right: 20px;
}

.border-triangle {
  background: repeating-linear-gradient(
    90deg,
    #d62828 0 15px,
    transparent 15px 30px
  );
  height: 12px;
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
}

.upcoming {
  text-align: center;
  padding: 30px 20px;
  background-color: #fff5f0;
}

.event-box {
  background: white;
  padding: 15px 20px;
  border-radius: 12px;
  display: inline-block;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: calc(100% - 40px);
  max-width: 980px;
  box-sizing: border-box;
  margin: 0 auto;
}

.event-title {
  font-size: 18px;
  font-weight: bold;
}
.event-time {
  font-size: 14px;
  color: #a33;
}

.countdown {
  background-color: #d62828;
  color: white;
  text-align: center;
  padding: 20px;
}

.count-item {
  display: inline-block;
  margin: 0 15px;
}
.count-number {
  font-size: 28px;
  font-weight: bold;
}
.count-label {
  font-size: 14px;
}

/* Kardus hover */
.kardus-hover {
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.kardus-hover:hover {
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.25),
    0 1.5px 8px rgba(255, 215, 0, 0.15);
  background: rgba(255, 255, 255, 0.07);
}

.kardus-hover:hover img {
  filter: drop-shadow(0 0 10px gold) brightness(1.2);
}

@keyframes popHadiah {
  0% {
    transform: scale(0.5) rotate(-30deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.2) rotate(10deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes popText {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  70% {
    transform: scale(1.15);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spinGlow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.tap-flash {
  animation: tapFlash 0.3s;
}

@keyframes tapFlash {
  0% {
    background: rgba(255, 255, 0, 0.25);
  }
  100% {
    background: transparent;
  }
}

/* ========== Responsiveness additions ========== */

#menu1,
#menu2,
#menu3 {
  box-sizing: border-box;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  padding: 12px;
}

.-w-300 {
  max-width: 100%;
  width: 100%;
}
.w-200 {
  max-width: 100%;
  width: 100%;
  height: auto;
}
.w-100 {
  width: 100%;
  max-width: 100%;
}

.video-kardus {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
  object-fit: cover;
}

.tap-kardus-buka {
  position: relative;
  background: url("/assets/image/kardus/sinar.png") center center/contain
    no-repeat;
  object-fit: contain;
  border-radius: 10px;
  margin: 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 250px;
  height: 250px;
  overflow: hidden;
}

.tap-kardus-buka-glow {
  position: absolute;
  left: -30px;
  top: -30px;
  width: 310px;
  height: 310px;
  z-index: 0;
  opacity: 0.5;
  animation: spinGlow 2s linear infinite;
  pointer-events: none;
}

.hadiah-preview {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 10px auto;
}

.hadiah-bg {
  position: absolute;
  left: -50px;
  top: -50px;
  width: 320px;
  height: 320px;
  z-index: 0;
  opacity: 0.7;
  animation: spinGlow 2s linear infinite;
  pointer-events: none;
}

.hadiah-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  position: relative;
  z-index: 1;
  animation: popHadiah 1s;
  display: block;
}

.hadiah-confetti {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.8;
}

/* Scrollable list adjustments */
.scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Mobile first tweaks */
@media (max-width: 600px) {
  #menu1,
  #menu2,
  #menu3 {
    max-width: 95vw;
    padding: 10px;
  }
  .video-kardus {
    max-height: 240px;
  }
  .tap-kardus-buka {
    width: 72vw;
    height: 72vw;
    max-width: 320px;
    max-height: 320px;
  }
  .hadiah-preview {
    width: 66vw;
    height: 66vw;
    max-width: 280px;
    max-height: 280px;
  }
  .count-number {
    font-size: 22px;
  }
  .event-box {
    padding: 12px;
  }
}

/* Desktop / larger screens fine tune */
@media (min-width: 601px) {
  #menu1,
  #menu2,
  #menu3 {
    max-width: 340px;
  }
  .video-kardus {
    max-width: 420px;
    min-height: max-content;
  }
  .tap-kardus-buka {
    width: 250px;
    height: 250px;
  }
  .hadiah-preview {
    width: 220px;
    height: 220px;
  }
}

/* Small accessibility/visual improvements */
.kardus-hover img,
.hadiah-img {
  transition: transform 0.25s ease, filter 0.25s ease;
}

.kardus-hover:active {
  transform: scale(0.98);
}
