@font-face {
  font-family: "ZCOOL Miaodian Fengyun Local";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("./assets/fonts/zcool-miaodian-fengyun-subset.woff2?v=2") format("woff2");
}

:root {
  --ink: #090604;
  --obsidian: #120d0a;
  --panel: rgba(246, 229, 190, 0.72);
  --panel-strong: rgba(236, 211, 160, 0.82);
  --gold: #1f1309;
  --gold-deep: #2a1608;
  --cinnabar: #32180a;
  --jade: #241509;
  --ivory: #1f1309;
  --muted: #2a1608;
  --line: rgba(127, 80, 28, 0.28);
  --shadow: 0 24px 70px rgba(78, 45, 18, 0.22);
  --brush-font: "STKaiti", "KaiTi", "Kaiti SC", "Songti SC", "SimSun", serif;
  --readable-font: "Kaiti SC", "KaiTi", "STKaiti", "Songti SC", "SimSun", serif;
}

body.fonts-ready {
  --brush-font: "ZCOOL Miaodian Fengyun Local", "STKaiti", "KaiTi", "Kaiti SC", "Songti SC", "SimSun", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-y: auto;
}

body {
  margin: 0;
  color: var(--ivory);
  background:
    linear-gradient(180deg, rgba(247, 237, 216, 0.18), rgba(247, 237, 216, 0.18)),
    url("./assets/optimized/scroll-page-bg.webp"),
    #f5e8cd;
  background-position: center top, center top, center top;
  background-size: auto, 100% auto, auto;
  background-repeat: repeat, repeat-y, repeat;
  font-family: var(--readable-font);
  overflow-x: hidden;
  overflow-y: auto;
}

body.is-loading {
  overflow: hidden;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.98), rgba(248, 244, 236, 0.94) 38%, rgba(236, 224, 198, 0.96) 100%),
    #f7f2e8;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 520ms ease,
    visibility 520ms ease;
}

.site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-loader__inner {
  display: grid;
  justify-items: center;
  width: min(640px, 86vw);
}

.site-loader img {
  width: min(520px, 82vw);
  height: auto;
  filter: drop-shadow(0 16px 34px rgba(16, 64, 45, 0.12));
}

.site-loader__track {
  width: min(420px, 70vw);
  height: 10px;
  margin-top: clamp(18px, 4vh, 34px);
  overflow: hidden;
  border: 1px solid rgba(15, 81, 54, 0.24);
  border-radius: 999px;
  background: rgba(15, 81, 54, 0.08);
  box-shadow: inset 0 1px 4px rgba(31, 19, 9, 0.12);
}

.site-loader__bar {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f5136, #d5a11d, #0f5136);
  box-shadow: 0 0 18px rgba(213, 161, 29, 0.36);
  transition: width 180ms ease;
}

.site-loader__text {
  margin: 12px 0 0;
  color: #0f5136;
  font-family: var(--readable-font);
  font-size: 0.96rem;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.32), transparent 30rem),
    linear-gradient(90deg, rgba(68, 35, 12, 0.24), transparent 12%, transparent 88%, rgba(68, 35, 12, 0.24));
  mix-blend-mode: multiply;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(82, 46, 16, 0.08));
  opacity: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  background: transparent;
}

main {
  display: flex;
  flex-direction: column;
}

.scroll-rod {
  position: relative;
  z-index: 18;
  height: clamp(66px, 7vw, 108px);
  width: 100%;
  pointer-events: none;
  background: url("./assets/optimized/scroll-rod-real.webp") center / 100% 100% no-repeat;
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.36),
    0 2px 0 rgba(255, 235, 169, 0.2);
}

.scroll-rod--top {
  margin-bottom: calc(clamp(66px, 7vw, 108px) * -1);
  transform: translateY(74px);
}

.scroll-rod--bottom {
  margin-top: 26px;
  margin-bottom: 22px;
}

.hero {
  order: 1;
}

.stats-section {
  order: 2;
}

.stats-section,
.intro-section,
.leader-section,
.manager-section,
.commander-section,
.commanders-section,
.glory-section,
.legion-section,
.heroes-section,
.story-section,
.events-section,
.join-section,
.site-footer,
.designer-showcase {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

.intro-section {
  order: 3;
}

.leader-section {
  order: 4;
}

.manager-section {
  order: 5;
}

.commander-section {
  order: 6;
}

.commanders-section {
  order: 7;
}

.glory-section {
  order: 8;
}

.legion-section {
  order: 9;
}

.heroes-section {
  order: 10;
}

.story-section {
  order: 11;
}

.events-section {
  order: 12;
}

.join-section {
  order: 13;
}

.site-footer {
  order: 14;
}

.designer-showcase {
  order: 15;
}

.page-shell::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, rgba(70, 38, 14, 0.3), transparent 12%, transparent 88%, rgba(70, 38, 14, 0.3));
  mix-blend-mode: multiply;
}

.page-shell::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: radial-gradient(circle at 50% 50%, transparent 42%, rgba(65, 36, 14, 0.12));
  opacity: 1;
  mix-blend-mode: multiply;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  width: auto;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 18px clamp(18px, 4vw, 64px);
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(2.15rem, 4.3vw, 3.2rem);
  font-weight: 900;
  letter-spacing: 0;
  color: var(--gold);
  text-shadow: 0 1px 10px rgba(255, 235, 180, 0.75);
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 22px rgba(246, 209, 120, 0.38);
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 34px);
  font-size: clamp(1.85rem, 2.75vw, 2.72rem);
  color: var(--gold);
  text-shadow: 0 1px 10px rgba(255, 235, 180, 0.78);
}

.topbar nav a {
  position: relative;
  white-space: nowrap;
}

.topbar nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.topbar nav a:hover::after {
  transform: scaleX(1);
}

.jade-ornament {
  position: fixed;
  right: clamp(14px, 2.5vw, 30px);
  bottom: clamp(14px, 2.5vw, 30px);
  z-index: 40;
  width: clamp(78px, 8.5vw, 116px);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
}

.jade-ornament__figure {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  filter: drop-shadow(0 16px 18px rgba(30, 16, 8, 0.46));
  transform-origin: 50% 78%;
  animation: jadeFloat 3.2s ease-in-out infinite;
}

.jade-ornament__figure::before {
  position: absolute;
  inset: 7% 5% 12%;
  z-index: -1;
  content: "";
  border-radius: 46% 46% 22% 22%;
  background:
    radial-gradient(circle at 50% 26%, rgba(226, 255, 211, 0.45), rgba(109, 145, 82, 0.2) 42%, transparent 68%),
    radial-gradient(ellipse at 50% 78%, rgba(75, 38, 16, 0.32), transparent 64%);
  filter: blur(1px);
}

.jade-ornament img {
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

@keyframes jadeFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-3px) rotate(1deg);
  }
}

.hero {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 94vh;
  padding: 130px clamp(20px, 6vw, 88px) 58px;
  overflow: hidden;
  isolation: isolate;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(50, 29, 14, 0.72), rgba(239, 218, 177, 0.16) 44%, rgba(50, 29, 14, 0.58)),
    linear-gradient(180deg, rgba(250, 238, 213, 0.1), rgba(245, 226, 188, 0.86) 96%),
    url("./assets/optimized/hero-bg.webp") center / cover no-repeat;
  transform: scale(1.03);
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.scroll-rod,
.scroll-rod *,
.topbar::before,
.topbar::after {
  pointer-events: none;
}

.hero::before {
  inset: 86px 0 0;
  background:
    radial-gradient(circle at 20% 48%, transparent 0 17rem, rgba(246, 209, 120, 0.34) 17.1rem, transparent 17.25rem);
  opacity: 0.92;
  mix-blend-mode: screen;
}

.hero::after {
  left: clamp(18px, 6vw, 92px);
  right: clamp(18px, 6vw, 92px);
  bottom: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero,
.section,
.join-section {
  border-left: 1px solid rgba(246, 209, 120, 0.12);
  border-right: 1px solid rgba(246, 209, 120, 0.12);
}

.hero__content {
  max-width: 780px;
  padding-bottom: 5vh;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro-section > .section-heading .eyebrow,
.leader-section > .section-heading .eyebrow,
.manager-section > .section-heading .eyebrow,
.commander-section > .section-heading .eyebrow,
.commanders-section > .section-heading .eyebrow,
.glory-section > .section-heading .eyebrow,
.legion-section > .section-heading .eyebrow,
.events-section > .section-heading .eyebrow,
.join-section .eyebrow {
  font-size: clamp(1.85rem, 2.45vw, 2.42rem);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  max-width: min(100%, 14em);
  color: #ffe6a3;
  font-family: var(--readable-font);
  font-size: clamp(3.2rem, 6.4vw, 8.2rem);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 0 24px rgba(246, 209, 120, 0.28), 0 8px 34px rgba(0, 0, 0, 0.78);
}

.hero__copy {
  max-width: 640px;
  margin-bottom: 32px;
  color: #f4dfae;
  font-size: clamp(1.55rem, 2.35vw, 2rem);
  line-height: 1.85;
}

.hero__actions,
.join-section .button {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.designer-credit {
  margin: 0;
  color: rgba(255, 232, 174, 0.72);
  font-family: var(--readable-font);
  font-size: clamp(1.45rem, 1.8vw, 1.72rem);
  letter-spacing: 0;
}

.site-footer {
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto 34px;
  padding: 18px 0 8px;
  border-top: 1px solid rgba(246, 209, 120, 0.2);
  text-align: center;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border: 1px solid var(--line);
  background: rgba(246, 229, 190, 0.58);
  color: #4d2b12;
  font-size: 1.48rem;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(246, 209, 120, 0.82);
}

.button--primary {
  background: linear-gradient(135deg, #3b120c, #7f1f18 58%, #3b120c);
  color: #160b05;
}

.button--ghost {
  backdrop-filter: blur(8px);
}

.stats-section {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, calc(100% - 36px));
  margin: -20px auto 0;
  border: 1px solid rgba(246, 209, 120, 0.28);
  background:
    linear-gradient(90deg, rgba(127, 80, 28, 0.28), rgba(127, 80, 28, 0.1), rgba(127, 80, 28, 0.28));
  box-shadow: var(--shadow);
}

.stat {
  display: grid;
  min-height: 96px;
  place-items: center;
  padding: 26px 18px;
  background: linear-gradient(180deg, rgba(246, 229, 190, 0.92), rgba(224, 196, 139, 0.88));
  text-align: center;
}

.stat p {
  margin: 0;
  color: #5a3516;
  font-size: clamp(1.68rem, 2.65vw, 2.35rem);
  font-weight: 700;
}

.section {
  position: relative;
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(70px, 9vw, 120px) 0 0;
}

.section-heading::after {
  display: block;
  width: min(420px, 80vw);
  height: 1px;
  margin-top: 18px;
  content: "";
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section-heading--center::after {
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section::before {
  position: absolute;
  top: clamp(34px, 5vw, 70px);
  right: max(-120px, -8vw);
  z-index: 0;
  width: min(520px, 48vw);
  height: 420px;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle, rgba(108, 64, 25, 0.18), transparent 65%);
  opacity: 0.55;
  mix-blend-mode: screen;
}

.section > * {
  position: relative;
  z-index: 1;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 34px;
}

.section-heading--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

h2 {
  margin-bottom: 0;
  color: #ffe4a0;
  font-family: var(--brush-font);
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  font-weight: 400;
  line-height: 1.12;
}

.story-section {
  position: relative;
}

.story-section::before {
  position: absolute;
  top: 92px;
  right: min(5vw, 46px);
  display: grid;
  width: 170px;
  height: 170px;
  place-items: center;
  content: "诛星";
  border: 1px solid rgba(246, 209, 120, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(246, 209, 120, 0.2), transparent 58%),
    linear-gradient(135deg, rgba(246, 209, 120, 0.16), rgba(8, 5, 4, 0.28));
  color: rgba(255, 226, 160, 0.48);
  font-family: var(--brush-font);
  font-size: 3rem;
  font-weight: 900;
  opacity: 0.46;
  pointer-events: none;
}

.story-scroll {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(246, 209, 120, 0.28);
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.28), transparent 22rem),
    radial-gradient(circle at 88% 20%, rgba(168, 92, 30, 0.12), transparent 24rem),
    linear-gradient(180deg, rgba(247, 230, 193, 0.84), rgba(222, 194, 139, 0.78));
  box-shadow: var(--shadow);
}

.story-scroll article {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(246, 209, 120, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 38%),
    rgba(255, 244, 218, 0.36);
}

.story-scroll .story-lead,
.story-scroll .story-oath {
  grid-column: 1 / -1;
}

.story-scroll h3 {
  margin-bottom: 14px;
  color: #6d4119;
  font-size: clamp(1.95rem, 2.85vw, 2.65rem);
}

.story-scroll p {
  margin-bottom: 0;
  color: #5c3c1f;
  font-family: var(--brush-font);
  font-size: clamp(1.48rem, 1.95vw, 1.78rem);
  line-height: 2;
}

.story-scroll p + p {
  margin-top: 14px;
}

.story-lead p,
.story-oath p:first-child {
  color: #6d4119;
  font-size: clamp(1.68rem, 2.25vw, 2.08rem);
}

.story-oath {
  text-align: center;
}

.intro-grid {
  display: grid;
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.intro-section {
  width: 100%;
  overflow: hidden;
}

.intro-section .section-heading {
  max-width: none;
  width: min(1220px, calc(100% - 36px));
  margin-left: auto;
  margin-right: auto;
}

.intro-section h2 {
  white-space: nowrap;
}

.intro-feature-image {
  position: relative;
  display: grid;
  width: 100%;
  min-height: clamp(520px, 54vw, 820px);
  margin: 0 auto 34px;
  padding: clamp(24px, 4vw, 44px) 18px;
  place-items: center;
  overflow: hidden;
  border-top: 1px solid rgba(246, 209, 120, 0.28);
  border-bottom: 1px solid rgba(246, 209, 120, 0.28);
  background: #07111d;
  box-shadow: var(--shadow);
}

.intro-feature-image__backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 11, 18, 0.88), rgba(7, 11, 18, 0.18) 46%, rgba(7, 11, 18, 0.86)),
    linear-gradient(180deg, rgba(7, 11, 18, 0.2), rgba(7, 11, 18, 0.72)),
    url("./assets/optimized/manager-zhuxing.webp") center / cover no-repeat;
  filter: saturate(1.08);
  transform: scale(1.04);
}

.intro-feature-image img {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100vw - 36px));
  max-height: min(82vh, 780px);
  object-fit: contain;
  border: 1px solid rgba(246, 209, 120, 0.34);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.48);
}

.intro-grid article {
  min-height: 230px;
  padding: 28px;
  border: 1px solid rgba(246, 209, 120, 0.26);
  background:
    radial-gradient(circle at 85% 16%, rgba(255, 255, 255, 0.22), transparent 10rem),
    linear-gradient(135deg, rgba(168, 92, 30, 0.12), transparent 45%),
    var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.intro-grid span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  color: var(--gold);
}

h3 {
  color: #6d4119;
  font-size: 2.12rem;
}

.intro-grid p,
.legion-display p,
.join-section p {
  color: #6b4724;
  font-size: 1.55rem;
  line-height: 1.85;
}

.leader-section {
  width: 100%;
  padding-top: clamp(78px, 10vw, 130px);
  overflow: hidden;
  scroll-margin-top: clamp(120px, 18vh, 220px);
}

.leader-section .section-heading {
  width: min(1220px, calc(100% - 36px));
}

.leader-showcase {
  --leader-art: url("./assets/optimized/leader-yizhi-20260521194320.webp");
  position: relative;
  display: grid;
  min-height: clamp(640px, 78vw, 980px);
  margin: 0;
  padding: clamp(24px, 4vw, 44px) 18px;
  place-items: center;
  overflow: hidden;
  border-top: 1px solid rgba(246, 209, 120, 0.28);
  border-bottom: 1px solid rgba(246, 209, 120, 0.28);
  background: #12080f;
  box-shadow: var(--shadow);
}

.leader-showcase + .leader-showcase {
  margin-top: clamp(18px, 3vw, 34px);
}

.leader-showcase__backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 4, 7, 0.88), rgba(8, 4, 7, 0.2) 44%, rgba(8, 4, 7, 0.86)),
    linear-gradient(180deg, rgba(8, 4, 7, 0.32), rgba(8, 4, 7, 0.74)),
    var(--leader-art) center / cover no-repeat;
  filter: saturate(1.05);
  transform: scale(1.04);
}

.leader-showcase img {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100vw - 36px));
  max-height: min(86vh, 920px);
  object-fit: contain;
  border: 1px solid rgba(246, 209, 120, 0.36);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.54);
}

.manager-grid,
.commander-grid {
  display: grid;
  gap: 16px;
}

.manager-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.commander-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.manager-grid article,
.commander-grid article {
  overflow: hidden;
  border: 1px solid rgba(246, 209, 120, 0.26);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.2), transparent 9rem),
    linear-gradient(180deg, rgba(246, 229, 190, 0.84), rgba(218, 188, 128, 0.78));
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.2);
}

.manager-grid img,
.commander-grid img {
  display: block;
  width: 100%;
  height: auto;
}

.commander-section,
.glory-section {
  width: 100%;
  padding-top: clamp(78px, 10vw, 130px);
  overflow: hidden;
}

.commander-section .section-heading,
.glory-section .section-heading {
  max-width: none;
  width: min(1220px, calc(100% - 36px));
}

.commander-section h2,
.glory-section h2 {
  white-space: nowrap;
}

.glory-section h2 {
  font-family: "ZCOOL Miaodian Fengyun Local", "STKaiti", "KaiTi", "Kaiti SC", "Songti SC", "SimSun", serif;
  font-weight: 400;
}

.commander-showcase,
.glory-showcase {
  position: relative;
  display: grid;
  min-height: clamp(640px, 78vw, 980px);
  margin: 0;
  padding: clamp(24px, 4vw, 44px) 18px;
  place-items: center;
  overflow: hidden;
  border-top: 1px solid rgba(246, 209, 120, 0.28);
  border-bottom: 1px solid rgba(246, 209, 120, 0.28);
  background: #15130d;
  box-shadow: var(--shadow);
}

.commander-showcase__backdrop,
.glory-showcase__backdrop {
  position: absolute;
  inset: 0;
  filter: saturate(1.06);
  transform: scale(1.04);
}

.commander-showcase__backdrop {
  background:
    linear-gradient(90deg, rgba(12, 11, 8, 0.88), rgba(12, 11, 8, 0.16) 46%, rgba(12, 11, 8, 0.86)),
    linear-gradient(180deg, rgba(12, 11, 8, 0.22), rgba(12, 11, 8, 0.72)),
    url("./assets/optimized/commander-xiaoxiong.webp?v=2") center / cover no-repeat;
}

.glory-showcase__backdrop {
  background:
    linear-gradient(90deg, rgba(8, 10, 18, 0.84), rgba(8, 10, 18, 0.12) 46%, rgba(8, 10, 18, 0.82)),
    linear-gradient(180deg, rgba(8, 10, 18, 0.18), rgba(8, 10, 18, 0.68)),
    url("./assets/optimized/glory-ahao.webp") center / cover no-repeat;
}

.commander-showcase img,
.glory-showcase img {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100vw - 36px));
  max-height: min(86vh, 920px);
  object-fit: contain;
  border: 1px solid rgba(246, 209, 120, 0.36);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.54);
}

.legion-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.legion-card {
  cursor: pointer;
  border: 1px solid rgba(246, 209, 120, 0.22);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.2), transparent 9rem),
    linear-gradient(180deg, rgba(246, 229, 190, 0.82), rgba(222, 195, 139, 0.78));
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.legion-card:hover,
.legion-card.is-active {
  transform: translateY(-5px);
  border-color: rgba(246, 209, 120, 0.72);
  background: rgba(255, 241, 210, 0.9);
}

.legion-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.legion-card div {
  min-height: 150px;
  padding: 18px;
  border-top: 1px solid rgba(246, 209, 120, 0.22);
}

.legion-card p {
  margin-bottom: 8px;
  color: var(--jade);
  font-size: 1.38rem;
}

.legion-card h3 {
  margin-bottom: 10px;
}

.legion-card span {
  color: #6b4724;
  font-size: 1.4rem;
  line-height: 1.7;
}

.legion-display {
  display: grid;
  grid-template-columns: minmax(260px, 38%) minmax(0, 1fr) minmax(170px, 250px);
  gap: clamp(22px, 5vw, 54px);
  align-items: center;
  margin-top: 28px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(246, 209, 120, 0.28);
  background:
    linear-gradient(135deg, rgba(168, 92, 30, 0.13), transparent 42%),
    linear-gradient(180deg, rgba(246, 229, 190, 0.84), rgba(218, 188, 128, 0.78));
}

.legion-display img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid rgba(246, 209, 120, 0.22);
}

.legion-display h3 {
  font-family: var(--brush-font);
  font-size: clamp(1.25rem, 2.4vw, 3.8rem);
  font-weight: 400;
  line-height: 1.22;
  white-space: pre-line;
}

.legion-mascot {
  align-self: stretch;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border: 1px solid rgba(246, 209, 120, 0.26);
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.28), transparent 46%),
    linear-gradient(180deg, rgba(246, 229, 190, 0.86), rgba(218, 188, 128, 0.84));
}

.legion-mascot img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center top;
}

.legion-mascot span {
  display: block;
  padding: 13px 12px 15px;
  border-top: 1px solid rgba(246, 209, 120, 0.26);
  color: #5a3516;
  font-size: 1.72rem;
  font-weight: 900;
  text-align: center;
}

.hero-roster {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.heroes-section .eyebrow {
  font-size: clamp(1.55rem, 2.2vw, 2rem);
}

.heroes-section .section-heading {
  max-width: none;
}

.heroes-section h2 {
  font-size: clamp(2.8rem, 5.2vw, 5.2rem);
  white-space: nowrap;
}

.hero-roster article {
  min-height: 260px;
  overflow: hidden;
  border: 1px solid rgba(246, 209, 120, 0.24);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.18), transparent 8rem),
    var(--panel-strong);
}

.hero-preview,
.image-preview {
  display: block;
  width: 100%;
  padding: 0;
  cursor: zoom-in;
  border: 0;
  background: transparent;
}

.hero-preview:focus-visible,
.image-preview:focus-visible {
  outline: 3px solid rgba(31, 19, 9, 0.72);
  outline-offset: -3px;
}

.hero-roster img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.03);
  transition: transform 0.35s ease;
}

.hero-roster article:hover img {
  transform: scale(1.06);
}

.hero-roster span {
  display: block;
  min-height: 54px;
  padding: 14px 12px 16px;
  border-top: 1px solid rgba(246, 209, 120, 0.26);
  background: linear-gradient(180deg, rgba(244, 224, 184, 0.96), rgba(221, 190, 128, 0.96));
  color: #5a3516;
  font-size: clamp(1.78rem, 2.4vw, 2.35rem);
  text-align: center;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  padding: clamp(18px, 4vw, 44px);
  place-items: center;
  background: rgba(9, 5, 3, 0.86);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.image-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.image-lightbox img {
  max-width: min(92vw, 920px);
  max-height: 84vh;
  object-fit: contain;
  border: 1px solid rgba(246, 209, 120, 0.36);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
}

.image-lightbox p {
  margin: 14px 0 0;
  color: #f6d178;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  text-align: center;
}

.image-lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  place-items: center;
  border: 1px solid rgba(246, 209, 120, 0.42);
  background: rgba(246, 229, 190, 0.86);
  color: #1f1309;
  font-size: 2rem;
  line-height: 1;
}

.event-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.event-gallery figure {
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(246, 209, 120, 0.24);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.18), transparent 8rem),
    var(--panel-strong);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.28);
}

.event-gallery .image-preview {
  overflow: hidden;
}

.event-gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.event-gallery figure:hover img,
.event-gallery .image-preview:focus-visible img {
  transform: scale(1.06);
}

.event-gallery figcaption {
  min-height: 54px;
  padding: 14px 12px 16px;
  border-top: 1px solid rgba(246, 209, 120, 0.26);
  background: linear-gradient(180deg, rgba(244, 224, 184, 0.96), rgba(221, 190, 128, 0.96));
  color: #5a3516;
  font-size: 1.7rem;
  font-weight: 900;
  text-align: center;
}

.join-section {
  display: grid;
  grid-template-columns: minmax(260px, 48%) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  width: min(1220px, calc(100% - 36px));
  margin: clamp(80px, 10vw, 130px) auto 70px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(246, 209, 120, 0.3);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 42%),
    linear-gradient(180deg, rgba(246, 229, 190, 0.86), rgba(218, 188, 128, 0.8));
  box-shadow: var(--shadow);
}

.join-section img {
  width: 100%;
  min-height: 360px;
  object-fit: cover;
  border: 1px solid rgba(246, 209, 120, 0.24);
}

.join-section p {
  max-width: 620px;
  margin: 22px 0 28px;
}

.designer-showcase {
  position: relative;
  display: grid;
  width: 100%;
  min-height: clamp(720px, 82vw, 1180px);
  margin: clamp(34px, 5vw, 70px) 0 0;
  padding: clamp(22px, 4vw, 46px) 18px;
  place-items: center;
  overflow: hidden;
  background: #11182a;
  box-shadow: var(--shadow);
}

.designer-showcase__backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 12, 30, 0.86), rgba(7, 12, 30, 0.16) 42%, rgba(43, 9, 22, 0.18) 58%, rgba(43, 9, 22, 0.86)),
    linear-gradient(180deg, rgba(10, 10, 16, 0.16), rgba(10, 10, 16, 0.76)),
    url("./assets/optimized/designer-yanhuo.webp") left center / 52% auto no-repeat,
    url("./assets/optimized/designer-changgongzhu.webp") right center / 52% auto no-repeat;
  filter: saturate(1.08);
  transform: scale(1.04);
}

.designer-showcase__grid {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1160px, calc(100vw - 36px));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 34px);
  align-items: center;
}

.designer-showcase__grid img {
  display: block;
  width: 100%;
  max-height: min(86vh, 980px);
  object-fit: contain;
  border: 1px solid rgba(246, 209, 120, 0.3);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.5);
}

@media (max-width: 980px) {
  .topbar {
    position: absolute;
  }

  .topbar nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 110px;
  }

  .stats-section,
  .story-scroll,
  .intro-grid,
  .manager-grid,
  .commander-grid,
  .legion-grid,
  .hero-roster,
  .event-gallery,
  .join-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legion-display {
    grid-template-columns: 1fr;
  }

  .legion-mascot {
    max-width: 320px;
    justify-self: center;
  }

  .leader-showcase {
    min-height: auto;
  }

  .commander-showcase {
    min-height: auto;
  }

  .leader-showcase img {
    max-height: none;
  }

  .commander-showcase img {
    max-height: none;
  }

  .intro-feature-image {
    min-height: auto;
  }

  .intro-feature-image img {
    max-height: none;
  }

  .designer-showcase {
    min-height: auto;
  }

  .designer-showcase__grid {
    grid-template-columns: 1fr;
    width: min(560px, calc(100vw - 36px));
  }

  .designer-showcase__grid img {
    max-height: none;
  }

  .designer-showcase__backdrop {
    background:
      linear-gradient(180deg, rgba(7, 12, 30, 0.78), rgba(43, 9, 22, 0.78)),
      url("./assets/optimized/designer-yanhuo.webp") top left / 90% auto no-repeat,
      url("./assets/optimized/designer-changgongzhu.webp") bottom right / 90% auto no-repeat;
  }

}

@media (max-width: 640px) {
  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .stats-section,
  .story-scroll,
  .intro-grid,
  .manager-grid,
  .commander-grid,
  .legion-grid,
  .hero-roster,
  .event-gallery,
  .join-section {
    grid-template-columns: 1fr;
  }

  .stat {
    min-height: 82px;
  }

  .hero-roster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-gallery figure {
    min-height: 300px;
  }

  .join-section img {
    min-height: 260px;
  }

  h1 {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }
}

body,
button,
a,
p,
span,
strong,
h1,
h2,
h3,
figcaption,
.brand,
.topbar nav,
.eyebrow,
.button,
.designer-credit,
.story-scroll p,
.story-scroll h3,
.hero-roster span,
.event-gallery figcaption,
.legion-card p,
.legion-card span,
.legion-display p,
.legion-mascot span,
.join-section p,
.stat p {
  color: #1f1309;
  font-family: var(--readable-font);
}

h1,
h2,
.story-section::before,
.legion-display h3 {
  font-family: var(--brush-font);
}

.button--primary {
  color: #1f1309;
}

.topbar nav a::after,
.section-heading::after,
.section-heading--center::after,
.hero::after {
  background: linear-gradient(90deg, transparent, rgba(31, 19, 9, 0.45), transparent);
}

.stat,
.story-scroll,
.story-scroll article,
.intro-grid article,
.legion-card,
.legion-display,
.legion-mascot,
.hero-roster article,
.hero-roster span,
.event-gallery figure,
.event-gallery figcaption,
.join-section {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 42%),
    rgba(246, 229, 190, 0.84);
}

.button,
.button--ghost {
  background: rgba(246, 229, 190, 0.72);
}

.topbar nav a::after,
.section-heading::after,
.section-heading--center::after,
.hero::after {
  background: linear-gradient(90deg, transparent, rgba(31, 19, 9, 0.45), transparent);
}
