.romaji-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vmin, 26px);
  flex: 1;
  width: 100%;
}

.phase-banner {
  font-size: clamp(1.1rem, 3.2vmin, 1.6rem);
  font-weight: bold;
  color: var(--accent);
  min-height: 1.5em;
}

.phase-banner.shown {
  animation: popIn 0.4s ease;
}

.kana-display {
  font-size: clamp(5rem, 22vmin, 9rem);
  font-weight: bold;
  line-height: 1;
  color: var(--ink);
}

.kana-display.enter {
  animation: slideFadeIn 0.35s ease;
}

.teach-romaji {
  font-size: clamp(2rem, 7vmin, 3.2rem);
  font-weight: bold;
  color: var(--accent);
}

.teach-romaji.shown {
  animation: popIn 0.4s ease;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(6px, 1.4vmin, 12px);
  width: min(94vw, 640px);
}

.choice-grid.teach-grid {
  display: flex;
  justify-content: center;
}

.choice-btn {
  font-family: inherit;
  font-size: clamp(1rem, 3.2vmin, 1.6rem);
  font-weight: bold;
  padding: clamp(0.5em, 1.8vmin, 0.8em) 0;
  border-radius: 14px;
  border: 2.5px solid var(--gray);
  background: white;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.choice-btn:active {
  transform: scale(0.95);
}

.choice-btn.correct {
  border-color: var(--good);
  background: #eef9ee;
  color: var(--good);
}

.choice-btn.wrong {
  border-color: var(--bad);
  background: #fdeeee;
  color: var(--bad);
  animation: shake 0.35s;
}

.choice-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.next-btn {
  font-family: inherit;
  font-size: clamp(1.3rem, 4vmin, 1.8rem);
  font-weight: bold;
  padding: 0.7em 2.4em;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: white;
  cursor: pointer;
}

.next-btn:active {
  transform: scale(0.96);
}

.next-btn:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}
