@font-face {
  font-family: Montserrat;
  src: url("../fonts/Montserrat-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Cinzel;
  src: url("../fonts/Cinzel-Regular-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2190-2199;
}
@font-face {
  font-family: Cinzel;
  src: url("../fonts/Cinzel-Regular-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-024F, U+1E00-1EFF;
}

:root {
  color-scheme: dark;
  --ink: #100d1b;
  --text: #f7effc;
  --muted: #d4c8de;
  --gold: #f6d6a2;
  --lilac: #e1bcff;
  --rule: rgb(241 211 170 / .23);
  --gutter: clamp(1rem, 4.6vw, 8rem);
  --header: 4.1rem;
  --display: Cinzel, Georgia, serif;
  font-family: Montserrat, system-ui, sans-serif;
  background: var(--ink);
  color: var(--text);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 1rem);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #ffd89b; outline-offset: 4px; }
::selection { background: #f5d2ff; color: #170d23; }
.sr-only { position: absolute; overflow: hidden; clip-path: inset(50%); width: 1px; height: 1px; white-space: nowrap; }
.skip-link { position: fixed; z-index: 20; top: .5rem; left: .6rem; padding: .8rem; color: #170d23; background: var(--gold); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.patch-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: var(--header);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0 clamp(.75rem, 2.9vw, 4rem);
  background: rgb(15 11 24 / .96);
  border-bottom: 1px solid var(--rule);
}
.brand { display: inline-flex; align-items: center; gap: .65rem; justify-self: start; font-family: var(--display); font-size: .68rem; line-height: 1.05; letter-spacing: .075em; }
.brand b { font-size: .82rem; color: var(--gold); }
.brand img { object-fit: contain; }
.header-chapters, .header-controls, .languages { display: flex; align-items: center; }
.header-chapters { gap: clamp(.75rem, 2vw, 2.25rem); font-size: .77rem; font-weight: 650; color: var(--muted); }
.header-chapters a { position: relative; padding-block: 1.4rem; white-space: nowrap; }
.header-chapters a:hover, .header-chapters a[aria-current] { color: var(--gold); }
.header-chapters a[aria-current]::after { content: ""; position: absolute; bottom: 0; inset-inline: 0; height: 2px; background: var(--gold); box-shadow: 0 0 14px var(--gold); }
.header-controls { justify-self: end; gap: .65rem; }
.languages { gap: .12rem; border: 1px solid var(--rule); padding: .19rem; font-weight: 750; font-size: .74rem; }
.languages a, .motion-toggle { display: grid; place-items: center; min-width: 2.2rem; min-height: 2.2rem; }
.languages a[aria-current] { background: var(--gold); color: #22152a; }
.languages a:hover:not([aria-current]) { background: #382641; }
.motion-toggle { cursor: pointer; background: transparent; border: 1px solid transparent; color: var(--gold); }
.motion-toggle:hover { border-color: var(--rule); }
.motion-toggle .play-icon, .motion-toggle[aria-pressed="true"] .pause-icon { display: none; }
.motion-toggle[aria-pressed="true"] .play-icon { display: initial; }
.reading-progress { position: absolute; bottom: -1px; inset-inline: 0; height: 2px; background: linear-gradient(90deg, #70d9d7, #bd88ff 51%, #ffe0a7); transform: scaleX(0); transform-origin: left; pointer-events: none; }

.cover {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  place-items: center;
  min-height: clamp(36rem, calc(100svh - 8.7rem), 70rem);
  text-align: center;
  background: #121024;
  border-bottom: 1px solid var(--rule);
}
.cover-city, .cover-veil, .cover-motes, .cover-portrait { position: absolute; pointer-events: none; }
.cover-city { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 46%; opacity: .88; }
.cover::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: radial-gradient(ellipse at 50% 47%, #19102ddd 0, #19102d99 22%, transparent 54%),
              linear-gradient(0deg, #100d1b, transparent 34%, transparent 75%, #18112073);
  pointer-events: none;
}
.cover-orbit {
  z-index: 2;
  position: absolute;
  top: 48%;
  left: 50%;
  width: clamp(22rem, 46vw, 70rem);
  aspect-ratio: 1;
  border: 1px solid #d6b1f044;
  border-radius: 50%;
  box-shadow: 0 0 65px #af65ff57, inset 0 0 50px #9450ce4b;
  animation: orbit-glow 7s ease-in-out infinite;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cover-orbit::before, .cover-orbit::after { content: ""; position: absolute; border-radius: 50%; }
.cover-orbit::before { inset: 3%; border: 1px dashed #e9cfeb56; animation: circle-turn 100s linear infinite; }
.cover-orbit::after { inset: 12%; border: 1px solid #f6d3ff32; border-block-color: #e8c8ff83; animation: circle-turn 32s linear infinite reverse; }
.cover-portrait {
  z-index: 3;
  display: block;
  bottom: -6%;
  height: 96%;
  width: 42%;
  mask-image: linear-gradient(#000 64%, #000c 77%, transparent 99%);
  animation: portrait-float 8s ease-in-out infinite;
}
.cover-portrait img { max-width: none; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.cover-nuwa { left: -5%; filter: drop-shadow(0 0 35px #5f90d47a); }
.cover-nara { right: -5%; animation-delay: -3.3s; filter: drop-shadow(0 0 35px #9a6acf75); }
.cover-veil {
  z-index: 4;
  inset: 0;
  background: radial-gradient(ellipse at 50% 90%, #b776ff5c, transparent 55%),
              radial-gradient(ellipse at 4% 95%, #5bd9d04a, transparent 56%);
  mask-image: linear-gradient(transparent 54%, #000 88%, transparent);
  animation: mist-wander 13s ease-in-out infinite alternate;
}
.cover-motes, .hero-snow { z-index: 5; inset: 0; }
.mote {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--d);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--spark, #e1bdff);
  box-shadow: 0 0 .65rem .1rem currentColor;
  color: var(--spark, #e1bdff);
  opacity: .22;
  animation: rising-mote var(--duration) var(--delay) linear infinite;
}
.cover-copy { position: relative; z-index: 6; display: grid; justify-items: center; width: min(60vw, 65rem); padding-block: 3rem; }
.cover-copy h1 { width: 100%; }
.cover-copy h1 img { width: 100%; height: auto; filter: drop-shadow(0 8px 12px #130821) drop-shadow(0 0 23px #b48bff66); animation: title-entrance .95s ease-out both; }
.cover-heading { margin-top: .55rem; font-family: var(--display); font-size: clamp(1.45rem, 3.15vw, 3.5rem); letter-spacing: .095em; color: #fff0d8; text-shadow: 0 2px 20px #210e2b; }
.cover-description { margin-top: .65rem; max-width: 42ch; color: #f9ecfd; text-shadow: 0 1px 8px #090611, 0 0 14px #090611; font-size: clamp(.94rem, 1.3vw, 1.17rem); font-weight: 550; line-height: 1.6; }
.cover .cta { margin-top: 1.55rem; }

.cta {
  display: inline-flex;
  gap: .9rem;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: .7rem 1.15rem;
  font-size: .82rem;
  font-weight: 760;
  color: #221428;
  border: 1px solid #ffdca9;
  background: linear-gradient(115deg, #e9bea0, #fff0cc 58%, #f1c68c);
  transition: box-shadow .25s, background-color .25s, transform .25s;
}
.cta:hover { box-shadow: 0 0 24px #fed79965; transform: translateY(-2px); }
.cta-outline { color: var(--gold); background: #191123; border-color: #b6936a; }
.cta-outline:hover { background: #322036; }
.cta > span:last-child { font-size: 1.15em; }

.chapter-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding-inline: var(--gutter); background: #161021; border-bottom: 1px solid var(--rule); }
.chapter-strip a { display: flex; align-items: center; justify-content: center; gap: .65rem; min-height: 4.65rem; padding: .65rem .55rem; color: #f0e4f7; font-size: clamp(.76rem, 1vw, .91rem); text-align: center; font-weight: 680; border-inline-end: 1px solid var(--rule); transition: color .25s, background-color .25s; }
.chapter-strip a:first-child { border-inline-start: 1px solid var(--rule); }
.chapter-strip a > span:first-child { color: var(--gold); }
.chapter-strip a:hover { color: var(--gold); background-color: #2d1c38; }

.chapter { padding: clamp(3.5rem, 7.2vw, 8.6rem) var(--gutter); border-bottom: 1px solid var(--rule); position: relative; }
.chapter-heading { max-width: 52rem; margin: 0 auto clamp(1.9rem, 3.6vw, 3.65rem); text-align: center; }
.chapter-heading h2 { margin: .38rem 0 .75rem; font: 400 clamp(2.15rem, 4.15vw, 5rem)/1.1 var(--display); letter-spacing: -.035em; color: #f7e8d8; text-wrap: balance; }
.chapter-heading > p:not(.eyebrow), .event-rewards p, .gauntlet-panel > p, .ability-list details p, .faction-copy > p:last-child, .skin-copy > p:last-child {
  color: var(--muted);
  font-size: clamp(1rem, 1.03vw, 1.12rem);
  line-height: 1.68;
}
.chapter-heading > p:not(.eyebrow) { max-width: 67ch; margin-inline: auto; }
.eyebrow { color: var(--gold); font-size: .74rem; font-weight: 780; text-transform: uppercase; letter-spacing: .15em; line-height: 1.4; }
.text-link { display: inline-block; margin-top: 1rem; color: var(--gold); text-decoration: underline; text-underline-offset: .26em; font-size: .88rem; font-weight: 690; }
.text-link:hover { color: #fff1dc; }

.event-chapter { background: radial-gradient(ellipse at 50% 10%, #261737, transparent 63%), var(--ink); }
.faction-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.8rem, 1.8vw, 2rem); }
.faction-card {
  --faction: #aef7eb;
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(16rem, 31vw, 37rem);
  overflow: clip;
  border: 1px solid #79c0c478;
  background: #15142a;
}
.faction-hunter { --faction: #e7c3ff; border-color: #c79be285; }
.faction-card img, .skin-card img, .academy-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s ease, filter .45s; }
.faction-card img { position: absolute; inset: 0; z-index: -2; }
.faction-card:hover img, .skin-card:hover img, .academy-card:hover img, .academy-card:focus-visible img { transform: scale(1.045); }
.faction-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #0d0c1afc, #0d0c1ac7 24%, transparent 66%); }
.faction-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse at 10% 82%, var(--faction), transparent 61%);
  mix-blend-mode: screen;
  opacity: .1;
  animation: faction-glow 6s ease-in-out infinite alternate;
  pointer-events: none;
}
.faction-hunter::after { animation-delay: -3s; }
.faction-copy, .skin-copy { padding: clamp(1rem, 2.25vw, 2.25rem); }
.faction-copy .eyebrow { color: var(--faction); }
.faction-copy h3, .skin-copy h3, .event-rewards h3, .hero-mechanics h3 { margin: .25rem 0 .35rem; font: 400 clamp(1.35rem, 2.5vw, 2.65rem)/1.17 var(--display); color: #fff6f8; }
.event-rewards {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 2.8rem);
  margin-top: clamp(1rem, 2.5vw, 2.4rem);
  padding: clamp(1rem, 2.55vw, 2.5rem);
  background: linear-gradient(105deg, #21132c, #1b172b 60%, #171320);
  border: 1px solid var(--rule);
}
.event-rewards > img { width: clamp(4rem, 8vw, 7rem); height: auto; filter: drop-shadow(0 0 25px #b672e96b); }
.event-rewards h3, .hero-mechanics h3 { font-size: clamp(1.3rem, 1.9vw, 2.05rem); }
.event-rewards .event-dates { margin-top: .55rem; color: var(--gold); font-size: .81rem; font-weight: 650; }

.selection-chapter { background: radial-gradient(ellipse at 80% 40%, #192837, transparent 68%), #10111c; }
.selection-grid { display: grid; grid-template-columns: minmax(0, .68fr) minmax(0, 1.7fr); align-items: center; gap: clamp(1.4rem, 4vw, 5rem); }
.selection-grid .chapter-heading, .hero-stage .chapter-heading { text-align: start; margin: 0; }
.selection-grid .chapter-heading h2, .hero-stage .chapter-heading h2 { text-wrap: initial; }
.selection-grid .chapter-heading > p, .hero-stage .chapter-heading > p { margin-inline: 0; }
.layout-frame { min-width: 0; background: #0a0f17; border: 1px solid #829bb477; padding: clamp(.35rem, .65vw, .85rem); box-shadow: 0 0 46px #5ab5d51c, inset 0 0 19px #98c8ff1a; }
.layout-shot { display: block; position: relative; aspect-ratio: 1600 / 724; }
.layout-shot img { width: 100%; height: auto; }
[data-art] { cursor: zoom-in; }
.layout-shot::after, .skin-card > a::after { content: "+"; position: absolute; right: .65rem; top: .65rem; display: grid; place-items: center; width: 2rem; aspect-ratio: 1; background: #130e21e8; color: var(--gold); border: 1px solid var(--rule); font-size: 1.2rem; }
.view-switch { display: flex; flex-wrap: wrap; gap: .4rem; margin-block: 1.15rem .7rem; }
.view-switch button {
  cursor: pointer;
  border: 1px solid #a9a2c14d;
  background: #171827;
  color: #e5e1f1;
  padding: .53rem .7rem;
  min-height: 2.7rem;
  font-size: .8rem;
  font-weight: 740;
  transition: background-color .25s, border-color .25s;
}
.view-switch button:hover, .view-switch button[aria-pressed="true"] { background: #243950; border-color: #a7dcef; color: #e7faff; }
#layout-description { min-height: 3.35em; font-size: .89rem; }

.hero-chapter { padding: 0 0 clamp(3.5rem, 7vw, 8rem); background: radial-gradient(ellipse at 53% 26%, #152a48, transparent 60%), #0e1424; }
.hero-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: 1.5rem;
  overflow: clip;
  padding: clamp(2.75rem, 5vw, 6rem) var(--gutter);
  min-height: clamp(30rem, 43vw, 54rem);
}
.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background: linear-gradient(90deg, #0f1729 7%, #0f1729d9 35%, #13264250 80%),
              linear-gradient(0deg, #0e1424, transparent 45%),
              url("../image/banner/banner_100.webp") center 38% / cover;
  opacity: .66;
}
.hero-art {
  position: absolute;
  right: calc(var(--gutter) * .45);
  bottom: 0;
  z-index: -1;
  width: min(58%, 86rem);
  height: 106%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 0 45px #72affb7d);
  animation: portrait-float 8s ease-in-out infinite;
}
.hero-snow { position: absolute; pointer-events: none; --spark: #a7e4ff; }
.hero-stage h2 { color: #e7f4ff; font-size: clamp(3.4rem, 8vw, 9.6rem); text-shadow: 0 6px 35px #5792e55e; }
.hero-stage .hero-subtitle { color: #bce6ff; font-family: var(--display); font-size: clamp(1.24rem, 2.28vw, 2.4rem); margin-bottom: 1rem; line-height: 1.2; }
.hero-stage .chapter-heading .eyebrow, .hero-stage .text-link { color: #bce6ff; }
.hero-mechanics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 3rem);
  padding-inline: var(--gutter);
}
.gauntlet-panel, .ability-list { min-width: 0; padding: clamp(1rem, 2.8vw, 2.65rem); background: #131d32; border: 1px solid #8fb6e153; }
.gauntlet-panel { display: flex; flex-direction: column; text-align: center; align-items: center; overflow: clip; }
.gauntlet-art { display: grid; place-items: center; width: 100%; height: clamp(9rem, 20vw, 24rem); isolation: isolate; position: relative; }
.gauntlet-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(75%, 17rem);
  aspect-ratio: 1;
  border: 1px dashed #81caff56;
  border-radius: 50%;
  background: radial-gradient(circle, #4b86e04a, transparent 67%);
  animation: circle-turn 36s linear infinite;
}
.gauntlet-art img { width: 100%; height: 100%; min-height: 0; object-fit: contain; filter: drop-shadow(0 0 18px #82ccff6f); }
.lock-switch { justify-content: center; }
.lock-switch button { min-width: 2.7rem; }
.gauntlet-panel > p { min-height: 5em; max-width: 50ch; }
.ability-list h3 { margin-bottom: .9rem; }
.ability-list details { border-top: 1px solid #8fb6e14d; }
.ability-list details:last-child { border-bottom: 1px solid #8fb6e14d; }
.ability-list summary { display: flex; align-items: center; gap: .75rem; cursor: pointer; list-style: none; padding: .58rem .35rem; font-weight: 680; font-size: clamp(.9rem, 1vw, 1rem); }
.ability-list summary::-webkit-details-marker { display: none; }
.ability-list summary::after { content: "+"; color: #c5eaff; margin-inline-start: auto; }
.ability-list details[open] summary::after { content: "−"; }
.ability-list details[open] summary, .ability-list summary:hover { background: #8fc7ff14; color: #d3efff; }
.ability-list summary img { flex-shrink: 0; border: 1px solid #87c6ee66; border-radius: .2rem; }
.ability-list details p { white-space: pre-line; font-size: .9rem; padding: .68rem .35rem .9rem; }

.skins-chapter { background: radial-gradient(ellipse at 79% 90%, #2f1a37, transparent 55%), #15121f; }
.skin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 1.55vw, 2rem); }
.skin-card { --skin: #a4e9ff; min-width: 0; background: #141b2a; border: 1px solid color-mix(in srgb, var(--skin) 36%, transparent); }
.skin-card[data-skin="infernal"] { --skin: #ffc296; background: #271819; }
.skin-card[data-skin="academy"] { --skin: #edc1ff; background: #21162e; }
.skin-card > a { position: relative; display: block; aspect-ratio: 1.38; overflow: clip; }
.skin-card > a:focus-visible { outline-offset: -4px; }
.skin-card .eyebrow { color: var(--skin); }
.skin-copy h3 { font-size: clamp(1.15rem, 1.85vw, 2rem); text-wrap: balance; }

.academy-chapter { isolation: isolate; text-align: center; background: #1f142c; }
.academy-chapter::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse at 50% 20%, #a977ac54, transparent 58%),
              linear-gradient(#1e152edb, #20172de9 58%, #14101e),
              url("../image/banner/SKINS/akademia/95.webp") center 44% / cover;
}
.academy-chapter h2 { color: #ffe9bf; }
.academy-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.55rem, 1.4vw, 1.5rem); }
.academy-card {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: flex;
  align-items: end;
  min-height: clamp(13rem, 27vw, 33rem);
  color: #fff1d8;
  background: #21172d;
  border: 1px solid #d8ad747d;
}
.academy-card img { position: absolute; inset: 0; z-index: -2; object-position: 50% 48%; }
.academy-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #180f23, #180f23ad 24%, transparent 59%); }
.academy-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, #ffddab38 48%, transparent 60%);
  transform: translateX(-130%);
  animation: academy-shine 11s ease-in-out infinite;
}
.academy-card:nth-child(2)::after { animation-delay: -2s; }
.academy-card:nth-child(3)::after { animation-delay: -4s; }
.academy-card:nth-child(4)::after { animation-delay: -6s; }
.academy-card:hover { border-color: #ffdb9f; }
.academy-name { width: 100%; padding: .7rem .4rem 1.1rem; }
.academy-name b { display: block; font: 400 clamp(1.25rem, 2.5vw, 2.85rem)/1.14 var(--display); }
.academy-name > span { display: block; color: #f8e4c9; font-size: clamp(.75rem, .88vw, .92rem); font-weight: 580; margin-top: .32rem; }
.academy-chapter > .cta { margin-top: 1.65rem; }

.patch-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.5rem var(--gutter); background: #100d19; color: var(--gold); font-size: .8rem; font-weight: 650; }
.patch-footer a:hover { text-decoration: underline; text-underline-offset: .22em; }
.art-dialog { width: max-content; max-width: min(94vw, 110rem); max-height: 96vh; padding: .6rem; background: #190e25; border: 1px solid #b99b7a; color: var(--text); }
.art-dialog::backdrop { background: #090510e8; backdrop-filter: blur(6px); }
.art-dialog img { max-width: 100%; max-height: 82vh; object-fit: contain; }
.art-dialog figcaption { padding: .75rem 3rem .35rem .4rem; font-size: .9rem; line-height: 1.45; }
.art-dialog form { position: absolute; top: .75rem; right: .75rem; }
.art-dialog button { width: 2.7rem; height: 2.7rem; cursor: pointer; background: #1b1429; color: var(--gold); border: 1px solid #c8a378; font-size: 1.5rem; }
.art-dialog button:hover { background: #382145; }

@keyframes title-entrance { from { opacity: .55; transform: translateY(.75rem) scale(.96); } }
@keyframes portrait-float { 50% { transform: translateY(-.7rem); } }
@keyframes circle-turn { to { transform: rotate(1turn); } }
@keyframes orbit-glow { 50% { opacity: .56; } }
@keyframes mist-wander { to { transform: translateX(7%) scale(1.12); opacity: .5; } }
@keyframes rising-mote {
  0%, 100% { transform: translate(0, 2.5rem) scale(.55); opacity: 0; }
  22%, 63% { opacity: .85; }
  99% { transform: translate(var(--drift), -7rem) scale(1.15); opacity: 0; }
}
@keyframes faction-glow { to { opacity: .27; } }
@keyframes academy-shine { 0%, 55% { transform: translateX(-125%); } 80%, 100% { transform: translateX(125%); } }
@keyframes chapter-reveal { from { opacity: .55; transform: translateY(1.1rem); } }
@keyframes showcase-reveal { from { opacity: .35; transform: scale(.98); } }
.reveal.is-revealed { animation: chapter-reveal .65s ease-out both; }
.showcase-change { animation: showcase-reveal .36s ease-out both; }
.motion-paused *, .motion-paused *::before, .motion-paused *::after,
.scene-away *, .scene-away *::before, .scene-away *::after, .scene-away::after,
.page-hidden *, .page-hidden *::before, .page-hidden *::after { animation-play-state: paused !important; }
.motion-paused .reveal, .motion-paused .showcase-change, .motion-paused .cover-copy h1 img { animation: none !important; }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { transition: none !important; }
:root:has(.motion-paused) { scroll-behavior: auto; }

@media (max-width: 980px) {
  .header-chapters { display: none; }
  .patch-header { grid-template-columns: 1fr auto; }
  .selection-grid { grid-template-columns: minmax(0, 1fr); }
  .selection-grid .chapter-heading { max-width: 42rem; }
  .hero-stage h2 { font-size: clamp(3rem, 9.5vw, 5.8rem); }
}
@media (max-width: 720px) {
  :root { --header: 3.6rem; }
  .cover { min-height: clamp(35rem, 82svh, 49rem); align-items: start; }
  .cover-portrait { height: 59%; width: 60%; bottom: -4%; opacity: .89; }
  .cover-nuwa { left: -12%; }
  .cover-nara { right: -12%; }
  .cover-orbit { top: 40%; }
  .cover::before { background: linear-gradient(180deg, #150e22d4, #19102d8c 44%, transparent 70%, #120e1c); }
  .cover-copy { width: min(93%, 31rem); padding: clamp(2.45rem, 7vh, 5rem) .25rem 2rem; }
  .cover-heading { font-size: clamp(1.4rem, 5vw, 2.25rem); letter-spacing: .045em; }
  .cover-description { max-width: 34ch; }
  .chapter-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 0; }
  .chapter-strip a { grid-column: span 2; min-height: 3.2rem; border-bottom: 1px solid var(--rule); }
  .chapter-strip a:nth-last-child(-n + 2) { grid-column: span 3; border-bottom: 0; }
  .chapter-strip a > span:first-child { display: none; }
  .hero-stage { grid-template-columns: minmax(0, 1fr); padding-bottom: 0; min-height: auto; gap: 0; }
  .hero-art { position: static; grid-row: 2; width: 100%; height: auto; margin: -1rem auto -.5rem; max-height: 29rem; }
  .hero-stage::before { background: linear-gradient(180deg, #0f1729 12%, #0f1729b5 64%, #0e1424), url("../image/banner/banner_100.webp") center / cover; }
  .hero-mechanics { grid-template-columns: minmax(0, 1fr); }
  .skin-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .skin-card > a { aspect-ratio: 1.68; }
  .academy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .academy-card { min-height: clamp(11.4rem, 45vw, 19rem); }
  .event-rewards { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .event-rewards .cta { justify-self: start; }
}
@media (max-width: 480px) {
  .chapter-heading h2 { font-size: clamp(1.65rem, 6.8vw, 2.05rem); }
  .hero-stage h2 { font-size: clamp(3rem, 11vw, 4rem); }
  .faction-grid { grid-template-columns: minmax(0, 1fr); }
  .faction-card { min-height: 16rem; }
  .cover-portrait { height: 54%; }
  .patch-footer { gap: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
