body {
  font-family: Arial, sans-serif;
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background: #f7f7f7;
}

.card {
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* Buttons */
button {
  margin: 8px 4px;
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
}

/* Quiz options */
.option {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  cursor: pointer;
  text-align: left;
}

/* Learning mode feedback */
.correct {
  background: #b7f7b7;
  color: black;
}

.wrong {
  background: #f7b7b7;
  color: black;
}

/* Top bar */
#topBar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: bold;
}

/* Next button */
#nextBtn {
  display: none;
  margin-top: 16px;
  padding: 12px 18px;
}

/* ---------------------- */
/* Arcade feedback effect */
/* ---------------------- */

.feedback {
  position: fixed;
  font-size: 28px;
  font-weight: bold;
  pointer-events: none;
  animation: floatFade 0.4s ease-out forwards;
  transform: translate(-50%, -50%);
  z-index: 999;
}

.feedback.correct {
  color: #2ecc71;
}

.feedback.wrong {
  color: #e74c3c;
}

@keyframes floatFade {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(0) scale(0.8);
  }
  30% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(-10px) scale(1.1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-30px) scale(1);
  }
}

#musicToggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 24px;
  background: white;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  z-index: 1000;
  display: none;
}

#musicToggle:hover {
  transform: scale(1.05);
}
