@charset "UTF-8";

:root {
  --ink: #140b25;
  --ink-deep: #090412;
  --violet: #6d2dd8;
  --purple: #9a42e8;
  --pink: #f34ea3;
  --rose: #ff7ebc;
  --gold: #f1c46c;
  --cream: #fff8eb;
  --paper: #f6efe6;
  --muted: #a99db7;
  --line: rgba(255, 255, 255, 0.14);
  --header-height: 76px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  min-width: 320px;
  margin: 0;
  padding-top: var(--header-height);
  overflow-x: hidden;
  color: var(--cream);
  background: var(--ink-deep);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(16, 7, 29, 0.96);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
}

.brand img {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 14px;
  object-fit: cover;
}

.brand > span,
.footer-inner a > span {
  display: grid;
  line-height: 1.18;
}

.brand strong {
  font-family: Georgia, "Microsoft YaHei", serif;
  font-size: 19px;
  letter-spacing: 0.05em;
}

.brand small,
.footer-inner small {
  margin-top: 4px;
  color: #a398b2;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.main-nav {
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  position: relative;
  display: block;
  padding: 27px 0 24px;
  color: #c4b9ce;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.main-nav a::before {
  position: absolute;
  right: 50%;
  bottom: 0;
  left: 50%;
  height: 3px;
  background: linear-gradient(90deg, var(--pink), var(--gold));
  content: "";
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
}

.main-nav a.active::before {
  right: 0;
  left: 0;
}

.header-download,
.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 36%, rgba(244, 78, 163, 0.36), transparent 30%),
    linear-gradient(115deg, #160a27 0 48%, #35104f 76%, #170a29 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  content: "";
  transform: perspective(700px) rotateX(62deg) scale(1.5) translateY(23%);
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 170px;
  background: linear-gradient(transparent, #0f061d);
  content: "";
}

.hero-pattern {
  position: absolute;
  top: 7%;
  right: -7%;
  width: 690px;
  height: 690px;
  border: 1px solid rgba(241, 196, 108, 0.22);
  border-radius: 50%;
}

.hero-pattern::before,
.hero-pattern::after {
  position: absolute;
  border: 1px solid rgba(241, 196, 108, 0.18);
  border-radius: 50%;
  content: "";
}

.hero-pattern::before {
  inset: 70px;
}

.hero-pattern::after {
  inset: 160px;
}

.hero-art {
  position: absolute;
  top: 7%;
  right: -3%;
  width: min(61vw, 920px);
  height: 88%;
  overflow: hidden;
  clip-path: polygon(19% 0, 100% 0, 100% 88%, 82% 100%, 0 100%, 9% 60%);
}

.hero-art::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, #160a27 0, transparent 40%, transparent 80%, #160a27 100%);
  content: "";
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.13) contrast(1.05);
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--header-height));
  padding-block: 92px 120px;
}

.hero-copy {
  width: min(560px, 54%);
}

.age-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: #cbbfd2;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.age-mark b {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  color: #fff;
}

.eyebrow,
.section-title > p,
.section-heading > div > p,
.section-label,
.review-summary > p,
.faq-title > p,
.download-grid > div:first-child > p,
.gallery-head > div:first-child > p {
  margin: 0 0 15px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-family: Georgia, "Microsoft YaHei", serif;
  font-size: clamp(76px, 9vw, 138px);
  font-weight: 600;
  line-height: 0.78;
  letter-spacing: -0.09em;
  text-shadow: 0 12px 45px rgba(0, 0, 0, 0.45);
}

.hero h1 span {
  margin-left: 0.55em;
  color: transparent;
  -webkit-text-stroke: 2px var(--rose);
}

.hero-slogan {
  margin: 36px 0 9px;
  color: #fff;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 800;
}

.hero-intro {
  max-width: 510px;
  margin: 0;
  color: #bdb0c8;
  font-size: 14px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 150px;
  min-height: 52px;
  padding: 0 23px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  font-size: 14px;
  font-weight: 800;
}

.hero-actions .primary-action {
  border-color: var(--pink);
  background: linear-gradient(110deg, #bd2cd6, var(--pink));
  box-shadow: 0 13px 35px rgba(243, 78, 163, 0.28);
}

.hero-actions .secondary-action:hover {
  border-color: var(--gold);
  color: var(--ink);
  background: var(--gold);
}

.hero-actions .secondary-action:hover i::before {
  filter: brightness(0.2);
}

.hero-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 25px;
}

.hero-platforms span {
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #9f92aa;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.conquest-card {
  position: absolute;
  right: 0;
  bottom: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 280px;
  padding: 24px;
  border: 1px solid rgba(241, 196, 108, 0.48);
  background: rgba(21, 8, 34, 0.9);
  box-shadow: 18px 18px 0 rgba(109, 45, 216, 0.24);
}

.conquest-card > span,
.conquest-card > i,
.conquest-card > strong,
.conquest-card > p {
  grid-column: 1 / -1;
}

.conquest-card > span {
  color: var(--gold);
  font: 10px Consolas, monospace;
  letter-spacing: 0.16em;
}

.conquest-card > i {
  width: 38px;
  height: 38px;
  margin: 25px 0 14px;
}

.conquest-card > strong {
  font: 600 30px Georgia, "Microsoft YaHei", serif;
}

.conquest-card > p {
  margin: 10px 0 22px;
  color: #a99bb4;
  font-size: 12px;
}

.conquest-card > div {
  display: grid;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.conquest-card > div b {
  color: var(--pink);
  font: 500 28px Georgia, serif;
}

.conquest-card > div small {
  color: #8f819b;
}

.hero-scroll {
  position: absolute;
  z-index: 4;
  bottom: 24px;
  left: 50%;
  display: grid;
  justify-items: center;
  color: #887b94;
  font-size: 9px;
  letter-spacing: 0.16em;
  transform: translateX(-50%);
}

.hero-scroll i {
  width: 1px;
  height: 35px;
  margin-top: 8px;
  background: linear-gradient(var(--gold), transparent);
}

.decree-section {
  position: relative;
  padding: 130px 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
}

.decree-section::before {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: radial-gradient(#6e5b79 0.6px, transparent 0.8px);
  background-size: 8px 8px;
  content: "";
}

.decree-number {
  position: absolute;
  top: -95px;
  left: -30px;
  color: rgba(109, 45, 216, 0.07);
  font: 600 440px/1 Georgia, serif;
}

.decree-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(60px, 10vw, 150px);
  align-items: center;
}

.section-title h2,
.section-heading h2,
.battle-copy h2,
.review-summary h2,
.faq-title h2,
.download-grid h2,
.gallery-head h2 {
  margin: 0;
  font-family: Georgia, "Microsoft YaHei", serif;
  font-size: clamp(40px, 5.4vw, 70px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.decree-copy > p {
  max-width: 590px;
  margin: 0;
  color: #62556c;
  font-size: 16px;
}

.decree-copy blockquote {
  margin: 34px 0 45px;
  padding: 20px 25px;
  border-left: 4px solid var(--pink);
  color: #3d224b;
  background: rgba(255, 255, 255, 0.55);
  font: 600 19px/1.7 Georgia, "Microsoft YaHei", serif;
}

.campaign-route {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #cfc1d4;
}

.campaign-route div {
  position: relative;
  display: grid;
  gap: 6px;
  padding-top: 20px;
}

.campaign-route div::before {
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a99bb2;
  content: "";
}

.campaign-route div.active::before {
  background: var(--pink);
  box-shadow: 0 0 0 6px rgba(243, 78, 163, 0.15);
}

.campaign-route b {
  color: var(--purple);
  font: 11px Consolas, monospace;
}

.campaign-route span {
  font-size: 12px;
  font-weight: 700;
}

.realms-section {
  position: relative;
  padding: 115px 0 130px;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 54%, rgba(154, 66, 232, 0.25), transparent 28%),
    linear-gradient(135deg, #0d0618, #1d0a33 58%, #0e0619);
}

.realms-section::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 35%;
  height: 100%;
  opacity: 0.18;
  background-image: linear-gradient(135deg, transparent 48%, var(--pink) 49% 51%, transparent 52%);
  background-size: 48px 48px;
  content: "";
}

.section-heading {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  align-items: end;
  gap: 80px;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
}

.realm-tabs {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 62px;
  border: 1px solid var(--line);
}

.realm-tabs button {
  position: relative;
  display: grid;
  min-height: 106px;
  padding: 20px 24px;
  border-right: 1px solid var(--line);
  color: #9d91a8;
  background: rgba(11, 5, 20, 0.56);
  text-align: left;
  cursor: pointer;
}

.realm-tabs button:last-child {
  border-right: 0;
}

.realm-tabs button.active {
  color: #fff;
  background: linear-gradient(115deg, rgba(109, 45, 216, 0.95), rgba(243, 78, 163, 0.75));
}

.realm-tabs span {
  position: absolute;
  top: 14px;
  right: 18px;
  font: 11px Consolas, monospace;
}

.realm-tabs strong {
  font: 600 27px Georgia, "Microsoft YaHei", serif;
}

.realm-tabs small {
  font-size: 9px;
  letter-spacing: 0.13em;
}

.realm-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  min-height: 520px;
  border: 1px solid var(--line);
  border-top: 0;
  background: rgba(9, 4, 17, 0.75);
}

.realm-visual {
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at center, rgba(243, 78, 163, 0.3), transparent 35%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
}

.realm-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(241, 196, 108, 0.36);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
}

.orbit-a {
  width: 430px;
  height: 250px;
}

.orbit-b {
  width: 320px;
  height: 410px;
  transform: translate(-50%, -50%) rotate(38deg);
}

.realm-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 168px;
  height: 168px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: radial-gradient(circle, #b8379f, #401263 70%);
  box-shadow: 0 0 90px rgba(243, 78, 163, 0.35);
  transform: translate(-50%, -50%);
}

.realm-core i {
  position: absolute;
  top: 30px;
  width: 28px;
  height: 28px;
}

.realm-core b {
  margin-top: 32px;
  font: 600 55px Georgia, "Microsoft YaHei", serif;
}

.landmark {
  position: absolute;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #bdb0c7;
  background: rgba(11, 5, 19, 0.86);
  font-size: 10px;
}

.mark-a { top: 19%; left: 14%; }
.mark-b { top: 63%; left: 18%; }
.mark-c { top: 28%; right: 11%; }

.realm-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px;
}

.realm-info > span {
  color: var(--pink);
  font: 10px Consolas, monospace;
  letter-spacing: 0.17em;
}

.realm-info h3 {
  margin: 10px 0 18px;
  font: 600 37px Georgia, "Microsoft YaHei", serif;
}

.realm-info > p:not(.realm-status) {
  min-height: 78px;
  margin: 0 0 28px;
  color: #a89bb3;
  font-size: 14px;
}

.realm-info > div:not(.realm-progress) {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.realm-info > div small {
  color: #84778f;
}

.realm-info > div strong {
  color: var(--gold);
  font: 500 23px Georgia, serif;
}

.realm-progress {
  height: 4px;
  margin: 10px 0 30px;
  background: rgba(255, 255, 255, 0.12);
}

.realm-progress i {
  display: block;
  width: 58%;
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--pink));
}

.realm-info > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  cursor: pointer;
}

.realm-info > button:hover {
  border-color: var(--gold);
  color: var(--ink);
  background: var(--gold);
}

.realm-info > button:hover i::before {
  filter: brightness(0.2);
}

.realm-status {
  min-height: 20px;
  margin: 14px 0 0;
  color: var(--gold);
  font-size: 11px;
}

.roster-section {
  padding: 120px 0;
  color: var(--ink);
  background: var(--paper);
}

.roster-heading > div > p {
  color: var(--violet);
}

.roster-heading > p {
  color: #6d6076;
}

.roster-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 62px;
}

.role-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #c9bbce;
  background: #fffaf2;
  cursor: pointer;
}

.role-card.active {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(243, 78, 163, 0.14);
}

.role-portrait {
  height: 245px;
  overflow: hidden;
  background: #28123a;
}

.role-portrait img {
  width: 650px;
  max-width: none;
  height: 100%;
  object-fit: cover;
}

.role-attack img { object-position: 7% center; }
.role-guard img { object-position: 27% center; transform: translateX(-18%); }
.role-heal img { object-position: 48% center; transform: translateX(-36%); }
.role-support img { object-position: 69% center; transform: translateX(-54%); }
.role-control img { object-position: 93% center; transform: translateX(-69%); }

.role-card > span {
  display: block;
  margin: 20px 18px 2px;
  color: var(--violet);
  font: 9px Consolas, monospace;
  letter-spacing: 0.1em;
}

.role-card h3 {
  margin: 0 18px;
  font: 600 28px Georgia, "Microsoft YaHei", serif;
}

.role-card > p {
  margin: 3px 18px 20px;
  color: #746779;
  font-size: 11px;
}

.role-card > i {
  position: absolute;
  right: 14px;
  bottom: 18px;
  width: 25px;
  height: 25px;
}

.role-card > i::before {
  filter: brightness(0) saturate(100%) invert(23%) sepia(85%) saturate(2901%) hue-rotate(259deg) brightness(80%);
}

.role-note {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  min-height: 82px;
  margin-top: 10px;
  padding: 0 26px;
  color: #fff;
  background: var(--ink);
}

.role-note b {
  color: var(--gold);
  font: 600 23px Georgia, "Microsoft YaHei", serif;
}

.role-note span {
  color: #b6a9bf;
  font-size: 13px;
}

.battle-section {
  position: relative;
  min-height: 780px;
  overflow: hidden;
  background: linear-gradient(120deg, #160823, #2a0c3d 65%, #160823);
}

.battle-bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background:
    linear-gradient(90deg, rgba(16, 6, 28, 0.8), transparent),
    url("../images/4.jpg") center/cover no-repeat;
}

.battle-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: clamp(55px, 8vw, 120px);
  min-height: 780px;
  padding-block: 90px;
}

.battle-copy > p:not(.section-label) {
  margin: 28px 0 35px;
  color: #b0a2ba;
}

.battle-rules {
  display: grid;
  border-top: 1px solid var(--line);
}

.battle-rules span {
  display: flex;
  gap: 18px;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.battle-rules b {
  color: var(--pink);
  font: 11px Consolas, monospace;
}

.formation-panel {
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(13, 5, 22, 0.86);
  box-shadow: 22px 22px 0 rgba(243, 78, 163, 0.08);
}

.formation-head {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}

.formation-head span {
  grid-column: 1 / -1;
  color: var(--pink);
  font: 9px Consolas, monospace;
  letter-spacing: 0.15em;
}

.formation-head strong {
  margin-top: 5px;
  font: 600 25px Georgia, "Microsoft YaHei", serif;
}

.formation-head em {
  align-self: end;
  color: var(--gold);
  font-size: 11px;
  font-style: normal;
}

.formation-slots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.08);
}

.formation-slots button {
  position: relative;
  display: grid;
  min-height: 165px;
  place-content: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(#251037, #170921);
  cursor: pointer;
}

.formation-slots button.active {
  border-color: var(--gold);
  background: linear-gradient(155deg, #6d2dd8, #d53bba);
}

.formation-slots button b {
  position: absolute;
  top: 8px;
  left: 10px;
  color: rgba(255, 255, 255, 0.48);
  font: 10px Consolas, monospace;
}

.formation-slots button span {
  font: 600 17px Georgia, "Microsoft YaHei", serif;
}

.formation-slots button small {
  display: grid;
  width: 27px;
  height: 27px;
  margin-inline: auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  font-size: 10px;
}

.formation-editor {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  align-items: center;
  padding: 22px 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.formation-editor > div:first-child {
  display: grid;
}

.formation-editor small {
  color: #8d7e97;
}

.formation-editor strong {
  color: var(--gold);
  font-size: 14px;
}

.role-options {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.role-options button {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}

.role-options button.active {
  border-color: var(--pink);
  background: var(--pink);
}

.formation-meter {
  padding: 24px 26px 28px;
}

.formation-meter > span {
  display: block;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
}

.formation-meter i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--pink), var(--gold));
}

.formation-meter > div {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: #9e91a8;
  font-size: 10px;
}

.modes-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  color: var(--ink);
  background: #f2e9f0;
}

.modes-section .light-heading > div > p {
  color: var(--violet);
}

.modes-section .light-heading > p {
  color: #6d6076;
}

.mode-marquee {
  display: flex;
  gap: 70px;
  width: max-content;
  margin: 70px 0 26px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(109, 45, 216, 0.22);
  font: 600 clamp(65px, 9vw, 130px)/0.8 Georgia, serif;
  white-space: nowrap;
  transform: translateX(-5%);
}

.mode-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #c9bbce;
}

.mode-grid article {
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 28px;
  background: #fffaf4;
}

.mode-grid article:nth-child(even) {
  background: #221033;
  color: #fff;
}

.mode-grid span {
  color: var(--pink);
  font: 11px Consolas, monospace;
}

.mode-grid h3 {
  margin: 25px 0 10px;
  font: 600 27px Georgia, "Microsoft YaHei", serif;
}

.mode-grid p {
  flex: 1;
  margin: 0;
  color: #76697d;
  font-size: 13px;
}

.mode-grid article:nth-child(even) p {
  color: #a99bb3;
}

.mode-grid b {
  margin-top: 24px;
  color: var(--violet);
  font-size: 11px;
}

.mode-grid article:nth-child(even) b {
  color: var(--gold);
}

.gallery-section {
  padding: 110px 0;
  overflow: hidden;
  background: #10071d;
}

.gallery-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 38px;
}

.gallery-head > div:last-child {
  display: flex;
  gap: 8px;
}

.gallery-head button {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.gallery-head button:hover {
  border-color: var(--pink);
  background: var(--pink);
}

.gallery-track {
  display: flex;
  gap: 22px;
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--pink) #2b1938;
  scrollbar-width: thin;
}

.gallery-track figure {
  flex: 0 0 min(690px, 66vw);
  margin: 0;
  scroll-snap-align: start;
}

.gallery-track img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.15);
  object-fit: cover;
}

.gallery-track figcaption {
  display: flex;
  gap: 18px;
  align-items: center;
  padding-top: 12px;
  color: #a99cb4;
  font-size: 12px;
}

.gallery-track figcaption b {
  color: var(--gold);
  font: 11px Consolas, monospace;
}

.reviews-section {
  padding: 120px 0;
  color: var(--ink);
  background: var(--paper);
}

.reviews-grid {
  display: grid;
  grid-template-columns: 0.38fr 0.62fr;
  gap: clamp(50px, 8vw, 110px);
  align-items: start;
}

.review-summary {
  position: sticky;
  top: calc(var(--header-height) + 35px);
}

.review-summary > p {
  color: var(--violet);
}

.review-summary > div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2px 16px;
  margin-top: 45px;
  padding-top: 24px;
  border-top: 1px solid #cbbdce;
}

.review-summary strong {
  grid-row: span 2;
  color: var(--violet);
  font: 500 68px/1 Georgia, serif;
}

.review-summary span {
  color: var(--pink);
  letter-spacing: 0.11em;
}

.review-summary small {
  color: #776b7d;
}

.review-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-bottom: 14px;
}

.review-toolbar button {
  padding: 9px 13px;
  border: 1px solid #c8baca;
  color: #66596d;
  background: transparent;
  cursor: pointer;
}

.review-toolbar button.active {
  border-color: var(--violet);
  color: #fff;
  background: var(--violet);
}

.review-list {
  display: grid;
  gap: 12px;
}

.review-card {
  min-height: 190px;
  padding: 25px 27px;
  border: 1px solid #c8baca;
  background: #fffaf4;
}

.review-card header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.review-card h3 {
  margin: 0;
  font-size: 15px;
}

.review-card time {
  color: #887b8e;
  font-size: 10px;
}

.review-card header > span {
  color: var(--pink);
  white-space: nowrap;
}

.review-card > p {
  min-height: 44px;
  margin: 22px 0;
  font-family: Georgia, "Microsoft YaHei", serif;
  font-size: 16px;
}

.review-card footer {
  padding-top: 13px;
  border-top: 1px solid #d7cbd7;
  color: #817584;
  font-size: 10px;
}

.review-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 14px;
  padding: 28px;
  color: #fff;
  background: var(--ink);
}

.review-form > div:first-child,
.review-message,
.review-submit,
.form-feedback {
  grid-column: 1 / -1;
}

.review-form > div:first-child span {
  color: var(--gold);
  font: 9px Consolas, monospace;
  letter-spacing: 0.14em;
}

.review-form h3 {
  margin: 5px 0 8px;
  font: 600 26px Georgia, "Microsoft YaHei", serif;
}

.review-form label,
.review-form fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 11px;
  font-weight: 700;
}

.review-form legend {
  margin-bottom: 8px;
  white-space: nowrap;
}

.review-form input,
.review-form textarea {
  width: 100%;
  border: 1px solid #554464;
  border-radius: 0;
  outline: 0;
  color: #fff;
  background: #21102f;
}

.review-form input {
  height: 50px;
  padding: 0 14px;
}

.review-form textarea {
  min-height: 116px;
  padding: 13px 14px;
  resize: vertical;
}

.review-form input:focus,
.review-form textarea:focus {
  border-color: var(--pink);
}

.rating-input {
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 9px;
  border: 1px solid #554464;
  background: #21102f;
}

.rating-input button {
  padding: 2px 6px;
  color: #665570;
  background: transparent;
  font-size: 21px;
  cursor: pointer;
}

.rating-input button.active {
  color: var(--pink);
}

.review-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.review-submit > span {
  color: #8f809a;
  font-size: 10px;
}

.review-submit > button {
  min-width: 150px;
  height: 48px;
  background: linear-gradient(110deg, var(--violet), var(--pink));
  font-weight: 800;
  cursor: pointer;
}

.form-feedback {
  min-height: 19px;
  margin: -7px 0 0;
  color: var(--gold);
  font-size: 11px;
}

.faq-section {
  padding: 120px 0;
  background: linear-gradient(120deg, #170a27, #0e0618);
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: clamp(55px, 9vw, 135px);
}

.faq-title {
  position: relative;
}

.faq-title > span {
  display: block;
  max-width: 340px;
  margin-top: 24px;
  color: #9e91a8;
}

.faq-title > b {
  display: block;
  margin-top: 60px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 78, 163, 0.35);
  font: 600 145px/0.8 Georgia, serif;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 76px;
  padding: 0 5px 0 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.faq-item > button span {
  display: flex;
  gap: 22px;
  align-items: center;
  font-weight: 700;
}

.faq-item > button b {
  color: var(--pink);
  font: 10px Consolas, monospace;
}

.faq-item.open > button {
  color: var(--gold);
}

.faq-item.open .icon-plus {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 38px 24px;
  color: #a89cb2;
  font-size: 13px;
}

.faq-answer p {
  margin: 0;
}

.download-section {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(17, 6, 29, 0.97) 0 45%, rgba(17, 6, 29, 0.25) 72%, rgba(17, 6, 29, 0.92)),
    url("../images/3.jpg") center/cover no-repeat;
}

.download-section::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 75%, #0a0412);
  content: "";
}

.download-art {
  position: absolute;
  top: 50%;
  right: 9%;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(241, 196, 108, 0.3);
  transform: translateY(-50%) rotate(45deg);
}

.download-art::before,
.download-art::after {
  position: absolute;
  border: 1px solid rgba(243, 78, 163, 0.32);
  content: "";
}

.download-art::before { inset: 40px; }
.download-art::after { inset: 90px; background: rgba(109, 45, 216, 0.12); }

.download-grid {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 70px;
  min-height: 590px;
  padding-block: 80px;
}

.download-grid > div:first-child > span {
  display: block;
  margin-top: 27px;
  color: #a89bb3;
  font-size: 11px;
}

.download-links {
  display: grid;
  gap: 10px;
  width: min(100%, 340px);
}

.download-links a {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  min-height: 84px;
  padding: 14px 22px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(18, 7, 30, 0.9);
}

.download-links a:first-child {
  border-color: var(--pink);
  background: linear-gradient(110deg, #7d31dc, var(--pink));
}

.download-links a:hover {
  border-color: var(--gold);
}

.download-links i {
  width: 35px;
  height: 35px;
}

.download-links a > span {
  display: grid;
  font-weight: 800;
  white-space: nowrap;
}

.download-links small {
  color: #c0b5c6;
  font-size: 10px;
  font-weight: 400;
}

.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  background: #07030d;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner > a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-inner img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.footer-inner strong {
  font-family: Georgia, "Microsoft YaHei", serif;
}

.footer-inner p {
  color: #74687e;
  font-size: 10px;
}

.back-to-top {
  position: fixed;
  z-index: 800;
  right: 20px;
  bottom: 20px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(27, 10, 41, 0.92);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

i[class^="icon-"] {
  display: inline-block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

i[class^="icon-"]::before {
  display: block;
  width: 100%;
  height: 100%;
  background: center/contain no-repeat;
  content: "";
}

.icon-download::before { background-image: url("../icons/download.svg") !important; }
.icon-crown::before { background-image: url("../icons/crown.svg") !important; }
.icon-sword::before { background-image: url("../icons/sword.svg") !important; }
.icon-shield::before { background-image: url("../icons/shield.svg") !important; }
.icon-heal::before { background-image: url("../icons/heal.svg") !important; }
.icon-spark::before { background-image: url("../icons/spark.svg") !important; }
.icon-plus::before { background-image: url("../icons/plus.svg") !important; }
.icon-arrow::before { background-image: url("../icons/arrow.svg") !important; }
.icon-android::before { background-image: url("../images/安卓.svg") !important; }
.icon-ios::before { background-image: url("../images/iOS.svg") !important; }

.icon-top {
  width: 24px !important;
  height: 24px !important;
}

.icon-top::before {
  background-image: url("../images/top.png") !important;
}

.download-links a:first-child .icon-android::before {
  filter: brightness(0) invert(1);
}

.download-links a:last-child .icon-ios::before {
  filter: brightness(0) invert(1);
}

@media (max-width: 1000px) {
  :root {
    --header-height: 68px;
  }

  .container {
    width: min(calc(100% - 36px), var(--container));
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    visibility: hidden;
    border-top: 1px solid var(--line);
    background: rgba(16, 7, 29, 0.99);
    opacity: 0;
    pointer-events: none;
  }

  .main-nav.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav ul {
    display: block;
    width: min(calc(100% - 36px), var(--container));
    margin-inline: auto;
  }

  .main-nav li {
    border-bottom: 1px solid var(--line);
  }

  .main-nav a {
    padding: 15px 0;
  }

  .main-nav a::before {
    display: none;
  }

  .header-download {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    margin-left: auto;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
  }

  .header-download i {
    width: 16px;
    height: 16px;
  }

  .menu-toggle {
    display: grid;
    width: 40px;
    height: 40px;
    margin-left: 8px;
    place-content: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 18px;
    height: 1px;
    background: #fff;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .hero-copy {
    width: 62%;
  }

  .conquest-card {
    right: 1%;
    width: 240px;
  }

  .decree-grid,
  .battle-grid,
  .reviews-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .realm-stage {
    grid-template-columns: 1fr;
  }

  .realm-visual {
    min-height: 450px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .roster-cards {
    grid-template-columns: repeat(5, 220px);
    overflow-x: auto;
    padding: 3px 3px 14px;
    scroll-snap-type: x mandatory;
  }

  .role-card {
    scroll-snap-align: start;
  }

  .battle-grid {
    gap: 60px;
  }

  .mode-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .review-summary {
    position: static;
  }

  .download-grid {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 680px) {
  .container {
    width: calc(100% - 28px);
  }

  .brand {
    gap: 8px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    font-size: 12px;
  }

  .header-download {
    width: 40px;
    padding: 0;
    justify-content: center;
  }

  .header-download span {
    display: none;
  }

  .section-title h2,
  .section-heading h2,
  .battle-copy h2,
  .review-summary h2,
  .faq-title h2,
  .download-grid h2,
  .gallery-head h2 {
    font-size: 39px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-art {
    top: 0;
    right: -36%;
    width: 116%;
    height: 52%;
    opacity: 0.64;
    clip-path: none;
  }

  .hero-art::before {
    background: linear-gradient(0deg, #160a27, transparent 70%);
  }

  .hero-inner {
    align-items: flex-end;
    min-height: 760px;
    padding-block: 280px 85px;
  }

  .hero-copy {
    width: 100%;
  }

  .age-mark {
    margin-bottom: 17px;
  }

  .hero h1 {
    font-size: 72px;
  }

  .hero-slogan {
    margin-top: 26px;
    font-size: 20px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions a {
    min-width: 0;
    padding-inline: 12px;
    white-space: nowrap;
  }

  .conquest-card,
  .hero-scroll {
    display: none;
  }

  .decree-section,
  .realms-section,
  .roster-section,
  .modes-section,
  .gallery-section,
  .reviews-section,
  .faq-section {
    padding-block: 78px;
  }

  .decree-grid {
    gap: 45px;
  }

  .campaign-route {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 0;
  }

  .realm-tabs {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .realm-tabs button {
    min-height: 80px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .realm-visual {
    min-height: 360px;
  }

  .orbit-a {
    width: 330px;
    height: 190px;
  }

  .orbit-b {
    width: 220px;
    height: 320px;
  }

  .realm-core {
    width: 130px;
    height: 130px;
  }

  .realm-info {
    padding: 32px 22px;
  }

  .roster-cards {
    margin-top: 42px;
  }

  .role-note {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 18px;
  }

  .battle-section,
  .battle-grid {
    min-height: 880px;
  }

  .battle-grid {
    padding-block: 78px;
  }

  .formation-slots {
    grid-template-columns: none;
    grid-auto-columns: 112px;
    grid-auto-flow: column;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-color: var(--pink) rgba(255, 255, 255, 0.08);
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .formation-slots button {
    min-width: 112px;
    scroll-snap-align: start;
  }

  .formation-editor {
    grid-template-columns: 1fr;
  }

  .role-options {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .role-options button {
    white-space: nowrap;
  }

  .mode-marquee {
    margin-top: 54px;
  }

  .mode-grid {
    grid-template-columns: 1fr;
  }

  .gallery-head {
    gap: 25px;
  }

  .gallery-track {
    width: calc(100% - 28px);
    gap: 14px;
    padding-bottom: 12px;
  }

  .gallery-track figure {
    flex-basis: 86vw;
  }

  .review-toolbar {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .review-toolbar button {
    white-space: nowrap;
  }

  .review-card {
    padding: 22px;
  }

  .review-form {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .review-form > * {
    grid-column: 1 !important;
  }

  .review-card header {
    gap: 10px;
  }

  .faq-grid {
    gap: 42px;
  }

  .faq-title > b {
    display: none;
  }

  .faq-item > button {
    min-height: 70px;
  }

  .faq-item > button span {
    gap: 13px;
    padding-right: 10px;
  }

  .faq-answer {
    padding-left: 32px;
  }

  .download-section,
  .download-grid {
    min-height: 660px;
  }

  .download-grid {
    gap: 50px;
  }

  .download-links {
    width: 100%;
  }

  .download-links a > span {
    white-space: nowrap;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner p {
    margin: 0;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html,
  * {
    scroll-behavior: auto !important;
  }
}
