.learning-scene {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: linear-gradient(
    120deg,
    color-mix(in srgb, var(--color-accent-3) 12%, var(--color-surface)),
    var(--color-surface)
  );
  overflow: hidden;
}
.learning-scene-guide {
  flex: 0 0 64px;
}
.learning-scene-guide .journey-art {
  width: 64px;
  height: 64px;
  max-width: 100%;
}
.learning-scene-guide .mascot {
  width: 48px;
  height: 52px;
  margin: 0 auto;
}
.learning-scene-copy {
  flex: 1;
  min-width: 0;
}
.learning-scene-copy p {
  margin: 0 0 5px;
  color: var(--color-text);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.discovery-trail {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.discovery-step {
  width: 30px;
  height: 36px;
  opacity: 0.4;
}
.discovery-step svg {
  width: 100%;
  height: 100%;
}
.discovery-stem {
  fill: #39a879;
  stroke: #27825a;
  stroke-width: 2;
}
.discovery-bloom {
  fill: #ef78ad;
  transform-origin: 20px 24px;
  transform: scale(0.35);
}
.discovery-center {
  fill: #ffe066;
}
.discovery-step.is-current {
  opacity: 0.8;
  border-bottom: 2px solid var(--color-text);
}
.discovery-step.is-grown {
  opacity: 1;
}
.is-grown .discovery-bloom {
  transform: scale(1);
}
.is-success .is-current .discovery-bloom {
  animation: discovery-grow 550ms ease-out;
}
.is-success .learning-scene-guide {
  animation: discovery-cheer 550ms ease-out;
}
@keyframes discovery-grow {
  from {
    transform: scale(0.35);
  }
  65% {
    transform: scale(1.15);
  }
  to {
    transform: scale(1);
  }
}
@keyframes discovery-cheer {
  40% {
    transform: translateY(-5px) rotate(-5deg);
  }
}
@media (max-width: 380px) {
  .learning-scene {
    gap: 8px;
    padding: 8px;
  }
  .learning-scene-guide {
    flex-basis: 48px;
  }
  .learning-scene-guide .journey-art {
    width: 48px;
    height: 48px;
  }
  .discovery-step {
    width: 25px;
    height: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .is-success .is-current .discovery-bloom,
  .is-success .learning-scene-guide {
    animation: none;
  }
}
