body {
  margin: 0; background: linear-gradient(135deg,#f9d423 0%,#ff4e50 100%);
  font-family: 'Roboto', sans-serif;
  min-height: 100vh;
  display: flex; justify-content: center; align-items: center;
}
#app-container {
  background: rgba(255,255,255,0.95);
  border-radius: 32px;
  padding: 36px 28px 28px 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  max-width: 400px;
  width: 100%;
  position: relative;
  overflow: hidden;
  animation: popin 0.8s cubic-bezier(0.5,2,0.2,1.3);
}
@keyframes popin { from{transform:scale(0.7); opacity:0;} to{transform:scale(1); opacity:1;} }
.quiz-title {
  font-family: 'Fredoka One', cursive;
  text-shadow: 2px 2px 0 #ff4e50;
  font-size: 2.1em;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 2px;
}
#question-area {
  margin: 20px 0 10px 0;
  text-align: center;
  font-size: 1.12em;
  font-weight: bold;
  color: #ff4e50;
}
.options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 15px;
}
.option-img {
  border-radius: 50%;
  overflow: hidden;
  width: 120px; height: 120px;
  border: 5px solid #ffd452;
  box-shadow: 0 2px 10px rgba(255,78,80,0.16);
  transition: transform 0.18s, box-shadow 0.18s;
  cursor: pointer;
  background: #eee;
  position: relative;
  animation: popin 0.5s cubic-bezier(0.5,2,0.2,1.3);
}
.option-img img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: filter 0.2s;
}
.option-img:hover {
  transform: scale(1.07) rotate(-2deg);
  box-shadow: 0 8px 22px rgba(255,78,80,0.22);
}
.option-img[disabled] { pointer-events: none; filter: grayscale(0.7) opacity(0.7); }
.option-img.selected { border-color: #4be69d; }
.option-img.wrong { border-color: #e94e77; animation: shake 0.4s; }
@keyframes shake { 0%{transform:translateX(0);} 20%{transform:translateX(-6px);} 40%{transform:translateX(6px);} 60%{transform:translateX(-4px);} 80%{transform:translateX(4px);} 100%{transform:translateX(0);} }
#feedback {
  font-size: 1.2em; font-weight: bold; text-align: center; min-height: 30px;
  margin: 7px 0 10px 0;
  color: #4be69d;
  opacity: 0; transition: opacity 0.4s;
}
#feedback.show { opacity: 1; }
#next-btn, #start-btn {
  background: linear-gradient(90deg,#ff4e50 0%,#f9d423 100%);
  color: #fff; border: none; border-radius: 22px;
  font-size: 1.1em; font-family: 'Fredoka One', cursive;
  font-weight: bold; padding: 13px 35px; margin-top: 12px;
  box-shadow: 0 2px 12px rgba(255,78,80,0.10);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
#next-btn:hover, #start-btn:hover { background: linear-gradient(90deg,#f9d423,#ff4e50);}
#progress-bar {
  width: 100%; height: 14px; background: #f9d42333; border-radius: 9px;
  margin-bottom: 16px; overflow: hidden;
}
#progress-fill {
  background: linear-gradient(90deg,#4be69d,#ffe14e);
  height: 100%; border-radius: 9px; width: 0%;
  transition: width 0.5s cubic-bezier(0.5,2,0.2,1.3);
}
/* Tutorial Overlay */
#tutorial-overlay {
  background: rgba(23,22,60,0.95);
  color: #fff;
  position: fixed; z-index: 99; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  font-family: 'Fredoka One', cursive;
  animation: fadein 0.5s;
}
@keyframes fadein { from{opacity:0;} to{opacity:1;} }
#tutorial-overlay h2 {
  font-size: 2.4em; margin-bottom: 16px; color: #ffd452;
  text-shadow: 2px 2px 0 #ff4e50;
}
#tutorial-overlay ul {
  font-family: 'Roboto', sans-serif;
  font-size: 1.17em;
  margin: 0 0 22px 0; padding: 0 22px;
  text-align: left; max-width: 410px;
}
#tutorial-overlay ul li { margin-bottom: 10px; }
#tutorial-overlay button {
  background: linear-gradient(90deg,#4be69d 0%,#ffe14e 100%);
  color: #333; border: none; border-radius: 18px;
  font-size: 1.1em; font-family: 'Fredoka One', cursive;
  padding: 13px 28px; margin-top: 8px; font-weight: bold;
  cursor: pointer; box-shadow: 0 2px 10px #0002;
}
@media (max-width: 520px) {
  #app-container { max-width: 98vw; padding: 13vw 2vw; }
  .quiz-title { font-size: 1.5em; }
  .option-img { width: 54px; height: 54px; }
}