/* Song cards, lyric line, stars, and the song-done cheer. */

.mk-home {
  align-content: center;
  display: grid;
  flex: 1;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 220px));
  justify-content: center;
  padding: 1rem;
}

.mk-card {
  align-items: center;
  background: rgba(255, 248, 240, 0.12);
  border: 3px solid rgba(255, 248, 240, 0.4);
  border-radius: 20px;
  color: var(--mk-ink);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  gap: 0.4rem;
  padding: 1.2rem 0.8rem;
  transition: transform 0.12s ease, background-color 0.2s ease;
}

.mk-card:active {
  transform: scale(0.95);
}

.mk-card__emoji {
  font-size: 3rem;
  line-height: 1;
}

.mk-card__stars {
  font-size: 1rem;
  min-height: 1.2em;
}

.mk-lyric {
  font-size: clamp(1.3rem, 4vw, 2.2rem);
  font-weight: 700;
  min-height: 1.4em;
  padding: 0.4rem 1rem;
  text-align: center;
}

.mk-lyric__word.is-sung {
  color: var(--mk-star);
  text-shadow: 0 0 14px var(--mk-star);
}

.mk-stars {
  font-size: 1.2rem;
  min-height: 1.4em;
  text-align: center;
}

.mk-back {
  background: rgba(255, 248, 240, 0.15);
  border: 2px solid rgba(255, 248, 240, 0.4);
  border-radius: 999px;
  color: var(--mk-ink);
  cursor: pointer;
  font-size: 1rem;
  left: 0.7rem;
  padding: 0.35rem 0.9rem;
  position: absolute;
  top: 0.6rem;
  z-index: 2;
}

.mk-cheer {
  align-items: center;
  background: rgba(43, 16, 85, 0.88);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  inset: 0;
  justify-content: center;
  position: fixed;
  text-align: center;
  z-index: 5;
}

.mk-cheer__stars {
  animation: mk-pop 0.6s ease-out;
  font-size: clamp(3rem, 14vw, 6rem);
  line-height: 1;
}

.mk-cheer__title {
  font-size: 1.6rem;
}

.mk-cheer__hint {
  font-size: 1rem;
  opacity: 0.8;
}

.is-hidden {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .mk-cheer__stars {
    animation: none;
  }
}
