body {
  overflow-x: hidden;
}

/* Animasi Elegan Background */
@keyframes subtleBackground {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animated-bg {
  background: linear-gradient(-45deg, #f4f7f8, #eaf5f8, #e1e8eb, #f4f7f8);
  background-size: 400% 400%;
  animation: subtleBackground 12s ease infinite;
}

.step-card {
  display: none;
  animation: slideInRight 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.step-card.active {
  display: flex;
  flex-direction: column;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(25px) scale(0.98); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.kahoot-input {
  border-radius: 8px;
  border: 2px solid #e1e8eb;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 600;
  background-color: #fcfdfd;
  color: #16232b;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
  transition: all 0.3s ease;
}

.kahoot-input:focus {
  border-color: #14a2ba;
  background-color: #ffffff;
  outline: none;
  box-shadow: 0 0 0 4px rgba(20, 162, 186, 0.1);
}

.kahoot-input::placeholder {
  color: #94a5ad;
  font-weight: 400;
}

.btn-kahoot {
  font-weight: 700;
  padding: 14px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 4px solid rgba(0,0,0,0.2);
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-kahoot:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-kahoot:active:not(:disabled) {
  transform: translateY(4px);
  border-bottom-width: 0px;
  margin-bottom: 4px;
}

.btn-kahoot:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.success-checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

.check-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2.5;
  stroke-miterlimit: 10;
  stroke: #22c55e;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.check-path {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke-width: 3;
  stroke: #22c55e;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke {
  100% { stroke-dashoffset: 0; }
}

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.5); }
  70% { transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
}

.animate-pop {
  animation: popIn 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}