* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Comic Sans MS", "Apple SD Gothic Neo", sans-serif;
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 50%, #ffecd2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.game {
  width: 100%;
  max-width: 480px;
  background: #ffffffcc;
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

header {
  text-align: center;
  margin-bottom: 1rem;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 1.8rem;
  color: #6a3fa0;
}

.score-board {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 1.3rem;
  font-weight: bold;
  color: #444;
}

#question-area {
  text-align: center;
  margin-bottom: 1.5rem;
}

#emoji-row {
  font-size: 1.7rem;
  line-height: 1.5;
  min-height: 2.6rem;
  margin-bottom: 0.5rem;
  word-break: break-word;
}

#question-text {
  font-size: 1.6rem;
  color: #333;
  margin: 0.3rem 0;
}

.answers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.answer-btn {
  font-size: 2rem;
  font-weight: bold;
  padding: 1.2rem;
  border: none;
  border-radius: 20px;
  background: #ffd166;
  color: #5b3a00;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.2s;
  box-shadow: 0 6px 0 #d9a53e;
}

.answer-btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #d9a53e;
}

.answer-btn.correct {
  background: #8ee6a8;
  box-shadow: 0 6px 0 #4fae6c;
}

.answer-btn.wrong {
  background: #ff8e8e;
  box-shadow: 0 6px 0 #d94f4f;
}

#feedback {
  text-align: center;
  font-size: 1.4rem;
  min-height: 2rem;
  margin-top: 1rem;
  font-weight: bold;
}

#celebration {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.6);
  z-index: 10;
}

#celebration.hidden {
  display: none;
}

.celebration-content {
  text-align: center;
  animation: pop 0.4s ease;
}

.celebration-emoji {
  font-size: 5rem;
}

.celebration-text {
  font-size: 2rem;
  font-weight: bold;
  color: #6a3fa0;
}

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

@media (max-width: 360px) {
  .answer-btn {
    font-size: 1.6rem;
    padding: 1rem;
  }
  #emoji-row {
    font-size: 1.8rem;
  }
}
