.hero-film {
  position: absolute;
  inset: 0;
  overflow: hidden;
  container-type: size;
  pointer-events: none;
  opacity: 0;
}
.hero-film.playing {opacity: 1;}
.hero-film iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100cqw, 177.78cqh);
  height: max(56.25cqw, 100cqh);
  border: 0;
  transform: translate(-50%, -50%);
}
.hero-film-controls {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 0;
  display: flex;
  align-items: stretch;
  color: #eee6fa;
  background: #12101cde;
  border: 1px solid #766888;
  border-radius: 3px;
}
.hero-film-controls button, .hero-film-controls a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 11px;
  color: inherit;
  font-size: 12px;
  font-weight: 600;
}
.hero-film-controls button:hover, .hero-film-controls a:hover {background: #39294c;}
.hero-film-controls button:not([hidden]) + a {border-left: 1px solid #55495e;}
.hero-film-controls i {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #d7bcff;
}
.hero-film-controls [data-action="pause"] i {
  width: 8px;
  height: 10px;
  border: 0;
  border-inline: 3px solid #d7bcff;
}
.band-memory .memory-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #e7dafb;
}
.band-memory .memory-link:hover {color: var(--ice); text-decoration: underline;}
.memory-reason {display:block; color:var(--body); font-size:11px; line-height:1.35;}
.gate-scroll-link {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 2px;
  background: #100e1cc9;
  color: #eee5ff;
  font: 500 11px/1.4 var(--mono);
}
.gate-scroll-link svg {transform: rotate(90deg); color: #c9aaff;}
.gate-scroll-link:hover {background: #342747;}
@supports (animation-timeline: view()) {
  html[data-motion="full"] .hero {view-timeline-name: --hero-exit;}
  html[data-motion="full"] :is(.hero-art, .hero-film) {
    animation: hero-recede 1s linear both;
    animation-timeline: --hero-exit;
    animation-range: exit 0% exit 100%;
  }
  @keyframes hero-recede {to {transform: translateY(12%);}}
  html[data-motion="full"] body:has(.gate-journey) :is(.gallery-shot, .feature-link, .field-preview) {
    view-timeline-name: --field-entry;
  }
  html[data-motion="full"] body:has(.gate-journey) :is(.gallery-shot, .feature-link, .field-preview) > img {
    animation: field-settle 1s linear both;
    animation-timeline: --field-entry;
    animation-range: entry 0% cover 55%;
  }
  @keyframes field-settle {from {scale: 1.045; translate: 0 1%;} to {scale: 1; translate: 0 0;}}
}
.gate-screen {display: none;}
.gate-steps {display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 30px);}
.gate-scene {min-width: 0; --signal: #9ddffd;}
.gate-scene[data-variant="Red"] {--signal: #ffacba;}
.gate-scene[data-gate="hollow-web"] {--signal: #cfb6ff;}
.scene-photo, .gate-screen {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #443858;
  border-radius: 3px;
  background: #171420;
}
.scene-photo {aspect-ratio: 16/9;}
.scene-photo img, .gate-screen img {height: 100%; width: 100%; object-fit: cover;}
.scene-copy {padding: 19px 0 12px;}
.scene-kind {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--signal);
  font: 500 11px/1.5 var(--mono);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.scene-kind::before {content: ""; width: 7px; height: 7px; background: var(--signal); transform: rotate(45deg);}
.scene-kind span {color: #9b92aa;}
.scene-copy h3 {
  margin: 9px 0 11px;
  color: #f5effa;
  font: 700 clamp(29px, 3.4vw, 56px)/.98 var(--display);
  text-transform: uppercase;
  text-wrap: balance;
}
.scene-copy h3 + p {color: var(--body); line-height: 1.55; text-wrap: pretty;}
.scene-copy dl {display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 15px 0 5px;}
.scene-copy dt {color: var(--muted); font: 500 10px/1.5 var(--mono); letter-spacing: .8px; text-transform: uppercase;}
.scene-copy dd {color: var(--ink); font-size: 13px;}
.scene-copy .textlink {margin-top: 3px; min-height: 34px;}
.gate-journey[data-layout="pinned"] {
  --screen-height: clamp(305px, 56svh, 580px);
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.48fr);
  column-gap: clamp(24px, 4.5vw, 80px);
}
.gate-journey[data-layout="pinned"] .gate-screen {
  display: block;
  grid-area: 1 / 2;
  align-self: start;
  position: sticky;
  top: calc((100svh - var(--screen-height)) / 2);
  height: var(--screen-height);
  border-color: #514060;
  box-shadow: 0 12px 35px #04030966;
}
.gate-screen img {position: absolute; inset: 0;}
.gate-screen img + img {opacity: 0;}
.gate-screen::after {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  background:
    linear-gradient(#dfccfa99, #dfccfa99) top left / 22px 1px,
    linear-gradient(#dfccfa99, #dfccfa99) top left / 1px 22px,
    linear-gradient(#dfccfa99, #dfccfa99) bottom right / 22px 1px,
    linear-gradient(#dfccfa99, #dfccfa99) bottom right / 1px 22px;
  background-repeat: no-repeat;
}
.gate-journey[data-layout="pinned"] .gate-steps {display: block; grid-area: 1 / 1;}
.gate-journey[data-layout="pinned"] .gate-scene {display: grid; align-items: center; min-height: max(375px, 70svh);}
.gate-journey[data-layout="pinned"] .scene-photo {display: none;}
.gate-journey[data-layout="pinned"] .scene-copy {border-inline-start: 2px solid var(--signal); padding: 3px 0 3px clamp(15px, 1.8vw, 26px);}
@media (max-width: 759px) {
  .gate-steps {grid-template-columns: 1fr; gap: 30px;}
  .scene-copy {padding: 15px 1px 0;}
  .scene-copy h3 {font-size: clamp(33px, 7vw, 47px);}
}
.pack-sources {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: clamp(22px, 3vw, 44px);}
.pack-source {
  --platform: #ffbd95;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: clamp(18px, 2.3vw, 32px);
  border: 1px solid #49414d;
  border-inline-start: 3px solid var(--platform);
  border-radius: 3px;
  background: var(--panel);
}
.pack-source.modrinth {--platform: #86dfb0;}
.pack-source:hover {border-color: var(--platform); background: #1a1824;}
.pack-source h2 {font-size: clamp(29px, 3.1vw, 45px); text-transform: none;}
.pack-source p {color: var(--body); max-width: 49ch; font-size: 15px;}
.pack-source strong {display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; color: var(--platform); font-size: 14px;}
@media (min-width: 641px) {
  .band-inner {gap: 12px;}
  .band-seg {gap: 11px;}
  .band-seg + .band-seg {padding-left: clamp(12px, 1.35vw, 23px);}
}
@media (min-width: 641px) and (max-width: 1100px) {
  .band-inner {
    display:grid;
    grid-template-columns: minmax(0,.83fr) minmax(0,1.35fr) minmax(0,1fr) minmax(0,.8fr);
    gap: 9px 13px;
  }
  .band-seg.band-memory {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 9px 0 0;
    min-height: 0;
  }
  .band-memory > div {display:flex; align-items:baseline; flex-wrap:wrap; gap:3px 12px;}
  .band-memory small {margin:0;}
}
@media (min-width: 641px) and (max-width: 880px) {
  .band-inner {grid-template-columns:minmax(0,.85fr) minmax(0,1.4fr) minmax(0,1fr);}
}
@media (max-width: 640px) {
  .gate-scroll-link {position: static; transform: none; align-self: center; margin-top: -8px;}
  .pack-sources {grid-template-columns: 1fr; gap: 12px;}
  .band-seg.band-memory {
    display:flex;
    grid-column: 1 / -1;
    border-left:0;
    padding:9px 0 0;
    border-top:1px solid var(--line);
    min-height:0;
    gap:10px;
  }
  .band-memory > svg {display:block; width:20px;}
  .band-memory > div {
    display:grid;
    grid-template-columns:auto minmax(0, 1fr);
    align-items:baseline;
    gap:2px 10px;
  }
  .band-memory small {margin:0;}
  .band-memory .memory-link {font-size:13px;}
  .memory-reason {grid-column:1/-1;}
  .hero-film-controls {top:12px;}
  .hero-film-controls button, .hero-film-controls a {min-height:38px;}
}
