.overview {
  color: #102e45;
  background: #d2e4f0;
  padding-block: clamp(66px, 9vw, 165px) clamp(54px, 6.5vw, 110px);
}
.range-layout,
.overview .run-loop {
  width: min(100%, 1820px);
  margin-inline: auto;
}
.range-layout {
  display: grid;
  grid-template-columns: minmax(0, .83fr) minmax(0, 1.55fr);
  align-items: center;
  gap: clamp(32px, 5vw, 100px);
}
.range-copy { max-width: 51ch; }
.range-kicker {
  font: 700 clamp(11px, .85vw, 15px)/1.4 var(--body);
  letter-spacing: .13em;
  color: #34536c;
}
#overview-title {
  font-family: Georgia, "Songti SC", SimSun, serif;
  font-size: clamp(51px, 5.25vw, 102px);
  font-weight: 400;
  line-height: .99;
  letter-spacing: -.067em;
  text-wrap: balance;
  margin: .2em 0 .45em;
}
html[lang=zh-CN] #overview-title {
  font-size: clamp(46px, 5.2vw, 96px);
  letter-spacing: -.055em;
  line-height: 1.16;
}
.range-copy > p:not(.range-kicker) {
  font-size: clamp(16px, 1.15vw, 22px);
  line-height: 1.7;
  margin-block: .7em;
}
.range-actions { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-top: clamp(20px, 2.4vw, 40px); }
.range-link, .range-notes { font: 700 clamp(14px, .97vw, 18px)/1.3 var(--body); }
.range-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 13px 22px;
  min-height: 45px;
  color: white;
  background: #143f99;
  border-radius: 999px;
}
.range-link:hover { background: #092962; }
.range-link > span:last-child { font-size: 1.28em; line-height: 1; }
.range-notes { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: .25em; }
.range-shot { width: 100%; min-width: 0; align-self: center; }
.range-shot button {
  display: block;
  width: 100%;
  padding: 0;
  position: relative;
  overflow: hidden;
  background: #5d6267;
  aspect-ratio: 2.1;
}
.range-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 47%;
  transform: scale(1.14);
  transition: scale .45s cubic-bezier(.2,.75,.2,1);
}
@media (hover: hover) { .range-shot button:hover img { scale: 1.025; } }
.range-shot .image-expand { right: 10px; bottom: 10px; color: white; background: #123272; }
.range-shot figcaption {
  display: flex;
  justify-content: space-between;
  gap: 8px 20px;
  flex-wrap: wrap;
  border-bottom: 1px solid #99b6cc;
  padding: 11px 0;
  font: 400 clamp(12px, .86vw, 16px)/1.45 var(--body);
}
.range-shot figcaption > :first-child { font-weight: 700; }
.overview .run-loop {
  padding-top: clamp(44px, 6.3vw, 105px);
  column-gap: clamp(24px, 3.5vw, 70px);
}
.overview .run-loop li { border-top: 1px solid #91aec2; padding-top: 16px; }
.overview .run-loop .loop-step { color: #24548a; font-size: clamp(22px, 2.3vw, 38px); }
.overview .run-loop h3 { margin-block: 6px; font-size: clamp(20px, 1.8vw, 30px); }
.overview .run-loop p { font-size: clamp(15px, 1.02vw, 19px); color: #355168; }
.masthead::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: -1px;
  height: 3px;
  background: #79deff;
  transform: scaleX(var(--chapter-progress, 0));
  transform-origin: left;
  transition: transform .5s cubic-bezier(.24,.75,.25,1);
  pointer-events: none;
}
.chapter-marker {
  position: fixed;
  z-index: 40;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 15px;
  font: 700 13px/1.4 var(--body);
  color: white;
  background: #122b50;
  border-inline-start: 3px solid #79deff;
  opacity: 0;
  pointer-events: none;
}
.chapter-marker small { color: #bcdaf4; font-size: 11px; font-variant-numeric: tabular-nums; }
html.reduce-motion .chapter-marker { display: none; }
html.allow-motion [data-scroll-reveal="waiting"] { opacity: 0; }
html.allow-motion [data-scroll-reveal="waiting"]:is(button, a, details, :has(button, a, summary)):focus-within { opacity: 1; }
html.allow-motion [data-scroll-reveal="visible"] { animation: range-block-in .78s cubic-bezier(.18,.61,.2,1) both; }
html[data-reading-motion="fade"] :is(p,h2,h3,.eyebrow,.weapon-type)[data-scroll-reveal="waiting"] { opacity: 0; }
.reading-host { position: relative; }
[data-scroll-reveal="reading"]:has(> .reading-overlay) { color: transparent !important; }
.reading-overlay {
  position: absolute;
  inset: 0;
  padding: inherit;
  color: var(--reading-ink);
  pointer-events: none;
  user-select: none;
}
.reading-line > span::before { content: attr(data-ink); }
.reading-line {
  display: block;
  clip-path: inset(-.13em -.15em -.17em);
}
.reading-line > span {
  display: block;
  white-space: nowrap;
  animation: range-line-in .88s cubic-bezier(.2,.65,.22,1) both;
  animation-delay: calc(95ms + var(--line-delay));
}
@keyframes range-line-in {
  from { opacity: 0; transform: translateY(.92em); }
  to { opacity: 1; transform: translateY(0); }
}
html.reduce-motion[data-reading-motion="fade"] .reading-line > span {
  animation: range-line-fade .72s ease-out both !important;
  animation-delay: calc(65ms + var(--line-delay)) !important;
}
@keyframes range-line-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes range-block-in {
  from { opacity: .15; translate: 0 22px; }
  to { opacity: 1; translate: 0 0; }
}
html img[data-photo-reveal="waiting"] { opacity: 0; animation: none; }
html img[data-photo-reveal="shown"] { opacity: 1; animation: none; }
html.allow-motion img[data-photo-reveal="entering"] {
  animation: mecha-photo-rise 960ms cubic-bezier(.26,.56,.25,1) both;
}
@keyframes mecha-photo-rise {
  0% { opacity: 0; translate: 0 25px; }
  38% { opacity: .4; }
  100% { opacity: 1; translate: 0 0; }
}
html.reduce-motion[data-reading-motion="fade"] img[data-photo-reveal="entering"] {
  animation: mecha-photo-fade 840ms ease-in-out both !important;
}
@keyframes mecha-photo-fade { from { opacity: 0; } to { opacity: 1; } }
.media-load-status {
  position: absolute; z-index: 6; inset: auto auto 8px 8px;
  padding: 7px 12px; margin: 0; background: #11264a; color: white;
  font: 600 13px/1.4 var(--body);
}
@media print {
  html img[data-photo-reveal] { opacity: 1 !important; translate: none !important; animation: none !important; }
  html [data-scroll-reveal] { opacity: 1 !important; animation: none !important; }
  [data-scroll-reveal="reading"]:has(> .reading-overlay) { color: var(--reading-ink) !important; }
  .reading-overlay { display: none; }
}
@media (max-width: 850px) {
  .range-layout { grid-template-columns: 1fr; gap: 30px; }
  .range-copy { max-width: 60ch; }
  #overview-title { margin-bottom: .36em; }
  .range-shot button { aspect-ratio: 2; }
  .overview .run-loop { row-gap: 20px; }
}
@media (max-width: 600px) {
  .overview { padding-top: 54px; }
  #overview-title { font-size: clamp(45px, 11.7vw, 64px); }
  html[lang=zh-CN] #overview-title { font-size: clamp(39px, 10.5vw, 57px); }
  .range-shot button { aspect-ratio: 1.83; }
  .range-actions { gap: 8px 18px; }
  .range-link { padding-inline: 16px; }
  .overview .run-loop { padding-top: 30px; }
  .overview .run-loop h3 { margin-top: 0; }
  .chapter-marker { font-size: 12px; padding: 6px 11px; }
}

/* The desktop hangar has room for a full-height figure above its selector. */
@media (min-width: 1101px) {
  .frames .frame-controls { order: 2; }
  .frames .frame-stage { order: 1; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .frames .frame-controls { margin-block: 12px 20px; padding: 8px 12px; gap: 14px; }
  .frame-stage {
    display: grid; grid-template-columns: 1.12fr 1fr; align-items: center;
    gap: clamp(24px, 4vw, 44px); height: auto; min-height: 0;
  }
  .frame-stage[data-frame-index] #frame-image.pose-art {
    position: relative; inset: auto; grid-area: 1 / 1;
    width: 100%; height: clamp(350px, 55vw, 500px); object-fit: contain;
  }
  .frame-description { position: relative; inset: auto; grid-area: 1 / 2; width: auto; padding-block: 20px; }
  .frame-description h3 { font-size: clamp(52px, 6.8vw, 72px); }
  .frames .frame-counter { bottom: 0; }
}
@media (min-width: 761px) and (max-width: 900px) {
  .combat-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .combat-description { max-width: 60ch; }
}
@media (max-width: 760px) {
  .frames { --portrait-height: clamp(242px, 83vw, 410px); }
  .frames .frame-controls { padding: 0; margin: 14px 0 12px; gap: 0; }
  .frame-tabs, .combat-tabs {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible; gap: 4px; padding: 4px;
  }
  .frame-tabs button, .combat-tabs button {
    min-width: 0; min-height: 48px; padding: 7px 3px;
    text-align: center; overflow-wrap: anywhere;
  }
  .frame-tabs small { font-size: clamp(10px, 2.65vw, 13px); letter-spacing: 0; line-height: 1.35; }
  .frame-tabs button > span { font-size: clamp(20px, 5.7vw, 28px); line-height: 1; }
  .frame-arrows {
    position: absolute; top: calc(100% + 12px + var(--portrait-height) / 2);
    left: 0; width: 100%; margin: 0; justify-content: space-between;
    translate: 0 -50%; pointer-events: none;
  }
  .frame-arrows button { width: 44px; height: 44px; pointer-events: auto; }
  .frame-stage { display: grid; gap: 14px; height: auto; min-height: 0; }
  .frame-stage[data-frame-index] #frame-image.pose-art {
    position: relative; inset: auto; grid-area: 1 / 1; justify-self: center;
    width: calc(100% - 46px); height: var(--portrait-height); object-fit: contain;
  }
  .frame-slash { left: 67%; top: 10px; height: calc(var(--portrait-height) - 20px); width: 8px; }
  .frame-description { position: relative; inset: auto; grid-area: 2 / 1; width: auto; }
  .frame-description h3 { font-size: clamp(44px, 12vw, 64px); margin: 7px 0 0; }
  .frame-local { margin: 3px 0 10px; font-size: 20px; line-height: 1.35; }
  .frame-description > p:not(.frame-category):not(.frame-local):not(.render-note) { font-size: 17px; line-height: 1.65; }
  .frame-description .underline-link { margin-top: 12px; }
  .combat-tabs button { display: grid; justify-items: center; align-content: center; gap: 3px; font-size: clamp(21px, 5.8vw, 28px); line-height: 1; }
  .combat-tabs button span { margin: 0; font-size: clamp(10px, 2.65vw, 13px); line-height: 1.2; }
}
