.tutorial-battle {
  position: relative;
}

.tutorial-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.45rem 0.8rem;
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid #3c362c;
  background: #1a1712;
}

.tutorial-bar__text {
  display: grid;
  flex: 1 1 16rem;
  gap: 0.2rem;
  min-width: 0;
}

.tutorial-bar__step {
  margin: 0;
  color: #f0c26b;
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tutorial-bar__narration {
  margin: 0;
  color: #efe6d5;
  font-size: 0.88rem;
  line-height: 1.55;
}

.tutorial-bar__hint {
  margin: 0;
  color: #cfc2ab;
  font-size: 0.78rem;
  line-height: 1.45;
}

.tutorial-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-left: auto;
}

.tutorial-highlight {
  border-radius: 10px;
  outline: 3px solid #f0c26b;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(240, 194, 107, 0.28);
  animation: tutorial-highlight-pulse 1.6s ease-in-out infinite;
}

@keyframes tutorial-highlight-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(240, 194, 107, 0.18);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(240, 194, 107, 0.42);
  }
}

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

[data-motion="reduced"] .tutorial-highlight {
  animation: none;
}

@media (max-width: 520px) {
  .tutorial-bar__actions {
    width: 100%;
    margin-left: 0;
  }

  .tutorial-bar__actions .match-start,
  .tutorial-bar__actions .match-action {
    flex: 1 1 0;
  }
}

@media (max-height: 800px) {
  .tutorial-bar {
    gap: 0.3rem 0.7rem;
    padding: 0.3rem 0.7rem;
  }

  .tutorial-bar__narration {
    font-size: 0.82rem;
    line-height: 1.42;
  }

  .tutorial-bar__hint {
    font-size: 0.74rem;
    line-height: 1.35;
  }
}

@media (max-height: 640px) {
  .tutorial-bar {
    gap: 0.2rem 0.6rem;
    padding: 0.2rem 0.6rem;
  }

  .tutorial-bar__text {
    gap: 0.08rem;
  }

  .tutorial-bar__step {
    font-size: 0.68rem;
  }

  .tutorial-bar__narration {
    font-size: 0.74rem;
    line-height: 1.3;
  }

  .tutorial-bar__hint {
    font-size: 0.68rem;
    line-height: 1.25;
  }
}
