body {
  overflow-x: hidden;
}

@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: 283;
  stroke-dashoffset: 283;
  stroke-width: 4;
  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: 100;
  stroke-dashoffset: 100;
  stroke-width: 4;
  stroke: #22c55e;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: stroke 0.4s 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;
}

.futuristic-overlay {
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cyber-ring {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #14a2ba;
  border-right-color: #14a2ba;
  animation: orbit 1.5s linear infinite;
  box-shadow: 0 0 15px rgba(20, 162, 186, 0.4);
  position: relative;
}

.cyber-ring.inner {
  width: 40px;
  height: 40px;
  border-top-color: #eab308;
  border-right-color: transparent;
  border-left-color: #eab308;
  animation: orbit-inner 1s linear infinite;
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.3);
  position: absolute;
  top: 50%;
  left: 50%;
}

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

@keyframes orbit-inner {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(-360deg); }
}

.cyber-text {
  color: #14a2ba;
  text-shadow: 0 0 8px rgba(20, 162, 186, 0.6);
}