.hero-actions { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 1rem; }
.intro-replay {
  background: none; border: 0; padding: .65rem 0; color: #fae4ba; font-weight: 700; font-size: .9rem;
  text-decoration: underline; text-decoration-color: #e8c58c80; text-underline-offset: .28em;
}
.intro-replay:hover { color: #fff7e6; text-decoration-color: currentColor; }
.intro-dialog {
  width: min(1060px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem);
  border: 1px solid #c0ac83; border-radius: 1.2rem; background: #f8f4e9;
}
.intro-dialog::backdrop { background: #112720d6; }
.intro-shell { display: grid; grid-template-columns: 1.14fr 1fr; position: relative; }
.intro-world {
  min-width: 0; min-height: clamp(340px, 67dvh, 530px); position: relative;
  display: grid; place-items: center; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse at 45% 38%, #376855 0, #244c3e 46%, #12322a 100%);
}
.intro-world::before {
  position: absolute; z-index: -1; inset: 0; content: "";
  background: repeating-linear-gradient(125deg, #fff0be07 0 1px, transparent 1px 62px);
  mask-image: radial-gradient(#0009, transparent 75%);
}
.intro-field {
  position: relative; width: min(97%, 490px, 55dvh); aspect-ratio: 470 / 485;
  container-type: inline-size;
}
.intro-orbit {
  position: absolute; inset: 8% 8% 9%; border-radius: 50%; border: 1px solid #f5dfa94b;
  box-shadow: 0 0 0 12px #f5dfa90e, 0 0 0 24px #f5dfa916, inset 0 0 75px #f5dfa912;
  transform: rotate(-11deg); opacity: .75;
  transition: transform 1s ease, opacity .65s ease;
}
.intro-host {
  position: absolute; inset: 0 5% 0; display: grid; justify-items: center;
  pointer-events: none;
  transform-origin: 50% 92%; transition: transform .95s cubic-bezier(.2,.7,.2,1), opacity .7s ease;
}
.intro-character { position: absolute; inset: 0; filter: drop-shadow(0 14px 13px #091f1999); }
.intro-character :is(img, canvas) {
  display: block; width: 100%; height: 100%; object-fit: contain;
}
.intro-character canvas, .intro-host[data-animated] img { display: none; }
.intro-host[data-animated] canvas { display: block; }
.intro-world[data-scene="welcome"] .intro-character { animation: intro-host-enter .32s ease-out both; }
@keyframes intro-host-enter {
  from { opacity: 0; }
}
.intro-world[data-paused="true"] .intro-character { animation: none; }
.intro-world[data-scene="friends"] .intro-host { transform: scale(.79); opacity: .96; }
.intro-world[data-scene="map"] .intro-host { transform: translateX(-35%) scale(.84); opacity: 0; }
.intro-world[data-scene="local"] .intro-host { z-index: 1; transform: translateX(-36%) scale(.43); }
.intro-world:is([data-scene="map"], [data-scene="local"]) .intro-orbit { transform: scale(1.08); opacity: .33; }
.intro-map {
  display: block; position: absolute; width: 100%; height: 100%; opacity: 0;
  transform: scale(.91); filter: drop-shadow(0 9px 7px #112b2570);
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1), opacity .8s ease;
}
.intro-world:is([data-scene="map"], [data-scene="local"]) .intro-map { opacity: 1; transform: scale(1); }
.intro-portraits { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
.intro-pin {
  --size: 8.3cqw;
  position: absolute; left: var(--from-x); top: var(--from-y); z-index: 1;
  width: var(--size); height: var(--size); padding: 2px; border: 1px solid #f6dba2;
  border-radius: 50%; background: #f8f3d9; box-shadow: 0 4px 12px #07191188;
  transform: translate(-50%, -50%) scale(.45); opacity: 0;
  transition-property: left, top, width, height, transform, opacity;
  transition-duration: 1.02s,1.02s,1.02s,1.02s,.58s,.52s;
  transition-timing-function: cubic-bezier(.22,.7,.24,1);
  transition-delay: var(--map-delay, 0s);
}
.intro-pin img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.intro-pin.intro-featured { --size: 19cqw; z-index: 2; }
.intro-world[data-scene="friends"] .intro-pin {
  opacity: 1; transform: translate(-50%, -50%) scale(1);
  transition-delay: var(--cast-delay);
}
.intro-pin .intro-pin-label {
  display: block; position: absolute; width: max-content; max-width: 142px; left: 50%; top: 100%;
  transform: translate(-50%, .16rem); padding: .16rem .42rem .2rem; border: 1px solid #e7cca555;
  color: #fff2d3; background: #15372e; border-radius: 8px; font: 700 clamp(.65rem, 2.6cqw, .86rem)/1.15 var(--sans);
  opacity: 0; visibility: hidden; transition: opacity .22s ease; white-space: nowrap;
}
.intro-world[data-scene="friends"] .intro-featured .intro-pin-label {
  opacity: 1; visibility: visible; transition-delay: calc(var(--cast-delay) + .18s);
}

.intro-world[data-scene="friends"][data-cast-sync] .intro-pin {
  transition-delay: 0s;
  transition-duration: .24s;
}
.intro-world[data-scene="friends"][data-cast-sync] .intro-pin:not([data-revealed]) {
  opacity: 0; visibility: hidden; transform: translate(-50%, -50%) scale(.8); pointer-events: none;
}
.intro-world[data-scene="friends"][data-cast-sync] .intro-featured .intro-pin-label {
  transition-delay: 0s;
}
.intro-world[data-scene="friends"][data-cast-sync] .intro-featured:not([data-revealed]) .intro-pin-label {
  visibility: hidden;
}
.intro-world[data-scene="friends"] .intro-featured { pointer-events: auto; }
.intro-world[data-scene="friends"] .intro-featured[data-narrated] {
  z-index: 3; box-shadow: 0 0 0 3px #f6dba2, 0 4px 18px #07191188;
}
.intro-world[data-scene="friends"] .intro-featured[data-narrated] .intro-pin-label {
  border-color: #f6dba2; background: #f6dba2; color: #173b32;
}
.intro-world[data-scene="friends"] .intro-featured:is(:hover, :focus-visible) {
  box-shadow: 0 0 0 2px #f6dba2, 0 4px 12px #07191188;
}
.intro-world:is([data-scene="map"], [data-scene="local"]) .intro-pin {
  --size: 4.65cqw; left: var(--map-x); top: var(--map-y); opacity: 1;
  padding: 1px; transform: translate(-50%, -50%) scale(1); pointer-events: auto;
}
.intro-world:is([data-scene="map"], [data-scene="local"]) .intro-pin:is(:hover,:focus-visible) {
  z-index: 3; box-shadow: 0 0 0 2px #16392e, 0 2px 12px #102b25aa;
}
.intro-world:is([data-scene="map"], [data-scene="local"]) .intro-pin:is(:hover,:focus-visible) .intro-pin-label {
  opacity: 1; visibility: visible;
}
.intro-map-credit {
  position: absolute; bottom: .48rem; left: .85rem; z-index: 2; color: #f2e0bb;
  font-size: .68rem; text-underline-offset: .2em;
  visibility: hidden; opacity: 0; transition: opacity .3s ease;
}
.intro-world:is([data-scene="map"], [data-scene="local"]) .intro-map-credit { visibility: visible; opacity: 1; }

.intro-copy {
  display: grid; grid-template-rows: auto 1fr auto; gap: 1.15rem; min-width: 0;
  padding: 1.05rem clamp(1.1rem, 3vw, 2.35rem) 1.5rem;
  background: radial-gradient(ellipse at 100% 30%, #fffdf5, #f7f0df);
}
.intro-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .55rem; align-items: center; }
.intro-language select { min-height: 39px; width: auto; background-color: #fffaf1; font-size: .9rem; }
.intro-dismiss {
  display: inline-flex; align-items: center; justify-content: end; gap: .34rem; min-height: 39px;
  padding: .35rem .05rem .35rem .32rem; background: transparent; border: 0; font-weight: 700;
  color: #38564b; font-size: .88rem;
}
.intro-dismiss:hover { color: var(--rust); }
.intro-dismiss svg { width: 1.13rem; height: 1.13rem; vertical-align: middle; }
.intro-story { align-self: center; padding-block: .35rem; }
.intro-brand {
  display: flex; align-items: center; gap: .6rem; font-size: .78rem; letter-spacing: .06em;
  font-weight: 700; color: #5a5d4a;
}
.intro-story h2 {
  color: var(--forest); margin-block: .62rem .74rem; font-weight: 550; font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 4rem); line-height: .99; letter-spacing: -.043em; text-wrap: balance;
}
.intro-story #intro-caption { max-width: 38ch; color: #405048; line-height: 1.48; font-size: clamp(1rem, 1.7vw, 1.16rem); }
.intro-actions { min-width: 0; }
.intro-progress { display: flex; gap: .36rem; width: min(160px, 100%); margin-bottom: .78rem; }
.intro-progress i { flex: 1; height: .22rem; border-radius: 1rem; background: #c9cebc; }
.intro-progress i.current { background: #426454; }
.intro-progress i.past { background: #859e87; }
.intro-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: .44rem; }
.intro-buttons :is(.button,.intro-pause) { min-height: 43px; font-size: .87rem; }
.intro-buttons .button { padding-inline: .84rem; }
.intro-talk { display: inline-flex; align-items: center; gap: .38rem; min-height: 38px; margin-top: .25rem; }
.intro-talk svg { display: block; width: 1rem; height: 1rem; }
.intro-audio-icon { font-size: 1rem; font-weight: 900; }
.intro-pause {
  display: grid; place-items: center; min-width: 43px; padding: 0 .48rem; color: var(--forest);
  border: 1px solid #bac8bd; border-radius: .46rem; background: #fffaf2;
}
.intro-pause-icon { width: .75rem; height: .85rem; border-inline: 3px solid currentColor; }
.intro-pause.is-paused .intro-pause-icon {
  width: 0; height: 0; border: 0;
  border-top: .42rem solid transparent; border-bottom: .42rem solid transparent;
  border-left: .65rem solid currentColor;
}
.intro-pause:hover { background: #e8eee3; }
.intro-pause[hidden] { display: none; }
.intro-voice-note { margin: .45rem 0 0; color: var(--muted); font-size: .77rem; }
.intro-audio-status { margin-top: .55rem; font-size: .83rem; line-height: 1.3; color: var(--rust); }
.intro-audio-status:empty { display: none; }

@media (max-width: 690px) and (min-height: 471px) {
  .intro-dialog { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); border-radius: .9rem; }
  .intro-shell { grid-template-columns: 1fr; }
  .intro-world { margin-top: 3rem; min-height: 0; }
  .intro-field { width: min(82%, 53dvh, 335px); }
  .intro-copy { display: grid; grid-template-rows: 1fr auto; gap: .62rem; padding: .75rem 1rem 1rem; }
  .intro-toolbar { position: absolute; top: .27rem; left: .85rem; right: .85rem; }
  .intro-story { padding-block: .15rem; }
  .intro-brand { font-size: .69rem; }
  .intro-story h2 { font-size: clamp(1.78rem, 6vw, 2.55rem); margin-block: .32rem .41rem; }
  .intro-story #intro-caption { font-size: .98rem; line-height: 1.33; max-width: 49ch; }
  .intro-progress { margin-bottom: .52rem; }
}
@media (max-height: 470px) {
  .intro-world { min-height: 250px; }
  .intro-field { width: min(95%, 65dvh, 365px); }
  .intro-copy { padding: .58rem .85rem; gap: .5rem; }
  .intro-story h2 { font-size: clamp(1.4rem, 4.5vw, 2.15rem); }
  .intro-story #intro-caption { font-size: .91rem; line-height: 1.32; }
}
@media (max-width: 420px) and (max-height: 470px) {
  .intro-dialog { width: calc(100% - .65rem); max-height: calc(100dvh - .65rem); }
  .intro-shell { grid-template-columns: 1fr; }
  .intro-world { margin-top: 3rem; min-height: 0; }
  .intro-field { width: min(70%, 50dvh); }
  .intro-toolbar { position: absolute; top: .24rem; left: .85rem; right: .85rem; }
  .intro-copy { grid-template-rows: 1fr auto; }
}
@media (prefers-reduced-motion: reduce) {
  .intro-world *, .intro-world *::before { animation: none !important; transition: none !important; }
  .intro-host[data-animated] img { display: block; }
  .intro-host[data-animated] canvas { display: none; }
}
