:root {
  --accent: #397a5d;
  --accent-dark: #285540;
  --wash: #dceae3;
  --wrong: #b84f43;
}

.sounds-stage {
  width: min(100%, 620px);
}

.word-replay {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  gap: 11px;
  margin: 0 0 12px;
  padding: 9px 18px 9px 11px;
  border: 2px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 7px 18px rgba(32, 48, 41, 0.07);
  color: var(--accent-dark);
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 150ms ease, border-color 150ms ease;
}

.word-replay:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.word-replay:active {
  transform: scale(0.98);
}

.word-replay-icon {
  display: grid;
  width: 38px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--wash);
  font-size: 1.15rem;
}

.word-replay strong,
.word-replay small {
  display: block;
}

.word-replay strong {
  font-family: "Nunito", sans-serif;
  font-size: 0.88rem;
  font-weight: 900;
}

.word-replay small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 700;
}

.picture-card {
  appearance: none;
  position: relative;
  overflow: hidden;
  width: min(100%, 410px);
  margin-inline: auto;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 34px;
  background: #fffaf0;
  box-shadow: var(--shadow);
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.picture-card::after {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 40px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 16px rgba(32, 48, 41, 0.13);
  content: "🔊";
  font-size: 1rem;
}

.picture-card:active img {
  transform: scale(0.985);
}

.picture-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  user-select: none;
  transition: transform 150ms ease;
}

.picture-card.is-changing img {
  animation: picture-pop 300ms cubic-bezier(0.2, 0.85, 0.35, 1.12) both;
}

.feedback {
  min-height: 25px;
  margin: 13px 0 9px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.feedback.is-correct {
  color: var(--accent-dark);
}

.feedback.is-wrong {
  color: var(--wrong);
}

.answer-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.answer-button {
  min-height: 72px;
  border: 2px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(32, 48, 41, 0.07);
  color: var(--ink);
  cursor: pointer;
  font-family: "Comic Neue", "Comic Sans MS", "Chalkboard SE", cursive;
  font-size: clamp(2.35rem, 11vw, 3.35rem);
  font-weight: 700;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.answer-button:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.answer-button:active {
  transform: scale(0.97);
}

.answer-button.is-correct {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--wash) 72%, white);
  color: var(--accent-dark);
}

.answer-button.is-wrong {
  border-color: var(--wrong);
  animation: gentle-shake 280ms ease;
}

.answer-button.is-paired {
  font-size: clamp(1.65rem, 7vw, 2.45rem);
  letter-spacing: -0.04em;
}

.answer-button:disabled {
  cursor: default;
}

.round-progress {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

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

@keyframes gentle-shake {
  0%, 100% { transform: translateX(0); }
  35% { transform: translateX(-5px); }
  70% { transform: translateX(5px); }
}

@media (min-width: 700px) {
  .picture-card {
    width: min(100%, 440px);
    border-radius: 42px;
  }

  .answer-options {
    gap: 14px;
  }

  .answer-button {
    min-height: 84px;
    border-radius: 25px;
  }
}

@media (max-height: 760px) {
  .word-replay {
    min-height: 48px;
    margin-bottom: 8px;
  }

  .word-replay-icon {
    width: 32px;
  }

  .picture-card {
    width: min(100%, 300px);
  }

  .feedback {
    margin-block: 8px 6px;
  }

  .answer-button {
    min-height: 60px;
  }

  .round-progress {
    margin-top: 8px;
  }
}
