.meaning-scene .intro-entry {
  min-height: 44px;
  margin-top: 16px;
  padding: 10px 13px;
  font-size: 13px;
  gap: 7px;
}
.intro-entry .icon {
  width: 18px;
  height: 18px;
}
.character-intro-dialog {
  width: min(540px, calc(100% - 32px));
  max-width: 540px;
  max-height: calc(100svh - 32px);
  padding: 25px 28px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  overscroll-behavior-y: none;
}
.intro-header {
  position: relative;
  padding-right: 43px;
}
.intro-header h2 {
  font-family: var(--book);
  font-size: 29px;
}
.intro-header .eyebrow {
  margin-bottom: 5px;
}
.intro-close {
  position: absolute;
  top: -7px;
  right: -9px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #edeedf;
  font-size: 29px;
  line-height: 1;
}
.intro-close:hover {
  background: #e0e7d4;
}
.intro-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 16px 0 13px;
}
.intro-meta > span {
  padding: 3px 9px;
  border: 1px solid #d9dec9;
  border-radius: 6px;
  background: #edf0e1;
  color: #5d6f50;
  font-size: 11px;
}
.intro-meta .intro-progress {
  margin-left: auto;
  border: 0;
  background: none;
}
.intro-drawing {
  width: 264px;
  max-width: 100%;
  margin: auto;
  border: 1px solid #dfd4b6;
  border-radius: 18px;
  background: #f7f1e1;
  overflow: hidden;
}
.intro-glyph {
  display: block;
  width: 100%;
  height: auto;
}
.intro-grid {
  fill: none;
  stroke: #d6c9a6;
  stroke-width: 3;
  stroke-dasharray: 10 14;
}
.intro-ghost {
  fill: #ded9c6;
}
.intro-complete-stroke {
  fill: #45634b;
}
.intro-ink {
  fill: none;
  stroke: #b97743;
  stroke-width: 180;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: intro-ink-reveal 1.3s ease-in-out both;
}
.character-intro-dialog[data-state='paused'] .intro-ink {
  animation-play-state: paused;
}
.character-intro-dialog[data-state='manual'] .intro-ink {
  animation: none;
}
.intro-caption {
  text-align: center;
  min-height: 92px;
  margin-top: 19px;
}
.intro-caption h3 {
  font-family: var(--book);
  font-size: 25px;
  line-height: 1.4;
}
.intro-caption .intro-explanation {
  margin: 8px auto 0;
  font-size: 14px;
  line-height: 1.8;
  max-width: 380px;
}
.intro-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 8px 0 20px;
}
.intro-dots li {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid #b6bea2;
  background: #e5e7d6;
}
.intro-dots .finished {
  background: #819575;
  border-color: #819575;
}
.intro-dots .current {
  width: 23px;
  border-radius: 8px;
  background: #476b51;
  border-color: #476b51;
}
.intro-controls {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 10px;
}
.intro-controls .button {
  min-height: 48px;
  padding: 10px 8px;
  font-size: 14px;
}
.character-intro-dialog .intro-note {
  text-align: center;
  font-size: 11px;
  line-height: 1.8;
  margin: 18px 0 12px;
}
.intro-source {
  border-top: 1px solid #e5e0cf;
  padding-top: 10px;
  color: #6a705d;
  font-size: 10px;
}
.intro-source summary {
  cursor: pointer;
  min-height: 24px;
}
.intro-source p {
  font-size: 10px;
  line-height: 1.8;
  margin: 7px 0 0;
}
.intro-source a {
  text-decoration: underline;
  color: #4e6545;
}
@keyframes intro-ink-reveal {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@media (max-width: 600px) {
  .meaning-scene .intro-entry {
    font-size: 11px;
    padding: 9px 8px;
    gap: 4px;
  }
  .intro-entry .icon {
    width: 16px;
    height: 16px;
  }
  .character-intro-dialog {
    padding: 22px 19px 17px;
    border-radius: 18px;
  }
  .intro-header h2 {
    font-size: 26px;
  }
  .intro-drawing {
    width: 222px;
  }
  .intro-caption {
    min-height: 97px;
    margin-top: 16px;
  }
  .intro-caption h3 {
    font-size: 23px;
  }
  .intro-caption .intro-explanation {
    font-size: 13px;
  }
  .intro-controls {
    gap: 8px;
  }
  .intro-controls .button {
    font-size: 12px;
  }
  .character-intro-dialog .intro-note {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .intro-ink {
    animation: none;
  }
}

.intro-control-symbol {
  font-family: system-ui, sans-serif;
  font-size: 22px;
  line-height: 1;
}
.intro-controls .button {
  gap: 5px;
}
