* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', cursive, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #FF6B9D 0%, #C65DFF 50%, #5FFFD4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  animation: gradientShift 10s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Background decorative emojis */
.bg-emoji {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
  user-select: none;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

/* Floating animation keyframes */
@keyframes float1 {
  0%, 100% {
    transform: translateY(0) rotate(-15deg);
  }
  50% {
    transform: translateY(-30px) rotate(-5deg);
  }
}

@keyframes float2 {
  0%, 100% {
    transform: translateY(0) rotate(20deg);
  }
  50% {
    transform: translateY(-40px) rotate(30deg);
  }
}

@keyframes float3 {
  0%, 100% {
    transform: translateY(0) rotate(10deg);
  }
  50% {
    transform: translateY(-25px) rotate(20deg);
  }
}

@keyframes float4 {
  0%, 100% {
    transform: translateY(0) rotate(-20deg);
  }
  50% {
    transform: translateY(-35px) rotate(-10deg);
  }
}

@keyframes float5 {
  0%, 100% {
    transform: translateY(0) rotate(25deg);
  }
  50% {
    transform: translateY(-20px) rotate(35deg);
  }
}

@keyframes float6 {
  0%, 100% {
    transform: translateY(0) rotate(-10deg);
  }
  50% {
    transform: translateY(-30px) rotate(0deg);
  }
}

.bg-emoji-1 {
  font-size: 50px;
  top: 10%;
  left: 5%;
  animation: float1 6s ease-in-out infinite;
}

.bg-emoji-2 {
  font-size: 60px;
  top: 5%;
  right: 8%;
  animation: float2 7s ease-in-out infinite;
}

.bg-emoji-3 {
  font-size: 45px;
  bottom: 15%;
  left: 10%;
  animation: float3 5s ease-in-out infinite;
}

.bg-emoji-4 {
  font-size: 55px;
  bottom: 10%;
  right: 12%;
  animation: float4 6.5s ease-in-out infinite;
}

.bg-emoji-5 {
  font-size: 40px;
  top: 50%;
  left: 15%;
  animation: float5 5.5s ease-in-out infinite;
}

.bg-emoji-6 {
  font-size: 48px;
  top: 60%;
  right: 10%;
  animation: float6 6.2s ease-in-out infinite;
}

.container {
  width: 100%;
  max-width: 500px;
  text-align: center;
  position: relative;
  z-index: 1;
}

#questionsPage {
  max-width: 100% !important;
}

.title {
  color: white;
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 30px;
  text-shadow: 3px 3px 0px #FF1493,
               5px 5px 20px rgba(0, 0, 0, 0.3);
  line-height: 1.3;
  animation: titleBounce 2s ease-in-out infinite;
  letter-spacing: -1px;
}

@keyframes titleBounce {
  0%, 100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

.title .highlight-name {
  background: linear-gradient(135deg, #FFD700 0%, #FF69B4 50%, #00CED1 100%);
  padding: 8px 20px;
  border-radius: 20px;
  display: inline-block;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4),
              inset 0 -2px 10px rgba(0, 0, 0, 0.1);
  animation: wiggle 3s ease-in-out infinite;
  transform-origin: center;
  font-weight: 900;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes wiggle {
  0%, 100% {
    transform: rotate(-2deg) scale(1);
  }
  25% {
    transform: rotate(2deg) scale(1.02);
  }
  50% {
    transform: rotate(-2deg) scale(1);
  }
  75% {
    transform: rotate(2deg) scale(1.02);
  }
}

.card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 32px;
  padding: 40px 35px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
              0 0 0 6px rgba(255, 255, 255, 0.5),
              0 0 0 12px rgba(255, 215, 0, 0.3);
  transform: rotate(-1deg);
  animation: cardFloat 3s ease-in-out infinite;
  position: relative;
}

@keyframes cardFloat {
  0%, 100% {
    transform: rotate(-1deg) translateY(0);
  }
  50% {
    transform: rotate(1deg) translateY(-8px);
  }
}

.card-title {
  color: #1f2937;
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 30px;
  background: linear-gradient(135deg, #FF6B9D, #C65DFF, #5FFFD4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleShake 0.5s ease-in-out;
}

@keyframes titleShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px) rotate(-2deg); }
  75% { transform: translateX(5px) rotate(2deg); }
}

.input-group {
  margin-bottom: 30px;
}

.input-field {
  width: 100%;
  padding: 20px 24px;
  font-size: 18px;
  font-weight: 600;
  border: 4px solid transparent;
  border-radius: 20px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #FF6B9D, #C65DFF, #5FFFD4) border-box;
  font-family: inherit;
}

.input-field:focus {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(198, 93, 255, 0.4),
              0 0 0 4px rgba(255, 107, 157, 0.2);
  animation: inputPulse 0.6s ease-out;
}

@keyframes inputPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1.02);
  }
}

.input-field::placeholder {
  color: #a855f7;
  font-weight: 500;
  opacity: 0.6;
}

.btn-primary {
  width: 100%;
  padding: 22px 20px;
  font-size: 22px;
  font-weight: 900;
  color: white;
  background: linear-gradient(135deg, #10b981 0%, #00D084 50%, #059669 100%);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4),
              0 4px 12px rgba(0, 208, 132, 0.3),
              inset 0 -4px 0 rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  font-family: inherit;
}

.btn-primary::before {
  content: '🚀';
  position: absolute;
  left: -50px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  transition: all 0.5s ease;
}

.btn-primary:hover::before {
  left: calc(50% - 15px);
  animation: rocketFly 0.5s ease;
}

@keyframes rocketFly {
  0% { left: -50px; }
  100% { left: calc(50% - 15px); }
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.5),
              0 6px 16px rgba(0, 208, 132, 0.4),
              inset 0 -4px 0 rgba(0, 0, 0, 0.2);
  animation: buttonBounce 0.5s ease;
}

@keyframes buttonBounce {
  0%, 100% { transform: translateY(-4px) scale(1.03); }
  50% { transform: translateY(-8px) scale(1.05); }
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.error-message {
  color: #ef4444;
  font-size: 18px;
  font-weight: 600;
  margin-top: 20px;
  padding: 16px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 12px;
}

.loading {
  color: white;
  font-size: 32px;
  font-weight: 900;
  text-shadow: 3px 3px 0px #FF1493, 5px 5px 0px #00D4FF;
  animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.vibe-text {
  color: #FFD700;
  font-size: 20px;
  font-weight: 900;
  text-shadow: 2px 2px 0px #FF1493, 3px 3px 0px #00D4FF;
  margin-bottom: 15px;
  animation: vibeFloat 2s ease-in-out infinite;
  letter-spacing: 3px;
}

@keyframes vibeFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.05);
  }
}

.fun-text {
  margin-top: 20px;
  color: #C65DFF;
  font-size: 16px;
  font-weight: 700;
  animation: pointDown 1s ease-in-out infinite;
}

@keyframes pointDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

.bottom-text {
  margin-top: 20px;
  color: white;
  font-size: 18px;
  font-weight: 800;
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3);
  animation: slideIn 1s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hidden {
  display: none;
}

/* Questions Page Styles */
#questionsPage.container {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  padding: 40px 0;
  position: relative;
}

.progress-bar {
  width: 100%;
  max-width: 600px;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF6B35 0%, #F7931E 50%, #FFD700 100%);
  border-radius: 10px;
  transition: width 0.5s ease;
  width: 10%;
  box-shadow: 0 0 15px rgba(255, 107, 53, 0.7),
              0 0 25px rgba(247, 147, 30, 0.4);
}

.question-counter {
  color: white;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.question-card {
  background: #FFD700;
  border-radius: 32px;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: cardFloat 3s ease-in-out infinite;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.question-text {
  background: white;
  border-radius: 24px;
  padding: 40px 30px;
  font-size: 28px;
  font-weight: 900;
  color: #1f2937;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.4;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.option-btn {
  background: rgba(255, 252, 231, 0.95);
  border: none;
  border-radius: 20px;
  padding: 35px 35px;
  font-size: 26px;
  font-weight: 700;
  color: #2d3748;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 12px;
}

.option-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.option-btn:active {
  transform: translateY(-1px);
}

.option-btn.correct {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  color: white;
  animation: correctPulse 0.5s ease;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.6),
              0 0 40px rgba(52, 211, 153, 0.4),
              inset 0 0 20px rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.option-btn.wrong {
  background: #ef4444;
  color: white;
  animation: wrongShake 0.5s ease;
}

.option-btn.disabled {
  pointer-events: none;
}

@keyframes correctPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes wrongShake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}

/* Score Screen Styles */
.score-container {
  text-align: center;
  width: 100%;
}

.score-card {
  background: white;
  border-radius: 32px;
  padding: 40px 30px 35px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25),
              0 0 0 8px rgba(255, 255, 255, 0.3);
  animation: cardFloat 3s ease-in-out infinite;
  max-width: 450px;
  margin: 0 auto;
}

.score-tag {
  font-size: 42px;
  font-weight: 900;
  color: #2d3748;
  margin-bottom: 25px;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.2;
}

/* Circular Meter Styles */
.circular-meter {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 30px;
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-circle-bg {
  opacity: 0.15;
}

.progress-ring-circle {
  stroke-dasharray: 534;
  stroke-dashoffset: 534;
  transition: stroke-dashoffset 2s ease-in-out;
  stroke-linecap: round;
}

.meter-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.meter-score {
  font-weight: 900;
}

.meter-number {
  font-size: 72px;
  font-weight: 900;
  color: #2d3748;
  line-height: 1;
  display: block;
}

.score-text {
  font-size: 24px;
  font-weight: 800;
  color: #2d3748;
  margin-bottom: 15px;
}

.score-message {
  font-size: 20px;
  font-weight: 600;
  color: #9CA3AF;
  line-height: 1.4;
}

@media (max-width: 380px) {
  .title {
    font-size: 32px;
  }

  .card {
    padding: 25px 15px;
  }

  .card-title {
    font-size: 22px;
  }

  .question-card {
    padding: 15px;
  }

  .question-text {
    font-size: 22px;
    padding: 25px 15px;
  }

  .option-btn {
    font-size: 18px;
    padding: 20px 20px;
  }
}

@media (min-width: 381px) and (max-width: 600px) {
  .title {
    font-size: 36px;
  }

  .card {
    padding: 30px 20px;
  }

  .card-title {
    font-size: 24px;
  }

  .question-card {
    padding: 20px;
  }
    .option-btn {
    font-size: 20px;
    padding: 20px 20px;
  }

  .question-text {
    font-size: 24px;
    padding: 30px 20px;
  }
}
