body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: #111;
  background-size: cover;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.container {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 0 20px 40px 20px;
  background: rgba(30, 30, 30, 0.75);
  border-radius: 22px;
  box-shadow: 0 8px 32px #0006;
  margin-top: 32px;
  margin-bottom: 20px;
}

.judul {
  text-align: center;
  font-size: 2.3em;
  font-weight: bold;
  margin-top: 32px;
  margin-bottom: 30px;
  color: #FFD700;
  text-shadow: 4px 4px 8px #000, 0 2px 0 #fff8;
  letter-spacing: 2px;
  line-height: 1.2;
}

.kotak-container {
  display: grid;
  grid-template-columns: repeat(3, 96px);
  grid-gap: 16px;
  justify-content: center;
  margin-bottom: 36px;
}

.kotak {
  width: 96px;
  height: 96px;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
  filter: drop-shadow(0 2px 10px #0008);
  background: none;
  border: none;
  padding: 0;
  outline: none;
}

.kotak:hover {
  transform: scale(1.07) rotate(-2deg);
  box-shadow: 0 0 16px #FFD70088;
  filter: brightness(1.08) drop-shadow(0 4px 16px #FFD70088);
}

.form-area {
  margin-top: 16px;
  text-align: center;
}

label {
  font-size: 1.12em;
  color: #fff;
  margin-bottom: 8px;
  display: block;
  font-weight: 500;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px #0008;
}

input[type="text"] {
  padding: 13px;
  border-radius: 8px;
  border: none;
  font-size: 1.1em;
  width: 84%;
  margin-bottom: 22px;
  margin-top: 6px;
  box-shadow: 0 2px 10px #0003;
  text-align: center;
  background: #fff;
  color: #222;
  outline: none;
}

.btn {
  display: block;
  width: 92%;
  margin: 12px auto;
  padding: 14px 0;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #FFB300, #FF6F00 90%);
  color: #fff;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 3px 10px #0005;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 1px;
}

.btn:hover {
  background: linear-gradient(90deg, #FF6F00, #FFB300 90%);
  transform: scale(1.03);
  box-shadow: 0 5px 12px #0009;
}

#result,
#hadiah-list {
  margin: 20px auto 0 auto;
  font-size: 1.1em;
  color: #FFD700;
  text-shadow: 1px 1px 4px #000;
  min-height: 22px;
  text-align: center;
}

.ornamen {
  width: 100%;
  max-width: 600px;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: -1;
}

@media (max-width: 500px) {
  .ornamen {
    max-width: 90vw;
  }

  .judul {
    font-size: 2em;
    margin-bottom: 28px;
    margin-top: 24px;
  }

  .kotak-container {
    grid-template-columns: repeat(3, 76px);
    grid-gap: 12px;
    margin-bottom: 32px;
  }

  .kotak {
    width: 76px;
    height: 76px;
  }

  .container {
    max-width: 98vw;
    padding: 0 4vw 32px 4vw;
    margin-top: 24px;
  }

  input[type="text"] {
    width: 80%;
    padding: 10px;
    font-size: 1em;
  }

  .btn {
    width: 90%;
    padding: 12px 0;
    font-size: 1em;
  }

  #result,
  #hadiah-list {
    font-size: 1em;
  }
}

/* Modal CSS (jika belum ada di style-user.css) */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: #222;
  margin: 10% auto;
  padding: 20px;
  border-radius: 12px;
  width: 320px;
  color: #FFD700;
  position: relative;
  box-shadow: 0 8px 32px #000a;
  font-size: 1.2em;
  text-align: center;
}

.close {
  color: #FFD700;
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #ffb300;
}

#popupBody img {
  max-width: 100%;
  border-radius: 10px;
  margin-top: 12px;
  box-shadow: 0 4px 12px #0008;
}