body > header {
  position: absolute;
  z-index: 8;
  inset: 0 0 auto;
  background: linear-gradient(#0b111caa, transparent);
}
.street-story {
  overflow-x: clip;
  background: var(--surface-dark);
  color: var(--text-light);
}
.street-film {
  max-width: 100vw;
  position: relative;
  height: max(540px, 100svh);
  isolation: isolate;
  overflow: hidden;
  background: var(--surface-dark);
}
.street-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.street-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.street-film::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(0deg, #0b111ccc, #0b111c55 17%, transparent 40%);
}
.street-copy {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: calc(76px + env(safe-area-inset-bottom));
  text-align: center;
  pointer-events: none;
}
.street-copy > div {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}
.hero-mark {
  width: 52px;
  height: 44px;
  margin: 0 auto 15px;
}
.street-copy h1 {
  font: 400 clamp(34px, 3.3vw, 48px)/1.12 var(--serif);
  letter-spacing: -0.035em;
  color: var(--text-light);
  text-shadow: 0 2px 15px #0008;
}
.street-copy p {
  margin-top: 7px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-light);
  text-shadow: 0 1px 10px #0009;
}
.appstore-badge {
  display: inline-block;
  margin-top: 21px;
  pointer-events: auto;
  border-radius: 7px;
}
.appstore-badge img {
  width: 156px;
  height: 52px;
}
.street-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  z-index: 4;
  transform: scaleX(0);
  transform-origin: left;
}
.street-unavailable .street-stage,
.street-stage:not([data-ready="true"]) {
  background: var(--surface-dark) url(assets/film-aksam.webp) center/cover no-repeat;
}
@media (max-width: 800px) and (orientation: portrait) {
  .street-film {
    height: max(580px, 100svh);
  }
  .street-copy {
    bottom: calc(78px + env(safe-area-inset-bottom));
  }
  .hero-mark {
    width: 44px;
    height: 37px;
    margin-bottom: 12px;
  }
  .street-copy h1 {
    font-size: 36px;
  }
  .street-copy p {
    font-size: 15px;
  }
  .appstore-badge {
    margin-top: 18px;
  }
  .appstore-badge img {
    width: 144px;
    height: 48px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .street-progress {
    visibility: hidden;
  }
}

.street-stage canvas { opacity: 0; }
.street-stage[data-ready="true"] canvas { opacity: 1; }
.street-guide {
  position: absolute;
  z-index: 3;
  bottom: calc(16px + env(safe-area-inset-bottom));
  inset-inline: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
}
.street-guide span { display: block; }
.street-guide a { display: inline-block; padding: 6px 10px; text-decoration: underline; text-underline-offset: 4px; }
.street-loading:not(:empty)::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  border: 1px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: street-spin .8s linear infinite;
}
@keyframes street-spin { to { transform: rotate(360deg); } }
