.egg-learn-pathfinder-panel {
  margin: 0 0 2rem;
}

.egg-learn-pathfinder-panel__inner {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: 1rem;
  border: 2px solid rgba(109, 40, 217, 0.16);
  background: linear-gradient(145deg, #fff 0%, #f4f0ff 100%);
  box-shadow: 0 12px 28px rgba(45, 26, 77, 0.08);
}

.egg-learn-pathfinder-panel__title {
  margin: 0;
  font-family: var(--font-display, "Bakbak One", sans-serif);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  line-height: 1.15;
  color: #1a1030;
}

.egg-learn-pathfinder-panel__subtitle,
.egg-learn-pathfinder-panel__browse-hint {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: #5b5470;
}

.egg-learn-search {
  margin: 0 0 2rem;
}

.egg-learn-search__panel {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: 1rem;
  border: 2px solid rgba(109, 40, 217, 0.16);
  background: linear-gradient(145deg, #fff 0%, #f4f0ff 100%);
  box-shadow: 0 12px 28px rgba(45, 26, 77, 0.08);
}

.egg-learn-search__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display, "Bakbak One", sans-serif);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  line-height: 1.15;
  color: #1a1030;
}

.egg-learn-search__field {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-sizing: border-box;
  width: 100%;
  padding: 0.72rem 1rem 0.72rem 0.95rem;
  border-radius: 999px;
  border: 2px solid rgba(109, 40, 217, 0.18);
  background: #fff;
  box-shadow: 0 4px 14px rgba(45, 26, 77, 0.06);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.egg-learn-search__field:focus-within {
  border-color: rgba(109, 40, 217, 0.45);
  box-shadow:
    0 4px 14px rgba(45, 26, 77, 0.06),
    0 0 0 3px rgba(109, 40, 217, 0.12);
}

.egg-learn-search__icon {
  flex: 0 0 auto;
  font-size: 1.05rem;
  line-height: 1;
  opacity: 0.72;
  user-select: none;
}

.egg-learn-search__input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1a1030;
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
}

.egg-learn-search__input::placeholder {
  color: rgba(45, 26, 77, 0.48);
}

.egg-learn-search__input:focus-visible {
  outline: none;
}

.egg-learn-search__input::-webkit-search-cancel-button {
  margin-left: 0.35rem;
}

.egg-learn-search__results {
  margin-top: 1rem;
}

.egg-learn-search__results-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #2d1a4d;
}

.egg-learn-search__result-list,
.egg-learn-pathfinder__result-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.egg-learn-search__result-link,
.egg-learn-pathfinder__result-link {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(109, 40, 217, 0.14);
  background: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.egg-learn-search__result-link:hover,
.egg-learn-search__result-link:focus-visible,
.egg-learn-pathfinder__result-link:hover,
.egg-learn-pathfinder__result-link:focus-visible {
  border-color: rgba(109, 40, 217, 0.32);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(109, 40, 217, 0.1);
  outline: none;
}

.egg-learn-search__result-link-title,
.egg-learn-pathfinder__result-link-title {
  font-weight: 700;
  color: var(--purple-700, #6d28d9);
}

.egg-learn-search__result-link-summary,
.egg-learn-pathfinder__result-link-summary {
  font-size: 0.92rem;
  color: #5b5470;
  line-height: 1.45;
}

.egg-learn-pathfinder__body {
  margin-top: 1rem;
}

.egg-learn-pathfinder__progress {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(45, 26, 77, 0.62);
}

.egg-learn-pathfinder__prompt {
  margin: 0 0 0.85rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: #2d1a4d;
}

.egg-learn-pathfinder__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.egg-learn-pathfinder__choice {
  appearance: none;
  border: 2px solid rgba(109, 40, 217, 0.22);
  border-radius: 999px;
  background: #fff;
  color: #2d1a4d;
  padding: 0.62rem 1rem;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.egg-learn-pathfinder__choice:hover,
.egg-learn-pathfinder__choice:focus-visible {
  border-color: rgba(109, 40, 217, 0.45);
  background: #faf7ff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(109, 40, 217, 0.12);
  outline: none;
}

.egg-learn-pathfinder__results-title {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 800;
  color: #2d1a4d;
}

.egg-learn-pathfinder-opening {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  box-sizing: border-box;
}

.egg-learn-pathfinder-opening[hidden] {
  display: none;
}

html.egg-learn-pathfinder-opening-active {
  overflow: hidden;
}

.egg-learn-pathfinder-opening__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 22, 51, 0.52);
  backdrop-filter: blur(4px);
}

.egg-learn-pathfinder-opening__panel {
  position: relative;
  z-index: 1;
  width: min(26rem, 100%);
  display: grid;
  gap: 0.75rem;
  padding: clamp(1.1rem, 4vw, 1.35rem);
  border-radius: 1rem;
  border: 2px solid rgba(109, 40, 217, 0.28);
  background: #fff;
  box-shadow: 0 24px 64px rgba(45, 26, 77, 0.22);
  text-align: center;
}

.egg-learn-pathfinder-opening__kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(45, 26, 77, 0.62);
}

.egg-learn-pathfinder-opening__title {
  margin: 0;
  font-family: var(--font-display, "Bakbak One", sans-serif);
  font-size: clamp(1.15rem, 4.5vw, 1.35rem);
  line-height: 1.2;
  color: #1a1030;
}

.egg-learn-pathfinder-opening__message {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.5;
  color: #5b5470;
}

.egg-learn-pathfinder-opening__spinner {
  width: 2rem;
  height: 2rem;
  margin: 0.15rem auto 0;
  border-radius: 50%;
  border: 3px solid rgba(109, 40, 217, 0.18);
  border-top-color: rgba(109, 40, 217, 0.85);
  animation: egg-learn-pathfinder-spin 0.8s linear infinite;
}

@keyframes egg-learn-pathfinder-spin {
  to {
    transform: rotate(360deg);
  }
}

.egg-learn-pathfinder-opening__cancel {
  width: 100%;
  margin-top: 0.15rem;
}

.egg-learn-pathfinder__restart {
  margin-top: 1rem;
}

.egg-learn-pathfinder-opening__panel {
  text-align: center;
}

.egg-learn-pathfinder-opening__title {
  word-break: break-word;
}

@media (min-width: 40rem) {
  .egg-learn-search__result-list,
  .egg-learn-pathfinder__result-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 56rem) {
  .egg-learn-search__result-list,
  .egg-learn-pathfinder__result-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
