/* أنا مين؟ — forehead pass-and-play */

.game-ana-meen .game-forehead {
  position: relative;
}

.game-ana-meen .game-forehead .game-big-word {
  animation: ana-word-reveal 0.5s ease both;
}

.game-ana-meen .game-card.is-correct {
  animation: ana-correct-flash 0.55s ease;
}

.game-ana-meen .forehead-tip {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  animation: ana-tip-pulse 2.2s ease-in-out infinite;
}

.game-ana-meen .play-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.game-ana-meen .round-field {
  max-width: 8rem;
}

.game-ana-meen .round-field input {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.game-ana-meen .end-score {
  margin: 0.5rem 0 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 10vw, 3.6rem);
  line-height: 1;
  text-align: center;
}

.game-ana-meen .end-score span {
  display: block;
  margin-top: 0.35rem;
  font-family: "Noto Sans Arabic", "Source Sans 3", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.game-ana-meen .between-card {
  text-align: center;
  padding-block: 2rem;
}

.game-ana-meen .between-card .game-big-word {
  font-size: clamp(1.6rem, 6vw, 2.2rem);
}

@keyframes ana-word-reveal {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ana-correct-flash {
  0% {
    box-shadow: var(--shadow);
    background: var(--surface);
  }
  35% {
    box-shadow: 0 0 0 3px #2a9d8f;
    background: color-mix(in srgb, #2a9d8f 18%, var(--surface));
  }
  100% {
    box-shadow: var(--shadow);
    background: var(--surface);
  }
}

@keyframes ana-tip-pulse {
  0%,
  100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-ana-meen .forehead-tip,
  .game-ana-meen .game-forehead .game-big-word,
  .game-ana-meen .game-card.is-correct {
    animation: none;
  }
}
