* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
  background: #e8f7ff;
  color: #333;
}

.game {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-title {
  margin: 0;
  text-align: center;
  font-size: 1.8rem;
  color: #1383b8;
}

.top-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stars {
  font-size: 1.4rem;
  font-weight: bold;
  min-width: 70px;
}

.progress {
  flex: 1;
  height: 16px;
  background: #cfe9f7;
  border-radius: 8px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: #58cc02;
  transition: width 0.4s;
}

.question-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 0 #b9dcef;
}

.guide {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: #666;
}

.picture {
  font-size: 6rem;
  line-height: 1.2;
}

.word {
  font-size: 2.6rem;
  font-weight: bold;
  letter-spacing: 4px;
  margin: 8px 0 0;
}

.choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.choice-btn {
  font-size: 2rem;
  font-weight: bold;
  padding: 18px 0;
  border: none;
  border-radius: 16px;
  background: #ffffff;
  color: #333;
  cursor: pointer;
  box-shadow: 0 4px 0 #b9dcef;
}

.choice-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #b9dcef;
}

.choice-btn.correct {
  background: #58cc02;
  color: #fff;
  box-shadow: 0 4px 0 #3e9a00;
}

.choice-btn.wrong {
  background: #ff7b7b;
  color: #fff;
  box-shadow: 0 4px 0 #d95757;
}

.feedback {
  text-align: center;
  font-size: 1.4rem;
  font-weight: bold;
  min-height: 2rem;
  margin: 0;
}

.next-btn {
  font-size: 1.3rem;
  font-weight: bold;
  padding: 16px;
  border: none;
  border-radius: 16px;
  background: #1cb0f6;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 0 #1383b8;
}

.next-btn[hidden] {
  display: none;
}

[hidden] {
  display: none !important;
}

.level-name {
  text-align: center;
  font-weight: bold;
  margin: 0;
  color: #1383b8;
}

.level-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.level-btn {
  font-size: 1.2rem;
  font-weight: bold;
  padding: 16px 8px;
  border: none;
  border-radius: 16px;
  background: #1cb0f6;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 0 #1383b8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.level-btn small {
  font-size: 0.85rem;
  font-weight: normal;
}

.level-btn:disabled {
  background: #cfe9f7;
  color: #888;
  box-shadow: 0 4px 0 #b9dcef;
  cursor: not-allowed;
}

.speak-btn {
  margin-top: 12px;
  font-size: 1rem;
  padding: 8px 16px;
  border: none;
  border-radius: 12px;
  background: #ffd44d;
  color: #333;
  cursor: pointer;
  box-shadow: 0 3px 0 #d9a900;
}

.back-btn {
  font-size: 1rem;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: #fff;
  color: #555;
  cursor: pointer;
  box-shadow: 0 3px 0 #b9dcef;
}

.word.long {
  font-size: 1.5rem;
  letter-spacing: 1px;
}

@media (max-width: 360px) {
  .choices {
    gap: 8px;
  }
  .choice-btn {
    font-size: 1.6rem;
  }
}
