/* Approved home introduction: preserves the existing hero and ad geometry. */
.hero-card.tf-home-intro-active > :not(.tf-home-intro) {
  visibility: hidden !important;
  pointer-events: none !important;
}
.tf-home-intro[hidden] { display: none !important; }
.tf-home-intro {
  --tf-home-intro-ready: 1;
  position: absolute;
  inset: 0;
  bottom: auto;
  height: var(--tf-home-intro-height, 100%);
  box-sizing: border-box;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 16px;
  color: var(--tf-text);
  font-family: var(--tf-font);
  text-align: center;
  visibility: visible;
  pointer-events: none;
}
.tf-home-intro-art {
  position: relative;
  width: min(340px, 78vw);
  height: clamp(185px, 25vw, 245px);
  display: grid;
  place-items: center;
}
.tf-home-intro-scene { width: 100%; height: 100%; display: block; overflow: hidden; }
.tf-home-intro-title {
  margin: 2px 0 0;
  color: var(--tf-text);
  font-size: clamp(1.85rem, 4.5vw, 2.9rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.045em;
}
.tf-home-intro-progress {
  --tf-intro-progress: 0;
  position: relative;
  width: min(256px, 68vw);
  height: 14px;
  margin-top: 27px;
}
.tf-home-intro-track {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tf-accent) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tf-accent) 20%, transparent);
}
.tf-home-intro-fill {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--tf-accent);
  transform-origin: left center;
  transform: scaleX(var(--tf-intro-progress));
}
.tf-home-intro-traveller {
  position: absolute;
  left: calc(100% * var(--tf-intro-progress));
  top: 50%;
  width: 25px;
  height: 25px;
  color: var(--tf-accent);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 5px var(--tf-surface, #17202b));
}
.tf-home-intro-traveller svg { display: block; width: 100%; height: 100%; }
.tf-home-intro-hint {
  margin: 19px 0 0;
  color: var(--tf-muted);
  font-size: clamp(.9rem, 2.8vw, 1.02rem);
  line-height: 1.5;
}
.tf-home-intro-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
  border: 0;
}
/* The character scene shares the progress RAF; no independent animation clock. */
@media (max-width: 380px) {
  .tf-home-intro { padding: 12px; }
  .tf-home-intro-art { width: 264px; height: 210px; }
  .tf-home-intro-hint { max-width: 24ch; }
}
@media (prefers-reduced-motion: reduce) {
  /* JS also freezes the selected scene at its illustrative pose. */
  .tf-home-intro-traveller { display: none; }
}
.tf-home-intro-compact .tf-home-intro-art { height: 145px; }
.tf-home-intro-compact .tf-home-intro-title { font-size: 1.85rem; }
.tf-home-intro-compact .tf-home-intro-progress { margin-top: 20px; }
.tf-home-intro-compact .tf-home-intro-hint { margin-top: 14px; }
@media (max-height: 520px) and (min-width: 600px) {
  .tf-home-intro {
    grid-template-columns: 200px max-content;
    grid-template-rows: auto auto auto;
    align-content: center;
    justify-content: center;
    justify-items: start;
    column-gap: 28px;
    text-align: left;
    padding: 4px 12px;
  }
  .tf-home-intro .tf-home-intro-art { grid-column: 1; grid-row: 1 / 4; width: 200px; height: 130px; align-self: center; }
  .tf-home-intro-title { grid-column: 2; align-self: end; font-size: 2rem; }
  .tf-home-intro .tf-home-intro-progress { grid-column: 2; margin-top: 18px; }
  .tf-home-intro-hint { grid-column: 2; align-self: start; }
}
